AngelScriptAPI.h 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006
  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 uint unsigned
  6. #define uint8 unsigned char
  7. #define uint16 unsigned short
  8. #define uint64 unsigned long
  9. #define null 0
  10. #define in
  11. #define out
  12. #define inout
  13. #define is ==
  14. #define interface struct
  15. #define class struct
  16. #define cast reinterpret_cast
  17. #define mixin
  18. #define funcdef
  19. #define protected
  20. #define private
  21. // Classes
  22. class Animatable
  23. {
  24. public:
  25. // Methods:
  26. void AllocateNetworkState();
  27. operator AnimatedModel() const;
  28. operator AnimatedSprite2D() const;
  29. operator AnimationController() const;
  30. void ApplyAttributes();
  31. operator BillboardSet() const;
  32. operator BorderImage() const;
  33. operator Button() const;
  34. operator Camera() const;
  35. operator CheckBox() const;
  36. operator CollisionBox2D() const;
  37. operator CollisionChain2D() const;
  38. operator CollisionCircle2D() const;
  39. operator CollisionEdge2D() const;
  40. operator CollisionPolygon2D() const;
  41. operator CollisionShape2D() const;
  42. operator CollisionShape() const;
  43. operator Component() const;
  44. operator Constraint2D() const;
  45. operator Constraint() const;
  46. operator ConstraintDistance2D() const;
  47. operator ConstraintFriction2D() const;
  48. operator ConstraintGear2D() const;
  49. operator ConstraintMotor2D() const;
  50. operator ConstraintMouse2D() const;
  51. operator ConstraintPrismatic2D() const;
  52. operator ConstraintPulley2D() const;
  53. operator ConstraintRevolute2D() const;
  54. operator ConstraintWeld2D() const;
  55. operator ConstraintWheel2D() const;
  56. operator CrowdAgent() const;
  57. operator CrowdManager() const;
  58. operator Cursor() const;
  59. operator CustomGeometry() const;
  60. operator DebugRenderer() const;
  61. operator DecalSet() const;
  62. operator Drawable2D() const;
  63. operator Drawable() const;
  64. operator DropDownList() const;
  65. operator DynamicNavigationMesh() const;
  66. bool GetAnimationEnabled() const;
  67. Variant GetAttribute(const String&) const;
  68. Variant GetAttribute(uint) const;
  69. ValueAnimation GetAttributeAnimation(const String&) const;
  70. float GetAttributeAnimationSpeed(const String&) const;
  71. float GetAttributeAnimationTime(const String&) const;
  72. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  73. Variant GetAttributeDefault(const String&) const;
  74. Variant GetAttributeDefault(uint) const;
  75. bool GetBlockEvents() const;
  76. VariantMap& GetEventDataMap() const;
  77. Object GetEventSender() const;
  78. bool GetInterceptNetworkUpdate(const String&) const;
  79. uint GetNumAttributes() const;
  80. uint GetNumNetworkAttributes() const;
  81. ObjectAnimation GetObjectAnimation() const;
  82. ResourceRef GetObjectAnimationAttr() const;
  83. Object GetSubsystem(StringHash) const;
  84. StringHash GetType() const;
  85. bool HasEventHandlers() const;
  86. bool HasSubscribedToEvent(Object, StringHash) const;
  87. bool HasSubscribedToEvent(StringHash) const;
  88. operator IKConstraint() const;
  89. operator IKEffector() const;
  90. operator IKSolver() const;
  91. bool IsInstanceOf(StringHash) const;
  92. bool IsTemporary() const;
  93. operator Light() const;
  94. operator LineEdit() const;
  95. operator ListView() const;
  96. bool Load(Deserializer&);
  97. bool LoadJSON(const JSONValue&);
  98. bool LoadXML(const XMLElement&);
  99. operator LogicComponent() const;
  100. void MarkNetworkUpdate();
  101. operator Menu() const;
  102. operator NavArea() const;
  103. operator Navigable() const;
  104. operator NavigationMesh() const;
  105. operator NetworkPriority() const;
  106. operator Node() const;
  107. operator Object() const;
  108. operator Obstacle() const;
  109. operator Octree() const;
  110. operator OffMeshConnection() const;
  111. void OnEvent(Object, StringHash, VariantMap&);
  112. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  113. void OnSetAttribute(const AttributeInfo&, const Variant&);
  114. operator ParticleEmitter2D() const;
  115. operator ParticleEmitter() const;
  116. operator PhysicsWorld2D() const;
  117. operator PhysicsWorld() const;
  118. operator ProgressBar() const;
  119. operator RaycastVehicle() const;
  120. bool ReadDeltaUpdate(Deserializer&);
  121. bool ReadLatestDataUpdate(Deserializer&);
  122. operator RefCounted() const;
  123. int Refs() const;
  124. void RemoveAttributeAnimation(const String&);
  125. void RemoveInstanceDefault();
  126. void RemoveObjectAnimation();
  127. operator Renderer2D() const;
  128. void ResetToDefault();
  129. operator RibbonTrail() const;
  130. operator RigidBody2D() const;
  131. operator RigidBody() const;
  132. bool Save(Serializer&) const;
  133. bool SaveDefaultAttributes() const;
  134. bool SaveJSON(JSONValue&) const;
  135. bool SaveXML(XMLElement&) const;
  136. operator Scene() const;
  137. operator ScriptInstance() const;
  138. operator ScrollBar() const;
  139. operator ScrollView() const;
  140. void SendEvent(StringHash);
  141. void SendEvent(StringHash, VariantMap&);
  142. operator Serializable() const;
  143. void SetAnimationEnabled(bool);
  144. void SetAnimationTime(float);
  145. bool SetAttribute(const String&, const Variant&);
  146. bool SetAttribute(uint, const Variant&);
  147. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  148. void SetAttributeAnimationSpeed(const String&, float);
  149. void SetAttributeAnimationTime(const String&, float);
  150. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  151. void SetBlockEvents(bool);
  152. void SetGlobalVar(StringHash, const Variant&);
  153. void SetInstanceDefault(bool);
  154. void SetInterceptNetworkUpdate(const String&, bool);
  155. void SetObjectAnimation(ObjectAnimation);
  156. void SetObjectAnimationAttr(const ResourceRef&);
  157. void SetTemporary(bool);
  158. operator Skybox() const;
  159. operator Slider() const;
  160. operator SmoothedTransform() const;
  161. operator SoundListener() const;
  162. operator SoundSource3D() const;
  163. operator SoundSource() const;
  164. operator SplinePath() const;
  165. operator Sprite() const;
  166. operator StaticModel() const;
  167. operator StaticModelGroup() const;
  168. operator StaticSprite2D() const;
  169. operator StretchableSprite2D() const;
  170. const String& GetCategory() const;
  171. const String& GetTypeName() const;
  172. operator Terrain() const;
  173. operator TerrainPatch() const;
  174. operator Text3D() const;
  175. operator Text() const;
  176. operator TileMap2D() const;
  177. operator TileMapLayer2D() const;
  178. operator ToolTip() const;
  179. operator UIComponent() const;
  180. operator UIElement() const;
  181. operator UISelectable() const;
  182. operator UnknownComponent() const;
  183. void UnsubscribeFromAllEvents();
  184. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  185. void UnsubscribeFromEvent(Object, StringHash);
  186. void UnsubscribeFromEvent(StringHash);
  187. void UnsubscribeFromEvents(Object);
  188. const Variant& GetGlobalVar(StringHash) const;
  189. const VariantMap& GetGlobalVars() const;
  190. operator View3D() const;
  191. int WeakRefs() const;
  192. operator Window() const;
  193. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  194. void WriteInitialDeltaUpdate(Serializer&, uint8);
  195. void WriteLatestDataUpdate(Serializer&, uint8);
  196. operator Zone() const;
  197. operator const AnimatedModel() const;
  198. operator const AnimatedSprite2D() const;
  199. operator const AnimationController() const;
  200. operator const BillboardSet() const;
  201. operator const BorderImage() const;
  202. operator const Button() const;
  203. operator const Camera() const;
  204. operator const CheckBox() const;
  205. operator const CollisionBox2D() const;
  206. operator const CollisionChain2D() const;
  207. operator const CollisionCircle2D() const;
  208. operator const CollisionEdge2D() const;
  209. operator const CollisionPolygon2D() const;
  210. operator const CollisionShape2D() const;
  211. operator const CollisionShape() const;
  212. operator const Component() const;
  213. operator const Constraint2D() const;
  214. operator const Constraint() const;
  215. operator const ConstraintDistance2D() const;
  216. operator const ConstraintFriction2D() const;
  217. operator const ConstraintGear2D() const;
  218. operator const ConstraintMotor2D() const;
  219. operator const ConstraintMouse2D() const;
  220. operator const ConstraintPrismatic2D() const;
  221. operator const ConstraintPulley2D() const;
  222. operator const ConstraintRevolute2D() const;
  223. operator const ConstraintWeld2D() const;
  224. operator const ConstraintWheel2D() const;
  225. operator const CrowdAgent() const;
  226. operator const CrowdManager() const;
  227. operator const Cursor() const;
  228. operator const CustomGeometry() const;
  229. operator const DebugRenderer() const;
  230. operator const DecalSet() const;
  231. operator const Drawable2D() const;
  232. operator const Drawable() const;
  233. operator const DropDownList() const;
  234. operator const DynamicNavigationMesh() const;
  235. operator const IKConstraint() const;
  236. operator const IKEffector() const;
  237. operator const IKSolver() const;
  238. operator const Light() const;
  239. operator const LineEdit() const;
  240. operator const ListView() const;
  241. operator const LogicComponent() const;
  242. operator const Menu() const;
  243. operator const NavArea() const;
  244. operator const Navigable() const;
  245. operator const NavigationMesh() const;
  246. operator const NetworkPriority() const;
  247. operator const Node() const;
  248. operator const Object() const;
  249. operator const Obstacle() const;
  250. operator const Octree() const;
  251. operator const OffMeshConnection() const;
  252. operator const ParticleEmitter2D() const;
  253. operator const ParticleEmitter() const;
  254. operator const PhysicsWorld2D() const;
  255. operator const PhysicsWorld() const;
  256. operator const ProgressBar() const;
  257. operator const RaycastVehicle() const;
  258. operator const RefCounted() const;
  259. operator const Renderer2D() const;
  260. operator const RibbonTrail() const;
  261. operator const RigidBody2D() const;
  262. operator const RigidBody() const;
  263. operator const Scene() const;
  264. operator const ScriptInstance() const;
  265. operator const ScrollBar() const;
  266. operator const ScrollView() const;
  267. operator const Serializable() const;
  268. operator const Skybox() const;
  269. operator const Slider() const;
  270. operator const SmoothedTransform() const;
  271. operator const SoundListener() const;
  272. operator const SoundSource3D() const;
  273. operator const SoundSource() const;
  274. operator const SplinePath() const;
  275. operator const Sprite() const;
  276. operator const StaticModel() const;
  277. operator const StaticModelGroup() const;
  278. operator const StaticSprite2D() const;
  279. operator const StretchableSprite2D() const;
  280. operator const Terrain() const;
  281. operator const TerrainPatch() const;
  282. operator const Text3D() const;
  283. operator const Text() const;
  284. operator const TileMap2D() const;
  285. operator const TileMapLayer2D() const;
  286. operator const ToolTip() const;
  287. operator const UIComponent() const;
  288. operator const UIElement() const;
  289. operator const UISelectable() const;
  290. operator const UnknownComponent() const;
  291. operator const View3D() const;
  292. operator const Window() const;
  293. operator const Zone() const;
  294. // Properties:
  295. bool animationEnabled;
  296. /* readonly */
  297. Array<Variant> attributeDefaults;
  298. /* readonly */
  299. Array<AttributeInfo> attributeInfos;
  300. Array<Variant> attributes;
  301. /* readonly */
  302. String category;
  303. Array<Variant> globalVar;
  304. /* readonly */
  305. VariantMap globalVars;
  306. /* readonly */
  307. uint numAttributes;
  308. ObjectAnimation objectAnimation;
  309. /* readonly */
  310. int refs;
  311. bool temporary;
  312. /* readonly */
  313. StringHash type;
  314. /* readonly */
  315. String typeName;
  316. /* readonly */
  317. int weakRefs;
  318. };
  319. class AnimatedModel
  320. {
  321. public:
  322. AnimatedModel();
  323. // Methods:
  324. AnimationState AddAnimationState(Animation);
  325. void AddLight(Light);
  326. void AddVertexLight(Light);
  327. void AllocateNetworkState();
  328. operator Animatable() const;
  329. void ApplyAnimation();
  330. void ApplyAttributes();
  331. void ApplyMaterialList(const String& = String :: EMPTY);
  332. const BoundingBox& GetBoundingBox() const;
  333. const BoundingBox& GetWorldBoundingBox();
  334. void CleanupConnection(Connection);
  335. operator Component() const;
  336. void DrawDebugGeometry(DebugRenderer, bool);
  337. bool DrawOcclusion(OcclusionBuffer);
  338. operator Drawable() const;
  339. bool GetAnimationEnabled() const;
  340. float GetAnimationLodBias() const;
  341. AnimationState GetAnimationState(Animation) const;
  342. AnimationState GetAnimationState(StringHash) const;
  343. AnimationState GetAnimationState(const String&) const;
  344. AnimationState GetAnimationState(uint) const;
  345. Array<AnimationState> GetAnimationStates() const;
  346. Variant GetAttribute(const String&) const;
  347. Variant GetAttribute(uint) const;
  348. ValueAnimation GetAttributeAnimation(const String&) const;
  349. float GetAttributeAnimationSpeed(const String&) const;
  350. float GetAttributeAnimationTime(const String&) const;
  351. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  352. Variant GetAttributeDefault(const String&) const;
  353. Variant GetAttributeDefault(uint) const;
  354. bool GetBlockEvents() const;
  355. bool GetCastShadows() const;
  356. Component GetComponent(StringHash) const;
  357. float GetDistance() const;
  358. float GetDrawDistance() const;
  359. uint8 GetDrawableFlags() const;
  360. VariantMap& GetEventDataMap() const;
  361. Object GetEventSender() const;
  362. Light GetFirstLight() const;
  363. uint GetID() const;
  364. bool GetInterceptNetworkUpdate(const String&) const;
  365. uint GetLightMask() const;
  366. Array<Light> GetLights() const;
  367. float GetLodBias() const;
  368. float GetLodDistance() const;
  369. Geometry GetLodGeometry(uint, uint);
  370. Material GetMaterial() const;
  371. Material GetMaterial(uint) const;
  372. uint GetMaxLights() const;
  373. float GetMaxZ() const;
  374. float GetMinZ() const;
  375. Model GetModel() const;
  376. ResourceRef GetModelAttr() const;
  377. Array<VertexBuffer> GetMorphVertexBuffers() const;
  378. float GetMorphWeight(StringHash) const;
  379. float GetMorphWeight(const String&) const;
  380. float GetMorphWeight(uint) const;
  381. Node GetNode() const;
  382. uint GetNumAnimationStates() const;
  383. uint GetNumAttributes() const;
  384. uint GetNumGeometries() const;
  385. uint GetNumMorphs() const;
  386. uint GetNumNetworkAttributes() const;
  387. uint GetNumOccluderTriangles();
  388. ObjectAnimation GetObjectAnimation() const;
  389. ResourceRef GetObjectAnimationAttr() const;
  390. uint GetOcclusionLodLevel() const;
  391. Scene GetScene() const;
  392. float GetShadowDistance() const;
  393. uint GetShadowMask() const;
  394. Skeleton& GetSkeleton();
  395. float GetSortValue() const;
  396. Object GetSubsystem(StringHash) const;
  397. StringHash GetType() const;
  398. UpdateGeometryType GetUpdateGeometryType();
  399. bool GetUpdateInvisible() const;
  400. Array<Light> GetVertexLights() const;
  401. uint GetViewMask() const;
  402. Zone GetZone() const;
  403. uint GetZoneMask() const;
  404. bool HasBasePass(uint) const;
  405. bool HasEventHandlers() const;
  406. bool HasSubscribedToEvent(Object, StringHash) const;
  407. bool HasSubscribedToEvent(StringHash) const;
  408. bool IsEnabled() const;
  409. bool IsEnabledEffective() const;
  410. bool IsInView() const;
  411. bool IsInView(Camera) const;
  412. bool IsInView(const FrameInfo&, bool = false) const;
  413. bool IsInside(const Vector3&) const;
  414. bool IsInsideLocal(const Vector3&) const;
  415. bool IsInstanceOf(StringHash) const;
  416. bool IsMaster() const;
  417. bool IsOccludee() const;
  418. bool IsOccluder() const;
  419. bool IsReplicated() const;
  420. bool IsTemporary() const;
  421. bool IsZoneDirty() const;
  422. void LimitLights();
  423. void LimitVertexLights(bool);
  424. bool Load(Deserializer&);
  425. bool LoadJSON(const JSONValue&);
  426. bool LoadXML(const XMLElement&);
  427. void MarkForUpdate();
  428. void MarkInView(const FrameInfo&);
  429. void MarkInView(uint);
  430. void MarkNetworkUpdate();
  431. operator Object() const;
  432. void OnEvent(Object, StringHash, VariantMap&);
  433. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  434. void OnSetAttribute(const AttributeInfo&, const Variant&);
  435. void OnSetEnabled();
  436. void PrepareNetworkUpdate();
  437. bool ReadDeltaUpdate(Deserializer&);
  438. bool ReadLatestDataUpdate(Deserializer&);
  439. operator RefCounted() const;
  440. int Refs() const;
  441. void Remove();
  442. void RemoveAllAnimationStates();
  443. void RemoveAnimationState(Animation);
  444. void RemoveAnimationState(AnimationState);
  445. void RemoveAnimationState(StringHash);
  446. void RemoveAnimationState(const String&);
  447. void RemoveAnimationState(uint);
  448. void RemoveAttributeAnimation(const String&);
  449. void RemoveInstanceDefault();
  450. void RemoveObjectAnimation();
  451. void ResetMorphWeights();
  452. void ResetToDefault();
  453. const ResourceRefList& GetMaterialsAttr() const;
  454. bool Save(Serializer&) const;
  455. bool SaveDefaultAttributes() const;
  456. bool SaveJSON(JSONValue&) const;
  457. bool SaveXML(XMLElement&) const;
  458. void SendEvent(StringHash);
  459. void SendEvent(StringHash, VariantMap&);
  460. operator Serializable() const;
  461. void SetAnimationEnabled(bool);
  462. void SetAnimationLodBias(float);
  463. void SetAnimationTime(float);
  464. bool SetAttribute(const String&, const Variant&);
  465. bool SetAttribute(uint, const Variant&);
  466. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  467. void SetAttributeAnimationSpeed(const String&, float);
  468. void SetAttributeAnimationTime(const String&, float);
  469. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  470. void SetBasePass(uint);
  471. void SetBlockEvents(bool);
  472. void SetCastShadows(bool);
  473. void SetDrawDistance(float);
  474. void SetEnabled(bool);
  475. void SetGlobalVar(StringHash, const Variant&);
  476. void SetInstanceDefault(bool);
  477. void SetInterceptNetworkUpdate(const String&, bool);
  478. void SetLightMask(uint);
  479. void SetLodBias(float);
  480. void SetMaterial(Material);
  481. bool SetMaterial(uint, Material);
  482. void SetMaterialsAttr(const ResourceRefList&);
  483. void SetMaxLights(uint);
  484. void SetMinMaxZ(float, float);
  485. void SetModel(Model);
  486. void SetModel(Model, bool = true);
  487. void SetModelAttr(const ResourceRef&);
  488. void SetMorphWeight(StringHash, float);
  489. void SetMorphWeight(const String&, float);
  490. void SetMorphWeight(uint, float);
  491. void SetObjectAnimation(ObjectAnimation);
  492. void SetObjectAnimationAttr(const ResourceRef&);
  493. void SetOccludee(bool);
  494. void SetOccluder(bool);
  495. void SetOcclusionLodLevel(uint);
  496. void SetShadowDistance(float);
  497. void SetShadowMask(uint);
  498. void SetSortValue(float);
  499. void SetTemporary(bool);
  500. void SetUpdateInvisible(bool);
  501. void SetViewMask(uint);
  502. void SetZone(Zone, bool = false);
  503. void SetZoneMask(uint);
  504. operator StaticModel() const;
  505. const String& GetCategory() const;
  506. const String& GetTypeName() const;
  507. void UnsubscribeFromAllEvents();
  508. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  509. void UnsubscribeFromEvent(Object, StringHash);
  510. void UnsubscribeFromEvent(StringHash);
  511. void UnsubscribeFromEvents(Object);
  512. void Update(const FrameInfo&);
  513. void UpdateBatches(const FrameInfo&);
  514. void UpdateBoneBoundingBox();
  515. void UpdateGeometry(const FrameInfo&);
  516. const Variant& GetGlobalVar(StringHash) const;
  517. const VariantMap& GetGlobalVars() const;
  518. int WeakRefs() const;
  519. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  520. void WriteInitialDeltaUpdate(Serializer&, uint8);
  521. void WriteLatestDataUpdate(Serializer&, uint8);
  522. operator const Animatable() const;
  523. operator const Component() const;
  524. operator const Drawable() const;
  525. operator const Object() const;
  526. operator const RefCounted() const;
  527. operator const Serializable() const;
  528. operator const StaticModel() const;
  529. // Properties:
  530. bool animationEnabled;
  531. float animationLodBias;
  532. /* readonly */
  533. Array<AnimationState> animationStates;
  534. /* readonly */
  535. Array<Variant> attributeDefaults;
  536. /* readonly */
  537. Array<AttributeInfo> attributeInfos;
  538. Array<Variant> attributes;
  539. /* readonly */
  540. BoundingBox boundingBox;
  541. bool castShadows;
  542. /* readonly */
  543. String category;
  544. float drawDistance;
  545. bool enabled;
  546. /* readonly */
  547. bool enabledEffective;
  548. Array<Variant> globalVar;
  549. /* readonly */
  550. VariantMap globalVars;
  551. /* readonly */
  552. uint id;
  553. /* readonly */
  554. bool inView;
  555. uint lightMask;
  556. float lodBias;
  557. Material material;
  558. Array<Material> materials;
  559. uint maxLights;
  560. Model model;
  561. /* readonly */
  562. Array<String> morphNames;
  563. Array<float> morphWeights;
  564. /* readonly */
  565. Node node;
  566. /* readonly */
  567. uint numAnimationStates;
  568. /* readonly */
  569. uint numAttributes;
  570. /* readonly */
  571. uint numGeometries;
  572. /* readonly */
  573. uint numMorphs;
  574. ObjectAnimation objectAnimation;
  575. bool occludee;
  576. bool occluder;
  577. uint occlusionLodLevel;
  578. /* readonly */
  579. int refs;
  580. /* readonly */
  581. bool replicated;
  582. float shadowDistance;
  583. uint shadowMask;
  584. /* readonly */
  585. Skeleton skeleton;
  586. bool temporary;
  587. /* readonly */
  588. StringHash type;
  589. /* readonly */
  590. String typeName;
  591. bool updateInvisible;
  592. uint viewMask;
  593. /* readonly */
  594. int weakRefs;
  595. /* readonly */
  596. BoundingBox worldBoundingBox;
  597. /* readonly */
  598. Zone zone;
  599. uint zoneMask;
  600. };
  601. class AnimatedSprite2D
  602. {
  603. public:
  604. AnimatedSprite2D();
  605. // Methods:
  606. void AddLight(Light);
  607. void AddVertexLight(Light);
  608. void AllocateNetworkState();
  609. operator Animatable() const;
  610. void ApplyAttributes();
  611. const BoundingBox& GetBoundingBox() const;
  612. const BoundingBox& GetWorldBoundingBox();
  613. void CleanupConnection(Connection);
  614. const Color& GetColor() const;
  615. operator Component() const;
  616. void DrawDebugGeometry(DebugRenderer, bool);
  617. bool DrawOcclusion(OcclusionBuffer);
  618. operator Drawable2D() const;
  619. operator Drawable() const;
  620. float GetAlpha() const;
  621. bool GetAnimationEnabled() const;
  622. AnimationSet2D GetAnimationSet() const;
  623. ResourceRef GetAnimationSetAttr() const;
  624. Variant GetAttribute(const String&) const;
  625. Variant GetAttribute(uint) const;
  626. ValueAnimation GetAttributeAnimation(const String&) const;
  627. float GetAttributeAnimationSpeed(const String&) const;
  628. float GetAttributeAnimationTime(const String&) const;
  629. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  630. Variant GetAttributeDefault(const String&) const;
  631. Variant GetAttributeDefault(uint) const;
  632. BlendMode GetBlendMode() const;
  633. bool GetBlockEvents() const;
  634. bool GetCastShadows() const;
  635. Component GetComponent(StringHash) const;
  636. Material GetCustomMaterial() const;
  637. ResourceRef GetCustomMaterialAttr() const;
  638. float GetDistance() const;
  639. float GetDrawDistance() const;
  640. uint8 GetDrawableFlags() const;
  641. VariantMap& GetEventDataMap() const;
  642. Object GetEventSender() const;
  643. Light GetFirstLight() const;
  644. bool GetFlipX() const;
  645. bool GetFlipY() const;
  646. uint GetID() const;
  647. bool GetInterceptNetworkUpdate(const String&) const;
  648. int GetLayer() const;
  649. uint GetLightMask() const;
  650. Array<Light> GetLights() const;
  651. float GetLodBias() const;
  652. float GetLodDistance() const;
  653. Geometry GetLodGeometry(uint, uint);
  654. LoopMode2D GetLoopMode() const;
  655. uint GetMaxLights() const;
  656. float GetMaxZ() const;
  657. float GetMinZ() const;
  658. Node GetNode() const;
  659. uint GetNumAttributes() const;
  660. uint GetNumNetworkAttributes() const;
  661. uint GetNumOccluderTriangles();
  662. ObjectAnimation GetObjectAnimation() const;
  663. ResourceRef GetObjectAnimationAttr() const;
  664. int GetOrderInLayer() const;
  665. Scene GetScene() const;
  666. float GetShadowDistance() const;
  667. uint GetShadowMask() const;
  668. float GetSortValue() const;
  669. float GetSpeed() const;
  670. Sprite2D GetSprite() const;
  671. ResourceRef GetSpriteAttr() const;
  672. Object GetSubsystem(StringHash) const;
  673. bool GetSwapXY() const;
  674. StringHash GetType() const;
  675. UpdateGeometryType GetUpdateGeometryType();
  676. bool GetUseDrawRect() const;
  677. bool GetUseHotSpot() const;
  678. bool GetUseTextureRect() const;
  679. Array<Light> GetVertexLights() const;
  680. uint GetViewMask() const;
  681. Zone GetZone() const;
  682. uint GetZoneMask() const;
  683. bool HasBasePass(uint) const;
  684. bool HasEventHandlers() const;
  685. bool HasSubscribedToEvent(Object, StringHash) const;
  686. bool HasSubscribedToEvent(StringHash) const;
  687. bool IsEnabled() const;
  688. bool IsEnabledEffective() const;
  689. bool IsInView() const;
  690. bool IsInView(Camera) const;
  691. bool IsInView(const FrameInfo&, bool = false) const;
  692. bool IsInstanceOf(StringHash) const;
  693. bool IsOccludee() const;
  694. bool IsOccluder() const;
  695. bool IsReplicated() const;
  696. bool IsTemporary() const;
  697. bool IsZoneDirty() const;
  698. void LimitLights();
  699. void LimitVertexLights(bool);
  700. bool Load(Deserializer&);
  701. bool LoadJSON(const JSONValue&);
  702. bool LoadXML(const XMLElement&);
  703. void MarkForUpdate();
  704. void MarkInView(const FrameInfo&);
  705. void MarkInView(uint);
  706. void MarkNetworkUpdate();
  707. operator Object() const;
  708. void OnEvent(Object, StringHash, VariantMap&);
  709. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  710. void OnSetAttribute(const AttributeInfo&, const Variant&);
  711. void OnSetEnabled();
  712. void PrepareNetworkUpdate();
  713. bool ReadDeltaUpdate(Deserializer&);
  714. bool ReadLatestDataUpdate(Deserializer&);
  715. const Rect& GetDrawRect() const;
  716. const Rect& GetTextureRect() const;
  717. operator RefCounted() const;
  718. int Refs() const;
  719. void Remove();
  720. void RemoveAttributeAnimation(const String&);
  721. void RemoveInstanceDefault();
  722. void RemoveObjectAnimation();
  723. void ResetToDefault();
  724. bool Save(Serializer&) const;
  725. bool SaveDefaultAttributes() const;
  726. bool SaveJSON(JSONValue&) const;
  727. bool SaveXML(XMLElement&) const;
  728. void SendEvent(StringHash);
  729. void SendEvent(StringHash, VariantMap&);
  730. operator Serializable() const;
  731. void SetAlpha(float);
  732. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  733. void SetAnimationAttr(const String&);
  734. void SetAnimationEnabled(bool);
  735. void SetAnimationSet(AnimationSet2D);
  736. void SetAnimationSetAttr(const ResourceRef&);
  737. void SetAnimationTime(float);
  738. bool SetAttribute(const String&, const Variant&);
  739. bool SetAttribute(uint, const Variant&);
  740. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  741. void SetAttributeAnimationSpeed(const String&, float);
  742. void SetAttributeAnimationTime(const String&, float);
  743. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  744. void SetBasePass(uint);
  745. void SetBlendMode(BlendMode);
  746. void SetBlockEvents(bool);
  747. void SetCastShadows(bool);
  748. void SetColor(const Color&);
  749. void SetCustomMaterial(Material);
  750. void SetCustomMaterialAttr(const ResourceRef&);
  751. void SetDrawDistance(float);
  752. void SetDrawRect(const Rect&);
  753. void SetEnabled(bool);
  754. void SetEntity(const String&);
  755. void SetFlip(bool, bool, bool = false);
  756. void SetFlipX(bool);
  757. void SetFlipY(bool);
  758. void SetGlobalVar(StringHash, const Variant&);
  759. void SetHotSpot(const Vector2&);
  760. void SetInstanceDefault(bool);
  761. void SetInterceptNetworkUpdate(const String&, bool);
  762. void SetLayer(int);
  763. void SetLightMask(uint);
  764. void SetLodBias(float);
  765. void SetLoopMode(LoopMode2D);
  766. void SetMaxLights(uint);
  767. void SetMinMaxZ(float, float);
  768. void SetObjectAnimation(ObjectAnimation);
  769. void SetObjectAnimationAttr(const ResourceRef&);
  770. void SetOccludee(bool);
  771. void SetOccluder(bool);
  772. void SetOrderInLayer(int);
  773. void SetShadowDistance(float);
  774. void SetShadowMask(uint);
  775. void SetSortValue(float);
  776. void SetSpeed(float);
  777. void SetSprite(Sprite2D);
  778. void SetSpriteAttr(const ResourceRef&);
  779. void SetSwapXY(bool);
  780. void SetTemporary(bool);
  781. void SetTextureRect(const Rect&);
  782. void SetUseDrawRect(bool);
  783. void SetUseHotSpot(bool);
  784. void SetUseTextureRect(bool);
  785. void SetViewMask(uint);
  786. void SetZone(Zone, bool = false);
  787. void SetZoneMask(uint);
  788. operator StaticSprite2D() const;
  789. const String& GetAnimation() const;
  790. const String& GetCategory() const;
  791. const String& GetEntity() const;
  792. const String& GetTypeName() const;
  793. void UnsubscribeFromAllEvents();
  794. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  795. void UnsubscribeFromEvent(Object, StringHash);
  796. void UnsubscribeFromEvent(StringHash);
  797. void UnsubscribeFromEvents(Object);
  798. void Update(const FrameInfo&);
  799. void UpdateBatches(const FrameInfo&);
  800. void UpdateGeometry(const FrameInfo&);
  801. const Variant& GetGlobalVar(StringHash) const;
  802. const VariantMap& GetGlobalVars() const;
  803. const Vector2& GetHotSpot() const;
  804. int WeakRefs() const;
  805. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  806. void WriteInitialDeltaUpdate(Serializer&, uint8);
  807. void WriteLatestDataUpdate(Serializer&, uint8);
  808. operator const Animatable() const;
  809. operator const Component() const;
  810. operator const Drawable2D() const;
  811. operator const Drawable() const;
  812. operator const Object() const;
  813. operator const RefCounted() const;
  814. operator const Serializable() const;
  815. operator const StaticSprite2D() const;
  816. // Properties:
  817. float alpha;
  818. String animation;
  819. bool animationEnabled;
  820. AnimationSet2D animationSet;
  821. /* readonly */
  822. Array<Variant> attributeDefaults;
  823. /* readonly */
  824. Array<AttributeInfo> attributeInfos;
  825. Array<Variant> attributes;
  826. BlendMode blendMode;
  827. /* readonly */
  828. BoundingBox boundingBox;
  829. bool castShadows;
  830. /* readonly */
  831. String category;
  832. Color color;
  833. Material customMaterial;
  834. float drawDistance;
  835. Rect drawRect;
  836. bool enabled;
  837. /* readonly */
  838. bool enabledEffective;
  839. String entity;
  840. bool flipX;
  841. bool flipY;
  842. Array<Variant> globalVar;
  843. /* readonly */
  844. VariantMap globalVars;
  845. Vector2 hotSpot;
  846. /* readonly */
  847. uint id;
  848. /* readonly */
  849. bool inView;
  850. int layer;
  851. uint lightMask;
  852. float lodBias;
  853. LoopMode2D loopMode;
  854. uint maxLights;
  855. /* readonly */
  856. Node node;
  857. /* readonly */
  858. uint numAttributes;
  859. ObjectAnimation objectAnimation;
  860. bool occludee;
  861. bool occluder;
  862. int orderInLayer;
  863. /* readonly */
  864. int refs;
  865. /* readonly */
  866. bool replicated;
  867. float shadowDistance;
  868. uint shadowMask;
  869. float speed;
  870. Sprite2D sprite;
  871. bool swapXY;
  872. bool temporary;
  873. Rect textureRect;
  874. /* readonly */
  875. StringHash type;
  876. /* readonly */
  877. String typeName;
  878. bool useDrawRect;
  879. bool useHotSpot;
  880. bool useTextureRect;
  881. uint viewMask;
  882. /* readonly */
  883. int weakRefs;
  884. /* readonly */
  885. BoundingBox worldBoundingBox;
  886. /* readonly */
  887. Zone zone;
  888. uint zoneMask;
  889. };
  890. class Animation
  891. {
  892. public:
  893. Animation();
  894. // Methods:
  895. void AddMetadata(const String&, const Variant&);
  896. void AddTrigger(const AnimationTriggerPoint&);
  897. void AddTrigger(float, bool, const Variant&);
  898. bool BeginLoad(Deserializer&);
  899. Animation Clone(const String& = String :: EMPTY) const;
  900. AnimationTrack CreateTrack(const String&);
  901. bool EndLoad();
  902. StringHash GetAnimationNameHash() const;
  903. AsyncLoadState GetAsyncLoadState() const;
  904. bool GetBlockEvents() const;
  905. VariantMap& GetEventDataMap() const;
  906. Object GetEventSender() const;
  907. float GetLength() const;
  908. uint GetMemoryUse() const;
  909. StringHash GetNameHash() const;
  910. uint GetNumTracks() const;
  911. uint GetNumTriggers() const;
  912. Object GetSubsystem(StringHash) const;
  913. AnimationTrack GetTrack(StringHash);
  914. AnimationTrack GetTrack(const String&);
  915. AnimationTrack GetTrack(uint);
  916. StringHash GetType() const;
  917. uint GetUseTimer();
  918. bool HasEventHandlers() const;
  919. bool HasMetadata() const;
  920. bool HasSubscribedToEvent(Object, StringHash) const;
  921. bool HasSubscribedToEvent(StringHash) const;
  922. bool IsInstanceOf(StringHash) const;
  923. bool Load(Deserializer&);
  924. bool Load(File);
  925. bool Load(VectorBuffer&);
  926. bool Load(const String&);
  927. bool LoadFile(const String&);
  928. operator Object() const;
  929. void OnEvent(Object, StringHash, VariantMap&);
  930. operator RefCounted() const;
  931. int Refs() const;
  932. void RemoveAllMetadata();
  933. void RemoveAllTracks();
  934. void RemoveAllTriggers();
  935. void RemoveMetadata(const String&);
  936. bool RemoveTrack(const String&);
  937. void RemoveTrigger(uint);
  938. void ResetUseTimer();
  939. operator Resource() const;
  940. operator ResourceWithMetadata() const;
  941. bool Save(File) const;
  942. bool Save(Serializer&) const;
  943. bool Save(VectorBuffer&) const;
  944. bool Save(const String&) const;
  945. bool SaveFile(const String&) const;
  946. void SendEvent(StringHash);
  947. void SendEvent(StringHash, VariantMap&);
  948. void SetAnimationName(const String&);
  949. void SetAsyncLoadState(AsyncLoadState);
  950. void SetBlockEvents(bool);
  951. void SetGlobalVar(StringHash, const Variant&);
  952. void SetLength(float);
  953. void SetMemoryUse(uint);
  954. void SetName(const String&);
  955. void SetNumTriggers(uint);
  956. void SetTrigger(uint, const AnimationTriggerPoint&);
  957. const String& GetAnimationName() const;
  958. const String& GetCategory() const;
  959. const String& GetName() const;
  960. const String& GetTypeName() const;
  961. void UnsubscribeFromAllEvents();
  962. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  963. void UnsubscribeFromEvent(Object, StringHash);
  964. void UnsubscribeFromEvent(StringHash);
  965. void UnsubscribeFromEvents(Object);
  966. const Variant& GetGlobalVar(StringHash) const;
  967. const Variant& GetMetadata(const String&) const;
  968. const VariantMap& GetGlobalVars() const;
  969. int WeakRefs() const;
  970. operator const Object() const;
  971. operator const RefCounted() const;
  972. operator const Resource() const;
  973. operator const ResourceWithMetadata() const;
  974. // Properties:
  975. String animationName;
  976. /* readonly */
  977. String category;
  978. Array<Variant> globalVar;
  979. /* readonly */
  980. VariantMap globalVars;
  981. /* readonly */
  982. bool hasMetadata;
  983. float length;
  984. /* readonly */
  985. uint memoryUse;
  986. Array<Variant> metadata;
  987. String name;
  988. /* readonly */
  989. uint numTracks;
  990. uint numTriggers;
  991. /* readonly */
  992. int refs;
  993. /* readonly */
  994. Array<AnimationTrack> tracks;
  995. Array<AnimationTriggerPoint> triggers;
  996. /* readonly */
  997. StringHash type;
  998. /* readonly */
  999. String typeName;
  1000. /* readonly */
  1001. uint useTimer;
  1002. /* readonly */
  1003. int weakRefs;
  1004. };
  1005. class AnimationControl
  1006. {
  1007. public:
  1008. // Methods:
  1009. AnimationControl& operator=(const AnimationControl&);
  1010. // Properties:
  1011. float autoFadeTime;
  1012. float fadeTime;
  1013. StringHash hash;
  1014. String name;
  1015. bool removeOnCompletion;
  1016. uint16 setTime;
  1017. uint8 setTimeRev;
  1018. float setTimeTtl;
  1019. uint8 setWeight;
  1020. uint8 setWeightRev;
  1021. float setWeightTtl;
  1022. float speed;
  1023. float targetWeight;
  1024. };
  1025. class AnimationController
  1026. {
  1027. public:
  1028. AnimationController();
  1029. // Methods:
  1030. void AllocateNetworkState();
  1031. operator Animatable() const;
  1032. void ApplyAttributes();
  1033. void CleanupConnection(Connection);
  1034. operator Component() const;
  1035. void DrawDebugGeometry(DebugRenderer, bool);
  1036. bool Fade(const String&, float, float);
  1037. bool FadeOthers(const String&, float, float);
  1038. bool GetAnimationEnabled() const;
  1039. AnimationState GetAnimationState(StringHash) const;
  1040. AnimationState GetAnimationState(const String&) const;
  1041. Variant GetAttribute(const String&) const;
  1042. Variant GetAttribute(uint) const;
  1043. ValueAnimation GetAttributeAnimation(const String&) const;
  1044. float GetAttributeAnimationSpeed(const String&) const;
  1045. float GetAttributeAnimationTime(const String&) const;
  1046. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1047. Variant GetAttributeDefault(const String&) const;
  1048. Variant GetAttributeDefault(uint) const;
  1049. float GetAutoFade(const String&) const;
  1050. AnimationBlendMode GetBlendMode(const String&) const;
  1051. bool GetBlockEvents() const;
  1052. Component GetComponent(StringHash) const;
  1053. VariantMap& GetEventDataMap() const;
  1054. Object GetEventSender() const;
  1055. float GetFadeTarget(const String&) const;
  1056. float GetFadeTime(const String&) const;
  1057. uint GetID() const;
  1058. bool GetInterceptNetworkUpdate(const String&) const;
  1059. uint8 GetLayer(const String&) const;
  1060. float GetLength(const String&) const;
  1061. Node GetNode() const;
  1062. uint GetNumAttributes() const;
  1063. uint GetNumNetworkAttributes() const;
  1064. ObjectAnimation GetObjectAnimation() const;
  1065. ResourceRef GetObjectAnimationAttr() const;
  1066. bool GetRemoveOnCompletion(const String&) const;
  1067. Scene GetScene() const;
  1068. float GetSpeed(const String&) const;
  1069. Bone GetStartBone(const String&) const;
  1070. Object GetSubsystem(StringHash) const;
  1071. float GetTime(const String&) const;
  1072. StringHash GetType() const;
  1073. float GetWeight(const String&) const;
  1074. bool HasEventHandlers() const;
  1075. bool HasSubscribedToEvent(Object, StringHash) const;
  1076. bool HasSubscribedToEvent(StringHash) const;
  1077. bool IsAtEnd(const String&) const;
  1078. bool IsEnabled() const;
  1079. bool IsEnabledEffective() const;
  1080. bool IsFadingIn(const String&) const;
  1081. bool IsFadingOut(const String&) const;
  1082. bool IsInstanceOf(StringHash) const;
  1083. bool IsLooped(const String&) const;
  1084. bool IsPlaying(const String&) const;
  1085. bool IsPlaying(uint8) const;
  1086. bool IsReplicated() const;
  1087. bool IsTemporary() const;
  1088. bool Load(Deserializer&);
  1089. bool LoadJSON(const JSONValue&);
  1090. bool LoadXML(const XMLElement&);
  1091. void MarkNetworkUpdate();
  1092. operator Object() const;
  1093. void OnEvent(Object, StringHash, VariantMap&);
  1094. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  1095. void OnSetAttribute(const AttributeInfo&, const Variant&);
  1096. void OnSetEnabled();
  1097. bool Play(const String&, uint8, bool, float = 0.0f);
  1098. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  1099. void PrepareNetworkUpdate();
  1100. bool ReadDeltaUpdate(Deserializer&);
  1101. bool ReadLatestDataUpdate(Deserializer&);
  1102. operator RefCounted() const;
  1103. int Refs() const;
  1104. void Remove();
  1105. void RemoveAttributeAnimation(const String&);
  1106. void RemoveInstanceDefault();
  1107. void RemoveObjectAnimation();
  1108. void ResetToDefault();
  1109. bool Save(Serializer&) const;
  1110. bool SaveDefaultAttributes() const;
  1111. bool SaveJSON(JSONValue&) const;
  1112. bool SaveXML(XMLElement&) const;
  1113. void SendEvent(StringHash);
  1114. void SendEvent(StringHash, VariantMap&);
  1115. operator Serializable() const;
  1116. void SetAnimationEnabled(bool);
  1117. void SetAnimationTime(float);
  1118. bool SetAttribute(const String&, const Variant&);
  1119. bool SetAttribute(uint, const Variant&);
  1120. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1121. void SetAttributeAnimationSpeed(const String&, float);
  1122. void SetAttributeAnimationTime(const String&, float);
  1123. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1124. bool SetAutoFade(const String&, float);
  1125. bool SetBlendMode(const String&, AnimationBlendMode);
  1126. void SetBlockEvents(bool);
  1127. void SetEnabled(bool);
  1128. void SetGlobalVar(StringHash, const Variant&);
  1129. void SetInstanceDefault(bool);
  1130. void SetInterceptNetworkUpdate(const String&, bool);
  1131. bool SetLayer(const String&, uint8);
  1132. bool SetLooped(const String&, bool);
  1133. void SetObjectAnimation(ObjectAnimation);
  1134. void SetObjectAnimationAttr(const ResourceRef&);
  1135. bool SetRemoveOnCompletion(const String&, bool);
  1136. bool SetSpeed(const String&, float);
  1137. bool SetStartBone(const String&, const String&);
  1138. void SetTemporary(bool);
  1139. bool SetTime(const String&, float);
  1140. bool SetWeight(const String&, float);
  1141. bool Stop(const String&, float = 0.0f);
  1142. void StopAll(float = 0.0f);
  1143. void StopLayer(uint8, float = 0.0f);
  1144. const String& GetCategory() const;
  1145. const String& GetStartBoneName(const String&) const;
  1146. const String& GetTypeName() const;
  1147. void UnsubscribeFromAllEvents();
  1148. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1149. void UnsubscribeFromEvent(Object, StringHash);
  1150. void UnsubscribeFromEvent(StringHash);
  1151. void UnsubscribeFromEvents(Object);
  1152. void Update(float);
  1153. const Variant& GetGlobalVar(StringHash) const;
  1154. const VariantMap& GetGlobalVars() const;
  1155. int WeakRefs() const;
  1156. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  1157. void WriteInitialDeltaUpdate(Serializer&, uint8);
  1158. void WriteLatestDataUpdate(Serializer&, uint8);
  1159. operator const Animatable() const;
  1160. operator const Component() const;
  1161. operator const Object() const;
  1162. operator const RefCounted() const;
  1163. operator const Serializable() const;
  1164. // Properties:
  1165. bool animationEnabled;
  1166. /* readonly */
  1167. Array<AnimationControl> animations;
  1168. /* readonly */
  1169. Array<Variant> attributeDefaults;
  1170. /* readonly */
  1171. Array<AttributeInfo> attributeInfos;
  1172. Array<Variant> attributes;
  1173. /* readonly */
  1174. String category;
  1175. bool enabled;
  1176. /* readonly */
  1177. bool enabledEffective;
  1178. Array<Variant> globalVar;
  1179. /* readonly */
  1180. VariantMap globalVars;
  1181. /* readonly */
  1182. uint id;
  1183. /* readonly */
  1184. Node node;
  1185. /* readonly */
  1186. uint numAnimations;
  1187. /* readonly */
  1188. uint numAttributes;
  1189. ObjectAnimation objectAnimation;
  1190. /* readonly */
  1191. int refs;
  1192. /* readonly */
  1193. bool replicated;
  1194. bool temporary;
  1195. /* readonly */
  1196. StringHash type;
  1197. /* readonly */
  1198. String typeName;
  1199. /* readonly */
  1200. int weakRefs;
  1201. };
  1202. class AnimationKeyFrame
  1203. {
  1204. public:
  1205. ~AnimationKeyFrame();
  1206. AnimationKeyFrame();
  1207. // Methods:
  1208. AnimationKeyFrame& operator=(const AnimationKeyFrame&);
  1209. // Properties:
  1210. Vector3 position;
  1211. Quaternion rotation;
  1212. Vector3 scale;
  1213. float time;
  1214. };
  1215. class AnimationSet2D
  1216. {
  1217. public:
  1218. AnimationSet2D();
  1219. // Methods:
  1220. bool BeginLoad(Deserializer&);
  1221. bool EndLoad();
  1222. String GetAnimation(uint) const;
  1223. AsyncLoadState GetAsyncLoadState() const;
  1224. bool GetBlockEvents() const;
  1225. VariantMap& GetEventDataMap() const;
  1226. Object GetEventSender() const;
  1227. uint GetMemoryUse() const;
  1228. StringHash GetNameHash() const;
  1229. uint GetNumAnimations() const;
  1230. Sprite2D GetSprite() const;
  1231. Sprite2D GetSpriterFileSprite(int, int) const;
  1232. Object GetSubsystem(StringHash) const;
  1233. StringHash GetType() const;
  1234. uint GetUseTimer();
  1235. bool HasAnimation(const String&) const;
  1236. bool HasEventHandlers() const;
  1237. bool HasSubscribedToEvent(Object, StringHash) const;
  1238. bool HasSubscribedToEvent(StringHash) const;
  1239. bool IsInstanceOf(StringHash) const;
  1240. bool Load(Deserializer&);
  1241. bool Load(File);
  1242. bool Load(VectorBuffer&);
  1243. bool Load(const String&);
  1244. bool LoadFile(const String&);
  1245. operator Object() const;
  1246. void OnEvent(Object, StringHash, VariantMap&);
  1247. operator RefCounted() const;
  1248. int Refs() const;
  1249. void ResetUseTimer();
  1250. operator Resource() const;
  1251. bool Save(File) const;
  1252. bool Save(Serializer&) const;
  1253. bool Save(VectorBuffer&) const;
  1254. bool Save(const String&) const;
  1255. bool SaveFile(const String&) const;
  1256. void SendEvent(StringHash);
  1257. void SendEvent(StringHash, VariantMap&);
  1258. void SetAsyncLoadState(AsyncLoadState);
  1259. void SetBlockEvents(bool);
  1260. void SetGlobalVar(StringHash, const Variant&);
  1261. void SetMemoryUse(uint);
  1262. void SetName(const String&);
  1263. const String& GetCategory() const;
  1264. const String& GetName() const;
  1265. const String& GetTypeName() const;
  1266. void UnsubscribeFromAllEvents();
  1267. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1268. void UnsubscribeFromEvent(Object, StringHash);
  1269. void UnsubscribeFromEvent(StringHash);
  1270. void UnsubscribeFromEvents(Object);
  1271. const Variant& GetGlobalVar(StringHash) const;
  1272. const VariantMap& GetGlobalVars() const;
  1273. int WeakRefs() const;
  1274. operator const Object() const;
  1275. operator const RefCounted() const;
  1276. operator const Resource() const;
  1277. // Properties:
  1278. /* readonly */
  1279. String category;
  1280. Array<Variant> globalVar;
  1281. /* readonly */
  1282. VariantMap globalVars;
  1283. /* readonly */
  1284. uint memoryUse;
  1285. String name;
  1286. /* readonly */
  1287. uint numAnimations;
  1288. /* readonly */
  1289. int refs;
  1290. /* readonly */
  1291. StringHash type;
  1292. /* readonly */
  1293. String typeName;
  1294. /* readonly */
  1295. uint useTimer;
  1296. /* readonly */
  1297. int weakRefs;
  1298. };
  1299. class AnimationState
  1300. {
  1301. public:
  1302. AnimationState(AnimatedModel&, Animation&);
  1303. AnimationState(Node&, Animation&);
  1304. // Methods:
  1305. void AddTime(float);
  1306. void AddWeight(float);
  1307. void Apply();
  1308. Animation GetAnimation() const;
  1309. AnimationBlendMode GetBlendMode() const;
  1310. float GetBoneWeight(StringHash) const;
  1311. float GetBoneWeight(const String&) const;
  1312. float GetBoneWeight(uint) const;
  1313. uint8 GetLayer() const;
  1314. float GetLength() const;
  1315. AnimatedModel GetModel() const;
  1316. Node GetNode() const;
  1317. Bone GetStartBone() const;
  1318. float GetTime() const;
  1319. uint GetTrackIndex(Node) const;
  1320. uint GetTrackIndex(StringHash) const;
  1321. uint GetTrackIndex(const String&) const;
  1322. float GetWeight() const;
  1323. bool IsEnabled() const;
  1324. bool IsLooped() const;
  1325. operator RefCounted() const;
  1326. int Refs() const;
  1327. void SetBlendMode(AnimationBlendMode);
  1328. void SetBoneWeight(StringHash, float, bool = false);
  1329. void SetBoneWeight(const String&, float, bool = false);
  1330. void SetBoneWeight(uint, float, bool = false);
  1331. void SetLayer(uint8);
  1332. void SetLooped(bool);
  1333. void SetStartBone(Bone);
  1334. void SetTime(float);
  1335. void SetWeight(float);
  1336. int WeakRefs() const;
  1337. operator const RefCounted() const;
  1338. // Properties:
  1339. /* readonly */
  1340. Animation animation;
  1341. AnimationBlendMode blendMode;
  1342. Array<float> boneWeights;
  1343. /* readonly */
  1344. bool enabled;
  1345. uint8 layer;
  1346. /* readonly */
  1347. float length;
  1348. bool looped;
  1349. /* readonly */
  1350. AnimatedModel model;
  1351. /* readonly */
  1352. Node node;
  1353. /* readonly */
  1354. int refs;
  1355. Bone startBone;
  1356. float time;
  1357. /* readonly */
  1358. int weakRefs;
  1359. float weight;
  1360. };
  1361. class AnimationStateTrack
  1362. {
  1363. public:
  1364. ~AnimationStateTrack();
  1365. AnimationStateTrack();
  1366. // Methods:
  1367. AnimationStateTrack& operator=(const AnimationStateTrack&);
  1368. // Properties:
  1369. uint keyFrame;
  1370. float weight;
  1371. };
  1372. class AnimationTrack
  1373. {
  1374. public:
  1375. // Methods:
  1376. AnimationTrack& operator=(const AnimationTrack&);
  1377. void AddKeyFrame(const AnimationKeyFrame&);
  1378. bool GetKeyFrameIndex(float, uint&) const;
  1379. uint GetNumKeyFrames() const;
  1380. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  1381. void RemoveAllKeyFrames();
  1382. void RemoveKeyFrame(uint);
  1383. void SetKeyFrame(uint, const AnimationKeyFrame&);
  1384. // Properties:
  1385. uint8 channelMask;
  1386. Array<AnimationKeyFrame> keyFrames;
  1387. String name;
  1388. StringHash nameHash;
  1389. /* readonly */
  1390. uint numKeyFrames;
  1391. };
  1392. class AnimationTriggerPoint
  1393. {
  1394. public:
  1395. ~AnimationTriggerPoint();
  1396. AnimationTriggerPoint();
  1397. // Methods:
  1398. AnimationTriggerPoint& operator=(const AnimationTriggerPoint&);
  1399. // Properties:
  1400. Variant data;
  1401. float time;
  1402. };
  1403. class AreaAllocator
  1404. {
  1405. public:
  1406. ~AreaAllocator();
  1407. AreaAllocator();
  1408. AreaAllocator(int, int, bool = true);
  1409. AreaAllocator(int, int, int, int, bool = true);
  1410. // Methods:
  1411. AreaAllocator& operator=(const AreaAllocator&);
  1412. bool Allocate(int, int, int&, int&);
  1413. bool GetFastMode() const;
  1414. int GetHeight() const;
  1415. int GetWidth() const;
  1416. void Reset(int, int, int = 0, int = 0, bool = true);
  1417. };
  1418. template <typename T>
  1419. class Array
  1420. {
  1421. public:
  1422. Array(int&in);
  1423. Array(int&in, uint);
  1424. Array(int&in, uint, const T&in);
  1425. // Methods:
  1426. Array<Array<T>& operator=(const T>&);
  1427. bool operator==(const Array<T>&) const;
  1428. T& operator[](uint);
  1429. void Clear();
  1430. void Erase(uint);
  1431. int Find(const T&) const;
  1432. int Find(uint, const T&) const;
  1433. int FindByRef(const T&) const;
  1434. int FindByRef(uint, const T&) const;
  1435. void Insert(uint, const T&);
  1436. void Pop();
  1437. void Push(const T&);
  1438. void Reserve(uint);
  1439. void Resize(uint);
  1440. void Reverse();
  1441. void Sort();
  1442. void Sort(uint, uint);
  1443. void SortReverse();
  1444. void SortReverse(uint, uint);
  1445. bool Swap(Array<T>&);
  1446. const T& operator[](uint) const;
  1447. // Properties:
  1448. /* readonly */
  1449. bool empty;
  1450. uint length;
  1451. };
  1452. class AsyncProgress
  1453. {
  1454. public:
  1455. ~AsyncProgress();
  1456. AsyncProgress();
  1457. // Methods:
  1458. AsyncProgress& operator=(const AsyncProgress&);
  1459. // Properties:
  1460. uint jsonIndex;
  1461. uint loadedNodes;
  1462. uint loadedResources;
  1463. LoadMode mode;
  1464. uint totalNodes;
  1465. uint totalResources;
  1466. XMLElement xmlElement;
  1467. };
  1468. class AttributeAccessor
  1469. {
  1470. public:
  1471. // Methods:
  1472. void Get(Serializable, Variant&) const;
  1473. operator RefCounted() const;
  1474. int Refs() const;
  1475. void Set(Serializable, const Variant&);
  1476. int WeakRefs() const;
  1477. operator const RefCounted() const;
  1478. // Properties:
  1479. /* readonly */
  1480. int refs;
  1481. /* readonly */
  1482. int weakRefs;
  1483. };
  1484. class AttributeAnimationInfo
  1485. {
  1486. public:
  1487. AttributeAnimationInfo(Animatable&, const AttributeInfo&in, ValueAnimation&, WrapMode, float);
  1488. AttributeAnimationInfo(const AttributeAnimationInfo&in);
  1489. // Methods:
  1490. const AttributeInfo& GetAttributeInfo() const;
  1491. ValueAnimation GetAnimation() const;
  1492. float GetSpeed() const;
  1493. Object GetTarget() const;
  1494. float GetTime() const;
  1495. WrapMode GetWrapMode() const;
  1496. operator RefCounted() const;
  1497. int Refs() const;
  1498. void SetSpeed(float);
  1499. bool SetTime(float);
  1500. void SetWrapMode(WrapMode);
  1501. bool Update(float);
  1502. operator ValueAnimationInfo() const;
  1503. int WeakRefs() const;
  1504. operator const RefCounted() const;
  1505. operator const ValueAnimationInfo() const;
  1506. // Properties:
  1507. /* readonly */
  1508. int refs;
  1509. /* readonly */
  1510. int weakRefs;
  1511. };
  1512. class AttributeInfo
  1513. {
  1514. public:
  1515. ~AttributeInfo();
  1516. AttributeInfo();
  1517. // Methods:
  1518. AttributeInfo& operator=(const AttributeInfo&);
  1519. const Variant& GetMetadata(const StringHash&) const;
  1520. // Properties:
  1521. Variant defaultValue;
  1522. /* readonly */
  1523. Array<String> enumNames;
  1524. VariantMap metadata;
  1525. int mode;
  1526. String name;
  1527. VariantType type;
  1528. };
  1529. class Audio
  1530. {
  1531. public:
  1532. Audio();
  1533. // Methods:
  1534. void AddSoundSource(SoundSource);
  1535. bool GetBlockEvents() const;
  1536. VariantMap& GetEventDataMap() const;
  1537. Object GetEventSender() const;
  1538. bool GetInterpolation() const;
  1539. SoundListener GetListener() const;
  1540. float GetMasterGain(const String&) const;
  1541. int GetMixRate() const;
  1542. Mutex& GetMutex();
  1543. uint GetSampleSize() const;
  1544. float GetSoundSourceMasterGain(StringHash) const;
  1545. Array<SoundSource> GetSoundSources() const;
  1546. Object GetSubsystem(StringHash) const;
  1547. StringHash GetType() const;
  1548. bool HasEventHandlers() const;
  1549. bool HasMasterGain(const String&) const;
  1550. bool HasSubscribedToEvent(Object, StringHash) const;
  1551. bool HasSubscribedToEvent(StringHash) const;
  1552. bool IsInitialized() const;
  1553. bool IsInstanceOf(StringHash) const;
  1554. bool IsPlaying() const;
  1555. bool IsSoundTypePaused(const String&) const;
  1556. bool IsStereo() const;
  1557. operator Object() const;
  1558. void OnEvent(Object, StringHash, VariantMap&);
  1559. void PauseSoundType(const String&);
  1560. bool Play();
  1561. operator RefCounted() const;
  1562. int Refs() const;
  1563. void RemoveSoundSource(SoundSource);
  1564. void ResumeAll();
  1565. void ResumeSoundType(const String&);
  1566. void SendEvent(StringHash);
  1567. void SendEvent(StringHash, VariantMap&);
  1568. void SetBlockEvents(bool);
  1569. void SetGlobalVar(StringHash, const Variant&);
  1570. void SetListener(SoundListener);
  1571. void SetMasterGain(const String&, float);
  1572. bool SetMode(int, int, bool, bool = true);
  1573. void Stop();
  1574. void StopSound(Sound);
  1575. const String& GetCategory() const;
  1576. const String& GetTypeName() const;
  1577. void UnsubscribeFromAllEvents();
  1578. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1579. void UnsubscribeFromEvent(Object, StringHash);
  1580. void UnsubscribeFromEvent(StringHash);
  1581. void UnsubscribeFromEvents(Object);
  1582. void Update(float);
  1583. const Variant& GetGlobalVar(StringHash) const;
  1584. const VariantMap& GetGlobalVars() const;
  1585. int WeakRefs() const;
  1586. operator const Object() const;
  1587. operator const RefCounted() const;
  1588. // Properties:
  1589. /* readonly */
  1590. String category;
  1591. Array<Variant> globalVar;
  1592. /* readonly */
  1593. VariantMap globalVars;
  1594. /* readonly */
  1595. bool initialized;
  1596. /* readonly */
  1597. bool interpolation;
  1598. SoundListener listener;
  1599. Array<float> masterGain;
  1600. /* readonly */
  1601. int mixRate;
  1602. /* readonly */
  1603. bool playing;
  1604. /* readonly */
  1605. int refs;
  1606. /* readonly */
  1607. uint sampleSize;
  1608. /* readonly */
  1609. bool stereo;
  1610. /* readonly */
  1611. StringHash type;
  1612. /* readonly */
  1613. String typeName;
  1614. /* readonly */
  1615. int weakRefs;
  1616. };
  1617. class BackgroundLoadItem
  1618. {
  1619. public:
  1620. ~BackgroundLoadItem();
  1621. BackgroundLoadItem();
  1622. // Methods:
  1623. BackgroundLoadItem& operator=(const BackgroundLoadItem&);
  1624. // Properties:
  1625. bool sendEventOnFailure;
  1626. };
  1627. class Batch
  1628. {
  1629. public:
  1630. ~Batch();
  1631. Batch();
  1632. Batch(const SourceBatch&in);
  1633. // Methods:
  1634. Batch& operator=(const Batch&);
  1635. void CalculateSortKey();
  1636. void Draw(View, Camera, bool) const;
  1637. void Prepare(View, Camera, bool, bool) const;
  1638. // Properties:
  1639. float distance;
  1640. GeometryType geometryType;
  1641. bool isBase;
  1642. uint8 lightMask;
  1643. uint numWorldTransforms;
  1644. uint8 renderOrder;
  1645. uint64 sortKey;
  1646. };
  1647. class BatchGroup
  1648. {
  1649. public:
  1650. ~BatchGroup();
  1651. BatchGroup();
  1652. BatchGroup(const Batch&in);
  1653. // Methods:
  1654. BatchGroup& operator=(const BatchGroup&);
  1655. void AddTransforms(const Batch&);
  1656. void CalculateSortKey();
  1657. void Draw(View, Camera, bool) const;
  1658. void Prepare(View, Camera, bool, bool) const;
  1659. // Properties:
  1660. float distance;
  1661. GeometryType geometryType;
  1662. bool isBase;
  1663. uint8 lightMask;
  1664. uint numWorldTransforms;
  1665. uint8 renderOrder;
  1666. uint64 sortKey;
  1667. uint startIndex;
  1668. };
  1669. class BatchGroupKey
  1670. {
  1671. public:
  1672. ~BatchGroupKey();
  1673. BatchGroupKey();
  1674. BatchGroupKey(const Batch&in);
  1675. // Methods:
  1676. BatchGroupKey& operator=(const BatchGroupKey&);
  1677. bool operator==(const BatchGroupKey&) const;
  1678. uint ToHash() const;
  1679. // Properties:
  1680. uint8 renderOrder;
  1681. };
  1682. class BatchQueue
  1683. {
  1684. public:
  1685. ~BatchQueue();
  1686. BatchQueue();
  1687. // Methods:
  1688. BatchQueue& operator=(const BatchQueue&);
  1689. void Clear(int);
  1690. void Draw(View, Camera, bool, bool, bool) const;
  1691. uint GetNumInstances() const;
  1692. bool IsEmpty() const;
  1693. void SortBackToFront();
  1694. void SortFrontToBack();
  1695. // Properties:
  1696. bool hasExtraDefines;
  1697. uint maxSortedInstances;
  1698. String psExtraDefines;
  1699. StringHash psExtraDefinesHash;
  1700. String vsExtraDefines;
  1701. StringHash vsExtraDefinesHash;
  1702. };
  1703. class BiasParameters
  1704. {
  1705. public:
  1706. BiasParameters();
  1707. BiasParameters(float, float, float = 0.0f);
  1708. // Methods:
  1709. BiasParameters& operator=(const BiasParameters&);
  1710. void Validate();
  1711. // Properties:
  1712. float constantBias;
  1713. float normalOffset;
  1714. float slopeScaledBias;
  1715. };
  1716. class BigInt
  1717. {
  1718. public:
  1719. ~BigInt();
  1720. BigInt();
  1721. BigInt(const String&in);
  1722. BigInt(int);
  1723. BigInt(int64);
  1724. BigInt(uint);
  1725. BigInt(uint64);
  1726. // Methods:
  1727. BigInt operator+(const BigInt&) const;
  1728. BigInt& operator++();
  1729. BigInt operator++(int);
  1730. BigInt& operator+=(const BigInt&);
  1731. int operator<(const BigInt&) const;
  1732. BigInt& operator=(const BigInt&);
  1733. bool operator==(const BigInt&) const;
  1734. bool IsNegative() const;
  1735. bool IsPositive() const;
  1736. bool IsZero() const;
  1737. String ToString() const;
  1738. };
  1739. class Billboard
  1740. {
  1741. public:
  1742. // Methods:
  1743. Billboard& operator=(const Billboard&);
  1744. // Properties:
  1745. Color color;
  1746. Vector3 direction;
  1747. bool enabled;
  1748. Vector3 position;
  1749. float rotation;
  1750. float screenScaleFactor;
  1751. Vector2 size;
  1752. float sortDistance;
  1753. Rect uv;
  1754. };
  1755. class BillboardSet
  1756. {
  1757. public:
  1758. BillboardSet();
  1759. // Methods:
  1760. void AddLight(Light);
  1761. void AddVertexLight(Light);
  1762. void AllocateNetworkState();
  1763. operator Animatable() const;
  1764. void ApplyAttributes();
  1765. const BoundingBox& GetBoundingBox() const;
  1766. const BoundingBox& GetWorldBoundingBox();
  1767. void CleanupConnection(Connection);
  1768. void Commit();
  1769. operator Component() const;
  1770. void DrawDebugGeometry(DebugRenderer, bool);
  1771. bool DrawOcclusion(OcclusionBuffer);
  1772. operator Drawable() const;
  1773. bool GetAnimationEnabled() const;
  1774. float GetAnimationLodBias() const;
  1775. Variant GetAttribute(const String&) const;
  1776. Variant GetAttribute(uint) const;
  1777. ValueAnimation GetAttributeAnimation(const String&) const;
  1778. float GetAttributeAnimationSpeed(const String&) const;
  1779. float GetAttributeAnimationTime(const String&) const;
  1780. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1781. Variant GetAttributeDefault(const String&) const;
  1782. Variant GetAttributeDefault(uint) const;
  1783. Billboard GetBillboard(uint);
  1784. bool GetBlockEvents() const;
  1785. bool GetCastShadows() const;
  1786. Component GetComponent(StringHash) const;
  1787. float GetDistance() const;
  1788. float GetDrawDistance() const;
  1789. uint8 GetDrawableFlags() const;
  1790. VariantMap& GetEventDataMap() const;
  1791. Object GetEventSender() const;
  1792. FaceCameraMode GetFaceCameraMode() const;
  1793. Light GetFirstLight() const;
  1794. uint GetID() const;
  1795. bool GetInterceptNetworkUpdate(const String&) const;
  1796. uint GetLightMask() const;
  1797. Array<Light> GetLights() const;
  1798. float GetLodBias() const;
  1799. float GetLodDistance() const;
  1800. Geometry GetLodGeometry(uint, uint);
  1801. Material GetMaterial() const;
  1802. ResourceRef GetMaterialAttr() const;
  1803. uint GetMaxLights() const;
  1804. float GetMaxZ() const;
  1805. float GetMinAngle() const;
  1806. float GetMinZ() const;
  1807. Node GetNode() const;
  1808. uint GetNumAttributes() const;
  1809. uint GetNumBillboards() const;
  1810. uint GetNumNetworkAttributes() const;
  1811. uint GetNumOccluderTriangles();
  1812. ObjectAnimation GetObjectAnimation() const;
  1813. ResourceRef GetObjectAnimationAttr() const;
  1814. Scene GetScene() const;
  1815. float GetShadowDistance() const;
  1816. uint GetShadowMask() const;
  1817. float GetSortValue() const;
  1818. Object GetSubsystem(StringHash) const;
  1819. StringHash GetType() const;
  1820. UpdateGeometryType GetUpdateGeometryType();
  1821. Array<Light> GetVertexLights() const;
  1822. uint GetViewMask() const;
  1823. Zone GetZone() const;
  1824. uint GetZoneMask() const;
  1825. bool HasBasePass(uint) const;
  1826. bool HasEventHandlers() const;
  1827. bool HasSubscribedToEvent(Object, StringHash) const;
  1828. bool HasSubscribedToEvent(StringHash) const;
  1829. bool IsEnabled() const;
  1830. bool IsEnabledEffective() const;
  1831. bool IsFixedScreenSize() const;
  1832. bool IsInView() const;
  1833. bool IsInView(Camera) const;
  1834. bool IsInView(const FrameInfo&, bool = false) const;
  1835. bool IsInstanceOf(StringHash) const;
  1836. bool IsOccludee() const;
  1837. bool IsOccluder() const;
  1838. bool IsRelative() const;
  1839. bool IsReplicated() const;
  1840. bool IsScaled() const;
  1841. bool IsSorted() const;
  1842. bool IsTemporary() const;
  1843. bool IsZoneDirty() const;
  1844. void LimitLights();
  1845. void LimitVertexLights(bool);
  1846. bool Load(Deserializer&);
  1847. bool LoadJSON(const JSONValue&);
  1848. bool LoadXML(const XMLElement&);
  1849. void MarkForUpdate();
  1850. void MarkInView(const FrameInfo&);
  1851. void MarkInView(uint);
  1852. void MarkNetworkUpdate();
  1853. operator Object() const;
  1854. void OnEvent(Object, StringHash, VariantMap&);
  1855. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  1856. void OnSetAttribute(const AttributeInfo&, const Variant&);
  1857. void OnSetEnabled();
  1858. operator ParticleEmitter() const;
  1859. void PrepareNetworkUpdate();
  1860. bool ReadDeltaUpdate(Deserializer&);
  1861. bool ReadLatestDataUpdate(Deserializer&);
  1862. operator RefCounted() const;
  1863. int Refs() const;
  1864. void Remove();
  1865. void RemoveAttributeAnimation(const String&);
  1866. void RemoveInstanceDefault();
  1867. void RemoveObjectAnimation();
  1868. void ResetToDefault();
  1869. bool Save(Serializer&) const;
  1870. bool SaveDefaultAttributes() const;
  1871. bool SaveJSON(JSONValue&) const;
  1872. bool SaveXML(XMLElement&) const;
  1873. void SendEvent(StringHash);
  1874. void SendEvent(StringHash, VariantMap&);
  1875. operator Serializable() const;
  1876. void SetAnimationEnabled(bool);
  1877. void SetAnimationLodBias(float);
  1878. void SetAnimationTime(float);
  1879. bool SetAttribute(const String&, const Variant&);
  1880. bool SetAttribute(uint, const Variant&);
  1881. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1882. void SetAttributeAnimationSpeed(const String&, float);
  1883. void SetAttributeAnimationTime(const String&, float);
  1884. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1885. void SetBasePass(uint);
  1886. void SetBlockEvents(bool);
  1887. void SetCastShadows(bool);
  1888. void SetDrawDistance(float);
  1889. void SetEnabled(bool);
  1890. void SetFaceCameraMode(FaceCameraMode);
  1891. void SetFixedScreenSize(bool);
  1892. void SetGlobalVar(StringHash, const Variant&);
  1893. void SetInstanceDefault(bool);
  1894. void SetInterceptNetworkUpdate(const String&, bool);
  1895. void SetLightMask(uint);
  1896. void SetLodBias(float);
  1897. void SetMaterial(Material);
  1898. void SetMaterialAttr(const ResourceRef&);
  1899. void SetMaxLights(uint);
  1900. void SetMinAngle(float);
  1901. void SetMinMaxZ(float, float);
  1902. void SetNumBillboards(uint);
  1903. void SetObjectAnimation(ObjectAnimation);
  1904. void SetObjectAnimationAttr(const ResourceRef&);
  1905. void SetOccludee(bool);
  1906. void SetOccluder(bool);
  1907. void SetRelative(bool);
  1908. void SetScaled(bool);
  1909. void SetShadowDistance(float);
  1910. void SetShadowMask(uint);
  1911. void SetSortValue(float);
  1912. void SetSorted(bool);
  1913. void SetTemporary(bool);
  1914. void SetViewMask(uint);
  1915. void SetZone(Zone, bool = false);
  1916. void SetZoneMask(uint);
  1917. const String& GetCategory() const;
  1918. const String& GetTypeName() const;
  1919. void UnsubscribeFromAllEvents();
  1920. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1921. void UnsubscribeFromEvent(Object, StringHash);
  1922. void UnsubscribeFromEvent(StringHash);
  1923. void UnsubscribeFromEvents(Object);
  1924. void Update(const FrameInfo&);
  1925. void UpdateBatches(const FrameInfo&);
  1926. void UpdateGeometry(const FrameInfo&);
  1927. const Variant& GetGlobalVar(StringHash) const;
  1928. const VariantMap& GetGlobalVars() const;
  1929. int WeakRefs() const;
  1930. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  1931. void WriteInitialDeltaUpdate(Serializer&, uint8);
  1932. void WriteLatestDataUpdate(Serializer&, uint8);
  1933. operator const Animatable() const;
  1934. operator const Component() const;
  1935. operator const Drawable() const;
  1936. operator const Object() const;
  1937. operator const ParticleEmitter() const;
  1938. operator const RefCounted() const;
  1939. operator const Serializable() const;
  1940. // Properties:
  1941. bool animationEnabled;
  1942. float animationLodBias;
  1943. /* readonly */
  1944. Array<Variant> attributeDefaults;
  1945. /* readonly */
  1946. Array<AttributeInfo> attributeInfos;
  1947. Array<Variant> attributes;
  1948. /* readonly */
  1949. Array<Billboard> billboards;
  1950. /* readonly */
  1951. BoundingBox boundingBox;
  1952. bool castShadows;
  1953. /* readonly */
  1954. String category;
  1955. float drawDistance;
  1956. bool enabled;
  1957. /* readonly */
  1958. bool enabledEffective;
  1959. FaceCameraMode faceCameraMode;
  1960. bool fixedScreenSize;
  1961. Array<Variant> globalVar;
  1962. /* readonly */
  1963. VariantMap globalVars;
  1964. /* readonly */
  1965. uint id;
  1966. /* readonly */
  1967. bool inView;
  1968. uint lightMask;
  1969. float lodBias;
  1970. Material material;
  1971. uint maxLights;
  1972. float minAngle;
  1973. /* readonly */
  1974. Node node;
  1975. /* readonly */
  1976. uint numAttributes;
  1977. uint numBillboards;
  1978. ObjectAnimation objectAnimation;
  1979. bool occludee;
  1980. bool occluder;
  1981. /* readonly */
  1982. int refs;
  1983. bool relative;
  1984. /* readonly */
  1985. bool replicated;
  1986. bool scaled;
  1987. float shadowDistance;
  1988. uint shadowMask;
  1989. bool sorted;
  1990. bool temporary;
  1991. /* readonly */
  1992. StringHash type;
  1993. /* readonly */
  1994. String typeName;
  1995. uint viewMask;
  1996. /* readonly */
  1997. int weakRefs;
  1998. /* readonly */
  1999. BoundingBox worldBoundingBox;
  2000. /* readonly */
  2001. Zone zone;
  2002. uint zoneMask;
  2003. };
  2004. class Bone
  2005. {
  2006. public:
  2007. // Methods:
  2008. Bone& operator=(const Bone&);
  2009. // Properties:
  2010. bool animated;
  2011. BoundingBox boundingBox;
  2012. uint8 collisionMask;
  2013. Vector3 initialPosition;
  2014. Quaternion initialRotation;
  2015. Vector3 initialScale;
  2016. String name;
  2017. StringHash nameHash;
  2018. Node node;
  2019. Matrix3x4 offsetMatrix;
  2020. uint parentIndex;
  2021. float radius;
  2022. };
  2023. class BorderImage
  2024. {
  2025. public:
  2026. BorderImage();
  2027. BorderImage(const String&in);
  2028. // Methods:
  2029. void AddChild(UIElement);
  2030. void AddTag(const String&);
  2031. void AddTags(Array<String>);
  2032. void AddTags(const String&, int8 = ';');
  2033. void AdjustScissor(IntRect&);
  2034. void AllocateNetworkState();
  2035. operator Animatable() const;
  2036. void ApplyAttributes();
  2037. void BringToFront();
  2038. operator Button() const;
  2039. operator CheckBox() const;
  2040. const Color& GetColor(Corner) const;
  2041. const Color& GetColorAttr() const;
  2042. const Color& GetDerivedColor() const;
  2043. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  2044. operator Cursor() const;
  2045. void DisableLayoutUpdate();
  2046. operator DropDownList() const;
  2047. IntVector2 ElementToScreen(const IntVector2&);
  2048. void EnableLayoutUpdate();
  2049. bool FilterAttributes(XMLElement&) const;
  2050. uint FindChild(UIElement) const;
  2051. bool GetAnimationEnabled() const;
  2052. Variant GetAttribute(const String&) const;
  2053. Variant GetAttribute(uint) const;
  2054. ValueAnimation GetAttributeAnimation(const String&) const;
  2055. float GetAttributeAnimationSpeed(const String&) const;
  2056. float GetAttributeAnimationTime(const String&) const;
  2057. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2058. Variant GetAttributeDefault(const String&) const;
  2059. Variant GetAttributeDefault(uint) const;
  2060. BlendMode GetBlendMode() const;
  2061. bool GetBlockEvents() const;
  2062. bool GetBringToBack() const;
  2063. bool GetBringToFront() const;
  2064. UIElement GetChild(const String&, bool = false) const;
  2065. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  2066. UIElement GetChild(uint) const;
  2067. Array<UIElement> GetChildren() const;
  2068. Array<UIElement> GetChildren(bool) const;
  2069. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  2070. bool GetClipChildren() const;
  2071. IntRect GetCombinedScreenRect();
  2072. XMLFile GetDefaultStyle(bool = true) const;
  2073. float GetDerivedOpacity() const;
  2074. uint GetDragButtonCombo() const;
  2075. uint GetDragButtonCount() const;
  2076. uint GetDragDropMode() const;
  2077. IntVector2 GetEffectiveMinSize() const;
  2078. UIElement GetElementEventSender() const;
  2079. bool GetEnableAnchor() const;
  2080. VariantMap& GetEventDataMap() const;
  2081. Object GetEventSender() const;
  2082. FocusMode GetFocusMode() const;
  2083. int GetHeight() const;
  2084. HorizontalAlignment GetHorizontalAlignment() const;
  2085. int GetIndent() const;
  2086. int GetIndentSpacing() const;
  2087. int GetIndentWidth() const;
  2088. bool GetInterceptNetworkUpdate(const String&) const;
  2089. int GetLayoutElementMaxSize() const;
  2090. LayoutMode GetLayoutMode() const;
  2091. int GetLayoutSpacing() const;
  2092. Material GetMaterial() const;
  2093. ResourceRef GetMaterialAttr() const;
  2094. int GetMaxHeight() const;
  2095. int GetMaxWidth() const;
  2096. int GetMinHeight() const;
  2097. int GetMinWidth() const;
  2098. uint GetNumAttributes() const;
  2099. uint GetNumChildren(bool = false) const;
  2100. uint GetNumNetworkAttributes() const;
  2101. ObjectAnimation GetObjectAnimation() const;
  2102. ResourceRef GetObjectAnimationAttr() const;
  2103. float GetOpacity() const;
  2104. UIElement GetParent() const;
  2105. int GetPriority() const;
  2106. UIElement GetRoot() const;
  2107. bool GetSortChildren() const;
  2108. Object GetSubsystem(StringHash) const;
  2109. Array<String> GetTags() const;
  2110. Texture GetTexture() const;
  2111. ResourceRef GetTextureAttr() const;
  2112. TraversalMode GetTraversalMode() const;
  2113. StringHash GetType() const;
  2114. bool GetUseDerivedOpacity() const;
  2115. VerticalAlignment GetVerticalAlignment() const;
  2116. int GetWidth() const;
  2117. bool HasColorGradient() const;
  2118. bool HasEventHandlers() const;
  2119. bool HasFocus() const;
  2120. bool HasSubscribedToEvent(Object, StringHash) const;
  2121. bool HasSubscribedToEvent(StringHash) const;
  2122. bool HasTag(const String&) const;
  2123. void InsertChild(uint, UIElement);
  2124. const IntRect& GetBorder() const;
  2125. const IntRect& GetClipBorder() const;
  2126. const IntRect& GetImageBorder() const;
  2127. const IntRect& GetImageRect() const;
  2128. const IntRect& GetLayoutBorder() const;
  2129. const IntVector2& GetChildOffset() const;
  2130. const IntVector2& GetDisabledOffset() const;
  2131. const IntVector2& GetHoverOffset() const;
  2132. const IntVector2& GetMaxOffset() const;
  2133. const IntVector2& GetMaxSize() const;
  2134. const IntVector2& GetMinOffset() const;
  2135. const IntVector2& GetMinSize() const;
  2136. const IntVector2& GetPosition() const;
  2137. const IntVector2& GetScreenPosition() const;
  2138. const IntVector2& GetSize() const;
  2139. bool IsChildOf(UIElement) const;
  2140. bool IsEditable() const;
  2141. bool IsElementEventSender() const;
  2142. bool IsEnabled() const;
  2143. bool IsEnabledSelf() const;
  2144. bool IsFixedHeight() const;
  2145. bool IsFixedSize() const;
  2146. bool IsFixedWidth() const;
  2147. bool IsHovering() const;
  2148. bool IsInside(IntVector2, bool);
  2149. bool IsInsideCombined(IntVector2, bool);
  2150. bool IsInstanceOf(StringHash) const;
  2151. bool IsInternal() const;
  2152. bool IsSelected() const;
  2153. bool IsTemporary() const;
  2154. bool IsTiled() const;
  2155. bool IsVisible() const;
  2156. bool IsVisibleEffective() const;
  2157. bool IsWheelHandler() const;
  2158. bool IsWithinScissor(const IntRect&);
  2159. operator LineEdit() const;
  2160. bool Load(Deserializer&);
  2161. UIElement LoadChildXML(XMLFile, XMLFile);
  2162. UIElement LoadChildXML(const XMLElement&, XMLFile);
  2163. bool LoadJSON(const JSONValue&);
  2164. bool LoadXML(Deserializer&);
  2165. bool LoadXML(File);
  2166. bool LoadXML(VectorBuffer&);
  2167. bool LoadXML(XMLFile, XMLFile);
  2168. bool LoadXML(const XMLElement&);
  2169. bool LoadXML(const XMLElement&, XMLFile);
  2170. void MarkNetworkUpdate();
  2171. operator Menu() const;
  2172. operator Object() const;
  2173. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2174. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  2175. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2176. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2177. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2178. bool OnDragDropFinish(UIElement);
  2179. bool OnDragDropTest(UIElement);
  2180. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2181. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2182. void OnEvent(Object, StringHash, VariantMap&);
  2183. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  2184. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2185. void OnIndentSet();
  2186. void OnKey(uint, uint, uint);
  2187. void OnPositionSet(const IntVector2&);
  2188. void OnResize(const IntVector2&, const IntVector2&);
  2189. void OnSetAttribute(const AttributeInfo&, const Variant&);
  2190. void OnSetEditable();
  2191. void OnTextInput(const String&);
  2192. void OnWheel(int, uint, uint);
  2193. operator ProgressBar() const;
  2194. bool ReadDeltaUpdate(Deserializer&);
  2195. bool ReadLatestDataUpdate(Deserializer&);
  2196. operator RefCounted() const;
  2197. int Refs() const;
  2198. void Remove();
  2199. void RemoveAllChildren();
  2200. void RemoveAllTags();
  2201. void RemoveAttributeAnimation(const String&);
  2202. void RemoveChild(UIElement, uint = 0);
  2203. void RemoveChild(uint);
  2204. void RemoveChildAtIndex(uint);
  2205. void RemoveInstanceDefault();
  2206. void RemoveObjectAnimation();
  2207. bool RemoveTag(const String&);
  2208. void ResetDeepEnabled();
  2209. void ResetToDefault();
  2210. bool Save(Serializer&) const;
  2211. bool SaveDefaultAttributes() const;
  2212. bool SaveJSON(JSONValue&) const;
  2213. bool SaveXML(File, const String& indentation = "\t");
  2214. bool SaveXML(Serializer&, const String& = "\t") const;
  2215. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  2216. bool SaveXML(XMLElement&) const;
  2217. IntVector2 ScreenToElement(const IntVector2&);
  2218. operator ScrollBar() const;
  2219. void SendEvent(StringHash);
  2220. void SendEvent(StringHash, VariantMap&);
  2221. operator Serializable() const;
  2222. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  2223. void SetAnimationEnabled(bool);
  2224. void SetAnimationTime(float);
  2225. bool SetAttribute(const String&, const Variant&);
  2226. bool SetAttribute(uint, const Variant&);
  2227. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2228. void SetAttributeAnimationSpeed(const String&, float);
  2229. void SetAttributeAnimationTime(const String&, float);
  2230. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2231. void SetBlendMode(BlendMode);
  2232. void SetBlockEvents(bool);
  2233. void SetBorder(const IntRect&);
  2234. void SetBringToBack(bool);
  2235. void SetBringToFront(bool);
  2236. void SetChildOffset(const IntVector2&);
  2237. void SetClipBorder(const IntRect&);
  2238. void SetClipChildren(bool);
  2239. void SetColor(Corner, const Color&);
  2240. void SetColor(const Color&);
  2241. void SetDeepEnabled(bool);
  2242. void SetDefaultStyle(XMLFile);
  2243. void SetDisabledOffset(const IntVector2&);
  2244. void SetDisabledOffset(int, int);
  2245. void SetDragDropMode(uint);
  2246. void SetEditable(bool);
  2247. void SetElementEventSender(bool);
  2248. void SetEnableAnchor(bool);
  2249. void SetEnabled(bool);
  2250. void SetEnabledRecursive(bool);
  2251. void SetFixedHeight(int);
  2252. void SetFixedSize(const IntVector2&);
  2253. void SetFixedSize(int, int);
  2254. void SetFixedWidth(int);
  2255. void SetFocus(bool);
  2256. void SetFocusMode(FocusMode);
  2257. void SetFullImageRect();
  2258. void SetGlobalVar(StringHash, const Variant&);
  2259. void SetHeight(int);
  2260. void SetHorizontalAlignment(HorizontalAlignment);
  2261. void SetHoverOffset(const IntVector2&);
  2262. void SetHoverOffset(int, int);
  2263. void SetHovering(bool);
  2264. void SetImageBorder(const IntRect&);
  2265. void SetImageRect(const IntRect&);
  2266. void SetIndent(int);
  2267. void SetIndentSpacing(int);
  2268. void SetInstanceDefault(bool);
  2269. void SetInterceptNetworkUpdate(const String&, bool);
  2270. void SetInternal(bool);
  2271. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  2272. void SetLayoutBorder(const IntRect&);
  2273. void SetLayoutFlexScale(const Vector2&);
  2274. void SetLayoutMode(LayoutMode);
  2275. void SetLayoutSpacing(int);
  2276. void SetMaterial(Material);
  2277. void SetMaterialAttr(const ResourceRef&);
  2278. void SetMaxAnchor(const Vector2&);
  2279. void SetMaxAnchor(float, float);
  2280. void SetMaxHeight(int);
  2281. void SetMaxOffset(const IntVector2&);
  2282. void SetMaxSize(const IntVector2&);
  2283. void SetMaxSize(int, int);
  2284. void SetMaxWidth(int);
  2285. void SetMinAnchor(const Vector2&);
  2286. void SetMinAnchor(float, float);
  2287. void SetMinHeight(int);
  2288. void SetMinOffset(const IntVector2&);
  2289. void SetMinSize(const IntVector2&);
  2290. void SetMinSize(int, int);
  2291. void SetMinWidth(int);
  2292. void SetName(const String&);
  2293. void SetObjectAnimation(ObjectAnimation);
  2294. void SetObjectAnimationAttr(const ResourceRef&);
  2295. void SetOpacity(float);
  2296. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  2297. void SetPivot(const Vector2&);
  2298. void SetPivot(float, float);
  2299. void SetPosition(const IntVector2&);
  2300. void SetPosition(int, int);
  2301. void SetPriority(int);
  2302. void SetRenderTexture(Texture2D);
  2303. void SetSelected(bool);
  2304. void SetSize(const IntVector2&);
  2305. void SetSize(int, int);
  2306. void SetSortChildren(bool);
  2307. bool SetStyle(const String&, XMLFile = null);
  2308. bool SetStyle(const XMLElement&);
  2309. bool SetStyleAuto(XMLFile = null);
  2310. void SetTags(Array<String>);
  2311. void SetTemporary(bool);
  2312. void SetTexture(Texture);
  2313. void SetTextureAttr(const ResourceRef&);
  2314. void SetTiled(bool);
  2315. void SetTraversalMode(TraversalMode);
  2316. void SetUseDerivedOpacity(bool);
  2317. void SetVar(StringHash, const Variant&);
  2318. void SetVerticalAlignment(VerticalAlignment);
  2319. void SetVisible(bool);
  2320. void SetWidth(int);
  2321. operator Slider() const;
  2322. void SortChildren();
  2323. const String& GetAppliedStyle() const;
  2324. const String& GetCategory() const;
  2325. const String& GetName() const;
  2326. const String& GetTypeName() const;
  2327. operator UIElement() const;
  2328. void UnsubscribeFromAllEvents();
  2329. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  2330. void UnsubscribeFromEvent(Object, StringHash);
  2331. void UnsubscribeFromEvent(StringHash);
  2332. void UnsubscribeFromEvents(Object);
  2333. void Update(float);
  2334. void UpdateLayout();
  2335. const Variant& GetGlobalVar(StringHash) const;
  2336. const Variant& GetVar(const StringHash&) const;
  2337. const VariantMap& GetGlobalVars() const;
  2338. const VariantMap& GetVars() const;
  2339. const Vector2& GetLayoutFlexScale() const;
  2340. const Vector2& GetMaxAnchor() const;
  2341. const Vector2& GetMinAnchor() const;
  2342. const Vector2& GetPivot() const;
  2343. operator View3D() const;
  2344. int WeakRefs() const;
  2345. operator Window() const;
  2346. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  2347. void WriteInitialDeltaUpdate(Serializer&, uint8);
  2348. void WriteLatestDataUpdate(Serializer&, uint8);
  2349. operator const Animatable() const;
  2350. operator const Button() const;
  2351. operator const CheckBox() const;
  2352. operator const Cursor() const;
  2353. operator const DropDownList() const;
  2354. operator const LineEdit() const;
  2355. operator const Menu() const;
  2356. operator const Object() const;
  2357. operator const ProgressBar() const;
  2358. operator const RefCounted() const;
  2359. operator const ScrollBar() const;
  2360. operator const Serializable() const;
  2361. operator const Slider() const;
  2362. operator const UIElement() const;
  2363. operator const View3D() const;
  2364. operator const Window() const;
  2365. // Properties:
  2366. bool animationEnabled;
  2367. /* readonly */
  2368. Array<Variant> attributeDefaults;
  2369. /* readonly */
  2370. Array<AttributeInfo> attributeInfos;
  2371. Array<Variant> attributes;
  2372. BlendMode blendMode;
  2373. IntRect border;
  2374. bool bringToBack;
  2375. bool bringToFront;
  2376. /* readonly */
  2377. String category;
  2378. /* readonly */
  2379. IntVector2 childOffset;
  2380. /* readonly */
  2381. Array<UIElement> children;
  2382. IntRect clipBorder;
  2383. bool clipChildren;
  2384. /* writeonly */
  2385. Color color;
  2386. /* readonly */
  2387. bool colorGradient;
  2388. Array<Color> colors;
  2389. /* readonly */
  2390. IntRect combinedScreenRect;
  2391. XMLFile defaultStyle;
  2392. /* readonly */
  2393. float derivedOpacity;
  2394. IntVector2 disabledOffset;
  2395. /* readonly */
  2396. uint dragButtonCombo;
  2397. /* readonly */
  2398. uint dragButtonCount;
  2399. uint dragDropMode;
  2400. bool editable;
  2401. bool elementEventSender;
  2402. bool enableAnchor;
  2403. bool enabled;
  2404. /* readonly */
  2405. bool enabledSelf;
  2406. /* readonly */
  2407. bool fixedHeight;
  2408. /* readonly */
  2409. bool fixedSize;
  2410. /* readonly */
  2411. bool fixedWidth;
  2412. bool focus;
  2413. FocusMode focusMode;
  2414. Array<Variant> globalVar;
  2415. /* readonly */
  2416. VariantMap globalVars;
  2417. int height;
  2418. HorizontalAlignment horizontalAlignment;
  2419. IntVector2 hoverOffset;
  2420. /* readonly */
  2421. bool hovering;
  2422. IntRect imageBorder;
  2423. IntRect imageRect;
  2424. int indent;
  2425. int indentSpacing;
  2426. /* readonly */
  2427. int indentWidth;
  2428. bool internal;
  2429. IntRect layoutBorder;
  2430. Vector2 layoutFlexScale;
  2431. LayoutMode layoutMode;
  2432. int layoutSpacing;
  2433. Material material;
  2434. Vector2 maxAnchor;
  2435. int maxHeight;
  2436. IntVector2 maxOffset;
  2437. IntVector2 maxSize;
  2438. int maxWidth;
  2439. Vector2 minAnchor;
  2440. int minHeight;
  2441. IntVector2 minOffset;
  2442. IntVector2 minSize;
  2443. int minWidth;
  2444. String name;
  2445. /* readonly */
  2446. uint numAllChildren;
  2447. /* readonly */
  2448. uint numAttributes;
  2449. /* readonly */
  2450. uint numChildren;
  2451. ObjectAnimation objectAnimation;
  2452. float opacity;
  2453. UIElement parent;
  2454. Vector2 pivot;
  2455. IntVector2 position;
  2456. int priority;
  2457. /* readonly */
  2458. int refs;
  2459. /* readonly */
  2460. UIElement root;
  2461. /* readonly */
  2462. IntVector2 screenPosition;
  2463. bool selected;
  2464. IntVector2 size;
  2465. bool sortChildren;
  2466. String style;
  2467. /* readonly */
  2468. Array<String> tags;
  2469. bool temporary;
  2470. Texture texture;
  2471. bool tiled;
  2472. TraversalMode traversalMode;
  2473. /* readonly */
  2474. StringHash type;
  2475. /* readonly */
  2476. String typeName;
  2477. bool useDerivedOpacity;
  2478. /* readonly */
  2479. VariantMap vars;
  2480. VerticalAlignment verticalAlignment;
  2481. bool visible;
  2482. /* readonly */
  2483. bool visibleEffective;
  2484. /* readonly */
  2485. int weakRefs;
  2486. int width;
  2487. };
  2488. class BoundingBox
  2489. {
  2490. public:
  2491. BoundingBox();
  2492. BoundingBox(const BoundingBox&in);
  2493. BoundingBox(const Rect&in);
  2494. BoundingBox(const Vector3&in, const Vector3&in);
  2495. BoundingBox(float, float);
  2496. BoundingBox(const Frustum&in);
  2497. BoundingBox(const Polyhedron&in);
  2498. BoundingBox(const Sphere&in);
  2499. // Methods:
  2500. BoundingBox& operator=(const BoundingBox&);
  2501. BoundingBox& operator=(const Rect&);
  2502. bool operator==(const BoundingBox&) const;
  2503. Vector3 Center() const;
  2504. void Clear();
  2505. void Clip(const BoundingBox&);
  2506. void Define(const BoundingBox&);
  2507. void Define(const Frustum&);
  2508. void Define(const Polyhedron&);
  2509. void Define(const Rect&);
  2510. void Define(const Sphere&);
  2511. void Define(const Vector3&);
  2512. void Define(const Vector3&, const Vector3&);
  2513. void Define(float, float);
  2514. bool Defined() const;
  2515. float DistanceToPoint(const Vector3&) const;
  2516. Vector3 HalfSize() const;
  2517. Intersection IsInside(const BoundingBox&) const;
  2518. Intersection IsInside(const Sphere&) const;
  2519. Intersection IsInside(const Vector3&) const;
  2520. Intersection IsInsideFast(const BoundingBox&) const;
  2521. Intersection IsInsideFast(const Sphere&) const;
  2522. void Merge(const BoundingBox&);
  2523. void Merge(const Frustum&);
  2524. void Merge(const Polyhedron&);
  2525. void Merge(const Sphere&);
  2526. void Merge(const Vector3&);
  2527. Rect Projected(const Matrix4&) const;
  2528. Vector3 Size() const;
  2529. String ToString() const;
  2530. void Transform(const Matrix3&);
  2531. void Transform(const Matrix3x4&);
  2532. BoundingBox Transformed(const Matrix3&) const;
  2533. BoundingBox Transformed(const Matrix3x4&) const;
  2534. // Properties:
  2535. /* readonly */
  2536. Vector3 center;
  2537. float dummyMax;
  2538. float dummyMin;
  2539. /* readonly */
  2540. Vector3 halfSize;
  2541. Vector3 max;
  2542. Vector3 min;
  2543. /* readonly */
  2544. Vector3 size;
  2545. };
  2546. class BufferedSoundStream
  2547. {
  2548. public:
  2549. BufferedSoundStream();
  2550. // Methods:
  2551. void Clear();
  2552. float GetBufferLength() const;
  2553. uint GetBufferNumBytes() const;
  2554. float GetFrequency() const;
  2555. uint GetIntFrequency() const;
  2556. uint GetSampleSize() const;
  2557. bool GetStopAtEnd() const;
  2558. bool IsSixteenBit() const;
  2559. bool IsStereo() const;
  2560. operator RefCounted() const;
  2561. int Refs() const;
  2562. bool Seek(uint);
  2563. void SetFormat(uint, bool, bool);
  2564. void SetStopAtEnd(bool);
  2565. operator SoundStream() const;
  2566. int WeakRefs() const;
  2567. operator const RefCounted() const;
  2568. operator const SoundStream() const;
  2569. // Properties:
  2570. /* readonly */
  2571. int refs;
  2572. /* readonly */
  2573. int weakRefs;
  2574. };
  2575. class Button
  2576. {
  2577. public:
  2578. Button();
  2579. Button(const String&in);
  2580. // Methods:
  2581. void AddChild(UIElement);
  2582. void AddTag(const String&);
  2583. void AddTags(Array<String>);
  2584. void AddTags(const String&, int8 = ';');
  2585. void AdjustScissor(IntRect&);
  2586. void AllocateNetworkState();
  2587. operator Animatable() const;
  2588. void ApplyAttributes();
  2589. operator BorderImage() const;
  2590. void BringToFront();
  2591. const Color& GetColor(Corner) const;
  2592. const Color& GetColorAttr() const;
  2593. const Color& GetDerivedColor() const;
  2594. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  2595. void DisableLayoutUpdate();
  2596. operator DropDownList() const;
  2597. IntVector2 ElementToScreen(const IntVector2&);
  2598. void EnableLayoutUpdate();
  2599. bool FilterAttributes(XMLElement&) const;
  2600. uint FindChild(UIElement) const;
  2601. bool GetAnimationEnabled() const;
  2602. Variant GetAttribute(const String&) const;
  2603. Variant GetAttribute(uint) const;
  2604. ValueAnimation GetAttributeAnimation(const String&) const;
  2605. float GetAttributeAnimationSpeed(const String&) const;
  2606. float GetAttributeAnimationTime(const String&) const;
  2607. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2608. Variant GetAttributeDefault(const String&) const;
  2609. Variant GetAttributeDefault(uint) const;
  2610. BlendMode GetBlendMode() const;
  2611. bool GetBlockEvents() const;
  2612. bool GetBringToBack() const;
  2613. bool GetBringToFront() const;
  2614. UIElement GetChild(const String&, bool = false) const;
  2615. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  2616. UIElement GetChild(uint) const;
  2617. Array<UIElement> GetChildren() const;
  2618. Array<UIElement> GetChildren(bool) const;
  2619. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  2620. bool GetClipChildren() const;
  2621. IntRect GetCombinedScreenRect();
  2622. XMLFile GetDefaultStyle(bool = true) const;
  2623. float GetDerivedOpacity() const;
  2624. uint GetDragButtonCombo() const;
  2625. uint GetDragButtonCount() const;
  2626. uint GetDragDropMode() const;
  2627. IntVector2 GetEffectiveMinSize() const;
  2628. UIElement GetElementEventSender() const;
  2629. bool GetEnableAnchor() const;
  2630. VariantMap& GetEventDataMap() const;
  2631. Object GetEventSender() const;
  2632. FocusMode GetFocusMode() const;
  2633. int GetHeight() const;
  2634. HorizontalAlignment GetHorizontalAlignment() const;
  2635. int GetIndent() const;
  2636. int GetIndentSpacing() const;
  2637. int GetIndentWidth() const;
  2638. bool GetInterceptNetworkUpdate(const String&) const;
  2639. int GetLayoutElementMaxSize() const;
  2640. LayoutMode GetLayoutMode() const;
  2641. int GetLayoutSpacing() const;
  2642. Material GetMaterial() const;
  2643. ResourceRef GetMaterialAttr() const;
  2644. int GetMaxHeight() const;
  2645. int GetMaxWidth() const;
  2646. int GetMinHeight() const;
  2647. int GetMinWidth() const;
  2648. uint GetNumAttributes() const;
  2649. uint GetNumChildren(bool = false) const;
  2650. uint GetNumNetworkAttributes() const;
  2651. ObjectAnimation GetObjectAnimation() const;
  2652. ResourceRef GetObjectAnimationAttr() const;
  2653. float GetOpacity() const;
  2654. UIElement GetParent() const;
  2655. int GetPriority() const;
  2656. float GetRepeatDelay() const;
  2657. float GetRepeatRate() const;
  2658. UIElement GetRoot() const;
  2659. bool GetSortChildren() const;
  2660. Object GetSubsystem(StringHash) const;
  2661. Array<String> GetTags() const;
  2662. Texture GetTexture() const;
  2663. ResourceRef GetTextureAttr() const;
  2664. TraversalMode GetTraversalMode() const;
  2665. StringHash GetType() const;
  2666. bool GetUseDerivedOpacity() const;
  2667. VerticalAlignment GetVerticalAlignment() const;
  2668. int GetWidth() const;
  2669. bool HasColorGradient() const;
  2670. bool HasEventHandlers() const;
  2671. bool HasFocus() const;
  2672. bool HasSubscribedToEvent(Object, StringHash) const;
  2673. bool HasSubscribedToEvent(StringHash) const;
  2674. bool HasTag(const String&) const;
  2675. void InsertChild(uint, UIElement);
  2676. const IntRect& GetBorder() const;
  2677. const IntRect& GetClipBorder() const;
  2678. const IntRect& GetImageBorder() const;
  2679. const IntRect& GetImageRect() const;
  2680. const IntRect& GetLayoutBorder() const;
  2681. const IntVector2& GetChildOffset() const;
  2682. const IntVector2& GetDisabledOffset() const;
  2683. const IntVector2& GetHoverOffset() const;
  2684. const IntVector2& GetMaxOffset() const;
  2685. const IntVector2& GetMaxSize() const;
  2686. const IntVector2& GetMinOffset() const;
  2687. const IntVector2& GetMinSize() const;
  2688. const IntVector2& GetPosition() const;
  2689. const IntVector2& GetPressedChildOffset() const;
  2690. const IntVector2& GetPressedOffset() const;
  2691. const IntVector2& GetScreenPosition() const;
  2692. const IntVector2& GetSize() const;
  2693. bool IsChildOf(UIElement) const;
  2694. bool IsEditable() const;
  2695. bool IsElementEventSender() const;
  2696. bool IsEnabled() const;
  2697. bool IsEnabledSelf() const;
  2698. bool IsFixedHeight() const;
  2699. bool IsFixedSize() const;
  2700. bool IsFixedWidth() const;
  2701. bool IsHovering() const;
  2702. bool IsInside(IntVector2, bool);
  2703. bool IsInsideCombined(IntVector2, bool);
  2704. bool IsInstanceOf(StringHash) const;
  2705. bool IsInternal() const;
  2706. bool IsPressed() const;
  2707. bool IsSelected() const;
  2708. bool IsTemporary() const;
  2709. bool IsTiled() const;
  2710. bool IsVisible() const;
  2711. bool IsVisibleEffective() const;
  2712. bool IsWheelHandler() const;
  2713. bool IsWithinScissor(const IntRect&);
  2714. bool Load(Deserializer&);
  2715. UIElement LoadChildXML(XMLFile, XMLFile);
  2716. UIElement LoadChildXML(const XMLElement&, XMLFile);
  2717. bool LoadJSON(const JSONValue&);
  2718. bool LoadXML(Deserializer&);
  2719. bool LoadXML(File);
  2720. bool LoadXML(VectorBuffer&);
  2721. bool LoadXML(XMLFile, XMLFile);
  2722. bool LoadXML(const XMLElement&);
  2723. bool LoadXML(const XMLElement&, XMLFile);
  2724. void MarkNetworkUpdate();
  2725. operator Menu() const;
  2726. operator Object() const;
  2727. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2728. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  2729. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2730. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2731. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2732. bool OnDragDropFinish(UIElement);
  2733. bool OnDragDropTest(UIElement);
  2734. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2735. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2736. void OnEvent(Object, StringHash, VariantMap&);
  2737. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  2738. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2739. void OnIndentSet();
  2740. void OnKey(uint, uint, uint);
  2741. void OnPositionSet(const IntVector2&);
  2742. void OnResize(const IntVector2&, const IntVector2&);
  2743. void OnSetAttribute(const AttributeInfo&, const Variant&);
  2744. void OnSetEditable();
  2745. void OnTextInput(const String&);
  2746. void OnWheel(int, uint, uint);
  2747. bool ReadDeltaUpdate(Deserializer&);
  2748. bool ReadLatestDataUpdate(Deserializer&);
  2749. operator RefCounted() const;
  2750. int Refs() const;
  2751. void Remove();
  2752. void RemoveAllChildren();
  2753. void RemoveAllTags();
  2754. void RemoveAttributeAnimation(const String&);
  2755. void RemoveChild(UIElement, uint = 0);
  2756. void RemoveChild(uint);
  2757. void RemoveChildAtIndex(uint);
  2758. void RemoveInstanceDefault();
  2759. void RemoveObjectAnimation();
  2760. bool RemoveTag(const String&);
  2761. void ResetDeepEnabled();
  2762. void ResetToDefault();
  2763. bool Save(Serializer&) const;
  2764. bool SaveDefaultAttributes() const;
  2765. bool SaveJSON(JSONValue&) const;
  2766. bool SaveXML(File, const String& indentation = "\t");
  2767. bool SaveXML(Serializer&, const String& = "\t") const;
  2768. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  2769. bool SaveXML(XMLElement&) const;
  2770. IntVector2 ScreenToElement(const IntVector2&);
  2771. void SendEvent(StringHash);
  2772. void SendEvent(StringHash, VariantMap&);
  2773. operator Serializable() const;
  2774. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  2775. void SetAnimationEnabled(bool);
  2776. void SetAnimationTime(float);
  2777. bool SetAttribute(const String&, const Variant&);
  2778. bool SetAttribute(uint, const Variant&);
  2779. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2780. void SetAttributeAnimationSpeed(const String&, float);
  2781. void SetAttributeAnimationTime(const String&, float);
  2782. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2783. void SetBlendMode(BlendMode);
  2784. void SetBlockEvents(bool);
  2785. void SetBorder(const IntRect&);
  2786. void SetBringToBack(bool);
  2787. void SetBringToFront(bool);
  2788. void SetChildOffset(const IntVector2&);
  2789. void SetClipBorder(const IntRect&);
  2790. void SetClipChildren(bool);
  2791. void SetColor(Corner, const Color&);
  2792. void SetColor(const Color&);
  2793. void SetDeepEnabled(bool);
  2794. void SetDefaultStyle(XMLFile);
  2795. void SetDisabledOffset(const IntVector2&);
  2796. void SetDisabledOffset(int, int);
  2797. void SetDragDropMode(uint);
  2798. void SetEditable(bool);
  2799. void SetElementEventSender(bool);
  2800. void SetEnableAnchor(bool);
  2801. void SetEnabled(bool);
  2802. void SetEnabledRecursive(bool);
  2803. void SetFixedHeight(int);
  2804. void SetFixedSize(const IntVector2&);
  2805. void SetFixedSize(int, int);
  2806. void SetFixedWidth(int);
  2807. void SetFocus(bool);
  2808. void SetFocusMode(FocusMode);
  2809. void SetFullImageRect();
  2810. void SetGlobalVar(StringHash, const Variant&);
  2811. void SetHeight(int);
  2812. void SetHorizontalAlignment(HorizontalAlignment);
  2813. void SetHoverOffset(const IntVector2&);
  2814. void SetHoverOffset(int, int);
  2815. void SetHovering(bool);
  2816. void SetImageBorder(const IntRect&);
  2817. void SetImageRect(const IntRect&);
  2818. void SetIndent(int);
  2819. void SetIndentSpacing(int);
  2820. void SetInstanceDefault(bool);
  2821. void SetInterceptNetworkUpdate(const String&, bool);
  2822. void SetInternal(bool);
  2823. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  2824. void SetLayoutBorder(const IntRect&);
  2825. void SetLayoutFlexScale(const Vector2&);
  2826. void SetLayoutMode(LayoutMode);
  2827. void SetLayoutSpacing(int);
  2828. void SetMaterial(Material);
  2829. void SetMaterialAttr(const ResourceRef&);
  2830. void SetMaxAnchor(const Vector2&);
  2831. void SetMaxAnchor(float, float);
  2832. void SetMaxHeight(int);
  2833. void SetMaxOffset(const IntVector2&);
  2834. void SetMaxSize(const IntVector2&);
  2835. void SetMaxSize(int, int);
  2836. void SetMaxWidth(int);
  2837. void SetMinAnchor(const Vector2&);
  2838. void SetMinAnchor(float, float);
  2839. void SetMinHeight(int);
  2840. void SetMinOffset(const IntVector2&);
  2841. void SetMinSize(const IntVector2&);
  2842. void SetMinSize(int, int);
  2843. void SetMinWidth(int);
  2844. void SetName(const String&);
  2845. void SetObjectAnimation(ObjectAnimation);
  2846. void SetObjectAnimationAttr(const ResourceRef&);
  2847. void SetOpacity(float);
  2848. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  2849. void SetPivot(const Vector2&);
  2850. void SetPivot(float, float);
  2851. void SetPosition(const IntVector2&);
  2852. void SetPosition(int, int);
  2853. void SetPressedChildOffset(const IntVector2&);
  2854. void SetPressedChildOffset(int, int);
  2855. void SetPressedOffset(const IntVector2&);
  2856. void SetPressedOffset(int, int);
  2857. void SetPriority(int);
  2858. void SetRenderTexture(Texture2D);
  2859. void SetRepeat(float, float);
  2860. void SetRepeatDelay(float);
  2861. void SetRepeatRate(float);
  2862. void SetSelected(bool);
  2863. void SetSize(const IntVector2&);
  2864. void SetSize(int, int);
  2865. void SetSortChildren(bool);
  2866. bool SetStyle(const String&, XMLFile = null);
  2867. bool SetStyle(const XMLElement&);
  2868. bool SetStyleAuto(XMLFile = null);
  2869. void SetTags(Array<String>);
  2870. void SetTemporary(bool);
  2871. void SetTexture(Texture);
  2872. void SetTextureAttr(const ResourceRef&);
  2873. void SetTiled(bool);
  2874. void SetTraversalMode(TraversalMode);
  2875. void SetUseDerivedOpacity(bool);
  2876. void SetVar(StringHash, const Variant&);
  2877. void SetVerticalAlignment(VerticalAlignment);
  2878. void SetVisible(bool);
  2879. void SetWidth(int);
  2880. void SortChildren();
  2881. const String& GetAppliedStyle() const;
  2882. const String& GetCategory() const;
  2883. const String& GetName() const;
  2884. const String& GetTypeName() const;
  2885. operator UIElement() const;
  2886. void UnsubscribeFromAllEvents();
  2887. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  2888. void UnsubscribeFromEvent(Object, StringHash);
  2889. void UnsubscribeFromEvent(StringHash);
  2890. void UnsubscribeFromEvents(Object);
  2891. void Update(float);
  2892. void UpdateLayout();
  2893. const Variant& GetGlobalVar(StringHash) const;
  2894. const Variant& GetVar(const StringHash&) const;
  2895. const VariantMap& GetGlobalVars() const;
  2896. const VariantMap& GetVars() const;
  2897. const Vector2& GetLayoutFlexScale() const;
  2898. const Vector2& GetMaxAnchor() const;
  2899. const Vector2& GetMinAnchor() const;
  2900. const Vector2& GetPivot() const;
  2901. int WeakRefs() const;
  2902. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  2903. void WriteInitialDeltaUpdate(Serializer&, uint8);
  2904. void WriteLatestDataUpdate(Serializer&, uint8);
  2905. operator const Animatable() const;
  2906. operator const BorderImage() const;
  2907. operator const DropDownList() const;
  2908. operator const Menu() const;
  2909. operator const Object() const;
  2910. operator const RefCounted() const;
  2911. operator const Serializable() const;
  2912. operator const UIElement() const;
  2913. // Properties:
  2914. bool animationEnabled;
  2915. /* readonly */
  2916. Array<Variant> attributeDefaults;
  2917. /* readonly */
  2918. Array<AttributeInfo> attributeInfos;
  2919. Array<Variant> attributes;
  2920. BlendMode blendMode;
  2921. IntRect border;
  2922. bool bringToBack;
  2923. bool bringToFront;
  2924. /* readonly */
  2925. String category;
  2926. /* readonly */
  2927. IntVector2 childOffset;
  2928. /* readonly */
  2929. Array<UIElement> children;
  2930. IntRect clipBorder;
  2931. bool clipChildren;
  2932. /* writeonly */
  2933. Color color;
  2934. /* readonly */
  2935. bool colorGradient;
  2936. Array<Color> colors;
  2937. /* readonly */
  2938. IntRect combinedScreenRect;
  2939. XMLFile defaultStyle;
  2940. /* readonly */
  2941. float derivedOpacity;
  2942. IntVector2 disabledOffset;
  2943. /* readonly */
  2944. uint dragButtonCombo;
  2945. /* readonly */
  2946. uint dragButtonCount;
  2947. uint dragDropMode;
  2948. bool editable;
  2949. bool elementEventSender;
  2950. bool enableAnchor;
  2951. bool enabled;
  2952. /* readonly */
  2953. bool enabledSelf;
  2954. /* readonly */
  2955. bool fixedHeight;
  2956. /* readonly */
  2957. bool fixedSize;
  2958. /* readonly */
  2959. bool fixedWidth;
  2960. bool focus;
  2961. FocusMode focusMode;
  2962. Array<Variant> globalVar;
  2963. /* readonly */
  2964. VariantMap globalVars;
  2965. int height;
  2966. HorizontalAlignment horizontalAlignment;
  2967. IntVector2 hoverOffset;
  2968. /* readonly */
  2969. bool hovering;
  2970. IntRect imageBorder;
  2971. IntRect imageRect;
  2972. int indent;
  2973. int indentSpacing;
  2974. /* readonly */
  2975. int indentWidth;
  2976. bool internal;
  2977. IntRect layoutBorder;
  2978. Vector2 layoutFlexScale;
  2979. LayoutMode layoutMode;
  2980. int layoutSpacing;
  2981. Material material;
  2982. Vector2 maxAnchor;
  2983. int maxHeight;
  2984. IntVector2 maxOffset;
  2985. IntVector2 maxSize;
  2986. int maxWidth;
  2987. Vector2 minAnchor;
  2988. int minHeight;
  2989. IntVector2 minOffset;
  2990. IntVector2 minSize;
  2991. int minWidth;
  2992. String name;
  2993. /* readonly */
  2994. uint numAllChildren;
  2995. /* readonly */
  2996. uint numAttributes;
  2997. /* readonly */
  2998. uint numChildren;
  2999. ObjectAnimation objectAnimation;
  3000. float opacity;
  3001. UIElement parent;
  3002. Vector2 pivot;
  3003. IntVector2 position;
  3004. /* readonly */
  3005. bool pressed;
  3006. IntVector2 pressedChildOffset;
  3007. IntVector2 pressedOffset;
  3008. int priority;
  3009. /* readonly */
  3010. int refs;
  3011. float repeatDelay;
  3012. float repeatRate;
  3013. /* readonly */
  3014. UIElement root;
  3015. /* readonly */
  3016. IntVector2 screenPosition;
  3017. bool selected;
  3018. IntVector2 size;
  3019. bool sortChildren;
  3020. String style;
  3021. /* readonly */
  3022. Array<String> tags;
  3023. bool temporary;
  3024. Texture texture;
  3025. bool tiled;
  3026. TraversalMode traversalMode;
  3027. /* readonly */
  3028. StringHash type;
  3029. /* readonly */
  3030. String typeName;
  3031. bool useDerivedOpacity;
  3032. /* readonly */
  3033. VariantMap vars;
  3034. VerticalAlignment verticalAlignment;
  3035. bool visible;
  3036. /* readonly */
  3037. bool visibleEffective;
  3038. /* readonly */
  3039. int weakRefs;
  3040. int width;
  3041. };
  3042. class Camera
  3043. {
  3044. public:
  3045. Camera();
  3046. // Methods:
  3047. void AllocateNetworkState();
  3048. operator Animatable() const;
  3049. void ApplyAttributes();
  3050. void CleanupConnection(Connection);
  3051. operator Component() const;
  3052. void DrawDebugGeometry(DebugRenderer, bool);
  3053. const Frustum& GetFrustum() const;
  3054. bool GetAnimationEnabled() const;
  3055. float GetAspectRatio() const;
  3056. Variant GetAttribute(const String&) const;
  3057. Variant GetAttribute(uint) const;
  3058. ValueAnimation GetAttributeAnimation(const String&) const;
  3059. float GetAttributeAnimationSpeed(const String&) const;
  3060. float GetAttributeAnimationTime(const String&) const;
  3061. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3062. Variant GetAttributeDefault(const String&) const;
  3063. Variant GetAttributeDefault(uint) const;
  3064. bool GetAutoAspectRatio() const;
  3065. bool GetBlockEvents() const;
  3066. Vector4 GetClipPlaneAttr() const;
  3067. Component GetComponent(StringHash) const;
  3068. float GetDistance(const Vector3&) const;
  3069. float GetDistanceSquared(const Vector3&) const;
  3070. Matrix3x4 GetEffectiveWorldTransform() const;
  3071. VariantMap& GetEventDataMap() const;
  3072. Object GetEventSender() const;
  3073. Quaternion GetFaceCameraRotation(const Vector3&, const Quaternion&, FaceCameraMode, float = 0.0f);
  3074. float GetFarClip() const;
  3075. FillMode GetFillMode() const;
  3076. bool GetFlipVertical() const;
  3077. float GetFov() const;
  3078. void GetFrustumSize(Vector3&, Vector3&) const;
  3079. Matrix4 GetGPUProjection() const;
  3080. float GetHalfViewSize() const;
  3081. uint GetID() const;
  3082. bool GetInterceptNetworkUpdate(const String&) const;
  3083. float GetLodBias() const;
  3084. float GetLodDistance(float, float, float) const;
  3085. float GetNearClip() const;
  3086. Node GetNode() const;
  3087. uint GetNumAttributes() const;
  3088. uint GetNumNetworkAttributes() const;
  3089. ObjectAnimation GetObjectAnimation() const;
  3090. ResourceRef GetObjectAnimationAttr() const;
  3091. float GetOrthoSize() const;
  3092. Matrix4 GetProjection() const;
  3093. Vector4 GetReflectionPlaneAttr() const;
  3094. bool GetReverseCulling() const;
  3095. Scene GetScene() const;
  3096. Ray GetScreenRay(float, float) const;
  3097. Frustum GetSplitFrustum(float, float) const;
  3098. Object GetSubsystem(StringHash) const;
  3099. StringHash GetType() const;
  3100. bool GetUseClipping() const;
  3101. bool GetUseReflection() const;
  3102. uint GetViewMask() const;
  3103. uint GetViewOverrideFlags() const;
  3104. Frustum GetViewSpaceFrustum() const;
  3105. Frustum GetViewSpaceSplitFrustum(float, float) const;
  3106. float GetZoom() const;
  3107. bool HasEventHandlers() const;
  3108. bool HasSubscribedToEvent(Object, StringHash) const;
  3109. bool HasSubscribedToEvent(StringHash) const;
  3110. bool IsEnabled() const;
  3111. bool IsEnabledEffective() const;
  3112. bool IsInstanceOf(StringHash) const;
  3113. bool IsOrthographic() const;
  3114. bool IsProjectionValid() const;
  3115. bool IsReplicated() const;
  3116. bool IsTemporary() const;
  3117. bool Load(Deserializer&);
  3118. bool LoadJSON(const JSONValue&);
  3119. bool LoadXML(const XMLElement&);
  3120. void MarkNetworkUpdate();
  3121. const Matrix3x4& GetView() const;
  3122. operator Object() const;
  3123. void OnEvent(Object, StringHash, VariantMap&);
  3124. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  3125. void OnSetAttribute(const AttributeInfo&, const Variant&);
  3126. void OnSetEnabled();
  3127. const Plane& GetClipPlane() const;
  3128. const Plane& GetReflectionPlane() const;
  3129. void PrepareNetworkUpdate();
  3130. bool ReadDeltaUpdate(Deserializer&);
  3131. bool ReadLatestDataUpdate(Deserializer&);
  3132. operator RefCounted() const;
  3133. int Refs() const;
  3134. void Remove();
  3135. void RemoveAttributeAnimation(const String&);
  3136. void RemoveInstanceDefault();
  3137. void RemoveObjectAnimation();
  3138. void ResetToDefault();
  3139. bool Save(Serializer&) const;
  3140. bool SaveDefaultAttributes() const;
  3141. bool SaveJSON(JSONValue&) const;
  3142. bool SaveXML(XMLElement&) const;
  3143. Vector3 ScreenToWorldPoint(const Vector3&) const;
  3144. void SendEvent(StringHash);
  3145. void SendEvent(StringHash, VariantMap&);
  3146. operator Serializable() const;
  3147. void SetAnimationEnabled(bool);
  3148. void SetAnimationTime(float);
  3149. void SetAspectRatio(float);
  3150. void SetAspectRatioInternal(float);
  3151. bool SetAttribute(const String&, const Variant&);
  3152. bool SetAttribute(uint, const Variant&);
  3153. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3154. void SetAttributeAnimationSpeed(const String&, float);
  3155. void SetAttributeAnimationTime(const String&, float);
  3156. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3157. void SetAutoAspectRatio(bool);
  3158. void SetBlockEvents(bool);
  3159. void SetClipPlane(const Plane&);
  3160. void SetClipPlaneAttr(const Vector4&);
  3161. void SetEnabled(bool);
  3162. void SetFarClip(float);
  3163. void SetFillMode(FillMode);
  3164. void SetFlipVertical(bool);
  3165. void SetFov(float);
  3166. void SetGlobalVar(StringHash, const Variant&);
  3167. void SetInstanceDefault(bool);
  3168. void SetInterceptNetworkUpdate(const String&, bool);
  3169. void SetLodBias(float);
  3170. void SetNearClip(float);
  3171. void SetObjectAnimation(ObjectAnimation);
  3172. void SetObjectAnimationAttr(const ResourceRef&);
  3173. void SetOrthoSize(const Vector2&);
  3174. void SetOrthoSize(float);
  3175. void SetOrthoSizeAttr(float);
  3176. void SetOrthographic(bool);
  3177. void SetProjection(const Matrix4&);
  3178. void SetProjectionOffset(const Vector2&);
  3179. void SetReflectionPlane(const Plane&);
  3180. void SetReflectionPlaneAttr(const Vector4&);
  3181. void SetTemporary(bool);
  3182. void SetUseClipping(bool);
  3183. void SetUseReflection(bool);
  3184. void SetViewMask(uint);
  3185. void SetViewOverrideFlags(uint);
  3186. void SetZoom(float);
  3187. const String& GetCategory() const;
  3188. const String& GetTypeName() const;
  3189. void UnsubscribeFromAllEvents();
  3190. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  3191. void UnsubscribeFromEvent(Object, StringHash);
  3192. void UnsubscribeFromEvent(StringHash);
  3193. void UnsubscribeFromEvents(Object);
  3194. const Variant& GetGlobalVar(StringHash) const;
  3195. const VariantMap& GetGlobalVars() const;
  3196. const Vector2& GetProjectionOffset() const;
  3197. int WeakRefs() const;
  3198. Vector2 WorldToScreenPoint(const Vector3&) const;
  3199. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  3200. void WriteInitialDeltaUpdate(Serializer&, uint8);
  3201. void WriteLatestDataUpdate(Serializer&, uint8);
  3202. operator const Animatable() const;
  3203. operator const Component() const;
  3204. operator const Object() const;
  3205. operator const RefCounted() const;
  3206. operator const Serializable() const;
  3207. // Properties:
  3208. bool animationEnabled;
  3209. float aspectRatio;
  3210. /* readonly */
  3211. Array<Variant> attributeDefaults;
  3212. /* readonly */
  3213. Array<AttributeInfo> attributeInfos;
  3214. Array<Variant> attributes;
  3215. bool autoAspectRatio;
  3216. /* readonly */
  3217. String category;
  3218. Plane clipPlane;
  3219. /* readonly */
  3220. Matrix3x4 effectiveWorldTransform;
  3221. bool enabled;
  3222. /* readonly */
  3223. bool enabledEffective;
  3224. float farClip;
  3225. FillMode fillMode;
  3226. float fov;
  3227. /* readonly */
  3228. Frustum frustum;
  3229. /* readonly */
  3230. Matrix4 gPUProjection;
  3231. Array<Variant> globalVar;
  3232. /* readonly */
  3233. VariantMap globalVars;
  3234. /* readonly */
  3235. float halfViewSize;
  3236. /* readonly */
  3237. uint id;
  3238. float lodBias;
  3239. float nearClip;
  3240. /* readonly */
  3241. Node node;
  3242. /* readonly */
  3243. uint numAttributes;
  3244. ObjectAnimation objectAnimation;
  3245. float orthoSize;
  3246. bool orthographic;
  3247. Matrix4 projection;
  3248. Vector2 projectionOffset;
  3249. Plane reflectionPlane;
  3250. /* readonly */
  3251. int refs;
  3252. /* readonly */
  3253. bool replicated;
  3254. bool temporary;
  3255. /* readonly */
  3256. StringHash type;
  3257. /* readonly */
  3258. String typeName;
  3259. bool useClipping;
  3260. bool useReflection;
  3261. /* readonly */
  3262. Matrix3x4 view;
  3263. uint viewMask;
  3264. uint viewOverrideFlags;
  3265. /* readonly */
  3266. Frustum viewSpaceFrustum;
  3267. /* readonly */
  3268. int weakRefs;
  3269. float zoom;
  3270. };
  3271. class CascadeParameters
  3272. {
  3273. public:
  3274. CascadeParameters();
  3275. CascadeParameters(float, float, float, float, float, float = 1.0f);
  3276. // Methods:
  3277. CascadeParameters& operator=(const CascadeParameters&);
  3278. float GetShadowRange() const;
  3279. void Validate();
  3280. // Properties:
  3281. float biasAutoAdjust;
  3282. float fadeStart;
  3283. float split1;
  3284. float split2;
  3285. float split3;
  3286. float split4;
  3287. Vector4 splits;
  3288. };
  3289. class CharLocation
  3290. {
  3291. public:
  3292. ~CharLocation();
  3293. CharLocation();
  3294. // Methods:
  3295. CharLocation& operator=(const CharLocation&);
  3296. // Properties:
  3297. Vector2 position;
  3298. Vector2 size;
  3299. };
  3300. class CheckBox
  3301. {
  3302. public:
  3303. CheckBox();
  3304. CheckBox(const String&in);
  3305. // Methods:
  3306. void AddChild(UIElement);
  3307. void AddTag(const String&);
  3308. void AddTags(Array<String>);
  3309. void AddTags(const String&, int8 = ';');
  3310. void AdjustScissor(IntRect&);
  3311. void AllocateNetworkState();
  3312. operator Animatable() const;
  3313. void ApplyAttributes();
  3314. operator BorderImage() const;
  3315. void BringToFront();
  3316. const Color& GetColor(Corner) const;
  3317. const Color& GetColorAttr() const;
  3318. const Color& GetDerivedColor() const;
  3319. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  3320. void DisableLayoutUpdate();
  3321. IntVector2 ElementToScreen(const IntVector2&);
  3322. void EnableLayoutUpdate();
  3323. bool FilterAttributes(XMLElement&) const;
  3324. uint FindChild(UIElement) const;
  3325. bool GetAnimationEnabled() const;
  3326. Variant GetAttribute(const String&) const;
  3327. Variant GetAttribute(uint) const;
  3328. ValueAnimation GetAttributeAnimation(const String&) const;
  3329. float GetAttributeAnimationSpeed(const String&) const;
  3330. float GetAttributeAnimationTime(const String&) const;
  3331. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3332. Variant GetAttributeDefault(const String&) const;
  3333. Variant GetAttributeDefault(uint) const;
  3334. BlendMode GetBlendMode() const;
  3335. bool GetBlockEvents() const;
  3336. bool GetBringToBack() const;
  3337. bool GetBringToFront() const;
  3338. UIElement GetChild(const String&, bool = false) const;
  3339. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  3340. UIElement GetChild(uint) const;
  3341. Array<UIElement> GetChildren() const;
  3342. Array<UIElement> GetChildren(bool) const;
  3343. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3344. bool GetClipChildren() const;
  3345. IntRect GetCombinedScreenRect();
  3346. XMLFile GetDefaultStyle(bool = true) const;
  3347. float GetDerivedOpacity() const;
  3348. uint GetDragButtonCombo() const;
  3349. uint GetDragButtonCount() const;
  3350. uint GetDragDropMode() const;
  3351. IntVector2 GetEffectiveMinSize() const;
  3352. UIElement GetElementEventSender() const;
  3353. bool GetEnableAnchor() const;
  3354. VariantMap& GetEventDataMap() const;
  3355. Object GetEventSender() const;
  3356. FocusMode GetFocusMode() const;
  3357. int GetHeight() const;
  3358. HorizontalAlignment GetHorizontalAlignment() const;
  3359. int GetIndent() const;
  3360. int GetIndentSpacing() const;
  3361. int GetIndentWidth() const;
  3362. bool GetInterceptNetworkUpdate(const String&) const;
  3363. int GetLayoutElementMaxSize() const;
  3364. LayoutMode GetLayoutMode() const;
  3365. int GetLayoutSpacing() const;
  3366. Material GetMaterial() const;
  3367. ResourceRef GetMaterialAttr() const;
  3368. int GetMaxHeight() const;
  3369. int GetMaxWidth() const;
  3370. int GetMinHeight() const;
  3371. int GetMinWidth() const;
  3372. uint GetNumAttributes() const;
  3373. uint GetNumChildren(bool = false) const;
  3374. uint GetNumNetworkAttributes() const;
  3375. ObjectAnimation GetObjectAnimation() const;
  3376. ResourceRef GetObjectAnimationAttr() const;
  3377. float GetOpacity() const;
  3378. UIElement GetParent() const;
  3379. int GetPriority() const;
  3380. UIElement GetRoot() const;
  3381. bool GetSortChildren() const;
  3382. Object GetSubsystem(StringHash) const;
  3383. Array<String> GetTags() const;
  3384. Texture GetTexture() const;
  3385. ResourceRef GetTextureAttr() const;
  3386. TraversalMode GetTraversalMode() const;
  3387. StringHash GetType() const;
  3388. bool GetUseDerivedOpacity() const;
  3389. VerticalAlignment GetVerticalAlignment() const;
  3390. int GetWidth() const;
  3391. bool HasColorGradient() const;
  3392. bool HasEventHandlers() const;
  3393. bool HasFocus() const;
  3394. bool HasSubscribedToEvent(Object, StringHash) const;
  3395. bool HasSubscribedToEvent(StringHash) const;
  3396. bool HasTag(const String&) const;
  3397. void InsertChild(uint, UIElement);
  3398. const IntRect& GetBorder() const;
  3399. const IntRect& GetClipBorder() const;
  3400. const IntRect& GetImageBorder() const;
  3401. const IntRect& GetImageRect() const;
  3402. const IntRect& GetLayoutBorder() const;
  3403. const IntVector2& GetCheckedOffset() const;
  3404. const IntVector2& GetChildOffset() const;
  3405. const IntVector2& GetDisabledOffset() const;
  3406. const IntVector2& GetHoverOffset() const;
  3407. const IntVector2& GetMaxOffset() const;
  3408. const IntVector2& GetMaxSize() const;
  3409. const IntVector2& GetMinOffset() const;
  3410. const IntVector2& GetMinSize() const;
  3411. const IntVector2& GetPosition() const;
  3412. const IntVector2& GetScreenPosition() const;
  3413. const IntVector2& GetSize() const;
  3414. bool IsChecked() const;
  3415. bool IsChildOf(UIElement) const;
  3416. bool IsEditable() const;
  3417. bool IsElementEventSender() const;
  3418. bool IsEnabled() const;
  3419. bool IsEnabledSelf() const;
  3420. bool IsFixedHeight() const;
  3421. bool IsFixedSize() const;
  3422. bool IsFixedWidth() const;
  3423. bool IsHovering() const;
  3424. bool IsInside(IntVector2, bool);
  3425. bool IsInsideCombined(IntVector2, bool);
  3426. bool IsInstanceOf(StringHash) const;
  3427. bool IsInternal() const;
  3428. bool IsSelected() const;
  3429. bool IsTemporary() const;
  3430. bool IsTiled() const;
  3431. bool IsVisible() const;
  3432. bool IsVisibleEffective() const;
  3433. bool IsWheelHandler() const;
  3434. bool IsWithinScissor(const IntRect&);
  3435. bool Load(Deserializer&);
  3436. UIElement LoadChildXML(XMLFile, XMLFile);
  3437. UIElement LoadChildXML(const XMLElement&, XMLFile);
  3438. bool LoadJSON(const JSONValue&);
  3439. bool LoadXML(Deserializer&);
  3440. bool LoadXML(File);
  3441. bool LoadXML(VectorBuffer&);
  3442. bool LoadXML(XMLFile, XMLFile);
  3443. bool LoadXML(const XMLElement&);
  3444. bool LoadXML(const XMLElement&, XMLFile);
  3445. void MarkNetworkUpdate();
  3446. operator Object() const;
  3447. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  3448. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  3449. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  3450. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3451. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3452. bool OnDragDropFinish(UIElement);
  3453. bool OnDragDropTest(UIElement);
  3454. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3455. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3456. void OnEvent(Object, StringHash, VariantMap&);
  3457. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  3458. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3459. void OnIndentSet();
  3460. void OnKey(uint, uint, uint);
  3461. void OnPositionSet(const IntVector2&);
  3462. void OnResize(const IntVector2&, const IntVector2&);
  3463. void OnSetAttribute(const AttributeInfo&, const Variant&);
  3464. void OnSetEditable();
  3465. void OnTextInput(const String&);
  3466. void OnWheel(int, uint, uint);
  3467. bool ReadDeltaUpdate(Deserializer&);
  3468. bool ReadLatestDataUpdate(Deserializer&);
  3469. operator RefCounted() const;
  3470. int Refs() const;
  3471. void Remove();
  3472. void RemoveAllChildren();
  3473. void RemoveAllTags();
  3474. void RemoveAttributeAnimation(const String&);
  3475. void RemoveChild(UIElement, uint = 0);
  3476. void RemoveChild(uint);
  3477. void RemoveChildAtIndex(uint);
  3478. void RemoveInstanceDefault();
  3479. void RemoveObjectAnimation();
  3480. bool RemoveTag(const String&);
  3481. void ResetDeepEnabled();
  3482. void ResetToDefault();
  3483. bool Save(Serializer&) const;
  3484. bool SaveDefaultAttributes() const;
  3485. bool SaveJSON(JSONValue&) const;
  3486. bool SaveXML(File, const String& indentation = "\t");
  3487. bool SaveXML(Serializer&, const String& = "\t") const;
  3488. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  3489. bool SaveXML(XMLElement&) const;
  3490. IntVector2 ScreenToElement(const IntVector2&);
  3491. void SendEvent(StringHash);
  3492. void SendEvent(StringHash, VariantMap&);
  3493. operator Serializable() const;
  3494. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3495. void SetAnimationEnabled(bool);
  3496. void SetAnimationTime(float);
  3497. bool SetAttribute(const String&, const Variant&);
  3498. bool SetAttribute(uint, const Variant&);
  3499. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3500. void SetAttributeAnimationSpeed(const String&, float);
  3501. void SetAttributeAnimationTime(const String&, float);
  3502. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3503. void SetBlendMode(BlendMode);
  3504. void SetBlockEvents(bool);
  3505. void SetBorder(const IntRect&);
  3506. void SetBringToBack(bool);
  3507. void SetBringToFront(bool);
  3508. void SetChecked(bool);
  3509. void SetCheckedOffset(const IntVector2&);
  3510. void SetCheckedOffset(int, int);
  3511. void SetChildOffset(const IntVector2&);
  3512. void SetClipBorder(const IntRect&);
  3513. void SetClipChildren(bool);
  3514. void SetColor(Corner, const Color&);
  3515. void SetColor(const Color&);
  3516. void SetDeepEnabled(bool);
  3517. void SetDefaultStyle(XMLFile);
  3518. void SetDisabledOffset(const IntVector2&);
  3519. void SetDisabledOffset(int, int);
  3520. void SetDragDropMode(uint);
  3521. void SetEditable(bool);
  3522. void SetElementEventSender(bool);
  3523. void SetEnableAnchor(bool);
  3524. void SetEnabled(bool);
  3525. void SetEnabledRecursive(bool);
  3526. void SetFixedHeight(int);
  3527. void SetFixedSize(const IntVector2&);
  3528. void SetFixedSize(int, int);
  3529. void SetFixedWidth(int);
  3530. void SetFocus(bool);
  3531. void SetFocusMode(FocusMode);
  3532. void SetFullImageRect();
  3533. void SetGlobalVar(StringHash, const Variant&);
  3534. void SetHeight(int);
  3535. void SetHorizontalAlignment(HorizontalAlignment);
  3536. void SetHoverOffset(const IntVector2&);
  3537. void SetHoverOffset(int, int);
  3538. void SetHovering(bool);
  3539. void SetImageBorder(const IntRect&);
  3540. void SetImageRect(const IntRect&);
  3541. void SetIndent(int);
  3542. void SetIndentSpacing(int);
  3543. void SetInstanceDefault(bool);
  3544. void SetInterceptNetworkUpdate(const String&, bool);
  3545. void SetInternal(bool);
  3546. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  3547. void SetLayoutBorder(const IntRect&);
  3548. void SetLayoutFlexScale(const Vector2&);
  3549. void SetLayoutMode(LayoutMode);
  3550. void SetLayoutSpacing(int);
  3551. void SetMaterial(Material);
  3552. void SetMaterialAttr(const ResourceRef&);
  3553. void SetMaxAnchor(const Vector2&);
  3554. void SetMaxAnchor(float, float);
  3555. void SetMaxHeight(int);
  3556. void SetMaxOffset(const IntVector2&);
  3557. void SetMaxSize(const IntVector2&);
  3558. void SetMaxSize(int, int);
  3559. void SetMaxWidth(int);
  3560. void SetMinAnchor(const Vector2&);
  3561. void SetMinAnchor(float, float);
  3562. void SetMinHeight(int);
  3563. void SetMinOffset(const IntVector2&);
  3564. void SetMinSize(const IntVector2&);
  3565. void SetMinSize(int, int);
  3566. void SetMinWidth(int);
  3567. void SetName(const String&);
  3568. void SetObjectAnimation(ObjectAnimation);
  3569. void SetObjectAnimationAttr(const ResourceRef&);
  3570. void SetOpacity(float);
  3571. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3572. void SetPivot(const Vector2&);
  3573. void SetPivot(float, float);
  3574. void SetPosition(const IntVector2&);
  3575. void SetPosition(int, int);
  3576. void SetPriority(int);
  3577. void SetRenderTexture(Texture2D);
  3578. void SetSelected(bool);
  3579. void SetSize(const IntVector2&);
  3580. void SetSize(int, int);
  3581. void SetSortChildren(bool);
  3582. bool SetStyle(const String&, XMLFile = null);
  3583. bool SetStyle(const XMLElement&);
  3584. bool SetStyleAuto(XMLFile = null);
  3585. void SetTags(Array<String>);
  3586. void SetTemporary(bool);
  3587. void SetTexture(Texture);
  3588. void SetTextureAttr(const ResourceRef&);
  3589. void SetTiled(bool);
  3590. void SetTraversalMode(TraversalMode);
  3591. void SetUseDerivedOpacity(bool);
  3592. void SetVar(StringHash, const Variant&);
  3593. void SetVerticalAlignment(VerticalAlignment);
  3594. void SetVisible(bool);
  3595. void SetWidth(int);
  3596. void SortChildren();
  3597. const String& GetAppliedStyle() const;
  3598. const String& GetCategory() const;
  3599. const String& GetName() const;
  3600. const String& GetTypeName() const;
  3601. operator UIElement() const;
  3602. void UnsubscribeFromAllEvents();
  3603. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  3604. void UnsubscribeFromEvent(Object, StringHash);
  3605. void UnsubscribeFromEvent(StringHash);
  3606. void UnsubscribeFromEvents(Object);
  3607. void Update(float);
  3608. void UpdateLayout();
  3609. const Variant& GetGlobalVar(StringHash) const;
  3610. const Variant& GetVar(const StringHash&) const;
  3611. const VariantMap& GetGlobalVars() const;
  3612. const VariantMap& GetVars() const;
  3613. const Vector2& GetLayoutFlexScale() const;
  3614. const Vector2& GetMaxAnchor() const;
  3615. const Vector2& GetMinAnchor() const;
  3616. const Vector2& GetPivot() const;
  3617. int WeakRefs() const;
  3618. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  3619. void WriteInitialDeltaUpdate(Serializer&, uint8);
  3620. void WriteLatestDataUpdate(Serializer&, uint8);
  3621. operator const Animatable() const;
  3622. operator const BorderImage() const;
  3623. operator const Object() const;
  3624. operator const RefCounted() const;
  3625. operator const Serializable() const;
  3626. operator const UIElement() const;
  3627. // Properties:
  3628. bool animationEnabled;
  3629. /* readonly */
  3630. Array<Variant> attributeDefaults;
  3631. /* readonly */
  3632. Array<AttributeInfo> attributeInfos;
  3633. Array<Variant> attributes;
  3634. BlendMode blendMode;
  3635. IntRect border;
  3636. bool bringToBack;
  3637. bool bringToFront;
  3638. /* readonly */
  3639. String category;
  3640. bool checked;
  3641. IntVector2 checkedOffset;
  3642. /* readonly */
  3643. IntVector2 childOffset;
  3644. /* readonly */
  3645. Array<UIElement> children;
  3646. IntRect clipBorder;
  3647. bool clipChildren;
  3648. /* writeonly */
  3649. Color color;
  3650. /* readonly */
  3651. bool colorGradient;
  3652. Array<Color> colors;
  3653. /* readonly */
  3654. IntRect combinedScreenRect;
  3655. XMLFile defaultStyle;
  3656. /* readonly */
  3657. float derivedOpacity;
  3658. IntVector2 disabledOffset;
  3659. /* readonly */
  3660. uint dragButtonCombo;
  3661. /* readonly */
  3662. uint dragButtonCount;
  3663. uint dragDropMode;
  3664. bool editable;
  3665. bool elementEventSender;
  3666. bool enableAnchor;
  3667. bool enabled;
  3668. /* readonly */
  3669. bool enabledSelf;
  3670. /* readonly */
  3671. bool fixedHeight;
  3672. /* readonly */
  3673. bool fixedSize;
  3674. /* readonly */
  3675. bool fixedWidth;
  3676. bool focus;
  3677. FocusMode focusMode;
  3678. Array<Variant> globalVar;
  3679. /* readonly */
  3680. VariantMap globalVars;
  3681. int height;
  3682. HorizontalAlignment horizontalAlignment;
  3683. IntVector2 hoverOffset;
  3684. /* readonly */
  3685. bool hovering;
  3686. IntRect imageBorder;
  3687. IntRect imageRect;
  3688. int indent;
  3689. int indentSpacing;
  3690. /* readonly */
  3691. int indentWidth;
  3692. bool internal;
  3693. IntRect layoutBorder;
  3694. Vector2 layoutFlexScale;
  3695. LayoutMode layoutMode;
  3696. int layoutSpacing;
  3697. Material material;
  3698. Vector2 maxAnchor;
  3699. int maxHeight;
  3700. IntVector2 maxOffset;
  3701. IntVector2 maxSize;
  3702. int maxWidth;
  3703. Vector2 minAnchor;
  3704. int minHeight;
  3705. IntVector2 minOffset;
  3706. IntVector2 minSize;
  3707. int minWidth;
  3708. String name;
  3709. /* readonly */
  3710. uint numAllChildren;
  3711. /* readonly */
  3712. uint numAttributes;
  3713. /* readonly */
  3714. uint numChildren;
  3715. ObjectAnimation objectAnimation;
  3716. float opacity;
  3717. UIElement parent;
  3718. Vector2 pivot;
  3719. IntVector2 position;
  3720. int priority;
  3721. /* readonly */
  3722. int refs;
  3723. /* readonly */
  3724. UIElement root;
  3725. /* readonly */
  3726. IntVector2 screenPosition;
  3727. bool selected;
  3728. IntVector2 size;
  3729. bool sortChildren;
  3730. String style;
  3731. /* readonly */
  3732. Array<String> tags;
  3733. bool temporary;
  3734. Texture texture;
  3735. bool tiled;
  3736. TraversalMode traversalMode;
  3737. /* readonly */
  3738. StringHash type;
  3739. /* readonly */
  3740. String typeName;
  3741. bool useDerivedOpacity;
  3742. /* readonly */
  3743. VariantMap vars;
  3744. VerticalAlignment verticalAlignment;
  3745. bool visible;
  3746. /* readonly */
  3747. bool visibleEffective;
  3748. /* readonly */
  3749. int weakRefs;
  3750. int width;
  3751. };
  3752. class CollisionBox2D
  3753. {
  3754. public:
  3755. CollisionBox2D();
  3756. // Methods:
  3757. void AllocateNetworkState();
  3758. operator Animatable() const;
  3759. void ApplyAttributes();
  3760. void CleanupConnection(Connection);
  3761. operator CollisionShape2D() const;
  3762. operator Component() const;
  3763. void CreateFixture();
  3764. void DrawDebugGeometry(DebugRenderer, bool);
  3765. float GetAngle() const;
  3766. bool GetAnimationEnabled() const;
  3767. Variant GetAttribute(const String&) const;
  3768. Variant GetAttribute(uint) const;
  3769. ValueAnimation GetAttributeAnimation(const String&) const;
  3770. float GetAttributeAnimationSpeed(const String&) const;
  3771. float GetAttributeAnimationTime(const String&) const;
  3772. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3773. Variant GetAttributeDefault(const String&) const;
  3774. Variant GetAttributeDefault(uint) const;
  3775. bool GetBlockEvents() const;
  3776. int GetCategoryBits() const;
  3777. Component GetComponent(StringHash) const;
  3778. float GetDensity() const;
  3779. VariantMap& GetEventDataMap() const;
  3780. Object GetEventSender() const;
  3781. float GetFriction() const;
  3782. int GetGroupIndex() const;
  3783. uint GetID() const;
  3784. float GetInertia() const;
  3785. bool GetInterceptNetworkUpdate(const String&) const;
  3786. int GetMaskBits() const;
  3787. float GetMass() const;
  3788. Vector2 GetMassCenter() const;
  3789. Node GetNode() const;
  3790. uint GetNumAttributes() const;
  3791. uint GetNumNetworkAttributes() const;
  3792. ObjectAnimation GetObjectAnimation() const;
  3793. ResourceRef GetObjectAnimationAttr() const;
  3794. float GetRestitution() const;
  3795. Scene GetScene() const;
  3796. Object GetSubsystem(StringHash) const;
  3797. StringHash GetType() const;
  3798. bool HasEventHandlers() const;
  3799. bool HasSubscribedToEvent(Object, StringHash) const;
  3800. bool HasSubscribedToEvent(StringHash) const;
  3801. bool IsEnabled() const;
  3802. bool IsEnabledEffective() const;
  3803. bool IsInstanceOf(StringHash) const;
  3804. bool IsReplicated() const;
  3805. bool IsTemporary() const;
  3806. bool IsTrigger() const;
  3807. bool Load(Deserializer&);
  3808. bool LoadJSON(const JSONValue&);
  3809. bool LoadXML(const XMLElement&);
  3810. void MarkNetworkUpdate();
  3811. operator Object() const;
  3812. void OnEvent(Object, StringHash, VariantMap&);
  3813. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  3814. void OnSetAttribute(const AttributeInfo&, const Variant&);
  3815. void OnSetEnabled();
  3816. void PrepareNetworkUpdate();
  3817. bool ReadDeltaUpdate(Deserializer&);
  3818. bool ReadLatestDataUpdate(Deserializer&);
  3819. operator RefCounted() const;
  3820. int Refs() const;
  3821. void ReleaseFixture();
  3822. void Remove();
  3823. void RemoveAttributeAnimation(const String&);
  3824. void RemoveInstanceDefault();
  3825. void RemoveObjectAnimation();
  3826. void ResetToDefault();
  3827. bool Save(Serializer&) const;
  3828. bool SaveDefaultAttributes() const;
  3829. bool SaveJSON(JSONValue&) const;
  3830. bool SaveXML(XMLElement&) const;
  3831. void SendEvent(StringHash);
  3832. void SendEvent(StringHash, VariantMap&);
  3833. operator Serializable() const;
  3834. void SetAngle(float);
  3835. void SetAnimationEnabled(bool);
  3836. void SetAnimationTime(float);
  3837. bool SetAttribute(const String&, const Variant&);
  3838. bool SetAttribute(uint, const Variant&);
  3839. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3840. void SetAttributeAnimationSpeed(const String&, float);
  3841. void SetAttributeAnimationTime(const String&, float);
  3842. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3843. void SetBlockEvents(bool);
  3844. void SetCategoryBits(int);
  3845. void SetCenter(const Vector2&);
  3846. void SetCenter(float, float);
  3847. void SetDensity(float);
  3848. void SetEnabled(bool);
  3849. void SetFriction(float);
  3850. void SetGlobalVar(StringHash, const Variant&);
  3851. void SetGroupIndex(int);
  3852. void SetInstanceDefault(bool);
  3853. void SetInterceptNetworkUpdate(const String&, bool);
  3854. void SetMaskBits(int);
  3855. void SetObjectAnimation(ObjectAnimation);
  3856. void SetObjectAnimationAttr(const ResourceRef&);
  3857. void SetRestitution(float);
  3858. void SetSize(const Vector2&);
  3859. void SetSize(float, float);
  3860. void SetTemporary(bool);
  3861. void SetTrigger(bool);
  3862. const String& GetCategory() const;
  3863. const String& GetTypeName() const;
  3864. void UnsubscribeFromAllEvents();
  3865. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  3866. void UnsubscribeFromEvent(Object, StringHash);
  3867. void UnsubscribeFromEvent(StringHash);
  3868. void UnsubscribeFromEvents(Object);
  3869. const Variant& GetGlobalVar(StringHash) const;
  3870. const VariantMap& GetGlobalVars() const;
  3871. const Vector2& GetCenter() const;
  3872. const Vector2& GetSize() const;
  3873. int WeakRefs() const;
  3874. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  3875. void WriteInitialDeltaUpdate(Serializer&, uint8);
  3876. void WriteLatestDataUpdate(Serializer&, uint8);
  3877. operator const Animatable() const;
  3878. operator const CollisionShape2D() const;
  3879. operator const Component() const;
  3880. operator const Object() const;
  3881. operator const RefCounted() const;
  3882. operator const Serializable() const;
  3883. // Properties:
  3884. float angle;
  3885. bool animationEnabled;
  3886. /* readonly */
  3887. Array<Variant> attributeDefaults;
  3888. /* readonly */
  3889. Array<AttributeInfo> attributeInfos;
  3890. Array<Variant> attributes;
  3891. /* readonly */
  3892. String category;
  3893. int categoryBits;
  3894. Vector2 center;
  3895. float density;
  3896. bool enabled;
  3897. /* readonly */
  3898. bool enabledEffective;
  3899. float friction;
  3900. Array<Variant> globalVar;
  3901. /* readonly */
  3902. VariantMap globalVars;
  3903. int groupIndex;
  3904. /* readonly */
  3905. uint id;
  3906. /* readonly */
  3907. float inertia;
  3908. int maskBits;
  3909. /* readonly */
  3910. float mass;
  3911. /* readonly */
  3912. Vector2 massCenter;
  3913. /* readonly */
  3914. Node node;
  3915. /* readonly */
  3916. uint numAttributes;
  3917. ObjectAnimation objectAnimation;
  3918. /* readonly */
  3919. int refs;
  3920. /* readonly */
  3921. bool replicated;
  3922. float restitution;
  3923. Vector2 size;
  3924. bool temporary;
  3925. bool trigger;
  3926. /* readonly */
  3927. StringHash type;
  3928. /* readonly */
  3929. String typeName;
  3930. /* readonly */
  3931. int weakRefs;
  3932. };
  3933. class CollisionChain2D
  3934. {
  3935. public:
  3936. CollisionChain2D();
  3937. // Methods:
  3938. void AllocateNetworkState();
  3939. operator Animatable() const;
  3940. void ApplyAttributes();
  3941. void CleanupConnection(Connection);
  3942. operator CollisionShape2D() const;
  3943. operator Component() const;
  3944. void CreateFixture();
  3945. void DrawDebugGeometry(DebugRenderer, bool);
  3946. bool GetAnimationEnabled() const;
  3947. Variant GetAttribute(const String&) const;
  3948. Variant GetAttribute(uint) const;
  3949. ValueAnimation GetAttributeAnimation(const String&) const;
  3950. float GetAttributeAnimationSpeed(const String&) const;
  3951. float GetAttributeAnimationTime(const String&) const;
  3952. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3953. Variant GetAttributeDefault(const String&) const;
  3954. Variant GetAttributeDefault(uint) const;
  3955. bool GetBlockEvents() const;
  3956. int GetCategoryBits() const;
  3957. Component GetComponent(StringHash) const;
  3958. float GetDensity() const;
  3959. VariantMap& GetEventDataMap() const;
  3960. Object GetEventSender() const;
  3961. float GetFriction() const;
  3962. int GetGroupIndex() const;
  3963. uint GetID() const;
  3964. float GetInertia() const;
  3965. bool GetInterceptNetworkUpdate(const String&) const;
  3966. bool GetLoop() const;
  3967. int GetMaskBits() const;
  3968. float GetMass() const;
  3969. Vector2 GetMassCenter() const;
  3970. Node GetNode() const;
  3971. uint GetNumAttributes() const;
  3972. uint GetNumNetworkAttributes() const;
  3973. ObjectAnimation GetObjectAnimation() const;
  3974. ResourceRef GetObjectAnimationAttr() const;
  3975. float GetRestitution() const;
  3976. Scene GetScene() const;
  3977. Object GetSubsystem(StringHash) const;
  3978. StringHash GetType() const;
  3979. uint GetVertexCount() const;
  3980. Array<Vector2> GetVertices() const;
  3981. bool HasEventHandlers() const;
  3982. bool HasSubscribedToEvent(Object, StringHash) const;
  3983. bool HasSubscribedToEvent(StringHash) const;
  3984. bool IsEnabled() const;
  3985. bool IsEnabledEffective() const;
  3986. bool IsInstanceOf(StringHash) const;
  3987. bool IsReplicated() const;
  3988. bool IsTemporary() const;
  3989. bool IsTrigger() const;
  3990. bool Load(Deserializer&);
  3991. bool LoadJSON(const JSONValue&);
  3992. bool LoadXML(const XMLElement&);
  3993. void MarkNetworkUpdate();
  3994. operator Object() const;
  3995. void OnEvent(Object, StringHash, VariantMap&);
  3996. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  3997. void OnSetAttribute(const AttributeInfo&, const Variant&);
  3998. void OnSetEnabled();
  3999. void PrepareNetworkUpdate();
  4000. bool ReadDeltaUpdate(Deserializer&);
  4001. bool ReadLatestDataUpdate(Deserializer&);
  4002. operator RefCounted() const;
  4003. int Refs() const;
  4004. void ReleaseFixture();
  4005. void Remove();
  4006. void RemoveAttributeAnimation(const String&);
  4007. void RemoveInstanceDefault();
  4008. void RemoveObjectAnimation();
  4009. void ResetToDefault();
  4010. bool Save(Serializer&) const;
  4011. bool SaveDefaultAttributes() const;
  4012. bool SaveJSON(JSONValue&) const;
  4013. bool SaveXML(XMLElement&) const;
  4014. void SendEvent(StringHash);
  4015. void SendEvent(StringHash, VariantMap&);
  4016. operator Serializable() const;
  4017. void SetAnimationEnabled(bool);
  4018. void SetAnimationTime(float);
  4019. bool SetAttribute(const String&, const Variant&);
  4020. bool SetAttribute(uint, const Variant&);
  4021. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4022. void SetAttributeAnimationSpeed(const String&, float);
  4023. void SetAttributeAnimationTime(const String&, float);
  4024. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4025. void SetBlockEvents(bool);
  4026. void SetCategoryBits(int);
  4027. void SetDensity(float);
  4028. void SetEnabled(bool);
  4029. void SetFriction(float);
  4030. void SetGlobalVar(StringHash, const Variant&);
  4031. void SetGroupIndex(int);
  4032. void SetInstanceDefault(bool);
  4033. void SetInterceptNetworkUpdate(const String&, bool);
  4034. void SetLoop(bool);
  4035. void SetMaskBits(int);
  4036. void SetObjectAnimation(ObjectAnimation);
  4037. void SetObjectAnimationAttr(const ResourceRef&);
  4038. void SetRestitution(float);
  4039. void SetTemporary(bool);
  4040. void SetTrigger(bool);
  4041. void SetVertex(uint, const Vector2&);
  4042. void SetVertexCount(uint);
  4043. void SetVertices(Array<Vector2>);
  4044. const String& GetCategory() const;
  4045. const String& GetTypeName() const;
  4046. void UnsubscribeFromAllEvents();
  4047. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4048. void UnsubscribeFromEvent(Object, StringHash);
  4049. void UnsubscribeFromEvent(StringHash);
  4050. void UnsubscribeFromEvents(Object);
  4051. const Variant& GetGlobalVar(StringHash) const;
  4052. const VariantMap& GetGlobalVars() const;
  4053. const Vector2& GetVertex(uint) const;
  4054. int WeakRefs() const;
  4055. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4056. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4057. void WriteLatestDataUpdate(Serializer&, uint8);
  4058. operator const Animatable() const;
  4059. operator const CollisionShape2D() const;
  4060. operator const Component() const;
  4061. operator const Object() const;
  4062. operator const RefCounted() const;
  4063. operator const Serializable() const;
  4064. // Properties:
  4065. bool animationEnabled;
  4066. /* readonly */
  4067. Array<Variant> attributeDefaults;
  4068. /* readonly */
  4069. Array<AttributeInfo> attributeInfos;
  4070. Array<Variant> attributes;
  4071. /* readonly */
  4072. String category;
  4073. int categoryBits;
  4074. float density;
  4075. bool enabled;
  4076. /* readonly */
  4077. bool enabledEffective;
  4078. float friction;
  4079. Array<Variant> globalVar;
  4080. /* readonly */
  4081. VariantMap globalVars;
  4082. int groupIndex;
  4083. /* readonly */
  4084. uint id;
  4085. /* readonly */
  4086. float inertia;
  4087. bool loop;
  4088. int maskBits;
  4089. /* readonly */
  4090. float mass;
  4091. /* readonly */
  4092. Vector2 massCenter;
  4093. /* readonly */
  4094. Node node;
  4095. /* readonly */
  4096. uint numAttributes;
  4097. ObjectAnimation objectAnimation;
  4098. /* readonly */
  4099. int refs;
  4100. /* readonly */
  4101. bool replicated;
  4102. float restitution;
  4103. bool temporary;
  4104. bool trigger;
  4105. /* readonly */
  4106. StringHash type;
  4107. /* readonly */
  4108. String typeName;
  4109. uint vertexCount;
  4110. /* readonly */
  4111. int weakRefs;
  4112. };
  4113. class CollisionCircle2D
  4114. {
  4115. public:
  4116. CollisionCircle2D();
  4117. // Methods:
  4118. void AllocateNetworkState();
  4119. operator Animatable() const;
  4120. void ApplyAttributes();
  4121. void CleanupConnection(Connection);
  4122. operator CollisionShape2D() const;
  4123. operator Component() const;
  4124. void CreateFixture();
  4125. void DrawDebugGeometry(DebugRenderer, bool);
  4126. bool GetAnimationEnabled() const;
  4127. Variant GetAttribute(const String&) const;
  4128. Variant GetAttribute(uint) const;
  4129. ValueAnimation GetAttributeAnimation(const String&) const;
  4130. float GetAttributeAnimationSpeed(const String&) const;
  4131. float GetAttributeAnimationTime(const String&) const;
  4132. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4133. Variant GetAttributeDefault(const String&) const;
  4134. Variant GetAttributeDefault(uint) const;
  4135. bool GetBlockEvents() const;
  4136. int GetCategoryBits() const;
  4137. Component GetComponent(StringHash) const;
  4138. float GetDensity() const;
  4139. VariantMap& GetEventDataMap() const;
  4140. Object GetEventSender() const;
  4141. float GetFriction() const;
  4142. int GetGroupIndex() const;
  4143. uint GetID() const;
  4144. float GetInertia() const;
  4145. bool GetInterceptNetworkUpdate(const String&) const;
  4146. int GetMaskBits() const;
  4147. float GetMass() const;
  4148. Vector2 GetMassCenter() const;
  4149. Node GetNode() const;
  4150. uint GetNumAttributes() const;
  4151. uint GetNumNetworkAttributes() const;
  4152. ObjectAnimation GetObjectAnimation() const;
  4153. ResourceRef GetObjectAnimationAttr() const;
  4154. float GetRadius() const;
  4155. float GetRestitution() const;
  4156. Scene GetScene() const;
  4157. Object GetSubsystem(StringHash) const;
  4158. StringHash GetType() const;
  4159. bool HasEventHandlers() const;
  4160. bool HasSubscribedToEvent(Object, StringHash) const;
  4161. bool HasSubscribedToEvent(StringHash) const;
  4162. bool IsEnabled() const;
  4163. bool IsEnabledEffective() const;
  4164. bool IsInstanceOf(StringHash) const;
  4165. bool IsReplicated() const;
  4166. bool IsTemporary() const;
  4167. bool IsTrigger() const;
  4168. bool Load(Deserializer&);
  4169. bool LoadJSON(const JSONValue&);
  4170. bool LoadXML(const XMLElement&);
  4171. void MarkNetworkUpdate();
  4172. operator Object() const;
  4173. void OnEvent(Object, StringHash, VariantMap&);
  4174. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4175. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4176. void OnSetEnabled();
  4177. void PrepareNetworkUpdate();
  4178. bool ReadDeltaUpdate(Deserializer&);
  4179. bool ReadLatestDataUpdate(Deserializer&);
  4180. operator RefCounted() const;
  4181. int Refs() const;
  4182. void ReleaseFixture();
  4183. void Remove();
  4184. void RemoveAttributeAnimation(const String&);
  4185. void RemoveInstanceDefault();
  4186. void RemoveObjectAnimation();
  4187. void ResetToDefault();
  4188. bool Save(Serializer&) const;
  4189. bool SaveDefaultAttributes() const;
  4190. bool SaveJSON(JSONValue&) const;
  4191. bool SaveXML(XMLElement&) const;
  4192. void SendEvent(StringHash);
  4193. void SendEvent(StringHash, VariantMap&);
  4194. operator Serializable() const;
  4195. void SetAnimationEnabled(bool);
  4196. void SetAnimationTime(float);
  4197. bool SetAttribute(const String&, const Variant&);
  4198. bool SetAttribute(uint, const Variant&);
  4199. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4200. void SetAttributeAnimationSpeed(const String&, float);
  4201. void SetAttributeAnimationTime(const String&, float);
  4202. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4203. void SetBlockEvents(bool);
  4204. void SetCategoryBits(int);
  4205. void SetCenter(const Vector2&);
  4206. void SetCenter(float, float);
  4207. void SetDensity(float);
  4208. void SetEnabled(bool);
  4209. void SetFriction(float);
  4210. void SetGlobalVar(StringHash, const Variant&);
  4211. void SetGroupIndex(int);
  4212. void SetInstanceDefault(bool);
  4213. void SetInterceptNetworkUpdate(const String&, bool);
  4214. void SetMaskBits(int);
  4215. void SetObjectAnimation(ObjectAnimation);
  4216. void SetObjectAnimationAttr(const ResourceRef&);
  4217. void SetRadius(float);
  4218. void SetRestitution(float);
  4219. void SetTemporary(bool);
  4220. void SetTrigger(bool);
  4221. const String& GetCategory() const;
  4222. const String& GetTypeName() const;
  4223. void UnsubscribeFromAllEvents();
  4224. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4225. void UnsubscribeFromEvent(Object, StringHash);
  4226. void UnsubscribeFromEvent(StringHash);
  4227. void UnsubscribeFromEvents(Object);
  4228. const Variant& GetGlobalVar(StringHash) const;
  4229. const VariantMap& GetGlobalVars() const;
  4230. const Vector2& GetCenter() const;
  4231. int WeakRefs() const;
  4232. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4233. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4234. void WriteLatestDataUpdate(Serializer&, uint8);
  4235. operator const Animatable() const;
  4236. operator const CollisionShape2D() const;
  4237. operator const Component() const;
  4238. operator const Object() const;
  4239. operator const RefCounted() const;
  4240. operator const Serializable() const;
  4241. // Properties:
  4242. bool animationEnabled;
  4243. /* readonly */
  4244. Array<Variant> attributeDefaults;
  4245. /* readonly */
  4246. Array<AttributeInfo> attributeInfos;
  4247. Array<Variant> attributes;
  4248. /* readonly */
  4249. String category;
  4250. int categoryBits;
  4251. Vector2 center;
  4252. float density;
  4253. bool enabled;
  4254. /* readonly */
  4255. bool enabledEffective;
  4256. float friction;
  4257. Array<Variant> globalVar;
  4258. /* readonly */
  4259. VariantMap globalVars;
  4260. int groupIndex;
  4261. /* readonly */
  4262. uint id;
  4263. /* readonly */
  4264. float inertia;
  4265. int maskBits;
  4266. /* readonly */
  4267. float mass;
  4268. /* readonly */
  4269. Vector2 massCenter;
  4270. /* readonly */
  4271. Node node;
  4272. /* readonly */
  4273. uint numAttributes;
  4274. ObjectAnimation objectAnimation;
  4275. float radius;
  4276. /* readonly */
  4277. int refs;
  4278. /* readonly */
  4279. bool replicated;
  4280. float restitution;
  4281. bool temporary;
  4282. bool trigger;
  4283. /* readonly */
  4284. StringHash type;
  4285. /* readonly */
  4286. String typeName;
  4287. /* readonly */
  4288. int weakRefs;
  4289. };
  4290. class CollisionEdge2D
  4291. {
  4292. public:
  4293. CollisionEdge2D();
  4294. // Methods:
  4295. void AllocateNetworkState();
  4296. operator Animatable() const;
  4297. void ApplyAttributes();
  4298. void CleanupConnection(Connection);
  4299. operator CollisionShape2D() const;
  4300. operator Component() const;
  4301. void CreateFixture();
  4302. void DrawDebugGeometry(DebugRenderer, bool);
  4303. bool GetAnimationEnabled() const;
  4304. Variant GetAttribute(const String&) const;
  4305. Variant GetAttribute(uint) const;
  4306. ValueAnimation GetAttributeAnimation(const String&) const;
  4307. float GetAttributeAnimationSpeed(const String&) const;
  4308. float GetAttributeAnimationTime(const String&) const;
  4309. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4310. Variant GetAttributeDefault(const String&) const;
  4311. Variant GetAttributeDefault(uint) const;
  4312. bool GetBlockEvents() const;
  4313. int GetCategoryBits() const;
  4314. Component GetComponent(StringHash) const;
  4315. float GetDensity() const;
  4316. VariantMap& GetEventDataMap() const;
  4317. Object GetEventSender() const;
  4318. float GetFriction() const;
  4319. int GetGroupIndex() const;
  4320. uint GetID() const;
  4321. float GetInertia() const;
  4322. bool GetInterceptNetworkUpdate(const String&) const;
  4323. int GetMaskBits() const;
  4324. float GetMass() const;
  4325. Vector2 GetMassCenter() const;
  4326. Node GetNode() const;
  4327. uint GetNumAttributes() const;
  4328. uint GetNumNetworkAttributes() const;
  4329. ObjectAnimation GetObjectAnimation() const;
  4330. ResourceRef GetObjectAnimationAttr() const;
  4331. float GetRestitution() const;
  4332. Scene GetScene() const;
  4333. Object GetSubsystem(StringHash) const;
  4334. StringHash GetType() const;
  4335. bool HasEventHandlers() const;
  4336. bool HasSubscribedToEvent(Object, StringHash) const;
  4337. bool HasSubscribedToEvent(StringHash) const;
  4338. bool IsEnabled() const;
  4339. bool IsEnabledEffective() const;
  4340. bool IsInstanceOf(StringHash) const;
  4341. bool IsReplicated() const;
  4342. bool IsTemporary() const;
  4343. bool IsTrigger() const;
  4344. bool Load(Deserializer&);
  4345. bool LoadJSON(const JSONValue&);
  4346. bool LoadXML(const XMLElement&);
  4347. void MarkNetworkUpdate();
  4348. operator Object() const;
  4349. void OnEvent(Object, StringHash, VariantMap&);
  4350. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4351. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4352. void OnSetEnabled();
  4353. void PrepareNetworkUpdate();
  4354. bool ReadDeltaUpdate(Deserializer&);
  4355. bool ReadLatestDataUpdate(Deserializer&);
  4356. operator RefCounted() const;
  4357. int Refs() const;
  4358. void ReleaseFixture();
  4359. void Remove();
  4360. void RemoveAttributeAnimation(const String&);
  4361. void RemoveInstanceDefault();
  4362. void RemoveObjectAnimation();
  4363. void ResetToDefault();
  4364. bool Save(Serializer&) const;
  4365. bool SaveDefaultAttributes() const;
  4366. bool SaveJSON(JSONValue&) const;
  4367. bool SaveXML(XMLElement&) const;
  4368. void SendEvent(StringHash);
  4369. void SendEvent(StringHash, VariantMap&);
  4370. operator Serializable() const;
  4371. void SetAnimationEnabled(bool);
  4372. void SetAnimationTime(float);
  4373. bool SetAttribute(const String&, const Variant&);
  4374. bool SetAttribute(uint, const Variant&);
  4375. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4376. void SetAttributeAnimationSpeed(const String&, float);
  4377. void SetAttributeAnimationTime(const String&, float);
  4378. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4379. void SetBlockEvents(bool);
  4380. void SetCategoryBits(int);
  4381. void SetDensity(float);
  4382. void SetEnabled(bool);
  4383. void SetFriction(float);
  4384. void SetGlobalVar(StringHash, const Variant&);
  4385. void SetGroupIndex(int);
  4386. void SetInstanceDefault(bool);
  4387. void SetInterceptNetworkUpdate(const String&, bool);
  4388. void SetMaskBits(int);
  4389. void SetObjectAnimation(ObjectAnimation);
  4390. void SetObjectAnimationAttr(const ResourceRef&);
  4391. void SetRestitution(float);
  4392. void SetTemporary(bool);
  4393. void SetTrigger(bool);
  4394. void SetVertex1(const Vector2&);
  4395. void SetVertex2(const Vector2&);
  4396. void SetVertices(const Vector2&, const Vector2&);
  4397. const String& GetCategory() const;
  4398. const String& GetTypeName() const;
  4399. void UnsubscribeFromAllEvents();
  4400. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4401. void UnsubscribeFromEvent(Object, StringHash);
  4402. void UnsubscribeFromEvent(StringHash);
  4403. void UnsubscribeFromEvents(Object);
  4404. const Variant& GetGlobalVar(StringHash) const;
  4405. const VariantMap& GetGlobalVars() const;
  4406. const Vector2& GetVertex1() const;
  4407. const Vector2& GetVertex2() const;
  4408. int WeakRefs() const;
  4409. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4410. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4411. void WriteLatestDataUpdate(Serializer&, uint8);
  4412. operator const Animatable() const;
  4413. operator const CollisionShape2D() const;
  4414. operator const Component() const;
  4415. operator const Object() const;
  4416. operator const RefCounted() const;
  4417. operator const Serializable() const;
  4418. // Properties:
  4419. bool animationEnabled;
  4420. /* readonly */
  4421. Array<Variant> attributeDefaults;
  4422. /* readonly */
  4423. Array<AttributeInfo> attributeInfos;
  4424. Array<Variant> attributes;
  4425. /* readonly */
  4426. String category;
  4427. int categoryBits;
  4428. float density;
  4429. bool enabled;
  4430. /* readonly */
  4431. bool enabledEffective;
  4432. float friction;
  4433. Array<Variant> globalVar;
  4434. /* readonly */
  4435. VariantMap globalVars;
  4436. int groupIndex;
  4437. /* readonly */
  4438. uint id;
  4439. /* readonly */
  4440. float inertia;
  4441. int maskBits;
  4442. /* readonly */
  4443. float mass;
  4444. /* readonly */
  4445. Vector2 massCenter;
  4446. /* readonly */
  4447. Node node;
  4448. /* readonly */
  4449. uint numAttributes;
  4450. ObjectAnimation objectAnimation;
  4451. /* readonly */
  4452. int refs;
  4453. /* readonly */
  4454. bool replicated;
  4455. float restitution;
  4456. bool temporary;
  4457. bool trigger;
  4458. /* readonly */
  4459. StringHash type;
  4460. /* readonly */
  4461. String typeName;
  4462. Vector2 vertex1;
  4463. Vector2 vertex2;
  4464. /* readonly */
  4465. int weakRefs;
  4466. };
  4467. class CollisionGeometryData
  4468. {
  4469. public:
  4470. // Methods:
  4471. operator ConvexData() const;
  4472. operator GImpactMeshData() const;
  4473. operator HeightfieldData() const;
  4474. operator RefCounted() const;
  4475. int Refs() const;
  4476. operator TriangleMeshData() const;
  4477. int WeakRefs() const;
  4478. operator const ConvexData() const;
  4479. operator const GImpactMeshData() const;
  4480. operator const HeightfieldData() const;
  4481. operator const RefCounted() const;
  4482. operator const TriangleMeshData() const;
  4483. // Properties:
  4484. /* readonly */
  4485. int refs;
  4486. /* readonly */
  4487. int weakRefs;
  4488. };
  4489. class CollisionPolygon2D
  4490. {
  4491. public:
  4492. CollisionPolygon2D();
  4493. // Methods:
  4494. void AllocateNetworkState();
  4495. operator Animatable() const;
  4496. void ApplyAttributes();
  4497. void CleanupConnection(Connection);
  4498. operator CollisionShape2D() const;
  4499. operator Component() const;
  4500. void CreateFixture();
  4501. void DrawDebugGeometry(DebugRenderer, bool);
  4502. bool GetAnimationEnabled() const;
  4503. Variant GetAttribute(const String&) const;
  4504. Variant GetAttribute(uint) const;
  4505. ValueAnimation GetAttributeAnimation(const String&) const;
  4506. float GetAttributeAnimationSpeed(const String&) const;
  4507. float GetAttributeAnimationTime(const String&) const;
  4508. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4509. Variant GetAttributeDefault(const String&) const;
  4510. Variant GetAttributeDefault(uint) const;
  4511. bool GetBlockEvents() const;
  4512. int GetCategoryBits() const;
  4513. Component GetComponent(StringHash) const;
  4514. float GetDensity() const;
  4515. VariantMap& GetEventDataMap() const;
  4516. Object GetEventSender() const;
  4517. float GetFriction() const;
  4518. int GetGroupIndex() const;
  4519. uint GetID() const;
  4520. float GetInertia() const;
  4521. bool GetInterceptNetworkUpdate(const String&) const;
  4522. int GetMaskBits() const;
  4523. float GetMass() const;
  4524. Vector2 GetMassCenter() const;
  4525. Node GetNode() const;
  4526. uint GetNumAttributes() const;
  4527. uint GetNumNetworkAttributes() const;
  4528. ObjectAnimation GetObjectAnimation() const;
  4529. ResourceRef GetObjectAnimationAttr() const;
  4530. float GetRestitution() const;
  4531. Scene GetScene() const;
  4532. Object GetSubsystem(StringHash) const;
  4533. StringHash GetType() const;
  4534. uint GetVertexCount() const;
  4535. Array<Vector2> GetVertices() const;
  4536. bool HasEventHandlers() const;
  4537. bool HasSubscribedToEvent(Object, StringHash) const;
  4538. bool HasSubscribedToEvent(StringHash) const;
  4539. bool IsEnabled() const;
  4540. bool IsEnabledEffective() const;
  4541. bool IsInstanceOf(StringHash) const;
  4542. bool IsReplicated() const;
  4543. bool IsTemporary() const;
  4544. bool IsTrigger() const;
  4545. bool Load(Deserializer&);
  4546. bool LoadJSON(const JSONValue&);
  4547. bool LoadXML(const XMLElement&);
  4548. void MarkNetworkUpdate();
  4549. operator Object() const;
  4550. void OnEvent(Object, StringHash, VariantMap&);
  4551. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4552. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4553. void OnSetEnabled();
  4554. void PrepareNetworkUpdate();
  4555. bool ReadDeltaUpdate(Deserializer&);
  4556. bool ReadLatestDataUpdate(Deserializer&);
  4557. operator RefCounted() const;
  4558. int Refs() const;
  4559. void ReleaseFixture();
  4560. void Remove();
  4561. void RemoveAttributeAnimation(const String&);
  4562. void RemoveInstanceDefault();
  4563. void RemoveObjectAnimation();
  4564. void ResetToDefault();
  4565. bool Save(Serializer&) const;
  4566. bool SaveDefaultAttributes() const;
  4567. bool SaveJSON(JSONValue&) const;
  4568. bool SaveXML(XMLElement&) const;
  4569. void SendEvent(StringHash);
  4570. void SendEvent(StringHash, VariantMap&);
  4571. operator Serializable() const;
  4572. void SetAnimationEnabled(bool);
  4573. void SetAnimationTime(float);
  4574. bool SetAttribute(const String&, const Variant&);
  4575. bool SetAttribute(uint, const Variant&);
  4576. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4577. void SetAttributeAnimationSpeed(const String&, float);
  4578. void SetAttributeAnimationTime(const String&, float);
  4579. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4580. void SetBlockEvents(bool);
  4581. void SetCategoryBits(int);
  4582. void SetDensity(float);
  4583. void SetEnabled(bool);
  4584. void SetFriction(float);
  4585. void SetGlobalVar(StringHash, const Variant&);
  4586. void SetGroupIndex(int);
  4587. void SetInstanceDefault(bool);
  4588. void SetInterceptNetworkUpdate(const String&, bool);
  4589. void SetMaskBits(int);
  4590. void SetObjectAnimation(ObjectAnimation);
  4591. void SetObjectAnimationAttr(const ResourceRef&);
  4592. void SetRestitution(float);
  4593. void SetTemporary(bool);
  4594. void SetTrigger(bool);
  4595. void SetVertex(uint, const Vector2&);
  4596. void SetVertexCount(uint);
  4597. void SetVertices(Array<Vector2>);
  4598. const String& GetCategory() const;
  4599. const String& GetTypeName() const;
  4600. void UnsubscribeFromAllEvents();
  4601. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4602. void UnsubscribeFromEvent(Object, StringHash);
  4603. void UnsubscribeFromEvent(StringHash);
  4604. void UnsubscribeFromEvents(Object);
  4605. const Variant& GetGlobalVar(StringHash) const;
  4606. const VariantMap& GetGlobalVars() const;
  4607. const Vector2& GetVertex(uint) const;
  4608. int WeakRefs() const;
  4609. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4610. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4611. void WriteLatestDataUpdate(Serializer&, uint8);
  4612. operator const Animatable() const;
  4613. operator const CollisionShape2D() const;
  4614. operator const Component() const;
  4615. operator const Object() const;
  4616. operator const RefCounted() const;
  4617. operator const Serializable() const;
  4618. // Properties:
  4619. bool animationEnabled;
  4620. /* readonly */
  4621. Array<Variant> attributeDefaults;
  4622. /* readonly */
  4623. Array<AttributeInfo> attributeInfos;
  4624. Array<Variant> attributes;
  4625. /* readonly */
  4626. String category;
  4627. int categoryBits;
  4628. float density;
  4629. bool enabled;
  4630. /* readonly */
  4631. bool enabledEffective;
  4632. float friction;
  4633. Array<Variant> globalVar;
  4634. /* readonly */
  4635. VariantMap globalVars;
  4636. int groupIndex;
  4637. /* readonly */
  4638. uint id;
  4639. /* readonly */
  4640. float inertia;
  4641. int maskBits;
  4642. /* readonly */
  4643. float mass;
  4644. /* readonly */
  4645. Vector2 massCenter;
  4646. /* readonly */
  4647. Node node;
  4648. /* readonly */
  4649. uint numAttributes;
  4650. ObjectAnimation objectAnimation;
  4651. /* readonly */
  4652. int refs;
  4653. /* readonly */
  4654. bool replicated;
  4655. float restitution;
  4656. bool temporary;
  4657. bool trigger;
  4658. /* readonly */
  4659. StringHash type;
  4660. /* readonly */
  4661. String typeName;
  4662. uint vertexCount;
  4663. /* readonly */
  4664. int weakRefs;
  4665. };
  4666. class CollisionShape
  4667. {
  4668. public:
  4669. CollisionShape();
  4670. // Methods:
  4671. void AllocateNetworkState();
  4672. operator Animatable() const;
  4673. void ApplyAttributes();
  4674. void CleanupConnection(Connection);
  4675. operator Component() const;
  4676. void DrawDebugGeometry(DebugRenderer, bool);
  4677. bool GetAnimationEnabled() const;
  4678. Variant GetAttribute(const String&) const;
  4679. Variant GetAttribute(uint) const;
  4680. ValueAnimation GetAttributeAnimation(const String&) const;
  4681. float GetAttributeAnimationSpeed(const String&) const;
  4682. float GetAttributeAnimationTime(const String&) const;
  4683. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4684. Variant GetAttributeDefault(const String&) const;
  4685. Variant GetAttributeDefault(uint) const;
  4686. bool GetBlockEvents() const;
  4687. Component GetComponent(StringHash) const;
  4688. VariantMap& GetEventDataMap() const;
  4689. Object GetEventSender() const;
  4690. CollisionGeometryData GetGeometryData() const;
  4691. uint GetID() const;
  4692. bool GetInterceptNetworkUpdate(const String&) const;
  4693. uint GetLodLevel() const;
  4694. float GetMargin() const;
  4695. Model GetModel() const;
  4696. ResourceRef GetModelAttr() const;
  4697. Node GetNode() const;
  4698. uint GetNumAttributes() const;
  4699. uint GetNumNetworkAttributes() const;
  4700. ObjectAnimation GetObjectAnimation() const;
  4701. ResourceRef GetObjectAnimationAttr() const;
  4702. PhysicsWorld GetPhysicsWorld() const;
  4703. Scene GetScene() const;
  4704. ShapeType GetShapeType() const;
  4705. Object GetSubsystem(StringHash) const;
  4706. StringHash GetType() const;
  4707. BoundingBox GetWorldBoundingBox() const;
  4708. bool HasEventHandlers() const;
  4709. bool HasSubscribedToEvent(Object, StringHash) const;
  4710. bool HasSubscribedToEvent(StringHash) const;
  4711. bool IsEnabled() const;
  4712. bool IsEnabledEffective() const;
  4713. bool IsInstanceOf(StringHash) const;
  4714. bool IsReplicated() const;
  4715. bool IsTemporary() const;
  4716. bool Load(Deserializer&);
  4717. bool LoadJSON(const JSONValue&);
  4718. bool LoadXML(const XMLElement&);
  4719. void MarkNetworkUpdate();
  4720. void NotifyRigidBody(bool = true);
  4721. operator Object() const;
  4722. void OnEvent(Object, StringHash, VariantMap&);
  4723. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4724. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4725. void OnSetEnabled();
  4726. void PrepareNetworkUpdate();
  4727. const Quaternion& GetRotation() const;
  4728. bool ReadDeltaUpdate(Deserializer&);
  4729. bool ReadLatestDataUpdate(Deserializer&);
  4730. operator RefCounted() const;
  4731. int Refs() const;
  4732. void ReleaseShape();
  4733. void Remove();
  4734. void RemoveAttributeAnimation(const String&);
  4735. void RemoveInstanceDefault();
  4736. void RemoveObjectAnimation();
  4737. void ResetToDefault();
  4738. bool Save(Serializer&) const;
  4739. bool SaveDefaultAttributes() const;
  4740. bool SaveJSON(JSONValue&) const;
  4741. bool SaveXML(XMLElement&) const;
  4742. void SendEvent(StringHash);
  4743. void SendEvent(StringHash, VariantMap&);
  4744. operator Serializable() const;
  4745. void SetAnimationEnabled(bool);
  4746. void SetAnimationTime(float);
  4747. bool SetAttribute(const String&, const Variant&);
  4748. bool SetAttribute(uint, const Variant&);
  4749. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4750. void SetAttributeAnimationSpeed(const String&, float);
  4751. void SetAttributeAnimationTime(const String&, float);
  4752. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4753. void SetBlockEvents(bool);
  4754. void SetBox(const Vector3&, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4755. void SetCapsule(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4756. void SetCone(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4757. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4758. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4759. void SetCustomGImpactMesh(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4760. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4761. void SetCylinder(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4762. void SetEnabled(bool);
  4763. void SetGImpactMesh(Model, uint = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4764. void SetGlobalVar(StringHash, const Variant&);
  4765. void SetInstanceDefault(bool);
  4766. void SetInterceptNetworkUpdate(const String&, bool);
  4767. void SetLodLevel(uint);
  4768. void SetMargin(float);
  4769. void SetModel(Model);
  4770. void SetModelAttr(const ResourceRef&);
  4771. void SetObjectAnimation(ObjectAnimation);
  4772. void SetObjectAnimationAttr(const ResourceRef&);
  4773. void SetPosition(const Vector3&);
  4774. void SetRotation(const Quaternion&);
  4775. void SetShapeType(ShapeType);
  4776. void SetSize(const Vector3&);
  4777. void SetSphere(float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4778. void SetStaticPlane(const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4779. void SetTemporary(bool);
  4780. void SetTerrain(uint = 0);
  4781. void SetTransform(const Vector3&, const Quaternion&);
  4782. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4783. const String& GetCategory() const;
  4784. const String& GetTypeName() const;
  4785. void UnsubscribeFromAllEvents();
  4786. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4787. void UnsubscribeFromEvent(Object, StringHash);
  4788. void UnsubscribeFromEvent(StringHash);
  4789. void UnsubscribeFromEvents(Object);
  4790. const Variant& GetGlobalVar(StringHash) const;
  4791. const VariantMap& GetGlobalVars() const;
  4792. const Vector3& GetPosition() const;
  4793. const Vector3& GetSize() const;
  4794. int WeakRefs() const;
  4795. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4796. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4797. void WriteLatestDataUpdate(Serializer&, uint8);
  4798. operator const Animatable() const;
  4799. operator const Component() const;
  4800. operator const Object() const;
  4801. operator const RefCounted() const;
  4802. operator const Serializable() const;
  4803. // Properties:
  4804. bool animationEnabled;
  4805. /* readonly */
  4806. Array<Variant> attributeDefaults;
  4807. /* readonly */
  4808. Array<AttributeInfo> attributeInfos;
  4809. Array<Variant> attributes;
  4810. /* readonly */
  4811. String category;
  4812. bool enabled;
  4813. /* readonly */
  4814. bool enabledEffective;
  4815. Array<Variant> globalVar;
  4816. /* readonly */
  4817. VariantMap globalVars;
  4818. /* readonly */
  4819. uint id;
  4820. uint lodLevel;
  4821. float margin;
  4822. Model model;
  4823. /* readonly */
  4824. Node node;
  4825. /* readonly */
  4826. uint numAttributes;
  4827. ObjectAnimation objectAnimation;
  4828. Vector3 position;
  4829. /* readonly */
  4830. int refs;
  4831. /* readonly */
  4832. bool replicated;
  4833. Quaternion rotation;
  4834. ShapeType shapeType;
  4835. Vector3 size;
  4836. bool temporary;
  4837. /* readonly */
  4838. StringHash type;
  4839. /* readonly */
  4840. String typeName;
  4841. /* readonly */
  4842. int weakRefs;
  4843. /* readonly */
  4844. BoundingBox worldBoundingBox;
  4845. };
  4846. class CollisionShape2D
  4847. {
  4848. public:
  4849. // Methods:
  4850. void AllocateNetworkState();
  4851. operator Animatable() const;
  4852. void ApplyAttributes();
  4853. void CleanupConnection(Connection);
  4854. operator CollisionBox2D() const;
  4855. operator CollisionChain2D() const;
  4856. operator CollisionCircle2D() const;
  4857. operator CollisionEdge2D() const;
  4858. operator CollisionPolygon2D() const;
  4859. operator Component() const;
  4860. void CreateFixture();
  4861. void DrawDebugGeometry(DebugRenderer, bool);
  4862. bool GetAnimationEnabled() const;
  4863. Variant GetAttribute(const String&) const;
  4864. Variant GetAttribute(uint) const;
  4865. ValueAnimation GetAttributeAnimation(const String&) const;
  4866. float GetAttributeAnimationSpeed(const String&) const;
  4867. float GetAttributeAnimationTime(const String&) const;
  4868. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4869. Variant GetAttributeDefault(const String&) const;
  4870. Variant GetAttributeDefault(uint) const;
  4871. bool GetBlockEvents() const;
  4872. int GetCategoryBits() const;
  4873. Component GetComponent(StringHash) const;
  4874. float GetDensity() const;
  4875. VariantMap& GetEventDataMap() const;
  4876. Object GetEventSender() const;
  4877. float GetFriction() const;
  4878. int GetGroupIndex() const;
  4879. uint GetID() const;
  4880. float GetInertia() const;
  4881. bool GetInterceptNetworkUpdate(const String&) const;
  4882. int GetMaskBits() const;
  4883. float GetMass() const;
  4884. Vector2 GetMassCenter() const;
  4885. Node GetNode() const;
  4886. uint GetNumAttributes() const;
  4887. uint GetNumNetworkAttributes() const;
  4888. ObjectAnimation GetObjectAnimation() const;
  4889. ResourceRef GetObjectAnimationAttr() const;
  4890. float GetRestitution() const;
  4891. Scene GetScene() const;
  4892. Object GetSubsystem(StringHash) const;
  4893. StringHash GetType() const;
  4894. bool HasEventHandlers() const;
  4895. bool HasSubscribedToEvent(Object, StringHash) const;
  4896. bool HasSubscribedToEvent(StringHash) const;
  4897. bool IsEnabled() const;
  4898. bool IsEnabledEffective() const;
  4899. bool IsInstanceOf(StringHash) const;
  4900. bool IsReplicated() const;
  4901. bool IsTemporary() const;
  4902. bool IsTrigger() const;
  4903. bool Load(Deserializer&);
  4904. bool LoadJSON(const JSONValue&);
  4905. bool LoadXML(const XMLElement&);
  4906. void MarkNetworkUpdate();
  4907. operator Object() const;
  4908. void OnEvent(Object, StringHash, VariantMap&);
  4909. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4910. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4911. void OnSetEnabled();
  4912. void PrepareNetworkUpdate();
  4913. bool ReadDeltaUpdate(Deserializer&);
  4914. bool ReadLatestDataUpdate(Deserializer&);
  4915. operator RefCounted() const;
  4916. int Refs() const;
  4917. void ReleaseFixture();
  4918. void Remove();
  4919. void RemoveAttributeAnimation(const String&);
  4920. void RemoveInstanceDefault();
  4921. void RemoveObjectAnimation();
  4922. void ResetToDefault();
  4923. bool Save(Serializer&) const;
  4924. bool SaveDefaultAttributes() const;
  4925. bool SaveJSON(JSONValue&) const;
  4926. bool SaveXML(XMLElement&) const;
  4927. void SendEvent(StringHash);
  4928. void SendEvent(StringHash, VariantMap&);
  4929. operator Serializable() const;
  4930. void SetAnimationEnabled(bool);
  4931. void SetAnimationTime(float);
  4932. bool SetAttribute(const String&, const Variant&);
  4933. bool SetAttribute(uint, const Variant&);
  4934. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4935. void SetAttributeAnimationSpeed(const String&, float);
  4936. void SetAttributeAnimationTime(const String&, float);
  4937. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4938. void SetBlockEvents(bool);
  4939. void SetCategoryBits(int);
  4940. void SetDensity(float);
  4941. void SetEnabled(bool);
  4942. void SetFriction(float);
  4943. void SetGlobalVar(StringHash, const Variant&);
  4944. void SetGroupIndex(int);
  4945. void SetInstanceDefault(bool);
  4946. void SetInterceptNetworkUpdate(const String&, bool);
  4947. void SetMaskBits(int);
  4948. void SetObjectAnimation(ObjectAnimation);
  4949. void SetObjectAnimationAttr(const ResourceRef&);
  4950. void SetRestitution(float);
  4951. void SetTemporary(bool);
  4952. void SetTrigger(bool);
  4953. const String& GetCategory() const;
  4954. const String& GetTypeName() const;
  4955. void UnsubscribeFromAllEvents();
  4956. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4957. void UnsubscribeFromEvent(Object, StringHash);
  4958. void UnsubscribeFromEvent(StringHash);
  4959. void UnsubscribeFromEvents(Object);
  4960. const Variant& GetGlobalVar(StringHash) const;
  4961. const VariantMap& GetGlobalVars() const;
  4962. int WeakRefs() const;
  4963. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4964. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4965. void WriteLatestDataUpdate(Serializer&, uint8);
  4966. operator const Animatable() const;
  4967. operator const CollisionBox2D() const;
  4968. operator const CollisionChain2D() const;
  4969. operator const CollisionCircle2D() const;
  4970. operator const CollisionEdge2D() const;
  4971. operator const CollisionPolygon2D() const;
  4972. operator const Component() const;
  4973. operator const Object() const;
  4974. operator const RefCounted() const;
  4975. operator const Serializable() const;
  4976. // Properties:
  4977. bool animationEnabled;
  4978. /* readonly */
  4979. Array<Variant> attributeDefaults;
  4980. /* readonly */
  4981. Array<AttributeInfo> attributeInfos;
  4982. Array<Variant> attributes;
  4983. /* readonly */
  4984. String category;
  4985. int categoryBits;
  4986. float density;
  4987. bool enabled;
  4988. /* readonly */
  4989. bool enabledEffective;
  4990. float friction;
  4991. Array<Variant> globalVar;
  4992. /* readonly */
  4993. VariantMap globalVars;
  4994. int groupIndex;
  4995. /* readonly */
  4996. uint id;
  4997. /* readonly */
  4998. float inertia;
  4999. int maskBits;
  5000. /* readonly */
  5001. float mass;
  5002. /* readonly */
  5003. Vector2 massCenter;
  5004. /* readonly */
  5005. Node node;
  5006. /* readonly */
  5007. uint numAttributes;
  5008. ObjectAnimation objectAnimation;
  5009. /* readonly */
  5010. int refs;
  5011. /* readonly */
  5012. bool replicated;
  5013. float restitution;
  5014. bool temporary;
  5015. bool trigger;
  5016. /* readonly */
  5017. StringHash type;
  5018. /* readonly */
  5019. String typeName;
  5020. /* readonly */
  5021. int weakRefs;
  5022. };
  5023. class Color
  5024. {
  5025. public:
  5026. Color();
  5027. Color(const Color&in);
  5028. Color(const Color&in, float);
  5029. Color(float, float, float);
  5030. Color(float, float, float, float);
  5031. Color(const Vector3&in);
  5032. Color(const Vector4&in);
  5033. Color(float[]&inout);
  5034. // Methods:
  5035. Color operator+(const Color&) const;
  5036. Color& operator+=(const Color&);
  5037. Color& operator=(const Color&);
  5038. bool operator==(const Color&) const;
  5039. Color Abs() const;
  5040. float Average() const;
  5041. float Chroma() const;
  5042. void Clip(bool = false);
  5043. bool Equals(const Color&) const;
  5044. void FromHSL(float, float, float, float = 1.0f);
  5045. void FromHSV(float, float, float, float = 1.0f);
  5046. void FromUInt(uint);
  5047. Color GammaToLinear() const;
  5048. float Hue() const;
  5049. void Invert(bool = false);
  5050. Color Lerp(const Color&, float) const;
  5051. float Lightness() const;
  5052. Color LinearToGamma() const;
  5053. float Luma() const;
  5054. float MaxRGB() const;
  5055. float MinRGB() const;
  5056. float Range() const;
  5057. float SaturationHSL() const;
  5058. float SaturationHSV() const;
  5059. float SumRGB() const;
  5060. Vector3 ToHSL() const;
  5061. Vector3 ToHSV() const;
  5062. uint ToHash() const;
  5063. String ToString() const;
  5064. uint ToUInt() const;
  5065. uint ToUIntArgb() const;
  5066. Vector3 ToVector3() const;
  5067. Vector4 ToVector4() const;
  5068. float Value() const;
  5069. // Properties:
  5070. float a;
  5071. float b;
  5072. /* readonly */
  5073. Array<float> data;
  5074. float g;
  5075. float r;
  5076. /* readonly */
  5077. Vector3 rgb;
  5078. /* readonly */
  5079. Vector4 rgba;
  5080. // Constants:
  5081. static const Color BLACK;
  5082. static const Color BLUE;
  5083. static const Color CYAN;
  5084. static const Color GRAY;
  5085. static const Color GREEN;
  5086. static const Color MAGENTA;
  5087. static const Color RED;
  5088. static const Color TRANSPARENT_BLACK;
  5089. static const Color WHITE;
  5090. static const Color YELLOW;
  5091. };
  5092. class ColorFrame
  5093. {
  5094. public:
  5095. // Methods:
  5096. ColorFrame& operator=(const ColorFrame&);
  5097. Color Interpolate(const ColorFrame&, float) const;
  5098. // Properties:
  5099. Color color;
  5100. float time;
  5101. };
  5102. class Component
  5103. {
  5104. public:
  5105. Component();
  5106. // Methods:
  5107. void AllocateNetworkState();
  5108. operator Animatable() const;
  5109. operator AnimatedModel() const;
  5110. operator AnimatedSprite2D() const;
  5111. operator AnimationController() const;
  5112. void ApplyAttributes();
  5113. operator BillboardSet() const;
  5114. operator Camera() const;
  5115. void CleanupConnection(Connection);
  5116. operator CollisionBox2D() const;
  5117. operator CollisionChain2D() const;
  5118. operator CollisionCircle2D() const;
  5119. operator CollisionEdge2D() const;
  5120. operator CollisionPolygon2D() const;
  5121. operator CollisionShape2D() const;
  5122. operator CollisionShape() const;
  5123. operator Constraint2D() const;
  5124. operator Constraint() const;
  5125. operator ConstraintDistance2D() const;
  5126. operator ConstraintFriction2D() const;
  5127. operator ConstraintGear2D() const;
  5128. operator ConstraintMotor2D() const;
  5129. operator ConstraintMouse2D() const;
  5130. operator ConstraintPrismatic2D() const;
  5131. operator ConstraintPulley2D() const;
  5132. operator ConstraintRevolute2D() const;
  5133. operator ConstraintWeld2D() const;
  5134. operator ConstraintWheel2D() const;
  5135. operator CrowdAgent() const;
  5136. operator CrowdManager() const;
  5137. operator CustomGeometry() const;
  5138. operator DebugRenderer() const;
  5139. operator DecalSet() const;
  5140. void DrawDebugGeometry(DebugRenderer, bool);
  5141. operator Drawable2D() const;
  5142. operator Drawable() const;
  5143. operator DynamicNavigationMesh() const;
  5144. bool GetAnimationEnabled() const;
  5145. Variant GetAttribute(const String&) const;
  5146. Variant GetAttribute(uint) const;
  5147. ValueAnimation GetAttributeAnimation(const String&) const;
  5148. float GetAttributeAnimationSpeed(const String&) const;
  5149. float GetAttributeAnimationTime(const String&) const;
  5150. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5151. Variant GetAttributeDefault(const String&) const;
  5152. Variant GetAttributeDefault(uint) const;
  5153. bool GetBlockEvents() const;
  5154. Component GetComponent(StringHash) const;
  5155. VariantMap& GetEventDataMap() const;
  5156. Object GetEventSender() const;
  5157. uint GetID() const;
  5158. bool GetInterceptNetworkUpdate(const String&) const;
  5159. Node GetNode() const;
  5160. uint GetNumAttributes() const;
  5161. uint GetNumNetworkAttributes() const;
  5162. ObjectAnimation GetObjectAnimation() const;
  5163. ResourceRef GetObjectAnimationAttr() const;
  5164. Scene GetScene() const;
  5165. Object GetSubsystem(StringHash) const;
  5166. StringHash GetType() const;
  5167. bool HasEventHandlers() const;
  5168. bool HasSubscribedToEvent(Object, StringHash) const;
  5169. bool HasSubscribedToEvent(StringHash) const;
  5170. operator IKConstraint() const;
  5171. operator IKEffector() const;
  5172. operator IKSolver() const;
  5173. bool IsEnabled() const;
  5174. bool IsEnabledEffective() const;
  5175. bool IsInstanceOf(StringHash) const;
  5176. bool IsReplicated() const;
  5177. bool IsTemporary() const;
  5178. operator Light() const;
  5179. bool Load(Deserializer&);
  5180. bool LoadJSON(const JSONValue&);
  5181. bool LoadXML(const XMLElement&);
  5182. operator LogicComponent() const;
  5183. void MarkNetworkUpdate();
  5184. operator NavArea() const;
  5185. operator Navigable() const;
  5186. operator NavigationMesh() const;
  5187. operator NetworkPriority() const;
  5188. operator Object() const;
  5189. operator Obstacle() const;
  5190. operator Octree() const;
  5191. operator OffMeshConnection() const;
  5192. void OnEvent(Object, StringHash, VariantMap&);
  5193. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5194. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5195. void OnSetEnabled();
  5196. operator ParticleEmitter2D() const;
  5197. operator ParticleEmitter() const;
  5198. operator PhysicsWorld2D() const;
  5199. operator PhysicsWorld() const;
  5200. void PrepareNetworkUpdate();
  5201. operator RaycastVehicle() const;
  5202. bool ReadDeltaUpdate(Deserializer&);
  5203. bool ReadLatestDataUpdate(Deserializer&);
  5204. operator RefCounted() const;
  5205. int Refs() const;
  5206. void Remove();
  5207. void RemoveAttributeAnimation(const String&);
  5208. void RemoveInstanceDefault();
  5209. void RemoveObjectAnimation();
  5210. operator Renderer2D() const;
  5211. void ResetToDefault();
  5212. operator RibbonTrail() const;
  5213. operator RigidBody2D() const;
  5214. operator RigidBody() const;
  5215. bool Save(Serializer&) const;
  5216. bool SaveDefaultAttributes() const;
  5217. bool SaveJSON(JSONValue&) const;
  5218. bool SaveXML(XMLElement&) const;
  5219. operator ScriptInstance() const;
  5220. void SendEvent(StringHash);
  5221. void SendEvent(StringHash, VariantMap&);
  5222. operator Serializable() const;
  5223. void SetAnimationEnabled(bool);
  5224. void SetAnimationTime(float);
  5225. bool SetAttribute(const String&, const Variant&);
  5226. bool SetAttribute(uint, const Variant&);
  5227. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5228. void SetAttributeAnimationSpeed(const String&, float);
  5229. void SetAttributeAnimationTime(const String&, float);
  5230. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5231. void SetBlockEvents(bool);
  5232. void SetEnabled(bool);
  5233. void SetGlobalVar(StringHash, const Variant&);
  5234. void SetInstanceDefault(bool);
  5235. void SetInterceptNetworkUpdate(const String&, bool);
  5236. void SetObjectAnimation(ObjectAnimation);
  5237. void SetObjectAnimationAttr(const ResourceRef&);
  5238. void SetTemporary(bool);
  5239. operator Skybox() const;
  5240. operator SmoothedTransform() const;
  5241. operator SoundListener() const;
  5242. operator SoundSource3D() const;
  5243. operator SoundSource() const;
  5244. operator SplinePath() const;
  5245. operator StaticModel() const;
  5246. operator StaticModelGroup() const;
  5247. operator StaticSprite2D() const;
  5248. operator StretchableSprite2D() const;
  5249. const String& GetCategory() const;
  5250. const String& GetTypeName() const;
  5251. operator Terrain() const;
  5252. operator TerrainPatch() const;
  5253. operator Text3D() const;
  5254. operator TileMap2D() const;
  5255. operator TileMapLayer2D() const;
  5256. operator UIComponent() const;
  5257. operator UnknownComponent() const;
  5258. void UnsubscribeFromAllEvents();
  5259. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5260. void UnsubscribeFromEvent(Object, StringHash);
  5261. void UnsubscribeFromEvent(StringHash);
  5262. void UnsubscribeFromEvents(Object);
  5263. const Variant& GetGlobalVar(StringHash) const;
  5264. const VariantMap& GetGlobalVars() const;
  5265. int WeakRefs() const;
  5266. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  5267. void WriteInitialDeltaUpdate(Serializer&, uint8);
  5268. void WriteLatestDataUpdate(Serializer&, uint8);
  5269. operator Zone() const;
  5270. operator const Animatable() const;
  5271. operator const AnimatedModel() const;
  5272. operator const AnimatedSprite2D() const;
  5273. operator const AnimationController() const;
  5274. operator const BillboardSet() const;
  5275. operator const Camera() const;
  5276. operator const CollisionBox2D() const;
  5277. operator const CollisionChain2D() const;
  5278. operator const CollisionCircle2D() const;
  5279. operator const CollisionEdge2D() const;
  5280. operator const CollisionPolygon2D() const;
  5281. operator const CollisionShape2D() const;
  5282. operator const CollisionShape() const;
  5283. operator const Constraint2D() const;
  5284. operator const Constraint() const;
  5285. operator const ConstraintDistance2D() const;
  5286. operator const ConstraintFriction2D() const;
  5287. operator const ConstraintGear2D() const;
  5288. operator const ConstraintMotor2D() const;
  5289. operator const ConstraintMouse2D() const;
  5290. operator const ConstraintPrismatic2D() const;
  5291. operator const ConstraintPulley2D() const;
  5292. operator const ConstraintRevolute2D() const;
  5293. operator const ConstraintWeld2D() const;
  5294. operator const ConstraintWheel2D() const;
  5295. operator const CrowdAgent() const;
  5296. operator const CrowdManager() const;
  5297. operator const CustomGeometry() const;
  5298. operator const DebugRenderer() const;
  5299. operator const DecalSet() const;
  5300. operator const Drawable2D() const;
  5301. operator const Drawable() const;
  5302. operator const DynamicNavigationMesh() const;
  5303. operator const IKConstraint() const;
  5304. operator const IKEffector() const;
  5305. operator const IKSolver() const;
  5306. operator const Light() const;
  5307. operator const LogicComponent() const;
  5308. operator const NavArea() const;
  5309. operator const Navigable() const;
  5310. operator const NavigationMesh() const;
  5311. operator const NetworkPriority() const;
  5312. operator const Object() const;
  5313. operator const Obstacle() const;
  5314. operator const Octree() const;
  5315. operator const OffMeshConnection() const;
  5316. operator const ParticleEmitter2D() const;
  5317. operator const ParticleEmitter() const;
  5318. operator const PhysicsWorld2D() const;
  5319. operator const PhysicsWorld() const;
  5320. operator const RaycastVehicle() const;
  5321. operator const RefCounted() const;
  5322. operator const Renderer2D() const;
  5323. operator const RibbonTrail() const;
  5324. operator const RigidBody2D() const;
  5325. operator const RigidBody() const;
  5326. operator const ScriptInstance() const;
  5327. operator const Serializable() const;
  5328. operator const Skybox() const;
  5329. operator const SmoothedTransform() const;
  5330. operator const SoundListener() const;
  5331. operator const SoundSource3D() const;
  5332. operator const SoundSource() const;
  5333. operator const SplinePath() const;
  5334. operator const StaticModel() const;
  5335. operator const StaticModelGroup() const;
  5336. operator const StaticSprite2D() const;
  5337. operator const StretchableSprite2D() const;
  5338. operator const Terrain() const;
  5339. operator const TerrainPatch() const;
  5340. operator const Text3D() const;
  5341. operator const TileMap2D() const;
  5342. operator const TileMapLayer2D() const;
  5343. operator const UIComponent() const;
  5344. operator const UnknownComponent() const;
  5345. operator const Zone() const;
  5346. // Properties:
  5347. bool animationEnabled;
  5348. /* readonly */
  5349. Array<Variant> attributeDefaults;
  5350. /* readonly */
  5351. Array<AttributeInfo> attributeInfos;
  5352. Array<Variant> attributes;
  5353. /* readonly */
  5354. String category;
  5355. bool enabled;
  5356. /* readonly */
  5357. bool enabledEffective;
  5358. Array<Variant> globalVar;
  5359. /* readonly */
  5360. VariantMap globalVars;
  5361. /* readonly */
  5362. uint id;
  5363. /* readonly */
  5364. Node node;
  5365. /* readonly */
  5366. uint numAttributes;
  5367. ObjectAnimation objectAnimation;
  5368. /* readonly */
  5369. int refs;
  5370. /* readonly */
  5371. bool replicated;
  5372. bool temporary;
  5373. /* readonly */
  5374. StringHash type;
  5375. /* readonly */
  5376. String typeName;
  5377. /* readonly */
  5378. int weakRefs;
  5379. };
  5380. class ComponentReplicationState
  5381. {
  5382. public:
  5383. ~ComponentReplicationState();
  5384. ComponentReplicationState();
  5385. // Methods:
  5386. ComponentReplicationState& operator=(const ComponentReplicationState&);
  5387. // Properties:
  5388. DirtyBits dirtyAttributes;
  5389. };
  5390. class CompressedLevel
  5391. {
  5392. public:
  5393. ~CompressedLevel();
  5394. CompressedLevel();
  5395. // Methods:
  5396. CompressedLevel& operator=(const CompressedLevel&);
  5397. // Properties:
  5398. uint blockSize;
  5399. uint dataSize;
  5400. int depth;
  5401. CompressedFormat format;
  5402. int height;
  5403. uint rowSize;
  5404. uint rows;
  5405. int width;
  5406. };
  5407. class Condition
  5408. {
  5409. public:
  5410. ~Condition();
  5411. Condition();
  5412. // Methods:
  5413. Condition& operator=(const Condition&);
  5414. void Set();
  5415. void Wait();
  5416. };
  5417. class Connection
  5418. {
  5419. public:
  5420. // Methods:
  5421. void Ban();
  5422. void ConfigureNetworkSimulator(int, float);
  5423. const Controls& GetControls() const;
  5424. void Disconnect(int = 0);
  5425. String GetAddress() const;
  5426. bool GetBlockEvents() const;
  5427. float GetBytesInPerSec() const;
  5428. float GetBytesOutPerSec() const;
  5429. float GetDownloadProgress() const;
  5430. VariantMap& GetEventDataMap() const;
  5431. Object GetEventSender() const;
  5432. VariantMap& GetIdentity();
  5433. uint GetLastHeardTime() const;
  5434. bool GetLogStatistics() const;
  5435. uint GetNumDownloads() const;
  5436. PacketType GetPacketType(bool, bool);
  5437. int GetPacketsInPerSec() const;
  5438. int GetPacketsOutPerSec() const;
  5439. uint16 GetPort() const;
  5440. float GetRoundTripTime() const;
  5441. Scene GetScene() const;
  5442. Object GetSubsystem(StringHash) const;
  5443. uint8 GetTimeStamp() const;
  5444. StringHash GetType() const;
  5445. bool HasEventHandlers() const;
  5446. bool HasSubscribedToEvent(Object, StringHash) const;
  5447. bool HasSubscribedToEvent(StringHash) const;
  5448. bool IsClient() const;
  5449. bool IsConnectPending() const;
  5450. bool IsConnected() const;
  5451. bool IsInstanceOf(StringHash) const;
  5452. bool IsSceneLoaded() const;
  5453. operator Object() const;
  5454. void OnEvent(Object, StringHash, VariantMap&);
  5455. void ProcessPendingLatestData();
  5456. const Quaternion& GetRotation() const;
  5457. operator RefCounted() const;
  5458. int Refs() const;
  5459. void SendAllBuffers();
  5460. void SendBuffer(PacketType);
  5461. void SendClientUpdate();
  5462. void SendEvent(StringHash);
  5463. void SendEvent(StringHash, VariantMap&);
  5464. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  5465. void SendPackageToClient(PackageFile);
  5466. void SendPackages();
  5467. void SendRemoteEvent(Node, StringHash, bool, const VariantMap& = VariantMap ( ));
  5468. void SendRemoteEvent(StringHash, bool, const VariantMap& = VariantMap ( ));
  5469. void SendRemoteEvents();
  5470. void SendServerUpdate();
  5471. void SetBlockEvents(bool);
  5472. void SetConnectPending(bool);
  5473. void SetControls(const Controls&);
  5474. void SetGlobalVar(StringHash, const Variant&);
  5475. void SetIdentity(const VariantMap&);
  5476. void SetLogStatistics(bool);
  5477. void SetPacketSizeLimit(int);
  5478. void SetPosition(const Vector3&);
  5479. void SetRotation(const Quaternion&);
  5480. void SetScene(Scene);
  5481. const String& GetCategory() const;
  5482. const String& GetDownloadName() const;
  5483. const String& GetTypeName() const;
  5484. String ToString() const;
  5485. void UnsubscribeFromAllEvents();
  5486. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5487. void UnsubscribeFromEvent(Object, StringHash);
  5488. void UnsubscribeFromEvent(StringHash);
  5489. void UnsubscribeFromEvents(Object);
  5490. const Variant& GetGlobalVar(StringHash) const;
  5491. const VariantMap& GetGlobalVars() const;
  5492. const Vector3& GetPosition() const;
  5493. int WeakRefs() const;
  5494. operator const Object() const;
  5495. operator const RefCounted() const;
  5496. // Properties:
  5497. /* readonly */
  5498. String address;
  5499. /* readonly */
  5500. float bytesInPerSec;
  5501. /* readonly */
  5502. float bytesOutPerSec;
  5503. /* readonly */
  5504. String category;
  5505. /* readonly */
  5506. bool client;
  5507. /* readonly */
  5508. bool connectPending;
  5509. /* readonly */
  5510. bool connected;
  5511. Controls controls;
  5512. /* readonly */
  5513. String downloadName;
  5514. /* readonly */
  5515. float downloadProgress;
  5516. Array<Variant> globalVar;
  5517. /* readonly */
  5518. VariantMap globalVars;
  5519. VariantMap identity;
  5520. /* readonly */
  5521. uint lastHeardTime;
  5522. bool logStatistics;
  5523. /* readonly */
  5524. uint numDownloads;
  5525. /* readonly */
  5526. int packetsInPerSec;
  5527. /* readonly */
  5528. int packetsOutPerSec;
  5529. /* readonly */
  5530. uint16 port;
  5531. Vector3 position;
  5532. /* readonly */
  5533. int refs;
  5534. Quaternion rotation;
  5535. /* readonly */
  5536. float roundTripTime;
  5537. Scene scene;
  5538. /* readonly */
  5539. bool sceneLoaded;
  5540. uint8 timeStamp;
  5541. /* readonly */
  5542. StringHash type;
  5543. /* readonly */
  5544. String typeName;
  5545. /* readonly */
  5546. int weakRefs;
  5547. };
  5548. class Console
  5549. {
  5550. public:
  5551. Console();
  5552. // Methods:
  5553. void AddAutoComplete(const String&);
  5554. void CopySelectedRows() const;
  5555. BorderImage GetBackground() const;
  5556. bool GetBlockEvents() const;
  5557. Button GetCloseButton() const;
  5558. XMLFile GetDefaultStyle() const;
  5559. VariantMap& GetEventDataMap() const;
  5560. Object GetEventSender() const;
  5561. bool GetFocusOnShow() const;
  5562. uint GetHistoryPosition() const;
  5563. LineEdit GetLineEdit() const;
  5564. uint GetNumBufferedRows() const;
  5565. uint GetNumHistoryRows() const;
  5566. uint GetNumRows() const;
  5567. Object GetSubsystem(StringHash) const;
  5568. StringHash GetType() const;
  5569. bool HasEventHandlers() const;
  5570. bool HasSubscribedToEvent(Object, StringHash) const;
  5571. bool HasSubscribedToEvent(StringHash) const;
  5572. bool IsAutoVisibleOnError() const;
  5573. bool IsInstanceOf(StringHash) const;
  5574. bool IsVisible() const;
  5575. operator Object() const;
  5576. void OnEvent(Object, StringHash, VariantMap&);
  5577. operator RefCounted() const;
  5578. int Refs() const;
  5579. void RemoveAutoComplete(const String&);
  5580. void SendEvent(StringHash);
  5581. void SendEvent(StringHash, VariantMap&);
  5582. void SetAutoVisibleOnError(bool);
  5583. void SetBlockEvents(bool);
  5584. void SetCommandInterpreter(const String&);
  5585. void SetDefaultStyle(XMLFile);
  5586. void SetFocusOnShow(bool);
  5587. void SetGlobalVar(StringHash, const Variant&);
  5588. void SetNumBufferedRows(uint);
  5589. void SetNumHistoryRows(uint);
  5590. void SetNumRows(uint);
  5591. void SetVisible(bool);
  5592. const String& GetCategory() const;
  5593. const String& GetCommandInterpreter() const;
  5594. const String& GetHistoryRow(uint) const;
  5595. const String& GetTypeName() const;
  5596. void Toggle();
  5597. void UnsubscribeFromAllEvents();
  5598. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5599. void UnsubscribeFromEvent(Object, StringHash);
  5600. void UnsubscribeFromEvent(StringHash);
  5601. void UnsubscribeFromEvents(Object);
  5602. void UpdateElements();
  5603. const Variant& GetGlobalVar(StringHash) const;
  5604. const VariantMap& GetGlobalVars() const;
  5605. int WeakRefs() const;
  5606. operator const Object() const;
  5607. operator const RefCounted() const;
  5608. // Properties:
  5609. bool autoVisibleOnError;
  5610. /* readonly */
  5611. BorderImage background;
  5612. /* readonly */
  5613. String category;
  5614. /* readonly */
  5615. Button closeButton;
  5616. String commandInterpreter;
  5617. XMLFile defaultStyle;
  5618. bool focusOnShow;
  5619. Array<Variant> globalVar;
  5620. /* readonly */
  5621. VariantMap globalVars;
  5622. /* readonly */
  5623. uint historyPosition;
  5624. /* readonly */
  5625. Array<String> historyRow;
  5626. /* readonly */
  5627. LineEdit lineEdit;
  5628. uint numBufferedRows;
  5629. uint numHistoryRows;
  5630. uint numRows;
  5631. /* readonly */
  5632. int refs;
  5633. /* readonly */
  5634. StringHash type;
  5635. /* readonly */
  5636. String typeName;
  5637. bool visible;
  5638. /* readonly */
  5639. int weakRefs;
  5640. };
  5641. class ConstantBuffer
  5642. {
  5643. public:
  5644. ConstantBuffer();
  5645. // Methods:
  5646. void Apply();
  5647. void ClearDataLost();
  5648. bool GetBlockEvents() const;
  5649. VariantMap& GetEventDataMap() const;
  5650. Object GetEventSender() const;
  5651. uint GetGPUObjectName() const;
  5652. Graphics GetGraphics() const;
  5653. uint GetSize() const;
  5654. Object GetSubsystem(StringHash) const;
  5655. StringHash GetType() const;
  5656. bool HasEventHandlers() const;
  5657. bool HasPendingData() const;
  5658. bool HasSubscribedToEvent(Object, StringHash) const;
  5659. bool HasSubscribedToEvent(StringHash) const;
  5660. bool IsDataLost() const;
  5661. bool IsDirty() const;
  5662. bool IsInstanceOf(StringHash) const;
  5663. operator Object() const;
  5664. void OnDeviceLost();
  5665. void OnDeviceReset();
  5666. void OnEvent(Object, StringHash, VariantMap&);
  5667. operator RefCounted() const;
  5668. int Refs() const;
  5669. void Release();
  5670. void SendEvent(StringHash);
  5671. void SendEvent(StringHash, VariantMap&);
  5672. void SetBlockEvents(bool);
  5673. void SetGlobalVar(StringHash, const Variant&);
  5674. bool SetSize(uint);
  5675. const String& GetCategory() const;
  5676. const String& GetTypeName() const;
  5677. void UnsubscribeFromAllEvents();
  5678. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5679. void UnsubscribeFromEvent(Object, StringHash);
  5680. void UnsubscribeFromEvent(StringHash);
  5681. void UnsubscribeFromEvents(Object);
  5682. const Variant& GetGlobalVar(StringHash) const;
  5683. const VariantMap& GetGlobalVars() const;
  5684. int WeakRefs() const;
  5685. operator const Object() const;
  5686. operator const RefCounted() const;
  5687. // Properties:
  5688. /* readonly */
  5689. String category;
  5690. /* readonly */
  5691. bool dataLost;
  5692. Array<Variant> globalVar;
  5693. /* readonly */
  5694. VariantMap globalVars;
  5695. /* readonly */
  5696. int refs;
  5697. /* readonly */
  5698. StringHash type;
  5699. /* readonly */
  5700. String typeName;
  5701. /* readonly */
  5702. int weakRefs;
  5703. };
  5704. class Constraint
  5705. {
  5706. public:
  5707. Constraint();
  5708. // Methods:
  5709. void AllocateNetworkState();
  5710. operator Animatable() const;
  5711. void ApplyAttributes();
  5712. void ApplyFrames();
  5713. void CleanupConnection(Connection);
  5714. operator Component() const;
  5715. void DrawDebugGeometry(DebugRenderer, bool);
  5716. bool GetAnimationEnabled() const;
  5717. Variant GetAttribute(const String&) const;
  5718. Variant GetAttribute(uint) const;
  5719. ValueAnimation GetAttributeAnimation(const String&) const;
  5720. float GetAttributeAnimationSpeed(const String&) const;
  5721. float GetAttributeAnimationTime(const String&) const;
  5722. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5723. Variant GetAttributeDefault(const String&) const;
  5724. Variant GetAttributeDefault(uint) const;
  5725. bool GetBlockEvents() const;
  5726. float GetCFM() const;
  5727. Component GetComponent(StringHash) const;
  5728. ConstraintType GetConstraintType() const;
  5729. bool GetDisableCollision() const;
  5730. float GetERP() const;
  5731. VariantMap& GetEventDataMap() const;
  5732. Object GetEventSender() const;
  5733. uint GetID() const;
  5734. bool GetInterceptNetworkUpdate(const String&) const;
  5735. Node GetNode() const;
  5736. uint GetNumAttributes() const;
  5737. uint GetNumNetworkAttributes() const;
  5738. ObjectAnimation GetObjectAnimation() const;
  5739. ResourceRef GetObjectAnimationAttr() const;
  5740. RigidBody GetOtherBody() const;
  5741. RigidBody GetOwnBody() const;
  5742. PhysicsWorld GetPhysicsWorld() const;
  5743. Scene GetScene() const;
  5744. Object GetSubsystem(StringHash) const;
  5745. StringHash GetType() const;
  5746. Vector3 GetWorldPosition() const;
  5747. bool HasEventHandlers() const;
  5748. bool HasSubscribedToEvent(Object, StringHash) const;
  5749. bool HasSubscribedToEvent(StringHash) const;
  5750. bool IsEnabled() const;
  5751. bool IsEnabledEffective() const;
  5752. bool IsInstanceOf(StringHash) const;
  5753. bool IsReplicated() const;
  5754. bool IsTemporary() const;
  5755. bool Load(Deserializer&);
  5756. bool LoadJSON(const JSONValue&);
  5757. bool LoadXML(const XMLElement&);
  5758. void MarkNetworkUpdate();
  5759. operator Object() const;
  5760. void OnEvent(Object, StringHash, VariantMap&);
  5761. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5762. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5763. void OnSetEnabled();
  5764. void PrepareNetworkUpdate();
  5765. const Quaternion& GetOtherRotation() const;
  5766. const Quaternion& GetRotation() const;
  5767. bool ReadDeltaUpdate(Deserializer&);
  5768. bool ReadLatestDataUpdate(Deserializer&);
  5769. operator RefCounted() const;
  5770. int Refs() const;
  5771. void ReleaseConstraint();
  5772. void Remove();
  5773. void RemoveAttributeAnimation(const String&);
  5774. void RemoveInstanceDefault();
  5775. void RemoveObjectAnimation();
  5776. void ResetToDefault();
  5777. bool Save(Serializer&) const;
  5778. bool SaveDefaultAttributes() const;
  5779. bool SaveJSON(JSONValue&) const;
  5780. bool SaveXML(XMLElement&) const;
  5781. void SendEvent(StringHash);
  5782. void SendEvent(StringHash, VariantMap&);
  5783. operator Serializable() const;
  5784. void SetAnimationEnabled(bool);
  5785. void SetAnimationTime(float);
  5786. bool SetAttribute(const String&, const Variant&);
  5787. bool SetAttribute(uint, const Variant&);
  5788. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5789. void SetAttributeAnimationSpeed(const String&, float);
  5790. void SetAttributeAnimationTime(const String&, float);
  5791. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5792. void SetAxis(const Vector3&);
  5793. void SetBlockEvents(bool);
  5794. void SetCFM(float);
  5795. void SetConstraintType(ConstraintType);
  5796. void SetDisableCollision(bool);
  5797. void SetERP(float);
  5798. void SetEnabled(bool);
  5799. void SetGlobalVar(StringHash, const Variant&);
  5800. void SetHighLimit(const Vector2&);
  5801. void SetInstanceDefault(bool);
  5802. void SetInterceptNetworkUpdate(const String&, bool);
  5803. void SetLowLimit(const Vector2&);
  5804. void SetObjectAnimation(ObjectAnimation);
  5805. void SetObjectAnimationAttr(const ResourceRef&);
  5806. void SetOtherAxis(const Vector3&);
  5807. void SetOtherBody(RigidBody);
  5808. void SetOtherPosition(const Vector3&);
  5809. void SetOtherRotation(const Quaternion&);
  5810. void SetPosition(const Vector3&);
  5811. void SetRotation(const Quaternion&);
  5812. void SetTemporary(bool);
  5813. void SetWorldPosition(const Vector3&);
  5814. const String& GetCategory() const;
  5815. const String& GetTypeName() const;
  5816. void UnsubscribeFromAllEvents();
  5817. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5818. void UnsubscribeFromEvent(Object, StringHash);
  5819. void UnsubscribeFromEvent(StringHash);
  5820. void UnsubscribeFromEvents(Object);
  5821. const Variant& GetGlobalVar(StringHash) const;
  5822. const VariantMap& GetGlobalVars() const;
  5823. const Vector2& GetHighLimit() const;
  5824. const Vector2& GetLowLimit() const;
  5825. const Vector3& GetOtherPosition() const;
  5826. const Vector3& GetPosition() const;
  5827. int WeakRefs() const;
  5828. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  5829. void WriteInitialDeltaUpdate(Serializer&, uint8);
  5830. void WriteLatestDataUpdate(Serializer&, uint8);
  5831. operator const Animatable() const;
  5832. operator const Component() const;
  5833. operator const Object() const;
  5834. operator const RefCounted() const;
  5835. operator const Serializable() const;
  5836. // Properties:
  5837. bool animationEnabled;
  5838. /* readonly */
  5839. Array<Variant> attributeDefaults;
  5840. /* readonly */
  5841. Array<AttributeInfo> attributeInfos;
  5842. Array<Variant> attributes;
  5843. /* writeonly */
  5844. Vector3 axis;
  5845. /* readonly */
  5846. String category;
  5847. float cfm;
  5848. ConstraintType constraintType;
  5849. bool disableCollision;
  5850. bool enabled;
  5851. /* readonly */
  5852. bool enabledEffective;
  5853. float erp;
  5854. Array<Variant> globalVar;
  5855. /* readonly */
  5856. VariantMap globalVars;
  5857. Vector2 highLimit;
  5858. /* readonly */
  5859. uint id;
  5860. Vector2 lowLimit;
  5861. /* readonly */
  5862. Node node;
  5863. /* readonly */
  5864. uint numAttributes;
  5865. ObjectAnimation objectAnimation;
  5866. /* writeonly */
  5867. Vector3 otherAxis;
  5868. RigidBody otherBody;
  5869. Vector3 otherPosition;
  5870. Quaternion otherRotation;
  5871. /* readonly */
  5872. RigidBody ownBody;
  5873. Vector3 position;
  5874. /* readonly */
  5875. int refs;
  5876. /* readonly */
  5877. bool replicated;
  5878. Quaternion rotation;
  5879. bool temporary;
  5880. /* readonly */
  5881. StringHash type;
  5882. /* readonly */
  5883. String typeName;
  5884. /* readonly */
  5885. int weakRefs;
  5886. Vector3 worldPosition;
  5887. };
  5888. class Constraint2D
  5889. {
  5890. public:
  5891. Constraint2D();
  5892. // Methods:
  5893. void AllocateNetworkState();
  5894. operator Animatable() const;
  5895. void ApplyAttributes();
  5896. void CleanupConnection(Connection);
  5897. operator Component() const;
  5898. operator ConstraintDistance2D() const;
  5899. operator ConstraintFriction2D() const;
  5900. operator ConstraintGear2D() const;
  5901. operator ConstraintMotor2D() const;
  5902. operator ConstraintMouse2D() const;
  5903. operator ConstraintPrismatic2D() const;
  5904. operator ConstraintPulley2D() const;
  5905. operator ConstraintRevolute2D() const;
  5906. operator ConstraintWeld2D() const;
  5907. operator ConstraintWheel2D() const;
  5908. void CreateJoint();
  5909. void DrawDebugGeometry(DebugRenderer, bool);
  5910. bool GetAnimationEnabled() const;
  5911. Constraint2D GetAttachedConstraint() const;
  5912. Variant GetAttribute(const String&) const;
  5913. Variant GetAttribute(uint) const;
  5914. ValueAnimation GetAttributeAnimation(const String&) const;
  5915. float GetAttributeAnimationSpeed(const String&) const;
  5916. float GetAttributeAnimationTime(const String&) const;
  5917. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5918. Variant GetAttributeDefault(const String&) const;
  5919. Variant GetAttributeDefault(uint) const;
  5920. bool GetBlockEvents() const;
  5921. bool GetCollideConnected() const;
  5922. Component GetComponent(StringHash) const;
  5923. VariantMap& GetEventDataMap() const;
  5924. Object GetEventSender() const;
  5925. uint GetID() const;
  5926. bool GetInterceptNetworkUpdate(const String&) const;
  5927. Node GetNode() const;
  5928. uint GetNumAttributes() const;
  5929. uint GetNumNetworkAttributes() const;
  5930. ObjectAnimation GetObjectAnimation() const;
  5931. ResourceRef GetObjectAnimationAttr() const;
  5932. RigidBody2D GetOtherBody() const;
  5933. RigidBody2D GetOwnerBody() const;
  5934. Scene GetScene() const;
  5935. Object GetSubsystem(StringHash) const;
  5936. StringHash GetType() const;
  5937. bool HasEventHandlers() const;
  5938. bool HasSubscribedToEvent(Object, StringHash) const;
  5939. bool HasSubscribedToEvent(StringHash) const;
  5940. bool IsEnabled() const;
  5941. bool IsEnabledEffective() const;
  5942. bool IsInstanceOf(StringHash) const;
  5943. bool IsReplicated() const;
  5944. bool IsTemporary() const;
  5945. bool Load(Deserializer&);
  5946. bool LoadJSON(const JSONValue&);
  5947. bool LoadXML(const XMLElement&);
  5948. void MarkNetworkUpdate();
  5949. operator Object() const;
  5950. void OnEvent(Object, StringHash, VariantMap&);
  5951. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5952. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5953. void OnSetEnabled();
  5954. void PrepareNetworkUpdate();
  5955. bool ReadDeltaUpdate(Deserializer&);
  5956. bool ReadLatestDataUpdate(Deserializer&);
  5957. operator RefCounted() const;
  5958. int Refs() const;
  5959. void ReleaseJoint();
  5960. void Remove();
  5961. void RemoveAttributeAnimation(const String&);
  5962. void RemoveInstanceDefault();
  5963. void RemoveObjectAnimation();
  5964. void ResetToDefault();
  5965. bool Save(Serializer&) const;
  5966. bool SaveDefaultAttributes() const;
  5967. bool SaveJSON(JSONValue&) const;
  5968. bool SaveXML(XMLElement&) const;
  5969. void SendEvent(StringHash);
  5970. void SendEvent(StringHash, VariantMap&);
  5971. operator Serializable() const;
  5972. void SetAnimationEnabled(bool);
  5973. void SetAnimationTime(float);
  5974. void SetAttachedConstraint(Constraint2D);
  5975. bool SetAttribute(const String&, const Variant&);
  5976. bool SetAttribute(uint, const Variant&);
  5977. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5978. void SetAttributeAnimationSpeed(const String&, float);
  5979. void SetAttributeAnimationTime(const String&, float);
  5980. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5981. void SetBlockEvents(bool);
  5982. void SetCollideConnected(bool);
  5983. void SetEnabled(bool);
  5984. void SetGlobalVar(StringHash, const Variant&);
  5985. void SetInstanceDefault(bool);
  5986. void SetInterceptNetworkUpdate(const String&, bool);
  5987. void SetObjectAnimation(ObjectAnimation);
  5988. void SetObjectAnimationAttr(const ResourceRef&);
  5989. void SetOtherBody(RigidBody2D);
  5990. void SetTemporary(bool);
  5991. const String& GetCategory() const;
  5992. const String& GetTypeName() const;
  5993. void UnsubscribeFromAllEvents();
  5994. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5995. void UnsubscribeFromEvent(Object, StringHash);
  5996. void UnsubscribeFromEvent(StringHash);
  5997. void UnsubscribeFromEvents(Object);
  5998. const Variant& GetGlobalVar(StringHash) const;
  5999. const VariantMap& GetGlobalVars() const;
  6000. int WeakRefs() const;
  6001. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6002. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6003. void WriteLatestDataUpdate(Serializer&, uint8);
  6004. operator const Animatable() const;
  6005. operator const Component() const;
  6006. operator const ConstraintDistance2D() const;
  6007. operator const ConstraintFriction2D() const;
  6008. operator const ConstraintGear2D() const;
  6009. operator const ConstraintMotor2D() const;
  6010. operator const ConstraintMouse2D() const;
  6011. operator const ConstraintPrismatic2D() const;
  6012. operator const ConstraintPulley2D() const;
  6013. operator const ConstraintRevolute2D() const;
  6014. operator const ConstraintWeld2D() const;
  6015. operator const ConstraintWheel2D() const;
  6016. operator const Object() const;
  6017. operator const RefCounted() const;
  6018. operator const Serializable() const;
  6019. // Properties:
  6020. bool animationEnabled;
  6021. /* readonly */
  6022. Array<Variant> attributeDefaults;
  6023. /* readonly */
  6024. Array<AttributeInfo> attributeInfos;
  6025. Array<Variant> attributes;
  6026. /* readonly */
  6027. String category;
  6028. bool collideConnected;
  6029. bool enabled;
  6030. /* readonly */
  6031. bool enabledEffective;
  6032. Array<Variant> globalVar;
  6033. /* readonly */
  6034. VariantMap globalVars;
  6035. /* readonly */
  6036. uint id;
  6037. /* readonly */
  6038. Node node;
  6039. /* readonly */
  6040. uint numAttributes;
  6041. ObjectAnimation objectAnimation;
  6042. RigidBody2D otherBody;
  6043. /* readonly */
  6044. RigidBody2D ownerBody;
  6045. /* readonly */
  6046. int refs;
  6047. /* readonly */
  6048. bool replicated;
  6049. bool temporary;
  6050. /* readonly */
  6051. StringHash type;
  6052. /* readonly */
  6053. String typeName;
  6054. /* readonly */
  6055. int weakRefs;
  6056. };
  6057. class ConstraintDistance2D
  6058. {
  6059. public:
  6060. ConstraintDistance2D();
  6061. // Methods:
  6062. void AllocateNetworkState();
  6063. operator Animatable() const;
  6064. void ApplyAttributes();
  6065. void CleanupConnection(Connection);
  6066. operator Component() const;
  6067. operator Constraint2D() const;
  6068. void CreateJoint();
  6069. void DrawDebugGeometry(DebugRenderer, bool);
  6070. bool GetAnimationEnabled() const;
  6071. Constraint2D GetAttachedConstraint() const;
  6072. Variant GetAttribute(const String&) const;
  6073. Variant GetAttribute(uint) const;
  6074. ValueAnimation GetAttributeAnimation(const String&) const;
  6075. float GetAttributeAnimationSpeed(const String&) const;
  6076. float GetAttributeAnimationTime(const String&) const;
  6077. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6078. Variant GetAttributeDefault(const String&) const;
  6079. Variant GetAttributeDefault(uint) const;
  6080. bool GetBlockEvents() const;
  6081. bool GetCollideConnected() const;
  6082. Component GetComponent(StringHash) const;
  6083. float GetDamping() const;
  6084. VariantMap& GetEventDataMap() const;
  6085. Object GetEventSender() const;
  6086. uint GetID() const;
  6087. bool GetInterceptNetworkUpdate(const String&) const;
  6088. float GetLength() const;
  6089. float GetMaxLength() const;
  6090. float GetMinLength() const;
  6091. Node GetNode() const;
  6092. uint GetNumAttributes() const;
  6093. uint GetNumNetworkAttributes() const;
  6094. ObjectAnimation GetObjectAnimation() const;
  6095. ResourceRef GetObjectAnimationAttr() const;
  6096. RigidBody2D GetOtherBody() const;
  6097. RigidBody2D GetOwnerBody() const;
  6098. Scene GetScene() const;
  6099. float GetStiffness() const;
  6100. Object GetSubsystem(StringHash) const;
  6101. StringHash GetType() const;
  6102. bool HasEventHandlers() const;
  6103. bool HasSubscribedToEvent(Object, StringHash) const;
  6104. bool HasSubscribedToEvent(StringHash) const;
  6105. bool IsEnabled() const;
  6106. bool IsEnabledEffective() const;
  6107. bool IsInstanceOf(StringHash) const;
  6108. bool IsReplicated() const;
  6109. bool IsTemporary() const;
  6110. bool Load(Deserializer&);
  6111. bool LoadJSON(const JSONValue&);
  6112. bool LoadXML(const XMLElement&);
  6113. void MarkNetworkUpdate();
  6114. operator Object() const;
  6115. void OnEvent(Object, StringHash, VariantMap&);
  6116. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6117. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6118. void OnSetEnabled();
  6119. void PrepareNetworkUpdate();
  6120. bool ReadDeltaUpdate(Deserializer&);
  6121. bool ReadLatestDataUpdate(Deserializer&);
  6122. operator RefCounted() const;
  6123. int Refs() const;
  6124. void ReleaseJoint();
  6125. void Remove();
  6126. void RemoveAttributeAnimation(const String&);
  6127. void RemoveInstanceDefault();
  6128. void RemoveObjectAnimation();
  6129. void ResetToDefault();
  6130. bool Save(Serializer&) const;
  6131. bool SaveDefaultAttributes() const;
  6132. bool SaveJSON(JSONValue&) const;
  6133. bool SaveXML(XMLElement&) const;
  6134. void SendEvent(StringHash);
  6135. void SendEvent(StringHash, VariantMap&);
  6136. operator Serializable() const;
  6137. void SetAnimationEnabled(bool);
  6138. void SetAnimationTime(float);
  6139. void SetAttachedConstraint(Constraint2D);
  6140. bool SetAttribute(const String&, const Variant&);
  6141. bool SetAttribute(uint, const Variant&);
  6142. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6143. void SetAttributeAnimationSpeed(const String&, float);
  6144. void SetAttributeAnimationTime(const String&, float);
  6145. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6146. void SetBlockEvents(bool);
  6147. void SetCollideConnected(bool);
  6148. void SetDamping(float);
  6149. void SetEnabled(bool);
  6150. void SetGlobalVar(StringHash, const Variant&);
  6151. void SetInstanceDefault(bool);
  6152. void SetInterceptNetworkUpdate(const String&, bool);
  6153. void SetLength(float);
  6154. bool SetLinearStiffness(float, float);
  6155. void SetMaxLength(float);
  6156. void SetMinLength(float);
  6157. void SetObjectAnimation(ObjectAnimation);
  6158. void SetObjectAnimationAttr(const ResourceRef&);
  6159. void SetOtherBody(RigidBody2D);
  6160. void SetOtherBodyAnchor(const Vector2&);
  6161. void SetOwnerBodyAnchor(const Vector2&);
  6162. void SetStiffness(float);
  6163. void SetTemporary(bool);
  6164. const String& GetCategory() const;
  6165. const String& GetTypeName() const;
  6166. void UnsubscribeFromAllEvents();
  6167. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6168. void UnsubscribeFromEvent(Object, StringHash);
  6169. void UnsubscribeFromEvent(StringHash);
  6170. void UnsubscribeFromEvents(Object);
  6171. const Variant& GetGlobalVar(StringHash) const;
  6172. const VariantMap& GetGlobalVars() const;
  6173. const Vector2& GetOtherBodyAnchor() const;
  6174. const Vector2& GetOwnerBodyAnchor() const;
  6175. int WeakRefs() const;
  6176. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6177. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6178. void WriteLatestDataUpdate(Serializer&, uint8);
  6179. operator const Animatable() const;
  6180. operator const Component() const;
  6181. operator const Constraint2D() const;
  6182. operator const Object() const;
  6183. operator const RefCounted() const;
  6184. operator const Serializable() const;
  6185. // Properties:
  6186. bool animationEnabled;
  6187. /* readonly */
  6188. Array<Variant> attributeDefaults;
  6189. /* readonly */
  6190. Array<AttributeInfo> attributeInfos;
  6191. Array<Variant> attributes;
  6192. /* readonly */
  6193. String category;
  6194. bool collideConnected;
  6195. float damping;
  6196. bool enabled;
  6197. /* readonly */
  6198. bool enabledEffective;
  6199. Array<Variant> globalVar;
  6200. /* readonly */
  6201. VariantMap globalVars;
  6202. /* readonly */
  6203. uint id;
  6204. float length;
  6205. float maxLength;
  6206. float minLength;
  6207. /* readonly */
  6208. Node node;
  6209. /* readonly */
  6210. uint numAttributes;
  6211. ObjectAnimation objectAnimation;
  6212. RigidBody2D otherBody;
  6213. Vector2 otherBodyAnchor;
  6214. /* readonly */
  6215. RigidBody2D ownerBody;
  6216. Vector2 ownerBodyAnchor;
  6217. /* readonly */
  6218. int refs;
  6219. /* readonly */
  6220. bool replicated;
  6221. float stiffness;
  6222. bool temporary;
  6223. /* readonly */
  6224. StringHash type;
  6225. /* readonly */
  6226. String typeName;
  6227. /* readonly */
  6228. int weakRefs;
  6229. };
  6230. class ConstraintFriction2D
  6231. {
  6232. public:
  6233. ConstraintFriction2D();
  6234. // Methods:
  6235. void AllocateNetworkState();
  6236. operator Animatable() const;
  6237. void ApplyAttributes();
  6238. void CleanupConnection(Connection);
  6239. operator Component() const;
  6240. operator Constraint2D() const;
  6241. void CreateJoint();
  6242. void DrawDebugGeometry(DebugRenderer, bool);
  6243. bool GetAnimationEnabled() const;
  6244. Constraint2D GetAttachedConstraint() const;
  6245. Variant GetAttribute(const String&) const;
  6246. Variant GetAttribute(uint) const;
  6247. ValueAnimation GetAttributeAnimation(const String&) const;
  6248. float GetAttributeAnimationSpeed(const String&) const;
  6249. float GetAttributeAnimationTime(const String&) const;
  6250. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6251. Variant GetAttributeDefault(const String&) const;
  6252. Variant GetAttributeDefault(uint) const;
  6253. bool GetBlockEvents() const;
  6254. bool GetCollideConnected() const;
  6255. Component GetComponent(StringHash) const;
  6256. VariantMap& GetEventDataMap() const;
  6257. Object GetEventSender() const;
  6258. uint GetID() const;
  6259. bool GetInterceptNetworkUpdate(const String&) const;
  6260. float GetMaxForce() const;
  6261. float GetMaxTorque() const;
  6262. Node GetNode() const;
  6263. uint GetNumAttributes() const;
  6264. uint GetNumNetworkAttributes() const;
  6265. ObjectAnimation GetObjectAnimation() const;
  6266. ResourceRef GetObjectAnimationAttr() const;
  6267. RigidBody2D GetOtherBody() const;
  6268. RigidBody2D GetOwnerBody() const;
  6269. Scene GetScene() const;
  6270. Object GetSubsystem(StringHash) const;
  6271. StringHash GetType() const;
  6272. bool HasEventHandlers() const;
  6273. bool HasSubscribedToEvent(Object, StringHash) const;
  6274. bool HasSubscribedToEvent(StringHash) const;
  6275. bool IsEnabled() const;
  6276. bool IsEnabledEffective() const;
  6277. bool IsInstanceOf(StringHash) const;
  6278. bool IsReplicated() const;
  6279. bool IsTemporary() const;
  6280. bool Load(Deserializer&);
  6281. bool LoadJSON(const JSONValue&);
  6282. bool LoadXML(const XMLElement&);
  6283. void MarkNetworkUpdate();
  6284. operator Object() const;
  6285. void OnEvent(Object, StringHash, VariantMap&);
  6286. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6287. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6288. void OnSetEnabled();
  6289. void PrepareNetworkUpdate();
  6290. bool ReadDeltaUpdate(Deserializer&);
  6291. bool ReadLatestDataUpdate(Deserializer&);
  6292. operator RefCounted() const;
  6293. int Refs() const;
  6294. void ReleaseJoint();
  6295. void Remove();
  6296. void RemoveAttributeAnimation(const String&);
  6297. void RemoveInstanceDefault();
  6298. void RemoveObjectAnimation();
  6299. void ResetToDefault();
  6300. bool Save(Serializer&) const;
  6301. bool SaveDefaultAttributes() const;
  6302. bool SaveJSON(JSONValue&) const;
  6303. bool SaveXML(XMLElement&) const;
  6304. void SendEvent(StringHash);
  6305. void SendEvent(StringHash, VariantMap&);
  6306. operator Serializable() const;
  6307. void SetAnchor(const Vector2&);
  6308. void SetAnimationEnabled(bool);
  6309. void SetAnimationTime(float);
  6310. void SetAttachedConstraint(Constraint2D);
  6311. bool SetAttribute(const String&, const Variant&);
  6312. bool SetAttribute(uint, const Variant&);
  6313. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6314. void SetAttributeAnimationSpeed(const String&, float);
  6315. void SetAttributeAnimationTime(const String&, float);
  6316. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6317. void SetBlockEvents(bool);
  6318. void SetCollideConnected(bool);
  6319. void SetEnabled(bool);
  6320. void SetGlobalVar(StringHash, const Variant&);
  6321. void SetInstanceDefault(bool);
  6322. void SetInterceptNetworkUpdate(const String&, bool);
  6323. void SetMaxForce(float);
  6324. void SetMaxTorque(float);
  6325. void SetObjectAnimation(ObjectAnimation);
  6326. void SetObjectAnimationAttr(const ResourceRef&);
  6327. void SetOtherBody(RigidBody2D);
  6328. void SetTemporary(bool);
  6329. const String& GetCategory() const;
  6330. const String& GetTypeName() const;
  6331. void UnsubscribeFromAllEvents();
  6332. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6333. void UnsubscribeFromEvent(Object, StringHash);
  6334. void UnsubscribeFromEvent(StringHash);
  6335. void UnsubscribeFromEvents(Object);
  6336. const Variant& GetGlobalVar(StringHash) const;
  6337. const VariantMap& GetGlobalVars() const;
  6338. const Vector2& GetAnchor() const;
  6339. int WeakRefs() const;
  6340. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6341. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6342. void WriteLatestDataUpdate(Serializer&, uint8);
  6343. operator const Animatable() const;
  6344. operator const Component() const;
  6345. operator const Constraint2D() const;
  6346. operator const Object() const;
  6347. operator const RefCounted() const;
  6348. operator const Serializable() const;
  6349. // Properties:
  6350. Vector2 anchor;
  6351. bool animationEnabled;
  6352. /* readonly */
  6353. Array<Variant> attributeDefaults;
  6354. /* readonly */
  6355. Array<AttributeInfo> attributeInfos;
  6356. Array<Variant> attributes;
  6357. /* readonly */
  6358. String category;
  6359. bool collideConnected;
  6360. bool enabled;
  6361. /* readonly */
  6362. bool enabledEffective;
  6363. Array<Variant> globalVar;
  6364. /* readonly */
  6365. VariantMap globalVars;
  6366. /* readonly */
  6367. uint id;
  6368. float maxForce;
  6369. float maxTorque;
  6370. /* readonly */
  6371. Node node;
  6372. /* readonly */
  6373. uint numAttributes;
  6374. ObjectAnimation objectAnimation;
  6375. RigidBody2D otherBody;
  6376. /* readonly */
  6377. RigidBody2D ownerBody;
  6378. /* readonly */
  6379. int refs;
  6380. /* readonly */
  6381. bool replicated;
  6382. bool temporary;
  6383. /* readonly */
  6384. StringHash type;
  6385. /* readonly */
  6386. String typeName;
  6387. /* readonly */
  6388. int weakRefs;
  6389. };
  6390. class ConstraintGear2D
  6391. {
  6392. public:
  6393. ConstraintGear2D();
  6394. // Methods:
  6395. void AllocateNetworkState();
  6396. operator Animatable() const;
  6397. void ApplyAttributes();
  6398. void CleanupConnection(Connection);
  6399. operator Component() const;
  6400. operator Constraint2D() const;
  6401. void CreateJoint();
  6402. void DrawDebugGeometry(DebugRenderer, bool);
  6403. bool GetAnimationEnabled() const;
  6404. Constraint2D GetAttachedConstraint() const;
  6405. Variant GetAttribute(const String&) const;
  6406. Variant GetAttribute(uint) const;
  6407. ValueAnimation GetAttributeAnimation(const String&) const;
  6408. float GetAttributeAnimationSpeed(const String&) const;
  6409. float GetAttributeAnimationTime(const String&) const;
  6410. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6411. Variant GetAttributeDefault(const String&) const;
  6412. Variant GetAttributeDefault(uint) const;
  6413. bool GetBlockEvents() const;
  6414. bool GetCollideConnected() const;
  6415. Component GetComponent(StringHash) const;
  6416. VariantMap& GetEventDataMap() const;
  6417. Object GetEventSender() const;
  6418. uint GetID() const;
  6419. bool GetInterceptNetworkUpdate(const String&) const;
  6420. Node GetNode() const;
  6421. uint GetNumAttributes() const;
  6422. uint GetNumNetworkAttributes() const;
  6423. ObjectAnimation GetObjectAnimation() const;
  6424. ResourceRef GetObjectAnimationAttr() const;
  6425. RigidBody2D GetOtherBody() const;
  6426. Constraint2D GetOtherConstraint() const;
  6427. RigidBody2D GetOwnerBody() const;
  6428. Constraint2D GetOwnerConstraint() const;
  6429. float GetRatio() const;
  6430. Scene GetScene() const;
  6431. Object GetSubsystem(StringHash) const;
  6432. StringHash GetType() const;
  6433. bool HasEventHandlers() const;
  6434. bool HasSubscribedToEvent(Object, StringHash) const;
  6435. bool HasSubscribedToEvent(StringHash) const;
  6436. bool IsEnabled() const;
  6437. bool IsEnabledEffective() const;
  6438. bool IsInstanceOf(StringHash) const;
  6439. bool IsReplicated() const;
  6440. bool IsTemporary() const;
  6441. bool Load(Deserializer&);
  6442. bool LoadJSON(const JSONValue&);
  6443. bool LoadXML(const XMLElement&);
  6444. void MarkNetworkUpdate();
  6445. operator Object() const;
  6446. void OnEvent(Object, StringHash, VariantMap&);
  6447. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6448. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6449. void OnSetEnabled();
  6450. void PrepareNetworkUpdate();
  6451. bool ReadDeltaUpdate(Deserializer&);
  6452. bool ReadLatestDataUpdate(Deserializer&);
  6453. operator RefCounted() const;
  6454. int Refs() const;
  6455. void ReleaseJoint();
  6456. void Remove();
  6457. void RemoveAttributeAnimation(const String&);
  6458. void RemoveInstanceDefault();
  6459. void RemoveObjectAnimation();
  6460. void ResetToDefault();
  6461. bool Save(Serializer&) const;
  6462. bool SaveDefaultAttributes() const;
  6463. bool SaveJSON(JSONValue&) const;
  6464. bool SaveXML(XMLElement&) const;
  6465. void SendEvent(StringHash);
  6466. void SendEvent(StringHash, VariantMap&);
  6467. operator Serializable() const;
  6468. void SetAnimationEnabled(bool);
  6469. void SetAnimationTime(float);
  6470. void SetAttachedConstraint(Constraint2D);
  6471. bool SetAttribute(const String&, const Variant&);
  6472. bool SetAttribute(uint, const Variant&);
  6473. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6474. void SetAttributeAnimationSpeed(const String&, float);
  6475. void SetAttributeAnimationTime(const String&, float);
  6476. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6477. void SetBlockEvents(bool);
  6478. void SetCollideConnected(bool);
  6479. void SetEnabled(bool);
  6480. void SetGlobalVar(StringHash, const Variant&);
  6481. void SetInstanceDefault(bool);
  6482. void SetInterceptNetworkUpdate(const String&, bool);
  6483. void SetObjectAnimation(ObjectAnimation);
  6484. void SetObjectAnimationAttr(const ResourceRef&);
  6485. void SetOtherBody(RigidBody2D);
  6486. void SetOtherConstraint(Constraint2D);
  6487. void SetOwnerConstraint(Constraint2D);
  6488. void SetRatio(float);
  6489. void SetTemporary(bool);
  6490. const String& GetCategory() const;
  6491. const String& GetTypeName() const;
  6492. void UnsubscribeFromAllEvents();
  6493. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6494. void UnsubscribeFromEvent(Object, StringHash);
  6495. void UnsubscribeFromEvent(StringHash);
  6496. void UnsubscribeFromEvents(Object);
  6497. const Variant& GetGlobalVar(StringHash) const;
  6498. const VariantMap& GetGlobalVars() const;
  6499. int WeakRefs() const;
  6500. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6501. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6502. void WriteLatestDataUpdate(Serializer&, uint8);
  6503. operator const Animatable() const;
  6504. operator const Component() const;
  6505. operator const Constraint2D() const;
  6506. operator const Object() const;
  6507. operator const RefCounted() const;
  6508. operator const Serializable() const;
  6509. // Properties:
  6510. bool animationEnabled;
  6511. /* readonly */
  6512. Array<Variant> attributeDefaults;
  6513. /* readonly */
  6514. Array<AttributeInfo> attributeInfos;
  6515. Array<Variant> attributes;
  6516. /* readonly */
  6517. String category;
  6518. bool collideConnected;
  6519. bool enabled;
  6520. /* readonly */
  6521. bool enabledEffective;
  6522. Array<Variant> globalVar;
  6523. /* readonly */
  6524. VariantMap globalVars;
  6525. /* readonly */
  6526. uint id;
  6527. /* readonly */
  6528. Node node;
  6529. /* readonly */
  6530. uint numAttributes;
  6531. ObjectAnimation objectAnimation;
  6532. RigidBody2D otherBody;
  6533. Constraint2D otherConstraint;
  6534. /* readonly */
  6535. RigidBody2D ownerBody;
  6536. Constraint2D ownerConstraint;
  6537. float ratio;
  6538. /* readonly */
  6539. int refs;
  6540. /* readonly */
  6541. bool replicated;
  6542. bool temporary;
  6543. /* readonly */
  6544. StringHash type;
  6545. /* readonly */
  6546. String typeName;
  6547. /* readonly */
  6548. int weakRefs;
  6549. };
  6550. class ConstraintMotor2D
  6551. {
  6552. public:
  6553. ConstraintMotor2D();
  6554. // Methods:
  6555. void AllocateNetworkState();
  6556. operator Animatable() const;
  6557. void ApplyAttributes();
  6558. void CleanupConnection(Connection);
  6559. operator Component() const;
  6560. operator Constraint2D() const;
  6561. void CreateJoint();
  6562. void DrawDebugGeometry(DebugRenderer, bool);
  6563. float GetAngularOffset() const;
  6564. bool GetAnimationEnabled() const;
  6565. Constraint2D GetAttachedConstraint() const;
  6566. Variant GetAttribute(const String&) const;
  6567. Variant GetAttribute(uint) const;
  6568. ValueAnimation GetAttributeAnimation(const String&) const;
  6569. float GetAttributeAnimationSpeed(const String&) const;
  6570. float GetAttributeAnimationTime(const String&) const;
  6571. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6572. Variant GetAttributeDefault(const String&) const;
  6573. Variant GetAttributeDefault(uint) const;
  6574. bool GetBlockEvents() const;
  6575. bool GetCollideConnected() const;
  6576. Component GetComponent(StringHash) const;
  6577. float GetCorrectionFactor() const;
  6578. VariantMap& GetEventDataMap() const;
  6579. Object GetEventSender() const;
  6580. uint GetID() const;
  6581. bool GetInterceptNetworkUpdate(const String&) const;
  6582. float GetMaxForce() const;
  6583. float GetMaxTorque() const;
  6584. Node GetNode() const;
  6585. uint GetNumAttributes() const;
  6586. uint GetNumNetworkAttributes() const;
  6587. ObjectAnimation GetObjectAnimation() const;
  6588. ResourceRef GetObjectAnimationAttr() const;
  6589. RigidBody2D GetOtherBody() const;
  6590. RigidBody2D GetOwnerBody() const;
  6591. Scene GetScene() const;
  6592. Object GetSubsystem(StringHash) const;
  6593. StringHash GetType() const;
  6594. bool HasEventHandlers() const;
  6595. bool HasSubscribedToEvent(Object, StringHash) const;
  6596. bool HasSubscribedToEvent(StringHash) const;
  6597. bool IsEnabled() const;
  6598. bool IsEnabledEffective() const;
  6599. bool IsInstanceOf(StringHash) const;
  6600. bool IsReplicated() const;
  6601. bool IsTemporary() const;
  6602. bool Load(Deserializer&);
  6603. bool LoadJSON(const JSONValue&);
  6604. bool LoadXML(const XMLElement&);
  6605. void MarkNetworkUpdate();
  6606. operator Object() const;
  6607. void OnEvent(Object, StringHash, VariantMap&);
  6608. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6609. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6610. void OnSetEnabled();
  6611. void PrepareNetworkUpdate();
  6612. bool ReadDeltaUpdate(Deserializer&);
  6613. bool ReadLatestDataUpdate(Deserializer&);
  6614. operator RefCounted() const;
  6615. int Refs() const;
  6616. void ReleaseJoint();
  6617. void Remove();
  6618. void RemoveAttributeAnimation(const String&);
  6619. void RemoveInstanceDefault();
  6620. void RemoveObjectAnimation();
  6621. void ResetToDefault();
  6622. bool Save(Serializer&) const;
  6623. bool SaveDefaultAttributes() const;
  6624. bool SaveJSON(JSONValue&) const;
  6625. bool SaveXML(XMLElement&) const;
  6626. void SendEvent(StringHash);
  6627. void SendEvent(StringHash, VariantMap&);
  6628. operator Serializable() const;
  6629. void SetAngularOffset(float);
  6630. void SetAnimationEnabled(bool);
  6631. void SetAnimationTime(float);
  6632. void SetAttachedConstraint(Constraint2D);
  6633. bool SetAttribute(const String&, const Variant&);
  6634. bool SetAttribute(uint, const Variant&);
  6635. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6636. void SetAttributeAnimationSpeed(const String&, float);
  6637. void SetAttributeAnimationTime(const String&, float);
  6638. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6639. void SetBlockEvents(bool);
  6640. void SetCollideConnected(bool);
  6641. void SetCorrectionFactor(float);
  6642. void SetEnabled(bool);
  6643. void SetGlobalVar(StringHash, const Variant&);
  6644. void SetInstanceDefault(bool);
  6645. void SetInterceptNetworkUpdate(const String&, bool);
  6646. void SetLinearOffset(const Vector2&);
  6647. void SetMaxForce(float);
  6648. void SetMaxTorque(float);
  6649. void SetObjectAnimation(ObjectAnimation);
  6650. void SetObjectAnimationAttr(const ResourceRef&);
  6651. void SetOtherBody(RigidBody2D);
  6652. void SetTemporary(bool);
  6653. const String& GetCategory() const;
  6654. const String& GetTypeName() const;
  6655. void UnsubscribeFromAllEvents();
  6656. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6657. void UnsubscribeFromEvent(Object, StringHash);
  6658. void UnsubscribeFromEvent(StringHash);
  6659. void UnsubscribeFromEvents(Object);
  6660. const Variant& GetGlobalVar(StringHash) const;
  6661. const VariantMap& GetGlobalVars() const;
  6662. const Vector2& GetLinearOffset() const;
  6663. int WeakRefs() const;
  6664. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6665. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6666. void WriteLatestDataUpdate(Serializer&, uint8);
  6667. operator const Animatable() const;
  6668. operator const Component() const;
  6669. operator const Constraint2D() const;
  6670. operator const Object() const;
  6671. operator const RefCounted() const;
  6672. operator const Serializable() const;
  6673. // Properties:
  6674. float angularOffset;
  6675. bool animationEnabled;
  6676. /* readonly */
  6677. Array<Variant> attributeDefaults;
  6678. /* readonly */
  6679. Array<AttributeInfo> attributeInfos;
  6680. Array<Variant> attributes;
  6681. /* readonly */
  6682. String category;
  6683. bool collideConnected;
  6684. float correctionFactor;
  6685. bool enabled;
  6686. /* readonly */
  6687. bool enabledEffective;
  6688. Array<Variant> globalVar;
  6689. /* readonly */
  6690. VariantMap globalVars;
  6691. /* readonly */
  6692. uint id;
  6693. Vector2 linearOffset;
  6694. float maxForce;
  6695. float maxTorque;
  6696. /* readonly */
  6697. Node node;
  6698. /* readonly */
  6699. uint numAttributes;
  6700. ObjectAnimation objectAnimation;
  6701. RigidBody2D otherBody;
  6702. /* readonly */
  6703. RigidBody2D ownerBody;
  6704. /* readonly */
  6705. int refs;
  6706. /* readonly */
  6707. bool replicated;
  6708. bool temporary;
  6709. /* readonly */
  6710. StringHash type;
  6711. /* readonly */
  6712. String typeName;
  6713. /* readonly */
  6714. int weakRefs;
  6715. };
  6716. class ConstraintMouse2D
  6717. {
  6718. public:
  6719. ConstraintMouse2D();
  6720. // Methods:
  6721. void AllocateNetworkState();
  6722. operator Animatable() const;
  6723. void ApplyAttributes();
  6724. void CleanupConnection(Connection);
  6725. operator Component() const;
  6726. operator Constraint2D() const;
  6727. void CreateJoint();
  6728. void DrawDebugGeometry(DebugRenderer, bool);
  6729. bool GetAnimationEnabled() const;
  6730. Constraint2D GetAttachedConstraint() const;
  6731. Variant GetAttribute(const String&) const;
  6732. Variant GetAttribute(uint) const;
  6733. ValueAnimation GetAttributeAnimation(const String&) const;
  6734. float GetAttributeAnimationSpeed(const String&) const;
  6735. float GetAttributeAnimationTime(const String&) const;
  6736. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6737. Variant GetAttributeDefault(const String&) const;
  6738. Variant GetAttributeDefault(uint) const;
  6739. bool GetBlockEvents() const;
  6740. bool GetCollideConnected() const;
  6741. Component GetComponent(StringHash) const;
  6742. float GetDamping() const;
  6743. VariantMap& GetEventDataMap() const;
  6744. Object GetEventSender() const;
  6745. uint GetID() const;
  6746. bool GetInterceptNetworkUpdate(const String&) const;
  6747. float GetMaxForce() const;
  6748. Node GetNode() const;
  6749. uint GetNumAttributes() const;
  6750. uint GetNumNetworkAttributes() const;
  6751. ObjectAnimation GetObjectAnimation() const;
  6752. ResourceRef GetObjectAnimationAttr() const;
  6753. RigidBody2D GetOtherBody() const;
  6754. RigidBody2D GetOwnerBody() const;
  6755. Scene GetScene() const;
  6756. float GetStiffness() const;
  6757. Object GetSubsystem(StringHash) const;
  6758. StringHash GetType() const;
  6759. bool HasEventHandlers() const;
  6760. bool HasSubscribedToEvent(Object, StringHash) const;
  6761. bool HasSubscribedToEvent(StringHash) const;
  6762. bool IsEnabled() const;
  6763. bool IsEnabledEffective() const;
  6764. bool IsInstanceOf(StringHash) const;
  6765. bool IsReplicated() const;
  6766. bool IsTemporary() const;
  6767. bool Load(Deserializer&);
  6768. bool LoadJSON(const JSONValue&);
  6769. bool LoadXML(const XMLElement&);
  6770. void MarkNetworkUpdate();
  6771. operator Object() const;
  6772. void OnEvent(Object, StringHash, VariantMap&);
  6773. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6774. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6775. void OnSetEnabled();
  6776. void PrepareNetworkUpdate();
  6777. bool ReadDeltaUpdate(Deserializer&);
  6778. bool ReadLatestDataUpdate(Deserializer&);
  6779. operator RefCounted() const;
  6780. int Refs() const;
  6781. void ReleaseJoint();
  6782. void Remove();
  6783. void RemoveAttributeAnimation(const String&);
  6784. void RemoveInstanceDefault();
  6785. void RemoveObjectAnimation();
  6786. void ResetToDefault();
  6787. bool Save(Serializer&) const;
  6788. bool SaveDefaultAttributes() const;
  6789. bool SaveJSON(JSONValue&) const;
  6790. bool SaveXML(XMLElement&) const;
  6791. void SendEvent(StringHash);
  6792. void SendEvent(StringHash, VariantMap&);
  6793. operator Serializable() const;
  6794. void SetAnimationEnabled(bool);
  6795. void SetAnimationTime(float);
  6796. void SetAttachedConstraint(Constraint2D);
  6797. bool SetAttribute(const String&, const Variant&);
  6798. bool SetAttribute(uint, const Variant&);
  6799. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6800. void SetAttributeAnimationSpeed(const String&, float);
  6801. void SetAttributeAnimationTime(const String&, float);
  6802. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6803. void SetBlockEvents(bool);
  6804. void SetCollideConnected(bool);
  6805. void SetDamping(float);
  6806. void SetEnabled(bool);
  6807. void SetGlobalVar(StringHash, const Variant&);
  6808. void SetInstanceDefault(bool);
  6809. void SetInterceptNetworkUpdate(const String&, bool);
  6810. bool SetLinearStiffness(float, float);
  6811. void SetMaxForce(float);
  6812. void SetObjectAnimation(ObjectAnimation);
  6813. void SetObjectAnimationAttr(const ResourceRef&);
  6814. void SetOtherBody(RigidBody2D);
  6815. void SetStiffness(float);
  6816. void SetTarget(const Vector2&);
  6817. void SetTemporary(bool);
  6818. const String& GetCategory() const;
  6819. const String& GetTypeName() const;
  6820. void UnsubscribeFromAllEvents();
  6821. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6822. void UnsubscribeFromEvent(Object, StringHash);
  6823. void UnsubscribeFromEvent(StringHash);
  6824. void UnsubscribeFromEvents(Object);
  6825. const Variant& GetGlobalVar(StringHash) const;
  6826. const VariantMap& GetGlobalVars() const;
  6827. const Vector2& GetTarget() const;
  6828. int WeakRefs() const;
  6829. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6830. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6831. void WriteLatestDataUpdate(Serializer&, uint8);
  6832. operator const Animatable() const;
  6833. operator const Component() const;
  6834. operator const Constraint2D() const;
  6835. operator const Object() const;
  6836. operator const RefCounted() const;
  6837. operator const Serializable() const;
  6838. // Properties:
  6839. bool animationEnabled;
  6840. /* readonly */
  6841. Array<Variant> attributeDefaults;
  6842. /* readonly */
  6843. Array<AttributeInfo> attributeInfos;
  6844. Array<Variant> attributes;
  6845. /* readonly */
  6846. String category;
  6847. bool collideConnected;
  6848. float damping;
  6849. bool enabled;
  6850. /* readonly */
  6851. bool enabledEffective;
  6852. Array<Variant> globalVar;
  6853. /* readonly */
  6854. VariantMap globalVars;
  6855. /* readonly */
  6856. uint id;
  6857. float maxForce;
  6858. /* readonly */
  6859. Node node;
  6860. /* readonly */
  6861. uint numAttributes;
  6862. ObjectAnimation objectAnimation;
  6863. RigidBody2D otherBody;
  6864. /* readonly */
  6865. RigidBody2D ownerBody;
  6866. /* readonly */
  6867. int refs;
  6868. /* readonly */
  6869. bool replicated;
  6870. float stiffness;
  6871. Vector2 target;
  6872. bool temporary;
  6873. /* readonly */
  6874. StringHash type;
  6875. /* readonly */
  6876. String typeName;
  6877. /* readonly */
  6878. int weakRefs;
  6879. };
  6880. class ConstraintPrismatic2D
  6881. {
  6882. public:
  6883. ConstraintPrismatic2D();
  6884. // Methods:
  6885. void AllocateNetworkState();
  6886. operator Animatable() const;
  6887. void ApplyAttributes();
  6888. void CleanupConnection(Connection);
  6889. operator Component() const;
  6890. operator Constraint2D() const;
  6891. void CreateJoint();
  6892. void DrawDebugGeometry(DebugRenderer, bool);
  6893. bool GetAnimationEnabled() const;
  6894. Constraint2D GetAttachedConstraint() const;
  6895. Variant GetAttribute(const String&) const;
  6896. Variant GetAttribute(uint) const;
  6897. ValueAnimation GetAttributeAnimation(const String&) const;
  6898. float GetAttributeAnimationSpeed(const String&) const;
  6899. float GetAttributeAnimationTime(const String&) const;
  6900. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6901. Variant GetAttributeDefault(const String&) const;
  6902. Variant GetAttributeDefault(uint) const;
  6903. bool GetBlockEvents() const;
  6904. bool GetCollideConnected() const;
  6905. Component GetComponent(StringHash) const;
  6906. bool GetEnableLimit() const;
  6907. bool GetEnableMotor() const;
  6908. VariantMap& GetEventDataMap() const;
  6909. Object GetEventSender() const;
  6910. uint GetID() const;
  6911. bool GetInterceptNetworkUpdate(const String&) const;
  6912. float GetLowerTranslation() const;
  6913. float GetMaxMotorForce() const;
  6914. float GetMotorSpeed() const;
  6915. Node GetNode() const;
  6916. uint GetNumAttributes() const;
  6917. uint GetNumNetworkAttributes() const;
  6918. ObjectAnimation GetObjectAnimation() const;
  6919. ResourceRef GetObjectAnimationAttr() const;
  6920. RigidBody2D GetOtherBody() const;
  6921. RigidBody2D GetOwnerBody() const;
  6922. Scene GetScene() const;
  6923. Object GetSubsystem(StringHash) const;
  6924. StringHash GetType() const;
  6925. float GetUpperTranslation() const;
  6926. bool HasEventHandlers() const;
  6927. bool HasSubscribedToEvent(Object, StringHash) const;
  6928. bool HasSubscribedToEvent(StringHash) const;
  6929. bool IsEnabled() const;
  6930. bool IsEnabledEffective() const;
  6931. bool IsInstanceOf(StringHash) const;
  6932. bool IsReplicated() const;
  6933. bool IsTemporary() const;
  6934. bool Load(Deserializer&);
  6935. bool LoadJSON(const JSONValue&);
  6936. bool LoadXML(const XMLElement&);
  6937. void MarkNetworkUpdate();
  6938. operator Object() const;
  6939. void OnEvent(Object, StringHash, VariantMap&);
  6940. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6941. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6942. void OnSetEnabled();
  6943. void PrepareNetworkUpdate();
  6944. bool ReadDeltaUpdate(Deserializer&);
  6945. bool ReadLatestDataUpdate(Deserializer&);
  6946. operator RefCounted() const;
  6947. int Refs() const;
  6948. void ReleaseJoint();
  6949. void Remove();
  6950. void RemoveAttributeAnimation(const String&);
  6951. void RemoveInstanceDefault();
  6952. void RemoveObjectAnimation();
  6953. void ResetToDefault();
  6954. bool Save(Serializer&) const;
  6955. bool SaveDefaultAttributes() const;
  6956. bool SaveJSON(JSONValue&) const;
  6957. bool SaveXML(XMLElement&) const;
  6958. void SendEvent(StringHash);
  6959. void SendEvent(StringHash, VariantMap&);
  6960. operator Serializable() const;
  6961. void SetAnchor(const Vector2&);
  6962. void SetAnimationEnabled(bool);
  6963. void SetAnimationTime(float);
  6964. void SetAttachedConstraint(Constraint2D);
  6965. bool SetAttribute(const String&, const Variant&);
  6966. bool SetAttribute(uint, const Variant&);
  6967. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6968. void SetAttributeAnimationSpeed(const String&, float);
  6969. void SetAttributeAnimationTime(const String&, float);
  6970. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6971. void SetAxis(const Vector2&);
  6972. void SetBlockEvents(bool);
  6973. void SetCollideConnected(bool);
  6974. void SetEnableLimit(bool);
  6975. void SetEnableMotor(bool);
  6976. void SetEnabled(bool);
  6977. void SetGlobalVar(StringHash, const Variant&);
  6978. void SetInstanceDefault(bool);
  6979. void SetInterceptNetworkUpdate(const String&, bool);
  6980. void SetLowerTranslation(float);
  6981. void SetMaxMotorForce(float);
  6982. void SetMotorSpeed(float);
  6983. void SetObjectAnimation(ObjectAnimation);
  6984. void SetObjectAnimationAttr(const ResourceRef&);
  6985. void SetOtherBody(RigidBody2D);
  6986. void SetTemporary(bool);
  6987. void SetUpperTranslation(float);
  6988. const String& GetCategory() const;
  6989. const String& GetTypeName() const;
  6990. void UnsubscribeFromAllEvents();
  6991. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6992. void UnsubscribeFromEvent(Object, StringHash);
  6993. void UnsubscribeFromEvent(StringHash);
  6994. void UnsubscribeFromEvents(Object);
  6995. const Variant& GetGlobalVar(StringHash) const;
  6996. const VariantMap& GetGlobalVars() const;
  6997. const Vector2& GetAnchor() const;
  6998. const Vector2& GetAxis() const;
  6999. int WeakRefs() const;
  7000. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7001. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7002. void WriteLatestDataUpdate(Serializer&, uint8);
  7003. operator const Animatable() const;
  7004. operator const Component() const;
  7005. operator const Constraint2D() const;
  7006. operator const Object() const;
  7007. operator const RefCounted() const;
  7008. operator const Serializable() const;
  7009. // Properties:
  7010. Vector2 anchor;
  7011. bool animationEnabled;
  7012. /* readonly */
  7013. Array<Variant> attributeDefaults;
  7014. /* readonly */
  7015. Array<AttributeInfo> attributeInfos;
  7016. Array<Variant> attributes;
  7017. Vector2 axis;
  7018. /* readonly */
  7019. String category;
  7020. bool collideConnected;
  7021. bool enableLimit;
  7022. bool enableMotor;
  7023. bool enabled;
  7024. /* readonly */
  7025. bool enabledEffective;
  7026. Array<Variant> globalVar;
  7027. /* readonly */
  7028. VariantMap globalVars;
  7029. /* readonly */
  7030. uint id;
  7031. float lowerTranslation;
  7032. float maxMotorForce;
  7033. float motorSpeed;
  7034. /* readonly */
  7035. Node node;
  7036. /* readonly */
  7037. uint numAttributes;
  7038. ObjectAnimation objectAnimation;
  7039. RigidBody2D otherBody;
  7040. /* readonly */
  7041. RigidBody2D ownerBody;
  7042. /* readonly */
  7043. int refs;
  7044. /* readonly */
  7045. bool replicated;
  7046. bool temporary;
  7047. /* readonly */
  7048. StringHash type;
  7049. /* readonly */
  7050. String typeName;
  7051. float upperTranslation;
  7052. /* readonly */
  7053. int weakRefs;
  7054. };
  7055. class ConstraintPulley2D
  7056. {
  7057. public:
  7058. ConstraintPulley2D();
  7059. // Methods:
  7060. void AllocateNetworkState();
  7061. operator Animatable() const;
  7062. void ApplyAttributes();
  7063. void CleanupConnection(Connection);
  7064. operator Component() const;
  7065. operator Constraint2D() const;
  7066. void CreateJoint();
  7067. void DrawDebugGeometry(DebugRenderer, bool);
  7068. bool GetAnimationEnabled() const;
  7069. Constraint2D GetAttachedConstraint() const;
  7070. Variant GetAttribute(const String&) const;
  7071. Variant GetAttribute(uint) const;
  7072. ValueAnimation GetAttributeAnimation(const String&) const;
  7073. float GetAttributeAnimationSpeed(const String&) const;
  7074. float GetAttributeAnimationTime(const String&) const;
  7075. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7076. Variant GetAttributeDefault(const String&) const;
  7077. Variant GetAttributeDefault(uint) const;
  7078. bool GetBlockEvents() const;
  7079. bool GetCollideConnected() const;
  7080. Component GetComponent(StringHash) const;
  7081. VariantMap& GetEventDataMap() const;
  7082. Object GetEventSender() const;
  7083. uint GetID() const;
  7084. bool GetInterceptNetworkUpdate(const String&) const;
  7085. Node GetNode() const;
  7086. uint GetNumAttributes() const;
  7087. uint GetNumNetworkAttributes() const;
  7088. ObjectAnimation GetObjectAnimation() const;
  7089. ResourceRef GetObjectAnimationAttr() const;
  7090. RigidBody2D GetOtherBody() const;
  7091. RigidBody2D GetOwnerBody() const;
  7092. float GetRatio() const;
  7093. Scene GetScene() const;
  7094. Object GetSubsystem(StringHash) const;
  7095. StringHash GetType() const;
  7096. bool HasEventHandlers() const;
  7097. bool HasSubscribedToEvent(Object, StringHash) const;
  7098. bool HasSubscribedToEvent(StringHash) const;
  7099. bool IsEnabled() const;
  7100. bool IsEnabledEffective() const;
  7101. bool IsInstanceOf(StringHash) const;
  7102. bool IsReplicated() const;
  7103. bool IsTemporary() const;
  7104. bool Load(Deserializer&);
  7105. bool LoadJSON(const JSONValue&);
  7106. bool LoadXML(const XMLElement&);
  7107. void MarkNetworkUpdate();
  7108. operator Object() const;
  7109. void OnEvent(Object, StringHash, VariantMap&);
  7110. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7111. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7112. void OnSetEnabled();
  7113. void PrepareNetworkUpdate();
  7114. bool ReadDeltaUpdate(Deserializer&);
  7115. bool ReadLatestDataUpdate(Deserializer&);
  7116. operator RefCounted() const;
  7117. int Refs() const;
  7118. void ReleaseJoint();
  7119. void Remove();
  7120. void RemoveAttributeAnimation(const String&);
  7121. void RemoveInstanceDefault();
  7122. void RemoveObjectAnimation();
  7123. void ResetToDefault();
  7124. bool Save(Serializer&) const;
  7125. bool SaveDefaultAttributes() const;
  7126. bool SaveJSON(JSONValue&) const;
  7127. bool SaveXML(XMLElement&) const;
  7128. void SendEvent(StringHash);
  7129. void SendEvent(StringHash, VariantMap&);
  7130. operator Serializable() const;
  7131. void SetAnimationEnabled(bool);
  7132. void SetAnimationTime(float);
  7133. void SetAttachedConstraint(Constraint2D);
  7134. bool SetAttribute(const String&, const Variant&);
  7135. bool SetAttribute(uint, const Variant&);
  7136. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7137. void SetAttributeAnimationSpeed(const String&, float);
  7138. void SetAttributeAnimationTime(const String&, float);
  7139. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7140. void SetBlockEvents(bool);
  7141. void SetCollideConnected(bool);
  7142. void SetEnabled(bool);
  7143. void SetGlobalVar(StringHash, const Variant&);
  7144. void SetInstanceDefault(bool);
  7145. void SetInterceptNetworkUpdate(const String&, bool);
  7146. void SetObjectAnimation(ObjectAnimation);
  7147. void SetObjectAnimationAttr(const ResourceRef&);
  7148. void SetOtherBody(RigidBody2D);
  7149. void SetOtherBodyAnchor(const Vector2&);
  7150. void SetOtherBodyGroundAnchor(const Vector2&);
  7151. void SetOwnerBodyAnchor(const Vector2&);
  7152. void SetOwnerBodyGroundAnchor(const Vector2&);
  7153. void SetRatio(float);
  7154. void SetTemporary(bool);
  7155. const String& GetCategory() const;
  7156. const String& GetTypeName() const;
  7157. void UnsubscribeFromAllEvents();
  7158. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7159. void UnsubscribeFromEvent(Object, StringHash);
  7160. void UnsubscribeFromEvent(StringHash);
  7161. void UnsubscribeFromEvents(Object);
  7162. const Variant& GetGlobalVar(StringHash) const;
  7163. const VariantMap& GetGlobalVars() const;
  7164. const Vector2& GetOtherBodyAnchor() const;
  7165. const Vector2& GetOtherBodyGroundAnchor() const;
  7166. const Vector2& GetOwnerBodyAnchor() const;
  7167. const Vector2& GetOwnerBodyGroundAnchor() const;
  7168. int WeakRefs() const;
  7169. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7170. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7171. void WriteLatestDataUpdate(Serializer&, uint8);
  7172. operator const Animatable() const;
  7173. operator const Component() const;
  7174. operator const Constraint2D() const;
  7175. operator const Object() const;
  7176. operator const RefCounted() const;
  7177. operator const Serializable() const;
  7178. // Properties:
  7179. bool animationEnabled;
  7180. /* readonly */
  7181. Array<Variant> attributeDefaults;
  7182. /* readonly */
  7183. Array<AttributeInfo> attributeInfos;
  7184. Array<Variant> attributes;
  7185. /* readonly */
  7186. String category;
  7187. bool collideConnected;
  7188. bool enabled;
  7189. /* readonly */
  7190. bool enabledEffective;
  7191. Array<Variant> globalVar;
  7192. /* readonly */
  7193. VariantMap globalVars;
  7194. /* readonly */
  7195. uint id;
  7196. /* readonly */
  7197. Node node;
  7198. /* readonly */
  7199. uint numAttributes;
  7200. ObjectAnimation objectAnimation;
  7201. RigidBody2D otherBody;
  7202. Vector2 otherBodyAnchor;
  7203. Vector2 otherBodyGroundAnchor;
  7204. /* readonly */
  7205. RigidBody2D ownerBody;
  7206. Vector2 ownerBodyAnchor;
  7207. Vector2 ownerBodyGroundAnchor;
  7208. float ratio;
  7209. /* readonly */
  7210. int refs;
  7211. /* readonly */
  7212. bool replicated;
  7213. bool temporary;
  7214. /* readonly */
  7215. StringHash type;
  7216. /* readonly */
  7217. String typeName;
  7218. /* readonly */
  7219. int weakRefs;
  7220. };
  7221. class ConstraintRevolute2D
  7222. {
  7223. public:
  7224. ConstraintRevolute2D();
  7225. // Methods:
  7226. void AllocateNetworkState();
  7227. operator Animatable() const;
  7228. void ApplyAttributes();
  7229. void CleanupConnection(Connection);
  7230. operator Component() const;
  7231. operator Constraint2D() const;
  7232. void CreateJoint();
  7233. void DrawDebugGeometry(DebugRenderer, bool);
  7234. bool GetAnimationEnabled() const;
  7235. Constraint2D GetAttachedConstraint() const;
  7236. Variant GetAttribute(const String&) const;
  7237. Variant GetAttribute(uint) const;
  7238. ValueAnimation GetAttributeAnimation(const String&) const;
  7239. float GetAttributeAnimationSpeed(const String&) const;
  7240. float GetAttributeAnimationTime(const String&) const;
  7241. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7242. Variant GetAttributeDefault(const String&) const;
  7243. Variant GetAttributeDefault(uint) const;
  7244. bool GetBlockEvents() const;
  7245. bool GetCollideConnected() const;
  7246. Component GetComponent(StringHash) const;
  7247. bool GetEnableLimit() const;
  7248. bool GetEnableMotor() const;
  7249. VariantMap& GetEventDataMap() const;
  7250. Object GetEventSender() const;
  7251. uint GetID() const;
  7252. bool GetInterceptNetworkUpdate(const String&) const;
  7253. float GetLowerAngle() const;
  7254. float GetMaxMotorTorque() const;
  7255. float GetMotorSpeed() const;
  7256. Node GetNode() const;
  7257. uint GetNumAttributes() const;
  7258. uint GetNumNetworkAttributes() const;
  7259. ObjectAnimation GetObjectAnimation() const;
  7260. ResourceRef GetObjectAnimationAttr() const;
  7261. RigidBody2D GetOtherBody() const;
  7262. RigidBody2D GetOwnerBody() const;
  7263. Scene GetScene() const;
  7264. Object GetSubsystem(StringHash) const;
  7265. StringHash GetType() const;
  7266. float GetUpperAngle() const;
  7267. bool HasEventHandlers() const;
  7268. bool HasSubscribedToEvent(Object, StringHash) const;
  7269. bool HasSubscribedToEvent(StringHash) const;
  7270. bool IsEnabled() const;
  7271. bool IsEnabledEffective() const;
  7272. bool IsInstanceOf(StringHash) const;
  7273. bool IsReplicated() const;
  7274. bool IsTemporary() const;
  7275. bool Load(Deserializer&);
  7276. bool LoadJSON(const JSONValue&);
  7277. bool LoadXML(const XMLElement&);
  7278. void MarkNetworkUpdate();
  7279. operator Object() const;
  7280. void OnEvent(Object, StringHash, VariantMap&);
  7281. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7282. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7283. void OnSetEnabled();
  7284. void PrepareNetworkUpdate();
  7285. bool ReadDeltaUpdate(Deserializer&);
  7286. bool ReadLatestDataUpdate(Deserializer&);
  7287. operator RefCounted() const;
  7288. int Refs() const;
  7289. void ReleaseJoint();
  7290. void Remove();
  7291. void RemoveAttributeAnimation(const String&);
  7292. void RemoveInstanceDefault();
  7293. void RemoveObjectAnimation();
  7294. void ResetToDefault();
  7295. bool Save(Serializer&) const;
  7296. bool SaveDefaultAttributes() const;
  7297. bool SaveJSON(JSONValue&) const;
  7298. bool SaveXML(XMLElement&) const;
  7299. void SendEvent(StringHash);
  7300. void SendEvent(StringHash, VariantMap&);
  7301. operator Serializable() const;
  7302. void SetAnchor(const Vector2&);
  7303. void SetAnimationEnabled(bool);
  7304. void SetAnimationTime(float);
  7305. void SetAttachedConstraint(Constraint2D);
  7306. bool SetAttribute(const String&, const Variant&);
  7307. bool SetAttribute(uint, const Variant&);
  7308. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7309. void SetAttributeAnimationSpeed(const String&, float);
  7310. void SetAttributeAnimationTime(const String&, float);
  7311. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7312. void SetBlockEvents(bool);
  7313. void SetCollideConnected(bool);
  7314. void SetEnableLimit(bool);
  7315. void SetEnableMotor(bool);
  7316. void SetEnabled(bool);
  7317. void SetGlobalVar(StringHash, const Variant&);
  7318. void SetInstanceDefault(bool);
  7319. void SetInterceptNetworkUpdate(const String&, bool);
  7320. void SetLowerAngle(float);
  7321. void SetMaxMotorTorque(float);
  7322. void SetMotorSpeed(float);
  7323. void SetObjectAnimation(ObjectAnimation);
  7324. void SetObjectAnimationAttr(const ResourceRef&);
  7325. void SetOtherBody(RigidBody2D);
  7326. void SetTemporary(bool);
  7327. void SetUpperAngle(float);
  7328. const String& GetCategory() const;
  7329. const String& GetTypeName() const;
  7330. void UnsubscribeFromAllEvents();
  7331. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7332. void UnsubscribeFromEvent(Object, StringHash);
  7333. void UnsubscribeFromEvent(StringHash);
  7334. void UnsubscribeFromEvents(Object);
  7335. const Variant& GetGlobalVar(StringHash) const;
  7336. const VariantMap& GetGlobalVars() const;
  7337. const Vector2& GetAnchor() const;
  7338. int WeakRefs() const;
  7339. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7340. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7341. void WriteLatestDataUpdate(Serializer&, uint8);
  7342. operator const Animatable() const;
  7343. operator const Component() const;
  7344. operator const Constraint2D() const;
  7345. operator const Object() const;
  7346. operator const RefCounted() const;
  7347. operator const Serializable() const;
  7348. // Properties:
  7349. Vector2 anchor;
  7350. bool animationEnabled;
  7351. /* readonly */
  7352. Array<Variant> attributeDefaults;
  7353. /* readonly */
  7354. Array<AttributeInfo> attributeInfos;
  7355. Array<Variant> attributes;
  7356. /* readonly */
  7357. String category;
  7358. bool collideConnected;
  7359. bool enableLimit;
  7360. bool enableMotor;
  7361. bool enabled;
  7362. /* readonly */
  7363. bool enabledEffective;
  7364. Array<Variant> globalVar;
  7365. /* readonly */
  7366. VariantMap globalVars;
  7367. /* readonly */
  7368. uint id;
  7369. float lowerAngle;
  7370. float maxMotorTorque;
  7371. float motorSpeed;
  7372. /* readonly */
  7373. Node node;
  7374. /* readonly */
  7375. uint numAttributes;
  7376. ObjectAnimation objectAnimation;
  7377. RigidBody2D otherBody;
  7378. /* readonly */
  7379. RigidBody2D ownerBody;
  7380. /* readonly */
  7381. int refs;
  7382. /* readonly */
  7383. bool replicated;
  7384. bool temporary;
  7385. /* readonly */
  7386. StringHash type;
  7387. /* readonly */
  7388. String typeName;
  7389. float upperAngle;
  7390. /* readonly */
  7391. int weakRefs;
  7392. };
  7393. class ConstraintWeld2D
  7394. {
  7395. public:
  7396. ConstraintWeld2D();
  7397. // Methods:
  7398. void AllocateNetworkState();
  7399. operator Animatable() const;
  7400. void ApplyAttributes();
  7401. void CleanupConnection(Connection);
  7402. operator Component() const;
  7403. operator Constraint2D() const;
  7404. void CreateJoint();
  7405. void DrawDebugGeometry(DebugRenderer, bool);
  7406. bool GetAnimationEnabled() const;
  7407. Constraint2D GetAttachedConstraint() const;
  7408. Variant GetAttribute(const String&) const;
  7409. Variant GetAttribute(uint) const;
  7410. ValueAnimation GetAttributeAnimation(const String&) const;
  7411. float GetAttributeAnimationSpeed(const String&) const;
  7412. float GetAttributeAnimationTime(const String&) const;
  7413. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7414. Variant GetAttributeDefault(const String&) const;
  7415. Variant GetAttributeDefault(uint) const;
  7416. bool GetBlockEvents() const;
  7417. bool GetCollideConnected() const;
  7418. Component GetComponent(StringHash) const;
  7419. float GetDamping() const;
  7420. VariantMap& GetEventDataMap() const;
  7421. Object GetEventSender() const;
  7422. uint GetID() const;
  7423. bool GetInterceptNetworkUpdate(const String&) const;
  7424. Node GetNode() const;
  7425. uint GetNumAttributes() const;
  7426. uint GetNumNetworkAttributes() const;
  7427. ObjectAnimation GetObjectAnimation() const;
  7428. ResourceRef GetObjectAnimationAttr() const;
  7429. RigidBody2D GetOtherBody() const;
  7430. RigidBody2D GetOwnerBody() const;
  7431. Scene GetScene() const;
  7432. float GetStiffness() const;
  7433. Object GetSubsystem(StringHash) const;
  7434. StringHash GetType() const;
  7435. bool HasEventHandlers() const;
  7436. bool HasSubscribedToEvent(Object, StringHash) const;
  7437. bool HasSubscribedToEvent(StringHash) const;
  7438. bool IsEnabled() const;
  7439. bool IsEnabledEffective() const;
  7440. bool IsInstanceOf(StringHash) const;
  7441. bool IsReplicated() const;
  7442. bool IsTemporary() const;
  7443. bool Load(Deserializer&);
  7444. bool LoadJSON(const JSONValue&);
  7445. bool LoadXML(const XMLElement&);
  7446. void MarkNetworkUpdate();
  7447. operator Object() const;
  7448. void OnEvent(Object, StringHash, VariantMap&);
  7449. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7450. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7451. void OnSetEnabled();
  7452. void PrepareNetworkUpdate();
  7453. bool ReadDeltaUpdate(Deserializer&);
  7454. bool ReadLatestDataUpdate(Deserializer&);
  7455. operator RefCounted() const;
  7456. int Refs() const;
  7457. void ReleaseJoint();
  7458. void Remove();
  7459. void RemoveAttributeAnimation(const String&);
  7460. void RemoveInstanceDefault();
  7461. void RemoveObjectAnimation();
  7462. void ResetToDefault();
  7463. bool Save(Serializer&) const;
  7464. bool SaveDefaultAttributes() const;
  7465. bool SaveJSON(JSONValue&) const;
  7466. bool SaveXML(XMLElement&) const;
  7467. void SendEvent(StringHash);
  7468. void SendEvent(StringHash, VariantMap&);
  7469. operator Serializable() const;
  7470. void SetAnchor(const Vector2&);
  7471. bool SetAngularStiffness(float, float);
  7472. void SetAnimationEnabled(bool);
  7473. void SetAnimationTime(float);
  7474. void SetAttachedConstraint(Constraint2D);
  7475. bool SetAttribute(const String&, const Variant&);
  7476. bool SetAttribute(uint, const Variant&);
  7477. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7478. void SetAttributeAnimationSpeed(const String&, float);
  7479. void SetAttributeAnimationTime(const String&, float);
  7480. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7481. void SetBlockEvents(bool);
  7482. void SetCollideConnected(bool);
  7483. void SetDamping(float);
  7484. void SetEnabled(bool);
  7485. void SetGlobalVar(StringHash, const Variant&);
  7486. void SetInstanceDefault(bool);
  7487. void SetInterceptNetworkUpdate(const String&, bool);
  7488. void SetObjectAnimation(ObjectAnimation);
  7489. void SetObjectAnimationAttr(const ResourceRef&);
  7490. void SetOtherBody(RigidBody2D);
  7491. void SetStiffness(float);
  7492. void SetTemporary(bool);
  7493. const String& GetCategory() const;
  7494. const String& GetTypeName() const;
  7495. void UnsubscribeFromAllEvents();
  7496. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7497. void UnsubscribeFromEvent(Object, StringHash);
  7498. void UnsubscribeFromEvent(StringHash);
  7499. void UnsubscribeFromEvents(Object);
  7500. const Variant& GetGlobalVar(StringHash) const;
  7501. const VariantMap& GetGlobalVars() const;
  7502. const Vector2& GetAnchor() const;
  7503. int WeakRefs() const;
  7504. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7505. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7506. void WriteLatestDataUpdate(Serializer&, uint8);
  7507. operator const Animatable() const;
  7508. operator const Component() const;
  7509. operator const Constraint2D() const;
  7510. operator const Object() const;
  7511. operator const RefCounted() const;
  7512. operator const Serializable() const;
  7513. // Properties:
  7514. Vector2 anchor;
  7515. bool animationEnabled;
  7516. /* readonly */
  7517. Array<Variant> attributeDefaults;
  7518. /* readonly */
  7519. Array<AttributeInfo> attributeInfos;
  7520. Array<Variant> attributes;
  7521. /* readonly */
  7522. String category;
  7523. bool collideConnected;
  7524. float damping;
  7525. bool enabled;
  7526. /* readonly */
  7527. bool enabledEffective;
  7528. Array<Variant> globalVar;
  7529. /* readonly */
  7530. VariantMap globalVars;
  7531. /* readonly */
  7532. uint id;
  7533. /* readonly */
  7534. Node node;
  7535. /* readonly */
  7536. uint numAttributes;
  7537. ObjectAnimation objectAnimation;
  7538. RigidBody2D otherBody;
  7539. /* readonly */
  7540. RigidBody2D ownerBody;
  7541. /* readonly */
  7542. int refs;
  7543. /* readonly */
  7544. bool replicated;
  7545. float stiffness;
  7546. bool temporary;
  7547. /* readonly */
  7548. StringHash type;
  7549. /* readonly */
  7550. String typeName;
  7551. /* readonly */
  7552. int weakRefs;
  7553. };
  7554. class ConstraintWheel2D
  7555. {
  7556. public:
  7557. ConstraintWheel2D();
  7558. // Methods:
  7559. void AllocateNetworkState();
  7560. operator Animatable() const;
  7561. void ApplyAttributes();
  7562. void CleanupConnection(Connection);
  7563. operator Component() const;
  7564. operator Constraint2D() const;
  7565. void CreateJoint();
  7566. void DrawDebugGeometry(DebugRenderer, bool);
  7567. bool GetAnimationEnabled() const;
  7568. Constraint2D GetAttachedConstraint() const;
  7569. Variant GetAttribute(const String&) const;
  7570. Variant GetAttribute(uint) const;
  7571. ValueAnimation GetAttributeAnimation(const String&) const;
  7572. float GetAttributeAnimationSpeed(const String&) const;
  7573. float GetAttributeAnimationTime(const String&) const;
  7574. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7575. Variant GetAttributeDefault(const String&) const;
  7576. Variant GetAttributeDefault(uint) const;
  7577. bool GetBlockEvents() const;
  7578. bool GetCollideConnected() const;
  7579. Component GetComponent(StringHash) const;
  7580. float GetDamping() const;
  7581. bool GetEnableLimit() const;
  7582. bool GetEnableMotor() const;
  7583. VariantMap& GetEventDataMap() const;
  7584. Object GetEventSender() const;
  7585. uint GetID() const;
  7586. bool GetInterceptNetworkUpdate(const String&) const;
  7587. float GetLowerTranslation() const;
  7588. float GetMaxMotorTorque() const;
  7589. float GetMotorSpeed() const;
  7590. Node GetNode() const;
  7591. uint GetNumAttributes() const;
  7592. uint GetNumNetworkAttributes() const;
  7593. ObjectAnimation GetObjectAnimation() const;
  7594. ResourceRef GetObjectAnimationAttr() const;
  7595. RigidBody2D GetOtherBody() const;
  7596. RigidBody2D GetOwnerBody() const;
  7597. Scene GetScene() const;
  7598. float GetStiffness() const;
  7599. Object GetSubsystem(StringHash) const;
  7600. StringHash GetType() const;
  7601. float GetUpperTranslation() const;
  7602. bool HasEventHandlers() const;
  7603. bool HasSubscribedToEvent(Object, StringHash) const;
  7604. bool HasSubscribedToEvent(StringHash) const;
  7605. bool IsEnabled() const;
  7606. bool IsEnabledEffective() const;
  7607. bool IsInstanceOf(StringHash) const;
  7608. bool IsReplicated() const;
  7609. bool IsTemporary() const;
  7610. bool Load(Deserializer&);
  7611. bool LoadJSON(const JSONValue&);
  7612. bool LoadXML(const XMLElement&);
  7613. void MarkNetworkUpdate();
  7614. operator Object() const;
  7615. void OnEvent(Object, StringHash, VariantMap&);
  7616. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7617. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7618. void OnSetEnabled();
  7619. void PrepareNetworkUpdate();
  7620. bool ReadDeltaUpdate(Deserializer&);
  7621. bool ReadLatestDataUpdate(Deserializer&);
  7622. operator RefCounted() const;
  7623. int Refs() const;
  7624. void ReleaseJoint();
  7625. void Remove();
  7626. void RemoveAttributeAnimation(const String&);
  7627. void RemoveInstanceDefault();
  7628. void RemoveObjectAnimation();
  7629. void ResetToDefault();
  7630. bool Save(Serializer&) const;
  7631. bool SaveDefaultAttributes() const;
  7632. bool SaveJSON(JSONValue&) const;
  7633. bool SaveXML(XMLElement&) const;
  7634. void SendEvent(StringHash);
  7635. void SendEvent(StringHash, VariantMap&);
  7636. operator Serializable() const;
  7637. void SetAnchor(const Vector2&);
  7638. void SetAnimationEnabled(bool);
  7639. void SetAnimationTime(float);
  7640. void SetAttachedConstraint(Constraint2D);
  7641. bool SetAttribute(const String&, const Variant&);
  7642. bool SetAttribute(uint, const Variant&);
  7643. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7644. void SetAttributeAnimationSpeed(const String&, float);
  7645. void SetAttributeAnimationTime(const String&, float);
  7646. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7647. void SetAxis(const Vector2&);
  7648. void SetBlockEvents(bool);
  7649. void SetCollideConnected(bool);
  7650. void SetDamping(float);
  7651. void SetEnableLimit(bool);
  7652. void SetEnableMotor(bool);
  7653. void SetEnabled(bool);
  7654. void SetGlobalVar(StringHash, const Variant&);
  7655. void SetInstanceDefault(bool);
  7656. void SetInterceptNetworkUpdate(const String&, bool);
  7657. bool SetLinearStiffness(float, float);
  7658. void SetLowerTranslation(float);
  7659. void SetMaxMotorTorque(float);
  7660. void SetMotorSpeed(float);
  7661. void SetObjectAnimation(ObjectAnimation);
  7662. void SetObjectAnimationAttr(const ResourceRef&);
  7663. void SetOtherBody(RigidBody2D);
  7664. void SetStiffness(float);
  7665. void SetTemporary(bool);
  7666. void SetUpperTranslation(float);
  7667. const String& GetCategory() const;
  7668. const String& GetTypeName() const;
  7669. void UnsubscribeFromAllEvents();
  7670. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7671. void UnsubscribeFromEvent(Object, StringHash);
  7672. void UnsubscribeFromEvent(StringHash);
  7673. void UnsubscribeFromEvents(Object);
  7674. const Variant& GetGlobalVar(StringHash) const;
  7675. const VariantMap& GetGlobalVars() const;
  7676. const Vector2& GetAnchor() const;
  7677. const Vector2& GetAxis() const;
  7678. int WeakRefs() const;
  7679. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7680. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7681. void WriteLatestDataUpdate(Serializer&, uint8);
  7682. operator const Animatable() const;
  7683. operator const Component() const;
  7684. operator const Constraint2D() const;
  7685. operator const Object() const;
  7686. operator const RefCounted() const;
  7687. operator const Serializable() const;
  7688. // Properties:
  7689. Vector2 anchor;
  7690. bool animationEnabled;
  7691. /* readonly */
  7692. Array<Variant> attributeDefaults;
  7693. /* readonly */
  7694. Array<AttributeInfo> attributeInfos;
  7695. Array<Variant> attributes;
  7696. Vector2 axis;
  7697. /* readonly */
  7698. String category;
  7699. bool collideConnected;
  7700. float damping;
  7701. bool enableLimit;
  7702. bool enableMotor;
  7703. bool enabled;
  7704. /* readonly */
  7705. bool enabledEffective;
  7706. Array<Variant> globalVar;
  7707. /* readonly */
  7708. VariantMap globalVars;
  7709. /* readonly */
  7710. uint id;
  7711. float lowerTranslation;
  7712. float maxMotorTorque;
  7713. float motorSpeed;
  7714. /* readonly */
  7715. Node node;
  7716. /* readonly */
  7717. uint numAttributes;
  7718. ObjectAnimation objectAnimation;
  7719. RigidBody2D otherBody;
  7720. /* readonly */
  7721. RigidBody2D ownerBody;
  7722. /* readonly */
  7723. int refs;
  7724. /* readonly */
  7725. bool replicated;
  7726. float stiffness;
  7727. bool temporary;
  7728. /* readonly */
  7729. StringHash type;
  7730. /* readonly */
  7731. String typeName;
  7732. float upperTranslation;
  7733. /* readonly */
  7734. int weakRefs;
  7735. };
  7736. class Context
  7737. {
  7738. public:
  7739. Context();
  7740. // Methods:
  7741. void CopyBaseAttributes(StringHash, StringHash);
  7742. Object CreateObject(StringHash);
  7743. VariantMap& GetEventDataMap();
  7744. EventReceiverGroup GetEventReceivers(Object, StringHash);
  7745. EventReceiverGroup GetEventReceivers(StringHash);
  7746. Object GetEventSender() const;
  7747. Object GetSubsystem(StringHash) const;
  7748. operator RefCounted() const;
  7749. int Refs() const;
  7750. void RegisterFactory(ObjectFactory);
  7751. void RegisterSubsystem(Object);
  7752. void ReleaseSDL();
  7753. void RemoveAllAttributes(StringHash);
  7754. void RemoveSubsystem(StringHash);
  7755. bool RequireSDL(uint);
  7756. void SetGlobalVar(StringHash, const Variant&);
  7757. const String& GetTypeName(StringHash) const;
  7758. const Variant& GetGlobalVar(StringHash) const;
  7759. const VariantMap& GetGlobalVars() const;
  7760. int WeakRefs() const;
  7761. operator const RefCounted() const;
  7762. // Properties:
  7763. /* readonly */
  7764. int refs;
  7765. /* readonly */
  7766. int weakRefs;
  7767. };
  7768. class Controls
  7769. {
  7770. public:
  7771. ~Controls();
  7772. Controls();
  7773. // Methods:
  7774. Controls& operator=(const Controls&);
  7775. bool IsDown(uint) const;
  7776. bool IsPressed(uint, const Controls&) const;
  7777. void Reset();
  7778. void Set(uint, bool = true);
  7779. // Properties:
  7780. uint buttons;
  7781. VariantMap extraData;
  7782. float pitch;
  7783. float yaw;
  7784. };
  7785. class ConvexData
  7786. {
  7787. public:
  7788. ConvexData(Model&, uint);
  7789. ConvexData(CustomGeometry&);
  7790. // Methods:
  7791. void BuildHull(Array<Vector3>);
  7792. operator CollisionGeometryData() const;
  7793. operator RefCounted() const;
  7794. int Refs() const;
  7795. int WeakRefs() const;
  7796. operator const CollisionGeometryData() const;
  7797. operator const RefCounted() const;
  7798. // Properties:
  7799. uint indexCount;
  7800. /* readonly */
  7801. int refs;
  7802. uint vertexCount;
  7803. /* readonly */
  7804. int weakRefs;
  7805. };
  7806. class CrowdAgent
  7807. {
  7808. public:
  7809. CrowdAgent();
  7810. // Methods:
  7811. void AllocateNetworkState();
  7812. operator Animatable() const;
  7813. void ApplyAttributes();
  7814. void CleanupConnection(Connection);
  7815. operator Component() const;
  7816. void DrawDebugGeometry(DebugRenderer, bool);
  7817. void DrawDebugGeometry(bool);
  7818. Vector3 GetActualVelocity() const;
  7819. int GetAgentCrowdId() const;
  7820. CrowdAgentState GetAgentState() const;
  7821. bool GetAnimationEnabled() const;
  7822. Variant GetAttribute(const String&) const;
  7823. Variant GetAttribute(uint) const;
  7824. ValueAnimation GetAttributeAnimation(const String&) const;
  7825. float GetAttributeAnimationSpeed(const String&) const;
  7826. float GetAttributeAnimationTime(const String&) const;
  7827. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7828. Variant GetAttributeDefault(const String&) const;
  7829. Variant GetAttributeDefault(uint) const;
  7830. bool GetBlockEvents() const;
  7831. Component GetComponent(StringHash) const;
  7832. Vector3 GetDesiredVelocity() const;
  7833. VariantMap& GetEventDataMap() const;
  7834. Object GetEventSender() const;
  7835. float GetHeight() const;
  7836. uint GetID() const;
  7837. bool GetInterceptNetworkUpdate(const String&) const;
  7838. float GetMaxAccel() const;
  7839. float GetMaxSpeed() const;
  7840. NavigationPushiness GetNavigationPushiness() const;
  7841. NavigationQuality GetNavigationQuality() const;
  7842. Node GetNode() const;
  7843. uint GetNumAttributes() const;
  7844. uint GetNumNetworkAttributes() const;
  7845. ObjectAnimation GetObjectAnimation() const;
  7846. ResourceRef GetObjectAnimationAttr() const;
  7847. uint GetObstacleAvoidanceType() const;
  7848. Vector3 GetPosition() const;
  7849. uint GetQueryFilterType() const;
  7850. float GetRadius() const;
  7851. CrowdAgentRequestedTarget GetRequestedTargetType() const;
  7852. Scene GetScene() const;
  7853. Object GetSubsystem(StringHash) const;
  7854. CrowdAgentTargetState GetTargetState() const;
  7855. StringHash GetType() const;
  7856. bool GetUpdateNodePosition() const;
  7857. bool HasArrived() const;
  7858. bool HasEventHandlers() const;
  7859. bool HasRequestedTarget() const;
  7860. bool HasSubscribedToEvent(Object, StringHash) const;
  7861. bool HasSubscribedToEvent(StringHash) const;
  7862. bool IsEnabled() const;
  7863. bool IsEnabledEffective() const;
  7864. bool IsInCrowd() const;
  7865. bool IsInstanceOf(StringHash) const;
  7866. bool IsReplicated() const;
  7867. bool IsTemporary() const;
  7868. bool Load(Deserializer&);
  7869. bool LoadJSON(const JSONValue&);
  7870. bool LoadXML(const XMLElement&);
  7871. void MarkNetworkUpdate();
  7872. operator Object() const;
  7873. void OnEvent(Object, StringHash, VariantMap&);
  7874. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7875. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7876. void OnSetEnabled();
  7877. void PrepareNetworkUpdate();
  7878. bool ReadDeltaUpdate(Deserializer&);
  7879. bool ReadLatestDataUpdate(Deserializer&);
  7880. operator RefCounted() const;
  7881. int Refs() const;
  7882. void Remove();
  7883. void RemoveAttributeAnimation(const String&);
  7884. void RemoveInstanceDefault();
  7885. void RemoveObjectAnimation();
  7886. void ResetTarget();
  7887. void ResetToDefault();
  7888. bool Save(Serializer&) const;
  7889. bool SaveDefaultAttributes() const;
  7890. bool SaveJSON(JSONValue&) const;
  7891. bool SaveXML(XMLElement&) const;
  7892. void SendEvent(StringHash);
  7893. void SendEvent(StringHash, VariantMap&);
  7894. operator Serializable() const;
  7895. void SetAnimationEnabled(bool);
  7896. void SetAnimationTime(float);
  7897. bool SetAttribute(const String&, const Variant&);
  7898. bool SetAttribute(uint, const Variant&);
  7899. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7900. void SetAttributeAnimationSpeed(const String&, float);
  7901. void SetAttributeAnimationTime(const String&, float);
  7902. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7903. void SetBlockEvents(bool);
  7904. void SetEnabled(bool);
  7905. void SetGlobalVar(StringHash, const Variant&);
  7906. void SetHeight(float);
  7907. void SetInstanceDefault(bool);
  7908. void SetInterceptNetworkUpdate(const String&, bool);
  7909. void SetMaxAccel(float);
  7910. void SetMaxSpeed(float);
  7911. void SetNavigationPushiness(NavigationPushiness);
  7912. void SetNavigationQuality(NavigationQuality);
  7913. void SetObjectAnimation(ObjectAnimation);
  7914. void SetObjectAnimationAttr(const ResourceRef&);
  7915. void SetObstacleAvoidanceType(uint);
  7916. void SetQueryFilterType(uint);
  7917. void SetRadius(float);
  7918. void SetTargetPosition(const Vector3&);
  7919. void SetTargetVelocity(const Vector3&);
  7920. void SetTemporary(bool);
  7921. void SetUpdateNodePosition(bool);
  7922. const String& GetCategory() const;
  7923. const String& GetTypeName() const;
  7924. void UnsubscribeFromAllEvents();
  7925. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7926. void UnsubscribeFromEvent(Object, StringHash);
  7927. void UnsubscribeFromEvent(StringHash);
  7928. void UnsubscribeFromEvents(Object);
  7929. const Variant& GetGlobalVar(StringHash) const;
  7930. const VariantMap& GetGlobalVars() const;
  7931. const Vector3& GetTargetPosition() const;
  7932. const Vector3& GetTargetVelocity() const;
  7933. int WeakRefs() const;
  7934. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7935. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7936. void WriteLatestDataUpdate(Serializer&, uint8);
  7937. operator const Animatable() const;
  7938. operator const Component() const;
  7939. operator const Object() const;
  7940. operator const RefCounted() const;
  7941. operator const Serializable() const;
  7942. // Properties:
  7943. /* readonly */
  7944. Vector3 actualVelocity;
  7945. /* readonly */
  7946. CrowdAgentState agentState;
  7947. bool animationEnabled;
  7948. /* readonly */
  7949. bool arrived;
  7950. /* readonly */
  7951. Array<Variant> attributeDefaults;
  7952. /* readonly */
  7953. Array<AttributeInfo> attributeInfos;
  7954. Array<Variant> attributes;
  7955. /* readonly */
  7956. String category;
  7957. /* readonly */
  7958. Vector3 desiredVelocity;
  7959. bool enabled;
  7960. /* readonly */
  7961. bool enabledEffective;
  7962. Array<Variant> globalVar;
  7963. /* readonly */
  7964. VariantMap globalVars;
  7965. float height;
  7966. /* readonly */
  7967. uint id;
  7968. /* readonly */
  7969. bool inCrowd;
  7970. float maxAccel;
  7971. float maxSpeed;
  7972. NavigationPushiness navigationPushiness;
  7973. NavigationQuality navigationQuality;
  7974. /* readonly */
  7975. Node node;
  7976. /* readonly */
  7977. uint numAttributes;
  7978. ObjectAnimation objectAnimation;
  7979. uint obstacleAvoidanceType;
  7980. /* readonly */
  7981. Vector3 position;
  7982. uint queryFilterType;
  7983. float radius;
  7984. /* readonly */
  7985. int refs;
  7986. /* readonly */
  7987. bool replicated;
  7988. /* readonly */
  7989. bool requestedTarget;
  7990. /* readonly */
  7991. CrowdAgentRequestedTarget requestedTargetType;
  7992. Vector3 targetPosition;
  7993. /* readonly */
  7994. CrowdAgentTargetState targetState;
  7995. Vector3 targetVelocity;
  7996. bool temporary;
  7997. /* readonly */
  7998. StringHash type;
  7999. /* readonly */
  8000. String typeName;
  8001. bool updateNodePosition;
  8002. /* readonly */
  8003. int weakRefs;
  8004. };
  8005. class CrowdManager
  8006. {
  8007. public:
  8008. CrowdManager();
  8009. // Methods:
  8010. void AllocateNetworkState();
  8011. operator Animatable() const;
  8012. void ApplyAttributes();
  8013. void CleanupConnection(Connection);
  8014. operator Component() const;
  8015. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint) const;
  8016. void DrawDebugGeometry(DebugRenderer, bool);
  8017. void DrawDebugGeometry(bool);
  8018. Vector3 FindNearestPoint(const Vector3&, int);
  8019. Array<CrowdAgent> GetAgents(Node = null, bool = true) const;
  8020. bool GetAnimationEnabled() const;
  8021. float GetAreaCost(uint, uint) const;
  8022. Variant GetAttribute(const String&) const;
  8023. Variant GetAttribute(uint) const;
  8024. ValueAnimation GetAttributeAnimation(const String&) const;
  8025. float GetAttributeAnimationSpeed(const String&) const;
  8026. float GetAttributeAnimationTime(const String&) const;
  8027. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8028. Variant GetAttributeDefault(const String&) const;
  8029. Variant GetAttributeDefault(uint) const;
  8030. bool GetBlockEvents() const;
  8031. Component GetComponent(StringHash) const;
  8032. float GetDistanceToWall(const Vector3&, float, int);
  8033. VariantMap& GetEventDataMap() const;
  8034. Object GetEventSender() const;
  8035. uint16 GetExcludeFlags(uint) const;
  8036. uint GetID() const;
  8037. uint16 GetIncludeFlags(uint) const;
  8038. bool GetInterceptNetworkUpdate(const String&) const;
  8039. float GetMaxAgentRadius() const;
  8040. uint GetMaxAgents() const;
  8041. NavigationMesh GetNavigationMesh() const;
  8042. Node GetNode() const;
  8043. uint GetNumAreas(uint) const;
  8044. uint GetNumAttributes() const;
  8045. uint GetNumNetworkAttributes() const;
  8046. uint GetNumObstacleAvoidanceTypes() const;
  8047. uint GetNumQueryFilterTypes() const;
  8048. ObjectAnimation GetObjectAnimation() const;
  8049. ResourceRef GetObjectAnimationAttr() const;
  8050. Vector3 GetRandomPoint(int);
  8051. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  8052. Scene GetScene() const;
  8053. Object GetSubsystem(StringHash) const;
  8054. StringHash GetType() const;
  8055. bool HasEventHandlers() const;
  8056. bool HasSubscribedToEvent(Object, StringHash) const;
  8057. bool HasSubscribedToEvent(StringHash) const;
  8058. bool IsEnabled() const;
  8059. bool IsEnabledEffective() const;
  8060. bool IsInstanceOf(StringHash) const;
  8061. bool IsReplicated() const;
  8062. bool IsTemporary() const;
  8063. bool Load(Deserializer&);
  8064. bool LoadJSON(const JSONValue&);
  8065. bool LoadXML(const XMLElement&);
  8066. void MarkNetworkUpdate();
  8067. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, int = 3);
  8068. operator Object() const;
  8069. void OnEvent(Object, StringHash, VariantMap&);
  8070. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8071. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8072. void OnSetEnabled();
  8073. void PrepareNetworkUpdate();
  8074. Vector3 Raycast(const Vector3&, const Vector3&, int);
  8075. bool ReadDeltaUpdate(Deserializer&);
  8076. bool ReadLatestDataUpdate(Deserializer&);
  8077. operator RefCounted() const;
  8078. int Refs() const;
  8079. void Remove();
  8080. void RemoveAttributeAnimation(const String&);
  8081. void RemoveInstanceDefault();
  8082. void RemoveObjectAnimation();
  8083. void ResetCrowdTarget(Node = null);
  8084. void ResetToDefault();
  8085. bool Save(Serializer&) const;
  8086. bool SaveDefaultAttributes() const;
  8087. bool SaveJSON(JSONValue&) const;
  8088. bool SaveXML(XMLElement&) const;
  8089. void SendEvent(StringHash);
  8090. void SendEvent(StringHash, VariantMap&);
  8091. operator Serializable() const;
  8092. void SetAnimationEnabled(bool);
  8093. void SetAnimationTime(float);
  8094. void SetAreaCost(uint, uint, float);
  8095. bool SetAttribute(const String&, const Variant&);
  8096. bool SetAttribute(uint, const Variant&);
  8097. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8098. void SetAttributeAnimationSpeed(const String&, float);
  8099. void SetAttributeAnimationTime(const String&, float);
  8100. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8101. void SetBlockEvents(bool);
  8102. void SetCrowdTarget(const Vector3&, Node = null);
  8103. void SetCrowdVelocity(const Vector3&, Node = null);
  8104. void SetEnabled(bool);
  8105. void SetExcludeFlags(uint, uint16);
  8106. void SetGlobalVar(StringHash, const Variant&);
  8107. void SetIncludeFlags(uint, uint16);
  8108. void SetInstanceDefault(bool);
  8109. void SetInterceptNetworkUpdate(const String&, bool);
  8110. void SetMaxAgentRadius(float);
  8111. void SetMaxAgents(uint);
  8112. void SetNavigationMesh(NavigationMesh);
  8113. void SetObjectAnimation(ObjectAnimation);
  8114. void SetObjectAnimationAttr(const ResourceRef&);
  8115. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  8116. void SetTemporary(bool);
  8117. const String& GetCategory() const;
  8118. const String& GetTypeName() const;
  8119. void UnsubscribeFromAllEvents();
  8120. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8121. void UnsubscribeFromEvent(Object, StringHash);
  8122. void UnsubscribeFromEvent(StringHash);
  8123. void UnsubscribeFromEvents(Object);
  8124. const Variant& GetGlobalVar(StringHash) const;
  8125. const VariantMap& GetGlobalVars() const;
  8126. int WeakRefs() const;
  8127. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8128. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8129. void WriteLatestDataUpdate(Serializer&, uint8);
  8130. operator const Animatable() const;
  8131. operator const Component() const;
  8132. operator const Object() const;
  8133. operator const RefCounted() const;
  8134. operator const Serializable() const;
  8135. // Properties:
  8136. bool animationEnabled;
  8137. /* readonly */
  8138. Array<Variant> attributeDefaults;
  8139. /* readonly */
  8140. Array<AttributeInfo> attributeInfos;
  8141. Array<Variant> attributes;
  8142. /* readonly */
  8143. String category;
  8144. bool enabled;
  8145. /* readonly */
  8146. bool enabledEffective;
  8147. Array<Variant> globalVar;
  8148. /* readonly */
  8149. VariantMap globalVars;
  8150. /* readonly */
  8151. uint id;
  8152. float maxAgentRadius;
  8153. uint maxAgents;
  8154. NavigationMesh navMesh;
  8155. /* readonly */
  8156. Node node;
  8157. /* readonly */
  8158. Array<uint> numAreas;
  8159. /* readonly */
  8160. uint numAttributes;
  8161. /* readonly */
  8162. uint numObstacleAvoidanceTypes;
  8163. /* readonly */
  8164. uint numQueryFilterTypes;
  8165. ObjectAnimation objectAnimation;
  8166. /* readonly */
  8167. int refs;
  8168. /* readonly */
  8169. bool replicated;
  8170. bool temporary;
  8171. /* readonly */
  8172. StringHash type;
  8173. /* readonly */
  8174. String typeName;
  8175. /* readonly */
  8176. int weakRefs;
  8177. };
  8178. class CrowdObstacleAvoidanceParams
  8179. {
  8180. public:
  8181. // Methods:
  8182. CrowdObstacleAvoidanceParams& operator=(const CrowdObstacleAvoidanceParams&);
  8183. // Properties:
  8184. uint8 adaptiveDepth;
  8185. uint8 adaptiveDivs;
  8186. uint8 adaptiveRings;
  8187. uint8 gridSize;
  8188. float horizTime;
  8189. float velBias;
  8190. float weightCurVel;
  8191. float weightDesVel;
  8192. float weightSide;
  8193. float weightToi;
  8194. };
  8195. class Cursor
  8196. {
  8197. public:
  8198. Cursor();
  8199. Cursor(const String&in);
  8200. // Methods:
  8201. void AddChild(UIElement);
  8202. void AddTag(const String&);
  8203. void AddTags(Array<String>);
  8204. void AddTags(const String&, int8 = ';');
  8205. void AdjustScissor(IntRect&);
  8206. void AllocateNetworkState();
  8207. operator Animatable() const;
  8208. void ApplyAttributes();
  8209. void ApplyOSCursorShape();
  8210. operator BorderImage() const;
  8211. void BringToFront();
  8212. const Color& GetColor(Corner) const;
  8213. const Color& GetColorAttr() const;
  8214. const Color& GetDerivedColor() const;
  8215. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  8216. void DefineShape(CursorShape, Image, const IntRect&, const IntVector2&);
  8217. void DefineShape(const String&, Image, const IntRect&, const IntVector2&);
  8218. void DisableLayoutUpdate();
  8219. IntVector2 ElementToScreen(const IntVector2&);
  8220. void EnableLayoutUpdate();
  8221. bool FilterAttributes(XMLElement&) const;
  8222. uint FindChild(UIElement) const;
  8223. bool GetAnimationEnabled() const;
  8224. Variant GetAttribute(const String&) const;
  8225. Variant GetAttribute(uint) const;
  8226. ValueAnimation GetAttributeAnimation(const String&) const;
  8227. float GetAttributeAnimationSpeed(const String&) const;
  8228. float GetAttributeAnimationTime(const String&) const;
  8229. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8230. Variant GetAttributeDefault(const String&) const;
  8231. Variant GetAttributeDefault(uint) const;
  8232. BlendMode GetBlendMode() const;
  8233. bool GetBlockEvents() const;
  8234. bool GetBringToBack() const;
  8235. bool GetBringToFront() const;
  8236. UIElement GetChild(const String&, bool = false) const;
  8237. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  8238. UIElement GetChild(uint) const;
  8239. Array<UIElement> GetChildren() const;
  8240. Array<UIElement> GetChildren(bool) const;
  8241. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8242. bool GetClipChildren() const;
  8243. IntRect GetCombinedScreenRect();
  8244. XMLFile GetDefaultStyle(bool = true) const;
  8245. float GetDerivedOpacity() const;
  8246. uint GetDragButtonCombo() const;
  8247. uint GetDragButtonCount() const;
  8248. uint GetDragDropMode() const;
  8249. IntVector2 GetEffectiveMinSize() const;
  8250. UIElement GetElementEventSender() const;
  8251. bool GetEnableAnchor() const;
  8252. VariantMap& GetEventDataMap() const;
  8253. Object GetEventSender() const;
  8254. FocusMode GetFocusMode() const;
  8255. int GetHeight() const;
  8256. HorizontalAlignment GetHorizontalAlignment() const;
  8257. int GetIndent() const;
  8258. int GetIndentSpacing() const;
  8259. int GetIndentWidth() const;
  8260. bool GetInterceptNetworkUpdate(const String&) const;
  8261. int GetLayoutElementMaxSize() const;
  8262. LayoutMode GetLayoutMode() const;
  8263. int GetLayoutSpacing() const;
  8264. Material GetMaterial() const;
  8265. ResourceRef GetMaterialAttr() const;
  8266. int GetMaxHeight() const;
  8267. int GetMaxWidth() const;
  8268. int GetMinHeight() const;
  8269. int GetMinWidth() const;
  8270. uint GetNumAttributes() const;
  8271. uint GetNumChildren(bool = false) const;
  8272. uint GetNumNetworkAttributes() const;
  8273. ObjectAnimation GetObjectAnimation() const;
  8274. ResourceRef GetObjectAnimationAttr() const;
  8275. float GetOpacity() const;
  8276. UIElement GetParent() const;
  8277. int GetPriority() const;
  8278. UIElement GetRoot() const;
  8279. bool GetSortChildren() const;
  8280. Object GetSubsystem(StringHash) const;
  8281. Array<String> GetTags() const;
  8282. Texture GetTexture() const;
  8283. ResourceRef GetTextureAttr() const;
  8284. TraversalMode GetTraversalMode() const;
  8285. StringHash GetType() const;
  8286. bool GetUseDerivedOpacity() const;
  8287. bool GetUseSystemShapes() const;
  8288. VerticalAlignment GetVerticalAlignment() const;
  8289. int GetWidth() const;
  8290. bool HasColorGradient() const;
  8291. bool HasEventHandlers() const;
  8292. bool HasFocus() const;
  8293. bool HasSubscribedToEvent(Object, StringHash) const;
  8294. bool HasSubscribedToEvent(StringHash) const;
  8295. bool HasTag(const String&) const;
  8296. void InsertChild(uint, UIElement);
  8297. const IntRect& GetBorder() const;
  8298. const IntRect& GetClipBorder() const;
  8299. const IntRect& GetImageBorder() const;
  8300. const IntRect& GetImageRect() const;
  8301. const IntRect& GetLayoutBorder() const;
  8302. const IntVector2& GetChildOffset() const;
  8303. const IntVector2& GetDisabledOffset() const;
  8304. const IntVector2& GetHoverOffset() const;
  8305. const IntVector2& GetMaxOffset() const;
  8306. const IntVector2& GetMaxSize() const;
  8307. const IntVector2& GetMinOffset() const;
  8308. const IntVector2& GetMinSize() const;
  8309. const IntVector2& GetPosition() const;
  8310. const IntVector2& GetScreenPosition() const;
  8311. const IntVector2& GetSize() const;
  8312. bool IsChildOf(UIElement) const;
  8313. bool IsEditable() const;
  8314. bool IsElementEventSender() const;
  8315. bool IsEnabled() const;
  8316. bool IsEnabledSelf() const;
  8317. bool IsFixedHeight() const;
  8318. bool IsFixedSize() const;
  8319. bool IsFixedWidth() const;
  8320. bool IsHovering() const;
  8321. bool IsInside(IntVector2, bool);
  8322. bool IsInsideCombined(IntVector2, bool);
  8323. bool IsInstanceOf(StringHash) const;
  8324. bool IsInternal() const;
  8325. bool IsSelected() const;
  8326. bool IsTemporary() const;
  8327. bool IsTiled() const;
  8328. bool IsVisible() const;
  8329. bool IsVisibleEffective() const;
  8330. bool IsWheelHandler() const;
  8331. bool IsWithinScissor(const IntRect&);
  8332. bool Load(Deserializer&);
  8333. UIElement LoadChildXML(XMLFile, XMLFile);
  8334. UIElement LoadChildXML(const XMLElement&, XMLFile);
  8335. bool LoadJSON(const JSONValue&);
  8336. bool LoadXML(Deserializer&);
  8337. bool LoadXML(File);
  8338. bool LoadXML(VectorBuffer&);
  8339. bool LoadXML(XMLFile, XMLFile);
  8340. bool LoadXML(const XMLElement&);
  8341. bool LoadXML(const XMLElement&, XMLFile);
  8342. void MarkNetworkUpdate();
  8343. operator Object() const;
  8344. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  8345. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  8346. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  8347. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8348. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8349. bool OnDragDropFinish(UIElement);
  8350. bool OnDragDropTest(UIElement);
  8351. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8352. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8353. void OnEvent(Object, StringHash, VariantMap&);
  8354. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8355. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8356. void OnIndentSet();
  8357. void OnKey(uint, uint, uint);
  8358. void OnPositionSet(const IntVector2&);
  8359. void OnResize(const IntVector2&, const IntVector2&);
  8360. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8361. void OnSetEditable();
  8362. void OnTextInput(const String&);
  8363. void OnWheel(int, uint, uint);
  8364. bool ReadDeltaUpdate(Deserializer&);
  8365. bool ReadLatestDataUpdate(Deserializer&);
  8366. operator RefCounted() const;
  8367. int Refs() const;
  8368. void Remove();
  8369. void RemoveAllChildren();
  8370. void RemoveAllTags();
  8371. void RemoveAttributeAnimation(const String&);
  8372. void RemoveChild(UIElement, uint = 0);
  8373. void RemoveChild(uint);
  8374. void RemoveChildAtIndex(uint);
  8375. void RemoveInstanceDefault();
  8376. void RemoveObjectAnimation();
  8377. bool RemoveTag(const String&);
  8378. void ResetDeepEnabled();
  8379. void ResetToDefault();
  8380. bool Save(Serializer&) const;
  8381. bool SaveDefaultAttributes() const;
  8382. bool SaveJSON(JSONValue&) const;
  8383. bool SaveXML(File, const String& indentation = "\t");
  8384. bool SaveXML(Serializer&, const String& = "\t") const;
  8385. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  8386. bool SaveXML(XMLElement&) const;
  8387. IntVector2 ScreenToElement(const IntVector2&);
  8388. void SendEvent(StringHash);
  8389. void SendEvent(StringHash, VariantMap&);
  8390. operator Serializable() const;
  8391. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8392. void SetAnimationEnabled(bool);
  8393. void SetAnimationTime(float);
  8394. bool SetAttribute(const String&, const Variant&);
  8395. bool SetAttribute(uint, const Variant&);
  8396. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8397. void SetAttributeAnimationSpeed(const String&, float);
  8398. void SetAttributeAnimationTime(const String&, float);
  8399. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8400. void SetBlendMode(BlendMode);
  8401. void SetBlockEvents(bool);
  8402. void SetBorder(const IntRect&);
  8403. void SetBringToBack(bool);
  8404. void SetBringToFront(bool);
  8405. void SetChildOffset(const IntVector2&);
  8406. void SetClipBorder(const IntRect&);
  8407. void SetClipChildren(bool);
  8408. void SetColor(Corner, const Color&);
  8409. void SetColor(const Color&);
  8410. void SetDeepEnabled(bool);
  8411. void SetDefaultStyle(XMLFile);
  8412. void SetDisabledOffset(const IntVector2&);
  8413. void SetDisabledOffset(int, int);
  8414. void SetDragDropMode(uint);
  8415. void SetEditable(bool);
  8416. void SetElementEventSender(bool);
  8417. void SetEnableAnchor(bool);
  8418. void SetEnabled(bool);
  8419. void SetEnabledRecursive(bool);
  8420. void SetFixedHeight(int);
  8421. void SetFixedSize(const IntVector2&);
  8422. void SetFixedSize(int, int);
  8423. void SetFixedWidth(int);
  8424. void SetFocus(bool);
  8425. void SetFocusMode(FocusMode);
  8426. void SetFullImageRect();
  8427. void SetGlobalVar(StringHash, const Variant&);
  8428. void SetHeight(int);
  8429. void SetHorizontalAlignment(HorizontalAlignment);
  8430. void SetHoverOffset(const IntVector2&);
  8431. void SetHoverOffset(int, int);
  8432. void SetHovering(bool);
  8433. void SetImageBorder(const IntRect&);
  8434. void SetImageRect(const IntRect&);
  8435. void SetIndent(int);
  8436. void SetIndentSpacing(int);
  8437. void SetInstanceDefault(bool);
  8438. void SetInterceptNetworkUpdate(const String&, bool);
  8439. void SetInternal(bool);
  8440. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  8441. void SetLayoutBorder(const IntRect&);
  8442. void SetLayoutFlexScale(const Vector2&);
  8443. void SetLayoutMode(LayoutMode);
  8444. void SetLayoutSpacing(int);
  8445. void SetMaterial(Material);
  8446. void SetMaterialAttr(const ResourceRef&);
  8447. void SetMaxAnchor(const Vector2&);
  8448. void SetMaxAnchor(float, float);
  8449. void SetMaxHeight(int);
  8450. void SetMaxOffset(const IntVector2&);
  8451. void SetMaxSize(const IntVector2&);
  8452. void SetMaxSize(int, int);
  8453. void SetMaxWidth(int);
  8454. void SetMinAnchor(const Vector2&);
  8455. void SetMinAnchor(float, float);
  8456. void SetMinHeight(int);
  8457. void SetMinOffset(const IntVector2&);
  8458. void SetMinSize(const IntVector2&);
  8459. void SetMinSize(int, int);
  8460. void SetMinWidth(int);
  8461. void SetName(const String&);
  8462. void SetObjectAnimation(ObjectAnimation);
  8463. void SetObjectAnimationAttr(const ResourceRef&);
  8464. void SetOpacity(float);
  8465. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8466. void SetPivot(const Vector2&);
  8467. void SetPivot(float, float);
  8468. void SetPosition(const IntVector2&);
  8469. void SetPosition(int, int);
  8470. void SetPriority(int);
  8471. void SetRenderTexture(Texture2D);
  8472. void SetSelected(bool);
  8473. void SetShape(CursorShape);
  8474. void SetShape(const String&);
  8475. void SetSize(const IntVector2&);
  8476. void SetSize(int, int);
  8477. void SetSortChildren(bool);
  8478. bool SetStyle(const String&, XMLFile = null);
  8479. bool SetStyle(const XMLElement&);
  8480. bool SetStyleAuto(XMLFile = null);
  8481. void SetTags(Array<String>);
  8482. void SetTemporary(bool);
  8483. void SetTexture(Texture);
  8484. void SetTextureAttr(const ResourceRef&);
  8485. void SetTiled(bool);
  8486. void SetTraversalMode(TraversalMode);
  8487. void SetUseDerivedOpacity(bool);
  8488. void SetUseSystemShapes(bool);
  8489. void SetVar(StringHash, const Variant&);
  8490. void SetVerticalAlignment(VerticalAlignment);
  8491. void SetVisible(bool);
  8492. void SetWidth(int);
  8493. void SortChildren();
  8494. const String& GetAppliedStyle() const;
  8495. const String& GetCategory() const;
  8496. const String& GetName() const;
  8497. const String& GetShape() const;
  8498. const String& GetTypeName() const;
  8499. operator UIElement() const;
  8500. void UnsubscribeFromAllEvents();
  8501. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8502. void UnsubscribeFromEvent(Object, StringHash);
  8503. void UnsubscribeFromEvent(StringHash);
  8504. void UnsubscribeFromEvents(Object);
  8505. void Update(float);
  8506. void UpdateLayout();
  8507. const Variant& GetGlobalVar(StringHash) const;
  8508. const Variant& GetVar(const StringHash&) const;
  8509. const VariantMap& GetGlobalVars() const;
  8510. const VariantMap& GetVars() const;
  8511. const Vector2& GetLayoutFlexScale() const;
  8512. const Vector2& GetMaxAnchor() const;
  8513. const Vector2& GetMinAnchor() const;
  8514. const Vector2& GetPivot() const;
  8515. int WeakRefs() const;
  8516. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8517. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8518. void WriteLatestDataUpdate(Serializer&, uint8);
  8519. operator const Animatable() const;
  8520. operator const BorderImage() const;
  8521. operator const Object() const;
  8522. operator const RefCounted() const;
  8523. operator const Serializable() const;
  8524. operator const UIElement() const;
  8525. // Properties:
  8526. bool animationEnabled;
  8527. /* readonly */
  8528. Array<Variant> attributeDefaults;
  8529. /* readonly */
  8530. Array<AttributeInfo> attributeInfos;
  8531. Array<Variant> attributes;
  8532. BlendMode blendMode;
  8533. IntRect border;
  8534. bool bringToBack;
  8535. bool bringToFront;
  8536. /* readonly */
  8537. String category;
  8538. /* readonly */
  8539. IntVector2 childOffset;
  8540. /* readonly */
  8541. Array<UIElement> children;
  8542. IntRect clipBorder;
  8543. bool clipChildren;
  8544. /* writeonly */
  8545. Color color;
  8546. /* readonly */
  8547. bool colorGradient;
  8548. Array<Color> colors;
  8549. /* readonly */
  8550. IntRect combinedScreenRect;
  8551. XMLFile defaultStyle;
  8552. /* readonly */
  8553. float derivedOpacity;
  8554. IntVector2 disabledOffset;
  8555. /* readonly */
  8556. uint dragButtonCombo;
  8557. /* readonly */
  8558. uint dragButtonCount;
  8559. uint dragDropMode;
  8560. bool editable;
  8561. bool elementEventSender;
  8562. bool enableAnchor;
  8563. bool enabled;
  8564. /* readonly */
  8565. bool enabledSelf;
  8566. /* readonly */
  8567. bool fixedHeight;
  8568. /* readonly */
  8569. bool fixedSize;
  8570. /* readonly */
  8571. bool fixedWidth;
  8572. bool focus;
  8573. FocusMode focusMode;
  8574. Array<Variant> globalVar;
  8575. /* readonly */
  8576. VariantMap globalVars;
  8577. int height;
  8578. HorizontalAlignment horizontalAlignment;
  8579. IntVector2 hoverOffset;
  8580. /* readonly */
  8581. bool hovering;
  8582. IntRect imageBorder;
  8583. IntRect imageRect;
  8584. int indent;
  8585. int indentSpacing;
  8586. /* readonly */
  8587. int indentWidth;
  8588. bool internal;
  8589. IntRect layoutBorder;
  8590. Vector2 layoutFlexScale;
  8591. LayoutMode layoutMode;
  8592. int layoutSpacing;
  8593. Material material;
  8594. Vector2 maxAnchor;
  8595. int maxHeight;
  8596. IntVector2 maxOffset;
  8597. IntVector2 maxSize;
  8598. int maxWidth;
  8599. Vector2 minAnchor;
  8600. int minHeight;
  8601. IntVector2 minOffset;
  8602. IntVector2 minSize;
  8603. int minWidth;
  8604. String name;
  8605. /* readonly */
  8606. uint numAllChildren;
  8607. /* readonly */
  8608. uint numAttributes;
  8609. /* readonly */
  8610. uint numChildren;
  8611. ObjectAnimation objectAnimation;
  8612. float opacity;
  8613. UIElement parent;
  8614. Vector2 pivot;
  8615. IntVector2 position;
  8616. int priority;
  8617. /* readonly */
  8618. int refs;
  8619. /* readonly */
  8620. UIElement root;
  8621. /* readonly */
  8622. IntVector2 screenPosition;
  8623. bool selected;
  8624. String shape;
  8625. IntVector2 size;
  8626. bool sortChildren;
  8627. String style;
  8628. /* readonly */
  8629. Array<String> tags;
  8630. bool temporary;
  8631. Texture texture;
  8632. bool tiled;
  8633. TraversalMode traversalMode;
  8634. /* readonly */
  8635. StringHash type;
  8636. /* readonly */
  8637. String typeName;
  8638. bool useDerivedOpacity;
  8639. bool useSystemShapes;
  8640. /* readonly */
  8641. VariantMap vars;
  8642. VerticalAlignment verticalAlignment;
  8643. bool visible;
  8644. /* readonly */
  8645. bool visibleEffective;
  8646. /* readonly */
  8647. int weakRefs;
  8648. int width;
  8649. };
  8650. class CursorShapeInfo
  8651. {
  8652. public:
  8653. ~CursorShapeInfo();
  8654. CursorShapeInfo();
  8655. CursorShapeInfo(int);
  8656. // Methods:
  8657. CursorShapeInfo& operator=(const CursorShapeInfo&);
  8658. // Properties:
  8659. IntVector2 hotSpot;
  8660. IntRect imageRect;
  8661. int systemCursor;
  8662. bool systemDefined;
  8663. };
  8664. class CustomGeometry
  8665. {
  8666. public:
  8667. CustomGeometry();
  8668. // Methods:
  8669. void AddLight(Light);
  8670. void AddVertexLight(Light);
  8671. void AllocateNetworkState();
  8672. operator Animatable() const;
  8673. void ApplyAttributes();
  8674. void BeginGeometry(uint, PrimitiveType);
  8675. const BoundingBox& GetBoundingBox() const;
  8676. const BoundingBox& GetWorldBoundingBox();
  8677. void CleanupConnection(Connection);
  8678. void Clear();
  8679. void Commit();
  8680. operator Component() const;
  8681. void DefineColor(const Color&);
  8682. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  8683. void DefineNormal(const Vector3&);
  8684. void DefineTangent(const Vector4&);
  8685. void DefineTexCoord(const Vector2&);
  8686. void DefineVertex(const Vector3&);
  8687. void DrawDebugGeometry(DebugRenderer, bool);
  8688. bool DrawOcclusion(OcclusionBuffer);
  8689. operator Drawable() const;
  8690. bool GetAnimationEnabled() const;
  8691. Variant GetAttribute(const String&) const;
  8692. Variant GetAttribute(uint) const;
  8693. ValueAnimation GetAttributeAnimation(const String&) const;
  8694. float GetAttributeAnimationSpeed(const String&) const;
  8695. float GetAttributeAnimationTime(const String&) const;
  8696. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8697. Variant GetAttributeDefault(const String&) const;
  8698. Variant GetAttributeDefault(uint) const;
  8699. bool GetBlockEvents() const;
  8700. bool GetCastShadows() const;
  8701. Component GetComponent(StringHash) const;
  8702. float GetDistance() const;
  8703. float GetDrawDistance() const;
  8704. uint8 GetDrawableFlags() const;
  8705. VariantMap& GetEventDataMap() const;
  8706. Object GetEventSender() const;
  8707. Light GetFirstLight() const;
  8708. uint GetID() const;
  8709. bool GetInterceptNetworkUpdate(const String&) const;
  8710. uint GetLightMask() const;
  8711. Array<Light> GetLights() const;
  8712. float GetLodBias() const;
  8713. float GetLodDistance() const;
  8714. Geometry GetLodGeometry(uint, uint);
  8715. Material GetMaterial(uint = 0) const;
  8716. uint GetMaxLights() const;
  8717. float GetMaxZ() const;
  8718. float GetMinZ() const;
  8719. Node GetNode() const;
  8720. uint GetNumAttributes() const;
  8721. uint GetNumGeometries() const;
  8722. uint GetNumNetworkAttributes() const;
  8723. uint GetNumOccluderTriangles();
  8724. uint GetNumVertices(uint) const;
  8725. ObjectAnimation GetObjectAnimation() const;
  8726. ResourceRef GetObjectAnimationAttr() const;
  8727. Scene GetScene() const;
  8728. float GetShadowDistance() const;
  8729. uint GetShadowMask() const;
  8730. float GetSortValue() const;
  8731. Object GetSubsystem(StringHash) const;
  8732. StringHash GetType() const;
  8733. UpdateGeometryType GetUpdateGeometryType();
  8734. CustomGeometryVertex GetVertex(uint, uint);
  8735. Array<Light> GetVertexLights() const;
  8736. uint GetViewMask() const;
  8737. Zone GetZone() const;
  8738. uint GetZoneMask() const;
  8739. bool HasBasePass(uint) const;
  8740. bool HasEventHandlers() const;
  8741. bool HasSubscribedToEvent(Object, StringHash) const;
  8742. bool HasSubscribedToEvent(StringHash) const;
  8743. bool IsDynamic() const;
  8744. bool IsEnabled() const;
  8745. bool IsEnabledEffective() const;
  8746. bool IsInView() const;
  8747. bool IsInView(Camera) const;
  8748. bool IsInView(const FrameInfo&, bool = false) const;
  8749. bool IsInstanceOf(StringHash) const;
  8750. bool IsOccludee() const;
  8751. bool IsOccluder() const;
  8752. bool IsReplicated() const;
  8753. bool IsTemporary() const;
  8754. bool IsZoneDirty() const;
  8755. void LimitLights();
  8756. void LimitVertexLights(bool);
  8757. bool Load(Deserializer&);
  8758. bool LoadJSON(const JSONValue&);
  8759. bool LoadXML(const XMLElement&);
  8760. void MarkForUpdate();
  8761. void MarkInView(const FrameInfo&);
  8762. void MarkInView(uint);
  8763. void MarkNetworkUpdate();
  8764. operator Object() const;
  8765. void OnEvent(Object, StringHash, VariantMap&);
  8766. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8767. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8768. void OnSetEnabled();
  8769. void PrepareNetworkUpdate();
  8770. bool ReadDeltaUpdate(Deserializer&);
  8771. bool ReadLatestDataUpdate(Deserializer&);
  8772. operator RefCounted() const;
  8773. int Refs() const;
  8774. void Remove();
  8775. void RemoveAttributeAnimation(const String&);
  8776. void RemoveInstanceDefault();
  8777. void RemoveObjectAnimation();
  8778. void ResetToDefault();
  8779. const ResourceRefList& GetMaterialsAttr() const;
  8780. bool Save(Serializer&) const;
  8781. bool SaveDefaultAttributes() const;
  8782. bool SaveJSON(JSONValue&) const;
  8783. bool SaveXML(XMLElement&) const;
  8784. void SendEvent(StringHash);
  8785. void SendEvent(StringHash, VariantMap&);
  8786. operator Serializable() const;
  8787. void SetAnimationEnabled(bool);
  8788. void SetAnimationTime(float);
  8789. bool SetAttribute(const String&, const Variant&);
  8790. bool SetAttribute(uint, const Variant&);
  8791. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8792. void SetAttributeAnimationSpeed(const String&, float);
  8793. void SetAttributeAnimationTime(const String&, float);
  8794. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8795. void SetBasePass(uint);
  8796. void SetBlockEvents(bool);
  8797. void SetCastShadows(bool);
  8798. void SetDrawDistance(float);
  8799. void SetDynamic(bool);
  8800. void SetEnabled(bool);
  8801. void SetGlobalVar(StringHash, const Variant&);
  8802. void SetInstanceDefault(bool);
  8803. void SetInterceptNetworkUpdate(const String&, bool);
  8804. void SetLightMask(uint);
  8805. void SetLodBias(float);
  8806. void SetMaterial(Material);
  8807. bool SetMaterial(uint, Material);
  8808. void SetMaterialsAttr(const ResourceRefList&);
  8809. void SetMaxLights(uint);
  8810. void SetMinMaxZ(float, float);
  8811. void SetNumGeometries(uint);
  8812. void SetObjectAnimation(ObjectAnimation);
  8813. void SetObjectAnimationAttr(const ResourceRef&);
  8814. void SetOccludee(bool);
  8815. void SetOccluder(bool);
  8816. void SetShadowDistance(float);
  8817. void SetShadowMask(uint);
  8818. void SetSortValue(float);
  8819. void SetTemporary(bool);
  8820. void SetViewMask(uint);
  8821. void SetZone(Zone, bool = false);
  8822. void SetZoneMask(uint);
  8823. const String& GetCategory() const;
  8824. const String& GetTypeName() const;
  8825. void UnsubscribeFromAllEvents();
  8826. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8827. void UnsubscribeFromEvent(Object, StringHash);
  8828. void UnsubscribeFromEvent(StringHash);
  8829. void UnsubscribeFromEvents(Object);
  8830. void Update(const FrameInfo&);
  8831. void UpdateBatches(const FrameInfo&);
  8832. void UpdateGeometry(const FrameInfo&);
  8833. const Variant& GetGlobalVar(StringHash) const;
  8834. const VariantMap& GetGlobalVars() const;
  8835. int WeakRefs() const;
  8836. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8837. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8838. void WriteLatestDataUpdate(Serializer&, uint8);
  8839. operator const Animatable() const;
  8840. operator const Component() const;
  8841. operator const Drawable() const;
  8842. operator const Object() const;
  8843. operator const RefCounted() const;
  8844. operator const Serializable() const;
  8845. // Properties:
  8846. bool animationEnabled;
  8847. /* readonly */
  8848. Array<Variant> attributeDefaults;
  8849. /* readonly */
  8850. Array<AttributeInfo> attributeInfos;
  8851. Array<Variant> attributes;
  8852. /* readonly */
  8853. BoundingBox boundingBox;
  8854. bool castShadows;
  8855. /* readonly */
  8856. String category;
  8857. float drawDistance;
  8858. bool dynamic;
  8859. bool enabled;
  8860. /* readonly */
  8861. bool enabledEffective;
  8862. Array<Variant> globalVar;
  8863. /* readonly */
  8864. VariantMap globalVars;
  8865. /* readonly */
  8866. uint id;
  8867. /* readonly */
  8868. bool inView;
  8869. uint lightMask;
  8870. float lodBias;
  8871. /* writeonly */
  8872. Material material;
  8873. Array<Material> materials;
  8874. uint maxLights;
  8875. /* readonly */
  8876. Node node;
  8877. /* readonly */
  8878. uint numAttributes;
  8879. uint numGeometries;
  8880. /* readonly */
  8881. Array<uint> numVertices;
  8882. ObjectAnimation objectAnimation;
  8883. bool occludee;
  8884. bool occluder;
  8885. /* readonly */
  8886. int refs;
  8887. /* readonly */
  8888. bool replicated;
  8889. float shadowDistance;
  8890. uint shadowMask;
  8891. bool temporary;
  8892. /* readonly */
  8893. StringHash type;
  8894. /* readonly */
  8895. String typeName;
  8896. uint viewMask;
  8897. /* readonly */
  8898. int weakRefs;
  8899. /* readonly */
  8900. BoundingBox worldBoundingBox;
  8901. /* readonly */
  8902. Zone zone;
  8903. uint zoneMask;
  8904. };
  8905. class CustomGeometryVertex
  8906. {
  8907. public:
  8908. // Methods:
  8909. CustomGeometryVertex& operator=(const CustomGeometryVertex&);
  8910. // Properties:
  8911. uint color;
  8912. Vector3 normal;
  8913. Vector3 position;
  8914. Vector4 tangent;
  8915. Vector2 texCoord;
  8916. };
  8917. class Database
  8918. {
  8919. public:
  8920. Database();
  8921. // Methods:
  8922. DbConnection Connect(const String&);
  8923. void Disconnect(DbConnection);
  8924. bool GetBlockEvents() const;
  8925. VariantMap& GetEventDataMap() const;
  8926. Object GetEventSender() const;
  8927. uint GetPoolSize() const;
  8928. Object GetSubsystem(StringHash) const;
  8929. StringHash GetType() const;
  8930. bool HasEventHandlers() const;
  8931. bool HasSubscribedToEvent(Object, StringHash) const;
  8932. bool HasSubscribedToEvent(StringHash) const;
  8933. bool IsInstanceOf(StringHash) const;
  8934. bool IsPooling() const;
  8935. operator Object() const;
  8936. void OnEvent(Object, StringHash, VariantMap&);
  8937. operator RefCounted() const;
  8938. int Refs() const;
  8939. void SendEvent(StringHash);
  8940. void SendEvent(StringHash, VariantMap&);
  8941. void SetBlockEvents(bool);
  8942. void SetGlobalVar(StringHash, const Variant&);
  8943. void SetPoolSize(uint);
  8944. const String& GetCategory() const;
  8945. const String& GetTypeName() const;
  8946. void UnsubscribeFromAllEvents();
  8947. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8948. void UnsubscribeFromEvent(Object, StringHash);
  8949. void UnsubscribeFromEvent(StringHash);
  8950. void UnsubscribeFromEvents(Object);
  8951. const Variant& GetGlobalVar(StringHash) const;
  8952. const VariantMap& GetGlobalVars() const;
  8953. int WeakRefs() const;
  8954. operator const Object() const;
  8955. operator const RefCounted() const;
  8956. // Properties:
  8957. /* readonly */
  8958. String category;
  8959. Array<Variant> globalVar;
  8960. /* readonly */
  8961. VariantMap globalVars;
  8962. uint poolSize;
  8963. /* readonly */
  8964. bool pooling;
  8965. /* readonly */
  8966. int refs;
  8967. /* readonly */
  8968. StringHash type;
  8969. /* readonly */
  8970. String typeName;
  8971. /* readonly */
  8972. int weakRefs;
  8973. };
  8974. class DbConnection
  8975. {
  8976. public:
  8977. // Methods:
  8978. DbResult Execute(const String&, bool useCursorEvent = false);
  8979. bool GetBlockEvents() const;
  8980. VariantMap& GetEventDataMap() const;
  8981. Object GetEventSender() const;
  8982. Object GetSubsystem(StringHash) const;
  8983. StringHash GetType() const;
  8984. bool HasEventHandlers() const;
  8985. bool HasSubscribedToEvent(Object, StringHash) const;
  8986. bool HasSubscribedToEvent(StringHash) const;
  8987. bool IsInstanceOf(StringHash) const;
  8988. void OnEvent(Object, StringHash, VariantMap&);
  8989. int Refs() const;
  8990. void SendEvent(StringHash);
  8991. void SendEvent(StringHash, VariantMap&);
  8992. void SetBlockEvents(bool);
  8993. void SetGlobalVar(StringHash, const Variant&);
  8994. const String& GetCategory() const;
  8995. const String& GetTypeName() const;
  8996. void UnsubscribeFromAllEvents();
  8997. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8998. void UnsubscribeFromEvent(Object, StringHash);
  8999. void UnsubscribeFromEvent(StringHash);
  9000. void UnsubscribeFromEvents(Object);
  9001. const Variant& GetGlobalVar(StringHash) const;
  9002. const VariantMap& GetGlobalVars() const;
  9003. int WeakRefs() const;
  9004. // Properties:
  9005. /* readonly */
  9006. String category;
  9007. /* readonly */
  9008. bool connected;
  9009. /* readonly */
  9010. String connectionString;
  9011. Array<Variant> globalVar;
  9012. /* readonly */
  9013. VariantMap globalVars;
  9014. /* readonly */
  9015. int refs;
  9016. /* readonly */
  9017. StringHash type;
  9018. /* readonly */
  9019. String typeName;
  9020. /* readonly */
  9021. int weakRefs;
  9022. };
  9023. class DbResult
  9024. {
  9025. public:
  9026. ~DbResult();
  9027. DbResult();
  9028. DbResult(const DbResult&in);
  9029. // Methods:
  9030. DbResult& operator=(const DbResult&);
  9031. // Properties:
  9032. /* readonly */
  9033. Array<String> columns;
  9034. /* readonly */
  9035. int64 numAffectedRows;
  9036. /* readonly */
  9037. uint numColumns;
  9038. /* readonly */
  9039. uint numRows;
  9040. /* readonly */
  9041. Array<Array<Variant>> row;
  9042. };
  9043. class DebugHud
  9044. {
  9045. public:
  9046. DebugHud();
  9047. // Methods:
  9048. void ClearAppStats();
  9049. bool GetBlockEvents() const;
  9050. XMLFile GetDefaultStyle() const;
  9051. VariantMap& GetEventDataMap() const;
  9052. Object GetEventSender() const;
  9053. Text GetMemoryText() const;
  9054. uint GetMode() const;
  9055. Text GetModeText() const;
  9056. float GetProfilerInterval() const;
  9057. uint GetProfilerMaxDepth() const;
  9058. Text GetProfilerText() const;
  9059. Text GetStatsText() const;
  9060. Object GetSubsystem(StringHash) const;
  9061. StringHash GetType() const;
  9062. bool GetUseRendererStats() const;
  9063. bool HasEventHandlers() const;
  9064. bool HasSubscribedToEvent(Object, StringHash) const;
  9065. bool HasSubscribedToEvent(StringHash) const;
  9066. bool IsInstanceOf(StringHash) const;
  9067. operator Object() const;
  9068. void OnEvent(Object, StringHash, VariantMap&);
  9069. operator RefCounted() const;
  9070. int Refs() const;
  9071. bool ResetAppStats(const String&);
  9072. void SendEvent(StringHash);
  9073. void SendEvent(StringHash, VariantMap&);
  9074. void SetAppStats(const String&, const String&);
  9075. void SetAppStats(const String&, const Variant&);
  9076. void SetBlockEvents(bool);
  9077. void SetDefaultStyle(XMLFile);
  9078. void SetGlobalVar(StringHash, const Variant&);
  9079. void SetMode(uint);
  9080. void SetProfilerInterval(float);
  9081. void SetProfilerMaxDepth(uint);
  9082. void SetUseRendererStats(bool);
  9083. const String& GetCategory() const;
  9084. const String& GetTypeName() const;
  9085. void Toggle(uint);
  9086. void ToggleAll();
  9087. void UnsubscribeFromAllEvents();
  9088. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9089. void UnsubscribeFromEvent(Object, StringHash);
  9090. void UnsubscribeFromEvent(StringHash);
  9091. void UnsubscribeFromEvents(Object);
  9092. void Update();
  9093. const Variant& GetGlobalVar(StringHash) const;
  9094. const VariantMap& GetGlobalVars() const;
  9095. int WeakRefs() const;
  9096. operator const Object() const;
  9097. operator const RefCounted() const;
  9098. // Properties:
  9099. /* readonly */
  9100. String category;
  9101. XMLFile defaultStyle;
  9102. Array<Variant> globalVar;
  9103. /* readonly */
  9104. VariantMap globalVars;
  9105. /* readonly */
  9106. Text memoryText;
  9107. uint mode;
  9108. /* readonly */
  9109. Text modeText;
  9110. float profilerInterval;
  9111. uint profilerMaxDepth;
  9112. /* readonly */
  9113. Text profilerText;
  9114. /* readonly */
  9115. int refs;
  9116. /* readonly */
  9117. Text statsText;
  9118. /* readonly */
  9119. StringHash type;
  9120. /* readonly */
  9121. String typeName;
  9122. bool useRendererStats;
  9123. /* readonly */
  9124. int weakRefs;
  9125. };
  9126. class DebugLine
  9127. {
  9128. public:
  9129. ~DebugLine();
  9130. DebugLine();
  9131. DebugLine(const Vector3&in, const Vector3&in, uint);
  9132. // Methods:
  9133. DebugLine& operator=(const DebugLine&);
  9134. // Properties:
  9135. uint color;
  9136. Vector3 end;
  9137. Vector3 start;
  9138. };
  9139. class DebugRenderer
  9140. {
  9141. public:
  9142. DebugRenderer();
  9143. // Methods:
  9144. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  9145. void AddBoundingBox(const BoundingBox&, const Matrix3x4&, const Color&, bool = true, bool = false);
  9146. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  9147. void AddCross(const Vector3&, float, const Color&, bool = true);
  9148. void AddCylinder(const Vector3&, float, float, const Color&, bool = true);
  9149. void AddFrustum(const Frustum&, const Color&, bool = true);
  9150. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  9151. void AddLine(const Vector3&, const Vector3&, uint, bool = true);
  9152. void AddNode(Node, float = 1.0f, bool = true);
  9153. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  9154. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, uint, bool = true);
  9155. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  9156. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  9157. void AddSkeleton(const Skeleton&, const Color&, bool = true);
  9158. void AddSphere(const Sphere&, const Color&, bool = true);
  9159. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  9160. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  9161. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, uint, bool = true);
  9162. void AllocateNetworkState();
  9163. operator Animatable() const;
  9164. void ApplyAttributes();
  9165. void CleanupConnection(Connection);
  9166. operator Component() const;
  9167. void DrawDebugGeometry(DebugRenderer, bool);
  9168. const Frustum& GetFrustum() const;
  9169. bool GetAnimationEnabled() const;
  9170. Variant GetAttribute(const String&) const;
  9171. Variant GetAttribute(uint) const;
  9172. ValueAnimation GetAttributeAnimation(const String&) const;
  9173. float GetAttributeAnimationSpeed(const String&) const;
  9174. float GetAttributeAnimationTime(const String&) const;
  9175. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9176. Variant GetAttributeDefault(const String&) const;
  9177. Variant GetAttributeDefault(uint) const;
  9178. bool GetBlockEvents() const;
  9179. Component GetComponent(StringHash) const;
  9180. VariantMap& GetEventDataMap() const;
  9181. Object GetEventSender() const;
  9182. uint GetID() const;
  9183. bool GetInterceptNetworkUpdate(const String&) const;
  9184. bool GetLineAntiAlias() const;
  9185. Node GetNode() const;
  9186. uint GetNumAttributes() const;
  9187. uint GetNumNetworkAttributes() const;
  9188. ObjectAnimation GetObjectAnimation() const;
  9189. ResourceRef GetObjectAnimationAttr() const;
  9190. Scene GetScene() const;
  9191. Object GetSubsystem(StringHash) const;
  9192. StringHash GetType() const;
  9193. bool HasContent() const;
  9194. bool HasEventHandlers() const;
  9195. bool HasSubscribedToEvent(Object, StringHash) const;
  9196. bool HasSubscribedToEvent(StringHash) const;
  9197. bool IsEnabled() const;
  9198. bool IsEnabledEffective() const;
  9199. bool IsInside(const BoundingBox&) const;
  9200. bool IsInstanceOf(StringHash) const;
  9201. bool IsReplicated() const;
  9202. bool IsTemporary() const;
  9203. bool Load(Deserializer&);
  9204. bool LoadJSON(const JSONValue&);
  9205. bool LoadXML(const XMLElement&);
  9206. void MarkNetworkUpdate();
  9207. const Matrix3x4& GetView() const;
  9208. const Matrix4& GetProjection() const;
  9209. operator Object() const;
  9210. void OnEvent(Object, StringHash, VariantMap&);
  9211. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9212. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9213. void OnSetEnabled();
  9214. void PrepareNetworkUpdate();
  9215. bool ReadDeltaUpdate(Deserializer&);
  9216. bool ReadLatestDataUpdate(Deserializer&);
  9217. operator RefCounted() const;
  9218. int Refs() const;
  9219. void Remove();
  9220. void RemoveAttributeAnimation(const String&);
  9221. void RemoveInstanceDefault();
  9222. void RemoveObjectAnimation();
  9223. void Render();
  9224. void ResetToDefault();
  9225. bool Save(Serializer&) const;
  9226. bool SaveDefaultAttributes() const;
  9227. bool SaveJSON(JSONValue&) const;
  9228. bool SaveXML(XMLElement&) const;
  9229. void SendEvent(StringHash);
  9230. void SendEvent(StringHash, VariantMap&);
  9231. operator Serializable() const;
  9232. void SetAnimationEnabled(bool);
  9233. void SetAnimationTime(float);
  9234. bool SetAttribute(const String&, const Variant&);
  9235. bool SetAttribute(uint, const Variant&);
  9236. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9237. void SetAttributeAnimationSpeed(const String&, float);
  9238. void SetAttributeAnimationTime(const String&, float);
  9239. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9240. void SetBlockEvents(bool);
  9241. void SetEnabled(bool);
  9242. void SetGlobalVar(StringHash, const Variant&);
  9243. void SetInstanceDefault(bool);
  9244. void SetInterceptNetworkUpdate(const String&, bool);
  9245. void SetLineAntiAlias(bool);
  9246. void SetObjectAnimation(ObjectAnimation);
  9247. void SetObjectAnimationAttr(const ResourceRef&);
  9248. void SetTemporary(bool);
  9249. void SetView(Camera);
  9250. const String& GetCategory() const;
  9251. const String& GetTypeName() const;
  9252. void UnsubscribeFromAllEvents();
  9253. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9254. void UnsubscribeFromEvent(Object, StringHash);
  9255. void UnsubscribeFromEvent(StringHash);
  9256. void UnsubscribeFromEvents(Object);
  9257. const Variant& GetGlobalVar(StringHash) const;
  9258. const VariantMap& GetGlobalVars() const;
  9259. int WeakRefs() const;
  9260. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  9261. void WriteInitialDeltaUpdate(Serializer&, uint8);
  9262. void WriteLatestDataUpdate(Serializer&, uint8);
  9263. operator const Animatable() const;
  9264. operator const Component() const;
  9265. operator const Object() const;
  9266. operator const RefCounted() const;
  9267. operator const Serializable() const;
  9268. // Properties:
  9269. bool animationEnabled;
  9270. /* readonly */
  9271. Array<Variant> attributeDefaults;
  9272. /* readonly */
  9273. Array<AttributeInfo> attributeInfos;
  9274. Array<Variant> attributes;
  9275. /* readonly */
  9276. String category;
  9277. bool enabled;
  9278. /* readonly */
  9279. bool enabledEffective;
  9280. Array<Variant> globalVar;
  9281. /* readonly */
  9282. VariantMap globalVars;
  9283. /* readonly */
  9284. uint id;
  9285. bool lineAntiAlias;
  9286. /* readonly */
  9287. Node node;
  9288. /* readonly */
  9289. uint numAttributes;
  9290. ObjectAnimation objectAnimation;
  9291. /* readonly */
  9292. int refs;
  9293. /* readonly */
  9294. bool replicated;
  9295. bool temporary;
  9296. /* readonly */
  9297. StringHash type;
  9298. /* readonly */
  9299. String typeName;
  9300. /* readonly */
  9301. int weakRefs;
  9302. };
  9303. class DebugTriangle
  9304. {
  9305. public:
  9306. ~DebugTriangle();
  9307. DebugTriangle();
  9308. DebugTriangle(const Vector3&in, const Vector3&in, const Vector3&in, uint);
  9309. // Methods:
  9310. DebugTriangle& operator=(const DebugTriangle&);
  9311. // Properties:
  9312. uint color;
  9313. Vector3 v1;
  9314. Vector3 v2;
  9315. Vector3 v3;
  9316. };
  9317. class Decal
  9318. {
  9319. public:
  9320. ~Decal();
  9321. Decal();
  9322. // Methods:
  9323. Decal& operator=(const Decal&);
  9324. void AddVertex(const DecalVertex&);
  9325. void CalculateBoundingBox();
  9326. // Properties:
  9327. BoundingBox boundingBox;
  9328. float timeToLive;
  9329. float timer;
  9330. };
  9331. class DecalSet
  9332. {
  9333. public:
  9334. DecalSet();
  9335. // Methods:
  9336. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0f, float = 0.1f, uint = M_MAX_UNSIGNED);
  9337. void AddLight(Light);
  9338. void AddVertexLight(Light);
  9339. void AllocateNetworkState();
  9340. operator Animatable() const;
  9341. void ApplyAttributes();
  9342. const BoundingBox& GetBoundingBox() const;
  9343. const BoundingBox& GetWorldBoundingBox();
  9344. void CleanupConnection(Connection);
  9345. operator Component() const;
  9346. void DrawDebugGeometry(DebugRenderer, bool);
  9347. bool DrawOcclusion(OcclusionBuffer);
  9348. operator Drawable() const;
  9349. bool GetAnimationEnabled() const;
  9350. Variant GetAttribute(const String&) const;
  9351. Variant GetAttribute(uint) const;
  9352. ValueAnimation GetAttributeAnimation(const String&) const;
  9353. float GetAttributeAnimationSpeed(const String&) const;
  9354. float GetAttributeAnimationTime(const String&) const;
  9355. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9356. Variant GetAttributeDefault(const String&) const;
  9357. Variant GetAttributeDefault(uint) const;
  9358. bool GetBlockEvents() const;
  9359. bool GetCastShadows() const;
  9360. Component GetComponent(StringHash) const;
  9361. float GetDistance() const;
  9362. float GetDrawDistance() const;
  9363. uint8 GetDrawableFlags() const;
  9364. VariantMap& GetEventDataMap() const;
  9365. Object GetEventSender() const;
  9366. Light GetFirstLight() const;
  9367. uint GetID() const;
  9368. bool GetInterceptNetworkUpdate(const String&) const;
  9369. uint GetLightMask() const;
  9370. Array<Light> GetLights() const;
  9371. float GetLodBias() const;
  9372. float GetLodDistance() const;
  9373. Geometry GetLodGeometry(uint, uint);
  9374. Material GetMaterial() const;
  9375. ResourceRef GetMaterialAttr() const;
  9376. uint GetMaxIndices() const;
  9377. uint GetMaxLights() const;
  9378. uint GetMaxVertices() const;
  9379. float GetMaxZ() const;
  9380. float GetMinZ() const;
  9381. Node GetNode() const;
  9382. uint GetNumAttributes() const;
  9383. uint GetNumDecals() const;
  9384. uint GetNumIndices() const;
  9385. uint GetNumNetworkAttributes() const;
  9386. uint GetNumOccluderTriangles();
  9387. uint GetNumVertices() const;
  9388. ObjectAnimation GetObjectAnimation() const;
  9389. ResourceRef GetObjectAnimationAttr() const;
  9390. bool GetOptimizeBufferSize() const;
  9391. Scene GetScene() const;
  9392. float GetShadowDistance() const;
  9393. uint GetShadowMask() const;
  9394. float GetSortValue() const;
  9395. Object GetSubsystem(StringHash) const;
  9396. StringHash GetType() const;
  9397. UpdateGeometryType GetUpdateGeometryType();
  9398. Array<Light> GetVertexLights() const;
  9399. uint GetViewMask() const;
  9400. Zone GetZone() const;
  9401. uint GetZoneMask() const;
  9402. bool HasBasePass(uint) const;
  9403. bool HasEventHandlers() const;
  9404. bool HasSubscribedToEvent(Object, StringHash) const;
  9405. bool HasSubscribedToEvent(StringHash) const;
  9406. bool IsEnabled() const;
  9407. bool IsEnabledEffective() const;
  9408. bool IsInView() const;
  9409. bool IsInView(Camera) const;
  9410. bool IsInView(const FrameInfo&, bool = false) const;
  9411. bool IsInstanceOf(StringHash) const;
  9412. bool IsOccludee() const;
  9413. bool IsOccluder() const;
  9414. bool IsReplicated() const;
  9415. bool IsTemporary() const;
  9416. bool IsZoneDirty() const;
  9417. void LimitLights();
  9418. void LimitVertexLights(bool);
  9419. bool Load(Deserializer&);
  9420. bool LoadJSON(const JSONValue&);
  9421. bool LoadXML(const XMLElement&);
  9422. void MarkForUpdate();
  9423. void MarkInView(const FrameInfo&);
  9424. void MarkInView(uint);
  9425. void MarkNetworkUpdate();
  9426. operator Object() const;
  9427. void OnEvent(Object, StringHash, VariantMap&);
  9428. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9429. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9430. void OnSetEnabled();
  9431. void PrepareNetworkUpdate();
  9432. bool ReadDeltaUpdate(Deserializer&);
  9433. bool ReadLatestDataUpdate(Deserializer&);
  9434. operator RefCounted() const;
  9435. int Refs() const;
  9436. void Remove();
  9437. void RemoveAllDecals();
  9438. void RemoveAttributeAnimation(const String&);
  9439. void RemoveDecals(uint);
  9440. void RemoveInstanceDefault();
  9441. void RemoveObjectAnimation();
  9442. void ResetToDefault();
  9443. bool Save(Serializer&) const;
  9444. bool SaveDefaultAttributes() const;
  9445. bool SaveJSON(JSONValue&) const;
  9446. bool SaveXML(XMLElement&) const;
  9447. void SendEvent(StringHash);
  9448. void SendEvent(StringHash, VariantMap&);
  9449. operator Serializable() const;
  9450. void SetAnimationEnabled(bool);
  9451. void SetAnimationTime(float);
  9452. bool SetAttribute(const String&, const Variant&);
  9453. bool SetAttribute(uint, const Variant&);
  9454. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9455. void SetAttributeAnimationSpeed(const String&, float);
  9456. void SetAttributeAnimationTime(const String&, float);
  9457. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9458. void SetBasePass(uint);
  9459. void SetBlockEvents(bool);
  9460. void SetCastShadows(bool);
  9461. void SetDrawDistance(float);
  9462. void SetEnabled(bool);
  9463. void SetGlobalVar(StringHash, const Variant&);
  9464. void SetInstanceDefault(bool);
  9465. void SetInterceptNetworkUpdate(const String&, bool);
  9466. void SetLightMask(uint);
  9467. void SetLodBias(float);
  9468. void SetMaterial(Material);
  9469. void SetMaterialAttr(const ResourceRef&);
  9470. void SetMaxIndices(uint);
  9471. void SetMaxLights(uint);
  9472. void SetMaxVertices(uint);
  9473. void SetMinMaxZ(float, float);
  9474. void SetObjectAnimation(ObjectAnimation);
  9475. void SetObjectAnimationAttr(const ResourceRef&);
  9476. void SetOccludee(bool);
  9477. void SetOccluder(bool);
  9478. void SetOptimizeBufferSize(bool);
  9479. void SetShadowDistance(float);
  9480. void SetShadowMask(uint);
  9481. void SetSortValue(float);
  9482. void SetTemporary(bool);
  9483. void SetViewMask(uint);
  9484. void SetZone(Zone, bool = false);
  9485. void SetZoneMask(uint);
  9486. const String& GetCategory() const;
  9487. const String& GetTypeName() const;
  9488. void UnsubscribeFromAllEvents();
  9489. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9490. void UnsubscribeFromEvent(Object, StringHash);
  9491. void UnsubscribeFromEvent(StringHash);
  9492. void UnsubscribeFromEvents(Object);
  9493. void Update(const FrameInfo&);
  9494. void UpdateBatches(const FrameInfo&);
  9495. void UpdateGeometry(const FrameInfo&);
  9496. const Variant& GetGlobalVar(StringHash) const;
  9497. const VariantMap& GetGlobalVars() const;
  9498. int WeakRefs() const;
  9499. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  9500. void WriteInitialDeltaUpdate(Serializer&, uint8);
  9501. void WriteLatestDataUpdate(Serializer&, uint8);
  9502. operator const Animatable() const;
  9503. operator const Component() const;
  9504. operator const Drawable() const;
  9505. operator const Object() const;
  9506. operator const RefCounted() const;
  9507. operator const Serializable() const;
  9508. // Properties:
  9509. bool animationEnabled;
  9510. /* readonly */
  9511. Array<Variant> attributeDefaults;
  9512. /* readonly */
  9513. Array<AttributeInfo> attributeInfos;
  9514. Array<Variant> attributes;
  9515. /* readonly */
  9516. BoundingBox boundingBox;
  9517. bool castShadows;
  9518. /* readonly */
  9519. String category;
  9520. float drawDistance;
  9521. bool enabled;
  9522. /* readonly */
  9523. bool enabledEffective;
  9524. Array<Variant> globalVar;
  9525. /* readonly */
  9526. VariantMap globalVars;
  9527. /* readonly */
  9528. uint id;
  9529. /* readonly */
  9530. bool inView;
  9531. uint lightMask;
  9532. float lodBias;
  9533. Material material;
  9534. uint maxIndices;
  9535. uint maxLights;
  9536. uint maxVertices;
  9537. /* readonly */
  9538. Node node;
  9539. /* readonly */
  9540. uint numAttributes;
  9541. /* readonly */
  9542. uint numDecals;
  9543. /* readonly */
  9544. uint numIndices;
  9545. /* readonly */
  9546. uint numVertices;
  9547. ObjectAnimation objectAnimation;
  9548. bool occludee;
  9549. bool occluder;
  9550. bool optimizeBufferSize;
  9551. /* readonly */
  9552. int refs;
  9553. /* readonly */
  9554. bool replicated;
  9555. float shadowDistance;
  9556. uint shadowMask;
  9557. bool temporary;
  9558. /* readonly */
  9559. StringHash type;
  9560. /* readonly */
  9561. String typeName;
  9562. uint viewMask;
  9563. /* readonly */
  9564. int weakRefs;
  9565. /* readonly */
  9566. BoundingBox worldBoundingBox;
  9567. /* readonly */
  9568. Zone zone;
  9569. uint zoneMask;
  9570. };
  9571. class DecalVertex
  9572. {
  9573. public:
  9574. ~DecalVertex();
  9575. DecalVertex();
  9576. DecalVertex(const Vector3&in, const Vector3&in);
  9577. // Methods:
  9578. DecalVertex& operator=(const DecalVertex&);
  9579. // Properties:
  9580. Vector3 normal;
  9581. Vector3 position;
  9582. Vector4 tangent;
  9583. Vector2 texCoord;
  9584. };
  9585. class DelayedWorldTransform
  9586. {
  9587. public:
  9588. ~DelayedWorldTransform();
  9589. DelayedWorldTransform();
  9590. // Methods:
  9591. DelayedWorldTransform& operator=(const DelayedWorldTransform&);
  9592. // Properties:
  9593. Vector3 worldPosition;
  9594. Quaternion worldRotation;
  9595. };
  9596. class DelayedWorldTransform2D
  9597. {
  9598. public:
  9599. ~DelayedWorldTransform2D();
  9600. DelayedWorldTransform2D();
  9601. // Methods:
  9602. DelayedWorldTransform2D& operator=(const DelayedWorldTransform2D&);
  9603. // Properties:
  9604. Vector3 worldPosition;
  9605. Quaternion worldRotation;
  9606. };
  9607. class DepthValue
  9608. {
  9609. public:
  9610. // Methods:
  9611. DepthValue& operator=(const DepthValue&);
  9612. // Properties:
  9613. int max;
  9614. int min;
  9615. };
  9616. class Deserializer
  9617. {
  9618. public:
  9619. // Methods:
  9620. Deserializer& operator=(const Deserializer&);
  9621. operator File() const;
  9622. uint GetChecksum();
  9623. uint GetPosition() const;
  9624. uint GetSize() const;
  9625. operator HttpRequest() const;
  9626. bool IsEof() const;
  9627. operator NamedPipe() const;
  9628. Array<uint8> Read(uint);
  9629. bool ReadBool();
  9630. BoundingBox ReadBoundingBox();
  9631. int8 ReadByte();
  9632. Color ReadColor();
  9633. double ReadDouble();
  9634. String ReadFileID();
  9635. float ReadFloat();
  9636. int ReadInt();
  9637. int64 ReadInt64();
  9638. IntRect ReadIntRect();
  9639. IntVector2 ReadIntVector2();
  9640. IntVector3 ReadIntVector3();
  9641. String ReadLine();
  9642. Matrix3 ReadMatrix3();
  9643. Matrix3x4 ReadMatrix3x4();
  9644. Matrix4 ReadMatrix4();
  9645. uint ReadNetID();
  9646. Quaternion ReadPackedQuaternion();
  9647. Vector3 ReadPackedVector3(float);
  9648. Quaternion ReadQuaternion();
  9649. Rect ReadRect();
  9650. ResourceRef ReadResourceRef();
  9651. ResourceRefList ReadResourceRefList();
  9652. int16 ReadShort();
  9653. String ReadString();
  9654. StringHash ReadStringHash();
  9655. Array<String> ReadStringVector();
  9656. uint8 ReadUByte();
  9657. uint ReadUInt();
  9658. uint64 ReadUInt64();
  9659. uint16 ReadUShort();
  9660. uint ReadVLE();
  9661. Variant ReadVariant();
  9662. Variant ReadVariant(VariantType);
  9663. VariantMap ReadVariantMap();
  9664. Vector2 ReadVector2();
  9665. Vector3 ReadVector3();
  9666. Vector4 ReadVector4();
  9667. VectorBuffer ReadVectorBuffer(uint);
  9668. uint Seek(uint);
  9669. uint SeekRelative(int);
  9670. const String& GetName() const;
  9671. uint Tell() const;
  9672. operator const File() const;
  9673. operator const HttpRequest() const;
  9674. operator const NamedPipe() const;
  9675. // Properties:
  9676. /* readonly */
  9677. uint checksum;
  9678. /* readonly */
  9679. bool eof;
  9680. /* readonly */
  9681. String name;
  9682. /* readonly */
  9683. uint position;
  9684. /* readonly */
  9685. uint size;
  9686. };
  9687. class Dictionary
  9688. {
  9689. public:
  9690. Dictionary();
  9691. // Methods:
  9692. Dictionary& operator=(const Dictionary&);
  9693. DictionaryValue& operator[](const String&);
  9694. void Clear();
  9695. const DictionaryValue& operator[](const String&) const;
  9696. void Erase(const String&);
  9697. bool Exists(const String&) const;
  9698. bool Get(const String&, void*) const;
  9699. bool Get(const String&, double&) const;
  9700. bool Get(const String&, int64&) const;
  9701. void Set(const String&, const void*);
  9702. void Set(const String&, const double&);
  9703. void Set(const String&, const int64&);
  9704. // Properties:
  9705. /* readonly */
  9706. bool empty;
  9707. /* readonly */
  9708. Array<String> keys;
  9709. /* readonly */
  9710. uint length;
  9711. };
  9712. class DictionaryValue
  9713. {
  9714. public:
  9715. ~DictionaryValue();
  9716. DictionaryValue();
  9717. // Methods:
  9718. DictionaryValue& operator=(const void*);
  9719. DictionaryValue& operator=(double);
  9720. DictionaryValue& operator=(int64);
  9721. };
  9722. class DirtyBits
  9723. {
  9724. public:
  9725. ~DirtyBits();
  9726. DirtyBits();
  9727. DirtyBits(const DirtyBits&in);
  9728. // Methods:
  9729. DirtyBits& operator=(const DirtyBits&);
  9730. void Clear(uint);
  9731. void ClearAll();
  9732. uint Count() const;
  9733. bool IsSet(uint) const;
  9734. void Set(uint);
  9735. // Properties:
  9736. uint8 count;
  9737. };
  9738. class Drawable
  9739. {
  9740. public:
  9741. // Methods:
  9742. void AddLight(Light);
  9743. void AddVertexLight(Light);
  9744. void AllocateNetworkState();
  9745. operator Animatable() const;
  9746. operator AnimatedModel() const;
  9747. operator AnimatedSprite2D() const;
  9748. void ApplyAttributes();
  9749. operator BillboardSet() const;
  9750. const BoundingBox& GetBoundingBox() const;
  9751. const BoundingBox& GetWorldBoundingBox();
  9752. void CleanupConnection(Connection);
  9753. operator Component() const;
  9754. operator CustomGeometry() const;
  9755. operator DecalSet() const;
  9756. void DrawDebugGeometry(DebugRenderer, bool);
  9757. bool DrawOcclusion(OcclusionBuffer);
  9758. operator Drawable2D() const;
  9759. bool GetAnimationEnabled() const;
  9760. Variant GetAttribute(const String&) const;
  9761. Variant GetAttribute(uint) const;
  9762. ValueAnimation GetAttributeAnimation(const String&) const;
  9763. float GetAttributeAnimationSpeed(const String&) const;
  9764. float GetAttributeAnimationTime(const String&) const;
  9765. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9766. Variant GetAttributeDefault(const String&) const;
  9767. Variant GetAttributeDefault(uint) const;
  9768. bool GetBlockEvents() const;
  9769. bool GetCastShadows() const;
  9770. Component GetComponent(StringHash) const;
  9771. float GetDistance() const;
  9772. float GetDrawDistance() const;
  9773. uint8 GetDrawableFlags() const;
  9774. VariantMap& GetEventDataMap() const;
  9775. Object GetEventSender() const;
  9776. Light GetFirstLight() const;
  9777. uint GetID() const;
  9778. bool GetInterceptNetworkUpdate(const String&) const;
  9779. uint GetLightMask() const;
  9780. Array<Light> GetLights() const;
  9781. float GetLodBias() const;
  9782. float GetLodDistance() const;
  9783. Geometry GetLodGeometry(uint, uint);
  9784. uint GetMaxLights() const;
  9785. float GetMaxZ() const;
  9786. float GetMinZ() const;
  9787. Node GetNode() const;
  9788. uint GetNumAttributes() const;
  9789. uint GetNumNetworkAttributes() const;
  9790. uint GetNumOccluderTriangles();
  9791. ObjectAnimation GetObjectAnimation() const;
  9792. ResourceRef GetObjectAnimationAttr() const;
  9793. Scene GetScene() const;
  9794. float GetShadowDistance() const;
  9795. uint GetShadowMask() const;
  9796. float GetSortValue() const;
  9797. Object GetSubsystem(StringHash) const;
  9798. StringHash GetType() const;
  9799. UpdateGeometryType GetUpdateGeometryType();
  9800. Array<Light> GetVertexLights() const;
  9801. uint GetViewMask() const;
  9802. Zone GetZone() const;
  9803. uint GetZoneMask() const;
  9804. bool HasBasePass(uint) const;
  9805. bool HasEventHandlers() const;
  9806. bool HasSubscribedToEvent(Object, StringHash) const;
  9807. bool HasSubscribedToEvent(StringHash) const;
  9808. bool IsEnabled() const;
  9809. bool IsEnabledEffective() const;
  9810. bool IsInView() const;
  9811. bool IsInView(Camera) const;
  9812. bool IsInView(const FrameInfo&, bool = false) const;
  9813. bool IsInstanceOf(StringHash) const;
  9814. bool IsOccludee() const;
  9815. bool IsOccluder() const;
  9816. bool IsReplicated() const;
  9817. bool IsTemporary() const;
  9818. bool IsZoneDirty() const;
  9819. operator Light() const;
  9820. void LimitLights();
  9821. void LimitVertexLights(bool);
  9822. bool Load(Deserializer&);
  9823. bool LoadJSON(const JSONValue&);
  9824. bool LoadXML(const XMLElement&);
  9825. void MarkForUpdate();
  9826. void MarkInView(const FrameInfo&);
  9827. void MarkInView(uint);
  9828. void MarkNetworkUpdate();
  9829. operator Object() const;
  9830. void OnEvent(Object, StringHash, VariantMap&);
  9831. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9832. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9833. void OnSetEnabled();
  9834. operator ParticleEmitter2D() const;
  9835. operator ParticleEmitter() const;
  9836. void PrepareNetworkUpdate();
  9837. bool ReadDeltaUpdate(Deserializer&);
  9838. bool ReadLatestDataUpdate(Deserializer&);
  9839. operator RefCounted() const;
  9840. int Refs() const;
  9841. void Remove();
  9842. void RemoveAttributeAnimation(const String&);
  9843. void RemoveInstanceDefault();
  9844. void RemoveObjectAnimation();
  9845. operator Renderer2D() const;
  9846. void ResetToDefault();
  9847. operator RibbonTrail() const;
  9848. bool Save(Serializer&) const;
  9849. bool SaveDefaultAttributes() const;
  9850. bool SaveJSON(JSONValue&) const;
  9851. bool SaveXML(XMLElement&) const;
  9852. void SendEvent(StringHash);
  9853. void SendEvent(StringHash, VariantMap&);
  9854. operator Serializable() const;
  9855. void SetAnimationEnabled(bool);
  9856. void SetAnimationTime(float);
  9857. bool SetAttribute(const String&, const Variant&);
  9858. bool SetAttribute(uint, const Variant&);
  9859. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9860. void SetAttributeAnimationSpeed(const String&, float);
  9861. void SetAttributeAnimationTime(const String&, float);
  9862. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9863. void SetBasePass(uint);
  9864. void SetBlockEvents(bool);
  9865. void SetCastShadows(bool);
  9866. void SetDrawDistance(float);
  9867. void SetEnabled(bool);
  9868. void SetGlobalVar(StringHash, const Variant&);
  9869. void SetInstanceDefault(bool);
  9870. void SetInterceptNetworkUpdate(const String&, bool);
  9871. void SetLightMask(uint);
  9872. void SetLodBias(float);
  9873. void SetMaxLights(uint);
  9874. void SetMinMaxZ(float, float);
  9875. void SetObjectAnimation(ObjectAnimation);
  9876. void SetObjectAnimationAttr(const ResourceRef&);
  9877. void SetOccludee(bool);
  9878. void SetOccluder(bool);
  9879. void SetShadowDistance(float);
  9880. void SetShadowMask(uint);
  9881. void SetSortValue(float);
  9882. void SetTemporary(bool);
  9883. void SetViewMask(uint);
  9884. void SetZone(Zone, bool = false);
  9885. void SetZoneMask(uint);
  9886. operator Skybox() const;
  9887. operator StaticModel() const;
  9888. operator StaticModelGroup() const;
  9889. operator StaticSprite2D() const;
  9890. operator StretchableSprite2D() const;
  9891. const String& GetCategory() const;
  9892. const String& GetTypeName() const;
  9893. operator TerrainPatch() const;
  9894. operator Text3D() const;
  9895. void UnsubscribeFromAllEvents();
  9896. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9897. void UnsubscribeFromEvent(Object, StringHash);
  9898. void UnsubscribeFromEvent(StringHash);
  9899. void UnsubscribeFromEvents(Object);
  9900. void Update(const FrameInfo&);
  9901. void UpdateBatches(const FrameInfo&);
  9902. void UpdateGeometry(const FrameInfo&);
  9903. const Variant& GetGlobalVar(StringHash) const;
  9904. const VariantMap& GetGlobalVars() const;
  9905. int WeakRefs() const;
  9906. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  9907. void WriteInitialDeltaUpdate(Serializer&, uint8);
  9908. void WriteLatestDataUpdate(Serializer&, uint8);
  9909. operator Zone() const;
  9910. operator const Animatable() const;
  9911. operator const AnimatedModel() const;
  9912. operator const AnimatedSprite2D() const;
  9913. operator const BillboardSet() const;
  9914. operator const Component() const;
  9915. operator const CustomGeometry() const;
  9916. operator const DecalSet() const;
  9917. operator const Drawable2D() const;
  9918. operator const Light() const;
  9919. operator const Object() const;
  9920. operator const ParticleEmitter2D() const;
  9921. operator const ParticleEmitter() const;
  9922. operator const RefCounted() const;
  9923. operator const Renderer2D() const;
  9924. operator const RibbonTrail() const;
  9925. operator const Serializable() const;
  9926. operator const Skybox() const;
  9927. operator const StaticModel() const;
  9928. operator const StaticModelGroup() const;
  9929. operator const StaticSprite2D() const;
  9930. operator const StretchableSprite2D() const;
  9931. operator const TerrainPatch() const;
  9932. operator const Text3D() const;
  9933. operator const Zone() const;
  9934. // Properties:
  9935. bool animationEnabled;
  9936. /* readonly */
  9937. Array<Variant> attributeDefaults;
  9938. /* readonly */
  9939. Array<AttributeInfo> attributeInfos;
  9940. Array<Variant> attributes;
  9941. /* readonly */
  9942. BoundingBox boundingBox;
  9943. bool castShadows;
  9944. /* readonly */
  9945. String category;
  9946. float drawDistance;
  9947. bool enabled;
  9948. /* readonly */
  9949. bool enabledEffective;
  9950. Array<Variant> globalVar;
  9951. /* readonly */
  9952. VariantMap globalVars;
  9953. /* readonly */
  9954. uint id;
  9955. /* readonly */
  9956. bool inView;
  9957. uint lightMask;
  9958. float lodBias;
  9959. uint maxLights;
  9960. /* readonly */
  9961. Node node;
  9962. /* readonly */
  9963. uint numAttributes;
  9964. ObjectAnimation objectAnimation;
  9965. bool occludee;
  9966. bool occluder;
  9967. /* readonly */
  9968. int refs;
  9969. /* readonly */
  9970. bool replicated;
  9971. float shadowDistance;
  9972. uint shadowMask;
  9973. bool temporary;
  9974. /* readonly */
  9975. StringHash type;
  9976. /* readonly */
  9977. String typeName;
  9978. uint viewMask;
  9979. /* readonly */
  9980. int weakRefs;
  9981. /* readonly */
  9982. BoundingBox worldBoundingBox;
  9983. /* readonly */
  9984. Zone zone;
  9985. uint zoneMask;
  9986. };
  9987. class Drawable2D
  9988. {
  9989. public:
  9990. // Methods:
  9991. void AddLight(Light);
  9992. void AddVertexLight(Light);
  9993. void AllocateNetworkState();
  9994. operator Animatable() const;
  9995. operator AnimatedSprite2D() const;
  9996. void ApplyAttributes();
  9997. const BoundingBox& GetBoundingBox() const;
  9998. const BoundingBox& GetWorldBoundingBox();
  9999. void CleanupConnection(Connection);
  10000. operator Component() const;
  10001. void DrawDebugGeometry(DebugRenderer, bool);
  10002. bool DrawOcclusion(OcclusionBuffer);
  10003. operator Drawable() const;
  10004. bool GetAnimationEnabled() const;
  10005. Variant GetAttribute(const String&) const;
  10006. Variant GetAttribute(uint) const;
  10007. ValueAnimation GetAttributeAnimation(const String&) const;
  10008. float GetAttributeAnimationSpeed(const String&) const;
  10009. float GetAttributeAnimationTime(const String&) const;
  10010. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10011. Variant GetAttributeDefault(const String&) const;
  10012. Variant GetAttributeDefault(uint) const;
  10013. bool GetBlockEvents() const;
  10014. bool GetCastShadows() const;
  10015. Component GetComponent(StringHash) const;
  10016. float GetDistance() const;
  10017. float GetDrawDistance() const;
  10018. uint8 GetDrawableFlags() const;
  10019. VariantMap& GetEventDataMap() const;
  10020. Object GetEventSender() const;
  10021. Light GetFirstLight() const;
  10022. uint GetID() const;
  10023. bool GetInterceptNetworkUpdate(const String&) const;
  10024. int GetLayer() const;
  10025. uint GetLightMask() const;
  10026. Array<Light> GetLights() const;
  10027. float GetLodBias() const;
  10028. float GetLodDistance() const;
  10029. Geometry GetLodGeometry(uint, uint);
  10030. uint GetMaxLights() const;
  10031. float GetMaxZ() const;
  10032. float GetMinZ() const;
  10033. Node GetNode() const;
  10034. uint GetNumAttributes() const;
  10035. uint GetNumNetworkAttributes() const;
  10036. uint GetNumOccluderTriangles();
  10037. ObjectAnimation GetObjectAnimation() const;
  10038. ResourceRef GetObjectAnimationAttr() const;
  10039. int GetOrderInLayer() const;
  10040. Scene GetScene() const;
  10041. float GetShadowDistance() const;
  10042. uint GetShadowMask() const;
  10043. float GetSortValue() const;
  10044. Object GetSubsystem(StringHash) const;
  10045. StringHash GetType() const;
  10046. UpdateGeometryType GetUpdateGeometryType();
  10047. Array<Light> GetVertexLights() const;
  10048. uint GetViewMask() const;
  10049. Zone GetZone() const;
  10050. uint GetZoneMask() const;
  10051. bool HasBasePass(uint) const;
  10052. bool HasEventHandlers() const;
  10053. bool HasSubscribedToEvent(Object, StringHash) const;
  10054. bool HasSubscribedToEvent(StringHash) const;
  10055. bool IsEnabled() const;
  10056. bool IsEnabledEffective() const;
  10057. bool IsInView() const;
  10058. bool IsInView(Camera) const;
  10059. bool IsInView(const FrameInfo&, bool = false) const;
  10060. bool IsInstanceOf(StringHash) const;
  10061. bool IsOccludee() const;
  10062. bool IsOccluder() const;
  10063. bool IsReplicated() const;
  10064. bool IsTemporary() const;
  10065. bool IsZoneDirty() const;
  10066. void LimitLights();
  10067. void LimitVertexLights(bool);
  10068. bool Load(Deserializer&);
  10069. bool LoadJSON(const JSONValue&);
  10070. bool LoadXML(const XMLElement&);
  10071. void MarkForUpdate();
  10072. void MarkInView(const FrameInfo&);
  10073. void MarkInView(uint);
  10074. void MarkNetworkUpdate();
  10075. operator Object() const;
  10076. void OnEvent(Object, StringHash, VariantMap&);
  10077. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10078. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10079. void OnSetEnabled();
  10080. operator ParticleEmitter2D() const;
  10081. void PrepareNetworkUpdate();
  10082. bool ReadDeltaUpdate(Deserializer&);
  10083. bool ReadLatestDataUpdate(Deserializer&);
  10084. operator RefCounted() const;
  10085. int Refs() const;
  10086. void Remove();
  10087. void RemoveAttributeAnimation(const String&);
  10088. void RemoveInstanceDefault();
  10089. void RemoveObjectAnimation();
  10090. void ResetToDefault();
  10091. bool Save(Serializer&) const;
  10092. bool SaveDefaultAttributes() const;
  10093. bool SaveJSON(JSONValue&) const;
  10094. bool SaveXML(XMLElement&) const;
  10095. void SendEvent(StringHash);
  10096. void SendEvent(StringHash, VariantMap&);
  10097. operator Serializable() const;
  10098. void SetAnimationEnabled(bool);
  10099. void SetAnimationTime(float);
  10100. bool SetAttribute(const String&, const Variant&);
  10101. bool SetAttribute(uint, const Variant&);
  10102. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10103. void SetAttributeAnimationSpeed(const String&, float);
  10104. void SetAttributeAnimationTime(const String&, float);
  10105. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10106. void SetBasePass(uint);
  10107. void SetBlockEvents(bool);
  10108. void SetCastShadows(bool);
  10109. void SetDrawDistance(float);
  10110. void SetEnabled(bool);
  10111. void SetGlobalVar(StringHash, const Variant&);
  10112. void SetInstanceDefault(bool);
  10113. void SetInterceptNetworkUpdate(const String&, bool);
  10114. void SetLayer(int);
  10115. void SetLightMask(uint);
  10116. void SetLodBias(float);
  10117. void SetMaxLights(uint);
  10118. void SetMinMaxZ(float, float);
  10119. void SetObjectAnimation(ObjectAnimation);
  10120. void SetObjectAnimationAttr(const ResourceRef&);
  10121. void SetOccludee(bool);
  10122. void SetOccluder(bool);
  10123. void SetOrderInLayer(int);
  10124. void SetShadowDistance(float);
  10125. void SetShadowMask(uint);
  10126. void SetSortValue(float);
  10127. void SetTemporary(bool);
  10128. void SetViewMask(uint);
  10129. void SetZone(Zone, bool = false);
  10130. void SetZoneMask(uint);
  10131. operator StaticSprite2D() const;
  10132. operator StretchableSprite2D() const;
  10133. const String& GetCategory() const;
  10134. const String& GetTypeName() const;
  10135. void UnsubscribeFromAllEvents();
  10136. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10137. void UnsubscribeFromEvent(Object, StringHash);
  10138. void UnsubscribeFromEvent(StringHash);
  10139. void UnsubscribeFromEvents(Object);
  10140. void Update(const FrameInfo&);
  10141. void UpdateBatches(const FrameInfo&);
  10142. void UpdateGeometry(const FrameInfo&);
  10143. const Variant& GetGlobalVar(StringHash) const;
  10144. const VariantMap& GetGlobalVars() const;
  10145. int WeakRefs() const;
  10146. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10147. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10148. void WriteLatestDataUpdate(Serializer&, uint8);
  10149. operator const Animatable() const;
  10150. operator const AnimatedSprite2D() const;
  10151. operator const Component() const;
  10152. operator const Drawable() const;
  10153. operator const Object() const;
  10154. operator const ParticleEmitter2D() const;
  10155. operator const RefCounted() const;
  10156. operator const Serializable() const;
  10157. operator const StaticSprite2D() const;
  10158. operator const StretchableSprite2D() const;
  10159. // Properties:
  10160. bool animationEnabled;
  10161. /* readonly */
  10162. Array<Variant> attributeDefaults;
  10163. /* readonly */
  10164. Array<AttributeInfo> attributeInfos;
  10165. Array<Variant> attributes;
  10166. /* readonly */
  10167. BoundingBox boundingBox;
  10168. bool castShadows;
  10169. /* readonly */
  10170. String category;
  10171. float drawDistance;
  10172. bool enabled;
  10173. /* readonly */
  10174. bool enabledEffective;
  10175. Array<Variant> globalVar;
  10176. /* readonly */
  10177. VariantMap globalVars;
  10178. /* readonly */
  10179. uint id;
  10180. /* readonly */
  10181. bool inView;
  10182. int layer;
  10183. uint lightMask;
  10184. float lodBias;
  10185. uint maxLights;
  10186. /* readonly */
  10187. Node node;
  10188. /* readonly */
  10189. uint numAttributes;
  10190. ObjectAnimation objectAnimation;
  10191. bool occludee;
  10192. bool occluder;
  10193. int orderInLayer;
  10194. /* readonly */
  10195. int refs;
  10196. /* readonly */
  10197. bool replicated;
  10198. float shadowDistance;
  10199. uint shadowMask;
  10200. bool temporary;
  10201. /* readonly */
  10202. StringHash type;
  10203. /* readonly */
  10204. String typeName;
  10205. uint viewMask;
  10206. /* readonly */
  10207. int weakRefs;
  10208. /* readonly */
  10209. BoundingBox worldBoundingBox;
  10210. /* readonly */
  10211. Zone zone;
  10212. uint zoneMask;
  10213. };
  10214. class DropDownList
  10215. {
  10216. public:
  10217. DropDownList();
  10218. // Methods:
  10219. void AddChild(UIElement);
  10220. void AddItem(UIElement);
  10221. void AddTag(const String&);
  10222. void AddTags(Array<String>);
  10223. void AddTags(const String&, int8 = ';');
  10224. void AdjustScissor(IntRect&);
  10225. void AllocateNetworkState();
  10226. operator Animatable() const;
  10227. void ApplyAttributes();
  10228. operator BorderImage() const;
  10229. void BringToFront();
  10230. operator Button() const;
  10231. const Color& GetColor(Corner) const;
  10232. const Color& GetColorAttr() const;
  10233. const Color& GetDerivedColor() const;
  10234. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  10235. void DisableLayoutUpdate();
  10236. IntVector2 ElementToScreen(const IntVector2&);
  10237. void EnableLayoutUpdate();
  10238. bool FilterAttributes(XMLElement&) const;
  10239. uint FindChild(UIElement) const;
  10240. int GetAcceleratorKey() const;
  10241. int GetAcceleratorQualifiers() const;
  10242. bool GetAnimationEnabled() const;
  10243. Variant GetAttribute(const String&) const;
  10244. Variant GetAttribute(uint) const;
  10245. ValueAnimation GetAttributeAnimation(const String&) const;
  10246. float GetAttributeAnimationSpeed(const String&) const;
  10247. float GetAttributeAnimationTime(const String&) const;
  10248. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10249. Variant GetAttributeDefault(const String&) const;
  10250. Variant GetAttributeDefault(uint) const;
  10251. BlendMode GetBlendMode() const;
  10252. bool GetBlockEvents() const;
  10253. bool GetBringToBack() const;
  10254. bool GetBringToFront() const;
  10255. UIElement GetChild(const String&, bool = false) const;
  10256. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  10257. UIElement GetChild(uint) const;
  10258. Array<UIElement> GetChildren() const;
  10259. Array<UIElement> GetChildren(bool) const;
  10260. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10261. bool GetClipChildren() const;
  10262. IntRect GetCombinedScreenRect();
  10263. XMLFile GetDefaultStyle(bool = true) const;
  10264. float GetDerivedOpacity() const;
  10265. uint GetDragButtonCombo() const;
  10266. uint GetDragButtonCount() const;
  10267. uint GetDragDropMode() const;
  10268. IntVector2 GetEffectiveMinSize() const;
  10269. UIElement GetElementEventSender() const;
  10270. bool GetEnableAnchor() const;
  10271. VariantMap& GetEventDataMap() const;
  10272. Object GetEventSender() const;
  10273. FocusMode GetFocusMode() const;
  10274. int GetHeight() const;
  10275. HorizontalAlignment GetHorizontalAlignment() const;
  10276. int GetIndent() const;
  10277. int GetIndentSpacing() const;
  10278. int GetIndentWidth() const;
  10279. bool GetInterceptNetworkUpdate(const String&) const;
  10280. UIElement GetItem(uint) const;
  10281. Array<UIElement> GetItems() const;
  10282. int GetLayoutElementMaxSize() const;
  10283. LayoutMode GetLayoutMode() const;
  10284. int GetLayoutSpacing() const;
  10285. ListView GetListView() const;
  10286. Material GetMaterial() const;
  10287. ResourceRef GetMaterialAttr() const;
  10288. int GetMaxHeight() const;
  10289. int GetMaxWidth() const;
  10290. int GetMinHeight() const;
  10291. int GetMinWidth() const;
  10292. uint GetNumAttributes() const;
  10293. uint GetNumChildren(bool = false) const;
  10294. uint GetNumItems() const;
  10295. uint GetNumNetworkAttributes() const;
  10296. ObjectAnimation GetObjectAnimation() const;
  10297. ResourceRef GetObjectAnimationAttr() const;
  10298. float GetOpacity() const;
  10299. UIElement GetParent() const;
  10300. UIElement GetPlaceholder() const;
  10301. UIElement GetPopup() const;
  10302. int GetPriority() const;
  10303. float GetRepeatDelay() const;
  10304. float GetRepeatRate() const;
  10305. bool GetResizePopup() const;
  10306. UIElement GetRoot() const;
  10307. UIElement GetSelectedItem() const;
  10308. uint GetSelection() const;
  10309. bool GetShowPopup() const;
  10310. bool GetSortChildren() const;
  10311. Object GetSubsystem(StringHash) const;
  10312. Array<String> GetTags() const;
  10313. Texture GetTexture() const;
  10314. ResourceRef GetTextureAttr() const;
  10315. TraversalMode GetTraversalMode() const;
  10316. StringHash GetType() const;
  10317. bool GetUseDerivedOpacity() const;
  10318. VerticalAlignment GetVerticalAlignment() const;
  10319. int GetWidth() const;
  10320. bool HasColorGradient() const;
  10321. bool HasEventHandlers() const;
  10322. bool HasFocus() const;
  10323. bool HasSubscribedToEvent(Object, StringHash) const;
  10324. bool HasSubscribedToEvent(StringHash) const;
  10325. bool HasTag(const String&) const;
  10326. void InsertChild(uint, UIElement);
  10327. void InsertItem(uint, UIElement);
  10328. const IntRect& GetBorder() const;
  10329. const IntRect& GetClipBorder() const;
  10330. const IntRect& GetImageBorder() const;
  10331. const IntRect& GetImageRect() const;
  10332. const IntRect& GetLayoutBorder() const;
  10333. const IntVector2& GetChildOffset() const;
  10334. const IntVector2& GetDisabledOffset() const;
  10335. const IntVector2& GetHoverOffset() const;
  10336. const IntVector2& GetMaxOffset() const;
  10337. const IntVector2& GetMaxSize() const;
  10338. const IntVector2& GetMinOffset() const;
  10339. const IntVector2& GetMinSize() const;
  10340. const IntVector2& GetPopupOffset() const;
  10341. const IntVector2& GetPosition() const;
  10342. const IntVector2& GetPressedChildOffset() const;
  10343. const IntVector2& GetPressedOffset() const;
  10344. const IntVector2& GetScreenPosition() const;
  10345. const IntVector2& GetSize() const;
  10346. bool IsChildOf(UIElement) const;
  10347. bool IsEditable() const;
  10348. bool IsElementEventSender() const;
  10349. bool IsEnabled() const;
  10350. bool IsEnabledSelf() const;
  10351. bool IsFixedHeight() const;
  10352. bool IsFixedSize() const;
  10353. bool IsFixedWidth() const;
  10354. bool IsHovering() const;
  10355. bool IsInside(IntVector2, bool);
  10356. bool IsInsideCombined(IntVector2, bool);
  10357. bool IsInstanceOf(StringHash) const;
  10358. bool IsInternal() const;
  10359. bool IsPressed() const;
  10360. bool IsSelected() const;
  10361. bool IsTemporary() const;
  10362. bool IsTiled() const;
  10363. bool IsVisible() const;
  10364. bool IsVisibleEffective() const;
  10365. bool IsWheelHandler() const;
  10366. bool IsWithinScissor(const IntRect&);
  10367. bool Load(Deserializer&);
  10368. UIElement LoadChildXML(XMLFile, XMLFile);
  10369. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10370. bool LoadJSON(const JSONValue&);
  10371. bool LoadXML(Deserializer&);
  10372. bool LoadXML(File);
  10373. bool LoadXML(VectorBuffer&);
  10374. bool LoadXML(XMLFile, XMLFile);
  10375. bool LoadXML(const XMLElement&);
  10376. bool LoadXML(const XMLElement&, XMLFile);
  10377. void MarkNetworkUpdate();
  10378. operator Menu() const;
  10379. operator Object() const;
  10380. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  10381. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  10382. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  10383. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10384. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10385. bool OnDragDropFinish(UIElement);
  10386. bool OnDragDropTest(UIElement);
  10387. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10388. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10389. void OnEvent(Object, StringHash, VariantMap&);
  10390. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10391. void OnHidePopup();
  10392. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10393. void OnIndentSet();
  10394. void OnKey(uint, uint, uint);
  10395. void OnPositionSet(const IntVector2&);
  10396. void OnResize(const IntVector2&, const IntVector2&);
  10397. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10398. void OnSetEditable();
  10399. void OnShowPopup();
  10400. void OnTextInput(const String&);
  10401. void OnWheel(int, uint, uint);
  10402. bool ReadDeltaUpdate(Deserializer&);
  10403. bool ReadLatestDataUpdate(Deserializer&);
  10404. operator RefCounted() const;
  10405. int Refs() const;
  10406. void Remove();
  10407. void RemoveAllChildren();
  10408. void RemoveAllItems();
  10409. void RemoveAllTags();
  10410. void RemoveAttributeAnimation(const String&);
  10411. void RemoveChild(UIElement, uint = 0);
  10412. void RemoveChild(uint);
  10413. void RemoveChildAtIndex(uint);
  10414. void RemoveInstanceDefault();
  10415. void RemoveItem(UIElement);
  10416. void RemoveItem(uint);
  10417. void RemoveObjectAnimation();
  10418. bool RemoveTag(const String&);
  10419. void ResetDeepEnabled();
  10420. void ResetToDefault();
  10421. bool Save(Serializer&) const;
  10422. bool SaveDefaultAttributes() const;
  10423. bool SaveJSON(JSONValue&) const;
  10424. bool SaveXML(File, const String& indentation = "\t");
  10425. bool SaveXML(Serializer&, const String& = "\t") const;
  10426. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  10427. bool SaveXML(XMLElement&) const;
  10428. IntVector2 ScreenToElement(const IntVector2&);
  10429. void SendEvent(StringHash);
  10430. void SendEvent(StringHash, VariantMap&);
  10431. operator Serializable() const;
  10432. void SetAccelerator(int, int);
  10433. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10434. void SetAnimationEnabled(bool);
  10435. void SetAnimationTime(float);
  10436. bool SetAttribute(const String&, const Variant&);
  10437. bool SetAttribute(uint, const Variant&);
  10438. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10439. void SetAttributeAnimationSpeed(const String&, float);
  10440. void SetAttributeAnimationTime(const String&, float);
  10441. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10442. void SetBlendMode(BlendMode);
  10443. void SetBlockEvents(bool);
  10444. void SetBorder(const IntRect&);
  10445. void SetBringToBack(bool);
  10446. void SetBringToFront(bool);
  10447. void SetChildOffset(const IntVector2&);
  10448. void SetClipBorder(const IntRect&);
  10449. void SetClipChildren(bool);
  10450. void SetColor(Corner, const Color&);
  10451. void SetColor(const Color&);
  10452. void SetDeepEnabled(bool);
  10453. void SetDefaultStyle(XMLFile);
  10454. void SetDisabledOffset(const IntVector2&);
  10455. void SetDisabledOffset(int, int);
  10456. void SetDragDropMode(uint);
  10457. void SetEditable(bool);
  10458. void SetElementEventSender(bool);
  10459. void SetEnableAnchor(bool);
  10460. void SetEnabled(bool);
  10461. void SetEnabledRecursive(bool);
  10462. void SetFixedHeight(int);
  10463. void SetFixedSize(const IntVector2&);
  10464. void SetFixedSize(int, int);
  10465. void SetFixedWidth(int);
  10466. void SetFocus(bool);
  10467. void SetFocusMode(FocusMode);
  10468. void SetFullImageRect();
  10469. void SetGlobalVar(StringHash, const Variant&);
  10470. void SetHeight(int);
  10471. void SetHorizontalAlignment(HorizontalAlignment);
  10472. void SetHoverOffset(const IntVector2&);
  10473. void SetHoverOffset(int, int);
  10474. void SetHovering(bool);
  10475. void SetImageBorder(const IntRect&);
  10476. void SetImageRect(const IntRect&);
  10477. void SetIndent(int);
  10478. void SetIndentSpacing(int);
  10479. void SetInstanceDefault(bool);
  10480. void SetInterceptNetworkUpdate(const String&, bool);
  10481. void SetInternal(bool);
  10482. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  10483. void SetLayoutBorder(const IntRect&);
  10484. void SetLayoutFlexScale(const Vector2&);
  10485. void SetLayoutMode(LayoutMode);
  10486. void SetLayoutSpacing(int);
  10487. void SetMaterial(Material);
  10488. void SetMaterialAttr(const ResourceRef&);
  10489. void SetMaxAnchor(const Vector2&);
  10490. void SetMaxAnchor(float, float);
  10491. void SetMaxHeight(int);
  10492. void SetMaxOffset(const IntVector2&);
  10493. void SetMaxSize(const IntVector2&);
  10494. void SetMaxSize(int, int);
  10495. void SetMaxWidth(int);
  10496. void SetMinAnchor(const Vector2&);
  10497. void SetMinAnchor(float, float);
  10498. void SetMinHeight(int);
  10499. void SetMinOffset(const IntVector2&);
  10500. void SetMinSize(const IntVector2&);
  10501. void SetMinSize(int, int);
  10502. void SetMinWidth(int);
  10503. void SetName(const String&);
  10504. void SetObjectAnimation(ObjectAnimation);
  10505. void SetObjectAnimationAttr(const ResourceRef&);
  10506. void SetOpacity(float);
  10507. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10508. void SetPivot(const Vector2&);
  10509. void SetPivot(float, float);
  10510. void SetPlaceholderText(const String&);
  10511. void SetPopup(UIElement);
  10512. void SetPopupOffset(const IntVector2&);
  10513. void SetPopupOffset(int, int);
  10514. void SetPosition(const IntVector2&);
  10515. void SetPosition(int, int);
  10516. void SetPressedChildOffset(const IntVector2&);
  10517. void SetPressedChildOffset(int, int);
  10518. void SetPressedOffset(const IntVector2&);
  10519. void SetPressedOffset(int, int);
  10520. void SetPriority(int);
  10521. void SetRenderTexture(Texture2D);
  10522. void SetRepeat(float, float);
  10523. void SetRepeatDelay(float);
  10524. void SetRepeatRate(float);
  10525. void SetResizePopup(bool);
  10526. void SetSelected(bool);
  10527. void SetSelection(uint);
  10528. void SetSelectionAttr(uint);
  10529. void SetSize(const IntVector2&);
  10530. void SetSize(int, int);
  10531. void SetSortChildren(bool);
  10532. bool SetStyle(const String&, XMLFile = null);
  10533. bool SetStyle(const XMLElement&);
  10534. bool SetStyleAuto(XMLFile = null);
  10535. void SetTags(Array<String>);
  10536. void SetTemporary(bool);
  10537. void SetTexture(Texture);
  10538. void SetTextureAttr(const ResourceRef&);
  10539. void SetTiled(bool);
  10540. void SetTraversalMode(TraversalMode);
  10541. void SetUseDerivedOpacity(bool);
  10542. void SetVar(StringHash, const Variant&);
  10543. void SetVerticalAlignment(VerticalAlignment);
  10544. void SetVisible(bool);
  10545. void SetWidth(int);
  10546. void ShowPopup(bool);
  10547. void SortChildren();
  10548. const String& GetAppliedStyle() const;
  10549. const String& GetCategory() const;
  10550. const String& GetName() const;
  10551. const String& GetPlaceholderText() const;
  10552. const String& GetTypeName() const;
  10553. operator UIElement() const;
  10554. void UnsubscribeFromAllEvents();
  10555. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10556. void UnsubscribeFromEvent(Object, StringHash);
  10557. void UnsubscribeFromEvent(StringHash);
  10558. void UnsubscribeFromEvents(Object);
  10559. void Update(float);
  10560. void UpdateLayout();
  10561. const Variant& GetGlobalVar(StringHash) const;
  10562. const Variant& GetVar(const StringHash&) const;
  10563. const VariantMap& GetGlobalVars() const;
  10564. const VariantMap& GetVars() const;
  10565. const Vector2& GetLayoutFlexScale() const;
  10566. const Vector2& GetMaxAnchor() const;
  10567. const Vector2& GetMinAnchor() const;
  10568. const Vector2& GetPivot() const;
  10569. int WeakRefs() const;
  10570. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10571. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10572. void WriteLatestDataUpdate(Serializer&, uint8);
  10573. operator const Animatable() const;
  10574. operator const BorderImage() const;
  10575. operator const Button() const;
  10576. operator const Menu() const;
  10577. operator const Object() const;
  10578. operator const RefCounted() const;
  10579. operator const Serializable() const;
  10580. operator const UIElement() const;
  10581. // Properties:
  10582. /* readonly */
  10583. int acceleratorKey;
  10584. /* readonly */
  10585. int acceleratorQualifiers;
  10586. bool animationEnabled;
  10587. /* readonly */
  10588. Array<Variant> attributeDefaults;
  10589. /* readonly */
  10590. Array<AttributeInfo> attributeInfos;
  10591. Array<Variant> attributes;
  10592. BlendMode blendMode;
  10593. IntRect border;
  10594. bool bringToBack;
  10595. bool bringToFront;
  10596. /* readonly */
  10597. String category;
  10598. /* readonly */
  10599. IntVector2 childOffset;
  10600. /* readonly */
  10601. Array<UIElement> children;
  10602. IntRect clipBorder;
  10603. bool clipChildren;
  10604. /* writeonly */
  10605. Color color;
  10606. /* readonly */
  10607. bool colorGradient;
  10608. Array<Color> colors;
  10609. /* readonly */
  10610. IntRect combinedScreenRect;
  10611. XMLFile defaultStyle;
  10612. /* readonly */
  10613. float derivedOpacity;
  10614. IntVector2 disabledOffset;
  10615. /* readonly */
  10616. uint dragButtonCombo;
  10617. /* readonly */
  10618. uint dragButtonCount;
  10619. uint dragDropMode;
  10620. bool editable;
  10621. bool elementEventSender;
  10622. bool enableAnchor;
  10623. bool enabled;
  10624. /* readonly */
  10625. bool enabledSelf;
  10626. /* readonly */
  10627. bool fixedHeight;
  10628. /* readonly */
  10629. bool fixedSize;
  10630. /* readonly */
  10631. bool fixedWidth;
  10632. bool focus;
  10633. FocusMode focusMode;
  10634. Array<Variant> globalVar;
  10635. /* readonly */
  10636. VariantMap globalVars;
  10637. int height;
  10638. HorizontalAlignment horizontalAlignment;
  10639. IntVector2 hoverOffset;
  10640. /* readonly */
  10641. bool hovering;
  10642. IntRect imageBorder;
  10643. IntRect imageRect;
  10644. int indent;
  10645. int indentSpacing;
  10646. /* readonly */
  10647. int indentWidth;
  10648. bool internal;
  10649. /* readonly */
  10650. Array<UIElement> items;
  10651. IntRect layoutBorder;
  10652. Vector2 layoutFlexScale;
  10653. LayoutMode layoutMode;
  10654. int layoutSpacing;
  10655. /* readonly */
  10656. ListView listView;
  10657. Material material;
  10658. Vector2 maxAnchor;
  10659. int maxHeight;
  10660. IntVector2 maxOffset;
  10661. IntVector2 maxSize;
  10662. int maxWidth;
  10663. Vector2 minAnchor;
  10664. int minHeight;
  10665. IntVector2 minOffset;
  10666. IntVector2 minSize;
  10667. int minWidth;
  10668. String name;
  10669. /* readonly */
  10670. uint numAllChildren;
  10671. /* readonly */
  10672. uint numAttributes;
  10673. /* readonly */
  10674. uint numChildren;
  10675. /* readonly */
  10676. uint numItems;
  10677. ObjectAnimation objectAnimation;
  10678. float opacity;
  10679. UIElement parent;
  10680. Vector2 pivot;
  10681. /* readonly */
  10682. UIElement placeholder;
  10683. String placeholderText;
  10684. UIElement popup;
  10685. IntVector2 popupOffset;
  10686. IntVector2 position;
  10687. /* readonly */
  10688. bool pressed;
  10689. IntVector2 pressedChildOffset;
  10690. IntVector2 pressedOffset;
  10691. int priority;
  10692. /* readonly */
  10693. int refs;
  10694. float repeatDelay;
  10695. float repeatRate;
  10696. bool resizePopup;
  10697. /* readonly */
  10698. UIElement root;
  10699. /* readonly */
  10700. IntVector2 screenPosition;
  10701. bool selected;
  10702. /* readonly */
  10703. UIElement selectedItem;
  10704. uint selection;
  10705. bool showPopup;
  10706. IntVector2 size;
  10707. bool sortChildren;
  10708. String style;
  10709. /* readonly */
  10710. Array<String> tags;
  10711. bool temporary;
  10712. Texture texture;
  10713. bool tiled;
  10714. TraversalMode traversalMode;
  10715. /* readonly */
  10716. StringHash type;
  10717. /* readonly */
  10718. String typeName;
  10719. bool useDerivedOpacity;
  10720. /* readonly */
  10721. VariantMap vars;
  10722. VerticalAlignment verticalAlignment;
  10723. bool visible;
  10724. /* readonly */
  10725. bool visibleEffective;
  10726. /* readonly */
  10727. int weakRefs;
  10728. int width;
  10729. };
  10730. class DynamicNavigationMesh
  10731. {
  10732. public:
  10733. DynamicNavigationMesh();
  10734. // Methods:
  10735. bool AddTile(const VectorBuffer&) const;
  10736. bool Allocate(const BoundingBox&, uint);
  10737. void AllocateNetworkState();
  10738. operator Animatable() const;
  10739. void ApplyAttributes();
  10740. const BoundingBox& GetBoundingBox() const;
  10741. bool Build();
  10742. bool Build(const BoundingBox&);
  10743. bool Build(const IntVector2&, const IntVector2&);
  10744. void CleanupConnection(Connection);
  10745. operator Component() const;
  10746. void DrawDebugGeometry(DebugRenderer, bool);
  10747. void DrawDebugGeometry(bool);
  10748. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 :: ONE);
  10749. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& extents = Vector3 :: ONE);
  10750. float GetAgentHeight() const;
  10751. float GetAgentMaxClimb() const;
  10752. float GetAgentMaxSlope() const;
  10753. float GetAgentRadius() const;
  10754. bool GetAnimationEnabled() const;
  10755. float GetAreaCost(uint) const;
  10756. Variant GetAttribute(const String&) const;
  10757. Variant GetAttribute(uint) const;
  10758. ValueAnimation GetAttributeAnimation(const String&) const;
  10759. float GetAttributeAnimationSpeed(const String&) const;
  10760. float GetAttributeAnimationTime(const String&) const;
  10761. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10762. Variant GetAttributeDefault(const String&) const;
  10763. Variant GetAttributeDefault(uint) const;
  10764. bool GetBlockEvents() const;
  10765. float GetCellHeight() const;
  10766. float GetCellSize() const;
  10767. Component GetComponent(StringHash) const;
  10768. float GetDetailSampleDistance() const;
  10769. float GetDetailSampleMaxError() const;
  10770. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  10771. bool GetDrawNavAreas() const;
  10772. bool GetDrawObstacles() const;
  10773. bool GetDrawOffMeshConnections() const;
  10774. float GetEdgeMaxError() const;
  10775. float GetEdgeMaxLength() const;
  10776. VariantMap& GetEventDataMap() const;
  10777. Object GetEventSender() const;
  10778. uint GetID() const;
  10779. bool GetInterceptNetworkUpdate(const String&) const;
  10780. uint GetMaxLayers() const;
  10781. uint GetMaxObstacles() const;
  10782. String GetMeshName() const;
  10783. Node GetNode() const;
  10784. uint GetNumAttributes() const;
  10785. uint GetNumNetworkAttributes() const;
  10786. IntVector2 GetNumTiles() const;
  10787. ObjectAnimation GetObjectAnimation() const;
  10788. ResourceRef GetObjectAnimationAttr() const;
  10789. NavmeshPartitionType GetPartitionType() const;
  10790. Vector3 GetRandomPoint();
  10791. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  10792. float GetRegionMergeSize() const;
  10793. float GetRegionMinSize() const;
  10794. Scene GetScene() const;
  10795. Object GetSubsystem(StringHash) const;
  10796. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  10797. VectorBuffer GetTileData(const IntVector2&) const;
  10798. IntVector2 GetTileIndex(const Vector3&) const;
  10799. int GetTileSize() const;
  10800. StringHash GetType() const;
  10801. BoundingBox GetWorldBoundingBox() const;
  10802. bool HasEventHandlers() const;
  10803. bool HasSubscribedToEvent(Object, StringHash) const;
  10804. bool HasSubscribedToEvent(StringHash) const;
  10805. bool HasTile(const IntVector2&) const;
  10806. bool IsEnabled() const;
  10807. bool IsEnabledEffective() const;
  10808. bool IsInitialized() const;
  10809. bool IsInstanceOf(StringHash) const;
  10810. bool IsObstacleInTile(Obstacle, const IntVector2&) const;
  10811. bool IsReplicated() const;
  10812. bool IsTemporary() const;
  10813. bool Load(Deserializer&);
  10814. bool LoadJSON(const JSONValue&);
  10815. bool LoadXML(const XMLElement&);
  10816. void MarkNetworkUpdate();
  10817. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE, int = 3);
  10818. operator NavigationMesh() const;
  10819. operator Object() const;
  10820. void OnEvent(Object, StringHash, VariantMap&);
  10821. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10822. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10823. void OnSetEnabled();
  10824. void PrepareNetworkUpdate();
  10825. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE);
  10826. bool ReadDeltaUpdate(Deserializer&);
  10827. bool ReadLatestDataUpdate(Deserializer&);
  10828. operator RefCounted() const;
  10829. int Refs() const;
  10830. void Remove();
  10831. void RemoveAllTiles();
  10832. void RemoveAttributeAnimation(const String&);
  10833. void RemoveInstanceDefault();
  10834. void RemoveObjectAnimation();
  10835. void RemoveTile(const IntVector2&);
  10836. void ResetToDefault();
  10837. bool Save(Serializer&) const;
  10838. bool SaveDefaultAttributes() const;
  10839. bool SaveJSON(JSONValue&) const;
  10840. bool SaveXML(XMLElement&) const;
  10841. void SendEvent(StringHash);
  10842. void SendEvent(StringHash, VariantMap&);
  10843. operator Serializable() const;
  10844. void SetAgentHeight(float);
  10845. void SetAgentMaxClimb(float);
  10846. void SetAgentMaxSlope(float);
  10847. void SetAgentRadius(float);
  10848. void SetAnimationEnabled(bool);
  10849. void SetAnimationTime(float);
  10850. void SetAreaCost(uint, float);
  10851. bool SetAttribute(const String&, const Variant&);
  10852. bool SetAttribute(uint, const Variant&);
  10853. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10854. void SetAttributeAnimationSpeed(const String&, float);
  10855. void SetAttributeAnimationTime(const String&, float);
  10856. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10857. void SetBlockEvents(bool);
  10858. void SetCellHeight(float);
  10859. void SetCellSize(float);
  10860. void SetDetailSampleDistance(float);
  10861. void SetDetailSampleMaxError(float);
  10862. void SetDrawNavAreas(bool);
  10863. void SetDrawObstacles(bool);
  10864. void SetDrawOffMeshConnections(bool);
  10865. void SetEdgeMaxError(float);
  10866. void SetEdgeMaxLength(float);
  10867. void SetEnabled(bool);
  10868. void SetGlobalVar(StringHash, const Variant&);
  10869. void SetInstanceDefault(bool);
  10870. void SetInterceptNetworkUpdate(const String&, bool);
  10871. void SetMaxLayers(uint);
  10872. void SetMaxObstacles(uint);
  10873. void SetMeshName(const String&);
  10874. void SetObjectAnimation(ObjectAnimation);
  10875. void SetObjectAnimationAttr(const ResourceRef&);
  10876. void SetPadding(const Vector3&);
  10877. void SetPartitionType(NavmeshPartitionType);
  10878. void SetRegionMergeSize(float);
  10879. void SetRegionMinSize(float);
  10880. void SetTemporary(bool);
  10881. void SetTileSize(int);
  10882. const String& GetCategory() const;
  10883. const String& GetTypeName() const;
  10884. void UnsubscribeFromAllEvents();
  10885. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10886. void UnsubscribeFromEvent(Object, StringHash);
  10887. void UnsubscribeFromEvent(StringHash);
  10888. void UnsubscribeFromEvents(Object);
  10889. const Variant& GetGlobalVar(StringHash) const;
  10890. const VariantMap& GetGlobalVars() const;
  10891. const Vector3& GetPadding() const;
  10892. int WeakRefs() const;
  10893. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10894. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10895. void WriteLatestDataUpdate(Serializer&, uint8);
  10896. operator const Animatable() const;
  10897. operator const Component() const;
  10898. operator const NavigationMesh() const;
  10899. operator const Object() const;
  10900. operator const RefCounted() const;
  10901. operator const Serializable() const;
  10902. // Properties:
  10903. float agentHeight;
  10904. float agentMaxClimb;
  10905. float agentMaxSlope;
  10906. float agentRadius;
  10907. bool animationEnabled;
  10908. /* readonly */
  10909. Array<Variant> attributeDefaults;
  10910. /* readonly */
  10911. Array<AttributeInfo> attributeInfos;
  10912. Array<Variant> attributes;
  10913. /* readonly */
  10914. BoundingBox boundingBox;
  10915. /* readonly */
  10916. String category;
  10917. float cellHeight;
  10918. float cellSize;
  10919. float detailSampleDistance;
  10920. float detailSampleMaxError;
  10921. bool drawNavAreas;
  10922. bool drawObstacles;
  10923. bool drawOffMeshConnections;
  10924. float edgeMaxError;
  10925. float edgeMaxLength;
  10926. bool enabled;
  10927. /* readonly */
  10928. bool enabledEffective;
  10929. Array<Variant> globalVar;
  10930. /* readonly */
  10931. VariantMap globalVars;
  10932. /* readonly */
  10933. uint id;
  10934. /* readonly */
  10935. bool initialized;
  10936. uint maxLayers;
  10937. uint maxObstacles;
  10938. /* readonly */
  10939. Node node;
  10940. /* readonly */
  10941. uint numAttributes;
  10942. /* readonly */
  10943. IntVector2 numTiles;
  10944. ObjectAnimation objectAnimation;
  10945. Vector3 padding;
  10946. NavmeshPartitionType partitionType;
  10947. /* readonly */
  10948. int refs;
  10949. float regionMergeSize;
  10950. float regionMinSize;
  10951. /* readonly */
  10952. bool replicated;
  10953. bool temporary;
  10954. int tileSize;
  10955. /* readonly */
  10956. StringHash type;
  10957. /* readonly */
  10958. String typeName;
  10959. /* readonly */
  10960. int weakRefs;
  10961. /* readonly */
  10962. BoundingBox worldBoundingBox;
  10963. };
  10964. class Engine
  10965. {
  10966. public:
  10967. Engine();
  10968. // Methods:
  10969. void ApplyFrameLimit();
  10970. Console CreateConsole();
  10971. DebugHud CreateDebugHud();
  10972. void DumpMemory();
  10973. void DumpProfiler();
  10974. void DumpResources(bool = false);
  10975. void Exit();
  10976. bool GetAutoExit() const;
  10977. bool GetBlockEvents() const;
  10978. VariantMap& GetEventDataMap() const;
  10979. Object GetEventSender() const;
  10980. int GetMaxFps() const;
  10981. int GetMaxInactiveFps() const;
  10982. int GetMinFps() const;
  10983. float GetNextTimeStep() const;
  10984. bool GetPauseMinimized() const;
  10985. Object GetSubsystem(StringHash) const;
  10986. int GetTimeStepSmoothing() const;
  10987. StringHash GetType() const;
  10988. bool HasEventHandlers() const;
  10989. bool HasSubscribedToEvent(Object, StringHash) const;
  10990. bool HasSubscribedToEvent(StringHash) const;
  10991. bool Initialize(const VariantMap&);
  10992. bool InitializeResourceCache(const VariantMap&, bool = true);
  10993. bool IsExiting() const;
  10994. bool IsHeadless() const;
  10995. bool IsInitialized() const;
  10996. bool IsInstanceOf(StringHash) const;
  10997. operator Object() const;
  10998. void OnEvent(Object, StringHash, VariantMap&);
  10999. operator RefCounted() const;
  11000. int Refs() const;
  11001. void Render();
  11002. void RunFrame();
  11003. void SendEvent(StringHash);
  11004. void SendEvent(StringHash, VariantMap&);
  11005. void SetAutoExit(bool);
  11006. void SetBlockEvents(bool);
  11007. void SetGlobalVar(StringHash, const Variant&);
  11008. void SetMaxFps(int);
  11009. void SetMaxInactiveFps(int);
  11010. void SetMinFps(int);
  11011. void SetNextTimeStep(float);
  11012. void SetPauseMinimized(bool);
  11013. void SetTimeStepSmoothing(int);
  11014. const String& GetCategory() const;
  11015. const String& GetTypeName() const;
  11016. void UnsubscribeFromAllEvents();
  11017. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11018. void UnsubscribeFromEvent(Object, StringHash);
  11019. void UnsubscribeFromEvent(StringHash);
  11020. void UnsubscribeFromEvents(Object);
  11021. void Update();
  11022. const Variant& GetGlobalVar(StringHash) const;
  11023. const VariantMap& GetGlobalVars() const;
  11024. int WeakRefs() const;
  11025. operator const Object() const;
  11026. operator const RefCounted() const;
  11027. // Properties:
  11028. bool autoExit;
  11029. /* readonly */
  11030. String category;
  11031. /* readonly */
  11032. bool exiting;
  11033. Array<Variant> globalVar;
  11034. /* readonly */
  11035. VariantMap globalVars;
  11036. /* readonly */
  11037. bool headless;
  11038. /* readonly */
  11039. bool initialized;
  11040. int maxFps;
  11041. int maxInactiveFps;
  11042. int minFps;
  11043. bool pauseMinimized;
  11044. /* readonly */
  11045. int refs;
  11046. int timeStepSmoothing;
  11047. /* readonly */
  11048. StringHash type;
  11049. /* readonly */
  11050. String typeName;
  11051. /* readonly */
  11052. int weakRefs;
  11053. };
  11054. class EventProfiler
  11055. {
  11056. public:
  11057. EventProfiler();
  11058. // Methods:
  11059. void BeginBlock(StringHash);
  11060. void BeginFrame();
  11061. void BeginInterval();
  11062. void EndBlock();
  11063. void EndFrame();
  11064. bool GetBlockEvents() const;
  11065. VariantMap& GetEventDataMap() const;
  11066. Object GetEventSender() const;
  11067. Object GetSubsystem(StringHash) const;
  11068. StringHash GetType() const;
  11069. bool HasEventHandlers() const;
  11070. bool HasSubscribedToEvent(Object, StringHash) const;
  11071. bool HasSubscribedToEvent(StringHash) const;
  11072. bool IsInstanceOf(StringHash) const;
  11073. operator Object() const;
  11074. void OnEvent(Object, StringHash, VariantMap&);
  11075. operator Profiler() const;
  11076. operator RefCounted() const;
  11077. int Refs() const;
  11078. void SendEvent(StringHash);
  11079. void SendEvent(StringHash, VariantMap&);
  11080. void SetBlockEvents(bool);
  11081. void SetGlobalVar(StringHash, const Variant&);
  11082. const String& GetCategory() const;
  11083. const String& GetTypeName() const;
  11084. const String& PrintData(bool = false, bool = false, uint = M_MAX_UNSIGNED) const;
  11085. void UnsubscribeFromAllEvents();
  11086. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11087. void UnsubscribeFromEvent(Object, StringHash);
  11088. void UnsubscribeFromEvent(StringHash);
  11089. void UnsubscribeFromEvents(Object);
  11090. const Variant& GetGlobalVar(StringHash) const;
  11091. const VariantMap& GetGlobalVars() const;
  11092. int WeakRefs() const;
  11093. operator const Object() const;
  11094. operator const Profiler() const;
  11095. operator const RefCounted() const;
  11096. // Properties:
  11097. /* readonly */
  11098. String category;
  11099. Array<Variant> globalVar;
  11100. /* readonly */
  11101. VariantMap globalVars;
  11102. /* readonly */
  11103. int refs;
  11104. /* readonly */
  11105. StringHash type;
  11106. /* readonly */
  11107. String typeName;
  11108. /* readonly */
  11109. int weakRefs;
  11110. };
  11111. class EventReceiverGroup
  11112. {
  11113. public:
  11114. EventReceiverGroup();
  11115. // Methods:
  11116. void Add(Object);
  11117. void BeginSendEvent();
  11118. void EndSendEvent();
  11119. operator RefCounted() const;
  11120. int Refs() const;
  11121. void Remove(Object);
  11122. int WeakRefs() const;
  11123. operator const RefCounted() const;
  11124. // Properties:
  11125. /* readonly */
  11126. int refs;
  11127. /* readonly */
  11128. int weakRefs;
  11129. };
  11130. class File
  11131. {
  11132. public:
  11133. File();
  11134. File(const String&in, FileMode = FILE_READ);
  11135. File(PackageFile&, const String&in);
  11136. // Methods:
  11137. void Close();
  11138. operator Deserializer() const;
  11139. void Flush();
  11140. bool GetBlockEvents() const;
  11141. uint GetChecksum();
  11142. VariantMap& GetEventDataMap() const;
  11143. Object GetEventSender() const;
  11144. FileMode GetMode() const;
  11145. uint GetPosition() const;
  11146. uint GetSize() const;
  11147. Object GetSubsystem(StringHash) const;
  11148. StringHash GetType() const;
  11149. bool HasEventHandlers() const;
  11150. bool HasSubscribedToEvent(Object, StringHash) const;
  11151. bool HasSubscribedToEvent(StringHash) const;
  11152. bool IsEof() const;
  11153. bool IsInstanceOf(StringHash) const;
  11154. bool IsOpen() const;
  11155. bool IsPackaged() const;
  11156. operator Object() const;
  11157. void OnEvent(Object, StringHash, VariantMap&);
  11158. bool Open(PackageFile, const String&);
  11159. bool Open(const String&, FileMode = FILE_READ);
  11160. Array<uint8> Read(uint);
  11161. bool ReadBool();
  11162. BoundingBox ReadBoundingBox();
  11163. int8 ReadByte();
  11164. Color ReadColor();
  11165. double ReadDouble();
  11166. String ReadFileID();
  11167. float ReadFloat();
  11168. int ReadInt();
  11169. int64 ReadInt64();
  11170. IntRect ReadIntRect();
  11171. IntVector2 ReadIntVector2();
  11172. IntVector3 ReadIntVector3();
  11173. String ReadLine();
  11174. Matrix3 ReadMatrix3();
  11175. Matrix3x4 ReadMatrix3x4();
  11176. Matrix4 ReadMatrix4();
  11177. uint ReadNetID();
  11178. Quaternion ReadPackedQuaternion();
  11179. Vector3 ReadPackedVector3(float);
  11180. Quaternion ReadQuaternion();
  11181. Rect ReadRect();
  11182. ResourceRef ReadResourceRef();
  11183. ResourceRefList ReadResourceRefList();
  11184. int16 ReadShort();
  11185. String ReadString();
  11186. StringHash ReadStringHash();
  11187. Array<String> ReadStringVector();
  11188. uint8 ReadUByte();
  11189. uint ReadUInt();
  11190. uint64 ReadUInt64();
  11191. uint16 ReadUShort();
  11192. uint ReadVLE();
  11193. Variant ReadVariant();
  11194. Variant ReadVariant(VariantType);
  11195. VariantMap ReadVariantMap();
  11196. Vector2 ReadVector2();
  11197. Vector3 ReadVector3();
  11198. Vector4 ReadVector4();
  11199. VectorBuffer ReadVectorBuffer(uint);
  11200. operator RefCounted() const;
  11201. int Refs() const;
  11202. uint Seek(uint);
  11203. uint SeekRelative(int);
  11204. void SendEvent(StringHash);
  11205. void SendEvent(StringHash, VariantMap&);
  11206. operator Serializer() const;
  11207. void SetBlockEvents(bool);
  11208. void SetGlobalVar(StringHash, const Variant&);
  11209. void SetName(const String&);
  11210. const String& GetCategory() const;
  11211. const String& GetName() const;
  11212. const String& GetTypeName() const;
  11213. uint Tell() const;
  11214. void UnsubscribeFromAllEvents();
  11215. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11216. void UnsubscribeFromEvent(Object, StringHash);
  11217. void UnsubscribeFromEvent(StringHash);
  11218. void UnsubscribeFromEvents(Object);
  11219. const Variant& GetGlobalVar(StringHash) const;
  11220. const VariantMap& GetGlobalVars() const;
  11221. int WeakRefs() const;
  11222. uint Write(Array<uint8>);
  11223. bool WriteBool(bool);
  11224. bool WriteBoundingBox(const BoundingBox&);
  11225. bool WriteByte(int8);
  11226. bool WriteColor(const Color&);
  11227. bool WriteDouble(double);
  11228. bool WriteFileID(const String&);
  11229. bool WriteFloat(float);
  11230. bool WriteInt(int);
  11231. bool WriteInt64(int64);
  11232. bool WriteIntRect(const IntRect&);
  11233. bool WriteIntVector2(const IntVector2&);
  11234. bool WriteIntVector3(const IntVector3&);
  11235. bool WriteLine(const String&);
  11236. bool WriteMatrix3(const Matrix3&);
  11237. bool WriteMatrix3x4(const Matrix3x4&);
  11238. bool WriteMatrix4(const Matrix4&);
  11239. bool WriteNetID(uint);
  11240. bool WritePackedQuaternion(const Quaternion&);
  11241. bool WritePackedVector3(const Vector3&, float);
  11242. bool WriteQuaternion(const Quaternion&);
  11243. bool WriteRect(const Rect&);
  11244. bool WriteResourceRef(const ResourceRef&);
  11245. bool WriteResourceRefList(const ResourceRefList&);
  11246. bool WriteShort(int16);
  11247. bool WriteString(const String&);
  11248. bool WriteStringHash(const StringHash&);
  11249. bool WriteStringVector(Array<String>);
  11250. bool WriteUByte(uint8);
  11251. bool WriteUInt(uint);
  11252. bool WriteUInt64(uint64);
  11253. bool WriteUShort(uint16);
  11254. bool WriteVLE(uint);
  11255. bool WriteVariant(const Variant&);
  11256. bool WriteVariantData(const Variant&);
  11257. bool WriteVariantMap(const VariantMap&);
  11258. bool WriteVector2(const Vector2&);
  11259. bool WriteVector3(const Vector3&);
  11260. bool WriteVector4(const Vector4&);
  11261. bool WriteVectorBuffer(const VectorBuffer&);
  11262. operator const Deserializer() const;
  11263. operator const Object() const;
  11264. operator const RefCounted() const;
  11265. operator const Serializer() const;
  11266. // Properties:
  11267. /* readonly */
  11268. String category;
  11269. /* readonly */
  11270. uint checksum;
  11271. /* readonly */
  11272. bool eof;
  11273. Array<Variant> globalVar;
  11274. /* readonly */
  11275. VariantMap globalVars;
  11276. /* readonly */
  11277. FileMode mode;
  11278. String name;
  11279. /* readonly */
  11280. bool open;
  11281. /* readonly */
  11282. bool packaged;
  11283. /* readonly */
  11284. uint position;
  11285. /* readonly */
  11286. int refs;
  11287. /* readonly */
  11288. uint size;
  11289. /* readonly */
  11290. StringHash type;
  11291. /* readonly */
  11292. String typeName;
  11293. /* readonly */
  11294. int weakRefs;
  11295. };
  11296. class FileSelector
  11297. {
  11298. public:
  11299. FileSelector();
  11300. // Methods:
  11301. bool GetBlockEvents() const;
  11302. Button GetCancelButton() const;
  11303. Button GetCloseButton() const;
  11304. XMLFile GetDefaultStyle() const;
  11305. bool GetDirectoryMode() const;
  11306. VariantMap& GetEventDataMap() const;
  11307. Object GetEventSender() const;
  11308. ListView GetFileList() const;
  11309. LineEdit GetFileNameEdit() const;
  11310. uint GetFilterIndex() const;
  11311. DropDownList GetFilterList() const;
  11312. Button GetOKButton() const;
  11313. LineEdit GetPathEdit() const;
  11314. Object GetSubsystem(StringHash) const;
  11315. Text GetTitleText() const;
  11316. StringHash GetType() const;
  11317. Window GetWindow() const;
  11318. bool HasEventHandlers() const;
  11319. bool HasSubscribedToEvent(Object, StringHash) const;
  11320. bool HasSubscribedToEvent(StringHash) const;
  11321. bool IsInstanceOf(StringHash) const;
  11322. operator Object() const;
  11323. void OnEvent(Object, StringHash, VariantMap&);
  11324. operator RefCounted() const;
  11325. int Refs() const;
  11326. void SendEvent(StringHash);
  11327. void SendEvent(StringHash, VariantMap&);
  11328. void SetBlockEvents(bool);
  11329. void SetButtonTexts(const String&, const String&);
  11330. void SetDefaultStyle(XMLFile);
  11331. void SetDirectoryMode(bool);
  11332. void SetFileName(const String&);
  11333. void SetFilters(Array<String>, uint);
  11334. void SetGlobalVar(StringHash, const Variant&);
  11335. void SetPath(const String&);
  11336. void SetTitle(const String&);
  11337. const String& GetCategory() const;
  11338. const String& GetFileName() const;
  11339. const String& GetFilter() const;
  11340. const String& GetPath() const;
  11341. const String& GetTitle() const;
  11342. const String& GetTypeName() const;
  11343. void UnsubscribeFromAllEvents();
  11344. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11345. void UnsubscribeFromEvent(Object, StringHash);
  11346. void UnsubscribeFromEvent(StringHash);
  11347. void UnsubscribeFromEvents(Object);
  11348. void UpdateElements();
  11349. const Variant& GetGlobalVar(StringHash) const;
  11350. const VariantMap& GetGlobalVars() const;
  11351. int WeakRefs() const;
  11352. operator const Object() const;
  11353. operator const RefCounted() const;
  11354. // Properties:
  11355. /* readonly */
  11356. Button cancelButton;
  11357. /* readonly */
  11358. String category;
  11359. XMLFile defaultStyle;
  11360. bool directoryMode;
  11361. /* readonly */
  11362. ListView fileList;
  11363. String fileName;
  11364. /* readonly */
  11365. LineEdit fileNameEdit;
  11366. /* readonly */
  11367. String filter;
  11368. /* readonly */
  11369. uint filterIndex;
  11370. /* readonly */
  11371. DropDownList filterList;
  11372. Array<Variant> globalVar;
  11373. /* readonly */
  11374. VariantMap globalVars;
  11375. /* readonly */
  11376. Button okButton;
  11377. String path;
  11378. /* readonly */
  11379. LineEdit pathEdit;
  11380. /* readonly */
  11381. int refs;
  11382. String title;
  11383. /* readonly */
  11384. Text titleText;
  11385. /* readonly */
  11386. StringHash type;
  11387. /* readonly */
  11388. String typeName;
  11389. /* readonly */
  11390. int weakRefs;
  11391. /* readonly */
  11392. Window window;
  11393. };
  11394. class FileSelectorEntry
  11395. {
  11396. public:
  11397. ~FileSelectorEntry();
  11398. FileSelectorEntry();
  11399. // Methods:
  11400. FileSelectorEntry& operator=(const FileSelectorEntry&);
  11401. // Properties:
  11402. bool directory;
  11403. String name;
  11404. };
  11405. class FileSystem
  11406. {
  11407. public:
  11408. FileSystem();
  11409. // Methods:
  11410. bool CheckAccess(const String&) const;
  11411. bool Copy(const String&, const String&);
  11412. bool CreateDir(const String&);
  11413. bool Delete(const String&);
  11414. bool DirExists(const String&) const;
  11415. bool FileExists(const String&) const;
  11416. String GetAppPreferencesDir(const String&, const String&) const;
  11417. bool GetBlockEvents() const;
  11418. String GetCurrentDir() const;
  11419. VariantMap& GetEventDataMap() const;
  11420. Object GetEventSender() const;
  11421. bool GetExecuteConsoleCommands() const;
  11422. uint GetLastModifiedTime(const String&) const;
  11423. String GetProgramDir() const;
  11424. Object GetSubsystem(StringHash) const;
  11425. String GetTemporaryDir() const;
  11426. StringHash GetType() const;
  11427. String GetUserDocumentsDir() const;
  11428. bool HasEventHandlers() const;
  11429. bool HasRegisteredPaths() const;
  11430. bool HasSubscribedToEvent(Object, StringHash) const;
  11431. bool HasSubscribedToEvent(StringHash) const;
  11432. bool IsInstanceOf(StringHash) const;
  11433. operator Object() const;
  11434. void OnEvent(Object, StringHash, VariantMap&);
  11435. operator RefCounted() const;
  11436. int Refs() const;
  11437. void RegisterPath(const String&);
  11438. bool Rename(const String&, const String&);
  11439. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  11440. void SendEvent(StringHash);
  11441. void SendEvent(StringHash, VariantMap&);
  11442. void SetBlockEvents(bool);
  11443. bool SetCurrentDir(const String&);
  11444. void SetExecuteConsoleCommands(bool);
  11445. void SetGlobalVar(StringHash, const Variant&);
  11446. bool SetLastModifiedTime(const String&, uint);
  11447. const String& GetCategory() const;
  11448. const String& GetTypeName() const;
  11449. int SystemCommand(const String&, bool = false);
  11450. uint SystemCommandAsync(const String&);
  11451. bool SystemOpen(const String&, const String& = String :: EMPTY);
  11452. int SystemRun(const String&, Array<String>);
  11453. uint SystemRunAsync(const String&, Array<String>);
  11454. void UnsubscribeFromAllEvents();
  11455. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11456. void UnsubscribeFromEvent(Object, StringHash);
  11457. void UnsubscribeFromEvent(StringHash);
  11458. void UnsubscribeFromEvents(Object);
  11459. const Variant& GetGlobalVar(StringHash) const;
  11460. const VariantMap& GetGlobalVars() const;
  11461. int WeakRefs() const;
  11462. operator const Object() const;
  11463. operator const RefCounted() const;
  11464. // Properties:
  11465. /* readonly */
  11466. String category;
  11467. String currentDir;
  11468. bool executeConsoleCommands;
  11469. Array<Variant> globalVar;
  11470. /* readonly */
  11471. VariantMap globalVars;
  11472. /* readonly */
  11473. String programDir;
  11474. /* readonly */
  11475. int refs;
  11476. /* readonly */
  11477. String temporaryDir;
  11478. /* readonly */
  11479. StringHash type;
  11480. /* readonly */
  11481. String typeName;
  11482. /* readonly */
  11483. String userDocumentsDir;
  11484. /* readonly */
  11485. int weakRefs;
  11486. };
  11487. class FileWatcher
  11488. {
  11489. public:
  11490. FileWatcher();
  11491. // Methods:
  11492. void AddChange(const String&);
  11493. bool GetBlockEvents() const;
  11494. float GetDelay() const;
  11495. VariantMap& GetEventDataMap() const;
  11496. Object GetEventSender() const;
  11497. bool GetNextChange(String&);
  11498. Object GetSubsystem(StringHash) const;
  11499. StringHash GetType() const;
  11500. bool HasEventHandlers() const;
  11501. bool HasSubscribedToEvent(Object, StringHash) const;
  11502. bool HasSubscribedToEvent(StringHash) const;
  11503. bool IsInstanceOf(StringHash) const;
  11504. bool IsStarted() const;
  11505. operator Object() const;
  11506. void OnEvent(Object, StringHash, VariantMap&);
  11507. operator RefCounted() const;
  11508. int Refs() const;
  11509. bool Run();
  11510. void SendEvent(StringHash);
  11511. void SendEvent(StringHash, VariantMap&);
  11512. void SetBlockEvents(bool);
  11513. void SetDelay(float);
  11514. void SetGlobalVar(StringHash, const Variant&);
  11515. void SetPriority(int);
  11516. bool StartWatching(const String&, bool);
  11517. void Stop();
  11518. void StopWatching();
  11519. const String& GetCategory() const;
  11520. const String& GetPath() const;
  11521. const String& GetTypeName() const;
  11522. void ThreadFunction();
  11523. void UnsubscribeFromAllEvents();
  11524. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11525. void UnsubscribeFromEvent(Object, StringHash);
  11526. void UnsubscribeFromEvent(StringHash);
  11527. void UnsubscribeFromEvents(Object);
  11528. const Variant& GetGlobalVar(StringHash) const;
  11529. const VariantMap& GetGlobalVars() const;
  11530. int WeakRefs() const;
  11531. operator const Object() const;
  11532. operator const RefCounted() const;
  11533. // Properties:
  11534. /* readonly */
  11535. String category;
  11536. Array<Variant> globalVar;
  11537. /* readonly */
  11538. VariantMap globalVars;
  11539. /* readonly */
  11540. int refs;
  11541. /* readonly */
  11542. StringHash type;
  11543. /* readonly */
  11544. String typeName;
  11545. /* readonly */
  11546. int weakRefs;
  11547. };
  11548. class FocusParameters
  11549. {
  11550. public:
  11551. FocusParameters();
  11552. FocusParameters(bool, bool, bool, float, float);
  11553. // Methods:
  11554. FocusParameters& operator=(const FocusParameters&);
  11555. void Validate();
  11556. // Properties:
  11557. bool autoSize;
  11558. bool focus;
  11559. float minView;
  11560. bool nonUniform;
  11561. float quantize;
  11562. };
  11563. class Font
  11564. {
  11565. public:
  11566. Font();
  11567. // Methods:
  11568. bool BeginLoad(Deserializer&);
  11569. bool EndLoad();
  11570. AsyncLoadState GetAsyncLoadState() const;
  11571. bool GetBlockEvents() const;
  11572. VariantMap& GetEventDataMap() const;
  11573. Object GetEventSender() const;
  11574. FontFace GetFace(float);
  11575. FontType GetFontType() const;
  11576. uint GetMemoryUse() const;
  11577. StringHash GetNameHash() const;
  11578. Object GetSubsystem(StringHash) const;
  11579. IntVector2 GetTotalGlyphOffset(float) const;
  11580. StringHash GetType() const;
  11581. uint GetUseTimer();
  11582. bool HasEventHandlers() const;
  11583. bool HasSubscribedToEvent(Object, StringHash) const;
  11584. bool HasSubscribedToEvent(StringHash) const;
  11585. const IntVector2& GetAbsoluteGlyphOffset() const;
  11586. bool IsInstanceOf(StringHash) const;
  11587. bool IsSDFFont() const;
  11588. bool Load(Deserializer&);
  11589. bool Load(File);
  11590. bool Load(VectorBuffer&);
  11591. bool Load(const String&);
  11592. bool LoadFile(const String&);
  11593. operator Object() const;
  11594. void OnEvent(Object, StringHash, VariantMap&);
  11595. operator RefCounted() const;
  11596. int Refs() const;
  11597. void ReleaseFaces();
  11598. void ResetUseTimer();
  11599. operator Resource() const;
  11600. bool Save(File) const;
  11601. bool Save(Serializer&) const;
  11602. bool Save(VectorBuffer&) const;
  11603. bool Save(const String&) const;
  11604. bool SaveFile(const String&) const;
  11605. bool SaveXML(File, int, bool usedGlyphs = false, const String& indentation = "\t");
  11606. bool SaveXML(Serializer&, int, bool = false, const String& = "\t");
  11607. bool SaveXML(VectorBuffer&, int, bool usedGlyphs = false, const String& indentation = "\t");
  11608. bool SaveXML(const String&, int, bool usedGlyphs = false, const String& indentation = "\t");
  11609. void SendEvent(StringHash);
  11610. void SendEvent(StringHash, VariantMap&);
  11611. void SetAbsoluteGlyphOffset(const IntVector2&);
  11612. void SetAsyncLoadState(AsyncLoadState);
  11613. void SetBlockEvents(bool);
  11614. void SetGlobalVar(StringHash, const Variant&);
  11615. void SetMemoryUse(uint);
  11616. void SetName(const String&);
  11617. void SetScaledGlyphOffset(const Vector2&);
  11618. const String& GetCategory() const;
  11619. const String& GetName() const;
  11620. const String& GetTypeName() const;
  11621. void UnsubscribeFromAllEvents();
  11622. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11623. void UnsubscribeFromEvent(Object, StringHash);
  11624. void UnsubscribeFromEvent(StringHash);
  11625. void UnsubscribeFromEvents(Object);
  11626. const Variant& GetGlobalVar(StringHash) const;
  11627. const VariantMap& GetGlobalVars() const;
  11628. const Vector2& GetScaledGlyphOffset() const;
  11629. int WeakRefs() const;
  11630. operator const Object() const;
  11631. operator const RefCounted() const;
  11632. operator const Resource() const;
  11633. // Properties:
  11634. IntVector2 absoluteGlyphOffset;
  11635. /* readonly */
  11636. String category;
  11637. /* readonly */
  11638. FontType fontType;
  11639. Array<Variant> globalVar;
  11640. /* readonly */
  11641. VariantMap globalVars;
  11642. /* readonly */
  11643. uint memoryUse;
  11644. String name;
  11645. /* readonly */
  11646. int refs;
  11647. Vector2 scaledGlyphOffset;
  11648. /* readonly */
  11649. StringHash type;
  11650. /* readonly */
  11651. String typeName;
  11652. /* readonly */
  11653. uint useTimer;
  11654. /* readonly */
  11655. int weakRefs;
  11656. };
  11657. class FontFace
  11658. {
  11659. public:
  11660. // Methods:
  11661. operator FontFaceBitmap() const;
  11662. operator FontFaceFreeType() const;
  11663. float GetKerning(uint, uint) const;
  11664. float GetPointSize() const;
  11665. float GetRowHeight() const;
  11666. Array<Texture2D> GetTextures() const;
  11667. bool HasMutableGlyphs() const;
  11668. bool IsDataLost() const;
  11669. operator RefCounted() const;
  11670. int Refs() const;
  11671. int WeakRefs() const;
  11672. operator const FontFaceBitmap() const;
  11673. operator const FontFaceFreeType() const;
  11674. operator const RefCounted() const;
  11675. // Properties:
  11676. /* readonly */
  11677. int refs;
  11678. /* readonly */
  11679. int weakRefs;
  11680. };
  11681. class FontFaceBitmap
  11682. {
  11683. public:
  11684. FontFaceBitmap(Font&);
  11685. // Methods:
  11686. operator FontFace() const;
  11687. float GetKerning(uint, uint) const;
  11688. float GetPointSize() const;
  11689. float GetRowHeight() const;
  11690. Array<Texture2D> GetTextures() const;
  11691. bool HasMutableGlyphs() const;
  11692. bool IsDataLost() const;
  11693. bool Load(FontFace, bool);
  11694. operator RefCounted() const;
  11695. int Refs() const;
  11696. bool Save(Serializer&, int, const String& = "\t");
  11697. int WeakRefs() const;
  11698. operator const FontFace() const;
  11699. operator const RefCounted() const;
  11700. // Properties:
  11701. /* readonly */
  11702. int refs;
  11703. /* readonly */
  11704. int weakRefs;
  11705. };
  11706. class FontFaceFreeType
  11707. {
  11708. public:
  11709. FontFaceFreeType(Font&);
  11710. // Methods:
  11711. operator FontFace() const;
  11712. float GetKerning(uint, uint) const;
  11713. float GetPointSize() const;
  11714. float GetRowHeight() const;
  11715. Array<Texture2D> GetTextures() const;
  11716. bool HasMutableGlyphs() const;
  11717. bool IsDataLost() const;
  11718. operator RefCounted() const;
  11719. int Refs() const;
  11720. int WeakRefs() const;
  11721. operator const FontFace() const;
  11722. operator const RefCounted() const;
  11723. // Properties:
  11724. /* readonly */
  11725. int refs;
  11726. /* readonly */
  11727. int weakRefs;
  11728. };
  11729. class FontGlyph
  11730. {
  11731. public:
  11732. ~FontGlyph();
  11733. FontGlyph();
  11734. // Methods:
  11735. FontGlyph& operator=(const FontGlyph&);
  11736. // Properties:
  11737. float advanceX;
  11738. float height;
  11739. float offsetX;
  11740. float offsetY;
  11741. uint page;
  11742. int16 texHeight;
  11743. int16 texWidth;
  11744. bool used;
  11745. float width;
  11746. int16 x;
  11747. int16 y;
  11748. };
  11749. class FrameInfo
  11750. {
  11751. public:
  11752. ~FrameInfo();
  11753. FrameInfo();
  11754. // Methods:
  11755. FrameInfo& operator=(const FrameInfo&);
  11756. // Properties:
  11757. uint frameNumber;
  11758. float timeStep;
  11759. IntVector2 viewSize;
  11760. };
  11761. class Frustum
  11762. {
  11763. public:
  11764. ~Frustum();
  11765. Frustum();
  11766. Frustum(const Frustum&in);
  11767. // Methods:
  11768. Frustum& operator=(const Frustum&);
  11769. void Define(const BoundingBox&, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11770. void Define(const Matrix4&);
  11771. void Define(const Vector3&, const Vector3&, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11772. void Define(float, float, float, float, float, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11773. void DefineOrtho(float, float, float, float, float, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11774. void DefineSplit(const Matrix4&, float, float);
  11775. float Distance(const Vector3&) const;
  11776. Intersection IsInside(const BoundingBox&) const;
  11777. Intersection IsInside(const Sphere&) const;
  11778. Intersection IsInside(const Vector3&) const;
  11779. Intersection IsInsideFast(const BoundingBox&) const;
  11780. Intersection IsInsideFast(const Sphere&) const;
  11781. Rect Projected(const Matrix4&) const;
  11782. void Transform(const Matrix3&);
  11783. void Transform(const Matrix3x4&);
  11784. Frustum Transformed(const Matrix3&) const;
  11785. Frustum Transformed(const Matrix3x4&) const;
  11786. void UpdatePlanes();
  11787. // Properties:
  11788. /* readonly */
  11789. Array<Vector3> vertices;
  11790. };
  11791. class GImpactMeshData
  11792. {
  11793. public:
  11794. GImpactMeshData(Model&, uint);
  11795. GImpactMeshData(CustomGeometry&);
  11796. // Methods:
  11797. operator CollisionGeometryData() const;
  11798. operator RefCounted() const;
  11799. int Refs() const;
  11800. int WeakRefs() const;
  11801. operator const CollisionGeometryData() const;
  11802. operator const RefCounted() const;
  11803. // Properties:
  11804. /* readonly */
  11805. int refs;
  11806. /* readonly */
  11807. int weakRefs;
  11808. };
  11809. class GPUObject
  11810. {
  11811. public:
  11812. ~GPUObject();
  11813. GPUObject(Graphics@);
  11814. // Methods:
  11815. GPUObject& operator=(const GPUObject&);
  11816. void ClearDataLost();
  11817. uint GetGPUObjectName() const;
  11818. Graphics GetGraphics() const;
  11819. bool HasPendingData() const;
  11820. bool IsDataLost() const;
  11821. void OnDeviceLost();
  11822. void OnDeviceReset();
  11823. void Release();
  11824. // Properties:
  11825. /* readonly */
  11826. bool dataLost;
  11827. };
  11828. class Geometry
  11829. {
  11830. public:
  11831. Geometry();
  11832. // Methods:
  11833. void Draw(Graphics);
  11834. bool GetBlockEvents() const;
  11835. uint16 GetBufferHash() const;
  11836. VariantMap& GetEventDataMap() const;
  11837. Object GetEventSender() const;
  11838. IndexBuffer GetIndexBuffer() const;
  11839. uint GetIndexCount() const;
  11840. uint GetIndexStart() const;
  11841. float GetLodDistance() const;
  11842. uint GetNumVertexBuffers() const;
  11843. PrimitiveType GetPrimitiveType() const;
  11844. Object GetSubsystem(StringHash) const;
  11845. StringHash GetType() const;
  11846. VertexBuffer GetVertexBuffer(uint) const;
  11847. Array<VertexBuffer> GetVertexBuffers() const;
  11848. uint GetVertexCount() const;
  11849. uint GetVertexStart() const;
  11850. bool HasEventHandlers() const;
  11851. bool HasSubscribedToEvent(Object, StringHash) const;
  11852. bool HasSubscribedToEvent(StringHash) const;
  11853. bool IsEmpty() const;
  11854. bool IsInside(const Ray&) const;
  11855. bool IsInstanceOf(StringHash) const;
  11856. operator Object() const;
  11857. void OnEvent(Object, StringHash, VariantMap&);
  11858. operator RefCounted() const;
  11859. int Refs() const;
  11860. void SendEvent(StringHash);
  11861. void SendEvent(StringHash, VariantMap&);
  11862. void SetBlockEvents(bool);
  11863. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  11864. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  11865. void SetGlobalVar(StringHash, const Variant&);
  11866. void SetIndexBuffer(IndexBuffer);
  11867. void SetLodDistance(float);
  11868. bool SetNumVertexBuffers(uint);
  11869. bool SetVertexBuffer(uint, VertexBuffer);
  11870. const String& GetCategory() const;
  11871. const String& GetTypeName() const;
  11872. void UnsubscribeFromAllEvents();
  11873. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11874. void UnsubscribeFromEvent(Object, StringHash);
  11875. void UnsubscribeFromEvent(StringHash);
  11876. void UnsubscribeFromEvents(Object);
  11877. const Variant& GetGlobalVar(StringHash) const;
  11878. const VariantMap& GetGlobalVars() const;
  11879. int WeakRefs() const;
  11880. operator const Object() const;
  11881. operator const RefCounted() const;
  11882. // Properties:
  11883. /* readonly */
  11884. String category;
  11885. /* readonly */
  11886. bool empty;
  11887. Array<Variant> globalVar;
  11888. /* readonly */
  11889. VariantMap globalVars;
  11890. IndexBuffer indexBuffer;
  11891. /* readonly */
  11892. uint indexCount;
  11893. /* readonly */
  11894. uint indexStart;
  11895. float lodDistance;
  11896. uint numVertexBuffers;
  11897. /* readonly */
  11898. PrimitiveType primitiveType;
  11899. /* readonly */
  11900. int refs;
  11901. /* readonly */
  11902. StringHash type;
  11903. /* readonly */
  11904. String typeName;
  11905. /* readonly */
  11906. Array<VertexBuffer> vertexBuffers;
  11907. /* readonly */
  11908. uint vertexCount;
  11909. /* readonly */
  11910. uint vertexStart;
  11911. /* readonly */
  11912. int weakRefs;
  11913. };
  11914. class GeometryDesc
  11915. {
  11916. public:
  11917. ~GeometryDesc();
  11918. GeometryDesc();
  11919. // Methods:
  11920. GeometryDesc& operator=(const GeometryDesc&);
  11921. // Properties:
  11922. uint ibRef;
  11923. uint indexCount;
  11924. uint indexStart;
  11925. PrimitiveType type;
  11926. uint vbRef;
  11927. };
  11928. class Graphics
  11929. {
  11930. public:
  11931. Graphics(GAPI);
  11932. // Methods:
  11933. void BeginDumpShaders(const String&);
  11934. bool BeginFrame();
  11935. void CleanupScratchBuffers();
  11936. void Clear(uint, const Color& = Color ( 0.0f , 0.0f , 0.0f , 0.0f ), float = 1.0f, uint = 0);
  11937. void ClearParameterSource(ShaderParameterGroup);
  11938. void ClearParameterSources();
  11939. void ClearTransformSources();
  11940. void Close();
  11941. void Draw(PrimitiveType, uint, uint);
  11942. void Draw(PrimitiveType, uint, uint, uint, uint);
  11943. void Draw(PrimitiveType, uint, uint, uint, uint, uint);
  11944. void DrawInstanced(PrimitiveType, uint, uint, uint, uint, uint);
  11945. void DrawInstanced(PrimitiveType, uint, uint, uint, uint, uint, uint);
  11946. void EndDumpShaders();
  11947. void EndFrame();
  11948. uint FindBestResolutionIndex(int, int, int, int) const;
  11949. bool GetAlphaToCoverage() const;
  11950. bool GetAnisotropySupport() const;
  11951. BlendMode GetBlendMode() const;
  11952. bool GetBlockEvents() const;
  11953. bool GetBorderless() const;
  11954. bool GetColorWrite() const;
  11955. CullMode GetCullMode() const;
  11956. int GetCurrentMonitor() const;
  11957. uint GetDefaultTextureAnisotropy() const;
  11958. TextureFilterMode GetDefaultTextureFilterMode() const;
  11959. bool GetDeferredSupport() const;
  11960. float GetDepthConstantBias() const;
  11961. float GetDepthSlopeScaledBias() const;
  11962. RenderSurface GetDepthStencil() const;
  11963. CompareMode GetDepthTest() const;
  11964. bool GetDepthWrite() const;
  11965. IntVector2 GetDesktopResolution(int) const;
  11966. Vector3 GetDisplayDPI(int = 0) const;
  11967. bool GetDither() const;
  11968. uint GetDummyColorFormat() const;
  11969. VariantMap& GetEventDataMap() const;
  11970. Object GetEventSender() const;
  11971. FillMode GetFillMode() const;
  11972. bool GetFlushGPU() const;
  11973. bool GetForceGL2() const;
  11974. uint GetFormat(CompressedFormat) const;
  11975. bool GetFullscreen() const;
  11976. bool GetHardwareShadowSupport() const;
  11977. int GetHeight() const;
  11978. bool GetHighDPI() const;
  11979. uint GetHiresShadowMapFormat() const;
  11980. IndexBuffer GetIndexBuffer() const;
  11981. bool GetInstancingSupport() const;
  11982. bool GetLightPrepassSupport() const;
  11983. bool GetLineAntiAlias() const;
  11984. bool GetMaximized() const;
  11985. int GetMonitor() const;
  11986. int GetMonitorCount() const;
  11987. int GetMultiSample() const;
  11988. Array<int> GetMultiSampleLevels() const;
  11989. uint GetNumBatches() const;
  11990. uint GetNumPrimitives() const;
  11991. ShaderVariation GetPixelShader() const;
  11992. bool GetReadableDepthSupport() const;
  11993. int GetRefreshRate() const;
  11994. RenderSurface GetRenderTarget(uint) const;
  11995. IntVector2 GetRenderTargetDimensions() const;
  11996. bool GetResizable() const;
  11997. Array<IntVector3> GetResolutions(int) const;
  11998. bool GetSRGB() const;
  11999. bool GetSRGBSupport() const;
  12000. bool GetSRGBWriteSupport() const;
  12001. bool GetScissorTest() const;
  12002. ShaderVariation GetShader(ShaderType, const String&, const String& = String :: EMPTY) const;
  12003. uint GetShadowMapFormat() const;
  12004. IntVector2 GetSize() const;
  12005. uint GetStencilCompareMask() const;
  12006. StencilOp GetStencilFail() const;
  12007. StencilOp GetStencilPass() const;
  12008. uint GetStencilRef() const;
  12009. bool GetStencilTest() const;
  12010. CompareMode GetStencilTestMode() const;
  12011. uint GetStencilWriteMask() const;
  12012. StencilOp GetStencilZFail() const;
  12013. Object GetSubsystem(StringHash) const;
  12014. Texture GetTexture(uint) const;
  12015. TextureUnit GetTextureUnit(const String&);
  12016. bool GetTripleBuffer() const;
  12017. StringHash GetType() const;
  12018. bool GetUseClipPlane() const;
  12019. bool GetVSync() const;
  12020. VertexBuffer GetVertexBuffer(uint) const;
  12021. ShaderVariation GetVertexShader() const;
  12022. IntRect GetViewport() const;
  12023. int GetWidth() const;
  12024. IntVector2 GetWindowPosition() const;
  12025. bool HasEventHandlers() const;
  12026. bool HasShaderParameter(StringHash);
  12027. bool HasSubscribedToEvent(Object, StringHash) const;
  12028. bool HasSubscribedToEvent(StringHash) const;
  12029. bool HasTextureUnit(TextureUnit);
  12030. const IntRect& GetScissorRect() const;
  12031. bool IsDeviceLost() const;
  12032. bool IsInitialized() const;
  12033. bool IsInstanceOf(StringHash) const;
  12034. void Maximize();
  12035. void Minimize();
  12036. operator Object() const;
  12037. void OnEvent(Object, StringHash, VariantMap&);
  12038. void OnWindowMoved();
  12039. void OnWindowResized();
  12040. void PrecacheShaders(Deserializer&);
  12041. void PrecacheShaders(File);
  12042. void PrecacheShaders(VectorBuffer&);
  12043. void Raise() const;
  12044. operator RefCounted() const;
  12045. int Refs() const;
  12046. void ResetDepthStencil();
  12047. void ResetRenderTarget(uint);
  12048. void ResetRenderTargets();
  12049. bool ResolveToTexture(Texture2D);
  12050. bool ResolveToTexture(Texture2D, const IntRect&);
  12051. bool ResolveToTexture(TextureCube);
  12052. const ScreenModeParams& GetScreenModeParams() const;
  12053. void SendEvent(StringHash);
  12054. void SendEvent(StringHash, VariantMap&);
  12055. void SetBlendMode(BlendMode, bool = false);
  12056. void SetBlockEvents(bool);
  12057. void SetClipPlane(bool, const Plane& = Plane :: UP, const Matrix3x4& = Matrix3x4 :: IDENTITY, const Matrix4& = Matrix4 :: IDENTITY);
  12058. void SetColorWrite(bool);
  12059. void SetCullMode(CullMode);
  12060. void SetDefaultTextureAnisotropy(uint);
  12061. void SetDefaultTextureFilterMode(TextureFilterMode);
  12062. bool SetDefaultWindowModes(int, int, const ScreenModeParams&);
  12063. void SetDepthBias(float, float);
  12064. void SetDepthStencil(RenderSurface);
  12065. void SetDepthStencil(Texture2D);
  12066. void SetDepthTest(CompareMode);
  12067. void SetDepthWrite(bool);
  12068. void SetDither(bool);
  12069. void SetFillMode(FillMode);
  12070. void SetFlushGPU(bool);
  12071. void SetForceGL2(bool);
  12072. void SetGlobalVar(StringHash, const Variant&);
  12073. void SetIndexBuffer(IndexBuffer);
  12074. void SetLineAntiAlias(bool);
  12075. bool SetMode(int, int);
  12076. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  12077. void SetOrientations(const String&);
  12078. void SetRenderTarget(uint, RenderSurface);
  12079. void SetRenderTarget(uint, Texture2D);
  12080. void SetSRGB(bool);
  12081. void SetScissorTest(bool, const IntRect&);
  12082. void SetScissorTest(bool, const Rect& = Rect :: FULL, bool = true);
  12083. bool SetScreenMode(int, int);
  12084. bool SetScreenMode(int, int, const ScreenModeParams&, bool = false);
  12085. void SetShaderCacheDir(const String&);
  12086. void SetShaderParameter(StringHash, bool);
  12087. void SetShaderParameter(StringHash, const Color&);
  12088. void SetShaderParameter(StringHash, const Matrix3&);
  12089. void SetShaderParameter(StringHash, const Matrix3x4&);
  12090. void SetShaderParameter(StringHash, const Matrix4&);
  12091. void SetShaderParameter(StringHash, const Variant&);
  12092. void SetShaderParameter(StringHash, const Vector2&);
  12093. void SetShaderParameter(StringHash, const Vector3&);
  12094. void SetShaderParameter(StringHash, const Vector4&);
  12095. void SetShaderParameter(StringHash, float);
  12096. void SetShaderParameter(StringHash, int);
  12097. void SetShaders(ShaderVariation, ShaderVariation);
  12098. void SetStencilTest(bool, CompareMode = CMP_ALWAYS, StencilOp = OP_KEEP, StencilOp = OP_KEEP, StencilOp = OP_KEEP, uint = 0, uint = M_MAX_UNSIGNED, uint = M_MAX_UNSIGNED);
  12099. void SetTexture(uint, Texture);
  12100. void SetVertexBuffer(VertexBuffer);
  12101. bool SetVertexBuffers(Array<VertexBuffer>, uint = 0);
  12102. void SetViewport(const IntRect&);
  12103. void SetWindowIcon(Image);
  12104. bool SetWindowModes(const WindowModeParams&, const WindowModeParams&, bool = false);
  12105. void SetWindowPosition(const IntVector2&);
  12106. void SetWindowPosition(int, int);
  12107. void SetWindowTitle(const String&);
  12108. const String& GetApiName() const;
  12109. const String& GetCategory() const;
  12110. const String& GetOrientations() const;
  12111. const String& GetShaderCacheDir() const;
  12112. const String& GetTextureUnitName(TextureUnit);
  12113. const String& GetTypeName() const;
  12114. const String& GetWindowTitle() const;
  12115. bool TakeScreenShot(Image&);
  12116. bool ToggleFullscreen();
  12117. void UnsubscribeFromAllEvents();
  12118. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12119. void UnsubscribeFromEvent(Object, StringHash);
  12120. void UnsubscribeFromEvent(StringHash);
  12121. void UnsubscribeFromEvents(Object);
  12122. const Variant& GetGlobalVar(StringHash) const;
  12123. const VariantMap& GetGlobalVars() const;
  12124. int WeakRefs() const;
  12125. operator const Object() const;
  12126. operator const RefCounted() const;
  12127. // Properties:
  12128. /* readonly */
  12129. String apiName;
  12130. /* readonly */
  12131. bool borderless;
  12132. /* readonly */
  12133. String category;
  12134. /* readonly */
  12135. int currentMonitor;
  12136. /* readonly */
  12137. bool deferredSupport;
  12138. /* readonly */
  12139. Array<IntVector2> desktopResolution;
  12140. /* readonly */
  12141. bool deviceLost;
  12142. /* readonly */
  12143. Array<Vector3> displayDPI;
  12144. bool dither;
  12145. bool flushGPU;
  12146. /* readonly */
  12147. bool fullscreen;
  12148. Array<Variant> globalVar;
  12149. /* readonly */
  12150. VariantMap globalVars;
  12151. /* readonly */
  12152. bool hardwareShadowSupport;
  12153. /* readonly */
  12154. int height;
  12155. /* readonly */
  12156. bool initialized;
  12157. /* readonly */
  12158. bool instancingSupport;
  12159. /* readonly */
  12160. bool lightPrepassSupport;
  12161. /* readonly */
  12162. bool maximized;
  12163. /* readonly */
  12164. int monitorCount;
  12165. /* readonly */
  12166. int multiSample;
  12167. /* readonly */
  12168. Array<int> multiSampleLevels;
  12169. /* readonly */
  12170. uint numBatches;
  12171. /* readonly */
  12172. uint numPrimitives;
  12173. String orientations;
  12174. /* readonly */
  12175. bool readableDepthSupport;
  12176. /* readonly */
  12177. int refs;
  12178. /* readonly */
  12179. bool resizable;
  12180. /* readonly */
  12181. Array<Array<IntVector3>> resolutions;
  12182. bool sRGB;
  12183. /* readonly */
  12184. bool sRGBSupport;
  12185. /* readonly */
  12186. bool sRGBWriteSupport;
  12187. String shaderCacheDir;
  12188. /* readonly */
  12189. IntVector2 size;
  12190. /* readonly */
  12191. bool tripleBuffer;
  12192. /* readonly */
  12193. StringHash type;
  12194. /* readonly */
  12195. String typeName;
  12196. /* readonly */
  12197. bool vSync;
  12198. /* readonly */
  12199. int weakRefs;
  12200. /* readonly */
  12201. int width;
  12202. /* writeonly */
  12203. Image windowIcon;
  12204. IntVector2 windowPosition;
  12205. String windowTitle;
  12206. };
  12207. class HashBase
  12208. {
  12209. public:
  12210. ~HashBase();
  12211. HashBase();
  12212. // Methods:
  12213. HashBase& operator=(const HashBase&);
  12214. bool Empty() const;
  12215. int NumBuckets() const;
  12216. int Size() const;
  12217. void Swap(HashBase&);
  12218. // Constants:
  12219. static const int MAX_LOAD_FACTOR;
  12220. static const int MIN_BUCKETS;
  12221. };
  12222. class HashIteratorBase
  12223. {
  12224. public:
  12225. ~HashIteratorBase();
  12226. HashIteratorBase();
  12227. // Methods:
  12228. HashIteratorBase& operator=(const HashIteratorBase&);
  12229. bool operator==(const HashIteratorBase&) const;
  12230. void GotoNext();
  12231. void GotoPrev();
  12232. };
  12233. class HashNodeBase
  12234. {
  12235. public:
  12236. ~HashNodeBase();
  12237. HashNodeBase();
  12238. // Methods:
  12239. HashNodeBase& operator=(const HashNodeBase&);
  12240. };
  12241. class HeightfieldData
  12242. {
  12243. public:
  12244. HeightfieldData(Terrain&, uint);
  12245. // Methods:
  12246. operator CollisionGeometryData() const;
  12247. operator RefCounted() const;
  12248. int Refs() const;
  12249. int WeakRefs() const;
  12250. operator const CollisionGeometryData() const;
  12251. operator const RefCounted() const;
  12252. // Properties:
  12253. float maxHeight;
  12254. float minHeight;
  12255. /* readonly */
  12256. int refs;
  12257. IntVector2 size;
  12258. Vector3 spacing;
  12259. /* readonly */
  12260. int weakRefs;
  12261. };
  12262. class HiresTimer
  12263. {
  12264. public:
  12265. ~HiresTimer();
  12266. HiresTimer();
  12267. // Methods:
  12268. HiresTimer& operator=(const HiresTimer&);
  12269. int64 GetUSec(bool);
  12270. void Reset();
  12271. };
  12272. class HttpRequest
  12273. {
  12274. public:
  12275. HttpRequest(const String&in, const String&in, String[]&, const String&in);
  12276. // Methods:
  12277. operator Deserializer() const;
  12278. uint GetAvailableSize() const;
  12279. uint GetChecksum();
  12280. String GetError() const;
  12281. uint GetPosition() const;
  12282. uint GetSize() const;
  12283. HttpRequestState GetState() const;
  12284. bool IsEof() const;
  12285. bool IsOpen() const;
  12286. bool IsStarted() const;
  12287. Array<uint8> Read(uint);
  12288. bool ReadBool();
  12289. BoundingBox ReadBoundingBox();
  12290. int8 ReadByte();
  12291. Color ReadColor();
  12292. double ReadDouble();
  12293. String ReadFileID();
  12294. float ReadFloat();
  12295. int ReadInt();
  12296. int64 ReadInt64();
  12297. IntRect ReadIntRect();
  12298. IntVector2 ReadIntVector2();
  12299. IntVector3 ReadIntVector3();
  12300. String ReadLine();
  12301. Matrix3 ReadMatrix3();
  12302. Matrix3x4 ReadMatrix3x4();
  12303. Matrix4 ReadMatrix4();
  12304. uint ReadNetID();
  12305. Quaternion ReadPackedQuaternion();
  12306. Vector3 ReadPackedVector3(float);
  12307. Quaternion ReadQuaternion();
  12308. Rect ReadRect();
  12309. ResourceRef ReadResourceRef();
  12310. ResourceRefList ReadResourceRefList();
  12311. int16 ReadShort();
  12312. String ReadString();
  12313. StringHash ReadStringHash();
  12314. Array<String> ReadStringVector();
  12315. uint8 ReadUByte();
  12316. uint ReadUInt();
  12317. uint64 ReadUInt64();
  12318. uint16 ReadUShort();
  12319. uint ReadVLE();
  12320. Variant ReadVariant();
  12321. Variant ReadVariant(VariantType);
  12322. VariantMap ReadVariantMap();
  12323. Vector2 ReadVector2();
  12324. Vector3 ReadVector3();
  12325. Vector4 ReadVector4();
  12326. VectorBuffer ReadVectorBuffer(uint);
  12327. operator RefCounted() const;
  12328. int Refs() const;
  12329. bool Run();
  12330. uint Seek(uint);
  12331. uint SeekRelative(int);
  12332. void SetPriority(int);
  12333. void Stop();
  12334. const String& GetName() const;
  12335. const String& GetURL() const;
  12336. const String& GetVerb() const;
  12337. uint Tell() const;
  12338. void ThreadFunction();
  12339. int WeakRefs() const;
  12340. operator const Deserializer() const;
  12341. operator const RefCounted() const;
  12342. // Properties:
  12343. /* readonly */
  12344. uint availableSize;
  12345. /* readonly */
  12346. uint checksum;
  12347. /* readonly */
  12348. bool eof;
  12349. /* readonly */
  12350. String error;
  12351. /* readonly */
  12352. String name;
  12353. /* readonly */
  12354. bool open;
  12355. /* readonly */
  12356. uint position;
  12357. /* readonly */
  12358. int refs;
  12359. /* readonly */
  12360. uint size;
  12361. /* readonly */
  12362. HttpRequestState state;
  12363. /* readonly */
  12364. String url;
  12365. /* readonly */
  12366. String verb;
  12367. /* readonly */
  12368. int weakRefs;
  12369. };
  12370. class IKConstraint
  12371. {
  12372. public:
  12373. IKConstraint();
  12374. // Methods:
  12375. void AllocateNetworkState();
  12376. operator Animatable() const;
  12377. void ApplyAttributes();
  12378. void CleanupConnection(Connection);
  12379. operator Component() const;
  12380. void DrawDebugGeometry(DebugRenderer, bool);
  12381. bool GetAnimationEnabled() const;
  12382. Variant GetAttribute(const String&) const;
  12383. Variant GetAttribute(uint) const;
  12384. ValueAnimation GetAttributeAnimation(const String&) const;
  12385. float GetAttributeAnimationSpeed(const String&) const;
  12386. float GetAttributeAnimationTime(const String&) const;
  12387. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12388. Variant GetAttributeDefault(const String&) const;
  12389. Variant GetAttributeDefault(uint) const;
  12390. bool GetBlockEvents() const;
  12391. Component GetComponent(StringHash) const;
  12392. VariantMap& GetEventDataMap() const;
  12393. Object GetEventSender() const;
  12394. uint GetID() const;
  12395. bool GetInterceptNetworkUpdate(const String&) const;
  12396. Node GetNode() const;
  12397. uint GetNumAttributes() const;
  12398. uint GetNumNetworkAttributes() const;
  12399. ObjectAnimation GetObjectAnimation() const;
  12400. ResourceRef GetObjectAnimationAttr() const;
  12401. Scene GetScene() const;
  12402. float GetStiffness() const;
  12403. float GetStretchiness() const;
  12404. Object GetSubsystem(StringHash) const;
  12405. StringHash GetType() const;
  12406. bool HasEventHandlers() const;
  12407. bool HasSubscribedToEvent(Object, StringHash) const;
  12408. bool HasSubscribedToEvent(StringHash) const;
  12409. bool IsEnabled() const;
  12410. bool IsEnabledEffective() const;
  12411. bool IsInstanceOf(StringHash) const;
  12412. bool IsReplicated() const;
  12413. bool IsTemporary() const;
  12414. bool Load(Deserializer&);
  12415. bool LoadJSON(const JSONValue&);
  12416. bool LoadXML(const XMLElement&);
  12417. void MarkNetworkUpdate();
  12418. operator Object() const;
  12419. void OnEvent(Object, StringHash, VariantMap&);
  12420. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12421. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12422. void OnSetEnabled();
  12423. void PrepareNetworkUpdate();
  12424. bool ReadDeltaUpdate(Deserializer&);
  12425. bool ReadLatestDataUpdate(Deserializer&);
  12426. operator RefCounted() const;
  12427. int Refs() const;
  12428. void Remove();
  12429. void RemoveAttributeAnimation(const String&);
  12430. void RemoveInstanceDefault();
  12431. void RemoveObjectAnimation();
  12432. void ResetToDefault();
  12433. bool Save(Serializer&) const;
  12434. bool SaveDefaultAttributes() const;
  12435. bool SaveJSON(JSONValue&) const;
  12436. bool SaveXML(XMLElement&) const;
  12437. void SendEvent(StringHash);
  12438. void SendEvent(StringHash, VariantMap&);
  12439. operator Serializable() const;
  12440. void SetAnimationEnabled(bool);
  12441. void SetAnimationTime(float);
  12442. bool SetAttribute(const String&, const Variant&);
  12443. bool SetAttribute(uint, const Variant&);
  12444. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12445. void SetAttributeAnimationSpeed(const String&, float);
  12446. void SetAttributeAnimationTime(const String&, float);
  12447. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12448. void SetBlockEvents(bool);
  12449. void SetEnabled(bool);
  12450. void SetGlobalVar(StringHash, const Variant&);
  12451. void SetInstanceDefault(bool);
  12452. void SetInterceptNetworkUpdate(const String&, bool);
  12453. void SetLengthConstraints(const Vector2&);
  12454. void SetObjectAnimation(ObjectAnimation);
  12455. void SetObjectAnimationAttr(const ResourceRef&);
  12456. void SetStiffness(float);
  12457. void SetStretchiness(float);
  12458. void SetTemporary(bool);
  12459. const String& GetCategory() const;
  12460. const String& GetTypeName() const;
  12461. void UnsubscribeFromAllEvents();
  12462. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12463. void UnsubscribeFromEvent(Object, StringHash);
  12464. void UnsubscribeFromEvent(StringHash);
  12465. void UnsubscribeFromEvents(Object);
  12466. const Variant& GetGlobalVar(StringHash) const;
  12467. const VariantMap& GetGlobalVars() const;
  12468. const Vector2& GetLengthConstraints() const;
  12469. int WeakRefs() const;
  12470. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12471. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12472. void WriteLatestDataUpdate(Serializer&, uint8);
  12473. operator const Animatable() const;
  12474. operator const Component() const;
  12475. operator const Object() const;
  12476. operator const RefCounted() const;
  12477. operator const Serializable() const;
  12478. // Properties:
  12479. bool animationEnabled;
  12480. /* readonly */
  12481. Array<Variant> attributeDefaults;
  12482. /* readonly */
  12483. Array<AttributeInfo> attributeInfos;
  12484. Array<Variant> attributes;
  12485. /* readonly */
  12486. String category;
  12487. bool enabled;
  12488. /* readonly */
  12489. bool enabledEffective;
  12490. Array<Variant> globalVar;
  12491. /* readonly */
  12492. VariantMap globalVars;
  12493. /* readonly */
  12494. uint id;
  12495. /* readonly */
  12496. Node node;
  12497. /* readonly */
  12498. uint numAttributes;
  12499. ObjectAnimation objectAnimation;
  12500. /* readonly */
  12501. int refs;
  12502. /* readonly */
  12503. bool replicated;
  12504. bool temporary;
  12505. /* readonly */
  12506. StringHash type;
  12507. /* readonly */
  12508. String typeName;
  12509. /* readonly */
  12510. int weakRefs;
  12511. };
  12512. class IKEffector
  12513. {
  12514. public:
  12515. IKEffector();
  12516. // Methods:
  12517. void AllocateNetworkState();
  12518. operator Animatable() const;
  12519. void ApplyAttributes();
  12520. void CleanupConnection(Connection);
  12521. operator Component() const;
  12522. void DrawDebugGeometry(DebugRenderer, bool);
  12523. void DrawDebugGeometry(bool);
  12524. bool GetAnimationEnabled() const;
  12525. Variant GetAttribute(const String&) const;
  12526. Variant GetAttribute(uint) const;
  12527. ValueAnimation GetAttributeAnimation(const String&) const;
  12528. float GetAttributeAnimationSpeed(const String&) const;
  12529. float GetAttributeAnimationTime(const String&) const;
  12530. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12531. Variant GetAttributeDefault(const String&) const;
  12532. Variant GetAttributeDefault(uint) const;
  12533. bool GetBlockEvents() const;
  12534. uint GetChainLength() const;
  12535. Component GetComponent(StringHash) const;
  12536. VariantMap& GetEventDataMap() const;
  12537. Object GetEventSender() const;
  12538. uint GetID() const;
  12539. bool GetINHERIT_PARENT_ROTATION() const;
  12540. bool GetInterceptNetworkUpdate(const String&) const;
  12541. Node GetNode() const;
  12542. uint GetNumAttributes() const;
  12543. uint GetNumNetworkAttributes() const;
  12544. ObjectAnimation GetObjectAnimation() const;
  12545. ResourceRef GetObjectAnimationAttr() const;
  12546. float GetRotationDecay() const;
  12547. float GetRotationWeight() const;
  12548. Scene GetScene() const;
  12549. Object GetSubsystem(StringHash) const;
  12550. Node GetTargetNode() const;
  12551. Vector3 GetTargetRotationEuler() const;
  12552. StringHash GetType() const;
  12553. bool GetWEIGHT_NLERP() const;
  12554. float GetWeight() const;
  12555. bool HasEventHandlers() const;
  12556. bool HasSubscribedToEvent(Object, StringHash) const;
  12557. bool HasSubscribedToEvent(StringHash) const;
  12558. bool IsEnabled() const;
  12559. bool IsEnabledEffective() const;
  12560. bool IsInstanceOf(StringHash) const;
  12561. bool IsReplicated() const;
  12562. bool IsTemporary() const;
  12563. bool Load(Deserializer&);
  12564. bool LoadJSON(const JSONValue&);
  12565. bool LoadXML(const XMLElement&);
  12566. void MarkNetworkUpdate();
  12567. operator Object() const;
  12568. void OnEvent(Object, StringHash, VariantMap&);
  12569. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12570. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12571. void OnSetEnabled();
  12572. void PrepareNetworkUpdate();
  12573. const Quaternion& GetTargetRotation() const;
  12574. bool ReadDeltaUpdate(Deserializer&);
  12575. bool ReadLatestDataUpdate(Deserializer&);
  12576. operator RefCounted() const;
  12577. int Refs() const;
  12578. void Remove();
  12579. void RemoveAttributeAnimation(const String&);
  12580. void RemoveInstanceDefault();
  12581. void RemoveObjectAnimation();
  12582. void ResetToDefault();
  12583. bool Save(Serializer&) const;
  12584. bool SaveDefaultAttributes() const;
  12585. bool SaveJSON(JSONValue&) const;
  12586. bool SaveXML(XMLElement&) const;
  12587. void SendEvent(StringHash);
  12588. void SendEvent(StringHash, VariantMap&);
  12589. operator Serializable() const;
  12590. void SetAnimationEnabled(bool);
  12591. void SetAnimationTime(float);
  12592. bool SetAttribute(const String&, const Variant&);
  12593. bool SetAttribute(uint, const Variant&);
  12594. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12595. void SetAttributeAnimationSpeed(const String&, float);
  12596. void SetAttributeAnimationTime(const String&, float);
  12597. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12598. void SetBlockEvents(bool);
  12599. void SetChainLength(uint);
  12600. void SetEnabled(bool);
  12601. void SetGlobalVar(StringHash, const Variant&);
  12602. void SetINHERIT_PARENT_ROTATION(bool);
  12603. void SetInstanceDefault(bool);
  12604. void SetInterceptNetworkUpdate(const String&, bool);
  12605. void SetObjectAnimation(ObjectAnimation);
  12606. void SetObjectAnimationAttr(const ResourceRef&);
  12607. void SetRotationDecay(float);
  12608. void SetRotationWeight(float);
  12609. void SetTargetName(const String&);
  12610. void SetTargetNode(Node);
  12611. void SetTargetPosition(const Vector3&);
  12612. void SetTargetRotation(const Quaternion&);
  12613. void SetTargetRotationEuler(const Vector3&);
  12614. void SetTemporary(bool);
  12615. void SetWEIGHT_NLERP(bool);
  12616. void SetWeight(float);
  12617. const String& GetCategory() const;
  12618. const String& GetTargetName() const;
  12619. const String& GetTypeName() const;
  12620. void UnsubscribeFromAllEvents();
  12621. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12622. void UnsubscribeFromEvent(Object, StringHash);
  12623. void UnsubscribeFromEvent(StringHash);
  12624. void UnsubscribeFromEvents(Object);
  12625. const Variant& GetGlobalVar(StringHash) const;
  12626. const VariantMap& GetGlobalVars() const;
  12627. const Vector3& GetTargetPosition() const;
  12628. int WeakRefs() const;
  12629. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12630. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12631. void WriteLatestDataUpdate(Serializer&, uint8);
  12632. operator const Animatable() const;
  12633. operator const Component() const;
  12634. operator const Object() const;
  12635. operator const RefCounted() const;
  12636. operator const Serializable() const;
  12637. // Properties:
  12638. bool animationEnabled;
  12639. /* readonly */
  12640. Array<Variant> attributeDefaults;
  12641. /* readonly */
  12642. Array<AttributeInfo> attributeInfos;
  12643. Array<Variant> attributes;
  12644. /* readonly */
  12645. String category;
  12646. uint chainLength;
  12647. bool enabled;
  12648. /* readonly */
  12649. bool enabledEffective;
  12650. Array<Variant> globalVar;
  12651. /* readonly */
  12652. VariantMap globalVars;
  12653. /* readonly */
  12654. uint id;
  12655. /* readonly */
  12656. Node node;
  12657. /* readonly */
  12658. uint numAttributes;
  12659. ObjectAnimation objectAnimation;
  12660. /* readonly */
  12661. int refs;
  12662. /* readonly */
  12663. bool replicated;
  12664. float rotationDecay;
  12665. float rotationWeight;
  12666. String targetName;
  12667. Node targetNode;
  12668. Vector3 targetPosition;
  12669. Quaternion targetRotation;
  12670. bool temporary;
  12671. /* readonly */
  12672. StringHash type;
  12673. /* readonly */
  12674. String typeName;
  12675. /* readonly */
  12676. int weakRefs;
  12677. float weight;
  12678. };
  12679. class IKSolver
  12680. {
  12681. public:
  12682. IKSolver();
  12683. // Methods:
  12684. void AllocateNetworkState();
  12685. operator Animatable() const;
  12686. void ApplyActivePoseToScene();
  12687. void ApplyAttributes();
  12688. void ApplyOriginalPoseToActivePose();
  12689. void ApplyOriginalPoseToScene();
  12690. void ApplySceneToActivePose();
  12691. void ApplySceneToOriginalPose();
  12692. void CalculateJointRotations();
  12693. void CleanupConnection(Connection);
  12694. operator Component() const;
  12695. void DrawDebugGeometry(DebugRenderer, bool);
  12696. void DrawDebugGeometry(bool);
  12697. bool GetAUTO_SOLVE() const;
  12698. bool GetAnimationEnabled() const;
  12699. Variant GetAttribute(const String&) const;
  12700. Variant GetAttribute(uint) const;
  12701. ValueAnimation GetAttributeAnimation(const String&) const;
  12702. float GetAttributeAnimationSpeed(const String&) const;
  12703. float GetAttributeAnimationTime(const String&) const;
  12704. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12705. Variant GetAttributeDefault(const String&) const;
  12706. Variant GetAttributeDefault(uint) const;
  12707. bool GetBlockEvents() const;
  12708. bool GetCONSTRAINTS() const;
  12709. Component GetComponent(StringHash) const;
  12710. VariantMap& GetEventDataMap() const;
  12711. Object GetEventSender() const;
  12712. uint GetID() const;
  12713. bool GetInterceptNetworkUpdate(const String&) const;
  12714. bool GetJOINT_ROTATIONS() const;
  12715. uint GetMaximumIterations() const;
  12716. Node GetNode() const;
  12717. uint GetNumAttributes() const;
  12718. uint GetNumNetworkAttributes() const;
  12719. ObjectAnimation GetObjectAnimation() const;
  12720. ResourceRef GetObjectAnimationAttr() const;
  12721. Scene GetScene() const;
  12722. Object GetSubsystem(StringHash) const;
  12723. bool GetTARGET_ROTATIONS() const;
  12724. float GetTolerance() const;
  12725. StringHash GetType() const;
  12726. bool GetUPDATE_ACTIVE_POSE() const;
  12727. bool GetUPDATE_ORIGINAL_POSE() const;
  12728. bool GetUSE_ORIGINAL_POSE() const;
  12729. bool HasEventHandlers() const;
  12730. bool HasSubscribedToEvent(Object, StringHash) const;
  12731. bool HasSubscribedToEvent(StringHash) const;
  12732. bool IsEnabled() const;
  12733. bool IsEnabledEffective() const;
  12734. bool IsInstanceOf(StringHash) const;
  12735. bool IsReplicated() const;
  12736. bool IsTemporary() const;
  12737. bool Load(Deserializer&);
  12738. bool LoadJSON(const JSONValue&);
  12739. bool LoadXML(const XMLElement&);
  12740. void MarkNetworkUpdate();
  12741. operator Object() const;
  12742. void OnEvent(Object, StringHash, VariantMap&);
  12743. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12744. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12745. void OnSetEnabled();
  12746. void PrepareNetworkUpdate();
  12747. bool ReadDeltaUpdate(Deserializer&);
  12748. bool ReadLatestDataUpdate(Deserializer&);
  12749. void RebuildChainTrees();
  12750. void RecalculateSegmentLengths();
  12751. operator RefCounted() const;
  12752. int Refs() const;
  12753. void Remove();
  12754. void RemoveAttributeAnimation(const String&);
  12755. void RemoveInstanceDefault();
  12756. void RemoveObjectAnimation();
  12757. void ResetToDefault();
  12758. bool Save(Serializer&) const;
  12759. bool SaveDefaultAttributes() const;
  12760. bool SaveJSON(JSONValue&) const;
  12761. bool SaveXML(XMLElement&) const;
  12762. void SendEvent(StringHash);
  12763. void SendEvent(StringHash, VariantMap&);
  12764. operator Serializable() const;
  12765. void SetAUTO_SOLVE(bool);
  12766. void SetAnimationEnabled(bool);
  12767. void SetAnimationTime(float);
  12768. bool SetAttribute(const String&, const Variant&);
  12769. bool SetAttribute(uint, const Variant&);
  12770. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12771. void SetAttributeAnimationSpeed(const String&, float);
  12772. void SetAttributeAnimationTime(const String&, float);
  12773. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12774. void SetBlockEvents(bool);
  12775. void SetCONSTRAINTS(bool);
  12776. void SetEnabled(bool);
  12777. void SetGlobalVar(StringHash, const Variant&);
  12778. void SetInstanceDefault(bool);
  12779. void SetInterceptNetworkUpdate(const String&, bool);
  12780. void SetJOINT_ROTATIONS(bool);
  12781. void SetMaximumIterations(uint);
  12782. void SetObjectAnimation(ObjectAnimation);
  12783. void SetObjectAnimationAttr(const ResourceRef&);
  12784. void SetTARGET_ROTATIONS(bool);
  12785. void SetTemporary(bool);
  12786. void SetTolerance(float);
  12787. void SetUPDATE_ACTIVE_POSE(bool);
  12788. void SetUPDATE_ORIGINAL_POSE(bool);
  12789. void SetUSE_ORIGINAL_POSE(bool);
  12790. void Solve();
  12791. const String& GetCategory() const;
  12792. const String& GetTypeName() const;
  12793. void UnsubscribeFromAllEvents();
  12794. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12795. void UnsubscribeFromEvent(Object, StringHash);
  12796. void UnsubscribeFromEvent(StringHash);
  12797. void UnsubscribeFromEvents(Object);
  12798. const Variant& GetGlobalVar(StringHash) const;
  12799. const VariantMap& GetGlobalVars() const;
  12800. int WeakRefs() const;
  12801. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12802. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12803. void WriteLatestDataUpdate(Serializer&, uint8);
  12804. operator const Animatable() const;
  12805. operator const Component() const;
  12806. operator const Object() const;
  12807. operator const RefCounted() const;
  12808. operator const Serializable() const;
  12809. // Properties:
  12810. bool AUTO_SOLVE;
  12811. bool CONSTRAINTS;
  12812. bool JOINT_ROTATIONS;
  12813. bool TARGET_ROTATIONS;
  12814. bool UPDATE_ACTIVE_POSE;
  12815. bool UPDATE_ORIGINAL_POSE;
  12816. bool USE_ORIGINAL_POSE;
  12817. IKAlgorithm algorithm;
  12818. bool animationEnabled;
  12819. /* readonly */
  12820. Array<Variant> attributeDefaults;
  12821. /* readonly */
  12822. Array<AttributeInfo> attributeInfos;
  12823. Array<Variant> attributes;
  12824. /* readonly */
  12825. String category;
  12826. bool enabled;
  12827. /* readonly */
  12828. bool enabledEffective;
  12829. Array<Variant> globalVar;
  12830. /* readonly */
  12831. VariantMap globalVars;
  12832. /* readonly */
  12833. uint id;
  12834. uint maximumIterations;
  12835. /* readonly */
  12836. Node node;
  12837. /* readonly */
  12838. uint numAttributes;
  12839. ObjectAnimation objectAnimation;
  12840. /* readonly */
  12841. int refs;
  12842. /* readonly */
  12843. bool replicated;
  12844. bool temporary;
  12845. float tolerance;
  12846. /* readonly */
  12847. StringHash type;
  12848. /* readonly */
  12849. String typeName;
  12850. /* readonly */
  12851. int weakRefs;
  12852. };
  12853. class Image
  12854. {
  12855. public:
  12856. Image();
  12857. // Methods:
  12858. bool BeginLoad(Deserializer&);
  12859. void CleanupLevels();
  12860. void Clear(const Color&);
  12861. void ClearInt(uint);
  12862. Image ConvertToRGBA() const;
  12863. bool EndLoad();
  12864. bool FlipHorizontal();
  12865. bool FlipVertical();
  12866. AsyncLoadState GetAsyncLoadState() const;
  12867. bool GetBlockEvents() const;
  12868. uint GetComponents() const;
  12869. CompressedFormat GetCompressedFormat() const;
  12870. CompressedLevel GetCompressedLevel(uint) const;
  12871. Image GetDecompressedImage() const;
  12872. int GetDepth() const;
  12873. VariantMap& GetEventDataMap() const;
  12874. Object GetEventSender() const;
  12875. int GetHeight() const;
  12876. uint GetMemoryUse() const;
  12877. StringHash GetNameHash() const;
  12878. Image GetNextLevel() const;
  12879. Image GetNextSibling() const;
  12880. uint GetNumCompressedLevels() const;
  12881. Color GetPixel(int, int) const;
  12882. Color GetPixel(int, int, int) const;
  12883. Color GetPixelBilinear(float, float) const;
  12884. uint GetPixelInt(int, int) const;
  12885. uint GetPixelInt(int, int, int) const;
  12886. Color GetPixelTrilinear(float, float, float) const;
  12887. Image GetSubimage(const IntRect&) const;
  12888. Object GetSubsystem(StringHash) const;
  12889. StringHash GetType() const;
  12890. uint GetUseTimer();
  12891. int GetWidth() const;
  12892. bool HasAlphaChannel() const;
  12893. bool HasEventHandlers() const;
  12894. bool HasSubscribedToEvent(Object, StringHash) const;
  12895. bool HasSubscribedToEvent(StringHash) const;
  12896. bool IsArray() const;
  12897. bool IsCompressed() const;
  12898. bool IsCubemap() const;
  12899. bool IsInstanceOf(StringHash) const;
  12900. bool IsSRGB() const;
  12901. bool Load(Deserializer&);
  12902. bool Load(File);
  12903. bool Load(VectorBuffer&);
  12904. bool Load(const String&);
  12905. bool LoadColorLUT(Deserializer&);
  12906. bool LoadFile(const String&);
  12907. operator Object() const;
  12908. void OnEvent(Object, StringHash, VariantMap&);
  12909. void PrecalculateLevels();
  12910. operator RefCounted() const;
  12911. int Refs() const;
  12912. void ResetUseTimer();
  12913. bool Resize(int, int);
  12914. operator Resource() const;
  12915. bool Save(File) const;
  12916. bool Save(Serializer&) const;
  12917. bool Save(VectorBuffer&) const;
  12918. bool Save(const String&) const;
  12919. bool SaveBMP(const String&) const;
  12920. bool SaveDDS(const String&) const;
  12921. bool SaveFile(const String&) const;
  12922. bool SaveJPG(const String&, int) const;
  12923. bool SavePNG(const String&) const;
  12924. bool SaveTGA(const String&) const;
  12925. bool SaveWEBP(const String&, float = 0.0f) const;
  12926. void SendEvent(StringHash);
  12927. void SendEvent(StringHash, VariantMap&);
  12928. void SetAsyncLoadState(AsyncLoadState);
  12929. void SetBlockEvents(bool);
  12930. void SetGlobalVar(StringHash, const Variant&);
  12931. void SetMemoryUse(uint);
  12932. void SetName(const String&);
  12933. void SetPixel(int, int, const Color&);
  12934. void SetPixel(int, int, int, const Color&);
  12935. void SetPixelInt(int, int, int, uint);
  12936. void SetPixelInt(int, int, uint);
  12937. bool SetSize(int, int, int, uint);
  12938. bool SetSize(int, int, uint);
  12939. bool SetSubimage(Image, const IntRect&);
  12940. const String& GetCategory() const;
  12941. const String& GetName() const;
  12942. const String& GetTypeName() const;
  12943. void UnsubscribeFromAllEvents();
  12944. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12945. void UnsubscribeFromEvent(Object, StringHash);
  12946. void UnsubscribeFromEvent(StringHash);
  12947. void UnsubscribeFromEvents(Object);
  12948. const Variant& GetGlobalVar(StringHash) const;
  12949. const VariantMap& GetGlobalVars() const;
  12950. int WeakRefs() const;
  12951. operator const Object() const;
  12952. operator const RefCounted() const;
  12953. operator const Resource() const;
  12954. // Properties:
  12955. /* readonly */
  12956. bool array;
  12957. /* readonly */
  12958. String category;
  12959. /* readonly */
  12960. uint components;
  12961. /* readonly */
  12962. bool compressed;
  12963. /* readonly */
  12964. CompressedFormat compressedFormat;
  12965. /* readonly */
  12966. bool cubemap;
  12967. /* readonly */
  12968. int depth;
  12969. Array<Variant> globalVar;
  12970. /* readonly */
  12971. VariantMap globalVars;
  12972. /* readonly */
  12973. bool hasAlphaChannel;
  12974. /* readonly */
  12975. int height;
  12976. /* readonly */
  12977. uint memoryUse;
  12978. String name;
  12979. /* readonly */
  12980. uint numCompressedLevels;
  12981. /* readonly */
  12982. int refs;
  12983. /* readonly */
  12984. bool sRGB;
  12985. /* readonly */
  12986. StringHash type;
  12987. /* readonly */
  12988. String typeName;
  12989. /* readonly */
  12990. uint useTimer;
  12991. /* readonly */
  12992. int weakRefs;
  12993. /* readonly */
  12994. int width;
  12995. };
  12996. class IndexBuffer
  12997. {
  12998. public:
  12999. IndexBuffer(bool = false);
  13000. // Methods:
  13001. void ClearDataLost();
  13002. bool GetBlockEvents() const;
  13003. VectorBuffer GetData();
  13004. VariantMap& GetEventDataMap() const;
  13005. Object GetEventSender() const;
  13006. uint GetGPUObjectName() const;
  13007. Graphics GetGraphics() const;
  13008. uint GetIndexCount() const;
  13009. uint GetIndexSize() const;
  13010. Object GetSubsystem(StringHash) const;
  13011. StringHash GetType() const;
  13012. bool GetUsedVertexRange(uint, uint, uint&, uint&);
  13013. bool HasEventHandlers() const;
  13014. bool HasPendingData() const;
  13015. bool HasSubscribedToEvent(Object, StringHash) const;
  13016. bool HasSubscribedToEvent(StringHash) const;
  13017. bool IsDataLost() const;
  13018. bool IsDynamic() const;
  13019. bool IsInstanceOf(StringHash) const;
  13020. bool IsLocked() const;
  13021. bool IsShadowed() const;
  13022. operator Object() const;
  13023. void OnDeviceLost();
  13024. void OnDeviceReset();
  13025. void OnEvent(Object, StringHash, VariantMap&);
  13026. operator RefCounted() const;
  13027. int Refs() const;
  13028. void Release();
  13029. void SendEvent(StringHash);
  13030. void SendEvent(StringHash, VariantMap&);
  13031. void SetBlockEvents(bool);
  13032. bool SetData(VectorBuffer&);
  13033. bool SetDataRange(VectorBuffer&, uint, uint, bool discard = false);
  13034. void SetGlobalVar(StringHash, const Variant&);
  13035. void SetShadowed(bool);
  13036. bool SetSize(uint, bool, bool = false);
  13037. const String& GetCategory() const;
  13038. const String& GetTypeName() const;
  13039. void Unlock();
  13040. void UnsubscribeFromAllEvents();
  13041. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13042. void UnsubscribeFromEvent(Object, StringHash);
  13043. void UnsubscribeFromEvent(StringHash);
  13044. void UnsubscribeFromEvents(Object);
  13045. const Variant& GetGlobalVar(StringHash) const;
  13046. const VariantMap& GetGlobalVars() const;
  13047. int WeakRefs() const;
  13048. operator const Object() const;
  13049. operator const RefCounted() const;
  13050. // Properties:
  13051. /* readonly */
  13052. String category;
  13053. /* readonly */
  13054. bool dataLost;
  13055. /* readonly */
  13056. bool dynamic;
  13057. Array<Variant> globalVar;
  13058. /* readonly */
  13059. VariantMap globalVars;
  13060. /* readonly */
  13061. uint indexCount;
  13062. /* readonly */
  13063. uint indexSize;
  13064. /* readonly */
  13065. int refs;
  13066. bool shadowed;
  13067. /* readonly */
  13068. StringHash type;
  13069. /* readonly */
  13070. String typeName;
  13071. /* readonly */
  13072. int weakRefs;
  13073. };
  13074. class IndexBufferDesc
  13075. {
  13076. public:
  13077. ~IndexBufferDesc();
  13078. IndexBufferDesc();
  13079. // Methods:
  13080. IndexBufferDesc& operator=(const IndexBufferDesc&);
  13081. // Properties:
  13082. uint dataSize;
  13083. uint indexCount;
  13084. uint indexSize;
  13085. };
  13086. class Input
  13087. {
  13088. public:
  13089. Input();
  13090. // Methods:
  13091. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  13092. void CenterMousePosition();
  13093. bool GetBlockEvents() const;
  13094. VariantMap& GetEventDataMap() const;
  13095. Object GetEventSender() const;
  13096. Vector2 GetInputScale() const;
  13097. JoystickState GetJoystick(int);
  13098. JoystickState GetJoystickByIndex(uint);
  13099. JoystickState GetJoystickByName(const String&);
  13100. bool GetKeyDown(uint) const;
  13101. uint GetKeyFromName(const String&) const;
  13102. uint GetKeyFromScancode(uint) const;
  13103. String GetKeyName(uint) const;
  13104. bool GetKeyPress(uint) const;
  13105. bool GetMouseButtonDown(uint) const;
  13106. bool GetMouseButtonPress(uint) const;
  13107. MouseMode GetMouseMode() const;
  13108. IntVector2 GetMouseMove() const;
  13109. int GetMouseMoveWheel() const;
  13110. int GetMouseMoveX() const;
  13111. int GetMouseMoveY() const;
  13112. IntVector2 GetMousePosition() const;
  13113. uint GetNumJoysticks() const;
  13114. uint GetNumTouches() const;
  13115. bool GetQualifierDown(uint) const;
  13116. bool GetQualifierPress(uint) const;
  13117. uint GetQualifiers() const;
  13118. bool GetScancodeDown(uint) const;
  13119. uint GetScancodeFromKey(uint) const;
  13120. uint GetScancodeFromName(const String&) const;
  13121. String GetScancodeName(uint) const;
  13122. bool GetScancodePress(uint) const;
  13123. bool GetScreenKeyboardSupport() const;
  13124. Object GetSubsystem(StringHash) const;
  13125. bool GetToggleFullscreen() const;
  13126. TouchState GetTouch(uint) const;
  13127. bool GetTouchEmulation() const;
  13128. StringHash GetType() const;
  13129. bool HasEventHandlers() const;
  13130. bool HasFocus();
  13131. bool HasSubscribedToEvent(Object, StringHash) const;
  13132. bool HasSubscribedToEvent(StringHash) const;
  13133. bool IsInstanceOf(StringHash) const;
  13134. bool IsMinimized() const;
  13135. bool IsMouseGrabbed() const;
  13136. bool IsMouseLocked() const;
  13137. bool IsMouseVisible() const;
  13138. bool IsScreenJoystickVisible(int) const;
  13139. bool IsScreenKeyboardVisible() const;
  13140. uint LoadGestures(Deserializer&);
  13141. uint LoadGestures(File);
  13142. uint LoadGestures(VectorBuffer&);
  13143. operator Object() const;
  13144. void OnEvent(Object, StringHash, VariantMap&);
  13145. bool RecordGesture();
  13146. operator RefCounted() const;
  13147. int Refs() const;
  13148. void RemoveAllGestures();
  13149. bool RemoveGesture(uint);
  13150. bool RemoveScreenJoystick(int);
  13151. void ResetMouseGrabbed();
  13152. void ResetMouseMode();
  13153. void ResetMouseVisible();
  13154. bool SaveGesture(File, uint);
  13155. bool SaveGesture(Serializer&, uint);
  13156. bool SaveGesture(VectorBuffer&, uint);
  13157. bool SaveGestures(File);
  13158. bool SaveGestures(Serializer&);
  13159. bool SaveGestures(VectorBuffer&);
  13160. void SendEvent(StringHash);
  13161. void SendEvent(StringHash, VariantMap&);
  13162. void SetBlockEvents(bool);
  13163. void SetGlobalVar(StringHash, const Variant&);
  13164. void SetMouseGrabbed(bool, bool = false);
  13165. void SetMouseMode(MouseMode, bool = false);
  13166. void SetMousePosition(const IntVector2&);
  13167. void SetMouseVisible(bool, bool = false);
  13168. void SetScreenJoystickVisible(int, bool);
  13169. void SetScreenKeyboardVisible(bool);
  13170. void SetToggleFullscreen(bool);
  13171. void SetTouchEmulation(bool);
  13172. const String& GetCategory() const;
  13173. const String& GetTypeName() const;
  13174. void UnsubscribeFromAllEvents();
  13175. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13176. void UnsubscribeFromEvent(Object, StringHash);
  13177. void UnsubscribeFromEvent(StringHash);
  13178. void UnsubscribeFromEvents(Object);
  13179. void Update();
  13180. const Variant& GetGlobalVar(StringHash) const;
  13181. const VariantMap& GetGlobalVars() const;
  13182. int WeakRefs() const;
  13183. operator const Object() const;
  13184. operator const RefCounted() const;
  13185. // Properties:
  13186. /* readonly */
  13187. String category;
  13188. /* readonly */
  13189. bool focus;
  13190. Array<Variant> globalVar;
  13191. /* readonly */
  13192. VariantMap globalVars;
  13193. /* readonly */
  13194. Vector2 inputScale;
  13195. /* readonly */
  13196. Array<JoystickState> joysticks;
  13197. /* readonly */
  13198. Array<JoystickState> joysticksByIndex;
  13199. /* readonly */
  13200. Array<JoystickState> joysticksByName;
  13201. /* readonly */
  13202. Array<bool> keyDown;
  13203. /* readonly */
  13204. Array<bool> keyPress;
  13205. /* readonly */
  13206. bool minimized;
  13207. /* readonly */
  13208. Array<bool> mouseButtonDown;
  13209. /* readonly */
  13210. Array<bool> mouseButtonPress;
  13211. bool mouseGrabbed;
  13212. /* readonly */
  13213. bool mouseLocked;
  13214. MouseMode mouseMode;
  13215. /* readonly */
  13216. IntVector2 mouseMove;
  13217. /* readonly */
  13218. int mouseMoveWheel;
  13219. /* readonly */
  13220. int mouseMoveX;
  13221. /* readonly */
  13222. int mouseMoveY;
  13223. IntVector2 mousePosition;
  13224. bool mouseVisible;
  13225. /* readonly */
  13226. uint numJoysticks;
  13227. /* readonly */
  13228. uint numTouches;
  13229. /* readonly */
  13230. Array<bool> qualifierDown;
  13231. /* readonly */
  13232. Array<bool> qualifierPress;
  13233. /* readonly */
  13234. uint qualifiers;
  13235. /* readonly */
  13236. int refs;
  13237. /* readonly */
  13238. Array<bool> scancodeDown;
  13239. /* readonly */
  13240. Array<bool> scancodePress;
  13241. Array<bool> screenJoystickVisible;
  13242. /* readonly */
  13243. bool screenKeyboardSupport;
  13244. bool screenKeyboardVisible;
  13245. bool toggleFullscreen;
  13246. bool touchEmulation;
  13247. /* readonly */
  13248. Array<TouchState> touches;
  13249. /* readonly */
  13250. StringHash type;
  13251. /* readonly */
  13252. String typeName;
  13253. /* readonly */
  13254. int weakRefs;
  13255. };
  13256. class InstanceData
  13257. {
  13258. public:
  13259. ~InstanceData();
  13260. InstanceData();
  13261. // Methods:
  13262. InstanceData& operator=(const InstanceData&);
  13263. // Properties:
  13264. float distance;
  13265. };
  13266. class IntRect
  13267. {
  13268. public:
  13269. IntRect();
  13270. IntRect(const IntVector2&in, const IntVector2&in);
  13271. IntRect(int, int, int, int);
  13272. IntRect(int[]&inout);
  13273. // Methods:
  13274. IntRect operator+(const IntRect&) const;
  13275. IntRect& operator+=(const IntRect&);
  13276. IntRect& operator=(const IntRect&);
  13277. bool operator==(const IntRect&) const;
  13278. int Bottom() const;
  13279. void Clip(const IntRect&);
  13280. int Height() const;
  13281. Intersection IsInside(const IntRect&) const;
  13282. Intersection IsInside(const IntVector2&) const;
  13283. int Left() const;
  13284. IntVector2 Max() const;
  13285. void Merge(const IntRect&);
  13286. IntVector2 Min() const;
  13287. int Right() const;
  13288. IntVector2 Size() const;
  13289. String ToString() const;
  13290. int Top() const;
  13291. int Width() const;
  13292. // Properties:
  13293. int bottom;
  13294. /* readonly */
  13295. Array<int> data;
  13296. /* readonly */
  13297. int height;
  13298. int left;
  13299. int right;
  13300. /* readonly */
  13301. IntVector2 size;
  13302. int top;
  13303. /* readonly */
  13304. int width;
  13305. // Constants:
  13306. static const IntRect ZERO;
  13307. };
  13308. class IntVector2
  13309. {
  13310. public:
  13311. IntVector2();
  13312. IntVector2(int, int);
  13313. IntVector2(const IntVector2&in);
  13314. IntVector2(int[]&inout);
  13315. // Methods:
  13316. IntVector2 operator+(const IntVector2&) const;
  13317. IntVector2& operator+=(const IntVector2&);
  13318. IntVector2& operator=(const IntVector2&);
  13319. bool operator==(const IntVector2&) const;
  13320. float Length() const;
  13321. uint ToHash() const;
  13322. String ToString() const;
  13323. // Properties:
  13324. /* readonly */
  13325. Array<int> data;
  13326. int x;
  13327. int y;
  13328. // Constants:
  13329. static const IntVector2 DOWN;
  13330. static const IntVector2 LEFT;
  13331. static const IntVector2 ONE;
  13332. static const IntVector2 RIGHT;
  13333. static const IntVector2 UP;
  13334. static const IntVector2 ZERO;
  13335. };
  13336. class IntVector3
  13337. {
  13338. public:
  13339. IntVector3();
  13340. IntVector3(int, int, int);
  13341. IntVector3(const IntVector3&in);
  13342. IntVector3(int[]&inout);
  13343. // Methods:
  13344. IntVector3 operator+(const IntVector3&) const;
  13345. IntVector3& operator+=(const IntVector3&);
  13346. IntVector3& operator=(const IntVector3&);
  13347. bool operator==(const IntVector3&) const;
  13348. float Length() const;
  13349. uint ToHash() const;
  13350. String ToString() const;
  13351. // Properties:
  13352. /* readonly */
  13353. Array<int> data;
  13354. int x;
  13355. int y;
  13356. int z;
  13357. // Constants:
  13358. static const IntVector3 BACK;
  13359. static const IntVector3 DOWN;
  13360. static const IntVector3 FORWARD;
  13361. static const IntVector3 LEFT;
  13362. static const IntVector3 ONE;
  13363. static const IntVector3 RIGHT;
  13364. static const IntVector3 UP;
  13365. static const IntVector3 ZERO;
  13366. };
  13367. class JSONFile
  13368. {
  13369. public:
  13370. JSONFile();
  13371. // Methods:
  13372. bool BeginLoad(Deserializer&);
  13373. bool EndLoad();
  13374. bool FromString(const String&);
  13375. AsyncLoadState GetAsyncLoadState() const;
  13376. bool GetBlockEvents() const;
  13377. VariantMap& GetEventDataMap() const;
  13378. Object GetEventSender() const;
  13379. uint GetMemoryUse() const;
  13380. StringHash GetNameHash() const;
  13381. JSONValue& GetRoot();
  13382. Object GetSubsystem(StringHash) const;
  13383. StringHash GetType() const;
  13384. uint GetUseTimer();
  13385. bool HasEventHandlers() const;
  13386. bool HasSubscribedToEvent(Object, StringHash) const;
  13387. bool HasSubscribedToEvent(StringHash) const;
  13388. bool IsInstanceOf(StringHash) const;
  13389. const JSONValue& GetRoot() const;
  13390. bool Load(Deserializer&);
  13391. bool Load(File);
  13392. bool Load(VectorBuffer&);
  13393. bool Load(const String&);
  13394. bool LoadFile(const String&);
  13395. operator Object() const;
  13396. void OnEvent(Object, StringHash, VariantMap&);
  13397. operator RefCounted() const;
  13398. int Refs() const;
  13399. void ResetUseTimer();
  13400. operator Resource() const;
  13401. bool Save(File) const;
  13402. bool Save(Serializer&) const;
  13403. bool Save(Serializer&, const String&) const;
  13404. bool Save(VectorBuffer&) const;
  13405. bool Save(const String&) const;
  13406. bool SaveFile(const String&) const;
  13407. void SendEvent(StringHash);
  13408. void SendEvent(StringHash, VariantMap&);
  13409. void SetAsyncLoadState(AsyncLoadState);
  13410. void SetBlockEvents(bool);
  13411. void SetGlobalVar(StringHash, const Variant&);
  13412. void SetMemoryUse(uint);
  13413. void SetName(const String&);
  13414. const String& GetCategory() const;
  13415. const String& GetName() const;
  13416. const String& GetTypeName() const;
  13417. String ToString(const String& = "\t") const;
  13418. void UnsubscribeFromAllEvents();
  13419. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13420. void UnsubscribeFromEvent(Object, StringHash);
  13421. void UnsubscribeFromEvent(StringHash);
  13422. void UnsubscribeFromEvents(Object);
  13423. const Variant& GetGlobalVar(StringHash) const;
  13424. const VariantMap& GetGlobalVars() const;
  13425. int WeakRefs() const;
  13426. operator const Object() const;
  13427. operator const RefCounted() const;
  13428. operator const Resource() const;
  13429. // Properties:
  13430. /* readonly */
  13431. String category;
  13432. Array<Variant> globalVar;
  13433. /* readonly */
  13434. VariantMap globalVars;
  13435. /* readonly */
  13436. uint memoryUse;
  13437. String name;
  13438. /* readonly */
  13439. int refs;
  13440. /* readonly */
  13441. JSONValue root;
  13442. /* readonly */
  13443. StringHash type;
  13444. /* readonly */
  13445. String typeName;
  13446. /* readonly */
  13447. uint useTimer;
  13448. /* readonly */
  13449. int weakRefs;
  13450. };
  13451. class JSONValue
  13452. {
  13453. public:
  13454. ~JSONValue();
  13455. JSONValue();
  13456. JSONValue(bool);
  13457. JSONValue(int);
  13458. JSONValue(uint);
  13459. JSONValue(float);
  13460. JSONValue(double);
  13461. JSONValue(const String&in);
  13462. JSONValue(const JSONValue&in);
  13463. // Methods:
  13464. JSONValue& operator=(bool);
  13465. JSONValue& operator=(const JSONValue&);
  13466. JSONValue& operator=(const String&);
  13467. JSONValue& operator=(double);
  13468. JSONValue& operator=(float);
  13469. JSONValue& operator=(int);
  13470. JSONValue& operator=(uint);
  13471. JSONValue& operator[](const String&);
  13472. JSONValue& operator[](uint);
  13473. void Clear();
  13474. bool Contains(const String&) const;
  13475. bool Erase(const String&);
  13476. void Erase(uint, uint = 1);
  13477. bool GetBool(bool = false) const;
  13478. double GetDouble(double = 0.0) const;
  13479. float GetFloat(float = 0.0f) const;
  13480. int GetInt(int = 0) const;
  13481. JSONNumberType GetNumberType() const;
  13482. String GetNumberTypeName() const;
  13483. uint GetUInt(uint = 0) const;
  13484. JSONValueType GetValueType() const;
  13485. String GetValueTypeName() const;
  13486. Variant GetVariant() const;
  13487. VariantMap GetVariantMap() const;
  13488. Variant GetVariantValue(VariantType) const;
  13489. void Insert(uint, const JSONValue&);
  13490. bool IsArray() const;
  13491. bool IsBool() const;
  13492. bool IsNull() const;
  13493. bool IsNumber() const;
  13494. bool IsObject() const;
  13495. bool IsString() const;
  13496. const JSONValue& operator[](const String&) const;
  13497. const JSONValue& operator[](uint) const;
  13498. const JSONValue& Get(const String&) const;
  13499. void Pop();
  13500. void Push(const JSONValue&);
  13501. void Resize(uint);
  13502. void Set(const String&, const JSONValue&);
  13503. void SetType(JSONValueType, JSONNumberType = JSONNT_NAN);
  13504. void SetVariant(const Variant&);
  13505. void SetVariantMap(const VariantMap&);
  13506. void SetVariantValue(const Variant&);
  13507. uint Size() const;
  13508. const String& GetString(const String& = String :: EMPTY) const;
  13509. // Properties:
  13510. /* readonly */
  13511. bool isArray;
  13512. /* readonly */
  13513. bool isBool;
  13514. /* readonly */
  13515. bool isNull;
  13516. /* readonly */
  13517. bool isNumber;
  13518. /* readonly */
  13519. bool isObject;
  13520. /* readonly */
  13521. bool isString;
  13522. /* readonly */
  13523. Array<String> keys;
  13524. /* readonly */
  13525. JSONNumberType numberType;
  13526. /* readonly */
  13527. String numberTypeName;
  13528. /* readonly */
  13529. uint size;
  13530. /* readonly */
  13531. JSONValueType valueType;
  13532. /* readonly */
  13533. String valueTypeName;
  13534. /* readonly */
  13535. Array<JSONValue> values;
  13536. // Constants:
  13537. static const JSONValue EMPTY;
  13538. };
  13539. class JoystickState
  13540. {
  13541. public:
  13542. // Methods:
  13543. JoystickState& operator=(const JoystickState&);
  13544. float GetAxisPosition(uint) const;
  13545. bool GetButtonDown(uint) const;
  13546. bool GetButtonPress(uint) const;
  13547. int GetHatPosition(uint) const;
  13548. uint GetNumAxes() const;
  13549. uint GetNumButtons() const;
  13550. uint GetNumHats() const;
  13551. void Initialize(uint, uint, uint);
  13552. bool IsController() const;
  13553. void Reset();
  13554. // Properties:
  13555. /* readonly */
  13556. Array<float> axisPosition;
  13557. /* readonly */
  13558. Array<bool> buttonDown;
  13559. /* readonly */
  13560. Array<bool> buttonPress;
  13561. /* readonly */
  13562. bool controller;
  13563. /* readonly */
  13564. Array<int> hatPosition;
  13565. int joystickID;
  13566. String name;
  13567. /* readonly */
  13568. uint numAxes;
  13569. /* readonly */
  13570. uint numButtons;
  13571. /* readonly */
  13572. uint numHats;
  13573. };
  13574. class Light
  13575. {
  13576. public:
  13577. Light();
  13578. // Methods:
  13579. void AddLight(Light);
  13580. void AddVertexLight(Light);
  13581. void AllocateNetworkState();
  13582. operator Animatable() const;
  13583. void ApplyAttributes();
  13584. const BiasParameters& GetShadowBias() const;
  13585. const BoundingBox& GetBoundingBox() const;
  13586. const BoundingBox& GetWorldBoundingBox();
  13587. const CascadeParameters& GetShadowCascade() const;
  13588. void CleanupConnection(Connection);
  13589. const Color& GetColor() const;
  13590. operator Component() const;
  13591. void DrawDebugGeometry(DebugRenderer, bool);
  13592. bool DrawOcclusion(OcclusionBuffer);
  13593. operator Drawable() const;
  13594. const FocusParameters& GetShadowFocus() const;
  13595. bool GetAnimationEnabled() const;
  13596. float GetAspectRatio() const;
  13597. Variant GetAttribute(const String&) const;
  13598. Variant GetAttribute(uint) const;
  13599. ValueAnimation GetAttributeAnimation(const String&) const;
  13600. float GetAttributeAnimationSpeed(const String&) const;
  13601. float GetAttributeAnimationTime(const String&) const;
  13602. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13603. Variant GetAttributeDefault(const String&) const;
  13604. Variant GetAttributeDefault(uint) const;
  13605. bool GetBlockEvents() const;
  13606. float GetBrightness() const;
  13607. bool GetCastShadows() const;
  13608. Color GetColorFromTemperature() const;
  13609. Component GetComponent(StringHash) const;
  13610. float GetDistance() const;
  13611. float GetDrawDistance() const;
  13612. uint8 GetDrawableFlags() const;
  13613. Color GetEffectiveColor() const;
  13614. float GetEffectiveSpecularIntensity() const;
  13615. VariantMap& GetEventDataMap() const;
  13616. Object GetEventSender() const;
  13617. float GetFadeDistance() const;
  13618. Light GetFirstLight() const;
  13619. float GetFov() const;
  13620. Frustum GetFrustum() const;
  13621. uint GetID() const;
  13622. float GetIntensityDivisor(float = 1.0f) const;
  13623. bool GetInterceptNetworkUpdate(const String&) const;
  13624. float GetLength() const;
  13625. uint GetLightMask() const;
  13626. LightType GetLightType() const;
  13627. Array<Light> GetLights() const;
  13628. float GetLodBias() const;
  13629. float GetLodDistance() const;
  13630. Geometry GetLodGeometry(uint, uint);
  13631. uint GetMaxLights() const;
  13632. float GetMaxZ() const;
  13633. float GetMinZ() const;
  13634. Node GetNode() const;
  13635. uint GetNumAttributes() const;
  13636. uint GetNumNetworkAttributes() const;
  13637. uint GetNumOccluderTriangles();
  13638. int GetNumShadowSplits() const;
  13639. ObjectAnimation GetObjectAnimation() const;
  13640. ResourceRef GetObjectAnimationAttr() const;
  13641. bool GetPerVertex() const;
  13642. float GetRadius() const;
  13643. Texture GetRampTexture() const;
  13644. ResourceRef GetRampTextureAttr() const;
  13645. float GetRange() const;
  13646. Scene GetScene() const;
  13647. float GetShadowDistance() const;
  13648. float GetShadowFadeDistance() const;
  13649. float GetShadowIntensity() const;
  13650. uint GetShadowMask() const;
  13651. float GetShadowMaxExtrusion() const;
  13652. float GetShadowNearFarRatio() const;
  13653. float GetShadowResolution() const;
  13654. Texture GetShapeTexture() const;
  13655. ResourceRef GetShapeTextureAttr() const;
  13656. float GetSortValue() const;
  13657. float GetSpecularIntensity() const;
  13658. Object GetSubsystem(StringHash) const;
  13659. float GetTemperature() const;
  13660. StringHash GetType() const;
  13661. UpdateGeometryType GetUpdateGeometryType();
  13662. bool GetUsePhysicalValues() const;
  13663. Array<Light> GetVertexLights() const;
  13664. uint GetViewMask() const;
  13665. Frustum GetViewSpaceFrustum(const Matrix3x4&) const;
  13666. Zone GetZone() const;
  13667. uint GetZoneMask() const;
  13668. bool HasBasePass(uint) const;
  13669. bool HasEventHandlers() const;
  13670. bool HasSubscribedToEvent(Object, StringHash) const;
  13671. bool HasSubscribedToEvent(StringHash) const;
  13672. bool IsEnabled() const;
  13673. bool IsEnabledEffective() const;
  13674. bool IsInView() const;
  13675. bool IsInView(Camera) const;
  13676. bool IsInView(const FrameInfo&, bool = false) const;
  13677. bool IsInstanceOf(StringHash) const;
  13678. bool IsNegative() const;
  13679. bool IsOccludee() const;
  13680. bool IsOccluder() const;
  13681. bool IsReplicated() const;
  13682. bool IsTemporary() const;
  13683. bool IsZoneDirty() const;
  13684. void LimitLights();
  13685. void LimitVertexLights(bool);
  13686. bool Load(Deserializer&);
  13687. bool LoadJSON(const JSONValue&);
  13688. bool LoadXML(const XMLElement&);
  13689. void MarkForUpdate();
  13690. void MarkInView(const FrameInfo&);
  13691. void MarkInView(uint);
  13692. void MarkNetworkUpdate();
  13693. const Matrix3x4& GetVolumeTransform(Camera);
  13694. operator Object() const;
  13695. void OnEvent(Object, StringHash, VariantMap&);
  13696. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  13697. void OnSetAttribute(const AttributeInfo&, const Variant&);
  13698. void OnSetEnabled();
  13699. void PrepareNetworkUpdate();
  13700. bool ReadDeltaUpdate(Deserializer&);
  13701. bool ReadLatestDataUpdate(Deserializer&);
  13702. operator RefCounted() const;
  13703. int Refs() const;
  13704. void Remove();
  13705. void RemoveAttributeAnimation(const String&);
  13706. void RemoveInstanceDefault();
  13707. void RemoveObjectAnimation();
  13708. void ResetToDefault();
  13709. bool Save(Serializer&) const;
  13710. bool SaveDefaultAttributes() const;
  13711. bool SaveJSON(JSONValue&) const;
  13712. bool SaveXML(XMLElement&) const;
  13713. void SendEvent(StringHash);
  13714. void SendEvent(StringHash, VariantMap&);
  13715. operator Serializable() const;
  13716. void SetAnimationEnabled(bool);
  13717. void SetAnimationTime(float);
  13718. void SetAspectRatio(float);
  13719. bool SetAttribute(const String&, const Variant&);
  13720. bool SetAttribute(uint, const Variant&);
  13721. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13722. void SetAttributeAnimationSpeed(const String&, float);
  13723. void SetAttributeAnimationTime(const String&, float);
  13724. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13725. void SetBasePass(uint);
  13726. void SetBlockEvents(bool);
  13727. void SetBrightness(float);
  13728. void SetCastShadows(bool);
  13729. void SetColor(const Color&);
  13730. void SetDrawDistance(float);
  13731. void SetEnabled(bool);
  13732. void SetFadeDistance(float);
  13733. void SetFov(float);
  13734. void SetGlobalVar(StringHash, const Variant&);
  13735. void SetInstanceDefault(bool);
  13736. void SetIntensitySortValue(const BoundingBox&);
  13737. void SetIntensitySortValue(float);
  13738. void SetInterceptNetworkUpdate(const String&, bool);
  13739. void SetLength(float);
  13740. void SetLightMask(uint);
  13741. void SetLightType(LightType);
  13742. void SetLodBias(float);
  13743. void SetMaxLights(uint);
  13744. void SetMinMaxZ(float, float);
  13745. void SetObjectAnimation(ObjectAnimation);
  13746. void SetObjectAnimationAttr(const ResourceRef&);
  13747. void SetOccludee(bool);
  13748. void SetOccluder(bool);
  13749. void SetPerVertex(bool);
  13750. void SetRadius(float);
  13751. void SetRampTexture(Texture);
  13752. void SetRampTextureAttr(const ResourceRef&);
  13753. void SetRange(float);
  13754. void SetShadowBias(const BiasParameters&);
  13755. void SetShadowCascade(const CascadeParameters&);
  13756. void SetShadowDistance(float);
  13757. void SetShadowFadeDistance(float);
  13758. void SetShadowFocus(const FocusParameters&);
  13759. void SetShadowIntensity(float);
  13760. void SetShadowMask(uint);
  13761. void SetShadowMaxExtrusion(float);
  13762. void SetShadowNearFarRatio(float);
  13763. void SetShadowResolution(float);
  13764. void SetShapeTexture(Texture);
  13765. void SetShapeTextureAttr(const ResourceRef&);
  13766. void SetSortValue(float);
  13767. void SetSpecularIntensity(float);
  13768. void SetTemperature(float);
  13769. void SetTemporary(bool);
  13770. void SetUsePhysicalValues(bool);
  13771. void SetViewMask(uint);
  13772. void SetZone(Zone, bool = false);
  13773. void SetZoneMask(uint);
  13774. const String& GetCategory() const;
  13775. const String& GetTypeName() const;
  13776. void UnsubscribeFromAllEvents();
  13777. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13778. void UnsubscribeFromEvent(Object, StringHash);
  13779. void UnsubscribeFromEvent(StringHash);
  13780. void UnsubscribeFromEvents(Object);
  13781. void Update(const FrameInfo&);
  13782. void UpdateBatches(const FrameInfo&);
  13783. void UpdateGeometry(const FrameInfo&);
  13784. const Variant& GetGlobalVar(StringHash) const;
  13785. const VariantMap& GetGlobalVars() const;
  13786. int WeakRefs() const;
  13787. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  13788. void WriteInitialDeltaUpdate(Serializer&, uint8);
  13789. void WriteLatestDataUpdate(Serializer&, uint8);
  13790. operator const Animatable() const;
  13791. operator const Component() const;
  13792. operator const Drawable() const;
  13793. operator const Object() const;
  13794. operator const RefCounted() const;
  13795. operator const Serializable() const;
  13796. // Properties:
  13797. bool animationEnabled;
  13798. float aspectRatio;
  13799. /* readonly */
  13800. Array<Variant> attributeDefaults;
  13801. /* readonly */
  13802. Array<AttributeInfo> attributeInfos;
  13803. Array<Variant> attributes;
  13804. /* readonly */
  13805. BoundingBox boundingBox;
  13806. float brightness;
  13807. bool castShadows;
  13808. /* readonly */
  13809. String category;
  13810. Color color;
  13811. /* readonly */
  13812. Color colorFromTemperature;
  13813. float drawDistance;
  13814. /* readonly */
  13815. Color effectiveColor;
  13816. /* readonly */
  13817. float effectiveSpecularIntensity;
  13818. bool enabled;
  13819. /* readonly */
  13820. bool enabledEffective;
  13821. float fadeDistance;
  13822. float fov;
  13823. /* readonly */
  13824. Frustum frustum;
  13825. Array<Variant> globalVar;
  13826. /* readonly */
  13827. VariantMap globalVars;
  13828. /* readonly */
  13829. uint id;
  13830. /* readonly */
  13831. bool inView;
  13832. float length;
  13833. uint lightMask;
  13834. LightType lightType;
  13835. float lodBias;
  13836. uint maxLights;
  13837. /* readonly */
  13838. bool negative;
  13839. /* readonly */
  13840. Node node;
  13841. /* readonly */
  13842. uint numAttributes;
  13843. /* readonly */
  13844. int numShadowSplits;
  13845. ObjectAnimation objectAnimation;
  13846. bool occludee;
  13847. bool occluder;
  13848. bool perVertex;
  13849. float radius;
  13850. Texture rampTexture;
  13851. float range;
  13852. /* readonly */
  13853. int refs;
  13854. /* readonly */
  13855. bool replicated;
  13856. BiasParameters shadowBias;
  13857. CascadeParameters shadowCascade;
  13858. float shadowDistance;
  13859. float shadowFadeDistance;
  13860. FocusParameters shadowFocus;
  13861. float shadowIntensity;
  13862. uint shadowMask;
  13863. float shadowMaxExtrusion;
  13864. float shadowNearFarRatio;
  13865. float shadowResolution;
  13866. Texture shapeTexture;
  13867. float specularIntensity;
  13868. float temperature;
  13869. bool temporary;
  13870. /* readonly */
  13871. StringHash type;
  13872. /* readonly */
  13873. String typeName;
  13874. bool usePhysicalValues;
  13875. uint viewMask;
  13876. /* readonly */
  13877. int weakRefs;
  13878. /* readonly */
  13879. BoundingBox worldBoundingBox;
  13880. /* readonly */
  13881. Zone zone;
  13882. uint zoneMask;
  13883. };
  13884. class LightBatchQueue
  13885. {
  13886. public:
  13887. ~LightBatchQueue();
  13888. LightBatchQueue();
  13889. // Methods:
  13890. LightBatchQueue& operator=(const LightBatchQueue&);
  13891. // Properties:
  13892. BatchQueue litBaseBatches;
  13893. BatchQueue litBatches;
  13894. bool negative;
  13895. };
  13896. class LightQueryResult
  13897. {
  13898. public:
  13899. ~LightQueryResult();
  13900. LightQueryResult();
  13901. // Methods:
  13902. LightQueryResult& operator=(const LightQueryResult&);
  13903. // Properties:
  13904. uint numSplits;
  13905. };
  13906. class LineEdit
  13907. {
  13908. public:
  13909. LineEdit();
  13910. // Methods:
  13911. void AddChild(UIElement);
  13912. void AddTag(const String&);
  13913. void AddTags(Array<String>);
  13914. void AddTags(const String&, int8 = ';');
  13915. void AdjustScissor(IntRect&);
  13916. void AllocateNetworkState();
  13917. operator Animatable() const;
  13918. void ApplyAttributes();
  13919. operator BorderImage() const;
  13920. void BringToFront();
  13921. const Color& GetColor(Corner) const;
  13922. const Color& GetColorAttr() const;
  13923. const Color& GetDerivedColor() const;
  13924. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  13925. void DisableLayoutUpdate();
  13926. IntVector2 ElementToScreen(const IntVector2&);
  13927. void EnableLayoutUpdate();
  13928. bool FilterAttributes(XMLElement&) const;
  13929. uint FindChild(UIElement) const;
  13930. bool GetAnimationEnabled() const;
  13931. Variant GetAttribute(const String&) const;
  13932. Variant GetAttribute(uint) const;
  13933. ValueAnimation GetAttributeAnimation(const String&) const;
  13934. float GetAttributeAnimationSpeed(const String&) const;
  13935. float GetAttributeAnimationTime(const String&) const;
  13936. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13937. Variant GetAttributeDefault(const String&) const;
  13938. Variant GetAttributeDefault(uint) const;
  13939. BlendMode GetBlendMode() const;
  13940. bool GetBlockEvents() const;
  13941. bool GetBringToBack() const;
  13942. bool GetBringToFront() const;
  13943. UIElement GetChild(const String&, bool = false) const;
  13944. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  13945. UIElement GetChild(uint) const;
  13946. Array<UIElement> GetChildren() const;
  13947. Array<UIElement> GetChildren(bool) const;
  13948. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13949. bool GetClipChildren() const;
  13950. IntRect GetCombinedScreenRect();
  13951. BorderImage GetCursor() const;
  13952. float GetCursorBlinkRate() const;
  13953. uint GetCursorPosition() const;
  13954. XMLFile GetDefaultStyle(bool = true) const;
  13955. float GetDerivedOpacity() const;
  13956. uint GetDragButtonCombo() const;
  13957. uint GetDragButtonCount() const;
  13958. uint GetDragDropMode() const;
  13959. uint GetEchoCharacter() const;
  13960. IntVector2 GetEffectiveMinSize() const;
  13961. UIElement GetElementEventSender() const;
  13962. bool GetEnableAnchor() const;
  13963. VariantMap& GetEventDataMap() const;
  13964. Object GetEventSender() const;
  13965. FocusMode GetFocusMode() const;
  13966. int GetHeight() const;
  13967. HorizontalAlignment GetHorizontalAlignment() const;
  13968. int GetIndent() const;
  13969. int GetIndentSpacing() const;
  13970. int GetIndentWidth() const;
  13971. bool GetInterceptNetworkUpdate(const String&) const;
  13972. int GetLayoutElementMaxSize() const;
  13973. LayoutMode GetLayoutMode() const;
  13974. int GetLayoutSpacing() const;
  13975. Material GetMaterial() const;
  13976. ResourceRef GetMaterialAttr() const;
  13977. int GetMaxHeight() const;
  13978. uint GetMaxLength() const;
  13979. int GetMaxWidth() const;
  13980. int GetMinHeight() const;
  13981. int GetMinWidth() const;
  13982. uint GetNumAttributes() const;
  13983. uint GetNumChildren(bool = false) const;
  13984. uint GetNumNetworkAttributes() const;
  13985. ObjectAnimation GetObjectAnimation() const;
  13986. ResourceRef GetObjectAnimationAttr() const;
  13987. float GetOpacity() const;
  13988. UIElement GetParent() const;
  13989. int GetPriority() const;
  13990. UIElement GetRoot() const;
  13991. bool GetSortChildren() const;
  13992. Object GetSubsystem(StringHash) const;
  13993. Array<String> GetTags() const;
  13994. Text GetTextElement() const;
  13995. Texture GetTexture() const;
  13996. ResourceRef GetTextureAttr() const;
  13997. TraversalMode GetTraversalMode() const;
  13998. StringHash GetType() const;
  13999. bool GetUseDerivedOpacity() const;
  14000. VerticalAlignment GetVerticalAlignment() const;
  14001. int GetWidth() const;
  14002. bool HasColorGradient() const;
  14003. bool HasEventHandlers() const;
  14004. bool HasFocus() const;
  14005. bool HasSubscribedToEvent(Object, StringHash) const;
  14006. bool HasSubscribedToEvent(StringHash) const;
  14007. bool HasTag(const String&) const;
  14008. void InsertChild(uint, UIElement);
  14009. const IntRect& GetBorder() const;
  14010. const IntRect& GetClipBorder() const;
  14011. const IntRect& GetImageBorder() const;
  14012. const IntRect& GetImageRect() const;
  14013. const IntRect& GetLayoutBorder() const;
  14014. const IntVector2& GetChildOffset() const;
  14015. const IntVector2& GetDisabledOffset() const;
  14016. const IntVector2& GetHoverOffset() const;
  14017. const IntVector2& GetMaxOffset() const;
  14018. const IntVector2& GetMaxSize() const;
  14019. const IntVector2& GetMinOffset() const;
  14020. const IntVector2& GetMinSize() const;
  14021. const IntVector2& GetPosition() const;
  14022. const IntVector2& GetScreenPosition() const;
  14023. const IntVector2& GetSize() const;
  14024. bool IsChildOf(UIElement) const;
  14025. bool IsCursorMovable() const;
  14026. bool IsEditable() const;
  14027. bool IsElementEventSender() const;
  14028. bool IsEnabled() const;
  14029. bool IsEnabledSelf() const;
  14030. bool IsFixedHeight() const;
  14031. bool IsFixedSize() const;
  14032. bool IsFixedWidth() const;
  14033. bool IsHovering() const;
  14034. bool IsInside(IntVector2, bool);
  14035. bool IsInsideCombined(IntVector2, bool);
  14036. bool IsInstanceOf(StringHash) const;
  14037. bool IsInternal() const;
  14038. bool IsSelected() const;
  14039. bool IsTemporary() const;
  14040. bool IsTextCopyable() const;
  14041. bool IsTextSelectable() const;
  14042. bool IsTiled() const;
  14043. bool IsVisible() const;
  14044. bool IsVisibleEffective() const;
  14045. bool IsWheelHandler() const;
  14046. bool IsWithinScissor(const IntRect&);
  14047. bool Load(Deserializer&);
  14048. UIElement LoadChildXML(XMLFile, XMLFile);
  14049. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14050. bool LoadJSON(const JSONValue&);
  14051. bool LoadXML(Deserializer&);
  14052. bool LoadXML(File);
  14053. bool LoadXML(VectorBuffer&);
  14054. bool LoadXML(XMLFile, XMLFile);
  14055. bool LoadXML(const XMLElement&);
  14056. bool LoadXML(const XMLElement&, XMLFile);
  14057. void MarkNetworkUpdate();
  14058. operator Object() const;
  14059. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14060. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  14061. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14062. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14063. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14064. bool OnDragDropFinish(UIElement);
  14065. bool OnDragDropTest(UIElement);
  14066. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14067. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14068. void OnEvent(Object, StringHash, VariantMap&);
  14069. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  14070. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14071. void OnIndentSet();
  14072. void OnKey(uint, uint, uint);
  14073. void OnPositionSet(const IntVector2&);
  14074. void OnResize(const IntVector2&, const IntVector2&);
  14075. void OnSetAttribute(const AttributeInfo&, const Variant&);
  14076. void OnSetEditable();
  14077. void OnTextInput(const String&);
  14078. void OnWheel(int, uint, uint);
  14079. bool ReadDeltaUpdate(Deserializer&);
  14080. bool ReadLatestDataUpdate(Deserializer&);
  14081. operator RefCounted() const;
  14082. int Refs() const;
  14083. void Remove();
  14084. void RemoveAllChildren();
  14085. void RemoveAllTags();
  14086. void RemoveAttributeAnimation(const String&);
  14087. void RemoveChild(UIElement, uint = 0);
  14088. void RemoveChild(uint);
  14089. void RemoveChildAtIndex(uint);
  14090. void RemoveInstanceDefault();
  14091. void RemoveObjectAnimation();
  14092. bool RemoveTag(const String&);
  14093. void ResetDeepEnabled();
  14094. void ResetToDefault();
  14095. bool Save(Serializer&) const;
  14096. bool SaveDefaultAttributes() const;
  14097. bool SaveJSON(JSONValue&) const;
  14098. bool SaveXML(File, const String& indentation = "\t");
  14099. bool SaveXML(Serializer&, const String& = "\t") const;
  14100. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  14101. bool SaveXML(XMLElement&) const;
  14102. IntVector2 ScreenToElement(const IntVector2&);
  14103. void SendEvent(StringHash);
  14104. void SendEvent(StringHash, VariantMap&);
  14105. operator Serializable() const;
  14106. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14107. void SetAnimationEnabled(bool);
  14108. void SetAnimationTime(float);
  14109. bool SetAttribute(const String&, const Variant&);
  14110. bool SetAttribute(uint, const Variant&);
  14111. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14112. void SetAttributeAnimationSpeed(const String&, float);
  14113. void SetAttributeAnimationTime(const String&, float);
  14114. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14115. void SetBlendMode(BlendMode);
  14116. void SetBlockEvents(bool);
  14117. void SetBorder(const IntRect&);
  14118. void SetBringToBack(bool);
  14119. void SetBringToFront(bool);
  14120. void SetChildOffset(const IntVector2&);
  14121. void SetClipBorder(const IntRect&);
  14122. void SetClipChildren(bool);
  14123. void SetColor(Corner, const Color&);
  14124. void SetColor(const Color&);
  14125. void SetCursorBlinkRate(float);
  14126. void SetCursorMovable(bool);
  14127. void SetCursorPosition(uint);
  14128. void SetDeepEnabled(bool);
  14129. void SetDefaultStyle(XMLFile);
  14130. void SetDisabledOffset(const IntVector2&);
  14131. void SetDisabledOffset(int, int);
  14132. void SetDragDropMode(uint);
  14133. void SetEchoCharacter(uint);
  14134. void SetEditable(bool);
  14135. void SetElementEventSender(bool);
  14136. void SetEnableAnchor(bool);
  14137. void SetEnabled(bool);
  14138. void SetEnabledRecursive(bool);
  14139. void SetFixedHeight(int);
  14140. void SetFixedSize(const IntVector2&);
  14141. void SetFixedSize(int, int);
  14142. void SetFixedWidth(int);
  14143. void SetFocus(bool);
  14144. void SetFocusMode(FocusMode);
  14145. void SetFullImageRect();
  14146. void SetGlobalVar(StringHash, const Variant&);
  14147. void SetHeight(int);
  14148. void SetHorizontalAlignment(HorizontalAlignment);
  14149. void SetHoverOffset(const IntVector2&);
  14150. void SetHoverOffset(int, int);
  14151. void SetHovering(bool);
  14152. void SetImageBorder(const IntRect&);
  14153. void SetImageRect(const IntRect&);
  14154. void SetIndent(int);
  14155. void SetIndentSpacing(int);
  14156. void SetInstanceDefault(bool);
  14157. void SetInterceptNetworkUpdate(const String&, bool);
  14158. void SetInternal(bool);
  14159. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  14160. void SetLayoutBorder(const IntRect&);
  14161. void SetLayoutFlexScale(const Vector2&);
  14162. void SetLayoutMode(LayoutMode);
  14163. void SetLayoutSpacing(int);
  14164. void SetMaterial(Material);
  14165. void SetMaterialAttr(const ResourceRef&);
  14166. void SetMaxAnchor(const Vector2&);
  14167. void SetMaxAnchor(float, float);
  14168. void SetMaxHeight(int);
  14169. void SetMaxLength(uint);
  14170. void SetMaxOffset(const IntVector2&);
  14171. void SetMaxSize(const IntVector2&);
  14172. void SetMaxSize(int, int);
  14173. void SetMaxWidth(int);
  14174. void SetMinAnchor(const Vector2&);
  14175. void SetMinAnchor(float, float);
  14176. void SetMinHeight(int);
  14177. void SetMinOffset(const IntVector2&);
  14178. void SetMinSize(const IntVector2&);
  14179. void SetMinSize(int, int);
  14180. void SetMinWidth(int);
  14181. void SetName(const String&);
  14182. void SetObjectAnimation(ObjectAnimation);
  14183. void SetObjectAnimationAttr(const ResourceRef&);
  14184. void SetOpacity(float);
  14185. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14186. void SetPivot(const Vector2&);
  14187. void SetPivot(float, float);
  14188. void SetPosition(const IntVector2&);
  14189. void SetPosition(int, int);
  14190. void SetPriority(int);
  14191. void SetRenderTexture(Texture2D);
  14192. void SetSelected(bool);
  14193. void SetSize(const IntVector2&);
  14194. void SetSize(int, int);
  14195. void SetSortChildren(bool);
  14196. bool SetStyle(const String&, XMLFile = null);
  14197. bool SetStyle(const XMLElement&);
  14198. bool SetStyleAuto(XMLFile = null);
  14199. void SetTags(Array<String>);
  14200. void SetTemporary(bool);
  14201. void SetText(const String&);
  14202. void SetTextCopyable(bool);
  14203. void SetTextSelectable(bool);
  14204. void SetTexture(Texture);
  14205. void SetTextureAttr(const ResourceRef&);
  14206. void SetTiled(bool);
  14207. void SetTraversalMode(TraversalMode);
  14208. void SetUseDerivedOpacity(bool);
  14209. void SetVar(StringHash, const Variant&);
  14210. void SetVerticalAlignment(VerticalAlignment);
  14211. void SetVisible(bool);
  14212. void SetWidth(int);
  14213. void SortChildren();
  14214. const String& GetAppliedStyle() const;
  14215. const String& GetCategory() const;
  14216. const String& GetName() const;
  14217. const String& GetText() const;
  14218. const String& GetTypeName() const;
  14219. operator UIElement() const;
  14220. void UnsubscribeFromAllEvents();
  14221. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  14222. void UnsubscribeFromEvent(Object, StringHash);
  14223. void UnsubscribeFromEvent(StringHash);
  14224. void UnsubscribeFromEvents(Object);
  14225. void Update(float);
  14226. void UpdateLayout();
  14227. const Variant& GetGlobalVar(StringHash) const;
  14228. const Variant& GetVar(const StringHash&) const;
  14229. const VariantMap& GetGlobalVars() const;
  14230. const VariantMap& GetVars() const;
  14231. const Vector2& GetLayoutFlexScale() const;
  14232. const Vector2& GetMaxAnchor() const;
  14233. const Vector2& GetMinAnchor() const;
  14234. const Vector2& GetPivot() const;
  14235. int WeakRefs() const;
  14236. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  14237. void WriteInitialDeltaUpdate(Serializer&, uint8);
  14238. void WriteLatestDataUpdate(Serializer&, uint8);
  14239. operator const Animatable() const;
  14240. operator const BorderImage() const;
  14241. operator const Object() const;
  14242. operator const RefCounted() const;
  14243. operator const Serializable() const;
  14244. operator const UIElement() const;
  14245. // Properties:
  14246. bool animationEnabled;
  14247. /* readonly */
  14248. Array<Variant> attributeDefaults;
  14249. /* readonly */
  14250. Array<AttributeInfo> attributeInfos;
  14251. Array<Variant> attributes;
  14252. BlendMode blendMode;
  14253. IntRect border;
  14254. bool bringToBack;
  14255. bool bringToFront;
  14256. /* readonly */
  14257. String category;
  14258. /* readonly */
  14259. IntVector2 childOffset;
  14260. /* readonly */
  14261. Array<UIElement> children;
  14262. IntRect clipBorder;
  14263. bool clipChildren;
  14264. /* writeonly */
  14265. Color color;
  14266. /* readonly */
  14267. bool colorGradient;
  14268. Array<Color> colors;
  14269. /* readonly */
  14270. IntRect combinedScreenRect;
  14271. /* readonly */
  14272. BorderImage cursor;
  14273. float cursorBlinkRate;
  14274. bool cursorMovable;
  14275. uint cursorPosition;
  14276. XMLFile defaultStyle;
  14277. /* readonly */
  14278. float derivedOpacity;
  14279. IntVector2 disabledOffset;
  14280. /* readonly */
  14281. uint dragButtonCombo;
  14282. /* readonly */
  14283. uint dragButtonCount;
  14284. uint dragDropMode;
  14285. uint echoCharacter;
  14286. bool editable;
  14287. bool elementEventSender;
  14288. bool enableAnchor;
  14289. bool enabled;
  14290. /* readonly */
  14291. bool enabledSelf;
  14292. /* readonly */
  14293. bool fixedHeight;
  14294. /* readonly */
  14295. bool fixedSize;
  14296. /* readonly */
  14297. bool fixedWidth;
  14298. bool focus;
  14299. FocusMode focusMode;
  14300. Array<Variant> globalVar;
  14301. /* readonly */
  14302. VariantMap globalVars;
  14303. int height;
  14304. HorizontalAlignment horizontalAlignment;
  14305. IntVector2 hoverOffset;
  14306. /* readonly */
  14307. bool hovering;
  14308. IntRect imageBorder;
  14309. IntRect imageRect;
  14310. int indent;
  14311. int indentSpacing;
  14312. /* readonly */
  14313. int indentWidth;
  14314. bool internal;
  14315. IntRect layoutBorder;
  14316. Vector2 layoutFlexScale;
  14317. LayoutMode layoutMode;
  14318. int layoutSpacing;
  14319. Material material;
  14320. Vector2 maxAnchor;
  14321. int maxHeight;
  14322. uint maxLength;
  14323. IntVector2 maxOffset;
  14324. IntVector2 maxSize;
  14325. int maxWidth;
  14326. Vector2 minAnchor;
  14327. int minHeight;
  14328. IntVector2 minOffset;
  14329. IntVector2 minSize;
  14330. int minWidth;
  14331. String name;
  14332. /* readonly */
  14333. uint numAllChildren;
  14334. /* readonly */
  14335. uint numAttributes;
  14336. /* readonly */
  14337. uint numChildren;
  14338. ObjectAnimation objectAnimation;
  14339. float opacity;
  14340. UIElement parent;
  14341. Vector2 pivot;
  14342. IntVector2 position;
  14343. int priority;
  14344. /* readonly */
  14345. int refs;
  14346. /* readonly */
  14347. UIElement root;
  14348. /* readonly */
  14349. IntVector2 screenPosition;
  14350. bool selected;
  14351. IntVector2 size;
  14352. bool sortChildren;
  14353. String style;
  14354. /* readonly */
  14355. Array<String> tags;
  14356. bool temporary;
  14357. String text;
  14358. bool textCopyable;
  14359. /* readonly */
  14360. Text textElement;
  14361. bool textSelectable;
  14362. Texture texture;
  14363. bool tiled;
  14364. TraversalMode traversalMode;
  14365. /* readonly */
  14366. StringHash type;
  14367. /* readonly */
  14368. String typeName;
  14369. bool useDerivedOpacity;
  14370. /* readonly */
  14371. VariantMap vars;
  14372. VerticalAlignment verticalAlignment;
  14373. bool visible;
  14374. /* readonly */
  14375. bool visibleEffective;
  14376. /* readonly */
  14377. int weakRefs;
  14378. int width;
  14379. };
  14380. class LinkedListNode
  14381. {
  14382. public:
  14383. ~LinkedListNode();
  14384. LinkedListNode();
  14385. // Methods:
  14386. LinkedListNode& operator=(const LinkedListNode&);
  14387. };
  14388. class ListBase
  14389. {
  14390. public:
  14391. ~ListBase();
  14392. ListBase();
  14393. // Methods:
  14394. ListBase& operator=(const ListBase&);
  14395. void Swap(ListBase&);
  14396. };
  14397. class ListIteratorBase
  14398. {
  14399. public:
  14400. ~ListIteratorBase();
  14401. ListIteratorBase();
  14402. // Methods:
  14403. ListIteratorBase& operator=(const ListIteratorBase&);
  14404. bool operator==(const ListIteratorBase&) const;
  14405. void GotoNext();
  14406. void GotoPrev();
  14407. };
  14408. class ListNodeBase
  14409. {
  14410. public:
  14411. ~ListNodeBase();
  14412. ListNodeBase();
  14413. // Methods:
  14414. ListNodeBase& operator=(const ListNodeBase&);
  14415. };
  14416. class ListView
  14417. {
  14418. public:
  14419. ListView();
  14420. // Methods:
  14421. void AddChild(UIElement);
  14422. void AddItem(UIElement);
  14423. void AddSelection(uint);
  14424. void AddTag(const String&);
  14425. void AddTags(Array<String>);
  14426. void AddTags(const String&, int8 = ';');
  14427. void AdjustScissor(IntRect&);
  14428. void AllocateNetworkState();
  14429. operator Animatable() const;
  14430. void ApplyAttributes();
  14431. void BringToFront();
  14432. void ChangeSelection(int, bool = false);
  14433. void ClearSelection();
  14434. const Color& GetColor(Corner) const;
  14435. const Color& GetColorAttr() const;
  14436. const Color& GetDerivedColor() const;
  14437. void CopySelectedItemsToClipboard() const;
  14438. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  14439. void DisableInternalLayoutUpdate();
  14440. void DisableLayoutUpdate();
  14441. IntVector2 ElementToScreen(const IntVector2&);
  14442. void EnableInternalLayoutUpdate();
  14443. void EnableLayoutUpdate();
  14444. void EnsureItemVisibility(UIElement);
  14445. void EnsureItemVisibility(uint);
  14446. void Expand(uint, bool, bool = false);
  14447. bool FilterAttributes(XMLElement&) const;
  14448. uint FindChild(UIElement) const;
  14449. uint FindItem(UIElement) const;
  14450. bool GetAnimationEnabled() const;
  14451. Variant GetAttribute(const String&) const;
  14452. Variant GetAttribute(uint) const;
  14453. ValueAnimation GetAttributeAnimation(const String&) const;
  14454. float GetAttributeAnimationSpeed(const String&) const;
  14455. float GetAttributeAnimationTime(const String&) const;
  14456. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14457. Variant GetAttributeDefault(const String&) const;
  14458. Variant GetAttributeDefault(uint) const;
  14459. bool GetAutoDisableChildren() const;
  14460. float GetAutoDisableThreshold() const;
  14461. int GetBaseIndent() const;
  14462. bool GetBlockEvents() const;
  14463. bool GetBringToBack() const;
  14464. bool GetBringToFront() const;
  14465. UIElement GetChild(const String&, bool = false) const;
  14466. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  14467. UIElement GetChild(uint) const;
  14468. Array<UIElement> GetChildren() const;
  14469. Array<UIElement> GetChildren(bool) const;
  14470. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14471. bool GetClearSelectionOnDefocus() const;
  14472. bool GetClipChildren() const;
  14473. IntRect GetCombinedScreenRect();
  14474. UIElement GetContentElement() const;
  14475. XMLFile GetDefaultStyle(bool = true) const;
  14476. float GetDerivedOpacity() const;
  14477. uint GetDragButtonCombo() const;
  14478. uint GetDragButtonCount() const;
  14479. uint GetDragDropMode() const;
  14480. IntVector2 GetEffectiveMinSize() const;
  14481. UIElement GetElementEventSender() const;
  14482. bool GetEnableAnchor() const;
  14483. VariantMap& GetEventDataMap() const;
  14484. Object GetEventSender() const;
  14485. FocusMode GetFocusMode() const;
  14486. int GetHeight() const;
  14487. bool GetHierarchyMode() const;
  14488. HighlightMode GetHighlightMode() const;
  14489. HorizontalAlignment GetHorizontalAlignment() const;
  14490. ScrollBar GetHorizontalScrollBar() const;
  14491. bool GetHorizontalScrollBarVisible() const;
  14492. int GetIndent() const;
  14493. int GetIndentSpacing() const;
  14494. int GetIndentWidth() const;
  14495. bool GetInterceptNetworkUpdate(const String&) const;
  14496. UIElement GetItem(uint) const;
  14497. Array<UIElement> GetItems() const;
  14498. int GetLayoutElementMaxSize() const;
  14499. LayoutMode GetLayoutMode() const;
  14500. int GetLayoutSpacing() const;
  14501. int GetMaxHeight() const;
  14502. int GetMaxWidth() const;
  14503. int GetMinHeight() const;
  14504. int GetMinWidth() const;
  14505. bool GetMultiselect() const;
  14506. uint GetNumAttributes() const;
  14507. uint GetNumChildren(bool = false) const;
  14508. uint GetNumItems() const;
  14509. uint GetNumNetworkAttributes() const;
  14510. ObjectAnimation GetObjectAnimation() const;
  14511. ResourceRef GetObjectAnimationAttr() const;
  14512. float GetOpacity() const;
  14513. float GetPageStep() const;
  14514. UIElement GetParent() const;
  14515. int GetPriority() const;
  14516. UIElement GetRoot() const;
  14517. bool GetScrollBarsAutoVisible() const;
  14518. float GetScrollDeceleration() const;
  14519. BorderImage GetScrollPanel() const;
  14520. float GetScrollSnapEpsilon() const;
  14521. float GetScrollStep() const;
  14522. bool GetSelectOnClickEnd() const;
  14523. UIElement GetSelectedItem() const;
  14524. Array<UIElement> GetSelectedItems() const;
  14525. uint GetSelection() const;
  14526. Array<uint> GetSelections() const;
  14527. bool GetSortChildren() const;
  14528. Object GetSubsystem(StringHash) const;
  14529. Array<String> GetTags() const;
  14530. TraversalMode GetTraversalMode() const;
  14531. StringHash GetType() const;
  14532. bool GetUseDerivedOpacity() const;
  14533. VerticalAlignment GetVerticalAlignment() const;
  14534. ScrollBar GetVerticalScrollBar() const;
  14535. bool GetVerticalScrollBarVisible() const;
  14536. int GetWidth() const;
  14537. bool HasColorGradient() const;
  14538. bool HasEventHandlers() const;
  14539. bool HasFocus() const;
  14540. bool HasSubscribedToEvent(Object, StringHash) const;
  14541. bool HasSubscribedToEvent(StringHash) const;
  14542. bool HasTag(const String&) const;
  14543. void InsertChild(uint, UIElement);
  14544. void InsertItem(uint, UIElement, UIElement = null);
  14545. const IntRect& GetClipBorder() const;
  14546. const IntRect& GetLayoutBorder() const;
  14547. const IntVector2& GetChildOffset() const;
  14548. const IntVector2& GetMaxOffset() const;
  14549. const IntVector2& GetMaxSize() const;
  14550. const IntVector2& GetMinOffset() const;
  14551. const IntVector2& GetMinSize() const;
  14552. const IntVector2& GetPosition() const;
  14553. const IntVector2& GetScreenPosition() const;
  14554. const IntVector2& GetSize() const;
  14555. const IntVector2& GetViewPosition() const;
  14556. bool IsChildOf(UIElement) const;
  14557. bool IsEditable() const;
  14558. bool IsElementEventSender() const;
  14559. bool IsEnabled() const;
  14560. bool IsEnabledSelf() const;
  14561. bool IsExpanded(uint) const;
  14562. bool IsFixedHeight() const;
  14563. bool IsFixedSize() const;
  14564. bool IsFixedWidth() const;
  14565. bool IsHovering() const;
  14566. bool IsInside(IntVector2, bool);
  14567. bool IsInsideCombined(IntVector2, bool);
  14568. bool IsInstanceOf(StringHash) const;
  14569. bool IsInternal() const;
  14570. bool IsSelected(uint) const;
  14571. bool IsTemporary() const;
  14572. bool IsVisible() const;
  14573. bool IsVisibleEffective() const;
  14574. bool IsWheelHandler() const;
  14575. bool IsWithinScissor(const IntRect&);
  14576. bool Load(Deserializer&);
  14577. UIElement LoadChildXML(XMLFile, XMLFile);
  14578. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14579. bool LoadJSON(const JSONValue&);
  14580. bool LoadXML(Deserializer&);
  14581. bool LoadXML(File);
  14582. bool LoadXML(VectorBuffer&);
  14583. bool LoadXML(XMLFile, XMLFile);
  14584. bool LoadXML(const XMLElement&);
  14585. bool LoadXML(const XMLElement&, XMLFile);
  14586. void MarkNetworkUpdate();
  14587. operator Object() const;
  14588. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14589. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  14590. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14591. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14592. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14593. bool OnDragDropFinish(UIElement);
  14594. bool OnDragDropTest(UIElement);
  14595. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14596. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14597. void OnEvent(Object, StringHash, VariantMap&);
  14598. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  14599. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14600. void OnIndentSet();
  14601. void OnKey(uint, uint, uint);
  14602. void OnPositionSet(const IntVector2&);
  14603. void OnResize(const IntVector2&, const IntVector2&);
  14604. void OnSetAttribute(const AttributeInfo&, const Variant&);
  14605. void OnSetEditable();
  14606. void OnTextInput(const String&);
  14607. void OnWheel(int, uint, uint);
  14608. bool ReadDeltaUpdate(Deserializer&);
  14609. bool ReadLatestDataUpdate(Deserializer&);
  14610. operator RefCounted() const;
  14611. int Refs() const;
  14612. void Remove();
  14613. void RemoveAllChildren();
  14614. void RemoveAllItems();
  14615. void RemoveAllTags();
  14616. void RemoveAttributeAnimation(const String&);
  14617. void RemoveChild(UIElement, uint = 0);
  14618. void RemoveChild(uint);
  14619. void RemoveChildAtIndex(uint);
  14620. void RemoveInstanceDefault();
  14621. void RemoveItem(UIElement, uint = 0);
  14622. void RemoveItem(uint);
  14623. void RemoveObjectAnimation();
  14624. void RemoveSelection(uint);
  14625. bool RemoveTag(const String&);
  14626. void ResetDeepEnabled();
  14627. void ResetToDefault();
  14628. bool Save(Serializer&) const;
  14629. bool SaveDefaultAttributes() const;
  14630. bool SaveJSON(JSONValue&) const;
  14631. bool SaveXML(File, const String& indentation = "\t");
  14632. bool SaveXML(Serializer&, const String& = "\t") const;
  14633. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  14634. bool SaveXML(XMLElement&) const;
  14635. IntVector2 ScreenToElement(const IntVector2&);
  14636. operator ScrollView() const;
  14637. void SendEvent(StringHash);
  14638. void SendEvent(StringHash, VariantMap&);
  14639. operator Serializable() const;
  14640. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14641. void SetAnimationEnabled(bool);
  14642. void SetAnimationTime(float);
  14643. bool SetAttribute(const String&, const Variant&);
  14644. bool SetAttribute(uint, const Variant&);
  14645. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14646. void SetAttributeAnimationSpeed(const String&, float);
  14647. void SetAttributeAnimationTime(const String&, float);
  14648. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14649. void SetAutoDisableChildren(bool);
  14650. void SetAutoDisableThreshold(float);
  14651. void SetBaseIndent(int);
  14652. void SetBlockEvents(bool);
  14653. void SetBringToBack(bool);
  14654. void SetBringToFront(bool);
  14655. void SetChildOffset(const IntVector2&);
  14656. void SetClearSelectionOnDefocus(bool);
  14657. void SetClipBorder(const IntRect&);
  14658. void SetClipChildren(bool);
  14659. void SetColor(Corner, const Color&);
  14660. void SetColor(const Color&);
  14661. void SetContentElement(UIElement);
  14662. void SetDeepEnabled(bool);
  14663. void SetDefaultStyle(XMLFile);
  14664. void SetDragDropMode(uint);
  14665. void SetEditable(bool);
  14666. void SetElementEventSender(bool);
  14667. void SetEnableAnchor(bool);
  14668. void SetEnabled(bool);
  14669. void SetEnabledRecursive(bool);
  14670. void SetFixedHeight(int);
  14671. void SetFixedSize(const IntVector2&);
  14672. void SetFixedSize(int, int);
  14673. void SetFixedWidth(int);
  14674. void SetFocus(bool);
  14675. void SetFocusMode(FocusMode);
  14676. void SetGlobalVar(StringHash, const Variant&);
  14677. void SetHeight(int);
  14678. void SetHierarchyMode(bool);
  14679. void SetHighlightMode(HighlightMode);
  14680. void SetHorizontalAlignment(HorizontalAlignment);
  14681. void SetHorizontalScrollBarVisible(bool);
  14682. void SetHovering(bool);
  14683. void SetIndent(int);
  14684. void SetIndentSpacing(int);
  14685. void SetInstanceDefault(bool);
  14686. void SetInterceptNetworkUpdate(const String&, bool);
  14687. void SetInternal(bool);
  14688. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  14689. void SetLayoutBorder(const IntRect&);
  14690. void SetLayoutFlexScale(const Vector2&);
  14691. void SetLayoutMode(LayoutMode);
  14692. void SetLayoutSpacing(int);
  14693. void SetMaxAnchor(const Vector2&);
  14694. void SetMaxAnchor(float, float);
  14695. void SetMaxHeight(int);
  14696. void SetMaxOffset(const IntVector2&);
  14697. void SetMaxSize(const IntVector2&);
  14698. void SetMaxSize(int, int);
  14699. void SetMaxWidth(int);
  14700. void SetMinAnchor(const Vector2&);
  14701. void SetMinAnchor(float, float);
  14702. void SetMinHeight(int);
  14703. void SetMinOffset(const IntVector2&);
  14704. void SetMinSize(const IntVector2&);
  14705. void SetMinSize(int, int);
  14706. void SetMinWidth(int);
  14707. void SetMultiselect(bool);
  14708. void SetName(const String&);
  14709. void SetObjectAnimation(ObjectAnimation);
  14710. void SetObjectAnimationAttr(const ResourceRef&);
  14711. void SetOpacity(float);
  14712. void SetPageStep(float);
  14713. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14714. void SetPivot(const Vector2&);
  14715. void SetPivot(float, float);
  14716. void SetPosition(const IntVector2&);
  14717. void SetPosition(int, int);
  14718. void SetPriority(int);
  14719. void SetRenderTexture(Texture2D);
  14720. void SetScrollBarsAutoVisible(bool);
  14721. void SetScrollBarsVisible(bool, bool);
  14722. void SetScrollDeceleration(float);
  14723. void SetScrollSnapEpsilon(float);
  14724. void SetScrollStep(float);
  14725. void SetSelectOnClickEnd(bool);
  14726. void SetSelected(bool);
  14727. void SetSelection(uint);
  14728. void SetSelections(Array<uint>);
  14729. void SetSize(const IntVector2&);
  14730. void SetSize(int, int);
  14731. void SetSortChildren(bool);
  14732. bool SetStyle(const String&, XMLFile = null);
  14733. bool SetStyle(const XMLElement&);
  14734. bool SetStyleAuto(XMLFile = null);
  14735. void SetTags(Array<String>);
  14736. void SetTemporary(bool);
  14737. void SetTraversalMode(TraversalMode);
  14738. void SetUseDerivedOpacity(bool);
  14739. void SetVar(StringHash, const Variant&);
  14740. void SetVerticalAlignment(VerticalAlignment);
  14741. void SetVerticalScrollBarVisible(bool);
  14742. void SetViewPosition(const IntVector2&);
  14743. void SetViewPosition(int, int);
  14744. void SetViewPositionAttr(const IntVector2&);
  14745. void SetVisible(bool);
  14746. void SetWidth(int);
  14747. void SortChildren();
  14748. const String& GetAppliedStyle() const;
  14749. const String& GetCategory() const;
  14750. const String& GetName() const;
  14751. const String& GetTypeName() const;
  14752. void ToggleExpand(uint, bool = false);
  14753. void ToggleSelection(uint);
  14754. operator UIElement() const;
  14755. void UnsubscribeFromAllEvents();
  14756. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  14757. void UnsubscribeFromEvent(Object, StringHash);
  14758. void UnsubscribeFromEvent(StringHash);
  14759. void UnsubscribeFromEvents(Object);
  14760. void Update(float);
  14761. void UpdateInternalLayout();
  14762. void UpdateLayout();
  14763. const Variant& GetGlobalVar(StringHash) const;
  14764. const Variant& GetVar(const StringHash&) const;
  14765. const VariantMap& GetGlobalVars() const;
  14766. const VariantMap& GetVars() const;
  14767. const Vector2& GetLayoutFlexScale() const;
  14768. const Vector2& GetMaxAnchor() const;
  14769. const Vector2& GetMinAnchor() const;
  14770. const Vector2& GetPivot() const;
  14771. int WeakRefs() const;
  14772. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  14773. void WriteInitialDeltaUpdate(Serializer&, uint8);
  14774. void WriteLatestDataUpdate(Serializer&, uint8);
  14775. operator const Animatable() const;
  14776. operator const Object() const;
  14777. operator const RefCounted() const;
  14778. operator const ScrollView() const;
  14779. operator const Serializable() const;
  14780. operator const UIElement() const;
  14781. // Properties:
  14782. bool animationEnabled;
  14783. /* readonly */
  14784. Array<Variant> attributeDefaults;
  14785. /* readonly */
  14786. Array<AttributeInfo> attributeInfos;
  14787. Array<Variant> attributes;
  14788. bool autoDisableChildren;
  14789. float autoDisableThreshold;
  14790. int baseIndent;
  14791. bool bringToBack;
  14792. bool bringToFront;
  14793. /* readonly */
  14794. String category;
  14795. /* readonly */
  14796. IntVector2 childOffset;
  14797. /* readonly */
  14798. Array<UIElement> children;
  14799. bool clearSelectionOnDefocus;
  14800. IntRect clipBorder;
  14801. bool clipChildren;
  14802. /* writeonly */
  14803. Color color;
  14804. /* readonly */
  14805. bool colorGradient;
  14806. Array<Color> colors;
  14807. /* readonly */
  14808. IntRect combinedScreenRect;
  14809. UIElement contentElement;
  14810. XMLFile defaultStyle;
  14811. /* readonly */
  14812. float derivedOpacity;
  14813. /* readonly */
  14814. uint dragButtonCombo;
  14815. /* readonly */
  14816. uint dragButtonCount;
  14817. uint dragDropMode;
  14818. bool editable;
  14819. bool elementEventSender;
  14820. bool enableAnchor;
  14821. bool enabled;
  14822. /* readonly */
  14823. bool enabledSelf;
  14824. /* readonly */
  14825. bool fixedHeight;
  14826. /* readonly */
  14827. bool fixedSize;
  14828. /* readonly */
  14829. bool fixedWidth;
  14830. bool focus;
  14831. FocusMode focusMode;
  14832. Array<Variant> globalVar;
  14833. /* readonly */
  14834. VariantMap globalVars;
  14835. int height;
  14836. bool hierarchyMode;
  14837. HighlightMode highlightMode;
  14838. HorizontalAlignment horizontalAlignment;
  14839. /* readonly */
  14840. ScrollBar horizontalScrollBar;
  14841. bool horizontalScrollBarVisible;
  14842. /* readonly */
  14843. bool hovering;
  14844. int indent;
  14845. int indentSpacing;
  14846. /* readonly */
  14847. int indentWidth;
  14848. bool internal;
  14849. /* readonly */
  14850. Array<UIElement> items;
  14851. IntRect layoutBorder;
  14852. Vector2 layoutFlexScale;
  14853. LayoutMode layoutMode;
  14854. int layoutSpacing;
  14855. Vector2 maxAnchor;
  14856. int maxHeight;
  14857. IntVector2 maxOffset;
  14858. IntVector2 maxSize;
  14859. int maxWidth;
  14860. Vector2 minAnchor;
  14861. int minHeight;
  14862. IntVector2 minOffset;
  14863. IntVector2 minSize;
  14864. int minWidth;
  14865. bool multiselect;
  14866. String name;
  14867. /* readonly */
  14868. uint numAllChildren;
  14869. /* readonly */
  14870. uint numAttributes;
  14871. /* readonly */
  14872. uint numChildren;
  14873. /* readonly */
  14874. uint numItems;
  14875. ObjectAnimation objectAnimation;
  14876. float opacity;
  14877. float pageStep;
  14878. UIElement parent;
  14879. Vector2 pivot;
  14880. IntVector2 position;
  14881. int priority;
  14882. /* readonly */
  14883. int refs;
  14884. /* readonly */
  14885. UIElement root;
  14886. /* readonly */
  14887. IntVector2 screenPosition;
  14888. bool scrollBarsAutoVisible;
  14889. float scrollDeceleration;
  14890. /* readonly */
  14891. BorderImage scrollPanel;
  14892. float scrollSnapEpsilon;
  14893. float scrollStep;
  14894. bool selectOnClickEnd;
  14895. /* writeonly */
  14896. bool selected;
  14897. /* readonly */
  14898. UIElement selectedItem;
  14899. /* readonly */
  14900. Array<UIElement> selectedItems;
  14901. uint selection;
  14902. /* readonly */
  14903. Array<uint> selections;
  14904. IntVector2 size;
  14905. bool sortChildren;
  14906. String style;
  14907. /* readonly */
  14908. Array<String> tags;
  14909. bool temporary;
  14910. TraversalMode traversalMode;
  14911. /* readonly */
  14912. StringHash type;
  14913. /* readonly */
  14914. String typeName;
  14915. bool useDerivedOpacity;
  14916. /* readonly */
  14917. VariantMap vars;
  14918. VerticalAlignment verticalAlignment;
  14919. /* readonly */
  14920. ScrollBar verticalScrollBar;
  14921. bool verticalScrollBarVisible;
  14922. IntVector2 viewPosition;
  14923. bool visible;
  14924. /* readonly */
  14925. bool visibleEffective;
  14926. /* readonly */
  14927. int weakRefs;
  14928. int width;
  14929. };
  14930. class Localization
  14931. {
  14932. public:
  14933. Localization();
  14934. // Methods:
  14935. String Get(const String&);
  14936. bool GetBlockEvents() const;
  14937. VariantMap& GetEventDataMap() const;
  14938. Object GetEventSender() const;
  14939. String GetLanguage();
  14940. String GetLanguage(int);
  14941. int GetLanguageIndex() const;
  14942. int GetLanguageIndex(const String&);
  14943. int GetNumLanguages() const;
  14944. Object GetSubsystem(StringHash) const;
  14945. StringHash GetType() const;
  14946. bool HasEventHandlers() const;
  14947. bool HasSubscribedToEvent(Object, StringHash) const;
  14948. bool HasSubscribedToEvent(StringHash) const;
  14949. bool IsInstanceOf(StringHash) const;
  14950. void LoadJSONFile(const String&, const String& = String :: EMPTY);
  14951. void LoadMultipleLanguageJSON(const JSONValue&);
  14952. void LoadSingleLanguageJSON(const JSONValue&, const String& = String :: EMPTY);
  14953. operator Object() const;
  14954. void OnEvent(Object, StringHash, VariantMap&);
  14955. operator RefCounted() const;
  14956. int Refs() const;
  14957. void Reset();
  14958. void SendEvent(StringHash);
  14959. void SendEvent(StringHash, VariantMap&);
  14960. void SetBlockEvents(bool);
  14961. void SetGlobalVar(StringHash, const Variant&);
  14962. void SetLanguage(const String&);
  14963. void SetLanguage(int);
  14964. const String& GetCategory() const;
  14965. const String& GetTypeName() const;
  14966. void UnsubscribeFromAllEvents();
  14967. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  14968. void UnsubscribeFromEvent(Object, StringHash);
  14969. void UnsubscribeFromEvent(StringHash);
  14970. void UnsubscribeFromEvents(Object);
  14971. const Variant& GetGlobalVar(StringHash) const;
  14972. const VariantMap& GetGlobalVars() const;
  14973. int WeakRefs() const;
  14974. operator const Object() const;
  14975. operator const RefCounted() const;
  14976. // Properties:
  14977. /* readonly */
  14978. String category;
  14979. Array<Variant> globalVar;
  14980. /* readonly */
  14981. VariantMap globalVars;
  14982. /* readonly */
  14983. String language;
  14984. /* readonly */
  14985. int languageIndex;
  14986. /* readonly */
  14987. int numLanguages;
  14988. /* readonly */
  14989. int refs;
  14990. /* readonly */
  14991. StringHash type;
  14992. /* readonly */
  14993. String typeName;
  14994. /* readonly */
  14995. int weakRefs;
  14996. };
  14997. class Log
  14998. {
  14999. public:
  15000. Log();
  15001. // Methods:
  15002. void Close();
  15003. void Debug(const String&);
  15004. void Error(const String&);
  15005. bool GetBlockEvents() const;
  15006. VariantMap& GetEventDataMap() const;
  15007. Object GetEventSender() const;
  15008. String GetLastMessage() const;
  15009. int GetLevel() const;
  15010. Object GetSubsystem(StringHash) const;
  15011. bool GetTimeStamp() const;
  15012. StringHash GetType() const;
  15013. bool HasEventHandlers() const;
  15014. bool HasSubscribedToEvent(Object, StringHash) const;
  15015. bool HasSubscribedToEvent(StringHash) const;
  15016. void Info(const String&);
  15017. bool IsInstanceOf(StringHash) const;
  15018. bool IsQuiet() const;
  15019. operator Object() const;
  15020. void OnEvent(Object, StringHash, VariantMap&);
  15021. void Open(const String&);
  15022. operator RefCounted() const;
  15023. int Refs() const;
  15024. void SendEvent(StringHash);
  15025. void SendEvent(StringHash, VariantMap&);
  15026. void SetBlockEvents(bool);
  15027. void SetGlobalVar(StringHash, const Variant&);
  15028. void SetLevel(int);
  15029. void SetQuiet(bool);
  15030. void SetTimeStamp(bool);
  15031. const String& GetCategory() const;
  15032. const String& GetTypeName() const;
  15033. void Trace(const String&);
  15034. void UnsubscribeFromAllEvents();
  15035. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15036. void UnsubscribeFromEvent(Object, StringHash);
  15037. void UnsubscribeFromEvent(StringHash);
  15038. void UnsubscribeFromEvents(Object);
  15039. const Variant& GetGlobalVar(StringHash) const;
  15040. const VariantMap& GetGlobalVars() const;
  15041. void Warning(const String&);
  15042. int WeakRefs() const;
  15043. void Write(const String&, bool error = false);
  15044. operator const Object() const;
  15045. operator const RefCounted() const;
  15046. // Properties:
  15047. /* readonly */
  15048. String category;
  15049. Array<Variant> globalVar;
  15050. /* readonly */
  15051. VariantMap globalVars;
  15052. /* readonly */
  15053. String lastMessage;
  15054. int level;
  15055. bool quiet;
  15056. /* readonly */
  15057. int refs;
  15058. bool timeStamp;
  15059. /* readonly */
  15060. StringHash type;
  15061. /* readonly */
  15062. String typeName;
  15063. /* readonly */
  15064. int weakRefs;
  15065. };
  15066. class LogicComponent
  15067. {
  15068. public:
  15069. LogicComponent();
  15070. // Methods:
  15071. void AllocateNetworkState();
  15072. operator Animatable() const;
  15073. void ApplyAttributes();
  15074. void CleanupConnection(Connection);
  15075. operator Component() const;
  15076. void DelayedStart();
  15077. void DrawDebugGeometry(DebugRenderer, bool);
  15078. void FixedPostUpdate(float);
  15079. void FixedUpdate(float);
  15080. bool GetAnimationEnabled() const;
  15081. Variant GetAttribute(const String&) const;
  15082. Variant GetAttribute(uint) const;
  15083. ValueAnimation GetAttributeAnimation(const String&) const;
  15084. float GetAttributeAnimationSpeed(const String&) const;
  15085. float GetAttributeAnimationTime(const String&) const;
  15086. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15087. Variant GetAttributeDefault(const String&) const;
  15088. Variant GetAttributeDefault(uint) const;
  15089. bool GetBlockEvents() const;
  15090. Component GetComponent(StringHash) const;
  15091. VariantMap& GetEventDataMap() const;
  15092. Object GetEventSender() const;
  15093. uint GetID() const;
  15094. bool GetInterceptNetworkUpdate(const String&) const;
  15095. Node GetNode() const;
  15096. uint GetNumAttributes() const;
  15097. uint GetNumNetworkAttributes() const;
  15098. ObjectAnimation GetObjectAnimation() const;
  15099. ResourceRef GetObjectAnimationAttr() const;
  15100. Scene GetScene() const;
  15101. Object GetSubsystem(StringHash) const;
  15102. StringHash GetType() const;
  15103. uint GetUpdateEventMask() const;
  15104. bool HasEventHandlers() const;
  15105. bool HasSubscribedToEvent(Object, StringHash) const;
  15106. bool HasSubscribedToEvent(StringHash) const;
  15107. bool IsDelayedStartCalled() const;
  15108. bool IsEnabled() const;
  15109. bool IsEnabledEffective() const;
  15110. bool IsInstanceOf(StringHash) const;
  15111. bool IsReplicated() const;
  15112. bool IsTemporary() const;
  15113. bool Load(Deserializer&);
  15114. bool LoadJSON(const JSONValue&);
  15115. bool LoadXML(const XMLElement&);
  15116. void MarkNetworkUpdate();
  15117. operator Object() const;
  15118. void OnEvent(Object, StringHash, VariantMap&);
  15119. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  15120. void OnSetAttribute(const AttributeInfo&, const Variant&);
  15121. void OnSetEnabled();
  15122. void PostUpdate(float);
  15123. void PrepareNetworkUpdate();
  15124. operator RaycastVehicle() const;
  15125. bool ReadDeltaUpdate(Deserializer&);
  15126. bool ReadLatestDataUpdate(Deserializer&);
  15127. operator RefCounted() const;
  15128. int Refs() const;
  15129. void Remove();
  15130. void RemoveAttributeAnimation(const String&);
  15131. void RemoveInstanceDefault();
  15132. void RemoveObjectAnimation();
  15133. void ResetToDefault();
  15134. bool Save(Serializer&) const;
  15135. bool SaveDefaultAttributes() const;
  15136. bool SaveJSON(JSONValue&) const;
  15137. bool SaveXML(XMLElement&) const;
  15138. void SendEvent(StringHash);
  15139. void SendEvent(StringHash, VariantMap&);
  15140. operator Serializable() const;
  15141. void SetAnimationEnabled(bool);
  15142. void SetAnimationTime(float);
  15143. bool SetAttribute(const String&, const Variant&);
  15144. bool SetAttribute(uint, const Variant&);
  15145. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15146. void SetAttributeAnimationSpeed(const String&, float);
  15147. void SetAttributeAnimationTime(const String&, float);
  15148. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15149. void SetBlockEvents(bool);
  15150. void SetEnabled(bool);
  15151. void SetGlobalVar(StringHash, const Variant&);
  15152. void SetInstanceDefault(bool);
  15153. void SetInterceptNetworkUpdate(const String&, bool);
  15154. void SetObjectAnimation(ObjectAnimation);
  15155. void SetObjectAnimationAttr(const ResourceRef&);
  15156. void SetTemporary(bool);
  15157. void SetUpdateEventMask(uint);
  15158. void Start();
  15159. void Stop();
  15160. const String& GetCategory() const;
  15161. const String& GetTypeName() const;
  15162. void UnsubscribeFromAllEvents();
  15163. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15164. void UnsubscribeFromEvent(Object, StringHash);
  15165. void UnsubscribeFromEvent(StringHash);
  15166. void UnsubscribeFromEvents(Object);
  15167. void Update(float);
  15168. const Variant& GetGlobalVar(StringHash) const;
  15169. const VariantMap& GetGlobalVars() const;
  15170. int WeakRefs() const;
  15171. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  15172. void WriteInitialDeltaUpdate(Serializer&, uint8);
  15173. void WriteLatestDataUpdate(Serializer&, uint8);
  15174. operator const Animatable() const;
  15175. operator const Component() const;
  15176. operator const Object() const;
  15177. operator const RaycastVehicle() const;
  15178. operator const RefCounted() const;
  15179. operator const Serializable() const;
  15180. // Properties:
  15181. bool animationEnabled;
  15182. /* readonly */
  15183. Array<Variant> attributeDefaults;
  15184. /* readonly */
  15185. Array<AttributeInfo> attributeInfos;
  15186. Array<Variant> attributes;
  15187. /* readonly */
  15188. String category;
  15189. bool enabled;
  15190. /* readonly */
  15191. bool enabledEffective;
  15192. Array<Variant> globalVar;
  15193. /* readonly */
  15194. VariantMap globalVars;
  15195. /* readonly */
  15196. uint id;
  15197. /* readonly */
  15198. Node node;
  15199. /* readonly */
  15200. uint numAttributes;
  15201. ObjectAnimation objectAnimation;
  15202. /* readonly */
  15203. int refs;
  15204. /* readonly */
  15205. bool replicated;
  15206. bool temporary;
  15207. /* readonly */
  15208. StringHash type;
  15209. /* readonly */
  15210. String typeName;
  15211. /* readonly */
  15212. int weakRefs;
  15213. };
  15214. class ManifoldPair
  15215. {
  15216. public:
  15217. ~ManifoldPair();
  15218. ManifoldPair();
  15219. // Methods:
  15220. ManifoldPair& operator=(const ManifoldPair&);
  15221. };
  15222. class Material
  15223. {
  15224. public:
  15225. Material();
  15226. // Methods:
  15227. bool BeginLoad(Deserializer&);
  15228. const BiasParameters& GetDepthBias() const;
  15229. Material Clone(const String& = String :: EMPTY) const;
  15230. bool EndLoad();
  15231. bool GetAlphaToCoverage() const;
  15232. AsyncLoadState GetAsyncLoadState() const;
  15233. uint GetAuxViewFrameNumber() const;
  15234. bool GetBlockEvents() const;
  15235. CullMode GetCullMode() const;
  15236. VariantMap& GetEventDataMap() const;
  15237. Object GetEventSender() const;
  15238. FillMode GetFillMode() const;
  15239. bool GetLineAntiAlias() const;
  15240. uint GetMemoryUse() const;
  15241. StringHash GetNameHash() const;
  15242. uint GetNumTechniques() const;
  15243. bool GetOcclusion() const;
  15244. Pass GetPass(uint, const String&) const;
  15245. uint8 GetRenderOrder() const;
  15246. Scene GetScene() const;
  15247. ValueAnimation GetShaderParameterAnimation(const String&) const;
  15248. float GetShaderParameterAnimationSpeed(const String&) const;
  15249. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  15250. uint GetShaderParameterHash() const;
  15251. CullMode GetShadowCullMode() const;
  15252. bool GetSpecular() const;
  15253. Object GetSubsystem(StringHash) const;
  15254. Technique GetTechnique(uint) const;
  15255. Texture GetTexture(TextureUnit) const;
  15256. StringHash GetType() const;
  15257. uint GetUseTimer();
  15258. bool HasEventHandlers() const;
  15259. bool HasSubscribedToEvent(Object, StringHash) const;
  15260. bool HasSubscribedToEvent(StringHash) const;
  15261. bool IsInstanceOf(StringHash) const;
  15262. bool Load(Deserializer&);
  15263. bool Load(File);
  15264. bool Load(VectorBuffer&);
  15265. bool Load(const JSONValue&);
  15266. bool Load(const String&);
  15267. bool Load(const XMLElement&);
  15268. bool LoadFile(const String&);
  15269. void MarkForAuxView(uint);
  15270. operator Object() const;
  15271. void OnEvent(Object, StringHash, VariantMap&);
  15272. operator RefCounted() const;
  15273. int Refs() const;
  15274. void ReleaseShaders();
  15275. void RemoveShaderParameter(const String&);
  15276. void ResetUseTimer();
  15277. operator Resource() const;
  15278. bool Save(File) const;
  15279. bool Save(JSONValue&) const;
  15280. bool Save(Serializer&) const;
  15281. bool Save(VectorBuffer&) const;
  15282. bool Save(XMLElement&) const;
  15283. bool Save(const String&) const;
  15284. bool SaveFile(const String&) const;
  15285. void SendEvent(StringHash);
  15286. void SendEvent(StringHash, VariantMap&);
  15287. void SetAlphaToCoverage(bool);
  15288. void SetAsyncLoadState(AsyncLoadState);
  15289. void SetBlockEvents(bool);
  15290. void SetCullMode(CullMode);
  15291. void SetDepthBias(const BiasParameters&);
  15292. void SetFillMode(FillMode);
  15293. void SetGlobalVar(StringHash, const Variant&);
  15294. void SetLineAntiAlias(bool);
  15295. void SetMemoryUse(uint);
  15296. void SetName(const String&);
  15297. void SetNumTechniques(uint);
  15298. void SetOcclusion(bool);
  15299. void SetPixelShaderDefines(const String&);
  15300. void SetRenderOrder(uint8);
  15301. void SetScene(Scene);
  15302. void SetShaderParameter(const String&, const Variant&);
  15303. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15304. void SetShaderParameterAnimationSpeed(const String&, float);
  15305. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  15306. void SetShadowCullMode(CullMode);
  15307. void SetTechnique(uint, Technique, uint = QUALITY_LOW, float = 0.0f);
  15308. void SetTexture(TextureUnit, Texture);
  15309. void SetUVTransform(const Vector2&, float, const Vector2&);
  15310. void SetUVTransform(const Vector2&, float, float);
  15311. void SetVertexShaderDefines(const String&);
  15312. void SortTechniques();
  15313. const String& GetCategory() const;
  15314. const String& GetName() const;
  15315. const String& GetPixelShaderDefines() const;
  15316. const String& GetTypeName() const;
  15317. const String& GetVertexShaderDefines() const;
  15318. const TechniqueEntry& GetTechniqueEntry(uint) const;
  15319. void UnsubscribeFromAllEvents();
  15320. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15321. void UnsubscribeFromEvent(Object, StringHash);
  15322. void UnsubscribeFromEvent(StringHash);
  15323. void UnsubscribeFromEvents(Object);
  15324. const Variant& GetGlobalVar(StringHash) const;
  15325. const Variant& GetShaderParameter(const String&) const;
  15326. const VariantMap& GetGlobalVars() const;
  15327. int WeakRefs() const;
  15328. operator const Object() const;
  15329. operator const RefCounted() const;
  15330. operator const Resource() const;
  15331. // Properties:
  15332. bool alphaToCoverage;
  15333. /* readonly */
  15334. String category;
  15335. CullMode cullMode;
  15336. BiasParameters depthBias;
  15337. FillMode fillMode;
  15338. Array<Variant> globalVar;
  15339. /* readonly */
  15340. VariantMap globalVars;
  15341. bool lineAntiAlias;
  15342. /* readonly */
  15343. uint memoryUse;
  15344. String name;
  15345. uint numTechniques;
  15346. bool occlusion;
  15347. String pixelShaderDefines;
  15348. /* readonly */
  15349. int refs;
  15350. uint8 renderOrder;
  15351. Scene scene;
  15352. /* readonly */
  15353. Array<String> shaderParameterNames;
  15354. Array<Variant> shaderParameters;
  15355. CullMode shadowCullMode;
  15356. /* readonly */
  15357. Array<TechniqueEntry> techniqueEntries;
  15358. /* readonly */
  15359. Array<Technique> techniques;
  15360. Array<Texture> textures;
  15361. /* readonly */
  15362. StringHash type;
  15363. /* readonly */
  15364. String typeName;
  15365. /* readonly */
  15366. uint useTimer;
  15367. String vertexShaderDefines;
  15368. /* readonly */
  15369. int weakRefs;
  15370. };
  15371. class MaterialShaderParameter
  15372. {
  15373. public:
  15374. ~MaterialShaderParameter();
  15375. MaterialShaderParameter();
  15376. // Methods:
  15377. MaterialShaderParameter& operator=(const MaterialShaderParameter&);
  15378. // Properties:
  15379. String name;
  15380. Variant value;
  15381. };
  15382. class Matrix2
  15383. {
  15384. public:
  15385. Matrix2();
  15386. Matrix2(const Matrix2&in);
  15387. Matrix2(float, float, float, float);
  15388. // Methods:
  15389. Matrix2 operator+(const Matrix2&) const;
  15390. Matrix2& operator=(const Matrix2&);
  15391. bool operator==(const Matrix2&) const;
  15392. bool Equals(const Matrix2&) const;
  15393. Matrix2 Inverse() const;
  15394. bool IsInf() const;
  15395. bool IsNaN() const;
  15396. Vector2 Scale() const;
  15397. Matrix2 Scaled(const Vector2&) const;
  15398. void SetScale(const Vector2&);
  15399. void SetScale(float);
  15400. String ToString() const;
  15401. Matrix2 Transpose() const;
  15402. // Properties:
  15403. float m00;
  15404. float m01;
  15405. float m10;
  15406. float m11;
  15407. // Constants:
  15408. static const Matrix2 IDENTITY;
  15409. static const Matrix2 ZERO;
  15410. };
  15411. class Matrix3
  15412. {
  15413. public:
  15414. Matrix3();
  15415. Matrix3(const Matrix3&in);
  15416. Matrix3(float, float, float, float, float, float, float, float, float);
  15417. // Methods:
  15418. Matrix3 operator+(const Matrix3&) const;
  15419. Matrix3& operator=(const Matrix3&);
  15420. bool operator==(const Matrix3&) const;
  15421. Vector3 Column(uint) const;
  15422. float Element(uint, uint) const;
  15423. bool Equals(const Matrix3&) const;
  15424. Matrix3 Inverse() const;
  15425. bool IsInf() const;
  15426. bool IsNaN() const;
  15427. Vector3 Row(uint) const;
  15428. Vector3 Scale() const;
  15429. Matrix3 Scaled(const Vector3&) const;
  15430. void SetScale(const Vector3&);
  15431. void SetScale(float);
  15432. Vector3 SignedScale(const Matrix3&) const;
  15433. String ToString() const;
  15434. Matrix3 Transpose() const;
  15435. // Properties:
  15436. float m00;
  15437. float m01;
  15438. float m02;
  15439. float m10;
  15440. float m11;
  15441. float m12;
  15442. float m20;
  15443. float m21;
  15444. float m22;
  15445. // Constants:
  15446. static const Matrix3 IDENTITY;
  15447. static const Matrix3 ZERO;
  15448. };
  15449. class Matrix3x4
  15450. {
  15451. public:
  15452. Matrix3x4();
  15453. Matrix3x4(const Matrix3x4&in);
  15454. Matrix3x4(const Matrix3&in);
  15455. Matrix3x4(const Matrix4&in);
  15456. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  15457. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  15458. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  15459. // Methods:
  15460. Matrix3x4 operator+(const Matrix3x4&) const;
  15461. Matrix3x4& operator=(const Matrix3&);
  15462. Matrix3x4& operator=(const Matrix3x4&);
  15463. Matrix3x4& operator=(const Matrix4&);
  15464. bool operator==(const Matrix3x4&) const;
  15465. Vector3 Column(uint) const;
  15466. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  15467. float Element(uint, uint) const;
  15468. bool Equals(const Matrix3x4&) const;
  15469. Matrix3x4 Inverse() const;
  15470. bool IsInf() const;
  15471. bool IsNaN() const;
  15472. Quaternion Rotation() const;
  15473. Matrix3 RotationMatrix() const;
  15474. Vector4 Row(uint) const;
  15475. Vector3 Scale() const;
  15476. void SetRotation(const Matrix3&);
  15477. void SetScale(const Vector3&);
  15478. void SetScale(float);
  15479. void SetTranslation(const Vector3&);
  15480. Vector3 SignedScale(const Matrix3&) const;
  15481. Matrix3 ToMatrix3() const;
  15482. Matrix4 ToMatrix4() const;
  15483. String ToString() const;
  15484. Vector3 Translation() const;
  15485. // Properties:
  15486. float m00;
  15487. float m01;
  15488. float m02;
  15489. float m03;
  15490. float m10;
  15491. float m11;
  15492. float m12;
  15493. float m13;
  15494. float m20;
  15495. float m21;
  15496. float m22;
  15497. float m23;
  15498. // Constants:
  15499. static const Matrix3x4 IDENTITY;
  15500. static const Matrix3x4 ZERO;
  15501. };
  15502. class Matrix4
  15503. {
  15504. public:
  15505. Matrix4();
  15506. Matrix4(const Matrix4&in);
  15507. Matrix4(const Matrix3&in);
  15508. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  15509. // Methods:
  15510. Matrix4 operator+(const Matrix4&) const;
  15511. Matrix4& operator=(const Matrix3&);
  15512. Matrix4& operator=(const Matrix4&);
  15513. bool operator==(const Matrix4&) const;
  15514. Vector4 Column(uint) const;
  15515. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  15516. float Element(uint, uint) const;
  15517. bool Equals(const Matrix4&) const;
  15518. Matrix4 Inverse() const;
  15519. bool IsInf() const;
  15520. bool IsNaN() const;
  15521. Quaternion Rotation() const;
  15522. Matrix3 RotationMatrix() const;
  15523. Vector4 Row(uint) const;
  15524. Vector3 Scale() const;
  15525. void SetRotation(const Matrix3&);
  15526. void SetScale(const Vector3&);
  15527. void SetScale(float);
  15528. void SetTranslation(const Vector3&);
  15529. Vector3 SignedScale(const Matrix3&) const;
  15530. Matrix3 ToMatrix3() const;
  15531. String ToString() const;
  15532. Vector3 Translation() const;
  15533. Matrix4 Transpose() const;
  15534. // Properties:
  15535. float m00;
  15536. float m01;
  15537. float m02;
  15538. float m03;
  15539. float m10;
  15540. float m11;
  15541. float m12;
  15542. float m13;
  15543. float m20;
  15544. float m21;
  15545. float m22;
  15546. float m23;
  15547. float m30;
  15548. float m31;
  15549. float m32;
  15550. float m33;
  15551. // Constants:
  15552. static const Matrix4 IDENTITY;
  15553. static const Matrix4 ZERO;
  15554. };
  15555. class Menu
  15556. {
  15557. public:
  15558. Menu();
  15559. Menu(const String&in);
  15560. // Methods:
  15561. void AddChild(UIElement);
  15562. void AddTag(const String&);
  15563. void AddTags(Array<String>);
  15564. void AddTags(const String&, int8 = ';');
  15565. void AdjustScissor(IntRect&);
  15566. void AllocateNetworkState();
  15567. operator Animatable() const;
  15568. void ApplyAttributes();
  15569. operator BorderImage() const;
  15570. void BringToFront();
  15571. operator Button() const;
  15572. const Color& GetColor(Corner) const;
  15573. const Color& GetColorAttr() const;
  15574. const Color& GetDerivedColor() const;
  15575. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  15576. void DisableLayoutUpdate();
  15577. operator DropDownList() const;
  15578. IntVector2 ElementToScreen(const IntVector2&);
  15579. void EnableLayoutUpdate();
  15580. bool FilterAttributes(XMLElement&) const;
  15581. uint FindChild(UIElement) const;
  15582. int GetAcceleratorKey() const;
  15583. int GetAcceleratorQualifiers() const;
  15584. bool GetAnimationEnabled() const;
  15585. Variant GetAttribute(const String&) const;
  15586. Variant GetAttribute(uint) const;
  15587. ValueAnimation GetAttributeAnimation(const String&) const;
  15588. float GetAttributeAnimationSpeed(const String&) const;
  15589. float GetAttributeAnimationTime(const String&) const;
  15590. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15591. Variant GetAttributeDefault(const String&) const;
  15592. Variant GetAttributeDefault(uint) const;
  15593. BlendMode GetBlendMode() const;
  15594. bool GetBlockEvents() const;
  15595. bool GetBringToBack() const;
  15596. bool GetBringToFront() const;
  15597. UIElement GetChild(const String&, bool = false) const;
  15598. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  15599. UIElement GetChild(uint) const;
  15600. Array<UIElement> GetChildren() const;
  15601. Array<UIElement> GetChildren(bool) const;
  15602. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  15603. bool GetClipChildren() const;
  15604. IntRect GetCombinedScreenRect();
  15605. XMLFile GetDefaultStyle(bool = true) const;
  15606. float GetDerivedOpacity() const;
  15607. uint GetDragButtonCombo() const;
  15608. uint GetDragButtonCount() const;
  15609. uint GetDragDropMode() const;
  15610. IntVector2 GetEffectiveMinSize() const;
  15611. UIElement GetElementEventSender() const;
  15612. bool GetEnableAnchor() const;
  15613. VariantMap& GetEventDataMap() const;
  15614. Object GetEventSender() const;
  15615. FocusMode GetFocusMode() const;
  15616. int GetHeight() const;
  15617. HorizontalAlignment GetHorizontalAlignment() const;
  15618. int GetIndent() const;
  15619. int GetIndentSpacing() const;
  15620. int GetIndentWidth() const;
  15621. bool GetInterceptNetworkUpdate(const String&) const;
  15622. int GetLayoutElementMaxSize() const;
  15623. LayoutMode GetLayoutMode() const;
  15624. int GetLayoutSpacing() const;
  15625. Material GetMaterial() const;
  15626. ResourceRef GetMaterialAttr() const;
  15627. int GetMaxHeight() const;
  15628. int GetMaxWidth() const;
  15629. int GetMinHeight() const;
  15630. int GetMinWidth() const;
  15631. uint GetNumAttributes() const;
  15632. uint GetNumChildren(bool = false) const;
  15633. uint GetNumNetworkAttributes() const;
  15634. ObjectAnimation GetObjectAnimation() const;
  15635. ResourceRef GetObjectAnimationAttr() const;
  15636. float GetOpacity() const;
  15637. UIElement GetParent() const;
  15638. UIElement GetPopup() const;
  15639. int GetPriority() const;
  15640. float GetRepeatDelay() const;
  15641. float GetRepeatRate() const;
  15642. UIElement GetRoot() const;
  15643. bool GetShowPopup() const;
  15644. bool GetSortChildren() const;
  15645. Object GetSubsystem(StringHash) const;
  15646. Array<String> GetTags() const;
  15647. Texture GetTexture() const;
  15648. ResourceRef GetTextureAttr() const;
  15649. TraversalMode GetTraversalMode() const;
  15650. StringHash GetType() const;
  15651. bool GetUseDerivedOpacity() const;
  15652. VerticalAlignment GetVerticalAlignment() const;
  15653. int GetWidth() const;
  15654. bool HasColorGradient() const;
  15655. bool HasEventHandlers() const;
  15656. bool HasFocus() const;
  15657. bool HasSubscribedToEvent(Object, StringHash) const;
  15658. bool HasSubscribedToEvent(StringHash) const;
  15659. bool HasTag(const String&) const;
  15660. void InsertChild(uint, UIElement);
  15661. const IntRect& GetBorder() const;
  15662. const IntRect& GetClipBorder() const;
  15663. const IntRect& GetImageBorder() const;
  15664. const IntRect& GetImageRect() const;
  15665. const IntRect& GetLayoutBorder() const;
  15666. const IntVector2& GetChildOffset() const;
  15667. const IntVector2& GetDisabledOffset() const;
  15668. const IntVector2& GetHoverOffset() const;
  15669. const IntVector2& GetMaxOffset() const;
  15670. const IntVector2& GetMaxSize() const;
  15671. const IntVector2& GetMinOffset() const;
  15672. const IntVector2& GetMinSize() const;
  15673. const IntVector2& GetPopupOffset() const;
  15674. const IntVector2& GetPosition() const;
  15675. const IntVector2& GetPressedChildOffset() const;
  15676. const IntVector2& GetPressedOffset() const;
  15677. const IntVector2& GetScreenPosition() const;
  15678. const IntVector2& GetSize() const;
  15679. bool IsChildOf(UIElement) const;
  15680. bool IsEditable() const;
  15681. bool IsElementEventSender() const;
  15682. bool IsEnabled() const;
  15683. bool IsEnabledSelf() const;
  15684. bool IsFixedHeight() const;
  15685. bool IsFixedSize() const;
  15686. bool IsFixedWidth() const;
  15687. bool IsHovering() const;
  15688. bool IsInside(IntVector2, bool);
  15689. bool IsInsideCombined(IntVector2, bool);
  15690. bool IsInstanceOf(StringHash) const;
  15691. bool IsInternal() const;
  15692. bool IsPressed() const;
  15693. bool IsSelected() const;
  15694. bool IsTemporary() const;
  15695. bool IsTiled() const;
  15696. bool IsVisible() const;
  15697. bool IsVisibleEffective() const;
  15698. bool IsWheelHandler() const;
  15699. bool IsWithinScissor(const IntRect&);
  15700. bool Load(Deserializer&);
  15701. UIElement LoadChildXML(XMLFile, XMLFile);
  15702. UIElement LoadChildXML(const XMLElement&, XMLFile);
  15703. bool LoadJSON(const JSONValue&);
  15704. bool LoadXML(Deserializer&);
  15705. bool LoadXML(File);
  15706. bool LoadXML(VectorBuffer&);
  15707. bool LoadXML(XMLFile, XMLFile);
  15708. bool LoadXML(const XMLElement&);
  15709. bool LoadXML(const XMLElement&, XMLFile);
  15710. void MarkNetworkUpdate();
  15711. operator Object() const;
  15712. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  15713. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  15714. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  15715. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15716. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15717. bool OnDragDropFinish(UIElement);
  15718. bool OnDragDropTest(UIElement);
  15719. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15720. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15721. void OnEvent(Object, StringHash, VariantMap&);
  15722. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  15723. void OnHidePopup();
  15724. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15725. void OnIndentSet();
  15726. void OnKey(uint, uint, uint);
  15727. void OnPositionSet(const IntVector2&);
  15728. void OnResize(const IntVector2&, const IntVector2&);
  15729. void OnSetAttribute(const AttributeInfo&, const Variant&);
  15730. void OnSetEditable();
  15731. void OnShowPopup();
  15732. void OnTextInput(const String&);
  15733. void OnWheel(int, uint, uint);
  15734. bool ReadDeltaUpdate(Deserializer&);
  15735. bool ReadLatestDataUpdate(Deserializer&);
  15736. operator RefCounted() const;
  15737. int Refs() const;
  15738. void Remove();
  15739. void RemoveAllChildren();
  15740. void RemoveAllTags();
  15741. void RemoveAttributeAnimation(const String&);
  15742. void RemoveChild(UIElement, uint = 0);
  15743. void RemoveChild(uint);
  15744. void RemoveChildAtIndex(uint);
  15745. void RemoveInstanceDefault();
  15746. void RemoveObjectAnimation();
  15747. bool RemoveTag(const String&);
  15748. void ResetDeepEnabled();
  15749. void ResetToDefault();
  15750. bool Save(Serializer&) const;
  15751. bool SaveDefaultAttributes() const;
  15752. bool SaveJSON(JSONValue&) const;
  15753. bool SaveXML(File, const String& indentation = "\t");
  15754. bool SaveXML(Serializer&, const String& = "\t") const;
  15755. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  15756. bool SaveXML(XMLElement&) const;
  15757. IntVector2 ScreenToElement(const IntVector2&);
  15758. void SendEvent(StringHash);
  15759. void SendEvent(StringHash, VariantMap&);
  15760. operator Serializable() const;
  15761. void SetAccelerator(int, int);
  15762. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  15763. void SetAnimationEnabled(bool);
  15764. void SetAnimationTime(float);
  15765. bool SetAttribute(const String&, const Variant&);
  15766. bool SetAttribute(uint, const Variant&);
  15767. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15768. void SetAttributeAnimationSpeed(const String&, float);
  15769. void SetAttributeAnimationTime(const String&, float);
  15770. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15771. void SetBlendMode(BlendMode);
  15772. void SetBlockEvents(bool);
  15773. void SetBorder(const IntRect&);
  15774. void SetBringToBack(bool);
  15775. void SetBringToFront(bool);
  15776. void SetChildOffset(const IntVector2&);
  15777. void SetClipBorder(const IntRect&);
  15778. void SetClipChildren(bool);
  15779. void SetColor(Corner, const Color&);
  15780. void SetColor(const Color&);
  15781. void SetDeepEnabled(bool);
  15782. void SetDefaultStyle(XMLFile);
  15783. void SetDisabledOffset(const IntVector2&);
  15784. void SetDisabledOffset(int, int);
  15785. void SetDragDropMode(uint);
  15786. void SetEditable(bool);
  15787. void SetElementEventSender(bool);
  15788. void SetEnableAnchor(bool);
  15789. void SetEnabled(bool);
  15790. void SetEnabledRecursive(bool);
  15791. void SetFixedHeight(int);
  15792. void SetFixedSize(const IntVector2&);
  15793. void SetFixedSize(int, int);
  15794. void SetFixedWidth(int);
  15795. void SetFocus(bool);
  15796. void SetFocusMode(FocusMode);
  15797. void SetFullImageRect();
  15798. void SetGlobalVar(StringHash, const Variant&);
  15799. void SetHeight(int);
  15800. void SetHorizontalAlignment(HorizontalAlignment);
  15801. void SetHoverOffset(const IntVector2&);
  15802. void SetHoverOffset(int, int);
  15803. void SetHovering(bool);
  15804. void SetImageBorder(const IntRect&);
  15805. void SetImageRect(const IntRect&);
  15806. void SetIndent(int);
  15807. void SetIndentSpacing(int);
  15808. void SetInstanceDefault(bool);
  15809. void SetInterceptNetworkUpdate(const String&, bool);
  15810. void SetInternal(bool);
  15811. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  15812. void SetLayoutBorder(const IntRect&);
  15813. void SetLayoutFlexScale(const Vector2&);
  15814. void SetLayoutMode(LayoutMode);
  15815. void SetLayoutSpacing(int);
  15816. void SetMaterial(Material);
  15817. void SetMaterialAttr(const ResourceRef&);
  15818. void SetMaxAnchor(const Vector2&);
  15819. void SetMaxAnchor(float, float);
  15820. void SetMaxHeight(int);
  15821. void SetMaxOffset(const IntVector2&);
  15822. void SetMaxSize(const IntVector2&);
  15823. void SetMaxSize(int, int);
  15824. void SetMaxWidth(int);
  15825. void SetMinAnchor(const Vector2&);
  15826. void SetMinAnchor(float, float);
  15827. void SetMinHeight(int);
  15828. void SetMinOffset(const IntVector2&);
  15829. void SetMinSize(const IntVector2&);
  15830. void SetMinSize(int, int);
  15831. void SetMinWidth(int);
  15832. void SetName(const String&);
  15833. void SetObjectAnimation(ObjectAnimation);
  15834. void SetObjectAnimationAttr(const ResourceRef&);
  15835. void SetOpacity(float);
  15836. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  15837. void SetPivot(const Vector2&);
  15838. void SetPivot(float, float);
  15839. void SetPopup(UIElement);
  15840. void SetPopupOffset(const IntVector2&);
  15841. void SetPopupOffset(int, int);
  15842. void SetPosition(const IntVector2&);
  15843. void SetPosition(int, int);
  15844. void SetPressedChildOffset(const IntVector2&);
  15845. void SetPressedChildOffset(int, int);
  15846. void SetPressedOffset(const IntVector2&);
  15847. void SetPressedOffset(int, int);
  15848. void SetPriority(int);
  15849. void SetRenderTexture(Texture2D);
  15850. void SetRepeat(float, float);
  15851. void SetRepeatDelay(float);
  15852. void SetRepeatRate(float);
  15853. void SetSelected(bool);
  15854. void SetSize(const IntVector2&);
  15855. void SetSize(int, int);
  15856. void SetSortChildren(bool);
  15857. bool SetStyle(const String&, XMLFile = null);
  15858. bool SetStyle(const XMLElement&);
  15859. bool SetStyleAuto(XMLFile = null);
  15860. void SetTags(Array<String>);
  15861. void SetTemporary(bool);
  15862. void SetTexture(Texture);
  15863. void SetTextureAttr(const ResourceRef&);
  15864. void SetTiled(bool);
  15865. void SetTraversalMode(TraversalMode);
  15866. void SetUseDerivedOpacity(bool);
  15867. void SetVar(StringHash, const Variant&);
  15868. void SetVerticalAlignment(VerticalAlignment);
  15869. void SetVisible(bool);
  15870. void SetWidth(int);
  15871. void ShowPopup(bool);
  15872. void SortChildren();
  15873. const String& GetAppliedStyle() const;
  15874. const String& GetCategory() const;
  15875. const String& GetName() const;
  15876. const String& GetTypeName() const;
  15877. operator UIElement() const;
  15878. void UnsubscribeFromAllEvents();
  15879. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15880. void UnsubscribeFromEvent(Object, StringHash);
  15881. void UnsubscribeFromEvent(StringHash);
  15882. void UnsubscribeFromEvents(Object);
  15883. void Update(float);
  15884. void UpdateLayout();
  15885. const Variant& GetGlobalVar(StringHash) const;
  15886. const Variant& GetVar(const StringHash&) const;
  15887. const VariantMap& GetGlobalVars() const;
  15888. const VariantMap& GetVars() const;
  15889. const Vector2& GetLayoutFlexScale() const;
  15890. const Vector2& GetMaxAnchor() const;
  15891. const Vector2& GetMinAnchor() const;
  15892. const Vector2& GetPivot() const;
  15893. int WeakRefs() const;
  15894. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  15895. void WriteInitialDeltaUpdate(Serializer&, uint8);
  15896. void WriteLatestDataUpdate(Serializer&, uint8);
  15897. operator const Animatable() const;
  15898. operator const BorderImage() const;
  15899. operator const Button() const;
  15900. operator const DropDownList() const;
  15901. operator const Object() const;
  15902. operator const RefCounted() const;
  15903. operator const Serializable() const;
  15904. operator const UIElement() const;
  15905. // Properties:
  15906. /* readonly */
  15907. int acceleratorKey;
  15908. /* readonly */
  15909. int acceleratorQualifiers;
  15910. bool animationEnabled;
  15911. /* readonly */
  15912. Array<Variant> attributeDefaults;
  15913. /* readonly */
  15914. Array<AttributeInfo> attributeInfos;
  15915. Array<Variant> attributes;
  15916. BlendMode blendMode;
  15917. IntRect border;
  15918. bool bringToBack;
  15919. bool bringToFront;
  15920. /* readonly */
  15921. String category;
  15922. /* readonly */
  15923. IntVector2 childOffset;
  15924. /* readonly */
  15925. Array<UIElement> children;
  15926. IntRect clipBorder;
  15927. bool clipChildren;
  15928. /* writeonly */
  15929. Color color;
  15930. /* readonly */
  15931. bool colorGradient;
  15932. Array<Color> colors;
  15933. /* readonly */
  15934. IntRect combinedScreenRect;
  15935. XMLFile defaultStyle;
  15936. /* readonly */
  15937. float derivedOpacity;
  15938. IntVector2 disabledOffset;
  15939. /* readonly */
  15940. uint dragButtonCombo;
  15941. /* readonly */
  15942. uint dragButtonCount;
  15943. uint dragDropMode;
  15944. bool editable;
  15945. bool elementEventSender;
  15946. bool enableAnchor;
  15947. bool enabled;
  15948. /* readonly */
  15949. bool enabledSelf;
  15950. /* readonly */
  15951. bool fixedHeight;
  15952. /* readonly */
  15953. bool fixedSize;
  15954. /* readonly */
  15955. bool fixedWidth;
  15956. bool focus;
  15957. FocusMode focusMode;
  15958. Array<Variant> globalVar;
  15959. /* readonly */
  15960. VariantMap globalVars;
  15961. int height;
  15962. HorizontalAlignment horizontalAlignment;
  15963. IntVector2 hoverOffset;
  15964. /* readonly */
  15965. bool hovering;
  15966. IntRect imageBorder;
  15967. IntRect imageRect;
  15968. int indent;
  15969. int indentSpacing;
  15970. /* readonly */
  15971. int indentWidth;
  15972. bool internal;
  15973. IntRect layoutBorder;
  15974. Vector2 layoutFlexScale;
  15975. LayoutMode layoutMode;
  15976. int layoutSpacing;
  15977. Material material;
  15978. Vector2 maxAnchor;
  15979. int maxHeight;
  15980. IntVector2 maxOffset;
  15981. IntVector2 maxSize;
  15982. int maxWidth;
  15983. Vector2 minAnchor;
  15984. int minHeight;
  15985. IntVector2 minOffset;
  15986. IntVector2 minSize;
  15987. int minWidth;
  15988. String name;
  15989. /* readonly */
  15990. uint numAllChildren;
  15991. /* readonly */
  15992. uint numAttributes;
  15993. /* readonly */
  15994. uint numChildren;
  15995. ObjectAnimation objectAnimation;
  15996. float opacity;
  15997. UIElement parent;
  15998. Vector2 pivot;
  15999. UIElement popup;
  16000. IntVector2 popupOffset;
  16001. IntVector2 position;
  16002. /* readonly */
  16003. bool pressed;
  16004. IntVector2 pressedChildOffset;
  16005. IntVector2 pressedOffset;
  16006. int priority;
  16007. /* readonly */
  16008. int refs;
  16009. float repeatDelay;
  16010. float repeatRate;
  16011. /* readonly */
  16012. UIElement root;
  16013. /* readonly */
  16014. IntVector2 screenPosition;
  16015. bool selected;
  16016. bool showPopup;
  16017. IntVector2 size;
  16018. bool sortChildren;
  16019. String style;
  16020. /* readonly */
  16021. Array<String> tags;
  16022. bool temporary;
  16023. Texture texture;
  16024. bool tiled;
  16025. TraversalMode traversalMode;
  16026. /* readonly */
  16027. StringHash type;
  16028. /* readonly */
  16029. String typeName;
  16030. bool useDerivedOpacity;
  16031. /* readonly */
  16032. VariantMap vars;
  16033. VerticalAlignment verticalAlignment;
  16034. bool visible;
  16035. /* readonly */
  16036. bool visibleEffective;
  16037. /* readonly */
  16038. int weakRefs;
  16039. int width;
  16040. };
  16041. class MessageBox
  16042. {
  16043. public:
  16044. MessageBox(const String&in = String :: EMPTY, const String&in = String :: EMPTY, XMLFile& = null, XMLFile& = null);
  16045. // Methods:
  16046. bool GetBlockEvents() const;
  16047. VariantMap& GetEventDataMap() const;
  16048. Object GetEventSender() const;
  16049. Object GetSubsystem(StringHash) const;
  16050. StringHash GetType() const;
  16051. UIElement GetWindow() const;
  16052. bool HasEventHandlers() const;
  16053. bool HasSubscribedToEvent(Object, StringHash) const;
  16054. bool HasSubscribedToEvent(StringHash) const;
  16055. bool IsInstanceOf(StringHash) const;
  16056. operator Object() const;
  16057. void OnEvent(Object, StringHash, VariantMap&);
  16058. operator RefCounted() const;
  16059. int Refs() const;
  16060. void SendEvent(StringHash);
  16061. void SendEvent(StringHash, VariantMap&);
  16062. void SetBlockEvents(bool);
  16063. void SetGlobalVar(StringHash, const Variant&);
  16064. void SetMessage(const String&);
  16065. void SetTitle(const String&);
  16066. const String& GetCategory() const;
  16067. const String& GetMessage() const;
  16068. const String& GetTitle() const;
  16069. const String& GetTypeName() const;
  16070. void UnsubscribeFromAllEvents();
  16071. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16072. void UnsubscribeFromEvent(Object, StringHash);
  16073. void UnsubscribeFromEvent(StringHash);
  16074. void UnsubscribeFromEvents(Object);
  16075. const Variant& GetGlobalVar(StringHash) const;
  16076. const VariantMap& GetGlobalVars() const;
  16077. int WeakRefs() const;
  16078. operator const Object() const;
  16079. operator const RefCounted() const;
  16080. // Properties:
  16081. /* readonly */
  16082. String category;
  16083. Array<Variant> globalVar;
  16084. /* readonly */
  16085. VariantMap globalVars;
  16086. String message;
  16087. /* readonly */
  16088. int refs;
  16089. String title;
  16090. /* readonly */
  16091. StringHash type;
  16092. /* readonly */
  16093. String typeName;
  16094. /* readonly */
  16095. int weakRefs;
  16096. /* readonly */
  16097. UIElement window;
  16098. };
  16099. class Model
  16100. {
  16101. public:
  16102. Model();
  16103. // Methods:
  16104. void AddMetadata(const String&, const Variant&);
  16105. bool BeginLoad(Deserializer&);
  16106. const BoundingBox& GetBoundingBox() const;
  16107. Model Clone(const String& = String :: EMPTY) const;
  16108. bool EndLoad();
  16109. AsyncLoadState GetAsyncLoadState() const;
  16110. bool GetBlockEvents() const;
  16111. VariantMap& GetEventDataMap() const;
  16112. Object GetEventSender() const;
  16113. Geometry GetGeometry(uint, uint) const;
  16114. Array<Vector3> GetGeometryCenters() const;
  16115. Array<IndexBuffer> GetIndexBuffers() const;
  16116. uint GetMemoryUse() const;
  16117. uint GetMorphRangeCount(uint) const;
  16118. uint GetMorphRangeStart(uint) const;
  16119. StringHash GetNameHash() const;
  16120. uint GetNumGeometries() const;
  16121. uint GetNumGeometryLodLevels(uint) const;
  16122. uint GetNumMorphs() const;
  16123. Skeleton& GetSkeleton();
  16124. Object GetSubsystem(StringHash) const;
  16125. StringHash GetType() const;
  16126. uint GetUseTimer();
  16127. Array<VertexBuffer> GetVertexBuffers() const;
  16128. bool HasEventHandlers() const;
  16129. bool HasMetadata() const;
  16130. bool HasSubscribedToEvent(Object, StringHash) const;
  16131. bool HasSubscribedToEvent(StringHash) const;
  16132. bool IsInstanceOf(StringHash) const;
  16133. bool Load(Deserializer&);
  16134. bool Load(File);
  16135. bool Load(VectorBuffer&);
  16136. bool Load(const String&);
  16137. bool LoadFile(const String&);
  16138. operator Object() const;
  16139. void OnEvent(Object, StringHash, VariantMap&);
  16140. operator RefCounted() const;
  16141. int Refs() const;
  16142. void RemoveAllMetadata();
  16143. void RemoveMetadata(const String&);
  16144. void ResetUseTimer();
  16145. operator Resource() const;
  16146. operator ResourceWithMetadata() const;
  16147. bool Save(File) const;
  16148. bool Save(Serializer&) const;
  16149. bool Save(VectorBuffer&) const;
  16150. bool Save(const String&) const;
  16151. bool SaveFile(const String&) const;
  16152. void SendEvent(StringHash);
  16153. void SendEvent(StringHash, VariantMap&);
  16154. void SetAsyncLoadState(AsyncLoadState);
  16155. void SetBlockEvents(bool);
  16156. void SetBoundingBox(const BoundingBox&);
  16157. bool SetGeometry(uint, uint, Geometry);
  16158. bool SetGeometryCenter(uint, const Vector3&);
  16159. void SetGlobalVar(StringHash, const Variant&);
  16160. bool SetIndexBuffers(Array<IndexBuffer>);
  16161. void SetMemoryUse(uint);
  16162. void SetName(const String&);
  16163. void SetNumGeometries(uint);
  16164. bool SetNumGeometryLodLevels(uint, uint);
  16165. void SetSkeleton(const Skeleton&);
  16166. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  16167. const String& GetCategory() const;
  16168. const String& GetName() const;
  16169. const String& GetTypeName() const;
  16170. void UnsubscribeFromAllEvents();
  16171. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16172. void UnsubscribeFromEvent(Object, StringHash);
  16173. void UnsubscribeFromEvent(StringHash);
  16174. void UnsubscribeFromEvents(Object);
  16175. const Variant& GetGlobalVar(StringHash) const;
  16176. const Variant& GetMetadata(const String&) const;
  16177. const VariantMap& GetGlobalVars() const;
  16178. const Vector3& GetGeometryCenter(uint) const;
  16179. int WeakRefs() const;
  16180. operator const Object() const;
  16181. operator const RefCounted() const;
  16182. operator const Resource() const;
  16183. operator const ResourceWithMetadata() const;
  16184. // Properties:
  16185. BoundingBox boundingBox;
  16186. /* readonly */
  16187. String category;
  16188. Array<Vector3> geometryCenters;
  16189. Array<Variant> globalVar;
  16190. /* readonly */
  16191. VariantMap globalVars;
  16192. /* readonly */
  16193. bool hasMetadata;
  16194. /* readonly */
  16195. uint memoryUse;
  16196. Array<Variant> metadata;
  16197. String name;
  16198. uint numGeometries;
  16199. Array<uint> numGeometryLodLevels;
  16200. /* readonly */
  16201. uint numMorphs;
  16202. /* readonly */
  16203. int refs;
  16204. /* readonly */
  16205. Skeleton skeleton;
  16206. /* readonly */
  16207. StringHash type;
  16208. /* readonly */
  16209. String typeName;
  16210. /* readonly */
  16211. uint useTimer;
  16212. /* readonly */
  16213. int weakRefs;
  16214. };
  16215. class ModelMorph
  16216. {
  16217. public:
  16218. ~ModelMorph();
  16219. ModelMorph();
  16220. // Methods:
  16221. ModelMorph& operator=(const ModelMorph&);
  16222. // Properties:
  16223. String name;
  16224. StringHash nameHash;
  16225. float weight;
  16226. };
  16227. class Mutex
  16228. {
  16229. public:
  16230. ~Mutex();
  16231. Mutex();
  16232. // Methods:
  16233. Mutex& operator=(const Mutex&);
  16234. void Acquire();
  16235. void Release();
  16236. bool TryAcquire();
  16237. };
  16238. class MutexLock
  16239. {
  16240. public:
  16241. ~MutexLock();
  16242. MutexLock(Mutex&inout);
  16243. };
  16244. class NamedPipe
  16245. {
  16246. public:
  16247. NamedPipe();
  16248. NamedPipe(const String&in, bool);
  16249. // Methods:
  16250. void Close();
  16251. operator Deserializer() const;
  16252. bool GetBlockEvents() const;
  16253. uint GetChecksum();
  16254. VariantMap& GetEventDataMap() const;
  16255. Object GetEventSender() const;
  16256. uint GetPosition() const;
  16257. uint GetSize() const;
  16258. Object GetSubsystem(StringHash) const;
  16259. StringHash GetType() const;
  16260. bool HasEventHandlers() const;
  16261. bool HasSubscribedToEvent(Object, StringHash) const;
  16262. bool HasSubscribedToEvent(StringHash) const;
  16263. bool IsEof() const;
  16264. bool IsInstanceOf(StringHash) const;
  16265. bool IsOpen() const;
  16266. bool IsServer() const;
  16267. operator Object() const;
  16268. void OnEvent(Object, StringHash, VariantMap&);
  16269. bool Open(const String&, bool);
  16270. Array<uint8> Read(uint);
  16271. bool ReadBool();
  16272. BoundingBox ReadBoundingBox();
  16273. int8 ReadByte();
  16274. Color ReadColor();
  16275. double ReadDouble();
  16276. String ReadFileID();
  16277. float ReadFloat();
  16278. int ReadInt();
  16279. int64 ReadInt64();
  16280. IntRect ReadIntRect();
  16281. IntVector2 ReadIntVector2();
  16282. IntVector3 ReadIntVector3();
  16283. String ReadLine();
  16284. Matrix3 ReadMatrix3();
  16285. Matrix3x4 ReadMatrix3x4();
  16286. Matrix4 ReadMatrix4();
  16287. uint ReadNetID();
  16288. Quaternion ReadPackedQuaternion();
  16289. Vector3 ReadPackedVector3(float);
  16290. Quaternion ReadQuaternion();
  16291. Rect ReadRect();
  16292. ResourceRef ReadResourceRef();
  16293. ResourceRefList ReadResourceRefList();
  16294. int16 ReadShort();
  16295. String ReadString();
  16296. StringHash ReadStringHash();
  16297. Array<String> ReadStringVector();
  16298. uint8 ReadUByte();
  16299. uint ReadUInt();
  16300. uint64 ReadUInt64();
  16301. uint16 ReadUShort();
  16302. uint ReadVLE();
  16303. Variant ReadVariant();
  16304. Variant ReadVariant(VariantType);
  16305. VariantMap ReadVariantMap();
  16306. Vector2 ReadVector2();
  16307. Vector3 ReadVector3();
  16308. Vector4 ReadVector4();
  16309. VectorBuffer ReadVectorBuffer(uint);
  16310. operator RefCounted() const;
  16311. int Refs() const;
  16312. uint Seek(uint);
  16313. uint SeekRelative(int);
  16314. void SendEvent(StringHash);
  16315. void SendEvent(StringHash, VariantMap&);
  16316. operator Serializer() const;
  16317. void SetBlockEvents(bool);
  16318. void SetGlobalVar(StringHash, const Variant&);
  16319. void SetName(const String&);
  16320. const String& GetCategory() const;
  16321. const String& GetName() const;
  16322. const String& GetTypeName() const;
  16323. uint Tell() const;
  16324. void UnsubscribeFromAllEvents();
  16325. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16326. void UnsubscribeFromEvent(Object, StringHash);
  16327. void UnsubscribeFromEvent(StringHash);
  16328. void UnsubscribeFromEvents(Object);
  16329. const Variant& GetGlobalVar(StringHash) const;
  16330. const VariantMap& GetGlobalVars() const;
  16331. int WeakRefs() const;
  16332. uint Write(Array<uint8>);
  16333. bool WriteBool(bool);
  16334. bool WriteBoundingBox(const BoundingBox&);
  16335. bool WriteByte(int8);
  16336. bool WriteColor(const Color&);
  16337. bool WriteDouble(double);
  16338. bool WriteFileID(const String&);
  16339. bool WriteFloat(float);
  16340. bool WriteInt(int);
  16341. bool WriteInt64(int64);
  16342. bool WriteIntRect(const IntRect&);
  16343. bool WriteIntVector2(const IntVector2&);
  16344. bool WriteIntVector3(const IntVector3&);
  16345. bool WriteLine(const String&);
  16346. bool WriteMatrix3(const Matrix3&);
  16347. bool WriteMatrix3x4(const Matrix3x4&);
  16348. bool WriteMatrix4(const Matrix4&);
  16349. bool WriteNetID(uint);
  16350. bool WritePackedQuaternion(const Quaternion&);
  16351. bool WritePackedVector3(const Vector3&, float);
  16352. bool WriteQuaternion(const Quaternion&);
  16353. bool WriteRect(const Rect&);
  16354. bool WriteResourceRef(const ResourceRef&);
  16355. bool WriteResourceRefList(const ResourceRefList&);
  16356. bool WriteShort(int16);
  16357. bool WriteString(const String&);
  16358. bool WriteStringHash(const StringHash&);
  16359. bool WriteStringVector(Array<String>);
  16360. bool WriteUByte(uint8);
  16361. bool WriteUInt(uint);
  16362. bool WriteUInt64(uint64);
  16363. bool WriteUShort(uint16);
  16364. bool WriteVLE(uint);
  16365. bool WriteVariant(const Variant&);
  16366. bool WriteVariantData(const Variant&);
  16367. bool WriteVariantMap(const VariantMap&);
  16368. bool WriteVector2(const Vector2&);
  16369. bool WriteVector3(const Vector3&);
  16370. bool WriteVector4(const Vector4&);
  16371. bool WriteVectorBuffer(const VectorBuffer&);
  16372. operator const Deserializer() const;
  16373. operator const Object() const;
  16374. operator const RefCounted() const;
  16375. operator const Serializer() const;
  16376. // Properties:
  16377. /* readonly */
  16378. String category;
  16379. /* readonly */
  16380. uint checksum;
  16381. /* readonly */
  16382. bool eof;
  16383. Array<Variant> globalVar;
  16384. /* readonly */
  16385. VariantMap globalVars;
  16386. String name;
  16387. /* readonly */
  16388. bool open;
  16389. /* readonly */
  16390. uint position;
  16391. /* readonly */
  16392. int refs;
  16393. /* readonly */
  16394. bool server;
  16395. /* readonly */
  16396. uint size;
  16397. /* readonly */
  16398. StringHash type;
  16399. /* readonly */
  16400. String typeName;
  16401. /* readonly */
  16402. int weakRefs;
  16403. };
  16404. class NavArea
  16405. {
  16406. public:
  16407. NavArea();
  16408. // Methods:
  16409. void AllocateNetworkState();
  16410. operator Animatable() const;
  16411. void ApplyAttributes();
  16412. void CleanupConnection(Connection);
  16413. operator Component() const;
  16414. void DrawDebugGeometry(DebugRenderer, bool);
  16415. bool GetAnimationEnabled() const;
  16416. uint GetAreaID() const;
  16417. Variant GetAttribute(const String&) const;
  16418. Variant GetAttribute(uint) const;
  16419. ValueAnimation GetAttributeAnimation(const String&) const;
  16420. float GetAttributeAnimationSpeed(const String&) const;
  16421. float GetAttributeAnimationTime(const String&) const;
  16422. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16423. Variant GetAttributeDefault(const String&) const;
  16424. Variant GetAttributeDefault(uint) const;
  16425. bool GetBlockEvents() const;
  16426. BoundingBox GetBoundingBox() const;
  16427. Component GetComponent(StringHash) const;
  16428. VariantMap& GetEventDataMap() const;
  16429. Object GetEventSender() const;
  16430. uint GetID() const;
  16431. bool GetInterceptNetworkUpdate(const String&) const;
  16432. Node GetNode() const;
  16433. uint GetNumAttributes() const;
  16434. uint GetNumNetworkAttributes() const;
  16435. ObjectAnimation GetObjectAnimation() const;
  16436. ResourceRef GetObjectAnimationAttr() const;
  16437. Scene GetScene() const;
  16438. Object GetSubsystem(StringHash) const;
  16439. StringHash GetType() const;
  16440. BoundingBox GetWorldBoundingBox() const;
  16441. bool HasEventHandlers() const;
  16442. bool HasSubscribedToEvent(Object, StringHash) const;
  16443. bool HasSubscribedToEvent(StringHash) const;
  16444. bool IsEnabled() const;
  16445. bool IsEnabledEffective() const;
  16446. bool IsInstanceOf(StringHash) const;
  16447. bool IsReplicated() const;
  16448. bool IsTemporary() const;
  16449. bool Load(Deserializer&);
  16450. bool LoadJSON(const JSONValue&);
  16451. bool LoadXML(const XMLElement&);
  16452. void MarkNetworkUpdate();
  16453. operator Object() const;
  16454. void OnEvent(Object, StringHash, VariantMap&);
  16455. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16456. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16457. void OnSetEnabled();
  16458. void PrepareNetworkUpdate();
  16459. bool ReadDeltaUpdate(Deserializer&);
  16460. bool ReadLatestDataUpdate(Deserializer&);
  16461. operator RefCounted() const;
  16462. int Refs() const;
  16463. void Remove();
  16464. void RemoveAttributeAnimation(const String&);
  16465. void RemoveInstanceDefault();
  16466. void RemoveObjectAnimation();
  16467. void ResetToDefault();
  16468. bool Save(Serializer&) const;
  16469. bool SaveDefaultAttributes() const;
  16470. bool SaveJSON(JSONValue&) const;
  16471. bool SaveXML(XMLElement&) const;
  16472. void SendEvent(StringHash);
  16473. void SendEvent(StringHash, VariantMap&);
  16474. operator Serializable() const;
  16475. void SetAnimationEnabled(bool);
  16476. void SetAnimationTime(float);
  16477. void SetAreaID(uint);
  16478. bool SetAttribute(const String&, const Variant&);
  16479. bool SetAttribute(uint, const Variant&);
  16480. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16481. void SetAttributeAnimationSpeed(const String&, float);
  16482. void SetAttributeAnimationTime(const String&, float);
  16483. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16484. void SetBlockEvents(bool);
  16485. void SetBoundingBox(const BoundingBox&);
  16486. void SetEnabled(bool);
  16487. void SetGlobalVar(StringHash, const Variant&);
  16488. void SetInstanceDefault(bool);
  16489. void SetInterceptNetworkUpdate(const String&, bool);
  16490. void SetObjectAnimation(ObjectAnimation);
  16491. void SetObjectAnimationAttr(const ResourceRef&);
  16492. void SetTemporary(bool);
  16493. const String& GetCategory() const;
  16494. const String& GetTypeName() const;
  16495. void UnsubscribeFromAllEvents();
  16496. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16497. void UnsubscribeFromEvent(Object, StringHash);
  16498. void UnsubscribeFromEvent(StringHash);
  16499. void UnsubscribeFromEvents(Object);
  16500. const Variant& GetGlobalVar(StringHash) const;
  16501. const VariantMap& GetGlobalVars() const;
  16502. int WeakRefs() const;
  16503. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16504. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16505. void WriteLatestDataUpdate(Serializer&, uint8);
  16506. operator const Animatable() const;
  16507. operator const Component() const;
  16508. operator const Object() const;
  16509. operator const RefCounted() const;
  16510. operator const Serializable() const;
  16511. // Properties:
  16512. bool animationEnabled;
  16513. uint areaID;
  16514. /* readonly */
  16515. Array<Variant> attributeDefaults;
  16516. /* readonly */
  16517. Array<AttributeInfo> attributeInfos;
  16518. Array<Variant> attributes;
  16519. BoundingBox boundingBox;
  16520. /* readonly */
  16521. String category;
  16522. bool enabled;
  16523. /* readonly */
  16524. bool enabledEffective;
  16525. Array<Variant> globalVar;
  16526. /* readonly */
  16527. VariantMap globalVars;
  16528. /* readonly */
  16529. uint id;
  16530. /* readonly */
  16531. Node node;
  16532. /* readonly */
  16533. uint numAttributes;
  16534. ObjectAnimation objectAnimation;
  16535. /* readonly */
  16536. int refs;
  16537. /* readonly */
  16538. bool replicated;
  16539. bool temporary;
  16540. /* readonly */
  16541. StringHash type;
  16542. /* readonly */
  16543. String typeName;
  16544. /* readonly */
  16545. int weakRefs;
  16546. /* readonly */
  16547. BoundingBox worldBoundingBox;
  16548. };
  16549. class NavAreaStub
  16550. {
  16551. public:
  16552. ~NavAreaStub();
  16553. NavAreaStub();
  16554. // Methods:
  16555. NavAreaStub& operator=(const NavAreaStub&);
  16556. // Properties:
  16557. uint8 areaID;
  16558. BoundingBox bounds;
  16559. };
  16560. class NavBuildData
  16561. {
  16562. public:
  16563. ~NavBuildData();
  16564. NavBuildData();
  16565. // Methods:
  16566. NavBuildData& operator=(const NavBuildData&);
  16567. // Properties:
  16568. BoundingBox worldBoundingBox;
  16569. };
  16570. class Navigable
  16571. {
  16572. public:
  16573. Navigable();
  16574. // Methods:
  16575. void AllocateNetworkState();
  16576. operator Animatable() const;
  16577. void ApplyAttributes();
  16578. void CleanupConnection(Connection);
  16579. operator Component() const;
  16580. void DrawDebugGeometry(DebugRenderer, bool);
  16581. bool GetAnimationEnabled() const;
  16582. Variant GetAttribute(const String&) const;
  16583. Variant GetAttribute(uint) const;
  16584. ValueAnimation GetAttributeAnimation(const String&) const;
  16585. float GetAttributeAnimationSpeed(const String&) const;
  16586. float GetAttributeAnimationTime(const String&) const;
  16587. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16588. Variant GetAttributeDefault(const String&) const;
  16589. Variant GetAttributeDefault(uint) const;
  16590. bool GetBlockEvents() const;
  16591. Component GetComponent(StringHash) const;
  16592. VariantMap& GetEventDataMap() const;
  16593. Object GetEventSender() const;
  16594. uint GetID() const;
  16595. bool GetInterceptNetworkUpdate(const String&) const;
  16596. Node GetNode() const;
  16597. uint GetNumAttributes() const;
  16598. uint GetNumNetworkAttributes() const;
  16599. ObjectAnimation GetObjectAnimation() const;
  16600. ResourceRef GetObjectAnimationAttr() const;
  16601. Scene GetScene() const;
  16602. Object GetSubsystem(StringHash) const;
  16603. StringHash GetType() const;
  16604. bool HasEventHandlers() const;
  16605. bool HasSubscribedToEvent(Object, StringHash) const;
  16606. bool HasSubscribedToEvent(StringHash) const;
  16607. bool IsEnabled() const;
  16608. bool IsEnabledEffective() const;
  16609. bool IsInstanceOf(StringHash) const;
  16610. bool IsRecursive() const;
  16611. bool IsReplicated() const;
  16612. bool IsTemporary() const;
  16613. bool Load(Deserializer&);
  16614. bool LoadJSON(const JSONValue&);
  16615. bool LoadXML(const XMLElement&);
  16616. void MarkNetworkUpdate();
  16617. operator Object() const;
  16618. void OnEvent(Object, StringHash, VariantMap&);
  16619. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16620. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16621. void OnSetEnabled();
  16622. void PrepareNetworkUpdate();
  16623. bool ReadDeltaUpdate(Deserializer&);
  16624. bool ReadLatestDataUpdate(Deserializer&);
  16625. operator RefCounted() const;
  16626. int Refs() const;
  16627. void Remove();
  16628. void RemoveAttributeAnimation(const String&);
  16629. void RemoveInstanceDefault();
  16630. void RemoveObjectAnimation();
  16631. void ResetToDefault();
  16632. bool Save(Serializer&) const;
  16633. bool SaveDefaultAttributes() const;
  16634. bool SaveJSON(JSONValue&) const;
  16635. bool SaveXML(XMLElement&) const;
  16636. void SendEvent(StringHash);
  16637. void SendEvent(StringHash, VariantMap&);
  16638. operator Serializable() const;
  16639. void SetAnimationEnabled(bool);
  16640. void SetAnimationTime(float);
  16641. bool SetAttribute(const String&, const Variant&);
  16642. bool SetAttribute(uint, const Variant&);
  16643. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16644. void SetAttributeAnimationSpeed(const String&, float);
  16645. void SetAttributeAnimationTime(const String&, float);
  16646. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16647. void SetBlockEvents(bool);
  16648. void SetEnabled(bool);
  16649. void SetGlobalVar(StringHash, const Variant&);
  16650. void SetInstanceDefault(bool);
  16651. void SetInterceptNetworkUpdate(const String&, bool);
  16652. void SetObjectAnimation(ObjectAnimation);
  16653. void SetObjectAnimationAttr(const ResourceRef&);
  16654. void SetRecursive(bool);
  16655. void SetTemporary(bool);
  16656. const String& GetCategory() const;
  16657. const String& GetTypeName() const;
  16658. void UnsubscribeFromAllEvents();
  16659. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16660. void UnsubscribeFromEvent(Object, StringHash);
  16661. void UnsubscribeFromEvent(StringHash);
  16662. void UnsubscribeFromEvents(Object);
  16663. const Variant& GetGlobalVar(StringHash) const;
  16664. const VariantMap& GetGlobalVars() const;
  16665. int WeakRefs() const;
  16666. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16667. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16668. void WriteLatestDataUpdate(Serializer&, uint8);
  16669. operator const Animatable() const;
  16670. operator const Component() const;
  16671. operator const Object() const;
  16672. operator const RefCounted() const;
  16673. operator const Serializable() const;
  16674. // Properties:
  16675. bool animationEnabled;
  16676. /* readonly */
  16677. Array<Variant> attributeDefaults;
  16678. /* readonly */
  16679. Array<AttributeInfo> attributeInfos;
  16680. Array<Variant> attributes;
  16681. /* readonly */
  16682. String category;
  16683. bool enabled;
  16684. /* readonly */
  16685. bool enabledEffective;
  16686. Array<Variant> globalVar;
  16687. /* readonly */
  16688. VariantMap globalVars;
  16689. /* readonly */
  16690. uint id;
  16691. /* readonly */
  16692. Node node;
  16693. /* readonly */
  16694. uint numAttributes;
  16695. ObjectAnimation objectAnimation;
  16696. bool recursive;
  16697. /* readonly */
  16698. int refs;
  16699. /* readonly */
  16700. bool replicated;
  16701. bool temporary;
  16702. /* readonly */
  16703. StringHash type;
  16704. /* readonly */
  16705. String typeName;
  16706. /* readonly */
  16707. int weakRefs;
  16708. };
  16709. class NavigationGeometryInfo
  16710. {
  16711. public:
  16712. ~NavigationGeometryInfo();
  16713. NavigationGeometryInfo();
  16714. // Methods:
  16715. NavigationGeometryInfo& operator=(const NavigationGeometryInfo&);
  16716. // Properties:
  16717. BoundingBox boundingBox;
  16718. uint lodLevel;
  16719. Matrix3x4 transform;
  16720. };
  16721. class NavigationMesh
  16722. {
  16723. public:
  16724. NavigationMesh();
  16725. // Methods:
  16726. bool AddTile(const VectorBuffer&) const;
  16727. bool Allocate(const BoundingBox&, uint);
  16728. void AllocateNetworkState();
  16729. operator Animatable() const;
  16730. void ApplyAttributes();
  16731. const BoundingBox& GetBoundingBox() const;
  16732. bool Build();
  16733. bool Build(const BoundingBox&);
  16734. bool Build(const IntVector2&, const IntVector2&);
  16735. void CleanupConnection(Connection);
  16736. operator Component() const;
  16737. void DrawDebugGeometry(DebugRenderer, bool);
  16738. void DrawDebugGeometry(bool);
  16739. operator DynamicNavigationMesh() const;
  16740. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 :: ONE);
  16741. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& extents = Vector3 :: ONE);
  16742. float GetAgentHeight() const;
  16743. float GetAgentMaxClimb() const;
  16744. float GetAgentMaxSlope() const;
  16745. float GetAgentRadius() const;
  16746. bool GetAnimationEnabled() const;
  16747. float GetAreaCost(uint) const;
  16748. Variant GetAttribute(const String&) const;
  16749. Variant GetAttribute(uint) const;
  16750. ValueAnimation GetAttributeAnimation(const String&) const;
  16751. float GetAttributeAnimationSpeed(const String&) const;
  16752. float GetAttributeAnimationTime(const String&) const;
  16753. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16754. Variant GetAttributeDefault(const String&) const;
  16755. Variant GetAttributeDefault(uint) const;
  16756. bool GetBlockEvents() const;
  16757. float GetCellHeight() const;
  16758. float GetCellSize() const;
  16759. Component GetComponent(StringHash) const;
  16760. float GetDetailSampleDistance() const;
  16761. float GetDetailSampleMaxError() const;
  16762. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  16763. bool GetDrawNavAreas() const;
  16764. bool GetDrawOffMeshConnections() const;
  16765. float GetEdgeMaxError() const;
  16766. float GetEdgeMaxLength() const;
  16767. VariantMap& GetEventDataMap() const;
  16768. Object GetEventSender() const;
  16769. uint GetID() const;
  16770. bool GetInterceptNetworkUpdate(const String&) const;
  16771. String GetMeshName() const;
  16772. Node GetNode() const;
  16773. uint GetNumAttributes() const;
  16774. uint GetNumNetworkAttributes() const;
  16775. IntVector2 GetNumTiles() const;
  16776. ObjectAnimation GetObjectAnimation() const;
  16777. ResourceRef GetObjectAnimationAttr() const;
  16778. NavmeshPartitionType GetPartitionType() const;
  16779. Vector3 GetRandomPoint();
  16780. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  16781. float GetRegionMergeSize() const;
  16782. float GetRegionMinSize() const;
  16783. Scene GetScene() const;
  16784. Object GetSubsystem(StringHash) const;
  16785. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  16786. VectorBuffer GetTileData(const IntVector2&) const;
  16787. IntVector2 GetTileIndex(const Vector3&) const;
  16788. int GetTileSize() const;
  16789. StringHash GetType() const;
  16790. BoundingBox GetWorldBoundingBox() const;
  16791. bool HasEventHandlers() const;
  16792. bool HasSubscribedToEvent(Object, StringHash) const;
  16793. bool HasSubscribedToEvent(StringHash) const;
  16794. bool HasTile(const IntVector2&) const;
  16795. bool IsEnabled() const;
  16796. bool IsEnabledEffective() const;
  16797. bool IsInitialized() const;
  16798. bool IsInstanceOf(StringHash) const;
  16799. bool IsReplicated() const;
  16800. bool IsTemporary() const;
  16801. bool Load(Deserializer&);
  16802. bool LoadJSON(const JSONValue&);
  16803. bool LoadXML(const XMLElement&);
  16804. void MarkNetworkUpdate();
  16805. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE, int = 3);
  16806. operator Object() const;
  16807. void OnEvent(Object, StringHash, VariantMap&);
  16808. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16809. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16810. void OnSetEnabled();
  16811. void PrepareNetworkUpdate();
  16812. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE);
  16813. bool ReadDeltaUpdate(Deserializer&);
  16814. bool ReadLatestDataUpdate(Deserializer&);
  16815. operator RefCounted() const;
  16816. int Refs() const;
  16817. void Remove();
  16818. void RemoveAllTiles();
  16819. void RemoveAttributeAnimation(const String&);
  16820. void RemoveInstanceDefault();
  16821. void RemoveObjectAnimation();
  16822. void RemoveTile(const IntVector2&);
  16823. void ResetToDefault();
  16824. bool Save(Serializer&) const;
  16825. bool SaveDefaultAttributes() const;
  16826. bool SaveJSON(JSONValue&) const;
  16827. bool SaveXML(XMLElement&) const;
  16828. void SendEvent(StringHash);
  16829. void SendEvent(StringHash, VariantMap&);
  16830. operator Serializable() const;
  16831. void SetAgentHeight(float);
  16832. void SetAgentMaxClimb(float);
  16833. void SetAgentMaxSlope(float);
  16834. void SetAgentRadius(float);
  16835. void SetAnimationEnabled(bool);
  16836. void SetAnimationTime(float);
  16837. void SetAreaCost(uint, float);
  16838. bool SetAttribute(const String&, const Variant&);
  16839. bool SetAttribute(uint, const Variant&);
  16840. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16841. void SetAttributeAnimationSpeed(const String&, float);
  16842. void SetAttributeAnimationTime(const String&, float);
  16843. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16844. void SetBlockEvents(bool);
  16845. void SetCellHeight(float);
  16846. void SetCellSize(float);
  16847. void SetDetailSampleDistance(float);
  16848. void SetDetailSampleMaxError(float);
  16849. void SetDrawNavAreas(bool);
  16850. void SetDrawOffMeshConnections(bool);
  16851. void SetEdgeMaxError(float);
  16852. void SetEdgeMaxLength(float);
  16853. void SetEnabled(bool);
  16854. void SetGlobalVar(StringHash, const Variant&);
  16855. void SetInstanceDefault(bool);
  16856. void SetInterceptNetworkUpdate(const String&, bool);
  16857. void SetMeshName(const String&);
  16858. void SetObjectAnimation(ObjectAnimation);
  16859. void SetObjectAnimationAttr(const ResourceRef&);
  16860. void SetPadding(const Vector3&);
  16861. void SetPartitionType(NavmeshPartitionType);
  16862. void SetRegionMergeSize(float);
  16863. void SetRegionMinSize(float);
  16864. void SetTemporary(bool);
  16865. void SetTileSize(int);
  16866. const String& GetCategory() const;
  16867. const String& GetTypeName() const;
  16868. void UnsubscribeFromAllEvents();
  16869. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16870. void UnsubscribeFromEvent(Object, StringHash);
  16871. void UnsubscribeFromEvent(StringHash);
  16872. void UnsubscribeFromEvents(Object);
  16873. const Variant& GetGlobalVar(StringHash) const;
  16874. const VariantMap& GetGlobalVars() const;
  16875. const Vector3& GetPadding() const;
  16876. int WeakRefs() const;
  16877. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16878. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16879. void WriteLatestDataUpdate(Serializer&, uint8);
  16880. operator const Animatable() const;
  16881. operator const Component() const;
  16882. operator const DynamicNavigationMesh() const;
  16883. operator const Object() const;
  16884. operator const RefCounted() const;
  16885. operator const Serializable() const;
  16886. // Properties:
  16887. float agentHeight;
  16888. float agentMaxClimb;
  16889. float agentMaxSlope;
  16890. float agentRadius;
  16891. bool animationEnabled;
  16892. /* readonly */
  16893. Array<Variant> attributeDefaults;
  16894. /* readonly */
  16895. Array<AttributeInfo> attributeInfos;
  16896. Array<Variant> attributes;
  16897. /* readonly */
  16898. BoundingBox boundingBox;
  16899. /* readonly */
  16900. String category;
  16901. float cellHeight;
  16902. float cellSize;
  16903. float detailSampleDistance;
  16904. float detailSampleMaxError;
  16905. bool drawNavAreas;
  16906. bool drawOffMeshConnections;
  16907. float edgeMaxError;
  16908. float edgeMaxLength;
  16909. bool enabled;
  16910. /* readonly */
  16911. bool enabledEffective;
  16912. Array<Variant> globalVar;
  16913. /* readonly */
  16914. VariantMap globalVars;
  16915. /* readonly */
  16916. uint id;
  16917. /* readonly */
  16918. bool initialized;
  16919. /* readonly */
  16920. Node node;
  16921. /* readonly */
  16922. uint numAttributes;
  16923. /* readonly */
  16924. IntVector2 numTiles;
  16925. ObjectAnimation objectAnimation;
  16926. Vector3 padding;
  16927. NavmeshPartitionType partitionType;
  16928. /* readonly */
  16929. int refs;
  16930. float regionMergeSize;
  16931. float regionMinSize;
  16932. /* readonly */
  16933. bool replicated;
  16934. bool temporary;
  16935. int tileSize;
  16936. /* readonly */
  16937. StringHash type;
  16938. /* readonly */
  16939. String typeName;
  16940. /* readonly */
  16941. int weakRefs;
  16942. /* readonly */
  16943. BoundingBox worldBoundingBox;
  16944. };
  16945. class NavigationPathPoint
  16946. {
  16947. public:
  16948. ~NavigationPathPoint();
  16949. NavigationPathPoint();
  16950. // Methods:
  16951. NavigationPathPoint& operator=(const NavigationPathPoint&);
  16952. // Properties:
  16953. uint8 areaID;
  16954. NavigationPathPointFlag flag;
  16955. Vector3 position;
  16956. };
  16957. class Network
  16958. {
  16959. public:
  16960. Network();
  16961. // Methods:
  16962. void AttemptNATPunchtrough(const String&, Scene, const VariantMap& = VariantMap ( ));
  16963. void BanAddress(const String&);
  16964. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  16965. void BroadcastRemoteEvent(Node, StringHash, bool, const VariantMap& = VariantMap ( ));
  16966. void BroadcastRemoteEvent(Scene, StringHash, bool, const VariantMap& = VariantMap ( ));
  16967. void BroadcastRemoteEvent(StringHash, bool, const VariantMap& = VariantMap ( ));
  16968. bool CheckRemoteEvent(StringHash) const;
  16969. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  16970. void Disconnect(int = 0);
  16971. void DiscoverHosts(uint);
  16972. bool GetBlockEvents() const;
  16973. Array<Connection> GetClientConnections() const;
  16974. VariantMap& GetEventDataMap() const;
  16975. Object GetEventSender() const;
  16976. Connection GetServerConnection() const;
  16977. int GetSimulatedLatency() const;
  16978. float GetSimulatedPacketLoss() const;
  16979. Object GetSubsystem(StringHash) const;
  16980. StringHash GetType() const;
  16981. int GetUpdateFps() const;
  16982. bool HasEventHandlers() const;
  16983. bool HasSubscribedToEvent(Object, StringHash) const;
  16984. bool HasSubscribedToEvent(StringHash) const;
  16985. bool IsInstanceOf(StringHash) const;
  16986. bool IsServerRunning() const;
  16987. HttpRequest MakeHttpRequest(const String&, const String& = String :: EMPTY, Array<String> = null, const String& = String :: EMPTY);
  16988. operator Object() const;
  16989. void OnEvent(Object, StringHash, VariantMap&);
  16990. void PostUpdate(float);
  16991. operator RefCounted() const;
  16992. int Refs() const;
  16993. void RegisterRemoteEvent(StringHash);
  16994. void SendEvent(StringHash);
  16995. void SendEvent(StringHash, VariantMap&);
  16996. void SendPackageToClients(Scene, PackageFile);
  16997. void SetBlockEvents(bool);
  16998. void SetDiscoveryBeacon(const VariantMap&);
  16999. void SetGlobalVar(StringHash, const Variant&);
  17000. void SetNATServerInfo(const String&, uint16);
  17001. void SetPackageCacheDir(const String&);
  17002. void SetPassword(const String&);
  17003. void SetSimulatedLatency(int);
  17004. void SetSimulatedPacketLoss(float);
  17005. void SetUpdateFps(int);
  17006. void StartNATClient();
  17007. bool StartServer(uint16, uint = 128);
  17008. void StopServer();
  17009. const String& GetCategory() const;
  17010. const String& GetGUID() const;
  17011. const String& GetPackageCacheDir() const;
  17012. const String& GetTypeName() const;
  17013. void UnregisterAllRemoteEvents();
  17014. void UnregisterRemoteEvent(StringHash);
  17015. void UnsubscribeFromAllEvents();
  17016. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17017. void UnsubscribeFromEvent(Object, StringHash);
  17018. void UnsubscribeFromEvent(StringHash);
  17019. void UnsubscribeFromEvents(Object);
  17020. void Update(float);
  17021. const Variant& GetGlobalVar(StringHash) const;
  17022. const VariantMap& GetGlobalVars() const;
  17023. int WeakRefs() const;
  17024. operator const Object() const;
  17025. operator const RefCounted() const;
  17026. // Properties:
  17027. /* readonly */
  17028. String category;
  17029. /* readonly */
  17030. Array<Connection> clientConnections;
  17031. Array<Variant> globalVar;
  17032. /* readonly */
  17033. VariantMap globalVars;
  17034. /* readonly */
  17035. String guid;
  17036. String packageCacheDir;
  17037. /* readonly */
  17038. int refs;
  17039. /* readonly */
  17040. Connection serverConnection;
  17041. /* readonly */
  17042. bool serverRunning;
  17043. int simulatedLatency;
  17044. float simulatedPacketLoss;
  17045. /* readonly */
  17046. StringHash type;
  17047. /* readonly */
  17048. String typeName;
  17049. int updateFps;
  17050. /* readonly */
  17051. int weakRefs;
  17052. };
  17053. class NetworkPriority
  17054. {
  17055. public:
  17056. NetworkPriority();
  17057. // Methods:
  17058. void AllocateNetworkState();
  17059. operator Animatable() const;
  17060. void ApplyAttributes();
  17061. bool CheckUpdate(float, float&);
  17062. void CleanupConnection(Connection);
  17063. operator Component() const;
  17064. void DrawDebugGeometry(DebugRenderer, bool);
  17065. bool GetAlwaysUpdateOwner() const;
  17066. bool GetAnimationEnabled() const;
  17067. Variant GetAttribute(const String&) const;
  17068. Variant GetAttribute(uint) const;
  17069. ValueAnimation GetAttributeAnimation(const String&) const;
  17070. float GetAttributeAnimationSpeed(const String&) const;
  17071. float GetAttributeAnimationTime(const String&) const;
  17072. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  17073. Variant GetAttributeDefault(const String&) const;
  17074. Variant GetAttributeDefault(uint) const;
  17075. float GetBasePriority() const;
  17076. bool GetBlockEvents() const;
  17077. Component GetComponent(StringHash) const;
  17078. float GetDistanceFactor() const;
  17079. VariantMap& GetEventDataMap() const;
  17080. Object GetEventSender() const;
  17081. uint GetID() const;
  17082. bool GetInterceptNetworkUpdate(const String&) const;
  17083. float GetMinPriority() const;
  17084. Node GetNode() const;
  17085. uint GetNumAttributes() const;
  17086. uint GetNumNetworkAttributes() const;
  17087. ObjectAnimation GetObjectAnimation() const;
  17088. ResourceRef GetObjectAnimationAttr() const;
  17089. Scene GetScene() const;
  17090. Object GetSubsystem(StringHash) const;
  17091. StringHash GetType() const;
  17092. bool HasEventHandlers() const;
  17093. bool HasSubscribedToEvent(Object, StringHash) const;
  17094. bool HasSubscribedToEvent(StringHash) const;
  17095. bool IsEnabled() const;
  17096. bool IsEnabledEffective() const;
  17097. bool IsInstanceOf(StringHash) const;
  17098. bool IsReplicated() const;
  17099. bool IsTemporary() const;
  17100. bool Load(Deserializer&);
  17101. bool LoadJSON(const JSONValue&);
  17102. bool LoadXML(const XMLElement&);
  17103. void MarkNetworkUpdate();
  17104. operator Object() const;
  17105. void OnEvent(Object, StringHash, VariantMap&);
  17106. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  17107. void OnSetAttribute(const AttributeInfo&, const Variant&);
  17108. void OnSetEnabled();
  17109. void PrepareNetworkUpdate();
  17110. bool ReadDeltaUpdate(Deserializer&);
  17111. bool ReadLatestDataUpdate(Deserializer&);
  17112. operator RefCounted() const;
  17113. int Refs() const;
  17114. void Remove();
  17115. void RemoveAttributeAnimation(const String&);
  17116. void RemoveInstanceDefault();
  17117. void RemoveObjectAnimation();
  17118. void ResetToDefault();
  17119. bool Save(Serializer&) const;
  17120. bool SaveDefaultAttributes() const;
  17121. bool SaveJSON(JSONValue&) const;
  17122. bool SaveXML(XMLElement&) const;
  17123. void SendEvent(StringHash);
  17124. void SendEvent(StringHash, VariantMap&);
  17125. operator Serializable() const;
  17126. void SetAlwaysUpdateOwner(bool);
  17127. void SetAnimationEnabled(bool);
  17128. void SetAnimationTime(float);
  17129. bool SetAttribute(const String&, const Variant&);
  17130. bool SetAttribute(uint, const Variant&);
  17131. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  17132. void SetAttributeAnimationSpeed(const String&, float);
  17133. void SetAttributeAnimationTime(const String&, float);
  17134. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  17135. void SetBasePriority(float);
  17136. void SetBlockEvents(bool);
  17137. void SetDistanceFactor(float);
  17138. void SetEnabled(bool);
  17139. void SetGlobalVar(StringHash, const Variant&);
  17140. void SetInstanceDefault(bool);
  17141. void SetInterceptNetworkUpdate(const String&, bool);
  17142. void SetMinPriority(float);
  17143. void SetObjectAnimation(ObjectAnimation);
  17144. void SetObjectAnimationAttr(const ResourceRef&);
  17145. void SetTemporary(bool);
  17146. const String& GetCategory() const;
  17147. const String& GetTypeName() const;
  17148. void UnsubscribeFromAllEvents();
  17149. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17150. void UnsubscribeFromEvent(Object, StringHash);
  17151. void UnsubscribeFromEvent(StringHash);
  17152. void UnsubscribeFromEvents(Object);
  17153. const Variant& GetGlobalVar(StringHash) const;
  17154. const VariantMap& GetGlobalVars() const;
  17155. int WeakRefs() const;
  17156. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  17157. void WriteInitialDeltaUpdate(Serializer&, uint8);
  17158. void WriteLatestDataUpdate(Serializer&, uint8);
  17159. operator const Animatable() const;
  17160. operator const Component() const;
  17161. operator const Object() const;
  17162. operator const RefCounted() const;
  17163. operator const Serializable() const;
  17164. // Properties:
  17165. bool alwaysUpdateOwner;
  17166. bool animationEnabled;
  17167. /* readonly */
  17168. Array<Variant> attributeDefaults;
  17169. /* readonly */
  17170. Array<AttributeInfo> attributeInfos;
  17171. Array<Variant> attributes;
  17172. float basePriority;
  17173. /* readonly */
  17174. String category;
  17175. float distanceFactor;
  17176. bool enabled;
  17177. /* readonly */
  17178. bool enabledEffective;
  17179. Array<Variant> globalVar;
  17180. /* readonly */
  17181. VariantMap globalVars;
  17182. /* readonly */
  17183. uint id;
  17184. float minPriority;
  17185. /* readonly */
  17186. Node node;
  17187. /* readonly */
  17188. uint numAttributes;
  17189. ObjectAnimation objectAnimation;
  17190. /* readonly */
  17191. int refs;
  17192. /* readonly */
  17193. bool replicated;
  17194. bool temporary;
  17195. /* readonly */
  17196. StringHash type;
  17197. /* readonly */
  17198. String typeName;
  17199. /* readonly */
  17200. int weakRefs;
  17201. };
  17202. class NetworkState
  17203. {
  17204. public:
  17205. ~NetworkState();
  17206. NetworkState();
  17207. // Methods:
  17208. NetworkState& operator=(const NetworkState&);
  17209. // Properties:
  17210. uint64 interceptMask;
  17211. VariantMap previousVars;
  17212. };
  17213. class Node
  17214. {
  17215. public:
  17216. Node();
  17217. Node(const String&in);
  17218. // Methods:
  17219. void AddChild(Node, uint = M_MAX_UNSIGNED);
  17220. void AddComponent(Component, uint, CreateMode);
  17221. void AddListener(Component);
  17222. void AddTag(const String&);
  17223. void AddTags(Array<String>);
  17224. void AddTags(const String&, int8 = ';');
  17225. void AllocateNetworkState();
  17226. operator Animatable() const;
  17227. void ApplyAttributes();
  17228. void CleanupConnection(Connection);
  17229. Node Clone(CreateMode = REPLICATED);
  17230. Component CloneComponent(Component, CreateMode, uint = 0);
  17231. Component CloneComponent(Component, uint = 0);
  17232. Node CreateChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0, bool = false);
  17233. Node CreateChild(uint, CreateMode, bool = false);
  17234. Component CreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  17235. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode mode = REPLICATED);
  17236. ScriptObject CreateScriptObject(const String&, const String&, CreateMode mode = REPLICATED);
  17237. Node CreateTemporaryChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0);
  17238. bool GetAnimationEnabled() const;
  17239. Variant GetAttribute(const String&) const;
  17240. Variant GetAttribute(uint) const;
  17241. ValueAnimation GetAttributeAnimation(const String&) const;
  17242. float GetAttributeAnimationSpeed(const String&) const;
  17243. float GetAttributeAnimationTime(const String&) const;
  17244. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  17245. Variant GetAttributeDefault(const String&) const;
  17246. Variant GetAttributeDefault(uint) const;
  17247. bool GetBlockEvents() const;
  17248. Node GetChild(StringHash, bool = false) const;
  17249. Node GetChild(const String&, bool = false) const;
  17250. Node GetChild(uint) const;
  17251. Array<Node> GetChildren() const;
  17252. Array<Node> GetChildren(bool) const;
  17253. Array<Node> GetChildrenWithComponent(StringHash, bool = false) const;
  17254. Array<Node> GetChildrenWithScript(bool = false) const;
  17255. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  17256. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  17257. Component GetComponent(StringHash, bool = false) const;
  17258. Array<Component> GetComponents() const;
  17259. Array<Component> GetComponents(const String&, bool = false) const;
  17260. Array<Node> GetDependencyNodes() const;
  17261. Vector3 GetDirection() const;
  17262. VariantMap& GetEventDataMap() const;
  17263. Object GetEventSender() const;
  17264. uint GetID() const;
  17265. bool GetInterceptNetworkUpdate(const String&) const;
  17266. StringHash GetNameHash() const;
  17267. uint GetNumAttributes() const;
  17268. uint GetNumChildren(bool = false) const;
  17269. uint GetNumComponents() const;
  17270. uint GetNumNetworkAttributes() const;
  17271. uint GetNumNetworkComponents() const;
  17272. uint GetNumPersistentChildren() const;
  17273. uint GetNumPersistentComponents() const;
  17274. ObjectAnimation GetObjectAnimation() const;
  17275. ResourceRef GetObjectAnimationAttr() const;
  17276. Component GetOrCreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  17277. Connection GetOwner() const;
  17278. Node GetParent() const;
  17279. Component GetParentComponent(StringHash, bool = false) const;
  17280. Vector2 GetPosition2D() const;
  17281. Vector3 GetRight() const;
  17282. float GetRotation2D() const;
  17283. Vector2 GetScale2D() const;
  17284. Scene GetScene() const;
  17285. ScriptObject GetScriptObject() const;
  17286. ScriptObject GetScriptObject(const String&) const;
  17287. Vector3 GetSignedWorldScale() const;
  17288. Object GetSubsystem(StringHash) const;
  17289. Array<String> GetTags() const;
  17290. Matrix3x4 GetTransform() const;
  17291. StringHash GetType() const;
  17292. Vector3 GetUp() const;
  17293. Vector3 GetWorldDirection() const;
  17294. Vector3 GetWorldPosition() const;
  17295. Vector2 GetWorldPosition2D() const;
  17296. Vector3 GetWorldRight() const;
  17297. Quaternion GetWorldRotation() const;
  17298. float GetWorldRotation2D() const;
  17299. Vector3 GetWorldScale() const;
  17300. Vector2 GetWorldScale2D() const;
  17301. Vector3 GetWorldUp() const;
  17302. bool HasComponent(StringHash) const;
  17303. bool HasEventHandlers() const;
  17304. bool HasSubscribedToEvent(Object, StringHash) const;
  17305. bool HasSubscribedToEvent(StringHash) const;
  17306. bool HasTag(const String&) const;
  17307. bool IsChildOf(Node) const;
  17308. bool IsDirty() const;
  17309. bool IsEnabled() const;
  17310. bool IsEnabledSelf() const;
  17311. bool IsInstanceOf(StringHash) const;
  17312. bool IsReplicated() const;
  17313. bool IsTemporary() const;
  17314. bool Load(Deserializer&);
  17315. bool Load(Deserializer&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17316. bool LoadJSON(const JSONValue&);
  17317. bool LoadJSON(const JSONValue&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17318. bool LoadXML(const XMLElement&);
  17319. bool LoadXML(const XMLElement&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17320. Vector3 LocalToWorld(const Vector3&) const;
  17321. Vector3 LocalToWorld(const Vector4&) const;
  17322. Vector2 LocalToWorld2D(const Vector2&) const;
  17323. bool LookAt(const Vector3&, const Vector3& = Vector3 :: UP, TransformSpace = TS_WORLD);
  17324. void MarkDirty();
  17325. void MarkNetworkUpdate();
  17326. void MarkReplicationDirty();
  17327. const Matrix3x4& GetWorldTransform() const;
  17328. operator Object() const;
  17329. void OnEvent(Object, StringHash, VariantMap&);
  17330. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  17331. void OnSetAttribute(const AttributeInfo&, const Variant&);
  17332. void Pitch(float, TransformSpace = TS_LOCAL);
  17333. void PrepareNetworkUpdate();
  17334. const Quaternion& GetRotation() const;
  17335. bool ReadDeltaUpdate(Deserializer&);
  17336. bool ReadLatestDataUpdate(Deserializer&);
  17337. operator RefCounted() const;
  17338. int Refs() const;
  17339. void Remove();
  17340. void RemoveAllChildren();
  17341. void RemoveAllComponents();
  17342. void RemoveAllTags();
  17343. void RemoveAttributeAnimation(const String&);
  17344. void RemoveChild(Node);
  17345. void RemoveChildren(bool, bool, bool);
  17346. void RemoveComponent(Component);
  17347. void RemoveComponent(StringHash);
  17348. void RemoveComponents(StringHash);
  17349. void RemoveComponents(bool, bool);
  17350. void RemoveInstanceDefault();
  17351. void RemoveListener(Component);
  17352. void RemoveObjectAnimation();
  17353. bool RemoveTag(const String&);
  17354. void ReorderComponent(Component, uint);
  17355. void ResetDeepEnabled();
  17356. void ResetScene();
  17357. void ResetToDefault();
  17358. void Roll(float, TransformSpace = TS_LOCAL);
  17359. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  17360. void Rotate2D(float, TransformSpace = TS_LOCAL);
  17361. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  17362. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  17363. bool Save(Serializer&) const;
  17364. bool SaveDefaultAttributes() const;
  17365. bool SaveJSON(File);
  17366. bool SaveJSON(JSONValue&) const;
  17367. bool SaveJSON(Serializer&, const String& = "\t") const;
  17368. bool SaveJSON(VectorBuffer&);
  17369. bool SaveXML(File, const String& = "\t");
  17370. bool SaveXML(Serializer&, const String& = "\t") const;
  17371. bool SaveXML(VectorBuffer&, const String& = "\t");
  17372. bool SaveXML(XMLElement&) const;
  17373. void Scale(const Vector3&);
  17374. void Scale(float);
  17375. void Scale2D(const Vector2&);
  17376. operator Scene() const;
  17377. void SendEvent(StringHash);
  17378. void SendEvent(StringHash, VariantMap&);
  17379. operator Serializable() const;
  17380. void SetAnimationEnabled(bool);
  17381. void SetAnimationTime(float);
  17382. bool SetAttribute(const String&, const Variant&);
  17383. bool SetAttribute(uint, const Variant&);
  17384. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  17385. void SetAttributeAnimationSpeed(const String&, float);
  17386. void SetAttributeAnimationTime(const String&, float);
  17387. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  17388. void SetBlockEvents(bool);
  17389. void SetDeepEnabled(bool);
  17390. void SetDirection(const Vector3&);
  17391. void SetEnabled(bool);
  17392. void SetEnabledRecursive(bool);
  17393. void SetGlobalVar(StringHash, const Variant&);
  17394. void SetID(uint);
  17395. void SetInstanceDefault(bool);
  17396. void SetInterceptNetworkUpdate(const String&, bool);
  17397. void SetName(const String&);
  17398. void SetNetPositionAttr(const Vector3&);
  17399. void SetObjectAnimation(ObjectAnimation);
  17400. void SetObjectAnimationAttr(const ResourceRef&);
  17401. void SetOwner(Connection);
  17402. void SetParent(Node);
  17403. void SetPosition(const Vector3&);
  17404. void SetPosition2D(const Vector2&);
  17405. void SetPosition2D(float, float);
  17406. void SetPositionSilent(const Vector3&);
  17407. void SetRotation(const Quaternion&);
  17408. void SetRotation2D(float);
  17409. void SetRotationSilent(const Quaternion&);
  17410. void SetScale(const Vector3&);
  17411. void SetScale(float);
  17412. void SetScale2D(const Vector2&);
  17413. void SetScale2D(float, float);
  17414. void SetScaleSilent(const Vector3&);
  17415. void SetScene(Scene);
  17416. void SetTags(Array<String>);
  17417. void SetTemporary(bool);
  17418. void SetTransform(const Matrix3x4&);
  17419. void SetTransform(const Vector3&, const Quaternion&);
  17420. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  17421. void SetTransform(const Vector3&, const Quaternion&, float);
  17422. void SetTransform2D(const Vector2&, float);
  17423. void SetTransform2D(const Vector2&, float, const Vector2&);
  17424. void SetTransform2D(const Vector2&, float, float);
  17425. void SetTransformSilent(const Vector3&, const Quaternion&, const Vector3&);
  17426. void SetVar(StringHash, const Variant&);
  17427. void SetWorldDirection(const Vector3&);
  17428. void SetWorldPosition(const Vector3&);
  17429. void SetWorldPosition2D(const Vector2&);
  17430. void SetWorldPosition2D(float, float);
  17431. void SetWorldRotation(const Quaternion&);
  17432. void SetWorldRotation2D(float);
  17433. void SetWorldScale(const Vector3&);
  17434. void SetWorldScale(float);
  17435. void SetWorldScale2D(const Vector2&);
  17436. void SetWorldScale2D(float, float);
  17437. void SetWorldTransform(const Matrix3x4&);
  17438. void SetWorldTransform(const Vector3&, const Quaternion&);
  17439. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  17440. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  17441. void SetWorldTransform2D(const Vector2&, float);
  17442. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  17443. void SetWorldTransform2D(const Vector2&, float, float);
  17444. const String& GetCategory() const;
  17445. const String& GetName() const;
  17446. const String& GetTypeName() const;
  17447. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  17448. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  17449. void UnsubscribeFromAllEvents();
  17450. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17451. void UnsubscribeFromEvent(Object, StringHash);
  17452. void UnsubscribeFromEvent(StringHash);
  17453. void UnsubscribeFromEvents(Object);
  17454. const Variant& GetGlobalVar(StringHash) const;
  17455. const Variant& GetVar(StringHash) const;
  17456. const VariantMap& GetGlobalVars() const;
  17457. const VariantMap& GetVars() const;
  17458. const Vector3& GetNetPositionAttr() const;
  17459. const Vector3& GetPosition() const;
  17460. const Vector3& GetScale() const;
  17461. int WeakRefs() const;
  17462. Vector3 WorldToLocal(const Vector3&) const;
  17463. Vector3 WorldToLocal(const Vector4&) const;
  17464. Vector2 WorldToLocal2D(const Vector2&) const;
  17465. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  17466. void WriteInitialDeltaUpdate(Serializer&, uint8);
  17467. void WriteLatestDataUpdate(Serializer&, uint8);
  17468. void Yaw(float, TransformSpace = TS_LOCAL);
  17469. operator const Animatable() const;
  17470. operator const Object() const;
  17471. operator const RefCounted() const;
  17472. operator const Scene() const;
  17473. operator const Serializable() const;
  17474. // Properties:
  17475. /* readonly */
  17476. Array<Node> allChildrenByName;
  17477. bool animationEnabled;
  17478. /* readonly */
  17479. Array<Variant> attributeDefaults;
  17480. /* readonly */
  17481. Array<AttributeInfo> attributeInfos;
  17482. Array<Variant> attributes;
  17483. /* readonly */
  17484. String category;
  17485. /* readonly */
  17486. Array<Node> children;
  17487. /* readonly */
  17488. Array<Node> childrenByName;
  17489. /* readonly */
  17490. Array<Component> components;
  17491. Vector3 direction;
  17492. bool enabled;
  17493. /* readonly */
  17494. bool enabledSelf;
  17495. Array<Variant> globalVar;
  17496. /* readonly */
  17497. VariantMap globalVars;
  17498. uint id;
  17499. String name;
  17500. /* readonly */
  17501. uint numAllChildren;
  17502. /* readonly */
  17503. uint numAttributes;
  17504. /* readonly */
  17505. uint numChildren;
  17506. /* readonly */
  17507. uint numComponents;
  17508. ObjectAnimation objectAnimation;
  17509. Connection owner;
  17510. Node parent;
  17511. Vector3 position;
  17512. Vector2 position2D;
  17513. /* readonly */
  17514. int refs;
  17515. /* readonly */
  17516. bool replicated;
  17517. /* readonly */
  17518. Vector3 right;
  17519. Quaternion rotation;
  17520. float rotation2D;
  17521. Vector3 scale;
  17522. Vector2 scale2D;
  17523. /* readonly */
  17524. Scene scene;
  17525. /* readonly */
  17526. ScriptObject scriptObject;
  17527. /* readonly */
  17528. Vector3 signedWorldScale;
  17529. /* readonly */
  17530. Array<String> tags;
  17531. bool temporary;
  17532. /* readonly */
  17533. Matrix3x4 transform;
  17534. /* readonly */
  17535. StringHash type;
  17536. /* readonly */
  17537. String typeName;
  17538. /* readonly */
  17539. Vector3 up;
  17540. /* readonly */
  17541. VariantMap vars;
  17542. /* readonly */
  17543. int weakRefs;
  17544. Vector3 worldDirection;
  17545. Vector3 worldPosition;
  17546. Vector2 worldPosition2D;
  17547. /* readonly */
  17548. Vector3 worldRight;
  17549. Quaternion worldRotation;
  17550. float worldRotation2D;
  17551. Vector3 worldScale;
  17552. Vector2 worldScale2D;
  17553. /* readonly */
  17554. Matrix3x4 worldTransform;
  17555. /* readonly */
  17556. Vector3 worldUp;
  17557. };
  17558. class NodeImpl
  17559. {
  17560. public:
  17561. ~NodeImpl();
  17562. NodeImpl();
  17563. // Methods:
  17564. NodeImpl& operator=(const NodeImpl&);
  17565. // Properties:
  17566. VectorBuffer attrBuffer;
  17567. String name;
  17568. StringHash nameHash;
  17569. };
  17570. class NodeReplicationState
  17571. {
  17572. public:
  17573. ~NodeReplicationState();
  17574. NodeReplicationState();
  17575. // Methods:
  17576. NodeReplicationState& operator=(const NodeReplicationState&);
  17577. // Properties:
  17578. DirtyBits dirtyAttributes;
  17579. bool markedDirty;
  17580. float priorityAcc;
  17581. };
  17582. class Object
  17583. {
  17584. public:
  17585. // Methods:
  17586. operator Animatable() const;
  17587. operator AnimatedModel() const;
  17588. operator AnimatedSprite2D() const;
  17589. operator Animation() const;
  17590. operator AnimationController() const;
  17591. operator AnimationSet2D() const;
  17592. operator Audio() const;
  17593. operator BillboardSet() const;
  17594. operator BorderImage() const;
  17595. operator Button() const;
  17596. operator Camera() const;
  17597. operator CheckBox() const;
  17598. operator CollisionBox2D() const;
  17599. operator CollisionChain2D() const;
  17600. operator CollisionCircle2D() const;
  17601. operator CollisionEdge2D() const;
  17602. operator CollisionPolygon2D() const;
  17603. operator CollisionShape2D() const;
  17604. operator CollisionShape() const;
  17605. operator Component() const;
  17606. operator Connection() const;
  17607. operator Console() const;
  17608. operator ConstantBuffer() const;
  17609. operator Constraint2D() const;
  17610. operator Constraint() const;
  17611. operator ConstraintDistance2D() const;
  17612. operator ConstraintFriction2D() const;
  17613. operator ConstraintGear2D() const;
  17614. operator ConstraintMotor2D() const;
  17615. operator ConstraintMouse2D() const;
  17616. operator ConstraintPrismatic2D() const;
  17617. operator ConstraintPulley2D() const;
  17618. operator ConstraintRevolute2D() const;
  17619. operator ConstraintWeld2D() const;
  17620. operator ConstraintWheel2D() const;
  17621. operator CrowdAgent() const;
  17622. operator CrowdManager() const;
  17623. operator Cursor() const;
  17624. operator CustomGeometry() const;
  17625. operator Database() const;
  17626. operator DebugHud() const;
  17627. operator DebugRenderer() const;
  17628. operator DecalSet() const;
  17629. operator Drawable2D() const;
  17630. operator Drawable() const;
  17631. operator DropDownList() const;
  17632. operator DynamicNavigationMesh() const;
  17633. operator Engine() const;
  17634. operator EventProfiler() const;
  17635. operator File() const;
  17636. operator FileSelector() const;
  17637. operator FileSystem() const;
  17638. operator FileWatcher() const;
  17639. operator Font() const;
  17640. operator Geometry() const;
  17641. bool GetBlockEvents() const;
  17642. VariantMap& GetEventDataMap() const;
  17643. Object GetEventSender() const;
  17644. Object GetSubsystem(StringHash) const;
  17645. StringHash GetType() const;
  17646. operator Graphics() const;
  17647. bool HasEventHandlers() const;
  17648. bool HasSubscribedToEvent(Object, StringHash) const;
  17649. bool HasSubscribedToEvent(StringHash) const;
  17650. operator IKConstraint() const;
  17651. operator IKEffector() const;
  17652. operator IKSolver() const;
  17653. operator Image() const;
  17654. operator IndexBuffer() const;
  17655. operator Input() const;
  17656. bool IsInstanceOf(StringHash) const;
  17657. operator JSONFile() const;
  17658. operator Light() const;
  17659. operator LineEdit() const;
  17660. operator ListView() const;
  17661. operator Localization() const;
  17662. operator Log() const;
  17663. operator LogicComponent() const;
  17664. operator Material() const;
  17665. operator Menu() const;
  17666. operator MessageBox() const;
  17667. operator Model() const;
  17668. operator NamedPipe() const;
  17669. operator NavArea() const;
  17670. operator Navigable() const;
  17671. operator NavigationMesh() const;
  17672. operator Network() const;
  17673. operator NetworkPriority() const;
  17674. operator Node() const;
  17675. operator ObjectAnimation() const;
  17676. operator Obstacle() const;
  17677. operator OcclusionBuffer() const;
  17678. operator Octree() const;
  17679. operator OffMeshConnection() const;
  17680. void OnEvent(Object, StringHash, VariantMap&);
  17681. operator PackageFile() const;
  17682. operator ParticleEffect2D() const;
  17683. operator ParticleEffect() const;
  17684. operator ParticleEmitter2D() const;
  17685. operator ParticleEmitter() const;
  17686. operator PhysicsWorld2D() const;
  17687. operator PhysicsWorld() const;
  17688. operator Profiler() const;
  17689. operator ProgressBar() const;
  17690. operator RaycastVehicle() const;
  17691. operator RefCounted() const;
  17692. int Refs() const;
  17693. operator Renderer2D() const;
  17694. operator Renderer() const;
  17695. operator Resource() const;
  17696. operator ResourceCache() const;
  17697. operator ResourceWithMetadata() const;
  17698. operator RibbonTrail() const;
  17699. operator RigidBody2D() const;
  17700. operator RigidBody() const;
  17701. operator Scene() const;
  17702. operator ScriptInstance() const;
  17703. operator ScrollBar() const;
  17704. operator ScrollView() const;
  17705. void SendEvent(StringHash);
  17706. void SendEvent(StringHash, VariantMap&);
  17707. operator Serializable() const;
  17708. void SetBlockEvents(bool);
  17709. void SetGlobalVar(StringHash, const Variant&);
  17710. operator Shader() const;
  17711. operator ShaderPrecache() const;
  17712. operator Skybox() const;
  17713. operator Slider() const;
  17714. operator SmoothedTransform() const;
  17715. operator Sound() const;
  17716. operator SoundListener() const;
  17717. operator SoundSource3D() const;
  17718. operator SoundSource() const;
  17719. operator SplinePath() const;
  17720. operator Sprite2D() const;
  17721. operator Sprite() const;
  17722. operator SpriteSheet2D() const;
  17723. operator StaticModel() const;
  17724. operator StaticModelGroup() const;
  17725. operator StaticSprite2D() const;
  17726. operator StretchableSprite2D() const;
  17727. const String& GetCategory() const;
  17728. const String& GetTypeName() const;
  17729. operator Technique() const;
  17730. operator Terrain() const;
  17731. operator TerrainPatch() const;
  17732. operator Text3D() const;
  17733. operator Text() const;
  17734. operator Texture2D() const;
  17735. operator Texture2DArray() const;
  17736. operator Texture3D() const;
  17737. operator Texture() const;
  17738. operator TextureCube() const;
  17739. operator TileMap2D() const;
  17740. operator TileMapLayer2D() const;
  17741. operator Time() const;
  17742. operator TmxFile2D() const;
  17743. operator ToolTip() const;
  17744. operator UI() const;
  17745. operator UIComponent() const;
  17746. operator UIElement() const;
  17747. operator UISelectable() const;
  17748. operator UnknownComponent() const;
  17749. void UnsubscribeFromAllEvents();
  17750. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17751. void UnsubscribeFromEvent(Object, StringHash);
  17752. void UnsubscribeFromEvent(StringHash);
  17753. void UnsubscribeFromEvents(Object);
  17754. operator ValueAnimation() const;
  17755. const Variant& GetGlobalVar(StringHash) const;
  17756. const VariantMap& GetGlobalVars() const;
  17757. operator VertexBuffer() const;
  17758. operator View3D() const;
  17759. operator View() const;
  17760. operator Viewport() const;
  17761. int WeakRefs() const;
  17762. operator Window() const;
  17763. operator WorkQueue() const;
  17764. operator XMLFile() const;
  17765. operator Zone() const;
  17766. operator const Animatable() const;
  17767. operator const AnimatedModel() const;
  17768. operator const AnimatedSprite2D() const;
  17769. operator const Animation() const;
  17770. operator const AnimationController() const;
  17771. operator const AnimationSet2D() const;
  17772. operator const Audio() const;
  17773. operator const BillboardSet() const;
  17774. operator const BorderImage() const;
  17775. operator const Button() const;
  17776. operator const Camera() const;
  17777. operator const CheckBox() const;
  17778. operator const CollisionBox2D() const;
  17779. operator const CollisionChain2D() const;
  17780. operator const CollisionCircle2D() const;
  17781. operator const CollisionEdge2D() const;
  17782. operator const CollisionPolygon2D() const;
  17783. operator const CollisionShape2D() const;
  17784. operator const CollisionShape() const;
  17785. operator const Component() const;
  17786. operator const Connection() const;
  17787. operator const Console() const;
  17788. operator const ConstantBuffer() const;
  17789. operator const Constraint2D() const;
  17790. operator const Constraint() const;
  17791. operator const ConstraintDistance2D() const;
  17792. operator const ConstraintFriction2D() const;
  17793. operator const ConstraintGear2D() const;
  17794. operator const ConstraintMotor2D() const;
  17795. operator const ConstraintMouse2D() const;
  17796. operator const ConstraintPrismatic2D() const;
  17797. operator const ConstraintPulley2D() const;
  17798. operator const ConstraintRevolute2D() const;
  17799. operator const ConstraintWeld2D() const;
  17800. operator const ConstraintWheel2D() const;
  17801. operator const CrowdAgent() const;
  17802. operator const CrowdManager() const;
  17803. operator const Cursor() const;
  17804. operator const CustomGeometry() const;
  17805. operator const Database() const;
  17806. operator const DebugHud() const;
  17807. operator const DebugRenderer() const;
  17808. operator const DecalSet() const;
  17809. operator const Drawable2D() const;
  17810. operator const Drawable() const;
  17811. operator const DropDownList() const;
  17812. operator const DynamicNavigationMesh() const;
  17813. operator const Engine() const;
  17814. operator const EventProfiler() const;
  17815. operator const File() const;
  17816. operator const FileSelector() const;
  17817. operator const FileSystem() const;
  17818. operator const FileWatcher() const;
  17819. operator const Font() const;
  17820. operator const Geometry() const;
  17821. operator const Graphics() const;
  17822. operator const IKConstraint() const;
  17823. operator const IKEffector() const;
  17824. operator const IKSolver() const;
  17825. operator const Image() const;
  17826. operator const IndexBuffer() const;
  17827. operator const Input() const;
  17828. operator const JSONFile() const;
  17829. operator const Light() const;
  17830. operator const LineEdit() const;
  17831. operator const ListView() const;
  17832. operator const Localization() const;
  17833. operator const Log() const;
  17834. operator const LogicComponent() const;
  17835. operator const Material() const;
  17836. operator const Menu() const;
  17837. operator const MessageBox() const;
  17838. operator const Model() const;
  17839. operator const NamedPipe() const;
  17840. operator const NavArea() const;
  17841. operator const Navigable() const;
  17842. operator const NavigationMesh() const;
  17843. operator const Network() const;
  17844. operator const NetworkPriority() const;
  17845. operator const Node() const;
  17846. operator const ObjectAnimation() const;
  17847. operator const Obstacle() const;
  17848. operator const OcclusionBuffer() const;
  17849. operator const Octree() const;
  17850. operator const OffMeshConnection() const;
  17851. operator const PackageFile() const;
  17852. operator const ParticleEffect2D() const;
  17853. operator const ParticleEffect() const;
  17854. operator const ParticleEmitter2D() const;
  17855. operator const ParticleEmitter() const;
  17856. operator const PhysicsWorld2D() const;
  17857. operator const PhysicsWorld() const;
  17858. operator const Profiler() const;
  17859. operator const ProgressBar() const;
  17860. operator const RaycastVehicle() const;
  17861. operator const RefCounted() const;
  17862. operator const Renderer2D() const;
  17863. operator const Renderer() const;
  17864. operator const Resource() const;
  17865. operator const ResourceCache() const;
  17866. operator const ResourceWithMetadata() const;
  17867. operator const RibbonTrail() const;
  17868. operator const RigidBody2D() const;
  17869. operator const RigidBody() const;
  17870. operator const Scene() const;
  17871. operator const ScriptInstance() const;
  17872. operator const ScrollBar() const;
  17873. operator const ScrollView() const;
  17874. operator const Serializable() const;
  17875. operator const Shader() const;
  17876. operator const ShaderPrecache() const;
  17877. operator const Skybox() const;
  17878. operator const Slider() const;
  17879. operator const SmoothedTransform() const;
  17880. operator const Sound() const;
  17881. operator const SoundListener() const;
  17882. operator const SoundSource3D() const;
  17883. operator const SoundSource() const;
  17884. operator const SplinePath() const;
  17885. operator const Sprite2D() const;
  17886. operator const Sprite() const;
  17887. operator const SpriteSheet2D() const;
  17888. operator const StaticModel() const;
  17889. operator const StaticModelGroup() const;
  17890. operator const StaticSprite2D() const;
  17891. operator const StretchableSprite2D() const;
  17892. operator const Technique() const;
  17893. operator const Terrain() const;
  17894. operator const TerrainPatch() const;
  17895. operator const Text3D() const;
  17896. operator const Text() const;
  17897. operator const Texture2D() const;
  17898. operator const Texture2DArray() const;
  17899. operator const Texture3D() const;
  17900. operator const Texture() const;
  17901. operator const TextureCube() const;
  17902. operator const TileMap2D() const;
  17903. operator const TileMapLayer2D() const;
  17904. operator const Time() const;
  17905. operator const TmxFile2D() const;
  17906. operator const ToolTip() const;
  17907. operator const UI() const;
  17908. operator const UIComponent() const;
  17909. operator const UIElement() const;
  17910. operator const UISelectable() const;
  17911. operator const UnknownComponent() const;
  17912. operator const ValueAnimation() const;
  17913. operator const VertexBuffer() const;
  17914. operator const View3D() const;
  17915. operator const View() const;
  17916. operator const Viewport() const;
  17917. operator const Window() const;
  17918. operator const WorkQueue() const;
  17919. operator const XMLFile() const;
  17920. operator const Zone() const;
  17921. // Properties:
  17922. /* readonly */
  17923. String category;
  17924. Array<Variant> globalVar;
  17925. /* readonly */
  17926. VariantMap globalVars;
  17927. /* readonly */
  17928. int refs;
  17929. /* readonly */
  17930. StringHash type;
  17931. /* readonly */
  17932. String typeName;
  17933. /* readonly */
  17934. int weakRefs;
  17935. };
  17936. class ObjectAnimation
  17937. {
  17938. public:
  17939. ObjectAnimation();
  17940. // Methods:
  17941. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  17942. bool BeginLoad(Deserializer&);
  17943. bool EndLoad();
  17944. AsyncLoadState GetAsyncLoadState() const;
  17945. ValueAnimation GetAttributeAnimation(const String&) const;
  17946. ValueAnimationInfo GetAttributeAnimationInfo(const String&) const;
  17947. float GetAttributeAnimationSpeed(const String&) const;
  17948. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  17949. bool GetBlockEvents() const;
  17950. VariantMap& GetEventDataMap() const;
  17951. Object GetEventSender() const;
  17952. uint GetMemoryUse() const;
  17953. StringHash GetNameHash() const;
  17954. Object GetSubsystem(StringHash) const;
  17955. StringHash GetType() const;
  17956. uint GetUseTimer();
  17957. bool HasEventHandlers() const;
  17958. bool HasSubscribedToEvent(Object, StringHash) const;
  17959. bool HasSubscribedToEvent(StringHash) const;
  17960. bool IsInstanceOf(StringHash) const;
  17961. bool Load(Deserializer&);
  17962. bool Load(File);
  17963. bool Load(VectorBuffer&);
  17964. bool Load(const String&);
  17965. bool LoadFile(const String&);
  17966. bool LoadJSON(const JSONValue&);
  17967. bool LoadXML(const XMLElement&);
  17968. operator Object() const;
  17969. void OnEvent(Object, StringHash, VariantMap&);
  17970. operator RefCounted() const;
  17971. int Refs() const;
  17972. void RemoveAttributeAnimation(ValueAnimation);
  17973. void RemoveAttributeAnimation(const String&);
  17974. void ResetUseTimer();
  17975. operator Resource() const;
  17976. bool Save(File) const;
  17977. bool Save(Serializer&) const;
  17978. bool Save(VectorBuffer&) const;
  17979. bool Save(const String&) const;
  17980. bool SaveFile(const String&) const;
  17981. bool SaveJSON(JSONValue&) const;
  17982. bool SaveXML(XMLElement&) const;
  17983. void SendEvent(StringHash);
  17984. void SendEvent(StringHash, VariantMap&);
  17985. void SetAsyncLoadState(AsyncLoadState);
  17986. void SetBlockEvents(bool);
  17987. void SetGlobalVar(StringHash, const Variant&);
  17988. void SetMemoryUse(uint);
  17989. void SetName(const String&);
  17990. const String& GetCategory() const;
  17991. const String& GetName() const;
  17992. const String& GetTypeName() const;
  17993. void UnsubscribeFromAllEvents();
  17994. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17995. void UnsubscribeFromEvent(Object, StringHash);
  17996. void UnsubscribeFromEvent(StringHash);
  17997. void UnsubscribeFromEvents(Object);
  17998. const Variant& GetGlobalVar(StringHash) const;
  17999. const VariantMap& GetGlobalVars() const;
  18000. int WeakRefs() const;
  18001. operator const Object() const;
  18002. operator const RefCounted() const;
  18003. operator const Resource() const;
  18004. // Properties:
  18005. /* readonly */
  18006. Array<ValueAnimation> attributeAnimations;
  18007. /* readonly */
  18008. String category;
  18009. Array<Variant> globalVar;
  18010. /* readonly */
  18011. VariantMap globalVars;
  18012. /* readonly */
  18013. uint memoryUse;
  18014. String name;
  18015. /* readonly */
  18016. int refs;
  18017. /* readonly */
  18018. Array<float> speeds;
  18019. /* readonly */
  18020. StringHash type;
  18021. /* readonly */
  18022. String typeName;
  18023. /* readonly */
  18024. uint useTimer;
  18025. /* readonly */
  18026. int weakRefs;
  18027. /* readonly */
  18028. Array<WrapMode> wrapModes;
  18029. };
  18030. class ObjectFactory
  18031. {
  18032. public:
  18033. // Methods:
  18034. Object CreateObject();
  18035. StringHash GetType() const;
  18036. operator RefCounted() const;
  18037. int Refs() const;
  18038. const String& GetTypeName() const;
  18039. int WeakRefs() const;
  18040. operator const RefCounted() const;
  18041. // Properties:
  18042. /* readonly */
  18043. int refs;
  18044. /* readonly */
  18045. int weakRefs;
  18046. };
  18047. class Obstacle
  18048. {
  18049. public:
  18050. Obstacle();
  18051. // Methods:
  18052. void AllocateNetworkState();
  18053. operator Animatable() const;
  18054. void ApplyAttributes();
  18055. void CleanupConnection(Connection);
  18056. operator Component() const;
  18057. void DrawDebugGeometry(DebugRenderer, bool);
  18058. void DrawDebugGeometry(bool);
  18059. bool GetAnimationEnabled() const;
  18060. Variant GetAttribute(const String&) const;
  18061. Variant GetAttribute(uint) const;
  18062. ValueAnimation GetAttributeAnimation(const String&) const;
  18063. float GetAttributeAnimationSpeed(const String&) const;
  18064. float GetAttributeAnimationTime(const String&) const;
  18065. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18066. Variant GetAttributeDefault(const String&) const;
  18067. Variant GetAttributeDefault(uint) const;
  18068. bool GetBlockEvents() const;
  18069. Component GetComponent(StringHash) const;
  18070. VariantMap& GetEventDataMap() const;
  18071. Object GetEventSender() const;
  18072. float GetHeight() const;
  18073. uint GetID() const;
  18074. bool GetInterceptNetworkUpdate(const String&) const;
  18075. Node GetNode() const;
  18076. uint GetNumAttributes() const;
  18077. uint GetNumNetworkAttributes() const;
  18078. ObjectAnimation GetObjectAnimation() const;
  18079. ResourceRef GetObjectAnimationAttr() const;
  18080. uint GetObstacleID() const;
  18081. float GetRadius() const;
  18082. Scene GetScene() const;
  18083. Object GetSubsystem(StringHash) const;
  18084. StringHash GetType() const;
  18085. bool HasEventHandlers() const;
  18086. bool HasSubscribedToEvent(Object, StringHash) const;
  18087. bool HasSubscribedToEvent(StringHash) const;
  18088. bool IsEnabled() const;
  18089. bool IsEnabledEffective() const;
  18090. bool IsInstanceOf(StringHash) const;
  18091. bool IsReplicated() const;
  18092. bool IsTemporary() const;
  18093. bool Load(Deserializer&);
  18094. bool LoadJSON(const JSONValue&);
  18095. bool LoadXML(const XMLElement&);
  18096. void MarkNetworkUpdate();
  18097. operator Object() const;
  18098. void OnEvent(Object, StringHash, VariantMap&);
  18099. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18100. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18101. void OnSetEnabled();
  18102. void PrepareNetworkUpdate();
  18103. bool ReadDeltaUpdate(Deserializer&);
  18104. bool ReadLatestDataUpdate(Deserializer&);
  18105. operator RefCounted() const;
  18106. int Refs() const;
  18107. void Remove();
  18108. void RemoveAttributeAnimation(const String&);
  18109. void RemoveInstanceDefault();
  18110. void RemoveObjectAnimation();
  18111. void ResetToDefault();
  18112. bool Save(Serializer&) const;
  18113. bool SaveDefaultAttributes() const;
  18114. bool SaveJSON(JSONValue&) const;
  18115. bool SaveXML(XMLElement&) const;
  18116. void SendEvent(StringHash);
  18117. void SendEvent(StringHash, VariantMap&);
  18118. operator Serializable() const;
  18119. void SetAnimationEnabled(bool);
  18120. void SetAnimationTime(float);
  18121. bool SetAttribute(const String&, const Variant&);
  18122. bool SetAttribute(uint, const Variant&);
  18123. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18124. void SetAttributeAnimationSpeed(const String&, float);
  18125. void SetAttributeAnimationTime(const String&, float);
  18126. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18127. void SetBlockEvents(bool);
  18128. void SetEnabled(bool);
  18129. void SetGlobalVar(StringHash, const Variant&);
  18130. void SetHeight(float);
  18131. void SetInstanceDefault(bool);
  18132. void SetInterceptNetworkUpdate(const String&, bool);
  18133. void SetObjectAnimation(ObjectAnimation);
  18134. void SetObjectAnimationAttr(const ResourceRef&);
  18135. void SetRadius(float);
  18136. void SetTemporary(bool);
  18137. const String& GetCategory() const;
  18138. const String& GetTypeName() const;
  18139. void UnsubscribeFromAllEvents();
  18140. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18141. void UnsubscribeFromEvent(Object, StringHash);
  18142. void UnsubscribeFromEvent(StringHash);
  18143. void UnsubscribeFromEvents(Object);
  18144. const Variant& GetGlobalVar(StringHash) const;
  18145. const VariantMap& GetGlobalVars() const;
  18146. int WeakRefs() const;
  18147. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18148. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18149. void WriteLatestDataUpdate(Serializer&, uint8);
  18150. operator const Animatable() const;
  18151. operator const Component() const;
  18152. operator const Object() const;
  18153. operator const RefCounted() const;
  18154. operator const Serializable() const;
  18155. // Properties:
  18156. bool animationEnabled;
  18157. /* readonly */
  18158. Array<Variant> attributeDefaults;
  18159. /* readonly */
  18160. Array<AttributeInfo> attributeInfos;
  18161. Array<Variant> attributes;
  18162. /* readonly */
  18163. String category;
  18164. bool enabled;
  18165. /* readonly */
  18166. bool enabledEffective;
  18167. Array<Variant> globalVar;
  18168. /* readonly */
  18169. VariantMap globalVars;
  18170. float height;
  18171. /* readonly */
  18172. uint id;
  18173. /* readonly */
  18174. Node node;
  18175. /* readonly */
  18176. uint numAttributes;
  18177. ObjectAnimation objectAnimation;
  18178. /* readonly */
  18179. uint obstacleId;
  18180. float radius;
  18181. /* readonly */
  18182. int refs;
  18183. /* readonly */
  18184. bool replicated;
  18185. bool temporary;
  18186. /* readonly */
  18187. StringHash type;
  18188. /* readonly */
  18189. String typeName;
  18190. /* readonly */
  18191. int weakRefs;
  18192. };
  18193. class OcclusionBatch
  18194. {
  18195. public:
  18196. ~OcclusionBatch();
  18197. OcclusionBatch();
  18198. // Methods:
  18199. OcclusionBatch& operator=(const OcclusionBatch&);
  18200. // Properties:
  18201. uint drawCount;
  18202. uint drawStart;
  18203. uint indexSize;
  18204. Matrix3x4 model;
  18205. uint vertexSize;
  18206. };
  18207. class OcclusionBuffer
  18208. {
  18209. public:
  18210. OcclusionBuffer();
  18211. // Methods:
  18212. void BuildDepthHierarchy();
  18213. void Clear();
  18214. void DrawBatch(const OcclusionBatch&, uint);
  18215. void DrawTriangles();
  18216. bool GetBlockEvents() const;
  18217. CullMode GetCullMode() const;
  18218. VariantMap& GetEventDataMap() const;
  18219. Object GetEventSender() const;
  18220. int GetHeight() const;
  18221. uint GetMaxTriangles() const;
  18222. uint GetNumTriangles() const;
  18223. Object GetSubsystem(StringHash) const;
  18224. StringHash GetType() const;
  18225. uint GetUseTimer();
  18226. int GetWidth() const;
  18227. bool HasEventHandlers() const;
  18228. bool HasSubscribedToEvent(Object, StringHash) const;
  18229. bool HasSubscribedToEvent(StringHash) const;
  18230. bool IsInstanceOf(StringHash) const;
  18231. bool IsThreaded() const;
  18232. bool IsVisible(const BoundingBox&) const;
  18233. const Matrix3x4& GetView() const;
  18234. const Matrix4& GetProjection() const;
  18235. operator Object() const;
  18236. void OnEvent(Object, StringHash, VariantMap&);
  18237. operator RefCounted() const;
  18238. int Refs() const;
  18239. void Reset();
  18240. void ResetUseTimer();
  18241. void SendEvent(StringHash);
  18242. void SendEvent(StringHash, VariantMap&);
  18243. void SetBlockEvents(bool);
  18244. void SetCullMode(CullMode);
  18245. void SetGlobalVar(StringHash, const Variant&);
  18246. void SetMaxTriangles(uint);
  18247. bool SetSize(int, int, bool);
  18248. void SetView(Camera);
  18249. const String& GetCategory() const;
  18250. const String& GetTypeName() const;
  18251. void UnsubscribeFromAllEvents();
  18252. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18253. void UnsubscribeFromEvent(Object, StringHash);
  18254. void UnsubscribeFromEvent(StringHash);
  18255. void UnsubscribeFromEvents(Object);
  18256. const Variant& GetGlobalVar(StringHash) const;
  18257. const VariantMap& GetGlobalVars() const;
  18258. int WeakRefs() const;
  18259. operator const Object() const;
  18260. operator const RefCounted() const;
  18261. // Properties:
  18262. /* readonly */
  18263. String category;
  18264. Array<Variant> globalVar;
  18265. /* readonly */
  18266. VariantMap globalVars;
  18267. /* readonly */
  18268. int refs;
  18269. /* readonly */
  18270. StringHash type;
  18271. /* readonly */
  18272. String typeName;
  18273. /* readonly */
  18274. int weakRefs;
  18275. };
  18276. class OcclusionBufferData
  18277. {
  18278. public:
  18279. ~OcclusionBufferData();
  18280. OcclusionBufferData();
  18281. // Methods:
  18282. OcclusionBufferData& operator=(const OcclusionBufferData&);
  18283. // Properties:
  18284. bool used;
  18285. };
  18286. class Octree
  18287. {
  18288. public:
  18289. Octree();
  18290. // Methods:
  18291. void AddDrawable(Drawable);
  18292. void AddManualDrawable(Drawable);
  18293. void AllocateNetworkState();
  18294. operator Animatable() const;
  18295. void ApplyAttributes();
  18296. const BoundingBox& GetCullingBox() const;
  18297. const BoundingBox& GetWorldBoundingBox() const;
  18298. void CancelUpdate(Drawable);
  18299. bool CheckDrawableFit(const BoundingBox&) const;
  18300. void CleanupConnection(Connection);
  18301. operator Component() const;
  18302. void DeleteChild(uint);
  18303. void DrawDebugGeometry(DebugRenderer, bool);
  18304. void DrawDebugGeometry(bool);
  18305. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18306. bool GetAnimationEnabled() const;
  18307. Variant GetAttribute(const String&) const;
  18308. Variant GetAttribute(uint) const;
  18309. ValueAnimation GetAttributeAnimation(const String&) const;
  18310. float GetAttributeAnimationSpeed(const String&) const;
  18311. float GetAttributeAnimationTime(const String&) const;
  18312. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18313. Variant GetAttributeDefault(const String&) const;
  18314. Variant GetAttributeDefault(uint) const;
  18315. bool GetBlockEvents() const;
  18316. Component GetComponent(StringHash) const;
  18317. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18318. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18319. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18320. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18321. VariantMap& GetEventDataMap() const;
  18322. Object GetEventSender() const;
  18323. uint GetID() const;
  18324. bool GetInterceptNetworkUpdate(const String&) const;
  18325. uint GetLevel() const;
  18326. Node GetNode() const;
  18327. uint GetNumAttributes() const;
  18328. uint GetNumDrawables() const;
  18329. uint GetNumLevels() const;
  18330. uint GetNumNetworkAttributes() const;
  18331. ObjectAnimation GetObjectAnimation() const;
  18332. ResourceRef GetObjectAnimationAttr() const;
  18333. Octree GetRoot() const;
  18334. Scene GetScene() const;
  18335. Object GetSubsystem(StringHash) const;
  18336. StringHash GetType() const;
  18337. bool HasEventHandlers() const;
  18338. bool HasSubscribedToEvent(Object, StringHash) const;
  18339. bool HasSubscribedToEvent(StringHash) const;
  18340. void InsertDrawable(Drawable);
  18341. bool IsEmpty();
  18342. bool IsEnabled() const;
  18343. bool IsEnabledEffective() const;
  18344. bool IsInstanceOf(StringHash) const;
  18345. bool IsReplicated() const;
  18346. bool IsTemporary() const;
  18347. bool Load(Deserializer&);
  18348. bool LoadJSON(const JSONValue&);
  18349. bool LoadXML(const XMLElement&);
  18350. void MarkNetworkUpdate();
  18351. operator Object() const;
  18352. void OnEvent(Object, StringHash, VariantMap&);
  18353. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18354. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18355. void OnSetEnabled();
  18356. void PrepareNetworkUpdate();
  18357. void QueueUpdate(Drawable);
  18358. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  18359. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  18360. bool ReadDeltaUpdate(Deserializer&);
  18361. bool ReadLatestDataUpdate(Deserializer&);
  18362. operator RefCounted() const;
  18363. int Refs() const;
  18364. void Remove();
  18365. void RemoveAttributeAnimation(const String&);
  18366. void RemoveDrawable(Drawable, bool = true);
  18367. void RemoveInstanceDefault();
  18368. void RemoveManualDrawable(Drawable);
  18369. void RemoveObjectAnimation();
  18370. void ResetRoot();
  18371. void ResetToDefault();
  18372. bool Save(Serializer&) const;
  18373. bool SaveDefaultAttributes() const;
  18374. bool SaveJSON(JSONValue&) const;
  18375. bool SaveXML(XMLElement&) const;
  18376. void SendEvent(StringHash);
  18377. void SendEvent(StringHash, VariantMap&);
  18378. operator Serializable() const;
  18379. void SetAnimationEnabled(bool);
  18380. void SetAnimationTime(float);
  18381. bool SetAttribute(const String&, const Variant&);
  18382. bool SetAttribute(uint, const Variant&);
  18383. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18384. void SetAttributeAnimationSpeed(const String&, float);
  18385. void SetAttributeAnimationTime(const String&, float);
  18386. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18387. void SetBlockEvents(bool);
  18388. void SetEnabled(bool);
  18389. void SetGlobalVar(StringHash, const Variant&);
  18390. void SetInstanceDefault(bool);
  18391. void SetInterceptNetworkUpdate(const String&, bool);
  18392. void SetObjectAnimation(ObjectAnimation);
  18393. void SetObjectAnimationAttr(const ResourceRef&);
  18394. void SetSize(const BoundingBox&, uint);
  18395. void SetTemporary(bool);
  18396. const String& GetCategory() const;
  18397. const String& GetTypeName() const;
  18398. void UnsubscribeFromAllEvents();
  18399. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18400. void UnsubscribeFromEvent(Object, StringHash);
  18401. void UnsubscribeFromEvent(StringHash);
  18402. void UnsubscribeFromEvents(Object);
  18403. void Update(const FrameInfo&);
  18404. const Variant& GetGlobalVar(StringHash) const;
  18405. const VariantMap& GetGlobalVars() const;
  18406. int WeakRefs() const;
  18407. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18408. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18409. void WriteLatestDataUpdate(Serializer&, uint8);
  18410. operator const Animatable() const;
  18411. operator const Component() const;
  18412. operator const Object() const;
  18413. operator const RefCounted() const;
  18414. operator const Serializable() const;
  18415. // Properties:
  18416. bool animationEnabled;
  18417. /* readonly */
  18418. Array<Variant> attributeDefaults;
  18419. /* readonly */
  18420. Array<AttributeInfo> attributeInfos;
  18421. Array<Variant> attributes;
  18422. /* readonly */
  18423. String category;
  18424. bool enabled;
  18425. /* readonly */
  18426. bool enabledEffective;
  18427. Array<Variant> globalVar;
  18428. /* readonly */
  18429. VariantMap globalVars;
  18430. /* readonly */
  18431. uint id;
  18432. /* readonly */
  18433. Node node;
  18434. /* readonly */
  18435. uint numAttributes;
  18436. /* readonly */
  18437. uint numLevels;
  18438. ObjectAnimation objectAnimation;
  18439. /* readonly */
  18440. int refs;
  18441. /* readonly */
  18442. bool replicated;
  18443. bool temporary;
  18444. /* readonly */
  18445. StringHash type;
  18446. /* readonly */
  18447. String typeName;
  18448. /* readonly */
  18449. int weakRefs;
  18450. /* readonly */
  18451. BoundingBox worldBoundingBox;
  18452. };
  18453. class OctreeQueryResult
  18454. {
  18455. public:
  18456. ~OctreeQueryResult();
  18457. OctreeQueryResult();
  18458. // Methods:
  18459. OctreeQueryResult& operator=(const OctreeQueryResult&);
  18460. };
  18461. class OffMeshConnection
  18462. {
  18463. public:
  18464. OffMeshConnection();
  18465. // Methods:
  18466. void AllocateNetworkState();
  18467. operator Animatable() const;
  18468. void ApplyAttributes();
  18469. void CleanupConnection(Connection);
  18470. operator Component() const;
  18471. void DrawDebugGeometry(DebugRenderer, bool);
  18472. bool GetAnimationEnabled() const;
  18473. uint GetAreaID() const;
  18474. Variant GetAttribute(const String&) const;
  18475. Variant GetAttribute(uint) const;
  18476. ValueAnimation GetAttributeAnimation(const String&) const;
  18477. float GetAttributeAnimationSpeed(const String&) const;
  18478. float GetAttributeAnimationTime(const String&) const;
  18479. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18480. Variant GetAttributeDefault(const String&) const;
  18481. Variant GetAttributeDefault(uint) const;
  18482. bool GetBlockEvents() const;
  18483. Component GetComponent(StringHash) const;
  18484. Node GetEndPoint() const;
  18485. VariantMap& GetEventDataMap() const;
  18486. Object GetEventSender() const;
  18487. uint GetID() const;
  18488. bool GetInterceptNetworkUpdate(const String&) const;
  18489. uint GetMask() const;
  18490. Node GetNode() const;
  18491. uint GetNumAttributes() const;
  18492. uint GetNumNetworkAttributes() const;
  18493. ObjectAnimation GetObjectAnimation() const;
  18494. ResourceRef GetObjectAnimationAttr() const;
  18495. float GetRadius() const;
  18496. Scene GetScene() const;
  18497. Object GetSubsystem(StringHash) const;
  18498. StringHash GetType() const;
  18499. bool HasEventHandlers() const;
  18500. bool HasSubscribedToEvent(Object, StringHash) const;
  18501. bool HasSubscribedToEvent(StringHash) const;
  18502. bool IsBidirectional() const;
  18503. bool IsEnabled() const;
  18504. bool IsEnabledEffective() const;
  18505. bool IsInstanceOf(StringHash) const;
  18506. bool IsReplicated() const;
  18507. bool IsTemporary() const;
  18508. bool Load(Deserializer&);
  18509. bool LoadJSON(const JSONValue&);
  18510. bool LoadXML(const XMLElement&);
  18511. void MarkNetworkUpdate();
  18512. operator Object() const;
  18513. void OnEvent(Object, StringHash, VariantMap&);
  18514. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18515. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18516. void OnSetEnabled();
  18517. void PrepareNetworkUpdate();
  18518. bool ReadDeltaUpdate(Deserializer&);
  18519. bool ReadLatestDataUpdate(Deserializer&);
  18520. operator RefCounted() const;
  18521. int Refs() const;
  18522. void Remove();
  18523. void RemoveAttributeAnimation(const String&);
  18524. void RemoveInstanceDefault();
  18525. void RemoveObjectAnimation();
  18526. void ResetToDefault();
  18527. bool Save(Serializer&) const;
  18528. bool SaveDefaultAttributes() const;
  18529. bool SaveJSON(JSONValue&) const;
  18530. bool SaveXML(XMLElement&) const;
  18531. void SendEvent(StringHash);
  18532. void SendEvent(StringHash, VariantMap&);
  18533. operator Serializable() const;
  18534. void SetAnimationEnabled(bool);
  18535. void SetAnimationTime(float);
  18536. void SetAreaID(uint);
  18537. bool SetAttribute(const String&, const Variant&);
  18538. bool SetAttribute(uint, const Variant&);
  18539. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18540. void SetAttributeAnimationSpeed(const String&, float);
  18541. void SetAttributeAnimationTime(const String&, float);
  18542. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18543. void SetBidirectional(bool);
  18544. void SetBlockEvents(bool);
  18545. void SetEnabled(bool);
  18546. void SetEndPoint(Node);
  18547. void SetGlobalVar(StringHash, const Variant&);
  18548. void SetInstanceDefault(bool);
  18549. void SetInterceptNetworkUpdate(const String&, bool);
  18550. void SetMask(uint);
  18551. void SetObjectAnimation(ObjectAnimation);
  18552. void SetObjectAnimationAttr(const ResourceRef&);
  18553. void SetRadius(float);
  18554. void SetTemporary(bool);
  18555. const String& GetCategory() const;
  18556. const String& GetTypeName() const;
  18557. void UnsubscribeFromAllEvents();
  18558. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18559. void UnsubscribeFromEvent(Object, StringHash);
  18560. void UnsubscribeFromEvent(StringHash);
  18561. void UnsubscribeFromEvents(Object);
  18562. const Variant& GetGlobalVar(StringHash) const;
  18563. const VariantMap& GetGlobalVars() const;
  18564. int WeakRefs() const;
  18565. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18566. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18567. void WriteLatestDataUpdate(Serializer&, uint8);
  18568. operator const Animatable() const;
  18569. operator const Component() const;
  18570. operator const Object() const;
  18571. operator const RefCounted() const;
  18572. operator const Serializable() const;
  18573. // Properties:
  18574. bool animationEnabled;
  18575. uint areaID;
  18576. /* readonly */
  18577. Array<Variant> attributeDefaults;
  18578. /* readonly */
  18579. Array<AttributeInfo> attributeInfos;
  18580. Array<Variant> attributes;
  18581. bool bidirectional;
  18582. /* readonly */
  18583. String category;
  18584. bool enabled;
  18585. /* readonly */
  18586. bool enabledEffective;
  18587. Node endPoint;
  18588. Array<Variant> globalVar;
  18589. /* readonly */
  18590. VariantMap globalVars;
  18591. /* readonly */
  18592. uint id;
  18593. uint mask;
  18594. /* readonly */
  18595. Node node;
  18596. /* readonly */
  18597. uint numAttributes;
  18598. ObjectAnimation objectAnimation;
  18599. float radius;
  18600. /* readonly */
  18601. int refs;
  18602. /* readonly */
  18603. bool replicated;
  18604. bool temporary;
  18605. /* readonly */
  18606. StringHash type;
  18607. /* readonly */
  18608. String typeName;
  18609. /* readonly */
  18610. int weakRefs;
  18611. };
  18612. class OggVorbisSoundStream
  18613. {
  18614. public:
  18615. OggVorbisSoundStream(Sound&);
  18616. // Methods:
  18617. float GetFrequency() const;
  18618. uint GetIntFrequency() const;
  18619. uint GetSampleSize() const;
  18620. bool GetStopAtEnd() const;
  18621. bool IsSixteenBit() const;
  18622. bool IsStereo() const;
  18623. operator RefCounted() const;
  18624. int Refs() const;
  18625. bool Seek(uint);
  18626. void SetFormat(uint, bool, bool);
  18627. void SetStopAtEnd(bool);
  18628. operator SoundStream() const;
  18629. int WeakRefs() const;
  18630. operator const RefCounted() const;
  18631. operator const SoundStream() const;
  18632. // Properties:
  18633. /* readonly */
  18634. int refs;
  18635. /* readonly */
  18636. int weakRefs;
  18637. };
  18638. class PackageDownload
  18639. {
  18640. public:
  18641. ~PackageDownload();
  18642. PackageDownload();
  18643. // Methods:
  18644. PackageDownload& operator=(const PackageDownload&);
  18645. // Properties:
  18646. uint checksum;
  18647. bool initiated;
  18648. String name;
  18649. uint totalFragments;
  18650. };
  18651. class PackageEntry
  18652. {
  18653. public:
  18654. // Methods:
  18655. PackageEntry& operator=(const PackageEntry&);
  18656. // Properties:
  18657. uint checksum;
  18658. uint offset;
  18659. uint size;
  18660. };
  18661. class PackageFile
  18662. {
  18663. public:
  18664. PackageFile();
  18665. PackageFile(const String&in, uint = 0);
  18666. // Methods:
  18667. bool Exists(const String&) const;
  18668. bool GetBlockEvents() const;
  18669. uint GetChecksum() const;
  18670. Array<String> GetEntryNames() const;
  18671. VariantMap& GetEventDataMap() const;
  18672. Object GetEventSender() const;
  18673. StringHash GetNameHash() const;
  18674. uint GetNumFiles() const;
  18675. Object GetSubsystem(StringHash) const;
  18676. uint GetTotalDataSize() const;
  18677. uint GetTotalSize() const;
  18678. StringHash GetType() const;
  18679. bool HasEventHandlers() const;
  18680. bool HasSubscribedToEvent(Object, StringHash) const;
  18681. bool HasSubscribedToEvent(StringHash) const;
  18682. bool IsCompressed() const;
  18683. bool IsInstanceOf(StringHash) const;
  18684. operator Object() const;
  18685. void OnEvent(Object, StringHash, VariantMap&);
  18686. bool Open(const String&, uint = 0);
  18687. operator RefCounted() const;
  18688. int Refs() const;
  18689. void SendEvent(StringHash);
  18690. void SendEvent(StringHash, VariantMap&);
  18691. void SetBlockEvents(bool);
  18692. void SetGlobalVar(StringHash, const Variant&);
  18693. const String& GetCategory() const;
  18694. const String& GetName() const;
  18695. const String& GetTypeName() const;
  18696. void UnsubscribeFromAllEvents();
  18697. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18698. void UnsubscribeFromEvent(Object, StringHash);
  18699. void UnsubscribeFromEvent(StringHash);
  18700. void UnsubscribeFromEvents(Object);
  18701. const Variant& GetGlobalVar(StringHash) const;
  18702. const VariantMap& GetGlobalVars() const;
  18703. int WeakRefs() const;
  18704. operator const Object() const;
  18705. operator const RefCounted() const;
  18706. // Properties:
  18707. /* readonly */
  18708. String category;
  18709. /* readonly */
  18710. uint checksum;
  18711. /* readonly */
  18712. bool compressed;
  18713. Array<Variant> globalVar;
  18714. /* readonly */
  18715. VariantMap globalVars;
  18716. /* readonly */
  18717. String name;
  18718. /* readonly */
  18719. uint numFiles;
  18720. /* readonly */
  18721. int refs;
  18722. /* readonly */
  18723. uint totalDataSize;
  18724. /* readonly */
  18725. uint totalSize;
  18726. /* readonly */
  18727. StringHash type;
  18728. /* readonly */
  18729. String typeName;
  18730. /* readonly */
  18731. int weakRefs;
  18732. };
  18733. class PackageUpload
  18734. {
  18735. public:
  18736. ~PackageUpload();
  18737. PackageUpload();
  18738. // Methods:
  18739. PackageUpload& operator=(const PackageUpload&);
  18740. // Properties:
  18741. uint fragment;
  18742. uint totalFragments;
  18743. };
  18744. class Particle
  18745. {
  18746. public:
  18747. ~Particle();
  18748. Particle();
  18749. // Methods:
  18750. Particle& operator=(const Particle&);
  18751. // Properties:
  18752. uint colorIndex;
  18753. float rotationSpeed;
  18754. float scale;
  18755. Vector2 size;
  18756. uint texIndex;
  18757. float timeToLive;
  18758. float timer;
  18759. Vector3 velocity;
  18760. };
  18761. class Particle2D
  18762. {
  18763. public:
  18764. ~Particle2D();
  18765. Particle2D();
  18766. // Methods:
  18767. Particle2D& operator=(const Particle2D&);
  18768. // Properties:
  18769. Color color;
  18770. Color colorDelta;
  18771. float emitRadius;
  18772. float emitRadiusDelta;
  18773. float emitRotation;
  18774. float emitRotationDelta;
  18775. Vector3 position;
  18776. float radialAcceleration;
  18777. float rotation;
  18778. float rotationDelta;
  18779. float size;
  18780. float sizeDelta;
  18781. Vector2 startPos;
  18782. float tangentialAcceleration;
  18783. float timeToLive;
  18784. Vector2 velocity;
  18785. };
  18786. class ParticleEffect
  18787. {
  18788. public:
  18789. ParticleEffect();
  18790. // Methods:
  18791. void AddColorFrame(const ColorFrame&);
  18792. void AddColorTime(const Color&, float);
  18793. void AddTextureFrame(const TextureFrame&);
  18794. void AddTextureTime(const Rect&, float);
  18795. bool BeginLoad(Deserializer&);
  18796. ParticleEffect Clone(const String& = String :: EMPTY) const;
  18797. bool EndLoad();
  18798. float GetActiveTime() const;
  18799. float GetAnimationLodBias() const;
  18800. AsyncLoadState GetAsyncLoadState() const;
  18801. bool GetBlockEvents() const;
  18802. ColorFrame GetColorFrame(uint) const;
  18803. float GetDampingForce() const;
  18804. EmitterType GetEmitterType() const;
  18805. VariantMap& GetEventDataMap() const;
  18806. Object GetEventSender() const;
  18807. FaceCameraMode GetFaceCameraMode() const;
  18808. float GetInactiveTime() const;
  18809. Material GetMaterial() const;
  18810. float GetMaxEmissionRate() const;
  18811. float GetMaxRotation() const;
  18812. float GetMaxRotationSpeed() const;
  18813. float GetMaxTimeToLive() const;
  18814. float GetMaxVelocity() const;
  18815. uint GetMemoryUse() const;
  18816. float GetMinEmissionRate() const;
  18817. float GetMinRotation() const;
  18818. float GetMinRotationSpeed() const;
  18819. float GetMinTimeToLive() const;
  18820. float GetMinVelocity() const;
  18821. StringHash GetNameHash() const;
  18822. uint GetNumColorFrames() const;
  18823. uint GetNumParticles() const;
  18824. uint GetNumTextureFrames() const;
  18825. Vector3 GetRandomDirection() const;
  18826. float GetRandomRotation() const;
  18827. float GetRandomRotationSpeed() const;
  18828. Vector2 GetRandomSize() const;
  18829. float GetRandomTimeToLive() const;
  18830. float GetRandomVelocity() const;
  18831. float GetSizeAdd() const;
  18832. float GetSizeMul() const;
  18833. Object GetSubsystem(StringHash) const;
  18834. TextureFrame GetTextureFrame(uint) const;
  18835. StringHash GetType() const;
  18836. bool GetUpdateInvisible() const;
  18837. uint GetUseTimer();
  18838. bool HasEventHandlers() const;
  18839. bool HasSubscribedToEvent(Object, StringHash) const;
  18840. bool HasSubscribedToEvent(StringHash) const;
  18841. bool IsFixedScreenSize() const;
  18842. bool IsInstanceOf(StringHash) const;
  18843. bool IsRelative() const;
  18844. bool IsScaled() const;
  18845. bool IsSorted() const;
  18846. bool Load(Deserializer&);
  18847. bool Load(File);
  18848. bool Load(VectorBuffer&);
  18849. bool Load(const String&);
  18850. bool Load(const XMLElement&);
  18851. bool LoadFile(const String&);
  18852. operator Object() const;
  18853. void OnEvent(Object, StringHash, VariantMap&);
  18854. operator RefCounted() const;
  18855. int Refs() const;
  18856. void RemoveColorFrame(uint);
  18857. void RemoveTextureFrame(uint);
  18858. void ResetUseTimer();
  18859. operator Resource() const;
  18860. bool Save(File) const;
  18861. bool Save(Serializer&) const;
  18862. bool Save(VectorBuffer&) const;
  18863. bool Save(XMLElement&) const;
  18864. bool Save(const String&) const;
  18865. bool SaveFile(const String&) const;
  18866. void SendEvent(StringHash);
  18867. void SendEvent(StringHash, VariantMap&);
  18868. void SetActiveTime(float);
  18869. void SetAnimationLodBias(float);
  18870. void SetAsyncLoadState(AsyncLoadState);
  18871. void SetBlockEvents(bool);
  18872. void SetColorFrame(uint, const ColorFrame&);
  18873. void SetConstantForce(const Vector3&);
  18874. void SetDampingForce(float);
  18875. void SetEmitterSize(const Vector3&);
  18876. void SetEmitterType(EmitterType);
  18877. void SetFaceCameraMode(FaceCameraMode);
  18878. void SetFixedScreenSize(bool);
  18879. void SetGlobalVar(StringHash, const Variant&);
  18880. void SetInactiveTime(float);
  18881. void SetMaterial(Material);
  18882. void SetMaxDirection(const Vector3&);
  18883. void SetMaxEmissionRate(float);
  18884. void SetMaxParticleSize(const Vector2&);
  18885. void SetMaxRotation(float);
  18886. void SetMaxRotationSpeed(float);
  18887. void SetMaxTimeToLive(float);
  18888. void SetMaxVelocity(float);
  18889. void SetMemoryUse(uint);
  18890. void SetMinDirection(const Vector3&);
  18891. void SetMinEmissionRate(float);
  18892. void SetMinParticleSize(const Vector2&);
  18893. void SetMinRotation(float);
  18894. void SetMinRotationSpeed(float);
  18895. void SetMinTimeToLive(float);
  18896. void SetMinVelocity(float);
  18897. void SetName(const String&);
  18898. void SetNumColorFrames(uint);
  18899. void SetNumParticles(uint);
  18900. void SetNumTextureFrames(uint);
  18901. void SetRelative(bool);
  18902. void SetScaled(bool);
  18903. void SetSizeAdd(float);
  18904. void SetSizeMul(float);
  18905. void SetSorted(bool);
  18906. void SetTextureFrame(uint, const TextureFrame&);
  18907. void SetUpdateInvisible(bool);
  18908. void SortColorFrames();
  18909. void SortTextureFrames();
  18910. const String& GetCategory() const;
  18911. const String& GetName() const;
  18912. const String& GetTypeName() const;
  18913. void UnsubscribeFromAllEvents();
  18914. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18915. void UnsubscribeFromEvent(Object, StringHash);
  18916. void UnsubscribeFromEvent(StringHash);
  18917. void UnsubscribeFromEvents(Object);
  18918. const Variant& GetGlobalVar(StringHash) const;
  18919. const VariantMap& GetGlobalVars() const;
  18920. const Vector2& GetMaxParticleSize() const;
  18921. const Vector2& GetMinParticleSize() const;
  18922. const Vector3& GetConstantForce() const;
  18923. const Vector3& GetEmitterSize() const;
  18924. const Vector3& GetMaxDirection() const;
  18925. const Vector3& GetMinDirection() const;
  18926. int WeakRefs() const;
  18927. operator const Object() const;
  18928. operator const RefCounted() const;
  18929. operator const Resource() const;
  18930. // Properties:
  18931. float activeTime;
  18932. float animationLodBias;
  18933. /* readonly */
  18934. String category;
  18935. Vector3 constantForce;
  18936. float dampingForce;
  18937. Vector3 emitterSize;
  18938. EmitterType emitterType;
  18939. FaceCameraMode faceCameraMode;
  18940. bool fixedScreenSize;
  18941. Array<Variant> globalVar;
  18942. /* readonly */
  18943. VariantMap globalVars;
  18944. float inactiveTime;
  18945. Material material;
  18946. Vector3 maxDirection;
  18947. float maxEmissionRate;
  18948. Vector2 maxParticleSize;
  18949. float maxRotation;
  18950. float maxRotationSpeed;
  18951. float maxTimeToLive;
  18952. float maxVelocity;
  18953. /* readonly */
  18954. uint memoryUse;
  18955. Vector3 minDirection;
  18956. float minEmissionRate;
  18957. Vector2 minParticleSize;
  18958. float minRotation;
  18959. float minRotationSpeed;
  18960. float minTimeToLive;
  18961. float minVelocity;
  18962. String name;
  18963. uint numColorFrames;
  18964. uint numParticles;
  18965. uint numTextureFrames;
  18966. /* readonly */
  18967. int refs;
  18968. bool relative;
  18969. bool scaled;
  18970. float sizeAdd;
  18971. float sizeMul;
  18972. bool sorted;
  18973. /* readonly */
  18974. StringHash type;
  18975. /* readonly */
  18976. String typeName;
  18977. bool updateInvisible;
  18978. /* readonly */
  18979. uint useTimer;
  18980. /* readonly */
  18981. int weakRefs;
  18982. };
  18983. class ParticleEffect2D
  18984. {
  18985. public:
  18986. ParticleEffect2D();
  18987. // Methods:
  18988. bool BeginLoad(Deserializer&);
  18989. ParticleEffect2D Clone(const String& = String :: EMPTY) const;
  18990. const Color& GetFinishColor() const;
  18991. const Color& GetFinishColorVariance() const;
  18992. const Color& GetStartColor() const;
  18993. const Color& GetStartColorVariance() const;
  18994. bool EndLoad();
  18995. float GetAngle() const;
  18996. float GetAngleVariance() const;
  18997. AsyncLoadState GetAsyncLoadState() const;
  18998. BlendMode GetBlendMode() const;
  18999. bool GetBlockEvents() const;
  19000. float GetDuration() const;
  19001. EmitterType2D GetEmitterType() const;
  19002. VariantMap& GetEventDataMap() const;
  19003. Object GetEventSender() const;
  19004. float GetFinishParticleSize() const;
  19005. float GetFinishParticleSizeVariance() const;
  19006. int GetMaxParticles() const;
  19007. float GetMaxRadius() const;
  19008. float GetMaxRadiusVariance() const;
  19009. uint GetMemoryUse() const;
  19010. float GetMinRadius() const;
  19011. float GetMinRadiusVariance() const;
  19012. StringHash GetNameHash() const;
  19013. float GetParticleLifeSpan() const;
  19014. float GetParticleLifespanVariance() const;
  19015. float GetRadialAccelVariance() const;
  19016. float GetRadialAcceleration() const;
  19017. float GetRotatePerSecond() const;
  19018. float GetRotatePerSecondVariance() const;
  19019. float GetRotationEnd() const;
  19020. float GetRotationEndVariance() const;
  19021. float GetRotationStart() const;
  19022. float GetRotationStartVariance() const;
  19023. float GetSpeed() const;
  19024. float GetSpeedVariance() const;
  19025. Sprite2D GetSprite() const;
  19026. float GetStartParticleSize() const;
  19027. float GetStartParticleSizeVariance() const;
  19028. Object GetSubsystem(StringHash) const;
  19029. float GetTangentialAccelVariance() const;
  19030. float GetTangentialAcceleration() const;
  19031. StringHash GetType() const;
  19032. uint GetUseTimer();
  19033. bool HasEventHandlers() const;
  19034. bool HasSubscribedToEvent(Object, StringHash) const;
  19035. bool HasSubscribedToEvent(StringHash) const;
  19036. bool IsInstanceOf(StringHash) const;
  19037. bool Load(Deserializer&);
  19038. bool Load(File);
  19039. bool Load(VectorBuffer&);
  19040. bool Load(const String&);
  19041. bool LoadFile(const String&);
  19042. operator Object() const;
  19043. void OnEvent(Object, StringHash, VariantMap&);
  19044. operator RefCounted() const;
  19045. int Refs() const;
  19046. void ResetUseTimer();
  19047. operator Resource() const;
  19048. bool Save(File) const;
  19049. bool Save(Serializer&) const;
  19050. bool Save(VectorBuffer&) const;
  19051. bool Save(const String&) const;
  19052. bool SaveFile(const String&) const;
  19053. void SendEvent(StringHash);
  19054. void SendEvent(StringHash, VariantMap&);
  19055. void SetAngle(float);
  19056. void SetAngleVariance(float);
  19057. void SetAsyncLoadState(AsyncLoadState);
  19058. void SetBlendMode(BlendMode);
  19059. void SetBlockEvents(bool);
  19060. void SetDuration(float);
  19061. void SetEmitterType(EmitterType2D);
  19062. void SetFinishColor(const Color&);
  19063. void SetFinishColorVariance(const Color&);
  19064. void SetFinishParticleSize(float);
  19065. void SetFinishParticleSizeVariance(float);
  19066. void SetGlobalVar(StringHash, const Variant&);
  19067. void SetGravity(const Vector2&);
  19068. void SetMaxParticles(int);
  19069. void SetMaxRadius(float);
  19070. void SetMaxRadiusVariance(float);
  19071. void SetMemoryUse(uint);
  19072. void SetMinRadius(float);
  19073. void SetMinRadiusVariance(float);
  19074. void SetName(const String&);
  19075. void SetParticleLifeSpan(float);
  19076. void SetParticleLifespanVariance(float);
  19077. void SetRadialAccelVariance(float);
  19078. void SetRadialAcceleration(float);
  19079. void SetRotatePerSecond(float);
  19080. void SetRotatePerSecondVariance(float);
  19081. void SetRotationEnd(float);
  19082. void SetRotationEndVariance(float);
  19083. void SetRotationStart(float);
  19084. void SetRotationStartVariance(float);
  19085. void SetSourcePositionVariance(const Vector2&);
  19086. void SetSpeed(float);
  19087. void SetSpeedVariance(float);
  19088. void SetSprite(Sprite2D);
  19089. void SetStartColor(const Color&);
  19090. void SetStartColorVariance(const Color&);
  19091. void SetStartParticleSize(float);
  19092. void SetStartParticleSizeVariance(float);
  19093. void SetTangentialAccelVariance(float);
  19094. void SetTangentialAcceleration(float);
  19095. const String& GetCategory() const;
  19096. const String& GetName() const;
  19097. const String& GetTypeName() const;
  19098. void UnsubscribeFromAllEvents();
  19099. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19100. void UnsubscribeFromEvent(Object, StringHash);
  19101. void UnsubscribeFromEvent(StringHash);
  19102. void UnsubscribeFromEvents(Object);
  19103. const Variant& GetGlobalVar(StringHash) const;
  19104. const VariantMap& GetGlobalVars() const;
  19105. const Vector2& GetGravity() const;
  19106. const Vector2& GetSourcePositionVariance() const;
  19107. int WeakRefs() const;
  19108. operator const Object() const;
  19109. operator const RefCounted() const;
  19110. operator const Resource() const;
  19111. // Properties:
  19112. /* readonly */
  19113. String category;
  19114. Array<Variant> globalVar;
  19115. /* readonly */
  19116. VariantMap globalVars;
  19117. /* readonly */
  19118. uint memoryUse;
  19119. String name;
  19120. /* readonly */
  19121. int refs;
  19122. /* readonly */
  19123. StringHash type;
  19124. /* readonly */
  19125. String typeName;
  19126. /* readonly */
  19127. uint useTimer;
  19128. /* readonly */
  19129. int weakRefs;
  19130. };
  19131. class ParticleEmitter
  19132. {
  19133. public:
  19134. ParticleEmitter();
  19135. // Methods:
  19136. void AddLight(Light);
  19137. void AddVertexLight(Light);
  19138. void AllocateNetworkState();
  19139. operator Animatable() const;
  19140. void ApplyAttributes();
  19141. void ApplyEffect();
  19142. operator BillboardSet() const;
  19143. const BoundingBox& GetBoundingBox() const;
  19144. const BoundingBox& GetWorldBoundingBox();
  19145. void CleanupConnection(Connection);
  19146. void Commit();
  19147. operator Component() const;
  19148. void DrawDebugGeometry(DebugRenderer, bool);
  19149. bool DrawOcclusion(OcclusionBuffer);
  19150. operator Drawable() const;
  19151. bool GetAnimationEnabled() const;
  19152. float GetAnimationLodBias() const;
  19153. Variant GetAttribute(const String&) const;
  19154. Variant GetAttribute(uint) const;
  19155. ValueAnimation GetAttributeAnimation(const String&) const;
  19156. float GetAttributeAnimationSpeed(const String&) const;
  19157. float GetAttributeAnimationTime(const String&) const;
  19158. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19159. Variant GetAttributeDefault(const String&) const;
  19160. Variant GetAttributeDefault(uint) const;
  19161. AutoRemoveMode GetAutoRemoveMode() const;
  19162. Billboard GetBillboard(uint);
  19163. bool GetBlockEvents() const;
  19164. bool GetCastShadows() const;
  19165. Component GetComponent(StringHash) const;
  19166. float GetDistance() const;
  19167. float GetDrawDistance() const;
  19168. uint8 GetDrawableFlags() const;
  19169. ParticleEffect GetEffect() const;
  19170. ResourceRef GetEffectAttr() const;
  19171. VariantMap& GetEventDataMap() const;
  19172. Object GetEventSender() const;
  19173. FaceCameraMode GetFaceCameraMode() const;
  19174. Light GetFirstLight() const;
  19175. uint GetID() const;
  19176. bool GetInterceptNetworkUpdate(const String&) const;
  19177. uint GetLightMask() const;
  19178. Array<Light> GetLights() const;
  19179. float GetLodBias() const;
  19180. float GetLodDistance() const;
  19181. Geometry GetLodGeometry(uint, uint);
  19182. Material GetMaterial() const;
  19183. ResourceRef GetMaterialAttr() const;
  19184. uint GetMaxLights() const;
  19185. float GetMaxZ() const;
  19186. float GetMinAngle() const;
  19187. float GetMinZ() const;
  19188. Node GetNode() const;
  19189. uint GetNumAttributes() const;
  19190. uint GetNumBillboards() const;
  19191. uint GetNumNetworkAttributes() const;
  19192. uint GetNumOccluderTriangles();
  19193. uint GetNumParticles() const;
  19194. ObjectAnimation GetObjectAnimation() const;
  19195. ResourceRef GetObjectAnimationAttr() const;
  19196. Scene GetScene() const;
  19197. bool GetSerializeParticles() const;
  19198. float GetShadowDistance() const;
  19199. uint GetShadowMask() const;
  19200. float GetSortValue() const;
  19201. Object GetSubsystem(StringHash) const;
  19202. StringHash GetType() const;
  19203. UpdateGeometryType GetUpdateGeometryType();
  19204. Array<Light> GetVertexLights() const;
  19205. uint GetViewMask() const;
  19206. Zone GetZone() const;
  19207. uint GetZoneMask() const;
  19208. bool HasBasePass(uint) const;
  19209. bool HasEventHandlers() const;
  19210. bool HasSubscribedToEvent(Object, StringHash) const;
  19211. bool HasSubscribedToEvent(StringHash) const;
  19212. bool IsEmitting() const;
  19213. bool IsEnabled() const;
  19214. bool IsEnabledEffective() const;
  19215. bool IsFixedScreenSize() const;
  19216. bool IsInView() const;
  19217. bool IsInView(Camera) const;
  19218. bool IsInView(const FrameInfo&, bool = false) const;
  19219. bool IsInstanceOf(StringHash) const;
  19220. bool IsOccludee() const;
  19221. bool IsOccluder() const;
  19222. bool IsRelative() const;
  19223. bool IsReplicated() const;
  19224. bool IsScaled() const;
  19225. bool IsSorted() const;
  19226. bool IsTemporary() const;
  19227. bool IsZoneDirty() const;
  19228. void LimitLights();
  19229. void LimitVertexLights(bool);
  19230. bool Load(Deserializer&);
  19231. bool LoadJSON(const JSONValue&);
  19232. bool LoadXML(const XMLElement&);
  19233. void MarkForUpdate();
  19234. void MarkInView(const FrameInfo&);
  19235. void MarkInView(uint);
  19236. void MarkNetworkUpdate();
  19237. operator Object() const;
  19238. void OnEvent(Object, StringHash, VariantMap&);
  19239. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19240. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19241. void OnSetEnabled();
  19242. void PrepareNetworkUpdate();
  19243. bool ReadDeltaUpdate(Deserializer&);
  19244. bool ReadLatestDataUpdate(Deserializer&);
  19245. operator RefCounted() const;
  19246. int Refs() const;
  19247. void Remove();
  19248. void RemoveAllParticles();
  19249. void RemoveAttributeAnimation(const String&);
  19250. void RemoveInstanceDefault();
  19251. void RemoveObjectAnimation();
  19252. void Reset();
  19253. void ResetEmissionTimer();
  19254. void ResetToDefault();
  19255. bool Save(Serializer&) const;
  19256. bool SaveDefaultAttributes() const;
  19257. bool SaveJSON(JSONValue&) const;
  19258. bool SaveXML(XMLElement&) const;
  19259. void SendEvent(StringHash);
  19260. void SendEvent(StringHash, VariantMap&);
  19261. operator Serializable() const;
  19262. void SetAnimationEnabled(bool);
  19263. void SetAnimationLodBias(float);
  19264. void SetAnimationTime(float);
  19265. bool SetAttribute(const String&, const Variant&);
  19266. bool SetAttribute(uint, const Variant&);
  19267. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19268. void SetAttributeAnimationSpeed(const String&, float);
  19269. void SetAttributeAnimationTime(const String&, float);
  19270. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19271. void SetAutoRemoveMode(AutoRemoveMode);
  19272. void SetBasePass(uint);
  19273. void SetBlockEvents(bool);
  19274. void SetCastShadows(bool);
  19275. void SetDrawDistance(float);
  19276. void SetEffect(ParticleEffect);
  19277. void SetEffectAttr(const ResourceRef&);
  19278. void SetEmitting(bool);
  19279. void SetEnabled(bool);
  19280. void SetFaceCameraMode(FaceCameraMode);
  19281. void SetFixedScreenSize(bool);
  19282. void SetGlobalVar(StringHash, const Variant&);
  19283. void SetInstanceDefault(bool);
  19284. void SetInterceptNetworkUpdate(const String&, bool);
  19285. void SetLightMask(uint);
  19286. void SetLodBias(float);
  19287. void SetMaterial(Material);
  19288. void SetMaterialAttr(const ResourceRef&);
  19289. void SetMaxLights(uint);
  19290. void SetMinAngle(float);
  19291. void SetMinMaxZ(float, float);
  19292. void SetNumBillboards(uint);
  19293. void SetNumParticles(uint);
  19294. void SetObjectAnimation(ObjectAnimation);
  19295. void SetObjectAnimationAttr(const ResourceRef&);
  19296. void SetOccludee(bool);
  19297. void SetOccluder(bool);
  19298. void SetRelative(bool);
  19299. void SetScaled(bool);
  19300. void SetSerializeParticles(bool);
  19301. void SetShadowDistance(float);
  19302. void SetShadowMask(uint);
  19303. void SetSortValue(float);
  19304. void SetSorted(bool);
  19305. void SetTemporary(bool);
  19306. void SetViewMask(uint);
  19307. void SetZone(Zone, bool = false);
  19308. void SetZoneMask(uint);
  19309. const String& GetCategory() const;
  19310. const String& GetTypeName() const;
  19311. void UnsubscribeFromAllEvents();
  19312. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19313. void UnsubscribeFromEvent(Object, StringHash);
  19314. void UnsubscribeFromEvent(StringHash);
  19315. void UnsubscribeFromEvents(Object);
  19316. void Update(const FrameInfo&);
  19317. void UpdateBatches(const FrameInfo&);
  19318. void UpdateGeometry(const FrameInfo&);
  19319. const Variant& GetGlobalVar(StringHash) const;
  19320. const VariantMap& GetGlobalVars() const;
  19321. int WeakRefs() const;
  19322. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  19323. void WriteInitialDeltaUpdate(Serializer&, uint8);
  19324. void WriteLatestDataUpdate(Serializer&, uint8);
  19325. operator const Animatable() const;
  19326. operator const BillboardSet() const;
  19327. operator const Component() const;
  19328. operator const Drawable() const;
  19329. operator const Object() const;
  19330. operator const RefCounted() const;
  19331. operator const Serializable() const;
  19332. // Properties:
  19333. bool animationEnabled;
  19334. float animationLodBias;
  19335. /* readonly */
  19336. Array<Variant> attributeDefaults;
  19337. /* readonly */
  19338. Array<AttributeInfo> attributeInfos;
  19339. Array<Variant> attributes;
  19340. AutoRemoveMode autoRemoveMode;
  19341. /* readonly */
  19342. Array<Billboard> billboards;
  19343. /* readonly */
  19344. BoundingBox boundingBox;
  19345. bool castShadows;
  19346. /* readonly */
  19347. String category;
  19348. float drawDistance;
  19349. ParticleEffect effect;
  19350. bool emitting;
  19351. bool enabled;
  19352. /* readonly */
  19353. bool enabledEffective;
  19354. FaceCameraMode faceCameraMode;
  19355. bool fixedScreenSize;
  19356. Array<Variant> globalVar;
  19357. /* readonly */
  19358. VariantMap globalVars;
  19359. /* readonly */
  19360. uint id;
  19361. /* readonly */
  19362. bool inView;
  19363. uint lightMask;
  19364. float lodBias;
  19365. Material material;
  19366. uint maxLights;
  19367. float minAngle;
  19368. /* readonly */
  19369. Node node;
  19370. /* readonly */
  19371. uint numAttributes;
  19372. uint numBillboards;
  19373. uint numParticles;
  19374. ObjectAnimation objectAnimation;
  19375. bool occludee;
  19376. bool occluder;
  19377. /* readonly */
  19378. int refs;
  19379. bool relative;
  19380. /* readonly */
  19381. bool replicated;
  19382. bool scaled;
  19383. bool serializeParticles;
  19384. float shadowDistance;
  19385. uint shadowMask;
  19386. bool sorted;
  19387. bool temporary;
  19388. /* readonly */
  19389. StringHash type;
  19390. /* readonly */
  19391. String typeName;
  19392. uint viewMask;
  19393. /* readonly */
  19394. int weakRefs;
  19395. /* readonly */
  19396. BoundingBox worldBoundingBox;
  19397. /* readonly */
  19398. Zone zone;
  19399. uint zoneMask;
  19400. };
  19401. class ParticleEmitter2D
  19402. {
  19403. public:
  19404. ParticleEmitter2D();
  19405. // Methods:
  19406. void AddLight(Light);
  19407. void AddVertexLight(Light);
  19408. void AllocateNetworkState();
  19409. operator Animatable() const;
  19410. void ApplyAttributes();
  19411. const BoundingBox& GetBoundingBox() const;
  19412. const BoundingBox& GetWorldBoundingBox();
  19413. void CleanupConnection(Connection);
  19414. operator Component() const;
  19415. void DrawDebugGeometry(DebugRenderer, bool);
  19416. bool DrawOcclusion(OcclusionBuffer);
  19417. operator Drawable2D() const;
  19418. operator Drawable() const;
  19419. bool GetAnimationEnabled() const;
  19420. Variant GetAttribute(const String&) const;
  19421. Variant GetAttribute(uint) const;
  19422. ValueAnimation GetAttributeAnimation(const String&) const;
  19423. float GetAttributeAnimationSpeed(const String&) const;
  19424. float GetAttributeAnimationTime(const String&) const;
  19425. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19426. Variant GetAttributeDefault(const String&) const;
  19427. Variant GetAttributeDefault(uint) const;
  19428. BlendMode GetBlendMode() const;
  19429. bool GetBlockEvents() const;
  19430. bool GetCastShadows() const;
  19431. Component GetComponent(StringHash) const;
  19432. float GetDistance() const;
  19433. float GetDrawDistance() const;
  19434. uint8 GetDrawableFlags() const;
  19435. ParticleEffect2D GetEffect() const;
  19436. VariantMap& GetEventDataMap() const;
  19437. Object GetEventSender() const;
  19438. Light GetFirstLight() const;
  19439. uint GetID() const;
  19440. bool GetInterceptNetworkUpdate(const String&) const;
  19441. int GetLayer() const;
  19442. uint GetLightMask() const;
  19443. Array<Light> GetLights() const;
  19444. float GetLodBias() const;
  19445. float GetLodDistance() const;
  19446. Geometry GetLodGeometry(uint, uint);
  19447. uint GetMaxLights() const;
  19448. uint GetMaxParticles() const;
  19449. float GetMaxZ() const;
  19450. float GetMinZ() const;
  19451. Node GetNode() const;
  19452. uint GetNumAttributes() const;
  19453. uint GetNumNetworkAttributes() const;
  19454. uint GetNumOccluderTriangles();
  19455. ObjectAnimation GetObjectAnimation() const;
  19456. ResourceRef GetObjectAnimationAttr() const;
  19457. int GetOrderInLayer() const;
  19458. ResourceRef GetParticleEffectAttr() const;
  19459. Scene GetScene() const;
  19460. float GetShadowDistance() const;
  19461. uint GetShadowMask() const;
  19462. float GetSortValue() const;
  19463. Sprite2D GetSprite() const;
  19464. ResourceRef GetSpriteAttr() const;
  19465. Object GetSubsystem(StringHash) const;
  19466. StringHash GetType() const;
  19467. UpdateGeometryType GetUpdateGeometryType();
  19468. Array<Light> GetVertexLights() const;
  19469. uint GetViewMask() const;
  19470. Zone GetZone() const;
  19471. uint GetZoneMask() const;
  19472. bool HasBasePass(uint) const;
  19473. bool HasEventHandlers() const;
  19474. bool HasSubscribedToEvent(Object, StringHash) const;
  19475. bool HasSubscribedToEvent(StringHash) const;
  19476. bool IsEmitting() const;
  19477. bool IsEnabled() const;
  19478. bool IsEnabledEffective() const;
  19479. bool IsInView() const;
  19480. bool IsInView(Camera) const;
  19481. bool IsInView(const FrameInfo&, bool = false) const;
  19482. bool IsInstanceOf(StringHash) const;
  19483. bool IsOccludee() const;
  19484. bool IsOccluder() const;
  19485. bool IsReplicated() const;
  19486. bool IsTemporary() const;
  19487. bool IsZoneDirty() const;
  19488. void LimitLights();
  19489. void LimitVertexLights(bool);
  19490. bool Load(Deserializer&);
  19491. bool LoadJSON(const JSONValue&);
  19492. bool LoadXML(const XMLElement&);
  19493. void MarkForUpdate();
  19494. void MarkInView(const FrameInfo&);
  19495. void MarkInView(uint);
  19496. void MarkNetworkUpdate();
  19497. operator Object() const;
  19498. void OnEvent(Object, StringHash, VariantMap&);
  19499. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19500. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19501. void OnSetEnabled();
  19502. void PrepareNetworkUpdate();
  19503. bool ReadDeltaUpdate(Deserializer&);
  19504. bool ReadLatestDataUpdate(Deserializer&);
  19505. operator RefCounted() const;
  19506. int Refs() const;
  19507. void Remove();
  19508. void RemoveAttributeAnimation(const String&);
  19509. void RemoveInstanceDefault();
  19510. void RemoveObjectAnimation();
  19511. void ResetToDefault();
  19512. bool Save(Serializer&) const;
  19513. bool SaveDefaultAttributes() const;
  19514. bool SaveJSON(JSONValue&) const;
  19515. bool SaveXML(XMLElement&) const;
  19516. void SendEvent(StringHash);
  19517. void SendEvent(StringHash, VariantMap&);
  19518. operator Serializable() const;
  19519. void SetAnimationEnabled(bool);
  19520. void SetAnimationTime(float);
  19521. bool SetAttribute(const String&, const Variant&);
  19522. bool SetAttribute(uint, const Variant&);
  19523. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19524. void SetAttributeAnimationSpeed(const String&, float);
  19525. void SetAttributeAnimationTime(const String&, float);
  19526. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19527. void SetBasePass(uint);
  19528. void SetBlendMode(BlendMode);
  19529. void SetBlockEvents(bool);
  19530. void SetCastShadows(bool);
  19531. void SetDrawDistance(float);
  19532. void SetEffect(ParticleEffect2D);
  19533. void SetEmitting(bool);
  19534. void SetEnabled(bool);
  19535. void SetGlobalVar(StringHash, const Variant&);
  19536. void SetInstanceDefault(bool);
  19537. void SetInterceptNetworkUpdate(const String&, bool);
  19538. void SetLayer(int);
  19539. void SetLightMask(uint);
  19540. void SetLodBias(float);
  19541. void SetMaxLights(uint);
  19542. void SetMaxParticles(uint);
  19543. void SetMinMaxZ(float, float);
  19544. void SetObjectAnimation(ObjectAnimation);
  19545. void SetObjectAnimationAttr(const ResourceRef&);
  19546. void SetOccludee(bool);
  19547. void SetOccluder(bool);
  19548. void SetOrderInLayer(int);
  19549. void SetParticleEffectAttr(const ResourceRef&);
  19550. void SetShadowDistance(float);
  19551. void SetShadowMask(uint);
  19552. void SetSortValue(float);
  19553. void SetSprite(Sprite2D);
  19554. void SetSpriteAttr(const ResourceRef&);
  19555. void SetTemporary(bool);
  19556. void SetViewMask(uint);
  19557. void SetZone(Zone, bool = false);
  19558. void SetZoneMask(uint);
  19559. const String& GetCategory() const;
  19560. const String& GetTypeName() const;
  19561. void UnsubscribeFromAllEvents();
  19562. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19563. void UnsubscribeFromEvent(Object, StringHash);
  19564. void UnsubscribeFromEvent(StringHash);
  19565. void UnsubscribeFromEvents(Object);
  19566. void UpdateBatches(const FrameInfo&);
  19567. void UpdateGeometry(const FrameInfo&);
  19568. const Variant& GetGlobalVar(StringHash) const;
  19569. const VariantMap& GetGlobalVars() const;
  19570. int WeakRefs() const;
  19571. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  19572. void WriteInitialDeltaUpdate(Serializer&, uint8);
  19573. void WriteLatestDataUpdate(Serializer&, uint8);
  19574. operator const Animatable() const;
  19575. operator const Component() const;
  19576. operator const Drawable2D() const;
  19577. operator const Drawable() const;
  19578. operator const Object() const;
  19579. operator const RefCounted() const;
  19580. operator const Serializable() const;
  19581. // Properties:
  19582. bool animationEnabled;
  19583. /* readonly */
  19584. Array<Variant> attributeDefaults;
  19585. /* readonly */
  19586. Array<AttributeInfo> attributeInfos;
  19587. Array<Variant> attributes;
  19588. BlendMode blendMode;
  19589. /* readonly */
  19590. BoundingBox boundingBox;
  19591. bool castShadows;
  19592. /* readonly */
  19593. String category;
  19594. float drawDistance;
  19595. ParticleEffect2D effect;
  19596. bool emitting;
  19597. bool enabled;
  19598. /* readonly */
  19599. bool enabledEffective;
  19600. Array<Variant> globalVar;
  19601. /* readonly */
  19602. VariantMap globalVars;
  19603. /* readonly */
  19604. uint id;
  19605. /* readonly */
  19606. bool inView;
  19607. int layer;
  19608. uint lightMask;
  19609. float lodBias;
  19610. uint maxLights;
  19611. /* readonly */
  19612. Node node;
  19613. /* readonly */
  19614. uint numAttributes;
  19615. ObjectAnimation objectAnimation;
  19616. bool occludee;
  19617. bool occluder;
  19618. int orderInLayer;
  19619. /* readonly */
  19620. int refs;
  19621. /* readonly */
  19622. bool replicated;
  19623. float shadowDistance;
  19624. uint shadowMask;
  19625. Sprite2D sprite;
  19626. bool temporary;
  19627. /* readonly */
  19628. StringHash type;
  19629. /* readonly */
  19630. String typeName;
  19631. uint viewMask;
  19632. /* readonly */
  19633. int weakRefs;
  19634. /* readonly */
  19635. BoundingBox worldBoundingBox;
  19636. /* readonly */
  19637. Zone zone;
  19638. uint zoneMask;
  19639. };
  19640. class Pass
  19641. {
  19642. public:
  19643. Pass(const String&in);
  19644. // Methods:
  19645. bool GetAlphaToCoverage() const;
  19646. BlendMode GetBlendMode() const;
  19647. CullMode GetCullMode() const;
  19648. CompareMode GetDepthTestMode() const;
  19649. bool GetDepthWrite() const;
  19650. String GetEffectivePixelShaderDefines() const;
  19651. String GetEffectiveVertexShaderDefines() const;
  19652. uint GetIndex() const;
  19653. PassLightingMode GetLightingMode() const;
  19654. Array<ShaderVariation> GetPixelShaders();
  19655. Array<ShaderVariation> GetPixelShaders(const StringHash&);
  19656. uint GetShadersLoadedFrameNumber() const;
  19657. Array<ShaderVariation> GetVertexShaders();
  19658. Array<ShaderVariation> GetVertexShaders(const StringHash&);
  19659. bool IsDesktop() const;
  19660. void MarkShadersLoaded(uint);
  19661. operator RefCounted() const;
  19662. int Refs() const;
  19663. void ReleaseShaders();
  19664. void SetAlphaToCoverage(bool);
  19665. void SetBlendMode(BlendMode);
  19666. void SetCullMode(CullMode);
  19667. void SetDepthTestMode(CompareMode);
  19668. void SetDepthWrite(bool);
  19669. void SetIsDesktop(bool);
  19670. void SetLightingMode(PassLightingMode);
  19671. void SetPixelShader(const String&);
  19672. void SetPixelShaderDefineExcludes(const String&);
  19673. void SetPixelShaderDefines(const String&);
  19674. void SetVertexShader(const String&);
  19675. void SetVertexShaderDefineExcludes(const String&);
  19676. void SetVertexShaderDefines(const String&);
  19677. const String& GetName() const;
  19678. const String& GetPixelShader() const;
  19679. const String& GetPixelShaderDefineExcludes() const;
  19680. const String& GetPixelShaderDefines() const;
  19681. const String& GetVertexShader() const;
  19682. const String& GetVertexShaderDefineExcludes() const;
  19683. const String& GetVertexShaderDefines() const;
  19684. int WeakRefs() const;
  19685. operator const RefCounted() const;
  19686. // Properties:
  19687. bool alphaToCoverage;
  19688. BlendMode blendMode;
  19689. CullMode cullMode;
  19690. CompareMode depthTestMode;
  19691. bool depthWrite;
  19692. bool desktop;
  19693. PassLightingMode lightingMode;
  19694. String pixelShader;
  19695. String pixelShaderDefineExcludes;
  19696. String pixelShaderDefines;
  19697. /* readonly */
  19698. int refs;
  19699. String vertexShader;
  19700. String vertexShaderDefineExcludes;
  19701. String vertexShaderDefines;
  19702. /* readonly */
  19703. int weakRefs;
  19704. };
  19705. class PerThreadSceneResult
  19706. {
  19707. public:
  19708. ~PerThreadSceneResult();
  19709. PerThreadSceneResult();
  19710. // Methods:
  19711. PerThreadSceneResult& operator=(const PerThreadSceneResult&);
  19712. // Properties:
  19713. float maxZ;
  19714. float minZ;
  19715. };
  19716. class PhysicsRaycastResult
  19717. {
  19718. public:
  19719. ~PhysicsRaycastResult();
  19720. PhysicsRaycastResult();
  19721. // Methods:
  19722. PhysicsRaycastResult& operator=(const PhysicsRaycastResult&);
  19723. // Properties:
  19724. /* readonly */
  19725. RigidBody body;
  19726. float distance;
  19727. float hitFraction;
  19728. Vector3 normal;
  19729. Vector3 position;
  19730. };
  19731. class PhysicsRaycastResult2D
  19732. {
  19733. public:
  19734. ~PhysicsRaycastResult2D();
  19735. PhysicsRaycastResult2D();
  19736. // Methods:
  19737. PhysicsRaycastResult2D& operator=(const PhysicsRaycastResult2D&);
  19738. // Properties:
  19739. /* readonly */
  19740. RigidBody2D body;
  19741. float distance;
  19742. Vector2 normal;
  19743. Vector2 position;
  19744. };
  19745. class PhysicsWorld
  19746. {
  19747. public:
  19748. PhysicsWorld();
  19749. // Methods:
  19750. void AddCollisionShape(CollisionShape);
  19751. void AddConstraint(Constraint);
  19752. void AddDelayedWorldTransform(const DelayedWorldTransform&);
  19753. void AddRigidBody(RigidBody);
  19754. void AllocateNetworkState();
  19755. operator Animatable() const;
  19756. void ApplyAttributes();
  19757. void CleanupConnection(Connection);
  19758. void CleanupGeometryCache();
  19759. operator Component() const;
  19760. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  19761. void ConvexCast(PhysicsRaycastResult&, CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = M_MAX_UNSIGNED);
  19762. void DrawDebugGeometry(DebugRenderer, bool);
  19763. void DrawDebugGeometry(bool);
  19764. bool GetAnimationEnabled() const;
  19765. Variant GetAttribute(const String&) const;
  19766. Variant GetAttribute(uint) const;
  19767. ValueAnimation GetAttributeAnimation(const String&) const;
  19768. float GetAttributeAnimationSpeed(const String&) const;
  19769. float GetAttributeAnimationTime(const String&) const;
  19770. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19771. Variant GetAttributeDefault(const String&) const;
  19772. Variant GetAttributeDefault(uint) const;
  19773. bool GetBlockEvents() const;
  19774. Array<RigidBody> GetCollidingBodies(RigidBody);
  19775. Component GetComponent(StringHash) const;
  19776. VariantMap& GetEventDataMap() const;
  19777. Object GetEventSender() const;
  19778. int GetFps() const;
  19779. Vector3 GetGravity() const;
  19780. uint GetID() const;
  19781. bool GetInterceptNetworkUpdate(const String&) const;
  19782. bool GetInternalEdge() const;
  19783. bool GetInterpolation() const;
  19784. float GetMaxNetworkAngularVelocity() const;
  19785. int GetMaxSubSteps() const;
  19786. Node GetNode() const;
  19787. uint GetNumAttributes() const;
  19788. int GetNumIterations() const;
  19789. uint GetNumNetworkAttributes() const;
  19790. ObjectAnimation GetObjectAnimation() const;
  19791. ResourceRef GetObjectAnimationAttr() const;
  19792. Array<RigidBody> GetRigidBodies(RigidBody);
  19793. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint collisionMask = 0xffff);
  19794. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  19795. Scene GetScene() const;
  19796. bool GetSplitImpulse() const;
  19797. Object GetSubsystem(StringHash) const;
  19798. StringHash GetType() const;
  19799. bool HasEventHandlers() const;
  19800. bool HasSubscribedToEvent(Object, StringHash) const;
  19801. bool HasSubscribedToEvent(StringHash) const;
  19802. bool IsApplyingTransforms() const;
  19803. bool IsEnabled() const;
  19804. bool IsEnabledEffective() const;
  19805. bool IsInstanceOf(StringHash) const;
  19806. bool IsReplicated() const;
  19807. bool IsSimulating() const;
  19808. bool IsTemporary() const;
  19809. bool IsUpdateEnabled() const;
  19810. bool Load(Deserializer&);
  19811. bool LoadJSON(const JSONValue&);
  19812. bool LoadXML(const XMLElement&);
  19813. void MarkNetworkUpdate();
  19814. operator Object() const;
  19815. void OnEvent(Object, StringHash, VariantMap&);
  19816. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19817. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19818. void OnSetEnabled();
  19819. void PrepareNetworkUpdate();
  19820. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  19821. void RaycastSingle(PhysicsRaycastResult&, const Ray&, float, uint = M_MAX_UNSIGNED);
  19822. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  19823. void RaycastSingleSegmented(PhysicsRaycastResult&, const Ray&, float, float, uint = M_MAX_UNSIGNED, float = 0.1f);
  19824. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint collisionMask = 0xffff, float overlapDistance = 0.1f);
  19825. bool ReadDeltaUpdate(Deserializer&);
  19826. bool ReadLatestDataUpdate(Deserializer&);
  19827. operator RefCounted() const;
  19828. int Refs() const;
  19829. void Remove();
  19830. void RemoveAttributeAnimation(const String&);
  19831. void RemoveCachedGeometry(Model);
  19832. void RemoveCollisionShape(CollisionShape);
  19833. void RemoveConstraint(Constraint);
  19834. void RemoveInstanceDefault();
  19835. void RemoveObjectAnimation();
  19836. void RemoveRigidBody(RigidBody);
  19837. void ResetToDefault();
  19838. bool Save(Serializer&) const;
  19839. bool SaveDefaultAttributes() const;
  19840. bool SaveJSON(JSONValue&) const;
  19841. bool SaveXML(XMLElement&) const;
  19842. void SendEvent(StringHash);
  19843. void SendEvent(StringHash, VariantMap&);
  19844. operator Serializable() const;
  19845. void SetAnimationEnabled(bool);
  19846. void SetAnimationTime(float);
  19847. void SetApplyingTransforms(bool);
  19848. bool SetAttribute(const String&, const Variant&);
  19849. bool SetAttribute(uint, const Variant&);
  19850. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19851. void SetAttributeAnimationSpeed(const String&, float);
  19852. void SetAttributeAnimationTime(const String&, float);
  19853. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19854. void SetBlockEvents(bool);
  19855. void SetDebugDepthTest(bool);
  19856. void SetDebugRenderer(DebugRenderer);
  19857. void SetEnabled(bool);
  19858. void SetFps(int);
  19859. void SetGlobalVar(StringHash, const Variant&);
  19860. void SetGravity(const Vector3&);
  19861. void SetInstanceDefault(bool);
  19862. void SetInterceptNetworkUpdate(const String&, bool);
  19863. void SetInternalEdge(bool);
  19864. void SetInterpolation(bool);
  19865. void SetMaxNetworkAngularVelocity(float);
  19866. void SetMaxSubSteps(int);
  19867. void SetNumIterations(int);
  19868. void SetObjectAnimation(ObjectAnimation);
  19869. void SetObjectAnimationAttr(const ResourceRef&);
  19870. void SetSplitImpulse(bool);
  19871. void SetTemporary(bool);
  19872. void SetUpdateEnabled(bool);
  19873. void SphereCast(PhysicsRaycastResult&, const Ray&, float, float, uint = M_MAX_UNSIGNED);
  19874. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint collisionMask = 0xffff);
  19875. const String& GetCategory() const;
  19876. const String& GetTypeName() const;
  19877. void UnsubscribeFromAllEvents();
  19878. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19879. void UnsubscribeFromEvent(Object, StringHash);
  19880. void UnsubscribeFromEvent(StringHash);
  19881. void UnsubscribeFromEvents(Object);
  19882. void Update(float);
  19883. void UpdateCollisions();
  19884. const Variant& GetGlobalVar(StringHash) const;
  19885. const VariantMap& GetGlobalVars() const;
  19886. int WeakRefs() const;
  19887. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  19888. void WriteInitialDeltaUpdate(Serializer&, uint8);
  19889. void WriteLatestDataUpdate(Serializer&, uint8);
  19890. operator const Animatable() const;
  19891. operator const Component() const;
  19892. operator const Object() const;
  19893. operator const RefCounted() const;
  19894. operator const Serializable() const;
  19895. int getDebugMode() const;
  19896. void setDebugMode(int);
  19897. // Properties:
  19898. bool animationEnabled;
  19899. /* readonly */
  19900. Array<Variant> attributeDefaults;
  19901. /* readonly */
  19902. Array<AttributeInfo> attributeInfos;
  19903. Array<Variant> attributes;
  19904. /* readonly */
  19905. String category;
  19906. bool enabled;
  19907. /* readonly */
  19908. bool enabledEffective;
  19909. int fps;
  19910. Array<Variant> globalVar;
  19911. /* readonly */
  19912. VariantMap globalVars;
  19913. Vector3 gravity;
  19914. /* readonly */
  19915. uint id;
  19916. bool internalEdge;
  19917. bool interpolation;
  19918. int maxSubSteps;
  19919. /* readonly */
  19920. Node node;
  19921. /* readonly */
  19922. uint numAttributes;
  19923. int numIterations;
  19924. ObjectAnimation objectAnimation;
  19925. /* readonly */
  19926. int refs;
  19927. /* readonly */
  19928. bool replicated;
  19929. bool splitImpulse;
  19930. bool temporary;
  19931. /* readonly */
  19932. StringHash type;
  19933. /* readonly */
  19934. String typeName;
  19935. bool updateEnabled;
  19936. /* readonly */
  19937. int weakRefs;
  19938. };
  19939. class PhysicsWorld2D
  19940. {
  19941. public:
  19942. PhysicsWorld2D();
  19943. // Methods:
  19944. void AddDelayedWorldTransform(const DelayedWorldTransform2D&);
  19945. void AddRigidBody(RigidBody2D);
  19946. void AllocateNetworkState();
  19947. operator Animatable() const;
  19948. void ApplyAttributes();
  19949. void CleanupConnection(Connection);
  19950. operator Component() const;
  19951. void DrawDebugGeometry();
  19952. void DrawDebugGeometry(DebugRenderer, bool);
  19953. bool GetAllowSleeping() const;
  19954. bool GetAnimationEnabled() const;
  19955. Variant GetAttribute(const String&) const;
  19956. Variant GetAttribute(uint) const;
  19957. ValueAnimation GetAttributeAnimation(const String&) const;
  19958. float GetAttributeAnimationSpeed(const String&) const;
  19959. float GetAttributeAnimationTime(const String&) const;
  19960. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19961. Variant GetAttributeDefault(const String&) const;
  19962. Variant GetAttributeDefault(uint) const;
  19963. bool GetAutoClearForces() const;
  19964. bool GetBlockEvents() const;
  19965. Component GetComponent(StringHash) const;
  19966. bool GetContinuousPhysics() const;
  19967. bool GetDrawAabb() const;
  19968. bool GetDrawCenterOfMass() const;
  19969. bool GetDrawJoint() const;
  19970. bool GetDrawPair() const;
  19971. bool GetDrawShape() const;
  19972. VariantMap& GetEventDataMap() const;
  19973. Object GetEventSender() const;
  19974. uint GetID() const;
  19975. bool GetInterceptNetworkUpdate(const String&) const;
  19976. Node GetNode() const;
  19977. uint GetNumAttributes() const;
  19978. uint GetNumNetworkAttributes() const;
  19979. ObjectAnimation GetObjectAnimation() const;
  19980. ResourceRef GetObjectAnimationAttr() const;
  19981. int GetPositionIterations() const;
  19982. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  19983. RigidBody2D GetRigidBody(const Vector2&, uint = M_MAX_UNSIGNED);
  19984. RigidBody2D GetRigidBody(int, int, uint = M_MAX_UNSIGNED);
  19985. Scene GetScene() const;
  19986. bool GetSubStepping() const;
  19987. Object GetSubsystem(StringHash) const;
  19988. StringHash GetType() const;
  19989. int GetVelocityIterations() const;
  19990. bool GetWarmStarting() const;
  19991. bool HasEventHandlers() const;
  19992. bool HasSubscribedToEvent(Object, StringHash) const;
  19993. bool HasSubscribedToEvent(StringHash) const;
  19994. bool IsApplyingTransforms() const;
  19995. bool IsEnabled() const;
  19996. bool IsEnabledEffective() const;
  19997. bool IsInstanceOf(StringHash) const;
  19998. bool IsReplicated() const;
  19999. bool IsTemporary() const;
  20000. bool IsUpdateEnabled() const;
  20001. bool Load(Deserializer&);
  20002. bool LoadJSON(const JSONValue&);
  20003. bool LoadXML(const XMLElement&);
  20004. void MarkNetworkUpdate();
  20005. operator Object() const;
  20006. void OnEvent(Object, StringHash, VariantMap&);
  20007. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  20008. void OnSetAttribute(const AttributeInfo&, const Variant&);
  20009. void OnSetEnabled();
  20010. void PrepareNetworkUpdate();
  20011. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  20012. void RaycastSingle(PhysicsRaycastResult2D&, const Vector2&, const Vector2&, uint = M_MAX_UNSIGNED);
  20013. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  20014. bool ReadDeltaUpdate(Deserializer&);
  20015. bool ReadLatestDataUpdate(Deserializer&);
  20016. operator RefCounted() const;
  20017. int Refs() const;
  20018. void Remove();
  20019. void RemoveAttributeAnimation(const String&);
  20020. void RemoveInstanceDefault();
  20021. void RemoveObjectAnimation();
  20022. void RemoveRigidBody(RigidBody2D);
  20023. void ResetToDefault();
  20024. bool Save(Serializer&) const;
  20025. bool SaveDefaultAttributes() const;
  20026. bool SaveJSON(JSONValue&) const;
  20027. bool SaveXML(XMLElement&) const;
  20028. void SendEvent(StringHash);
  20029. void SendEvent(StringHash, VariantMap&);
  20030. operator Serializable() const;
  20031. void SetAllowSleeping(bool);
  20032. void SetAnimationEnabled(bool);
  20033. void SetAnimationTime(float);
  20034. void SetApplyingTransforms(bool);
  20035. bool SetAttribute(const String&, const Variant&);
  20036. bool SetAttribute(uint, const Variant&);
  20037. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  20038. void SetAttributeAnimationSpeed(const String&, float);
  20039. void SetAttributeAnimationTime(const String&, float);
  20040. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  20041. void SetAutoClearForces(bool);
  20042. void SetBlockEvents(bool);
  20043. void SetContinuousPhysics(bool);
  20044. void SetDrawAabb(bool);
  20045. void SetDrawCenterOfMass(bool);
  20046. void SetDrawJoint(bool);
  20047. void SetDrawPair(bool);
  20048. void SetDrawShape(bool);
  20049. void SetEnabled(bool);
  20050. void SetGlobalVar(StringHash, const Variant&);
  20051. void SetGravity(const Vector2&);
  20052. void SetInstanceDefault(bool);
  20053. void SetInterceptNetworkUpdate(const String&, bool);
  20054. void SetObjectAnimation(ObjectAnimation);
  20055. void SetObjectAnimationAttr(const ResourceRef&);
  20056. void SetPositionIterations(int);
  20057. void SetSubStepping(bool);
  20058. void SetTemporary(bool);
  20059. void SetUpdateEnabled(bool);
  20060. void SetVelocityIterations(int);
  20061. void SetWarmStarting(bool);
  20062. const String& GetCategory() const;
  20063. const String& GetTypeName() const;
  20064. void UnsubscribeFromAllEvents();
  20065. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20066. void UnsubscribeFromEvent(Object, StringHash);
  20067. void UnsubscribeFromEvent(StringHash);
  20068. void UnsubscribeFromEvents(Object);
  20069. void Update(float);
  20070. const Variant& GetGlobalVar(StringHash) const;
  20071. const VariantMap& GetGlobalVars() const;
  20072. const Vector2& GetGravity() const;
  20073. int WeakRefs() const;
  20074. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  20075. void WriteInitialDeltaUpdate(Serializer&, uint8);
  20076. void WriteLatestDataUpdate(Serializer&, uint8);
  20077. operator const Animatable() const;
  20078. operator const Component() const;
  20079. operator const Object() const;
  20080. operator const RefCounted() const;
  20081. operator const Serializable() const;
  20082. // Properties:
  20083. bool allowSleeping;
  20084. bool animationEnabled;
  20085. /* readonly */
  20086. Array<Variant> attributeDefaults;
  20087. /* readonly */
  20088. Array<AttributeInfo> attributeInfos;
  20089. Array<Variant> attributes;
  20090. bool autoClearForces;
  20091. /* readonly */
  20092. String category;
  20093. bool continuousPhysics;
  20094. bool drawAabb;
  20095. bool drawCenterOfMass;
  20096. bool drawJoint;
  20097. bool drawPair;
  20098. bool drawShape;
  20099. bool enabled;
  20100. /* readonly */
  20101. bool enabledEffective;
  20102. Array<Variant> globalVar;
  20103. /* readonly */
  20104. VariantMap globalVars;
  20105. Vector2 gravity;
  20106. /* readonly */
  20107. uint id;
  20108. /* readonly */
  20109. Node node;
  20110. /* readonly */
  20111. uint numAttributes;
  20112. ObjectAnimation objectAnimation;
  20113. int positionIterations;
  20114. /* readonly */
  20115. int refs;
  20116. /* readonly */
  20117. bool replicated;
  20118. bool subStepping;
  20119. bool temporary;
  20120. /* readonly */
  20121. StringHash type;
  20122. /* readonly */
  20123. String typeName;
  20124. bool updateEnabled;
  20125. int velocityIterations;
  20126. bool warmStarting;
  20127. /* readonly */
  20128. int weakRefs;
  20129. };
  20130. class PhysicsWorldConfig
  20131. {
  20132. public:
  20133. ~PhysicsWorldConfig();
  20134. PhysicsWorldConfig();
  20135. // Methods:
  20136. PhysicsWorldConfig& operator=(const PhysicsWorldConfig&);
  20137. };
  20138. class Plane
  20139. {
  20140. public:
  20141. Plane();
  20142. Plane(const Plane&in);
  20143. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  20144. Plane(const Vector3&in, const Vector3&in);
  20145. Plane(const Vector4&in);
  20146. // Methods:
  20147. Plane& operator=(const Plane&);
  20148. void Define(const Vector3&, const Vector3&);
  20149. void Define(const Vector3&, const Vector3&, const Vector3&);
  20150. void Define(const Vector4&);
  20151. float Distance(const Vector3&) const;
  20152. Vector3 Project(const Vector3&) const;
  20153. Vector3 Reflect(const Vector3&) const;
  20154. Matrix3x4 ReflectionMatrix() const;
  20155. Vector4 ToVector4() const;
  20156. void Transform(const Matrix3&);
  20157. void Transform(const Matrix3x4&);
  20158. void Transform(const Matrix4&);
  20159. Plane Transformed(const Matrix3&) const;
  20160. Plane Transformed(const Matrix3x4&) const;
  20161. Plane Transformed(const Matrix4&) const;
  20162. // Properties:
  20163. Vector3 absNormal;
  20164. float d;
  20165. Vector3 normal;
  20166. /* readonly */
  20167. Matrix3x4 reflectionMatrix;
  20168. // Constants:
  20169. static const Plane UP;
  20170. };
  20171. class Polyhedron
  20172. {
  20173. public:
  20174. ~Polyhedron();
  20175. Polyhedron();
  20176. Polyhedron(const Polyhedron&in);
  20177. Polyhedron(const BoundingBox&in);
  20178. Polyhedron(const Frustum&in);
  20179. // Methods:
  20180. Polyhedron& operator=(const Polyhedron&);
  20181. void AddFace(Array<Vector3>);
  20182. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  20183. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  20184. void Clear();
  20185. void Clip(const BoundingBox&);
  20186. void Clip(const Frustum&);
  20187. void Clip(const Plane&);
  20188. void Define(const BoundingBox&);
  20189. void Define(const Frustum&);
  20190. bool Empty() const;
  20191. void Transform(const Matrix3&);
  20192. void Transform(const Matrix3x4&);
  20193. Polyhedron Transformed(const Matrix3&) const;
  20194. Polyhedron Transformed(const Matrix3x4&) const;
  20195. // Properties:
  20196. /* readonly */
  20197. Array<Array<Vector3>> face;
  20198. /* readonly */
  20199. uint numFaces;
  20200. };
  20201. class Profiler
  20202. {
  20203. public:
  20204. Profiler();
  20205. // Methods:
  20206. void BeginFrame();
  20207. void BeginInterval();
  20208. void EndBlock();
  20209. void EndFrame();
  20210. operator EventProfiler() const;
  20211. bool GetBlockEvents() const;
  20212. VariantMap& GetEventDataMap() const;
  20213. Object GetEventSender() const;
  20214. Object GetSubsystem(StringHash) const;
  20215. StringHash GetType() const;
  20216. bool HasEventHandlers() const;
  20217. bool HasSubscribedToEvent(Object, StringHash) const;
  20218. bool HasSubscribedToEvent(StringHash) const;
  20219. bool IsInstanceOf(StringHash) const;
  20220. operator Object() const;
  20221. void OnEvent(Object, StringHash, VariantMap&);
  20222. operator RefCounted() const;
  20223. int Refs() const;
  20224. void SendEvent(StringHash);
  20225. void SendEvent(StringHash, VariantMap&);
  20226. void SetBlockEvents(bool);
  20227. void SetGlobalVar(StringHash, const Variant&);
  20228. const String& GetCategory() const;
  20229. const String& GetTypeName() const;
  20230. const String& PrintData(bool = false, bool = false, uint = M_MAX_UNSIGNED) const;
  20231. void UnsubscribeFromAllEvents();
  20232. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20233. void UnsubscribeFromEvent(Object, StringHash);
  20234. void UnsubscribeFromEvent(StringHash);
  20235. void UnsubscribeFromEvents(Object);
  20236. const Variant& GetGlobalVar(StringHash) const;
  20237. const VariantMap& GetGlobalVars() const;
  20238. int WeakRefs() const;
  20239. operator const EventProfiler() const;
  20240. operator const Object() const;
  20241. operator const RefCounted() const;
  20242. // Properties:
  20243. /* readonly */
  20244. String category;
  20245. Array<Variant> globalVar;
  20246. /* readonly */
  20247. VariantMap globalVars;
  20248. /* readonly */
  20249. int refs;
  20250. /* readonly */
  20251. StringHash type;
  20252. /* readonly */
  20253. String typeName;
  20254. /* readonly */
  20255. int weakRefs;
  20256. };
  20257. class ProgressBar
  20258. {
  20259. public:
  20260. ProgressBar();
  20261. // Methods:
  20262. void AddChild(UIElement);
  20263. void AddTag(const String&);
  20264. void AddTags(Array<String>);
  20265. void AddTags(const String&, int8 = ';');
  20266. void AdjustScissor(IntRect&);
  20267. void AllocateNetworkState();
  20268. operator Animatable() const;
  20269. void ApplyAttributes();
  20270. operator BorderImage() const;
  20271. void BringToFront();
  20272. void ChangeValue(float);
  20273. const Color& GetColor(Corner) const;
  20274. const Color& GetColorAttr() const;
  20275. const Color& GetDerivedColor() const;
  20276. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  20277. void DisableLayoutUpdate();
  20278. IntVector2 ElementToScreen(const IntVector2&);
  20279. void EnableLayoutUpdate();
  20280. bool FilterAttributes(XMLElement&) const;
  20281. uint FindChild(UIElement) const;
  20282. bool GetAnimationEnabled() const;
  20283. Variant GetAttribute(const String&) const;
  20284. Variant GetAttribute(uint) const;
  20285. ValueAnimation GetAttributeAnimation(const String&) const;
  20286. float GetAttributeAnimationSpeed(const String&) const;
  20287. float GetAttributeAnimationTime(const String&) const;
  20288. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  20289. Variant GetAttributeDefault(const String&) const;
  20290. Variant GetAttributeDefault(uint) const;
  20291. BlendMode GetBlendMode() const;
  20292. bool GetBlockEvents() const;
  20293. bool GetBringToBack() const;
  20294. bool GetBringToFront() const;
  20295. UIElement GetChild(const String&, bool = false) const;
  20296. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  20297. UIElement GetChild(uint) const;
  20298. Array<UIElement> GetChildren() const;
  20299. Array<UIElement> GetChildren(bool) const;
  20300. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  20301. bool GetClipChildren() const;
  20302. IntRect GetCombinedScreenRect();
  20303. XMLFile GetDefaultStyle(bool = true) const;
  20304. float GetDerivedOpacity() const;
  20305. uint GetDragButtonCombo() const;
  20306. uint GetDragButtonCount() const;
  20307. uint GetDragDropMode() const;
  20308. IntVector2 GetEffectiveMinSize() const;
  20309. UIElement GetElementEventSender() const;
  20310. bool GetEnableAnchor() const;
  20311. VariantMap& GetEventDataMap() const;
  20312. Object GetEventSender() const;
  20313. FocusMode GetFocusMode() const;
  20314. int GetHeight() const;
  20315. HorizontalAlignment GetHorizontalAlignment() const;
  20316. int GetIndent() const;
  20317. int GetIndentSpacing() const;
  20318. int GetIndentWidth() const;
  20319. bool GetInterceptNetworkUpdate(const String&) const;
  20320. BorderImage GetKnob() const;
  20321. int GetLayoutElementMaxSize() const;
  20322. LayoutMode GetLayoutMode() const;
  20323. int GetLayoutSpacing() const;
  20324. Material GetMaterial() const;
  20325. ResourceRef GetMaterialAttr() const;
  20326. int GetMaxHeight() const;
  20327. int GetMaxWidth() const;
  20328. int GetMinHeight() const;
  20329. int GetMinWidth() const;
  20330. uint GetNumAttributes() const;
  20331. uint GetNumChildren(bool = false) const;
  20332. uint GetNumNetworkAttributes() const;
  20333. ObjectAnimation GetObjectAnimation() const;
  20334. ResourceRef GetObjectAnimationAttr() const;
  20335. float GetOpacity() const;
  20336. Orientation GetOrientation() const;
  20337. UIElement GetParent() const;
  20338. int GetPriority() const;
  20339. float GetRange() const;
  20340. UIElement GetRoot() const;
  20341. bool GetShowPercentText() const;
  20342. bool GetSortChildren() const;
  20343. Object GetSubsystem(StringHash) const;
  20344. Array<String> GetTags() const;
  20345. Texture GetTexture() const;
  20346. ResourceRef GetTextureAttr() const;
  20347. TraversalMode GetTraversalMode() const;
  20348. StringHash GetType() const;
  20349. bool GetUseDerivedOpacity() const;
  20350. float GetValue() const;
  20351. VerticalAlignment GetVerticalAlignment() const;
  20352. int GetWidth() const;
  20353. bool HasColorGradient() const;
  20354. bool HasEventHandlers() const;
  20355. bool HasFocus() const;
  20356. bool HasSubscribedToEvent(Object, StringHash) const;
  20357. bool HasSubscribedToEvent(StringHash) const;
  20358. bool HasTag(const String&) const;
  20359. void InsertChild(uint, UIElement);
  20360. const IntRect& GetBorder() const;
  20361. const IntRect& GetClipBorder() const;
  20362. const IntRect& GetImageBorder() const;
  20363. const IntRect& GetImageRect() const;
  20364. const IntRect& GetLayoutBorder() const;
  20365. const IntVector2& GetChildOffset() const;
  20366. const IntVector2& GetDisabledOffset() const;
  20367. const IntVector2& GetHoverOffset() const;
  20368. const IntVector2& GetMaxOffset() const;
  20369. const IntVector2& GetMaxSize() const;
  20370. const IntVector2& GetMinOffset() const;
  20371. const IntVector2& GetMinSize() const;
  20372. const IntVector2& GetPosition() const;
  20373. const IntVector2& GetScreenPosition() const;
  20374. const IntVector2& GetSize() const;
  20375. bool IsChildOf(UIElement) const;
  20376. bool IsEditable() const;
  20377. bool IsElementEventSender() const;
  20378. bool IsEnabled() const;
  20379. bool IsEnabledSelf() const;
  20380. bool IsFixedHeight() const;
  20381. bool IsFixedSize() const;
  20382. bool IsFixedWidth() const;
  20383. bool IsHovering() const;
  20384. bool IsInside(IntVector2, bool);
  20385. bool IsInsideCombined(IntVector2, bool);
  20386. bool IsInstanceOf(StringHash) const;
  20387. bool IsInternal() const;
  20388. bool IsSelected() const;
  20389. bool IsTemporary() const;
  20390. bool IsTiled() const;
  20391. bool IsVisible() const;
  20392. bool IsVisibleEffective() const;
  20393. bool IsWheelHandler() const;
  20394. bool IsWithinScissor(const IntRect&);
  20395. bool Load(Deserializer&);
  20396. UIElement LoadChildXML(XMLFile, XMLFile);
  20397. UIElement LoadChildXML(const XMLElement&, XMLFile);
  20398. bool LoadJSON(const JSONValue&);
  20399. bool LoadXML(Deserializer&);
  20400. bool LoadXML(File);
  20401. bool LoadXML(VectorBuffer&);
  20402. bool LoadXML(XMLFile, XMLFile);
  20403. bool LoadXML(const XMLElement&);
  20404. bool LoadXML(const XMLElement&, XMLFile);
  20405. void MarkNetworkUpdate();
  20406. operator Object() const;
  20407. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  20408. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  20409. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  20410. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20411. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20412. bool OnDragDropFinish(UIElement);
  20413. bool OnDragDropTest(UIElement);
  20414. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20415. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20416. void OnEvent(Object, StringHash, VariantMap&);
  20417. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  20418. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20419. void OnIndentSet();
  20420. void OnKey(uint, uint, uint);
  20421. void OnPositionSet(const IntVector2&);
  20422. void OnResize(const IntVector2&, const IntVector2&);
  20423. void OnSetAttribute(const AttributeInfo&, const Variant&);
  20424. void OnSetEditable();
  20425. void OnTextInput(const String&);
  20426. void OnWheel(int, uint, uint);
  20427. bool ReadDeltaUpdate(Deserializer&);
  20428. bool ReadLatestDataUpdate(Deserializer&);
  20429. operator RefCounted() const;
  20430. int Refs() const;
  20431. void Remove();
  20432. void RemoveAllChildren();
  20433. void RemoveAllTags();
  20434. void RemoveAttributeAnimation(const String&);
  20435. void RemoveChild(UIElement, uint = 0);
  20436. void RemoveChild(uint);
  20437. void RemoveChildAtIndex(uint);
  20438. void RemoveInstanceDefault();
  20439. void RemoveObjectAnimation();
  20440. bool RemoveTag(const String&);
  20441. void ResetDeepEnabled();
  20442. void ResetToDefault();
  20443. bool Save(Serializer&) const;
  20444. bool SaveDefaultAttributes() const;
  20445. bool SaveJSON(JSONValue&) const;
  20446. bool SaveXML(File, const String& indentation = "\t");
  20447. bool SaveXML(Serializer&, const String& = "\t") const;
  20448. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  20449. bool SaveXML(XMLElement&) const;
  20450. IntVector2 ScreenToElement(const IntVector2&);
  20451. void SendEvent(StringHash);
  20452. void SendEvent(StringHash, VariantMap&);
  20453. operator Serializable() const;
  20454. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  20455. void SetAnimationEnabled(bool);
  20456. void SetAnimationTime(float);
  20457. bool SetAttribute(const String&, const Variant&);
  20458. bool SetAttribute(uint, const Variant&);
  20459. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  20460. void SetAttributeAnimationSpeed(const String&, float);
  20461. void SetAttributeAnimationTime(const String&, float);
  20462. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  20463. void SetBlendMode(BlendMode);
  20464. void SetBlockEvents(bool);
  20465. void SetBorder(const IntRect&);
  20466. void SetBringToBack(bool);
  20467. void SetBringToFront(bool);
  20468. void SetChildOffset(const IntVector2&);
  20469. void SetClipBorder(const IntRect&);
  20470. void SetClipChildren(bool);
  20471. void SetColor(Corner, const Color&);
  20472. void SetColor(const Color&);
  20473. void SetDeepEnabled(bool);
  20474. void SetDefaultStyle(XMLFile);
  20475. void SetDisabledOffset(const IntVector2&);
  20476. void SetDisabledOffset(int, int);
  20477. void SetDragDropMode(uint);
  20478. void SetEditable(bool);
  20479. void SetElementEventSender(bool);
  20480. void SetEnableAnchor(bool);
  20481. void SetEnabled(bool);
  20482. void SetEnabledRecursive(bool);
  20483. void SetFixedHeight(int);
  20484. void SetFixedSize(const IntVector2&);
  20485. void SetFixedSize(int, int);
  20486. void SetFixedWidth(int);
  20487. void SetFocus(bool);
  20488. void SetFocusMode(FocusMode);
  20489. void SetFullImageRect();
  20490. void SetGlobalVar(StringHash, const Variant&);
  20491. void SetHeight(int);
  20492. void SetHorizontalAlignment(HorizontalAlignment);
  20493. void SetHoverOffset(const IntVector2&);
  20494. void SetHoverOffset(int, int);
  20495. void SetHovering(bool);
  20496. void SetImageBorder(const IntRect&);
  20497. void SetImageRect(const IntRect&);
  20498. void SetIndent(int);
  20499. void SetIndentSpacing(int);
  20500. void SetInstanceDefault(bool);
  20501. void SetInterceptNetworkUpdate(const String&, bool);
  20502. void SetInternal(bool);
  20503. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  20504. void SetLayoutBorder(const IntRect&);
  20505. void SetLayoutFlexScale(const Vector2&);
  20506. void SetLayoutMode(LayoutMode);
  20507. void SetLayoutSpacing(int);
  20508. void SetLoadingPercentStyle(const String&);
  20509. void SetMaterial(Material);
  20510. void SetMaterialAttr(const ResourceRef&);
  20511. void SetMaxAnchor(const Vector2&);
  20512. void SetMaxAnchor(float, float);
  20513. void SetMaxHeight(int);
  20514. void SetMaxOffset(const IntVector2&);
  20515. void SetMaxSize(const IntVector2&);
  20516. void SetMaxSize(int, int);
  20517. void SetMaxWidth(int);
  20518. void SetMinAnchor(const Vector2&);
  20519. void SetMinAnchor(float, float);
  20520. void SetMinHeight(int);
  20521. void SetMinOffset(const IntVector2&);
  20522. void SetMinSize(const IntVector2&);
  20523. void SetMinSize(int, int);
  20524. void SetMinWidth(int);
  20525. void SetName(const String&);
  20526. void SetObjectAnimation(ObjectAnimation);
  20527. void SetObjectAnimationAttr(const ResourceRef&);
  20528. void SetOpacity(float);
  20529. void SetOrientation(Orientation);
  20530. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  20531. void SetPivot(const Vector2&);
  20532. void SetPivot(float, float);
  20533. void SetPosition(const IntVector2&);
  20534. void SetPosition(int, int);
  20535. void SetPriority(int);
  20536. void SetRange(float);
  20537. void SetRenderTexture(Texture2D);
  20538. void SetSelected(bool);
  20539. void SetShowPercentText(bool);
  20540. void SetSize(const IntVector2&);
  20541. void SetSize(int, int);
  20542. void SetSortChildren(bool);
  20543. bool SetStyle(const String&, XMLFile = null);
  20544. bool SetStyle(const XMLElement&);
  20545. bool SetStyleAuto(XMLFile = null);
  20546. void SetTags(Array<String>);
  20547. void SetTemporary(bool);
  20548. void SetTexture(Texture);
  20549. void SetTextureAttr(const ResourceRef&);
  20550. void SetTiled(bool);
  20551. void SetTraversalMode(TraversalMode);
  20552. void SetUseDerivedOpacity(bool);
  20553. void SetValue(float);
  20554. void SetVar(StringHash, const Variant&);
  20555. void SetVerticalAlignment(VerticalAlignment);
  20556. void SetVisible(bool);
  20557. void SetWidth(int);
  20558. void SortChildren();
  20559. const String& GetAppliedStyle() const;
  20560. const String& GetCategory() const;
  20561. const String& GetLoadingPercentStyle() const;
  20562. const String& GetName() const;
  20563. const String& GetTypeName() const;
  20564. operator UIElement() const;
  20565. void UnsubscribeFromAllEvents();
  20566. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20567. void UnsubscribeFromEvent(Object, StringHash);
  20568. void UnsubscribeFromEvent(StringHash);
  20569. void UnsubscribeFromEvents(Object);
  20570. void Update(float);
  20571. void UpdateLayout();
  20572. const Variant& GetGlobalVar(StringHash) const;
  20573. const Variant& GetVar(const StringHash&) const;
  20574. const VariantMap& GetGlobalVars() const;
  20575. const VariantMap& GetVars() const;
  20576. const Vector2& GetLayoutFlexScale() const;
  20577. const Vector2& GetMaxAnchor() const;
  20578. const Vector2& GetMinAnchor() const;
  20579. const Vector2& GetPivot() const;
  20580. int WeakRefs() const;
  20581. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  20582. void WriteInitialDeltaUpdate(Serializer&, uint8);
  20583. void WriteLatestDataUpdate(Serializer&, uint8);
  20584. operator const Animatable() const;
  20585. operator const BorderImage() const;
  20586. operator const Object() const;
  20587. operator const RefCounted() const;
  20588. operator const Serializable() const;
  20589. operator const UIElement() const;
  20590. // Properties:
  20591. bool animationEnabled;
  20592. /* readonly */
  20593. Array<Variant> attributeDefaults;
  20594. /* readonly */
  20595. Array<AttributeInfo> attributeInfos;
  20596. Array<Variant> attributes;
  20597. BlendMode blendMode;
  20598. IntRect border;
  20599. bool bringToBack;
  20600. bool bringToFront;
  20601. /* readonly */
  20602. String category;
  20603. /* readonly */
  20604. IntVector2 childOffset;
  20605. /* readonly */
  20606. Array<UIElement> children;
  20607. IntRect clipBorder;
  20608. bool clipChildren;
  20609. /* writeonly */
  20610. Color color;
  20611. /* readonly */
  20612. bool colorGradient;
  20613. Array<Color> colors;
  20614. /* readonly */
  20615. IntRect combinedScreenRect;
  20616. XMLFile defaultStyle;
  20617. /* readonly */
  20618. float derivedOpacity;
  20619. IntVector2 disabledOffset;
  20620. /* readonly */
  20621. uint dragButtonCombo;
  20622. /* readonly */
  20623. uint dragButtonCount;
  20624. uint dragDropMode;
  20625. bool editable;
  20626. bool elementEventSender;
  20627. bool enableAnchor;
  20628. bool enabled;
  20629. /* readonly */
  20630. bool enabledSelf;
  20631. /* readonly */
  20632. bool fixedHeight;
  20633. /* readonly */
  20634. bool fixedSize;
  20635. /* readonly */
  20636. bool fixedWidth;
  20637. bool focus;
  20638. FocusMode focusMode;
  20639. Array<Variant> globalVar;
  20640. /* readonly */
  20641. VariantMap globalVars;
  20642. int height;
  20643. HorizontalAlignment horizontalAlignment;
  20644. IntVector2 hoverOffset;
  20645. /* readonly */
  20646. bool hovering;
  20647. IntRect imageBorder;
  20648. IntRect imageRect;
  20649. int indent;
  20650. int indentSpacing;
  20651. /* readonly */
  20652. int indentWidth;
  20653. bool internal;
  20654. /* readonly */
  20655. BorderImage knob;
  20656. IntRect layoutBorder;
  20657. Vector2 layoutFlexScale;
  20658. LayoutMode layoutMode;
  20659. int layoutSpacing;
  20660. Material material;
  20661. Vector2 maxAnchor;
  20662. int maxHeight;
  20663. IntVector2 maxOffset;
  20664. IntVector2 maxSize;
  20665. int maxWidth;
  20666. Vector2 minAnchor;
  20667. int minHeight;
  20668. IntVector2 minOffset;
  20669. IntVector2 minSize;
  20670. int minWidth;
  20671. String name;
  20672. /* readonly */
  20673. uint numAllChildren;
  20674. /* readonly */
  20675. uint numAttributes;
  20676. /* readonly */
  20677. uint numChildren;
  20678. ObjectAnimation objectAnimation;
  20679. float opacity;
  20680. Orientation orientation;
  20681. UIElement parent;
  20682. Vector2 pivot;
  20683. IntVector2 position;
  20684. int priority;
  20685. float range;
  20686. /* readonly */
  20687. int refs;
  20688. /* readonly */
  20689. UIElement root;
  20690. /* readonly */
  20691. IntVector2 screenPosition;
  20692. bool selected;
  20693. bool showPercentText;
  20694. IntVector2 size;
  20695. bool sortChildren;
  20696. String style;
  20697. /* readonly */
  20698. Array<String> tags;
  20699. bool temporary;
  20700. Texture texture;
  20701. bool tiled;
  20702. TraversalMode traversalMode;
  20703. /* readonly */
  20704. StringHash type;
  20705. /* readonly */
  20706. String typeName;
  20707. bool useDerivedOpacity;
  20708. float value;
  20709. /* readonly */
  20710. VariantMap vars;
  20711. VerticalAlignment verticalAlignment;
  20712. bool visible;
  20713. /* readonly */
  20714. bool visibleEffective;
  20715. /* readonly */
  20716. int weakRefs;
  20717. int width;
  20718. };
  20719. class PropertySet2D
  20720. {
  20721. public:
  20722. PropertySet2D();
  20723. // Methods:
  20724. bool HasProperty(const String&) const;
  20725. void Load(const XMLElement&);
  20726. operator RefCounted() const;
  20727. int Refs() const;
  20728. const String& GetProperty(const String&) const;
  20729. int WeakRefs() const;
  20730. operator const RefCounted() const;
  20731. // Properties:
  20732. /* readonly */
  20733. int refs;
  20734. /* readonly */
  20735. int weakRefs;
  20736. };
  20737. class Quaternion
  20738. {
  20739. public:
  20740. Quaternion();
  20741. Quaternion(const Quaternion&in);
  20742. Quaternion(float, float, float, float);
  20743. Quaternion(float, const Vector3&in);
  20744. Quaternion(float);
  20745. Quaternion(float, float, float);
  20746. Quaternion(const Vector3&in);
  20747. Quaternion(const Vector3&in, const Vector3&in);
  20748. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  20749. Quaternion(const Matrix3&in);
  20750. // Methods:
  20751. Quaternion operator+(const Quaternion&) const;
  20752. Quaternion& operator+=(const Quaternion&);
  20753. Quaternion& operator=(const Quaternion&);
  20754. bool operator==(const Quaternion&) const;
  20755. float Angle() const;
  20756. Vector3 Axis() const;
  20757. Quaternion Conjugate() const;
  20758. float DotProduct(const Quaternion&) const;
  20759. bool Equals(const Quaternion&) const;
  20760. Vector3 EulerAngles() const;
  20761. void FromAngleAxis(float, const Vector3&);
  20762. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  20763. void FromEulerAngles(float, float, float);
  20764. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 :: UP);
  20765. void FromRotationMatrix(const Matrix3&);
  20766. void FromRotationTo(const Vector3&, const Vector3&);
  20767. Quaternion Inverse() const;
  20768. bool IsInf() const;
  20769. bool IsNaN() const;
  20770. float LengthSquared() const;
  20771. Quaternion Nlerp(const Quaternion&, float, bool = false) const;
  20772. void Normalize();
  20773. Quaternion Normalized() const;
  20774. float PitchAngle() const;
  20775. float RollAngle() const;
  20776. Matrix3 RotationMatrix() const;
  20777. Quaternion Slerp(const Quaternion&, float) const;
  20778. String ToString() const;
  20779. float YawAngle() const;
  20780. // Properties:
  20781. /* readonly */
  20782. float angle;
  20783. /* readonly */
  20784. Vector3 axis;
  20785. /* readonly */
  20786. Vector3 eulerAngles;
  20787. /* readonly */
  20788. float pitch;
  20789. /* readonly */
  20790. float roll;
  20791. /* readonly */
  20792. Matrix3 rotationMatrix;
  20793. float w;
  20794. float x;
  20795. float y;
  20796. /* readonly */
  20797. float yaw;
  20798. float z;
  20799. // Constants:
  20800. static const Quaternion IDENTITY;
  20801. };
  20802. class Ray
  20803. {
  20804. public:
  20805. Ray();
  20806. Ray(const Vector3&in, const Vector3&in);
  20807. Ray(const Ray&in);
  20808. // Methods:
  20809. Ray& operator=(const Ray&);
  20810. bool operator==(const Ray&) const;
  20811. Vector3 ClosestPoint(const Ray&) const;
  20812. void Define(const Vector3&, const Vector3&);
  20813. float Distance(const Vector3&) const;
  20814. float HitDistance(const BoundingBox&) const;
  20815. float HitDistance(const Frustum&, bool = true) const;
  20816. float HitDistance(const Plane&) const;
  20817. float HitDistance(const Sphere&) const;
  20818. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  20819. Vector3 Project(const Vector3&) const;
  20820. Ray Transformed(const Matrix3x4&) const;
  20821. // Properties:
  20822. Vector3 direction;
  20823. Vector3 origin;
  20824. };
  20825. class RayQueryResult
  20826. {
  20827. public:
  20828. ~RayQueryResult();
  20829. RayQueryResult();
  20830. // Methods:
  20831. RayQueryResult& operator=(const RayQueryResult&);
  20832. // Properties:
  20833. float distance;
  20834. /* readonly */
  20835. Drawable drawable;
  20836. /* readonly */
  20837. Node node;
  20838. Vector3 normal;
  20839. Vector3 position;
  20840. uint subObject;
  20841. Vector2 textureUV;
  20842. };
  20843. class RaycastVehicle
  20844. {
  20845. public:
  20846. // Methods:
  20847. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  20848. void AllocateNetworkState();
  20849. operator Animatable() const;
  20850. void ApplyAttributes();
  20851. void CleanupConnection(Connection);
  20852. operator Component() const;
  20853. void DelayedStart();
  20854. void DrawDebugGeometry(DebugRenderer, bool);
  20855. void FixedPostUpdate(float);
  20856. void FixedUpdate(float);
  20857. bool GetAnimationEnabled() const;
  20858. Variant GetAttribute(const String&) const;
  20859. Variant GetAttribute(uint) const;
  20860. ValueAnimation GetAttributeAnimation(const String&) const;
  20861. float GetAttributeAnimationSpeed(const String&) const;
  20862. float GetAttributeAnimationTime(const String&) const;
  20863. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  20864. Variant GetAttributeDefault(const String&) const;
  20865. Variant GetAttributeDefault(uint) const;
  20866. bool GetBlockEvents() const;
  20867. float GetBrake(int) const;
  20868. Component GetComponent(StringHash) const;
  20869. Vector3 GetContactNormal(int) const;
  20870. Vector3 GetContactPosition(int) const;
  20871. IntVector3 GetCoordinateSystem() const;
  20872. float GetEngineForce(int) const;
  20873. VariantMap& GetEventDataMap() const;
  20874. Object GetEventSender() const;
  20875. uint GetID() const;
  20876. float GetInAirRPM() const;
  20877. bool GetInterceptNetworkUpdate(const String&) const;
  20878. float GetMaxSideSlipSpeed() const;
  20879. float GetMaxSuspensionTravel(int);
  20880. Node GetNode() const;
  20881. uint GetNumAttributes() const;
  20882. uint GetNumNetworkAttributes() const;
  20883. int GetNumWheels() const;
  20884. ObjectAnimation GetObjectAnimation() const;
  20885. ResourceRef GetObjectAnimationAttr() const;
  20886. Scene GetScene() const;
  20887. float GetSteeringValue(int) const;
  20888. Object GetSubsystem(StringHash) const;
  20889. StringHash GetType() const;
  20890. uint GetUpdateEventMask() const;
  20891. Vector3 GetWheelAxle(int) const;
  20892. Vector3 GetWheelConnectionPoint(int) const;
  20893. float GetWheelDampingCompression(int) const;
  20894. float GetWheelDampingRelaxation(int) const;
  20895. Vector3 GetWheelDirection(int) const;
  20896. float GetWheelFrictionSlip(int) const;
  20897. float GetWheelMaxSuspensionForce(int) const;
  20898. Node GetWheelNode(int) const;
  20899. Vector3 GetWheelPosition(int);
  20900. float GetWheelRadius(int) const;
  20901. float GetWheelRestLength(int) const;
  20902. float GetWheelRollInfluence(int) const;
  20903. Quaternion GetWheelRotation(int);
  20904. float GetWheelSideSlipSpeed(int) const;
  20905. float GetWheelSkidInfo(int) const;
  20906. float GetWheelSkidInfoCumulative(int) const;
  20907. float GetWheelSuspensionStiffness(int) const;
  20908. bool HasEventHandlers() const;
  20909. bool HasSubscribedToEvent(Object, StringHash) const;
  20910. bool HasSubscribedToEvent(StringHash) const;
  20911. void Init();
  20912. bool IsDelayedStartCalled() const;
  20913. bool IsEnabled() const;
  20914. bool IsEnabledEffective() const;
  20915. bool IsFrontWheel(int) const;
  20916. bool IsInstanceOf(StringHash) const;
  20917. bool IsReplicated() const;
  20918. bool IsTemporary() const;
  20919. bool Load(Deserializer&);
  20920. bool LoadJSON(const JSONValue&);
  20921. bool LoadXML(const XMLElement&);
  20922. operator LogicComponent() const;
  20923. void MarkNetworkUpdate();
  20924. operator Object() const;
  20925. void OnEvent(Object, StringHash, VariantMap&);
  20926. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  20927. void OnSetAttribute(const AttributeInfo&, const Variant&);
  20928. void OnSetEnabled();
  20929. void PostUpdate(float);
  20930. void PrepareNetworkUpdate();
  20931. bool ReadDeltaUpdate(Deserializer&);
  20932. bool ReadLatestDataUpdate(Deserializer&);
  20933. operator RefCounted() const;
  20934. int Refs() const;
  20935. void Remove();
  20936. void RemoveAttributeAnimation(const String&);
  20937. void RemoveInstanceDefault();
  20938. void RemoveObjectAnimation();
  20939. void ResetSuspension();
  20940. void ResetToDefault();
  20941. void ResetWheels();
  20942. bool Save(Serializer&) const;
  20943. bool SaveDefaultAttributes() const;
  20944. bool SaveJSON(JSONValue&) const;
  20945. bool SaveXML(XMLElement&) const;
  20946. void SendEvent(StringHash);
  20947. void SendEvent(StringHash, VariantMap&);
  20948. operator Serializable() const;
  20949. void SetAnimationEnabled(bool);
  20950. void SetAnimationTime(float);
  20951. bool SetAttribute(const String&, const Variant&);
  20952. bool SetAttribute(uint, const Variant&);
  20953. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  20954. void SetAttributeAnimationSpeed(const String&, float);
  20955. void SetAttributeAnimationTime(const String&, float);
  20956. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  20957. void SetBlockEvents(bool);
  20958. void SetBrake(int, float);
  20959. void SetCoordinateSystem(const IntVector3& = RIGHT_FORWARD_UP);
  20960. void SetEnabled(bool);
  20961. void SetEngineForce(int, float);
  20962. void SetGlobalVar(StringHash, const Variant&);
  20963. void SetInAirRPM(float);
  20964. void SetInstanceDefault(bool);
  20965. void SetInterceptNetworkUpdate(const String&, bool);
  20966. void SetMaxSideSlipSpeed(float);
  20967. void SetMaxSuspensionTravel(int, float);
  20968. void SetObjectAnimation(ObjectAnimation);
  20969. void SetObjectAnimationAttr(const ResourceRef&);
  20970. void SetSteeringValue(int, float);
  20971. void SetTemporary(bool);
  20972. void SetUpdateEventMask(uint);
  20973. void SetWheelAxle(int, Vector3);
  20974. void SetWheelDampingCompression(int, float);
  20975. void SetWheelDampingRelaxation(int, float);
  20976. void SetWheelDirection(int, Vector3);
  20977. void SetWheelFrictionSlip(int, float);
  20978. void SetWheelMaxSuspensionForce(int, float);
  20979. void SetWheelRadius(int, float);
  20980. void SetWheelRestLength(int, float);
  20981. void SetWheelRollInfluence(int, float);
  20982. void SetWheelSkidInfo(int, float);
  20983. void SetWheelSkidInfoCumulative(int, float);
  20984. void SetWheelSuspensionStiffness(int, float);
  20985. void Start();
  20986. void Stop();
  20987. const String& GetCategory() const;
  20988. const String& GetTypeName() const;
  20989. void UnsubscribeFromAllEvents();
  20990. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20991. void UnsubscribeFromEvent(Object, StringHash);
  20992. void UnsubscribeFromEvent(StringHash);
  20993. void UnsubscribeFromEvents(Object);
  20994. void Update(float);
  20995. void UpdateWheelTransform(int, bool);
  20996. const Variant& GetGlobalVar(StringHash) const;
  20997. const VariantMap& GetGlobalVars() const;
  20998. int WeakRefs() const;
  20999. bool WheelIsGrounded(int) const;
  21000. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  21001. void WriteInitialDeltaUpdate(Serializer&, uint8);
  21002. void WriteLatestDataUpdate(Serializer&, uint8);
  21003. operator const Animatable() const;
  21004. operator const Component() const;
  21005. operator const LogicComponent() const;
  21006. operator const Object() const;
  21007. operator const RefCounted() const;
  21008. operator const Serializable() const;
  21009. // Properties:
  21010. bool animationEnabled;
  21011. /* readonly */
  21012. Array<Variant> attributeDefaults;
  21013. /* readonly */
  21014. Array<AttributeInfo> attributeInfos;
  21015. Array<Variant> attributes;
  21016. /* readonly */
  21017. String category;
  21018. IntVector3 coordinateSystem;
  21019. bool enabled;
  21020. /* readonly */
  21021. bool enabledEffective;
  21022. Array<Variant> globalVar;
  21023. /* readonly */
  21024. VariantMap globalVars;
  21025. /* readonly */
  21026. uint id;
  21027. float inAirRPM;
  21028. float maxSideSlipSpeed;
  21029. /* readonly */
  21030. Node node;
  21031. /* readonly */
  21032. uint numAttributes;
  21033. /* readonly */
  21034. int numWheels;
  21035. ObjectAnimation objectAnimation;
  21036. /* readonly */
  21037. int refs;
  21038. /* readonly */
  21039. bool replicated;
  21040. bool temporary;
  21041. /* readonly */
  21042. StringHash type;
  21043. /* readonly */
  21044. String typeName;
  21045. /* readonly */
  21046. int weakRefs;
  21047. // Constants:
  21048. static const IntVector3 FORWARD_RIGHT_UP;
  21049. static const IntVector3 FORWARD_UP_RIGHT;
  21050. static const IntVector3 RIGHT_FORWARD_UP;
  21051. static const IntVector3 RIGHT_UP_FORWARD;
  21052. static const IntVector3 UP_FORWARD_RIGHT;
  21053. static const IntVector3 UP_RIGHT_FORWARD;
  21054. };
  21055. class Rect
  21056. {
  21057. public:
  21058. Rect();
  21059. Rect(const Vector2&in, const Vector2&in);
  21060. Rect(float, float, float, float);
  21061. Rect(const Vector4&in);
  21062. Rect(const Rect&in);
  21063. // Methods:
  21064. Rect operator+(const Rect&) const;
  21065. Rect& operator+=(const Rect&);
  21066. Rect& operator=(const Rect&);
  21067. bool operator==(const Rect&) const;
  21068. float Bottom() const;
  21069. Vector2 Center() const;
  21070. void Clear();
  21071. void Clip(const Rect&);
  21072. void Define(const Rect&);
  21073. void Define(const Vector2&);
  21074. void Define(const Vector2&, const Vector2&);
  21075. bool Defined() const;
  21076. bool Equals(const Rect&) const;
  21077. Vector2 HalfSize() const;
  21078. Intersection IsInside(const Rect&) const;
  21079. Intersection IsInside(const Vector2&) const;
  21080. float Left() const;
  21081. Vector2 Max() const;
  21082. void Merge(const Rect&);
  21083. void Merge(const Vector2&);
  21084. Vector2 Min() const;
  21085. float Right() const;
  21086. Vector2 Size() const;
  21087. String ToString() const;
  21088. Vector4 ToVector4() const;
  21089. float Top() const;
  21090. // Properties:
  21091. /* readonly */
  21092. float bottom;
  21093. /* readonly */
  21094. Vector2 center;
  21095. /* readonly */
  21096. Vector2 halfSize;
  21097. /* readonly */
  21098. float left;
  21099. Vector2 max;
  21100. Vector2 min;
  21101. /* readonly */
  21102. float right;
  21103. /* readonly */
  21104. Vector2 size;
  21105. /* readonly */
  21106. float top;
  21107. // Constants:
  21108. static const Rect FULL;
  21109. static const Rect POSITIVE;
  21110. static const Rect ZERO;
  21111. };
  21112. class RefCount
  21113. {
  21114. public:
  21115. ~RefCount();
  21116. RefCount();
  21117. // Methods:
  21118. RefCount& operator=(const RefCount&);
  21119. // Properties:
  21120. int refs;
  21121. int weakRefs;
  21122. };
  21123. class RefCounted
  21124. {
  21125. public:
  21126. RefCounted();
  21127. // Methods:
  21128. operator Animatable() const;
  21129. operator AnimatedModel() const;
  21130. operator AnimatedSprite2D() const;
  21131. operator Animation() const;
  21132. operator AnimationController() const;
  21133. operator AnimationSet2D() const;
  21134. operator AnimationState() const;
  21135. operator AttributeAccessor() const;
  21136. operator AttributeAnimationInfo() const;
  21137. operator Audio() const;
  21138. operator BillboardSet() const;
  21139. operator BorderImage() const;
  21140. operator BufferedSoundStream() const;
  21141. operator Button() const;
  21142. operator Camera() const;
  21143. operator CheckBox() const;
  21144. operator CollisionBox2D() const;
  21145. operator CollisionChain2D() const;
  21146. operator CollisionCircle2D() const;
  21147. operator CollisionEdge2D() const;
  21148. operator CollisionGeometryData() const;
  21149. operator CollisionPolygon2D() const;
  21150. operator CollisionShape2D() const;
  21151. operator CollisionShape() const;
  21152. operator Component() const;
  21153. operator Connection() const;
  21154. operator Console() const;
  21155. operator ConstantBuffer() const;
  21156. operator Constraint2D() const;
  21157. operator Constraint() const;
  21158. operator ConstraintDistance2D() const;
  21159. operator ConstraintFriction2D() const;
  21160. operator ConstraintGear2D() const;
  21161. operator ConstraintMotor2D() const;
  21162. operator ConstraintMouse2D() const;
  21163. operator ConstraintPrismatic2D() const;
  21164. operator ConstraintPulley2D() const;
  21165. operator ConstraintRevolute2D() const;
  21166. operator ConstraintWeld2D() const;
  21167. operator ConstraintWheel2D() const;
  21168. operator Context() const;
  21169. operator ConvexData() const;
  21170. operator CrowdAgent() const;
  21171. operator CrowdManager() const;
  21172. operator Cursor() const;
  21173. operator CustomGeometry() const;
  21174. operator Database() const;
  21175. operator DebugHud() const;
  21176. operator DebugRenderer() const;
  21177. operator DecalSet() const;
  21178. operator Drawable2D() const;
  21179. operator Drawable() const;
  21180. operator DropDownList() const;
  21181. operator DynamicNavigationMesh() const;
  21182. operator Engine() const;
  21183. operator EventProfiler() const;
  21184. operator EventReceiverGroup() const;
  21185. operator File() const;
  21186. operator FileSelector() const;
  21187. operator FileSystem() const;
  21188. operator FileWatcher() const;
  21189. operator Font() const;
  21190. operator FontFace() const;
  21191. operator FontFaceBitmap() const;
  21192. operator FontFaceFreeType() const;
  21193. operator GImpactMeshData() const;
  21194. operator Geometry() const;
  21195. operator Graphics() const;
  21196. operator HeightfieldData() const;
  21197. operator HttpRequest() const;
  21198. operator IKConstraint() const;
  21199. operator IKEffector() const;
  21200. operator IKSolver() const;
  21201. operator Image() const;
  21202. operator IndexBuffer() const;
  21203. operator Input() const;
  21204. operator JSONFile() const;
  21205. operator Light() const;
  21206. operator LineEdit() const;
  21207. operator ListView() const;
  21208. operator Localization() const;
  21209. operator Log() const;
  21210. operator LogicComponent() const;
  21211. operator Material() const;
  21212. operator Menu() const;
  21213. operator MessageBox() const;
  21214. operator Model() const;
  21215. operator NamedPipe() const;
  21216. operator NavArea() const;
  21217. operator Navigable() const;
  21218. operator NavigationMesh() const;
  21219. operator Network() const;
  21220. operator NetworkPriority() const;
  21221. operator Node() const;
  21222. operator Object() const;
  21223. operator ObjectAnimation() const;
  21224. operator ObjectFactory() const;
  21225. operator Obstacle() const;
  21226. operator OcclusionBuffer() const;
  21227. operator Octree() const;
  21228. operator OffMeshConnection() const;
  21229. operator OggVorbisSoundStream() const;
  21230. operator PackageFile() const;
  21231. operator ParticleEffect2D() const;
  21232. operator ParticleEffect() const;
  21233. operator ParticleEmitter2D() const;
  21234. operator ParticleEmitter() const;
  21235. operator Pass() const;
  21236. operator PhysicsWorld2D() const;
  21237. operator PhysicsWorld() const;
  21238. operator Profiler() const;
  21239. operator ProgressBar() const;
  21240. operator PropertySet2D() const;
  21241. operator RaycastVehicle() const;
  21242. int Refs() const;
  21243. operator RenderPath() const;
  21244. operator RenderSurface() const;
  21245. operator Renderer2D() const;
  21246. operator Renderer() const;
  21247. operator Resource() const;
  21248. operator ResourceCache() const;
  21249. operator ResourceWithMetadata() const;
  21250. operator RibbonTrail() const;
  21251. operator RigidBody2D() const;
  21252. operator RigidBody() const;
  21253. operator Scene() const;
  21254. operator ScriptInstance() const;
  21255. operator ScrollBar() const;
  21256. operator ScrollView() const;
  21257. operator Serializable() const;
  21258. operator Shader() const;
  21259. operator ShaderParameterAnimationInfo() const;
  21260. operator ShaderPrecache() const;
  21261. operator ShaderVariation() const;
  21262. operator Skybox() const;
  21263. operator Slider() const;
  21264. operator SmoothedTransform() const;
  21265. operator Sound() const;
  21266. operator SoundListener() const;
  21267. operator SoundSource3D() const;
  21268. operator SoundSource() const;
  21269. operator SoundStream() const;
  21270. operator SplinePath() const;
  21271. operator Sprite2D() const;
  21272. operator Sprite() const;
  21273. operator SpriteSheet2D() const;
  21274. operator StaticModel() const;
  21275. operator StaticModelGroup() const;
  21276. operator StaticSprite2D() const;
  21277. operator StretchableSprite2D() const;
  21278. operator Technique() const;
  21279. operator Terrain() const;
  21280. operator TerrainPatch() const;
  21281. operator Text3D() const;
  21282. operator Text() const;
  21283. operator Texture2D() const;
  21284. operator Texture2DArray() const;
  21285. operator Texture3D() const;
  21286. operator Texture() const;
  21287. operator TextureCube() const;
  21288. operator Tile2D() const;
  21289. operator TileMap2D() const;
  21290. operator TileMapLayer2D() const;
  21291. operator TileMapObject2D() const;
  21292. operator Time() const;
  21293. operator TmxFile2D() const;
  21294. operator TmxImageLayer2D() const;
  21295. operator TmxLayer2D() const;
  21296. operator TmxObjectGroup2D() const;
  21297. operator TmxTileLayer2D() const;
  21298. operator ToolTip() const;
  21299. operator TriangleMeshData() const;
  21300. operator UI() const;
  21301. operator UIComponent() const;
  21302. operator UIElement() const;
  21303. operator UISelectable() const;
  21304. operator UnknownComponent() const;
  21305. operator ValueAnimation() const;
  21306. operator ValueAnimationInfo() const;
  21307. operator VertexBuffer() const;
  21308. operator View3D() const;
  21309. operator View() const;
  21310. operator Viewport() const;
  21311. int WeakRefs() const;
  21312. operator Window() const;
  21313. operator WorkQueue() const;
  21314. operator XMLFile() const;
  21315. operator Zone() const;
  21316. operator const Animatable() const;
  21317. operator const AnimatedModel() const;
  21318. operator const AnimatedSprite2D() const;
  21319. operator const Animation() const;
  21320. operator const AnimationController() const;
  21321. operator const AnimationSet2D() const;
  21322. operator const AnimationState() const;
  21323. operator const AttributeAccessor() const;
  21324. operator const AttributeAnimationInfo() const;
  21325. operator const Audio() const;
  21326. operator const BillboardSet() const;
  21327. operator const BorderImage() const;
  21328. operator const BufferedSoundStream() const;
  21329. operator const Button() const;
  21330. operator const Camera() const;
  21331. operator const CheckBox() const;
  21332. operator const CollisionBox2D() const;
  21333. operator const CollisionChain2D() const;
  21334. operator const CollisionCircle2D() const;
  21335. operator const CollisionEdge2D() const;
  21336. operator const CollisionGeometryData() const;
  21337. operator const CollisionPolygon2D() const;
  21338. operator const CollisionShape2D() const;
  21339. operator const CollisionShape() const;
  21340. operator const Component() const;
  21341. operator const Connection() const;
  21342. operator const Console() const;
  21343. operator const ConstantBuffer() const;
  21344. operator const Constraint2D() const;
  21345. operator const Constraint() const;
  21346. operator const ConstraintDistance2D() const;
  21347. operator const ConstraintFriction2D() const;
  21348. operator const ConstraintGear2D() const;
  21349. operator const ConstraintMotor2D() const;
  21350. operator const ConstraintMouse2D() const;
  21351. operator const ConstraintPrismatic2D() const;
  21352. operator const ConstraintPulley2D() const;
  21353. operator const ConstraintRevolute2D() const;
  21354. operator const ConstraintWeld2D() const;
  21355. operator const ConstraintWheel2D() const;
  21356. operator const Context() const;
  21357. operator const ConvexData() const;
  21358. operator const CrowdAgent() const;
  21359. operator const CrowdManager() const;
  21360. operator const Cursor() const;
  21361. operator const CustomGeometry() const;
  21362. operator const Database() const;
  21363. operator const DebugHud() const;
  21364. operator const DebugRenderer() const;
  21365. operator const DecalSet() const;
  21366. operator const Drawable2D() const;
  21367. operator const Drawable() const;
  21368. operator const DropDownList() const;
  21369. operator const DynamicNavigationMesh() const;
  21370. operator const Engine() const;
  21371. operator const EventProfiler() const;
  21372. operator const EventReceiverGroup() const;
  21373. operator const File() const;
  21374. operator const FileSelector() const;
  21375. operator const FileSystem() const;
  21376. operator const FileWatcher() const;
  21377. operator const Font() const;
  21378. operator const FontFace() const;
  21379. operator const FontFaceBitmap() const;
  21380. operator const FontFaceFreeType() const;
  21381. operator const GImpactMeshData() const;
  21382. operator const Geometry() const;
  21383. operator const Graphics() const;
  21384. operator const HeightfieldData() const;
  21385. operator const HttpRequest() const;
  21386. operator const IKConstraint() const;
  21387. operator const IKEffector() const;
  21388. operator const IKSolver() const;
  21389. operator const Image() const;
  21390. operator const IndexBuffer() const;
  21391. operator const Input() const;
  21392. operator const JSONFile() const;
  21393. operator const Light() const;
  21394. operator const LineEdit() const;
  21395. operator const ListView() const;
  21396. operator const Localization() const;
  21397. operator const Log() const;
  21398. operator const LogicComponent() const;
  21399. operator const Material() const;
  21400. operator const Menu() const;
  21401. operator const MessageBox() const;
  21402. operator const Model() const;
  21403. operator const NamedPipe() const;
  21404. operator const NavArea() const;
  21405. operator const Navigable() const;
  21406. operator const NavigationMesh() const;
  21407. operator const Network() const;
  21408. operator const NetworkPriority() const;
  21409. operator const Node() const;
  21410. operator const Object() const;
  21411. operator const ObjectAnimation() const;
  21412. operator const ObjectFactory() const;
  21413. operator const Obstacle() const;
  21414. operator const OcclusionBuffer() const;
  21415. operator const Octree() const;
  21416. operator const OffMeshConnection() const;
  21417. operator const OggVorbisSoundStream() const;
  21418. operator const PackageFile() const;
  21419. operator const ParticleEffect2D() const;
  21420. operator const ParticleEffect() const;
  21421. operator const ParticleEmitter2D() const;
  21422. operator const ParticleEmitter() const;
  21423. operator const Pass() const;
  21424. operator const PhysicsWorld2D() const;
  21425. operator const PhysicsWorld() const;
  21426. operator const Profiler() const;
  21427. operator const ProgressBar() const;
  21428. operator const PropertySet2D() const;
  21429. operator const RaycastVehicle() const;
  21430. operator const RenderPath() const;
  21431. operator const RenderSurface() const;
  21432. operator const Renderer2D() const;
  21433. operator const Renderer() const;
  21434. operator const Resource() const;
  21435. operator const ResourceCache() const;
  21436. operator const ResourceWithMetadata() const;
  21437. operator const RibbonTrail() const;
  21438. operator const RigidBody2D() const;
  21439. operator const RigidBody() const;
  21440. operator const Scene() const;
  21441. operator const ScriptInstance() const;
  21442. operator const ScrollBar() const;
  21443. operator const ScrollView() const;
  21444. operator const Serializable() const;
  21445. operator const Shader() const;
  21446. operator const ShaderParameterAnimationInfo() const;
  21447. operator const ShaderPrecache() const;
  21448. operator const ShaderVariation() const;
  21449. operator const Skybox() const;
  21450. operator const Slider() const;
  21451. operator const SmoothedTransform() const;
  21452. operator const Sound() const;
  21453. operator const SoundListener() const;
  21454. operator const SoundSource3D() const;
  21455. operator const SoundSource() const;
  21456. operator const SoundStream() const;
  21457. operator const SplinePath() const;
  21458. operator const Sprite2D() const;
  21459. operator const Sprite() const;
  21460. operator const SpriteSheet2D() const;
  21461. operator const StaticModel() const;
  21462. operator const StaticModelGroup() const;
  21463. operator const StaticSprite2D() const;
  21464. operator const StretchableSprite2D() const;
  21465. operator const Technique() const;
  21466. operator const Terrain() const;
  21467. operator const TerrainPatch() const;
  21468. operator const Text3D() const;
  21469. operator const Text() const;
  21470. operator const Texture2D() const;
  21471. operator const Texture2DArray() const;
  21472. operator const Texture3D() const;
  21473. operator const Texture() const;
  21474. operator const TextureCube() const;
  21475. operator const Tile2D() const;
  21476. operator const TileMap2D() const;
  21477. operator const TileMapLayer2D() const;
  21478. operator const TileMapObject2D() const;
  21479. operator const Time() const;
  21480. operator const TmxFile2D() const;
  21481. operator const TmxImageLayer2D() const;
  21482. operator const TmxLayer2D() const;
  21483. operator const TmxObjectGroup2D() const;
  21484. operator const TmxTileLayer2D() const;
  21485. operator const ToolTip() const;
  21486. operator const TriangleMeshData() const;
  21487. operator const UI() const;
  21488. operator const UIComponent() const;
  21489. operator const UIElement() const;
  21490. operator const UISelectable() const;
  21491. operator const UnknownComponent() const;
  21492. operator const ValueAnimation() const;
  21493. operator const ValueAnimationInfo() const;
  21494. operator const VertexBuffer() const;
  21495. operator const View3D() const;
  21496. operator const View() const;
  21497. operator const Viewport() const;
  21498. operator const Window() const;
  21499. operator const WorkQueue() const;
  21500. operator const XMLFile() const;
  21501. operator const Zone() const;
  21502. // Properties:
  21503. /* readonly */
  21504. int refs;
  21505. /* readonly */
  21506. int weakRefs;
  21507. };
  21508. class RemoteEvent
  21509. {
  21510. public:
  21511. ~RemoteEvent();
  21512. RemoteEvent();
  21513. // Methods:
  21514. RemoteEvent& operator=(const RemoteEvent&);
  21515. // Properties:
  21516. VariantMap eventData;
  21517. StringHash eventType;
  21518. bool inOrder;
  21519. uint senderID;
  21520. };
  21521. class RenderPath
  21522. {
  21523. public:
  21524. RenderPath();
  21525. // Methods:
  21526. void AddCommand(const RenderPathCommand&);
  21527. void AddRenderTarget(const RenderTargetInfo&);
  21528. bool Append(XMLFile);
  21529. RenderPath Clone();
  21530. uint GetNumCommands() const;
  21531. uint GetNumRenderTargets() const;
  21532. void InsertCommand(uint, const RenderPathCommand&);
  21533. bool IsAdded(const String&) const;
  21534. bool IsEnabled(const String&) const;
  21535. bool Load(XMLFile);
  21536. operator RefCounted() const;
  21537. int Refs() const;
  21538. void RemoveCommand(uint);
  21539. void RemoveCommands(const String&);
  21540. void RemoveRenderTarget(const String&);
  21541. void RemoveRenderTarget(uint);
  21542. void RemoveRenderTargets(const String&);
  21543. void SetCommand(uint, const RenderPathCommand&);
  21544. void SetEnabled(const String&, bool);
  21545. void SetRenderTarget(uint, const RenderTargetInfo&);
  21546. void SetShaderParameter(const String&, const Variant&);
  21547. void ToggleEnabled(const String&);
  21548. const Variant& GetShaderParameter(const String&) const;
  21549. int WeakRefs() const;
  21550. operator const RefCounted() const;
  21551. // Properties:
  21552. /* readonly */
  21553. Array<bool> added;
  21554. Array<RenderPathCommand> commands;
  21555. /* readonly */
  21556. Array<bool> enabled;
  21557. /* readonly */
  21558. uint numCommands;
  21559. /* readonly */
  21560. uint numRenderTargets;
  21561. /* readonly */
  21562. int refs;
  21563. Array<RenderTargetInfo> renderTargets;
  21564. Array<Variant> shaderParameters;
  21565. /* readonly */
  21566. int weakRefs;
  21567. };
  21568. class RenderPathCommand
  21569. {
  21570. public:
  21571. ~RenderPathCommand();
  21572. RenderPathCommand();
  21573. // Methods:
  21574. RenderPathCommand& operator=(const RenderPathCommand&);
  21575. uint GetNumOutputs() const;
  21576. CubeMapFace GetOutputFace(uint) const;
  21577. void Load(const XMLElement&);
  21578. void RemoveShaderParameter(const String&);
  21579. void SetDepthStencilName(const String&);
  21580. void SetNumOutputs(uint);
  21581. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  21582. void SetOutputFace(uint, CubeMapFace);
  21583. void SetOutputName(uint, const String&);
  21584. void SetShaderParameter(const String&, const Variant&);
  21585. void SetTextureName(TextureUnit, const String&);
  21586. const String& GetDepthStencilName() const;
  21587. const String& GetOutputName(uint) const;
  21588. const String& GetTextureName(TextureUnit) const;
  21589. const Variant& GetShaderParameter(const String&) const;
  21590. // Properties:
  21591. BlendMode blendMode;
  21592. Color clearColor;
  21593. float clearDepth;
  21594. uint clearFlags;
  21595. uint clearStencil;
  21596. String depthStencilName;
  21597. String depthStencilName;
  21598. bool enabled;
  21599. String eventName;
  21600. bool markToStencil;
  21601. String metadata;
  21602. uint numOutputs;
  21603. Array<CubeMapFace> outputFaces;
  21604. Array<String> outputNames;
  21605. String pass;
  21606. uint passIndex;
  21607. String pixelShaderDefines;
  21608. String pixelShaderName;
  21609. Array<Variant> shaderParameters;
  21610. RenderCommandSortMode sortMode;
  21611. String tag;
  21612. Array<String> textureNames;
  21613. RenderCommandType type;
  21614. bool useFogColor;
  21615. bool useLitBase;
  21616. bool vertexLights;
  21617. String vertexShaderDefines;
  21618. String vertexShaderName;
  21619. };
  21620. class RenderSurface
  21621. {
  21622. public:
  21623. RenderSurface(Texture&);
  21624. // Methods:
  21625. bool CreateRenderBuffer(uint, uint, uint, int);
  21626. bool GetAutoResolve() const;
  21627. int GetHeight() const;
  21628. RenderSurface GetLinkedDepthStencil() const;
  21629. RenderSurface GetLinkedRenderTarget() const;
  21630. int GetMultiSample() const;
  21631. uint GetNumViewports() const;
  21632. Texture GetParentTexture() const;
  21633. uint GetRenderBuffer() const;
  21634. uint GetTarget() const;
  21635. RenderSurfaceUpdateMode GetUpdateMode() const;
  21636. TextureUsage GetUsage() const;
  21637. Viewport GetViewport(uint) const;
  21638. int GetWidth() const;
  21639. bool IsResolveDirty() const;
  21640. bool IsUpdateQueued() const;
  21641. void OnDeviceLost();
  21642. void QueueUpdate();
  21643. operator RefCounted() const;
  21644. int Refs() const;
  21645. void Release();
  21646. void ResetUpdateQueued();
  21647. void SetLinkedDepthStencil(RenderSurface);
  21648. void SetLinkedRenderTarget(RenderSurface);
  21649. void SetNumViewports(uint);
  21650. void SetResolveDirty(bool);
  21651. void SetUpdateMode(RenderSurfaceUpdateMode);
  21652. void SetViewport(uint, Viewport);
  21653. int WeakRefs() const;
  21654. operator const RefCounted() const;
  21655. // Properties:
  21656. /* readonly */
  21657. int height;
  21658. RenderSurface linkedDepthStencil;
  21659. RenderSurface linkedRenderTarget;
  21660. uint numViewports;
  21661. /* readonly */
  21662. Texture parentTexture;
  21663. /* readonly */
  21664. int refs;
  21665. /* readonly */
  21666. bool resolveDirty;
  21667. RenderSurfaceUpdateMode updateMode;
  21668. /* readonly */
  21669. TextureUsage usage;
  21670. Array<Viewport> viewports;
  21671. /* readonly */
  21672. int weakRefs;
  21673. /* readonly */
  21674. int width;
  21675. };
  21676. class RenderTargetInfo
  21677. {
  21678. public:
  21679. ~RenderTargetInfo();
  21680. RenderTargetInfo();
  21681. // Methods:
  21682. RenderTargetInfo& operator=(const RenderTargetInfo&);
  21683. void Load(const XMLElement&);
  21684. // Properties:
  21685. bool autoResolve;
  21686. bool cubemap;
  21687. bool enabled;
  21688. bool filtered;
  21689. uint format;
  21690. int multiSample;
  21691. String name;
  21692. bool persistent;
  21693. bool sRGB;
  21694. Vector2 size;
  21695. RenderTargetSizeMode sizeMode;
  21696. String tag;
  21697. };
  21698. class Renderer
  21699. {
  21700. public:
  21701. Renderer();
  21702. // Methods:
  21703. void ApplyShadowMapFilter(View, Texture2D, float);
  21704. void DrawDebugGeometry(bool);
  21705. const FrameInfo& GetFrameInfo() const;
  21706. bool GetBlockEvents() const;
  21707. Texture2D GetDefaultLightRamp() const;
  21708. Texture2D GetDefaultLightSpot() const;
  21709. Material GetDefaultMaterial() const;
  21710. RenderPath GetDefaultRenderPath() const;
  21711. Technique GetDefaultTechnique() const;
  21712. Zone GetDefaultZone() const;
  21713. RenderSurface GetDepthStencil(int, int, int, bool);
  21714. bool GetDrawShadows() const;
  21715. bool GetDynamicInstancing() const;
  21716. VariantMap& GetEventDataMap() const;
  21717. Object GetEventSender() const;
  21718. TextureCube GetFaceSelectCubeMap() const;
  21719. bool GetHDRRendering() const;
  21720. TextureCube GetIndirectionCubeMap() const;
  21721. VertexBuffer GetInstancingBuffer() const;
  21722. Geometry GetLightGeometry(Light);
  21723. uint GetMaterialQuality() const;
  21724. int GetMaxOccluderTriangles() const;
  21725. int GetMaxShadowMaps() const;
  21726. int GetMaxSortedInstances() const;
  21727. int GetMinInstances() const;
  21728. float GetMobileNormalOffsetMul() const;
  21729. float GetMobileShadowBiasAdd() const;
  21730. float GetMobileShadowBiasMul() const;
  21731. uint GetNumBatches() const;
  21732. int GetNumExtraInstancingBufferElements() const;
  21733. uint GetNumGeometries(bool = false) const;
  21734. uint GetNumLights(bool = false) const;
  21735. uint GetNumOccluders(bool = false) const;
  21736. uint GetNumPrimitives() const;
  21737. uint GetNumShadowMaps(bool = false) const;
  21738. uint GetNumViewports() const;
  21739. uint GetNumViews() const;
  21740. float GetOccluderSizeThreshold() const;
  21741. OcclusionBuffer GetOcclusionBuffer(Camera);
  21742. int GetOcclusionBufferSize() const;
  21743. View GetPreparedView(Camera);
  21744. Geometry GetQuadGeometry();
  21745. bool GetReuseShadowMaps() const;
  21746. Texture GetScreenBuffer(int, int, uint, int, bool, bool, bool, bool, uint = 0);
  21747. Camera GetShadowCamera();
  21748. Texture2D GetShadowMap(Light, Camera, uint, uint);
  21749. int GetShadowMapSize() const;
  21750. ShadowQuality GetShadowQuality() const;
  21751. float GetShadowSoftness() const;
  21752. bool GetSpecularLighting() const;
  21753. Object GetSubsystem(StringHash) const;
  21754. int GetTextureAnisotropy() const;
  21755. TextureFilterMode GetTextureFilterMode() const;
  21756. uint GetTextureQuality() const;
  21757. bool GetThreadedOcclusion() const;
  21758. StringHash GetType() const;
  21759. int GetVSMMultiSample() const;
  21760. Vector2 GetVSMShadowParameters() const;
  21761. Viewport GetViewport(uint) const;
  21762. Viewport GetViewportForScene(Scene, uint) const;
  21763. bool HasEventHandlers() const;
  21764. bool HasSubscribedToEvent(Object, StringHash) const;
  21765. bool HasSubscribedToEvent(StringHash) const;
  21766. bool IsInstanceOf(StringHash) const;
  21767. operator Object() const;
  21768. void OnEvent(Object, StringHash, VariantMap&);
  21769. void OptimizeLightByScissor(Light, Camera);
  21770. void OptimizeLightByStencil(Light, Camera);
  21771. void QueueRenderSurface(RenderSurface);
  21772. void QueueViewport(RenderSurface, Viewport);
  21773. const Rect& GetLightScissor(Light, Camera);
  21774. operator RefCounted() const;
  21775. int Refs() const;
  21776. void ReloadShaders();
  21777. void Render();
  21778. bool ResizeInstancingBuffer(uint);
  21779. void SendEvent(StringHash);
  21780. void SendEvent(StringHash, VariantMap&);
  21781. void SetBatchShaders(Batch&, Technique, bool, const BatchQueue&);
  21782. void SetBlockEvents(bool);
  21783. void SetCullMode(CullMode, Camera);
  21784. void SetDefaultRenderPath(RenderPath);
  21785. void SetDefaultRenderPath(XMLFile);
  21786. void SetDefaultTechnique(Technique);
  21787. void SetDrawShadows(bool);
  21788. void SetDynamicInstancing(bool);
  21789. void SetGlobalVar(StringHash, const Variant&);
  21790. void SetHDRRendering(bool);
  21791. void SetLightVolumeBatchShaders(Batch&, Camera, const String&, const String&, const String&, const String&);
  21792. void SetMaterialQuality(uint);
  21793. void SetMaxOccluderTriangles(int);
  21794. void SetMaxShadowMaps(int);
  21795. void SetMaxSortedInstances(int);
  21796. void SetMinInstances(int);
  21797. void SetMobileNormalOffsetMul(float);
  21798. void SetMobileShadowBiasAdd(float);
  21799. void SetMobileShadowBiasMul(float);
  21800. void SetNumExtraInstancingBufferElements(int);
  21801. void SetNumViewports(uint);
  21802. void SetOccluderSizeThreshold(float);
  21803. void SetOcclusionBufferSize(int);
  21804. void SetReuseShadowMaps(bool);
  21805. void SetShadowMapSize(int);
  21806. void SetShadowQuality(ShadowQuality);
  21807. void SetShadowSoftness(float);
  21808. void SetSpecularLighting(bool);
  21809. void SetTextureAnisotropy(int);
  21810. void SetTextureFilterMode(TextureFilterMode);
  21811. void SetTextureQuality(uint);
  21812. void SetThreadedOcclusion(bool);
  21813. void SetVSMMultiSample(int);
  21814. void SetVSMShadowParameters(float, float);
  21815. void SetViewport(uint, Viewport);
  21816. void StorePreparedView(View, Camera);
  21817. const String& GetCategory() const;
  21818. const String& GetTypeName() const;
  21819. void UnsubscribeFromAllEvents();
  21820. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  21821. void UnsubscribeFromEvent(Object, StringHash);
  21822. void UnsubscribeFromEvent(StringHash);
  21823. void UnsubscribeFromEvents(Object);
  21824. void Update(float);
  21825. const Variant& GetGlobalVar(StringHash) const;
  21826. const VariantMap& GetGlobalVars() const;
  21827. int WeakRefs() const;
  21828. operator const Object() const;
  21829. operator const RefCounted() const;
  21830. // Properties:
  21831. /* readonly */
  21832. String category;
  21833. /* readonly */
  21834. Texture2D defaultLightRamp;
  21835. /* readonly */
  21836. Texture2D defaultLightSpot;
  21837. /* readonly */
  21838. Material defaultMaterial;
  21839. RenderPath defaultRenderPath;
  21840. Technique defaultTechnique;
  21841. /* readonly */
  21842. Zone defaultZone;
  21843. bool drawShadows;
  21844. bool dynamicInstancing;
  21845. Array<Variant> globalVar;
  21846. /* readonly */
  21847. VariantMap globalVars;
  21848. bool hdrRendering;
  21849. uint materialQuality;
  21850. int maxOccluderTriangles;
  21851. int maxShadowMaps;
  21852. int maxSortedInstances;
  21853. int minInstances;
  21854. float mobileNormalOffsetMul;
  21855. float mobileShadowBiasAdd;
  21856. float mobileShadowBiasMul;
  21857. /* readonly */
  21858. uint numBatches;
  21859. int numExtraInstancingBufferElements;
  21860. /* readonly */
  21861. Array<uint> numGeometries;
  21862. /* readonly */
  21863. Array<uint> numLights;
  21864. /* readonly */
  21865. Array<uint> numOccluders;
  21866. /* readonly */
  21867. uint numPrimitives;
  21868. /* readonly */
  21869. Array<uint> numShadowMaps;
  21870. uint numViewports;
  21871. /* readonly */
  21872. uint numViews;
  21873. float occluderSizeThreshold;
  21874. int occlusionBufferSize;
  21875. /* readonly */
  21876. int refs;
  21877. bool reuseShadowMaps;
  21878. int shadowMapSize;
  21879. ShadowQuality shadowQuality;
  21880. float shadowSoftness;
  21881. bool specularLighting;
  21882. int textureAnisotropy;
  21883. TextureFilterMode textureFilterMode;
  21884. uint textureQuality;
  21885. bool threadedOcclusion;
  21886. /* readonly */
  21887. StringHash type;
  21888. /* readonly */
  21889. String typeName;
  21890. Array<Viewport> viewports;
  21891. int vsmMultiSample;
  21892. Vector2 vsmShadowParameters;
  21893. /* readonly */
  21894. int weakRefs;
  21895. };
  21896. class Renderer2D
  21897. {
  21898. public:
  21899. Renderer2D();
  21900. // Methods:
  21901. void AddDrawable(Drawable2D);
  21902. void AddLight(Light);
  21903. void AddVertexLight(Light);
  21904. void AllocateNetworkState();
  21905. operator Animatable() const;
  21906. void ApplyAttributes();
  21907. const BoundingBox& GetBoundingBox() const;
  21908. const BoundingBox& GetWorldBoundingBox();
  21909. bool CheckVisibility(Drawable2D) const;
  21910. void CleanupConnection(Connection);
  21911. operator Component() const;
  21912. void DrawDebugGeometry(DebugRenderer, bool);
  21913. bool DrawOcclusion(OcclusionBuffer);
  21914. operator Drawable() const;
  21915. bool GetAnimationEnabled() const;
  21916. Variant GetAttribute(const String&) const;
  21917. Variant GetAttribute(uint) const;
  21918. ValueAnimation GetAttributeAnimation(const String&) const;
  21919. float GetAttributeAnimationSpeed(const String&) const;
  21920. float GetAttributeAnimationTime(const String&) const;
  21921. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  21922. Variant GetAttributeDefault(const String&) const;
  21923. Variant GetAttributeDefault(uint) const;
  21924. bool GetBlockEvents() const;
  21925. bool GetCastShadows() const;
  21926. Component GetComponent(StringHash) const;
  21927. float GetDistance() const;
  21928. float GetDrawDistance() const;
  21929. uint8 GetDrawableFlags() const;
  21930. VariantMap& GetEventDataMap() const;
  21931. Object GetEventSender() const;
  21932. Light GetFirstLight() const;
  21933. uint GetID() const;
  21934. bool GetInterceptNetworkUpdate(const String&) const;
  21935. uint GetLightMask() const;
  21936. Array<Light> GetLights() const;
  21937. float GetLodBias() const;
  21938. float GetLodDistance() const;
  21939. Geometry GetLodGeometry(uint, uint);
  21940. Material GetMaterial(Texture2D, BlendMode);
  21941. uint GetMaxLights() const;
  21942. float GetMaxZ() const;
  21943. float GetMinZ() const;
  21944. Node GetNode() const;
  21945. uint GetNumAttributes() const;
  21946. uint GetNumNetworkAttributes() const;
  21947. uint GetNumOccluderTriangles();
  21948. ObjectAnimation GetObjectAnimation() const;
  21949. ResourceRef GetObjectAnimationAttr() const;
  21950. Scene GetScene() const;
  21951. float GetShadowDistance() const;
  21952. uint GetShadowMask() const;
  21953. float GetSortValue() const;
  21954. Object GetSubsystem(StringHash) const;
  21955. StringHash GetType() const;
  21956. UpdateGeometryType GetUpdateGeometryType();
  21957. Array<Light> GetVertexLights() const;
  21958. uint GetViewMask() const;
  21959. Zone GetZone() const;
  21960. uint GetZoneMask() const;
  21961. bool HasBasePass(uint) const;
  21962. bool HasEventHandlers() const;
  21963. bool HasSubscribedToEvent(Object, StringHash) const;
  21964. bool HasSubscribedToEvent(StringHash) const;
  21965. bool IsEnabled() const;
  21966. bool IsEnabledEffective() const;
  21967. bool IsInView() const;
  21968. bool IsInView(Camera) const;
  21969. bool IsInView(const FrameInfo&, bool = false) const;
  21970. bool IsInstanceOf(StringHash) const;
  21971. bool IsOccludee() const;
  21972. bool IsOccluder() const;
  21973. bool IsReplicated() const;
  21974. bool IsTemporary() const;
  21975. bool IsZoneDirty() const;
  21976. void LimitLights();
  21977. void LimitVertexLights(bool);
  21978. bool Load(Deserializer&);
  21979. bool LoadJSON(const JSONValue&);
  21980. bool LoadXML(const XMLElement&);
  21981. void MarkForUpdate();
  21982. void MarkInView(const FrameInfo&);
  21983. void MarkInView(uint);
  21984. void MarkNetworkUpdate();
  21985. operator Object() const;
  21986. void OnEvent(Object, StringHash, VariantMap&);
  21987. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  21988. void OnSetAttribute(const AttributeInfo&, const Variant&);
  21989. void OnSetEnabled();
  21990. void PrepareNetworkUpdate();
  21991. bool ReadDeltaUpdate(Deserializer&);
  21992. bool ReadLatestDataUpdate(Deserializer&);
  21993. operator RefCounted() const;
  21994. int Refs() const;
  21995. void Remove();
  21996. void RemoveAttributeAnimation(const String&);
  21997. void RemoveDrawable(Drawable2D);
  21998. void RemoveInstanceDefault();
  21999. void RemoveObjectAnimation();
  22000. void ResetToDefault();
  22001. bool Save(Serializer&) const;
  22002. bool SaveDefaultAttributes() const;
  22003. bool SaveJSON(JSONValue&) const;
  22004. bool SaveXML(XMLElement&) const;
  22005. void SendEvent(StringHash);
  22006. void SendEvent(StringHash, VariantMap&);
  22007. operator Serializable() const;
  22008. void SetAnimationEnabled(bool);
  22009. void SetAnimationTime(float);
  22010. bool SetAttribute(const String&, const Variant&);
  22011. bool SetAttribute(uint, const Variant&);
  22012. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  22013. void SetAttributeAnimationSpeed(const String&, float);
  22014. void SetAttributeAnimationTime(const String&, float);
  22015. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  22016. void SetBasePass(uint);
  22017. void SetBlockEvents(bool);
  22018. void SetCastShadows(bool);
  22019. void SetDrawDistance(float);
  22020. void SetEnabled(bool);
  22021. void SetGlobalVar(StringHash, const Variant&);
  22022. void SetInstanceDefault(bool);
  22023. void SetInterceptNetworkUpdate(const String&, bool);
  22024. void SetLightMask(uint);
  22025. void SetLodBias(float);
  22026. void SetMaxLights(uint);
  22027. void SetMinMaxZ(float, float);
  22028. void SetObjectAnimation(ObjectAnimation);
  22029. void SetObjectAnimationAttr(const ResourceRef&);
  22030. void SetOccludee(bool);
  22031. void SetOccluder(bool);
  22032. void SetShadowDistance(float);
  22033. void SetShadowMask(uint);
  22034. void SetSortValue(float);
  22035. void SetTemporary(bool);
  22036. void SetViewMask(uint);
  22037. void SetZone(Zone, bool = false);
  22038. void SetZoneMask(uint);
  22039. const String& GetCategory() const;
  22040. const String& GetTypeName() const;
  22041. void UnsubscribeFromAllEvents();
  22042. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22043. void UnsubscribeFromEvent(Object, StringHash);
  22044. void UnsubscribeFromEvent(StringHash);
  22045. void UnsubscribeFromEvents(Object);
  22046. void Update(const FrameInfo&);
  22047. void UpdateBatches(const FrameInfo&);
  22048. void UpdateGeometry(const FrameInfo&);
  22049. const Variant& GetGlobalVar(StringHash) const;
  22050. const VariantMap& GetGlobalVars() const;
  22051. int WeakRefs() const;
  22052. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  22053. void WriteInitialDeltaUpdate(Serializer&, uint8);
  22054. void WriteLatestDataUpdate(Serializer&, uint8);
  22055. operator const Animatable() const;
  22056. operator const Component() const;
  22057. operator const Drawable() const;
  22058. operator const Object() const;
  22059. operator const RefCounted() const;
  22060. operator const Serializable() const;
  22061. // Properties:
  22062. bool animationEnabled;
  22063. /* readonly */
  22064. Array<Variant> attributeDefaults;
  22065. /* readonly */
  22066. Array<AttributeInfo> attributeInfos;
  22067. Array<Variant> attributes;
  22068. /* readonly */
  22069. BoundingBox boundingBox;
  22070. bool castShadows;
  22071. /* readonly */
  22072. String category;
  22073. float drawDistance;
  22074. bool enabled;
  22075. /* readonly */
  22076. bool enabledEffective;
  22077. Array<Variant> globalVar;
  22078. /* readonly */
  22079. VariantMap globalVars;
  22080. /* readonly */
  22081. uint id;
  22082. /* readonly */
  22083. bool inView;
  22084. uint lightMask;
  22085. float lodBias;
  22086. uint maxLights;
  22087. /* readonly */
  22088. Node node;
  22089. /* readonly */
  22090. uint numAttributes;
  22091. ObjectAnimation objectAnimation;
  22092. bool occludee;
  22093. bool occluder;
  22094. /* readonly */
  22095. int refs;
  22096. /* readonly */
  22097. bool replicated;
  22098. float shadowDistance;
  22099. uint shadowMask;
  22100. bool temporary;
  22101. /* readonly */
  22102. StringHash type;
  22103. /* readonly */
  22104. String typeName;
  22105. uint viewMask;
  22106. /* readonly */
  22107. int weakRefs;
  22108. /* readonly */
  22109. BoundingBox worldBoundingBox;
  22110. /* readonly */
  22111. Zone zone;
  22112. uint zoneMask;
  22113. };
  22114. class ReplicationState
  22115. {
  22116. public:
  22117. ~ReplicationState();
  22118. ReplicationState();
  22119. // Methods:
  22120. ReplicationState& operator=(const ReplicationState&);
  22121. };
  22122. class Resource
  22123. {
  22124. public:
  22125. Resource();
  22126. // Methods:
  22127. operator Animation() const;
  22128. operator AnimationSet2D() const;
  22129. bool BeginLoad(Deserializer&);
  22130. bool EndLoad();
  22131. operator Font() const;
  22132. AsyncLoadState GetAsyncLoadState() const;
  22133. bool GetBlockEvents() const;
  22134. VariantMap& GetEventDataMap() const;
  22135. Object GetEventSender() const;
  22136. uint GetMemoryUse() const;
  22137. StringHash GetNameHash() const;
  22138. Object GetSubsystem(StringHash) const;
  22139. StringHash GetType() const;
  22140. uint GetUseTimer();
  22141. bool HasEventHandlers() const;
  22142. bool HasSubscribedToEvent(Object, StringHash) const;
  22143. bool HasSubscribedToEvent(StringHash) const;
  22144. operator Image() const;
  22145. bool IsInstanceOf(StringHash) const;
  22146. operator JSONFile() const;
  22147. bool Load(Deserializer&);
  22148. bool Load(File);
  22149. bool Load(VectorBuffer&);
  22150. bool Load(const String&);
  22151. bool LoadFile(const String&);
  22152. operator Material() const;
  22153. operator Model() const;
  22154. operator Object() const;
  22155. operator ObjectAnimation() const;
  22156. void OnEvent(Object, StringHash, VariantMap&);
  22157. operator ParticleEffect2D() const;
  22158. operator ParticleEffect() const;
  22159. operator RefCounted() const;
  22160. int Refs() const;
  22161. void ResetUseTimer();
  22162. operator ResourceWithMetadata() const;
  22163. bool Save(File) const;
  22164. bool Save(Serializer&) const;
  22165. bool Save(VectorBuffer&) const;
  22166. bool Save(const String&) const;
  22167. bool SaveFile(const String&) const;
  22168. void SendEvent(StringHash);
  22169. void SendEvent(StringHash, VariantMap&);
  22170. void SetAsyncLoadState(AsyncLoadState);
  22171. void SetBlockEvents(bool);
  22172. void SetGlobalVar(StringHash, const Variant&);
  22173. void SetMemoryUse(uint);
  22174. void SetName(const String&);
  22175. operator Shader() const;
  22176. operator Sound() const;
  22177. operator Sprite2D() const;
  22178. operator SpriteSheet2D() const;
  22179. const String& GetCategory() const;
  22180. const String& GetName() const;
  22181. const String& GetTypeName() const;
  22182. operator Technique() const;
  22183. operator Texture2D() const;
  22184. operator Texture2DArray() const;
  22185. operator Texture3D() const;
  22186. operator Texture() const;
  22187. operator TextureCube() const;
  22188. operator TmxFile2D() const;
  22189. void UnsubscribeFromAllEvents();
  22190. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22191. void UnsubscribeFromEvent(Object, StringHash);
  22192. void UnsubscribeFromEvent(StringHash);
  22193. void UnsubscribeFromEvents(Object);
  22194. operator ValueAnimation() const;
  22195. const Variant& GetGlobalVar(StringHash) const;
  22196. const VariantMap& GetGlobalVars() const;
  22197. int WeakRefs() const;
  22198. operator XMLFile() const;
  22199. operator const Animation() const;
  22200. operator const AnimationSet2D() const;
  22201. operator const Font() const;
  22202. operator const Image() const;
  22203. operator const JSONFile() const;
  22204. operator const Material() const;
  22205. operator const Model() const;
  22206. operator const Object() const;
  22207. operator const ObjectAnimation() const;
  22208. operator const ParticleEffect2D() const;
  22209. operator const ParticleEffect() const;
  22210. operator const RefCounted() const;
  22211. operator const ResourceWithMetadata() const;
  22212. operator const Shader() const;
  22213. operator const Sound() const;
  22214. operator const Sprite2D() const;
  22215. operator const SpriteSheet2D() const;
  22216. operator const Technique() const;
  22217. operator const Texture2D() const;
  22218. operator const Texture2DArray() const;
  22219. operator const Texture3D() const;
  22220. operator const Texture() const;
  22221. operator const TextureCube() const;
  22222. operator const TmxFile2D() const;
  22223. operator const ValueAnimation() const;
  22224. operator const XMLFile() const;
  22225. // Properties:
  22226. /* readonly */
  22227. String category;
  22228. Array<Variant> globalVar;
  22229. /* readonly */
  22230. VariantMap globalVars;
  22231. /* readonly */
  22232. uint memoryUse;
  22233. String name;
  22234. /* readonly */
  22235. int refs;
  22236. /* readonly */
  22237. StringHash type;
  22238. /* readonly */
  22239. String typeName;
  22240. /* readonly */
  22241. uint useTimer;
  22242. /* readonly */
  22243. int weakRefs;
  22244. };
  22245. class ResourceCache
  22246. {
  22247. public:
  22248. ResourceCache();
  22249. // Methods:
  22250. bool AddManualResource(Resource);
  22251. bool AddPackageFile(PackageFile, uint = PRIORITY_LAST);
  22252. bool AddPackageFile(const String&, uint = PRIORITY_LAST);
  22253. bool AddResourceDir(const String&, uint = PRIORITY_LAST);
  22254. bool BackgroundLoadResource(StringHash, const String&, bool = true, Resource = null);
  22255. bool Exists(const String&) const;
  22256. bool GetAutoReloadResources() const;
  22257. bool GetBlockEvents() const;
  22258. VariantMap& GetEventDataMap() const;
  22259. Object GetEventSender() const;
  22260. Resource GetExistingResource(StringHash, const String&);
  22261. File GetFile(const String&, bool = true);
  22262. int GetFinishBackgroundResourcesMs() const;
  22263. uint64 GetMemoryBudget(StringHash) const;
  22264. uint64 GetMemoryUse(StringHash) const;
  22265. uint GetNumBackgroundLoadResources() const;
  22266. Array<PackageFile> GetPackageFiles() const;
  22267. String GetPreferredResourceDir(const String&) const;
  22268. Resource GetResource(StringHash, const String&, bool = true);
  22269. Array<String> GetResourceDirs() const;
  22270. String GetResourceFileName(const String&) const;
  22271. Array<Resource> GetResources(StringHash);
  22272. bool GetReturnFailedResources() const;
  22273. bool GetSearchPackagesFirst() const;
  22274. Object GetSubsystem(StringHash) const;
  22275. Resource GetTempResource(StringHash, const String&, bool = true);
  22276. uint64 GetTotalMemoryUse() const;
  22277. StringHash GetType() const;
  22278. bool HasEventHandlers() const;
  22279. bool HasSubscribedToEvent(Object, StringHash) const;
  22280. bool HasSubscribedToEvent(StringHash) const;
  22281. bool IsInstanceOf(StringHash) const;
  22282. operator Object() const;
  22283. void OnEvent(Object, StringHash, VariantMap&);
  22284. String PrintMemoryUsage() const;
  22285. operator RefCounted() const;
  22286. int Refs() const;
  22287. void ReleaseAllResources(bool = false);
  22288. void ReleaseResource(StringHash, const String&, bool = false);
  22289. void ReleaseResources(StringHash, bool = false);
  22290. void ReleaseResources(StringHash, const String&, bool = false);
  22291. void ReleaseResources(const String&, bool = false);
  22292. bool ReloadResource(Resource);
  22293. void ReloadResourceWithDependencies(const String&);
  22294. void RemovePackageFile(PackageFile, bool = true, bool = false);
  22295. void RemovePackageFile(const String&, bool = true, bool = false);
  22296. void RemoveResourceDir(const String&);
  22297. void ResetDependencies(Resource);
  22298. String SanitateResourceDirName(const String&) const;
  22299. String SanitateResourceName(const String&) const;
  22300. void SendEvent(StringHash);
  22301. void SendEvent(StringHash, VariantMap&);
  22302. void SetAutoReloadResources(bool);
  22303. void SetBlockEvents(bool);
  22304. void SetFinishBackgroundResourcesMs(int);
  22305. void SetGlobalVar(StringHash, const Variant&);
  22306. void SetMemoryBudget(StringHash, uint64);
  22307. void SetReturnFailedResources(bool);
  22308. void SetSearchPackagesFirst(bool);
  22309. void StoreResourceDependency(Resource, const String&);
  22310. const String& GetCategory() const;
  22311. const String& GetTypeName() const;
  22312. void UnsubscribeFromAllEvents();
  22313. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22314. void UnsubscribeFromEvent(Object, StringHash);
  22315. void UnsubscribeFromEvent(StringHash);
  22316. void UnsubscribeFromEvents(Object);
  22317. const Variant& GetGlobalVar(StringHash) const;
  22318. const VariantMap& GetGlobalVars() const;
  22319. int WeakRefs() const;
  22320. operator const Object() const;
  22321. operator const RefCounted() const;
  22322. // Properties:
  22323. bool autoReloadResources;
  22324. /* readonly */
  22325. String category;
  22326. int finishBackgroundResourcesMs;
  22327. Array<Variant> globalVar;
  22328. /* readonly */
  22329. VariantMap globalVars;
  22330. Array<uint64> memoryBudget;
  22331. /* readonly */
  22332. Array<uint64> memoryUse;
  22333. /* readonly */
  22334. uint numBackgroundLoadResources;
  22335. /* readonly */
  22336. Array<PackageFile> packageFiles;
  22337. /* readonly */
  22338. int refs;
  22339. /* readonly */
  22340. Array<String> resourceDirs;
  22341. bool returnFailedResources;
  22342. bool searchPackagesFirst;
  22343. /* readonly */
  22344. uint64 totalMemoryUse;
  22345. /* readonly */
  22346. StringHash type;
  22347. /* readonly */
  22348. String typeName;
  22349. /* readonly */
  22350. int weakRefs;
  22351. };
  22352. class ResourceGroup
  22353. {
  22354. public:
  22355. ~ResourceGroup();
  22356. ResourceGroup();
  22357. // Methods:
  22358. ResourceGroup& operator=(const ResourceGroup&);
  22359. // Properties:
  22360. uint64 memoryBudget;
  22361. uint64 memoryUse;
  22362. };
  22363. class ResourceRef
  22364. {
  22365. public:
  22366. ~ResourceRef();
  22367. ResourceRef();
  22368. ResourceRef(StringHash);
  22369. ResourceRef(StringHash, const String&in);
  22370. ResourceRef(const String&in, const String&in);
  22371. ResourceRef(const ResourceRef&in);
  22372. // Methods:
  22373. ResourceRef& operator=(const ResourceRef&);
  22374. bool operator==(const ResourceRef&) const;
  22375. // Properties:
  22376. String name;
  22377. StringHash type;
  22378. };
  22379. class ResourceRefList
  22380. {
  22381. public:
  22382. ~ResourceRefList();
  22383. ResourceRefList();
  22384. ResourceRefList(StringHash);
  22385. ResourceRefList(StringHash, String[]@);
  22386. // Methods:
  22387. ResourceRefList& operator=(const ResourceRefList&);
  22388. bool operator==(const ResourceRefList&) const;
  22389. void Resize(uint);
  22390. // Properties:
  22391. /* readonly */
  22392. bool empty;
  22393. /* readonly */
  22394. uint length;
  22395. Array<String> names;
  22396. StringHash type;
  22397. };
  22398. class ResourceWithMetadata
  22399. {
  22400. public:
  22401. ResourceWithMetadata();
  22402. // Methods:
  22403. void AddMetadata(const String&, const Variant&);
  22404. operator Animation() const;
  22405. bool BeginLoad(Deserializer&);
  22406. bool EndLoad();
  22407. AsyncLoadState GetAsyncLoadState() const;
  22408. bool GetBlockEvents() const;
  22409. VariantMap& GetEventDataMap() const;
  22410. Object GetEventSender() const;
  22411. uint GetMemoryUse() const;
  22412. StringHash GetNameHash() const;
  22413. Object GetSubsystem(StringHash) const;
  22414. StringHash GetType() const;
  22415. uint GetUseTimer();
  22416. bool HasEventHandlers() const;
  22417. bool HasMetadata() const;
  22418. bool HasSubscribedToEvent(Object, StringHash) const;
  22419. bool HasSubscribedToEvent(StringHash) const;
  22420. bool IsInstanceOf(StringHash) const;
  22421. bool Load(Deserializer&);
  22422. bool Load(File);
  22423. bool Load(VectorBuffer&);
  22424. bool Load(const String&);
  22425. bool LoadFile(const String&);
  22426. operator Model() const;
  22427. operator Object() const;
  22428. void OnEvent(Object, StringHash, VariantMap&);
  22429. operator RefCounted() const;
  22430. int Refs() const;
  22431. void RemoveAllMetadata();
  22432. void RemoveMetadata(const String&);
  22433. void ResetUseTimer();
  22434. operator Resource() const;
  22435. bool Save(File) const;
  22436. bool Save(Serializer&) const;
  22437. bool Save(VectorBuffer&) const;
  22438. bool Save(const String&) const;
  22439. bool SaveFile(const String&) const;
  22440. void SendEvent(StringHash);
  22441. void SendEvent(StringHash, VariantMap&);
  22442. void SetAsyncLoadState(AsyncLoadState);
  22443. void SetBlockEvents(bool);
  22444. void SetGlobalVar(StringHash, const Variant&);
  22445. void SetMemoryUse(uint);
  22446. void SetName(const String&);
  22447. operator Sound() const;
  22448. const String& GetCategory() const;
  22449. const String& GetName() const;
  22450. const String& GetTypeName() const;
  22451. operator Texture2D() const;
  22452. operator Texture2DArray() const;
  22453. operator Texture3D() const;
  22454. operator Texture() const;
  22455. operator TextureCube() const;
  22456. void UnsubscribeFromAllEvents();
  22457. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22458. void UnsubscribeFromEvent(Object, StringHash);
  22459. void UnsubscribeFromEvent(StringHash);
  22460. void UnsubscribeFromEvents(Object);
  22461. const Variant& GetGlobalVar(StringHash) const;
  22462. const Variant& GetMetadata(const String&) const;
  22463. const VariantMap& GetGlobalVars() const;
  22464. int WeakRefs() const;
  22465. operator const Animation() const;
  22466. operator const Model() const;
  22467. operator const Object() const;
  22468. operator const RefCounted() const;
  22469. operator const Resource() const;
  22470. operator const Sound() const;
  22471. operator const Texture2D() const;
  22472. operator const Texture2DArray() const;
  22473. operator const Texture3D() const;
  22474. operator const Texture() const;
  22475. operator const TextureCube() const;
  22476. // Properties:
  22477. /* readonly */
  22478. String category;
  22479. Array<Variant> globalVar;
  22480. /* readonly */
  22481. VariantMap globalVars;
  22482. /* readonly */
  22483. bool hasMetadata;
  22484. /* readonly */
  22485. uint memoryUse;
  22486. Array<Variant> metadata;
  22487. String name;
  22488. /* readonly */
  22489. int refs;
  22490. /* readonly */
  22491. StringHash type;
  22492. /* readonly */
  22493. String typeName;
  22494. /* readonly */
  22495. uint useTimer;
  22496. /* readonly */
  22497. int weakRefs;
  22498. };
  22499. class RibbonTrail
  22500. {
  22501. public:
  22502. RibbonTrail();
  22503. // Methods:
  22504. void AddLight(Light);
  22505. void AddVertexLight(Light);
  22506. void AllocateNetworkState();
  22507. operator Animatable() const;
  22508. void ApplyAttributes();
  22509. const BoundingBox& GetBoundingBox() const;
  22510. const BoundingBox& GetWorldBoundingBox();
  22511. void CleanupConnection(Connection);
  22512. const Color& GetEndColor() const;
  22513. const Color& GetStartColor() const;
  22514. void Commit();
  22515. operator Component() const;
  22516. void DrawDebugGeometry(DebugRenderer, bool);
  22517. bool DrawOcclusion(OcclusionBuffer);
  22518. operator Drawable() const;
  22519. bool GetAnimationEnabled() const;
  22520. float GetAnimationLodBias() const;
  22521. Variant GetAttribute(const String&) const;
  22522. Variant GetAttribute(uint) const;
  22523. ValueAnimation GetAttributeAnimation(const String&) const;
  22524. float GetAttributeAnimationSpeed(const String&) const;
  22525. float GetAttributeAnimationTime(const String&) const;
  22526. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  22527. Variant GetAttributeDefault(const String&) const;
  22528. Variant GetAttributeDefault(uint) const;
  22529. bool GetBlockEvents() const;
  22530. bool GetCastShadows() const;
  22531. Component GetComponent(StringHash) const;
  22532. float GetDistance() const;
  22533. float GetDrawDistance() const;
  22534. uint8 GetDrawableFlags() const;
  22535. float GetEndScale() const;
  22536. VariantMap& GetEventDataMap() const;
  22537. Object GetEventSender() const;
  22538. Light GetFirstLight() const;
  22539. uint GetID() const;
  22540. bool GetInterceptNetworkUpdate(const String&) const;
  22541. float GetLifetime() const;
  22542. uint GetLightMask() const;
  22543. Array<Light> GetLights() const;
  22544. float GetLodBias() const;
  22545. float GetLodDistance() const;
  22546. Geometry GetLodGeometry(uint, uint);
  22547. Material GetMaterial() const;
  22548. ResourceRef GetMaterialAttr() const;
  22549. uint GetMaxLights() const;
  22550. float GetMaxZ() const;
  22551. float GetMinZ() const;
  22552. Node GetNode() const;
  22553. uint GetNumAttributes() const;
  22554. uint GetNumNetworkAttributes() const;
  22555. uint GetNumOccluderTriangles();
  22556. ObjectAnimation GetObjectAnimation() const;
  22557. ResourceRef GetObjectAnimationAttr() const;
  22558. Scene GetScene() const;
  22559. float GetShadowDistance() const;
  22560. uint GetShadowMask() const;
  22561. float GetSortValue() const;
  22562. float GetStartScale() const;
  22563. Object GetSubsystem(StringHash) const;
  22564. uint GetTailColumn() const;
  22565. TrailType GetTrailType() const;
  22566. StringHash GetType() const;
  22567. UpdateGeometryType GetUpdateGeometryType();
  22568. bool GetUpdateInvisible() const;
  22569. float GetVertexDistance() const;
  22570. Array<Light> GetVertexLights() const;
  22571. uint GetViewMask() const;
  22572. float GetWidth() const;
  22573. Zone GetZone() const;
  22574. uint GetZoneMask() const;
  22575. bool HasBasePass(uint) const;
  22576. bool HasEventHandlers() const;
  22577. bool HasSubscribedToEvent(Object, StringHash) const;
  22578. bool HasSubscribedToEvent(StringHash) const;
  22579. bool IsEmitting() const;
  22580. bool IsEnabled() const;
  22581. bool IsEnabledEffective() const;
  22582. bool IsInView() const;
  22583. bool IsInView(Camera) const;
  22584. bool IsInView(const FrameInfo&, bool = false) const;
  22585. bool IsInstanceOf(StringHash) const;
  22586. bool IsOccludee() const;
  22587. bool IsOccluder() const;
  22588. bool IsReplicated() const;
  22589. bool IsSorted() const;
  22590. bool IsTemporary() const;
  22591. bool IsZoneDirty() const;
  22592. void LimitLights();
  22593. void LimitVertexLights(bool);
  22594. bool Load(Deserializer&);
  22595. bool LoadJSON(const JSONValue&);
  22596. bool LoadXML(const XMLElement&);
  22597. void MarkForUpdate();
  22598. void MarkInView(const FrameInfo&);
  22599. void MarkInView(uint);
  22600. void MarkNetworkUpdate();
  22601. operator Object() const;
  22602. void OnEvent(Object, StringHash, VariantMap&);
  22603. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  22604. void OnSetAttribute(const AttributeInfo&, const Variant&);
  22605. void OnSetEnabled();
  22606. void PrepareNetworkUpdate();
  22607. bool ReadDeltaUpdate(Deserializer&);
  22608. bool ReadLatestDataUpdate(Deserializer&);
  22609. operator RefCounted() const;
  22610. int Refs() const;
  22611. void Remove();
  22612. void RemoveAttributeAnimation(const String&);
  22613. void RemoveInstanceDefault();
  22614. void RemoveObjectAnimation();
  22615. void ResetToDefault();
  22616. bool Save(Serializer&) const;
  22617. bool SaveDefaultAttributes() const;
  22618. bool SaveJSON(JSONValue&) const;
  22619. bool SaveXML(XMLElement&) const;
  22620. void SendEvent(StringHash);
  22621. void SendEvent(StringHash, VariantMap&);
  22622. operator Serializable() const;
  22623. void SetAnimationEnabled(bool);
  22624. void SetAnimationLodBias(float);
  22625. void SetAnimationTime(float);
  22626. bool SetAttribute(const String&, const Variant&);
  22627. bool SetAttribute(uint, const Variant&);
  22628. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  22629. void SetAttributeAnimationSpeed(const String&, float);
  22630. void SetAttributeAnimationTime(const String&, float);
  22631. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  22632. void SetBasePass(uint);
  22633. void SetBaseVelocity(const Vector3&);
  22634. void SetBlockEvents(bool);
  22635. void SetCastShadows(bool);
  22636. void SetDrawDistance(float);
  22637. void SetEmitting(bool);
  22638. void SetEnabled(bool);
  22639. void SetEndColor(const Color&);
  22640. void SetEndScale(float);
  22641. void SetGlobalVar(StringHash, const Variant&);
  22642. void SetInstanceDefault(bool);
  22643. void SetInterceptNetworkUpdate(const String&, bool);
  22644. void SetLifetime(float);
  22645. void SetLightMask(uint);
  22646. void SetLodBias(float);
  22647. void SetMaterial(Material);
  22648. void SetMaterialAttr(const ResourceRef&);
  22649. void SetMaxLights(uint);
  22650. void SetMinMaxZ(float, float);
  22651. void SetObjectAnimation(ObjectAnimation);
  22652. void SetObjectAnimationAttr(const ResourceRef&);
  22653. void SetOccludee(bool);
  22654. void SetOccluder(bool);
  22655. void SetShadowDistance(float);
  22656. void SetShadowMask(uint);
  22657. void SetSortValue(float);
  22658. void SetSorted(bool);
  22659. void SetStartColor(const Color&);
  22660. void SetStartScale(float);
  22661. void SetTailColumn(uint);
  22662. void SetTemporary(bool);
  22663. void SetTrailType(TrailType);
  22664. void SetUpdateInvisible(bool);
  22665. void SetVertexDistance(float);
  22666. void SetViewMask(uint);
  22667. void SetWidth(float);
  22668. void SetZone(Zone, bool = false);
  22669. void SetZoneMask(uint);
  22670. const String& GetCategory() const;
  22671. const String& GetTypeName() const;
  22672. void UnsubscribeFromAllEvents();
  22673. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22674. void UnsubscribeFromEvent(Object, StringHash);
  22675. void UnsubscribeFromEvent(StringHash);
  22676. void UnsubscribeFromEvents(Object);
  22677. void Update(const FrameInfo&);
  22678. void UpdateBatches(const FrameInfo&);
  22679. void UpdateGeometry(const FrameInfo&);
  22680. const Variant& GetGlobalVar(StringHash) const;
  22681. const VariantMap& GetGlobalVars() const;
  22682. const Vector3& GetBaseVelocity() const;
  22683. int WeakRefs() const;
  22684. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  22685. void WriteInitialDeltaUpdate(Serializer&, uint8);
  22686. void WriteLatestDataUpdate(Serializer&, uint8);
  22687. operator const Animatable() const;
  22688. operator const Component() const;
  22689. operator const Drawable() const;
  22690. operator const Object() const;
  22691. operator const RefCounted() const;
  22692. operator const Serializable() const;
  22693. // Properties:
  22694. bool animationEnabled;
  22695. float animationLodBias;
  22696. /* readonly */
  22697. Array<Variant> attributeDefaults;
  22698. /* readonly */
  22699. Array<AttributeInfo> attributeInfos;
  22700. Array<Variant> attributes;
  22701. Vector3 baseVelocity;
  22702. /* readonly */
  22703. BoundingBox boundingBox;
  22704. bool castShadows;
  22705. /* readonly */
  22706. String category;
  22707. float drawDistance;
  22708. bool emitting;
  22709. bool enabled;
  22710. /* readonly */
  22711. bool enabledEffective;
  22712. Color endColor;
  22713. float endScale;
  22714. Array<Variant> globalVar;
  22715. /* readonly */
  22716. VariantMap globalVars;
  22717. /* readonly */
  22718. uint id;
  22719. /* readonly */
  22720. bool inView;
  22721. float lifetime;
  22722. uint lightMask;
  22723. float lodBias;
  22724. Material material;
  22725. uint maxLights;
  22726. /* readonly */
  22727. Node node;
  22728. /* readonly */
  22729. uint numAttributes;
  22730. ObjectAnimation objectAnimation;
  22731. bool occludee;
  22732. bool occluder;
  22733. /* readonly */
  22734. int refs;
  22735. /* readonly */
  22736. bool replicated;
  22737. float shadowDistance;
  22738. uint shadowMask;
  22739. bool sorted;
  22740. Color startColor;
  22741. float startScale;
  22742. uint tailColumn;
  22743. bool temporary;
  22744. TrailType trailType;
  22745. /* readonly */
  22746. StringHash type;
  22747. /* readonly */
  22748. String typeName;
  22749. bool updateInvisible;
  22750. float vertexDistance;
  22751. uint viewMask;
  22752. /* readonly */
  22753. int weakRefs;
  22754. float width;
  22755. /* readonly */
  22756. BoundingBox worldBoundingBox;
  22757. /* readonly */
  22758. Zone zone;
  22759. uint zoneMask;
  22760. };
  22761. class RigidBody
  22762. {
  22763. public:
  22764. RigidBody();
  22765. // Methods:
  22766. void Activate();
  22767. void AddConstraint(Constraint);
  22768. void AllocateNetworkState();
  22769. operator Animatable() const;
  22770. void ApplyAttributes();
  22771. void ApplyForce(const Vector3&);
  22772. void ApplyForce(const Vector3&, const Vector3&);
  22773. void ApplyImpulse(const Vector3&);
  22774. void ApplyImpulse(const Vector3&, const Vector3&);
  22775. void ApplyTorque(const Vector3&);
  22776. void ApplyTorqueImpulse(const Vector3&);
  22777. void ApplyWorldTransform(const Vector3&, const Quaternion&);
  22778. void CleanupConnection(Connection);
  22779. operator Component() const;
  22780. void DisableMassUpdate();
  22781. void DrawDebugGeometry(DebugRenderer, bool);
  22782. void EnableMassUpdate();
  22783. float GetAngularDamping() const;
  22784. Vector3 GetAngularFactor() const;
  22785. float GetAngularRestThreshold() const;
  22786. Vector3 GetAngularVelocity() const;
  22787. bool GetAnimationEnabled() const;
  22788. Vector3 GetAnisotropicFriction() const;
  22789. Variant GetAttribute(const String&) const;
  22790. Variant GetAttribute(uint) const;
  22791. ValueAnimation GetAttributeAnimation(const String&) const;
  22792. float GetAttributeAnimationSpeed(const String&) const;
  22793. float GetAttributeAnimationTime(const String&) const;
  22794. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  22795. Variant GetAttributeDefault(const String&) const;
  22796. Variant GetAttributeDefault(uint) const;
  22797. bool GetBlockEvents() const;
  22798. float GetCcdMotionThreshold() const;
  22799. float GetCcdRadius() const;
  22800. CollisionEventMode GetCollisionEventMode() const;
  22801. uint GetCollisionLayer() const;
  22802. uint GetCollisionMask() const;
  22803. Component GetComponent(StringHash) const;
  22804. float GetContactProcessingThreshold() const;
  22805. VariantMap& GetEventDataMap() const;
  22806. Object GetEventSender() const;
  22807. float GetFriction() const;
  22808. uint GetID() const;
  22809. bool GetInterceptNetworkUpdate(const String&) const;
  22810. float GetLinearDamping() const;
  22811. Vector3 GetLinearFactor() const;
  22812. float GetLinearRestThreshold() const;
  22813. Vector3 GetLinearVelocity() const;
  22814. float GetMass() const;
  22815. Node GetNode() const;
  22816. uint GetNumAttributes() const;
  22817. uint GetNumNetworkAttributes() const;
  22818. ObjectAnimation GetObjectAnimation() const;
  22819. ResourceRef GetObjectAnimationAttr() const;
  22820. PhysicsWorld GetPhysicsWorld() const;
  22821. Vector3 GetPosition() const;
  22822. float GetRestitution() const;
  22823. float GetRollingFriction() const;
  22824. Quaternion GetRotation() const;
  22825. Scene GetScene() const;
  22826. Object GetSubsystem(StringHash) const;
  22827. StringHash GetType() const;
  22828. bool GetUseGravity() const;
  22829. Vector3 GetVelocityAtPoint(const Vector3&) const;
  22830. bool HasEventHandlers() const;
  22831. bool HasSubscribedToEvent(Object, StringHash) const;
  22832. bool HasSubscribedToEvent(StringHash) const;
  22833. bool IsActive() const;
  22834. bool IsEnabled() const;
  22835. bool IsEnabledEffective() const;
  22836. bool IsInstanceOf(StringHash) const;
  22837. bool IsKinematic() const;
  22838. bool IsReplicated() const;
  22839. bool IsTemporary() const;
  22840. bool IsTrigger() const;
  22841. bool Load(Deserializer&);
  22842. bool LoadJSON(const JSONValue&);
  22843. bool LoadXML(const XMLElement&);
  22844. void MarkNetworkUpdate();
  22845. operator Object() const;
  22846. void OnEvent(Object, StringHash, VariantMap&);
  22847. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  22848. void OnSetAttribute(const AttributeInfo&, const Variant&);
  22849. void OnSetEnabled();
  22850. void PrepareNetworkUpdate();
  22851. void ReAddBodyToWorld();
  22852. bool ReadDeltaUpdate(Deserializer&);
  22853. bool ReadLatestDataUpdate(Deserializer&);
  22854. operator RefCounted() const;
  22855. int Refs() const;
  22856. void ReleaseBody();
  22857. void Remove();
  22858. void RemoveAttributeAnimation(const String&);
  22859. void RemoveConstraint(Constraint);
  22860. void RemoveInstanceDefault();
  22861. void RemoveObjectAnimation();
  22862. void ResetForces();
  22863. void ResetToDefault();
  22864. bool Save(Serializer&) const;
  22865. bool SaveDefaultAttributes() const;
  22866. bool SaveJSON(JSONValue&) const;
  22867. bool SaveXML(XMLElement&) const;
  22868. void SendEvent(StringHash);
  22869. void SendEvent(StringHash, VariantMap&);
  22870. operator Serializable() const;
  22871. void SetAngularDamping(float);
  22872. void SetAngularFactor(const Vector3&);
  22873. void SetAngularRestThreshold(float);
  22874. void SetAngularVelocity(const Vector3&);
  22875. void SetAnimationEnabled(bool);
  22876. void SetAnimationTime(float);
  22877. void SetAnisotropicFriction(const Vector3&);
  22878. bool SetAttribute(const String&, const Variant&);
  22879. bool SetAttribute(uint, const Variant&);
  22880. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  22881. void SetAttributeAnimationSpeed(const String&, float);
  22882. void SetAttributeAnimationTime(const String&, float);
  22883. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  22884. void SetBlockEvents(bool);
  22885. void SetCcdMotionThreshold(float);
  22886. void SetCcdRadius(float);
  22887. void SetCollisionEventMode(CollisionEventMode);
  22888. void SetCollisionLayer(uint);
  22889. void SetCollisionLayerAndMask(uint, uint);
  22890. void SetCollisionMask(uint);
  22891. void SetContactProcessingThreshold(float);
  22892. void SetEnabled(bool);
  22893. void SetFriction(float);
  22894. void SetGlobalVar(StringHash, const Variant&);
  22895. void SetGravityOverride(const Vector3&);
  22896. void SetInstanceDefault(bool);
  22897. void SetInterceptNetworkUpdate(const String&, bool);
  22898. void SetKinematic(bool);
  22899. void SetLinearDamping(float);
  22900. void SetLinearFactor(const Vector3&);
  22901. void SetLinearRestThreshold(float);
  22902. void SetLinearVelocity(const Vector3&);
  22903. void SetMass(float);
  22904. void SetObjectAnimation(ObjectAnimation);
  22905. void SetObjectAnimationAttr(const ResourceRef&);
  22906. void SetPosition(const Vector3&);
  22907. void SetRestitution(float);
  22908. void SetRollingFriction(float);
  22909. void SetRotation(const Quaternion&);
  22910. void SetTemporary(bool);
  22911. void SetTransform(const Vector3&, const Quaternion&);
  22912. void SetTrigger(bool);
  22913. void SetUseGravity(bool);
  22914. const String& GetCategory() const;
  22915. const String& GetTypeName() const;
  22916. void UnsubscribeFromAllEvents();
  22917. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22918. void UnsubscribeFromEvent(Object, StringHash);
  22919. void UnsubscribeFromEvent(StringHash);
  22920. void UnsubscribeFromEvents(Object);
  22921. void UpdateGravity();
  22922. void UpdateMass();
  22923. const Variant& GetGlobalVar(StringHash) const;
  22924. const VariantMap& GetGlobalVars() const;
  22925. const Vector3& GetCenterOfMass() const;
  22926. const Vector3& GetGravityOverride() const;
  22927. int WeakRefs() const;
  22928. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  22929. void WriteInitialDeltaUpdate(Serializer&, uint8);
  22930. void WriteLatestDataUpdate(Serializer&, uint8);
  22931. operator const Animatable() const;
  22932. operator const Component() const;
  22933. operator const Object() const;
  22934. operator const RefCounted() const;
  22935. operator const Serializable() const;
  22936. // Properties:
  22937. /* readonly */
  22938. bool active;
  22939. float angularDamping;
  22940. Vector3 angularFactor;
  22941. float angularRestThreshold;
  22942. Vector3 angularVelocity;
  22943. bool animationEnabled;
  22944. Vector3 anisotropicFriction;
  22945. /* readonly */
  22946. Array<Variant> attributeDefaults;
  22947. /* readonly */
  22948. Array<AttributeInfo> attributeInfos;
  22949. Array<Variant> attributes;
  22950. /* readonly */
  22951. String category;
  22952. float ccdMotionThreshold;
  22953. float ccdRadius;
  22954. /* readonly */
  22955. Vector3 centerOfMass;
  22956. /* readonly */
  22957. Array<RigidBody> collidingBodies;
  22958. CollisionEventMode collisionEventMode;
  22959. uint collisionLayer;
  22960. uint collisionMask;
  22961. float contactProcessingThreshold;
  22962. bool enabled;
  22963. /* readonly */
  22964. bool enabledEffective;
  22965. float friction;
  22966. Array<Variant> globalVar;
  22967. /* readonly */
  22968. VariantMap globalVars;
  22969. Vector3 gravityOverride;
  22970. /* readonly */
  22971. uint id;
  22972. bool kinematic;
  22973. float linearDamping;
  22974. Vector3 linearFactor;
  22975. float linearRestThreshold;
  22976. Vector3 linearVelocity;
  22977. float mass;
  22978. /* readonly */
  22979. Node node;
  22980. /* readonly */
  22981. uint numAttributes;
  22982. ObjectAnimation objectAnimation;
  22983. Vector3 position;
  22984. /* readonly */
  22985. int refs;
  22986. /* readonly */
  22987. bool replicated;
  22988. float restitution;
  22989. float rollingFriction;
  22990. Quaternion rotation;
  22991. bool temporary;
  22992. bool trigger;
  22993. /* readonly */
  22994. StringHash type;
  22995. /* readonly */
  22996. String typeName;
  22997. bool useGravity;
  22998. /* readonly */
  22999. int weakRefs;
  23000. };
  23001. class RigidBody2D
  23002. {
  23003. public:
  23004. RigidBody2D();
  23005. // Methods:
  23006. void AddCollisionShape2D(CollisionShape2D);
  23007. void AddConstraint2D(Constraint2D);
  23008. void AllocateNetworkState();
  23009. operator Animatable() const;
  23010. void ApplyAngularImpulse(float, bool);
  23011. void ApplyAttributes();
  23012. void ApplyForce(const Vector2&, const Vector2&, bool);
  23013. void ApplyForceToCenter(const Vector2&, bool);
  23014. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  23015. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  23016. void ApplyTorque(float, bool);
  23017. void ApplyWorldTransform();
  23018. void ApplyWorldTransform(const Vector3&, const Quaternion&);
  23019. void CleanupConnection(Connection);
  23020. operator Component() const;
  23021. void CreateBody();
  23022. void DrawDebugGeometry(DebugRenderer, bool);
  23023. float GetAngularDamping() const;
  23024. float GetAngularVelocity() const;
  23025. bool GetAnimationEnabled() const;
  23026. Variant GetAttribute(const String&) const;
  23027. Variant GetAttribute(uint) const;
  23028. ValueAnimation GetAttributeAnimation(const String&) const;
  23029. float GetAttributeAnimationSpeed(const String&) const;
  23030. float GetAttributeAnimationTime(const String&) const;
  23031. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23032. Variant GetAttributeDefault(const String&) const;
  23033. Variant GetAttributeDefault(uint) const;
  23034. bool GetBlockEvents() const;
  23035. BodyType2D GetBodyType() const;
  23036. Component GetComponent(StringHash) const;
  23037. VariantMap& GetEventDataMap() const;
  23038. Object GetEventSender() const;
  23039. float GetGravityScale() const;
  23040. uint GetID() const;
  23041. float GetInertia() const;
  23042. bool GetInterceptNetworkUpdate(const String&) const;
  23043. float GetLinearDamping() const;
  23044. Vector2 GetLinearVelocity() const;
  23045. float GetMass() const;
  23046. Vector2 GetMassCenter() const;
  23047. Node GetNode() const;
  23048. uint GetNumAttributes() const;
  23049. uint GetNumNetworkAttributes() const;
  23050. ObjectAnimation GetObjectAnimation() const;
  23051. ResourceRef GetObjectAnimationAttr() const;
  23052. Scene GetScene() const;
  23053. Object GetSubsystem(StringHash) const;
  23054. StringHash GetType() const;
  23055. bool GetUseFixtureMass() const;
  23056. bool HasEventHandlers() const;
  23057. bool HasSubscribedToEvent(Object, StringHash) const;
  23058. bool HasSubscribedToEvent(StringHash) const;
  23059. bool IsAllowSleep() const;
  23060. bool IsAwake() const;
  23061. bool IsBullet() const;
  23062. bool IsEnabled() const;
  23063. bool IsEnabledEffective() const;
  23064. bool IsFixedRotation() const;
  23065. bool IsInstanceOf(StringHash) const;
  23066. bool IsReplicated() const;
  23067. bool IsTemporary() const;
  23068. bool Load(Deserializer&);
  23069. bool LoadJSON(const JSONValue&);
  23070. bool LoadXML(const XMLElement&);
  23071. void MarkNetworkUpdate();
  23072. operator Object() const;
  23073. void OnEvent(Object, StringHash, VariantMap&);
  23074. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  23075. void OnSetAttribute(const AttributeInfo&, const Variant&);
  23076. void OnSetEnabled();
  23077. void PrepareNetworkUpdate();
  23078. bool ReadDeltaUpdate(Deserializer&);
  23079. bool ReadLatestDataUpdate(Deserializer&);
  23080. operator RefCounted() const;
  23081. int Refs() const;
  23082. void ReleaseBody();
  23083. void Remove();
  23084. void RemoveAttributeAnimation(const String&);
  23085. void RemoveCollisionShape2D(CollisionShape2D);
  23086. void RemoveConstraint2D(Constraint2D);
  23087. void RemoveInstanceDefault();
  23088. void RemoveObjectAnimation();
  23089. void ResetToDefault();
  23090. bool Save(Serializer&) const;
  23091. bool SaveDefaultAttributes() const;
  23092. bool SaveJSON(JSONValue&) const;
  23093. bool SaveXML(XMLElement&) const;
  23094. void SendEvent(StringHash);
  23095. void SendEvent(StringHash, VariantMap&);
  23096. operator Serializable() const;
  23097. void SetAllowSleep(bool);
  23098. void SetAngularDamping(float);
  23099. void SetAngularVelocity(float);
  23100. void SetAnimationEnabled(bool);
  23101. void SetAnimationTime(float);
  23102. bool SetAttribute(const String&, const Variant&);
  23103. bool SetAttribute(uint, const Variant&);
  23104. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23105. void SetAttributeAnimationSpeed(const String&, float);
  23106. void SetAttributeAnimationTime(const String&, float);
  23107. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23108. void SetAwake(bool);
  23109. void SetBlockEvents(bool);
  23110. void SetBodyType(BodyType2D);
  23111. void SetBullet(bool);
  23112. void SetEnabled(bool);
  23113. void SetFixedRotation(bool);
  23114. void SetGlobalVar(StringHash, const Variant&);
  23115. void SetGravityScale(float);
  23116. void SetInertia(float);
  23117. void SetInstanceDefault(bool);
  23118. void SetInterceptNetworkUpdate(const String&, bool);
  23119. void SetLinearDamping(float);
  23120. void SetLinearVelocity(const Vector2&);
  23121. void SetMass(float);
  23122. void SetMassCenter(const Vector2&);
  23123. void SetObjectAnimation(ObjectAnimation);
  23124. void SetObjectAnimationAttr(const ResourceRef&);
  23125. void SetTemporary(bool);
  23126. void SetUseFixtureMass(bool);
  23127. const String& GetCategory() const;
  23128. const String& GetTypeName() const;
  23129. void UnsubscribeFromAllEvents();
  23130. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23131. void UnsubscribeFromEvent(Object, StringHash);
  23132. void UnsubscribeFromEvent(StringHash);
  23133. void UnsubscribeFromEvents(Object);
  23134. const Variant& GetGlobalVar(StringHash) const;
  23135. const VariantMap& GetGlobalVars() const;
  23136. int WeakRefs() const;
  23137. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23138. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23139. void WriteLatestDataUpdate(Serializer&, uint8);
  23140. operator const Animatable() const;
  23141. operator const Component() const;
  23142. operator const Object() const;
  23143. operator const RefCounted() const;
  23144. operator const Serializable() const;
  23145. // Properties:
  23146. bool allowSleep;
  23147. float angularDamping;
  23148. bool animationEnabled;
  23149. /* readonly */
  23150. Array<Variant> attributeDefaults;
  23151. /* readonly */
  23152. Array<AttributeInfo> attributeInfos;
  23153. Array<Variant> attributes;
  23154. bool awake;
  23155. BodyType2D bodyType;
  23156. bool bullet;
  23157. /* readonly */
  23158. String category;
  23159. bool enabled;
  23160. /* readonly */
  23161. bool enabledEffective;
  23162. bool fixedRotation;
  23163. Array<Variant> globalVar;
  23164. /* readonly */
  23165. VariantMap globalVars;
  23166. float gravityScale;
  23167. /* readonly */
  23168. uint id;
  23169. float inertia;
  23170. float linearDamping;
  23171. Vector2 linearVelocity;
  23172. float mass;
  23173. Vector2 massCenter;
  23174. /* readonly */
  23175. Node node;
  23176. /* readonly */
  23177. uint numAttributes;
  23178. ObjectAnimation objectAnimation;
  23179. /* readonly */
  23180. int refs;
  23181. /* readonly */
  23182. bool replicated;
  23183. bool temporary;
  23184. /* readonly */
  23185. StringHash type;
  23186. /* readonly */
  23187. String typeName;
  23188. bool useFixtureMass;
  23189. /* readonly */
  23190. int weakRefs;
  23191. };
  23192. class Scene
  23193. {
  23194. public:
  23195. Scene();
  23196. Scene(const String&in);
  23197. // Methods:
  23198. void AddChild(Node, uint = M_MAX_UNSIGNED);
  23199. void AddComponent(Component, uint, CreateMode);
  23200. void AddListener(Component);
  23201. void AddRequiredPackageFile(PackageFile);
  23202. void AddTag(const String&);
  23203. void AddTags(Array<String>);
  23204. void AddTags(const String&, int8 = ';');
  23205. void AllocateNetworkState();
  23206. operator Animatable() const;
  23207. void ApplyAttributes();
  23208. void BeginThreadedUpdate();
  23209. void CleanupConnection(Connection);
  23210. void Clear(bool = true, bool = true);
  23211. void ClearRequiredPackageFiles();
  23212. Node Clone(CreateMode = REPLICATED);
  23213. Component CloneComponent(Component, CreateMode, uint = 0);
  23214. Component CloneComponent(Component, uint = 0);
  23215. void ComponentAdded(Component);
  23216. void ComponentRemoved(Component);
  23217. Node CreateChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0, bool = false);
  23218. Node CreateChild(uint, CreateMode, bool = false);
  23219. Component CreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  23220. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode mode = REPLICATED);
  23221. ScriptObject CreateScriptObject(const String&, const String&, CreateMode mode = REPLICATED);
  23222. Node CreateTemporaryChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0);
  23223. void DelayedMarkedDirty(Component);
  23224. void EndThreadedUpdate();
  23225. bool GetAnimationEnabled() const;
  23226. LoadMode GetAsyncLoadMode() const;
  23227. int GetAsyncLoadingMs() const;
  23228. float GetAsyncProgress() const;
  23229. Variant GetAttribute(const String&) const;
  23230. Variant GetAttribute(uint) const;
  23231. ValueAnimation GetAttributeAnimation(const String&) const;
  23232. float GetAttributeAnimationSpeed(const String&) const;
  23233. float GetAttributeAnimationTime(const String&) const;
  23234. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23235. Variant GetAttributeDefault(const String&) const;
  23236. Variant GetAttributeDefault(uint) const;
  23237. bool GetBlockEvents() const;
  23238. uint GetChecksum() const;
  23239. Node GetChild(StringHash, bool = false) const;
  23240. Node GetChild(const String&, bool = false) const;
  23241. Node GetChild(uint) const;
  23242. Array<Node> GetChildren() const;
  23243. Array<Node> GetChildren(bool) const;
  23244. Array<Node> GetChildrenWithComponent(StringHash, bool = false) const;
  23245. Array<Node> GetChildrenWithScript(bool = false) const;
  23246. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  23247. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  23248. Component GetComponent(StringHash, bool = false) const;
  23249. Component GetComponent(uint) const;
  23250. Array<Component> GetComponents() const;
  23251. Array<Component> GetComponents(const String&, bool = false) const;
  23252. Array<Node> GetDependencyNodes() const;
  23253. Vector3 GetDirection() const;
  23254. float GetElapsedTime() const;
  23255. VariantMap& GetEventDataMap() const;
  23256. Object GetEventSender() const;
  23257. uint GetFreeComponentID(CreateMode);
  23258. uint GetFreeNodeID(CreateMode);
  23259. uint GetID() const;
  23260. bool GetInterceptNetworkUpdate(const String&) const;
  23261. StringHash GetNameHash() const;
  23262. Node GetNode(uint) const;
  23263. Array<Node> GetNodesWithTag(const String&) const;
  23264. uint GetNumAttributes() const;
  23265. uint GetNumChildren(bool = false) const;
  23266. uint GetNumComponents() const;
  23267. uint GetNumNetworkAttributes() const;
  23268. uint GetNumNetworkComponents() const;
  23269. uint GetNumPersistentChildren() const;
  23270. uint GetNumPersistentComponents() const;
  23271. ObjectAnimation GetObjectAnimation() const;
  23272. ResourceRef GetObjectAnimationAttr() const;
  23273. Component GetOrCreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  23274. Connection GetOwner() const;
  23275. Node GetParent() const;
  23276. Component GetParentComponent(StringHash, bool = false) const;
  23277. Vector2 GetPosition2D() const;
  23278. Array<PackageFile> GetRequiredPackageFiles() const;
  23279. Vector3 GetRight() const;
  23280. float GetRotation2D() const;
  23281. Vector2 GetScale2D() const;
  23282. Scene GetScene() const;
  23283. ScriptObject GetScriptObject() const;
  23284. ScriptObject GetScriptObject(const String&) const;
  23285. Vector3 GetSignedWorldScale() const;
  23286. float GetSmoothingConstant() const;
  23287. float GetSnapThreshold() const;
  23288. Object GetSubsystem(StringHash) const;
  23289. Array<String> GetTags() const;
  23290. float GetTimeScale() const;
  23291. Matrix3x4 GetTransform() const;
  23292. StringHash GetType() const;
  23293. Vector3 GetUp() const;
  23294. String GetVarNamesAttr() const;
  23295. Vector3 GetWorldDirection() const;
  23296. Vector3 GetWorldPosition() const;
  23297. Vector2 GetWorldPosition2D() const;
  23298. Vector3 GetWorldRight() const;
  23299. Quaternion GetWorldRotation() const;
  23300. float GetWorldRotation2D() const;
  23301. Vector3 GetWorldScale() const;
  23302. Vector2 GetWorldScale2D() const;
  23303. Vector3 GetWorldUp() const;
  23304. bool HasComponent(StringHash) const;
  23305. bool HasEventHandlers() const;
  23306. bool HasSubscribedToEvent(Object, StringHash) const;
  23307. bool HasSubscribedToEvent(StringHash) const;
  23308. bool HasTag(const String&) const;
  23309. Node Instantiate(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23310. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23311. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23312. Node InstantiateJSON(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23313. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23314. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23315. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23316. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23317. Node InstantiateXML(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23318. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23319. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23320. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23321. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23322. bool IsAsyncLoading() const;
  23323. bool IsChildOf(Node) const;
  23324. bool IsDirty() const;
  23325. bool IsEnabled() const;
  23326. bool IsEnabledSelf() const;
  23327. bool IsInstanceOf(StringHash) const;
  23328. bool IsReplicated() const;
  23329. bool IsTemporary() const;
  23330. bool IsThreadedUpdate() const;
  23331. bool IsUpdateEnabled() const;
  23332. bool Load(Deserializer&);
  23333. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23334. bool LoadAsyncJSON(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23335. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23336. bool LoadJSON(Deserializer&);
  23337. bool LoadJSON(File);
  23338. bool LoadJSON(VectorBuffer&);
  23339. bool LoadJSON(const JSONValue&);
  23340. bool LoadXML(Deserializer&);
  23341. bool LoadXML(File);
  23342. bool LoadXML(VectorBuffer&);
  23343. bool LoadXML(const XMLElement&);
  23344. Vector3 LocalToWorld(const Vector3&) const;
  23345. Vector3 LocalToWorld(const Vector4&) const;
  23346. Vector2 LocalToWorld2D(const Vector2&) const;
  23347. bool LookAt(const Vector3&, const Vector3& = Vector3 :: UP, TransformSpace = TS_WORLD);
  23348. void MarkDirty();
  23349. void MarkNetworkUpdate();
  23350. void MarkNetworkUpdate(Component);
  23351. void MarkNetworkUpdate(Node);
  23352. void MarkReplicationDirty(Node);
  23353. const Matrix3x4& GetWorldTransform() const;
  23354. operator Node() const;
  23355. void NodeAdded(Node);
  23356. void NodeRemoved(Node);
  23357. void NodeTagAdded(Node, const String&);
  23358. void NodeTagRemoved(Node, const String&);
  23359. operator Object() const;
  23360. void OnEvent(Object, StringHash, VariantMap&);
  23361. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  23362. void OnSetAttribute(const AttributeInfo&, const Variant&);
  23363. void Pitch(float, TransformSpace = TS_LOCAL);
  23364. void PrepareNetworkUpdate();
  23365. const Quaternion& GetRotation() const;
  23366. bool ReadDeltaUpdate(Deserializer&);
  23367. bool ReadLatestDataUpdate(Deserializer&);
  23368. operator RefCounted() const;
  23369. int Refs() const;
  23370. void RegisterVar(const String&);
  23371. void Remove();
  23372. void RemoveAllChildren();
  23373. void RemoveAllComponents();
  23374. void RemoveAllTags();
  23375. void RemoveAttributeAnimation(const String&);
  23376. void RemoveChild(Node);
  23377. void RemoveChildren(bool, bool, bool);
  23378. void RemoveComponent(Component);
  23379. void RemoveComponent(StringHash);
  23380. void RemoveComponents(StringHash);
  23381. void RemoveComponents(bool, bool);
  23382. void RemoveInstanceDefault();
  23383. void RemoveListener(Component);
  23384. void RemoveObjectAnimation();
  23385. bool RemoveTag(const String&);
  23386. void ReorderComponent(Component, uint);
  23387. void ResetDeepEnabled();
  23388. void ResetScene();
  23389. void ResetToDefault();
  23390. void Roll(float, TransformSpace = TS_LOCAL);
  23391. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  23392. void Rotate2D(float, TransformSpace = TS_LOCAL);
  23393. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  23394. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  23395. bool Save(Serializer&) const;
  23396. bool SaveDefaultAttributes() const;
  23397. bool SaveJSON(File);
  23398. bool SaveJSON(JSONValue&) const;
  23399. bool SaveJSON(Serializer&, const String& = "\t") const;
  23400. bool SaveJSON(VectorBuffer&);
  23401. bool SaveXML(File, const String& = "\t");
  23402. bool SaveXML(Serializer&, const String& = "\t") const;
  23403. bool SaveXML(VectorBuffer&, const String& = "\t");
  23404. bool SaveXML(XMLElement&) const;
  23405. void Scale(const Vector3&);
  23406. void Scale(float);
  23407. void Scale2D(const Vector2&);
  23408. void SendEvent(StringHash);
  23409. void SendEvent(StringHash, VariantMap&);
  23410. operator Serializable() const;
  23411. void SetAnimationEnabled(bool);
  23412. void SetAnimationTime(float);
  23413. void SetAsyncLoadingMs(int);
  23414. bool SetAttribute(const String&, const Variant&);
  23415. bool SetAttribute(uint, const Variant&);
  23416. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23417. void SetAttributeAnimationSpeed(const String&, float);
  23418. void SetAttributeAnimationTime(const String&, float);
  23419. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23420. void SetBlockEvents(bool);
  23421. void SetDeepEnabled(bool);
  23422. void SetDirection(const Vector3&);
  23423. void SetElapsedTime(float);
  23424. void SetEnabled(bool);
  23425. void SetEnabledRecursive(bool);
  23426. void SetGlobalVar(StringHash, const Variant&);
  23427. void SetID(uint);
  23428. void SetInstanceDefault(bool);
  23429. void SetInterceptNetworkUpdate(const String&, bool);
  23430. void SetName(const String&);
  23431. void SetNetPositionAttr(const Vector3&);
  23432. void SetObjectAnimation(ObjectAnimation);
  23433. void SetObjectAnimationAttr(const ResourceRef&);
  23434. void SetOwner(Connection);
  23435. void SetParent(Node);
  23436. void SetPosition(const Vector3&);
  23437. void SetPosition2D(const Vector2&);
  23438. void SetPosition2D(float, float);
  23439. void SetPositionSilent(const Vector3&);
  23440. void SetRotation(const Quaternion&);
  23441. void SetRotation2D(float);
  23442. void SetRotationSilent(const Quaternion&);
  23443. void SetScale(const Vector3&);
  23444. void SetScale(float);
  23445. void SetScale2D(const Vector2&);
  23446. void SetScale2D(float, float);
  23447. void SetScaleSilent(const Vector3&);
  23448. void SetScene(Scene);
  23449. void SetSmoothingConstant(float);
  23450. void SetSnapThreshold(float);
  23451. void SetTags(Array<String>);
  23452. void SetTemporary(bool);
  23453. void SetTimeScale(float);
  23454. void SetTransform(const Matrix3x4&);
  23455. void SetTransform(const Vector3&, const Quaternion&);
  23456. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  23457. void SetTransform(const Vector3&, const Quaternion&, float);
  23458. void SetTransform2D(const Vector2&, float);
  23459. void SetTransform2D(const Vector2&, float, const Vector2&);
  23460. void SetTransform2D(const Vector2&, float, float);
  23461. void SetTransformSilent(const Vector3&, const Quaternion&, const Vector3&);
  23462. void SetUpdateEnabled(bool);
  23463. void SetVar(StringHash, const Variant&);
  23464. void SetVarNamesAttr(const String&);
  23465. void SetWorldDirection(const Vector3&);
  23466. void SetWorldPosition(const Vector3&);
  23467. void SetWorldPosition2D(const Vector2&);
  23468. void SetWorldPosition2D(float, float);
  23469. void SetWorldRotation(const Quaternion&);
  23470. void SetWorldRotation2D(float);
  23471. void SetWorldScale(const Vector3&);
  23472. void SetWorldScale(float);
  23473. void SetWorldScale2D(const Vector2&);
  23474. void SetWorldScale2D(float, float);
  23475. void SetWorldTransform(const Matrix3x4&);
  23476. void SetWorldTransform(const Vector3&, const Quaternion&);
  23477. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  23478. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  23479. void SetWorldTransform2D(const Vector2&, float);
  23480. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  23481. void SetWorldTransform2D(const Vector2&, float, float);
  23482. void StopAsyncLoading();
  23483. const String& GetCategory() const;
  23484. const String& GetFileName() const;
  23485. const String& GetName() const;
  23486. const String& GetTypeName() const;
  23487. const String& GetVarName(StringHash) const;
  23488. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  23489. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  23490. void UnregisterAllVars();
  23491. void UnregisterVar(const String&);
  23492. void UnsubscribeFromAllEvents();
  23493. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23494. void UnsubscribeFromEvent(Object, StringHash);
  23495. void UnsubscribeFromEvent(StringHash);
  23496. void UnsubscribeFromEvents(Object);
  23497. void Update(float);
  23498. const Variant& GetGlobalVar(StringHash) const;
  23499. const Variant& GetVar(StringHash) const;
  23500. const VariantMap& GetGlobalVars() const;
  23501. const VariantMap& GetVars() const;
  23502. const Vector3& GetNetPositionAttr() const;
  23503. const Vector3& GetPosition() const;
  23504. const Vector3& GetScale() const;
  23505. int WeakRefs() const;
  23506. Vector3 WorldToLocal(const Vector3&) const;
  23507. Vector3 WorldToLocal(const Vector4&) const;
  23508. Vector2 WorldToLocal2D(const Vector2&) const;
  23509. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23510. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23511. void WriteLatestDataUpdate(Serializer&, uint8);
  23512. void Yaw(float, TransformSpace = TS_LOCAL);
  23513. operator const Animatable() const;
  23514. operator const Node() const;
  23515. operator const Object() const;
  23516. operator const RefCounted() const;
  23517. operator const Serializable() const;
  23518. // Properties:
  23519. /* readonly */
  23520. Array<Node> allChildrenByName;
  23521. bool animationEnabled;
  23522. /* readonly */
  23523. LoadMode asyncLoadMode;
  23524. /* readonly */
  23525. bool asyncLoading;
  23526. int asyncLoadingMs;
  23527. /* readonly */
  23528. float asyncProgress;
  23529. /* readonly */
  23530. Array<Variant> attributeDefaults;
  23531. /* readonly */
  23532. Array<AttributeInfo> attributeInfos;
  23533. Array<Variant> attributes;
  23534. /* readonly */
  23535. String category;
  23536. /* readonly */
  23537. uint checksum;
  23538. /* readonly */
  23539. Array<Node> children;
  23540. /* readonly */
  23541. Array<Node> childrenByName;
  23542. /* readonly */
  23543. Array<Component> components;
  23544. /* readonly */
  23545. DebugRenderer debugRenderer;
  23546. Vector3 direction;
  23547. float elapsedTime;
  23548. bool enabled;
  23549. /* readonly */
  23550. bool enabledSelf;
  23551. /* readonly */
  23552. String fileName;
  23553. Array<Variant> globalVar;
  23554. /* readonly */
  23555. VariantMap globalVars;
  23556. uint id;
  23557. String name;
  23558. /* readonly */
  23559. uint numAllChildren;
  23560. /* readonly */
  23561. uint numAttributes;
  23562. /* readonly */
  23563. uint numChildren;
  23564. /* readonly */
  23565. uint numComponents;
  23566. ObjectAnimation objectAnimation;
  23567. /* readonly */
  23568. Octree octree;
  23569. Connection owner;
  23570. Node parent;
  23571. /* readonly */
  23572. PhysicsWorld physicsWorld;
  23573. /* readonly */
  23574. PhysicsWorld2D physicsWorld2D;
  23575. Vector3 position;
  23576. Vector2 position2D;
  23577. /* readonly */
  23578. int refs;
  23579. /* readonly */
  23580. bool replicated;
  23581. /* readonly */
  23582. Array<PackageFile> requiredPackageFiles;
  23583. /* readonly */
  23584. Vector3 right;
  23585. Quaternion rotation;
  23586. float rotation2D;
  23587. Vector3 scale;
  23588. Vector2 scale2D;
  23589. /* readonly */
  23590. Scene scene;
  23591. /* readonly */
  23592. ScriptObject scriptObject;
  23593. /* readonly */
  23594. Vector3 signedWorldScale;
  23595. float smoothingConstant;
  23596. float snapThreshold;
  23597. /* readonly */
  23598. Array<String> tags;
  23599. bool temporary;
  23600. float timeScale;
  23601. /* readonly */
  23602. Matrix3x4 transform;
  23603. /* readonly */
  23604. StringHash type;
  23605. /* readonly */
  23606. String typeName;
  23607. /* readonly */
  23608. Vector3 up;
  23609. bool updateEnabled;
  23610. /* readonly */
  23611. VariantMap vars;
  23612. /* readonly */
  23613. int weakRefs;
  23614. Vector3 worldDirection;
  23615. Vector3 worldPosition;
  23616. Vector2 worldPosition2D;
  23617. /* readonly */
  23618. Vector3 worldRight;
  23619. Quaternion worldRotation;
  23620. float worldRotation2D;
  23621. Vector3 worldScale;
  23622. Vector2 worldScale2D;
  23623. /* readonly */
  23624. Matrix3x4 worldTransform;
  23625. /* readonly */
  23626. Vector3 worldUp;
  23627. };
  23628. class ScenePassInfo
  23629. {
  23630. public:
  23631. ~ScenePassInfo();
  23632. ScenePassInfo();
  23633. // Methods:
  23634. ScenePassInfo& operator=(const ScenePassInfo&);
  23635. // Properties:
  23636. bool allowInstancing;
  23637. bool markToStencil;
  23638. uint passIndex;
  23639. bool vertexLights;
  23640. };
  23641. class SceneReplicationState
  23642. {
  23643. public:
  23644. ~SceneReplicationState();
  23645. SceneReplicationState();
  23646. // Methods:
  23647. SceneReplicationState& operator=(const SceneReplicationState&);
  23648. void Clear();
  23649. };
  23650. class SceneResolver
  23651. {
  23652. public:
  23653. ~SceneResolver();
  23654. SceneResolver();
  23655. // Methods:
  23656. SceneResolver& operator=(const SceneResolver&);
  23657. void AddComponent(uint, Component);
  23658. void AddNode(uint, Node);
  23659. void Reset();
  23660. void Resolve();
  23661. };
  23662. class ScratchBuffer
  23663. {
  23664. public:
  23665. ~ScratchBuffer();
  23666. ScratchBuffer();
  23667. // Methods:
  23668. ScratchBuffer& operator=(const ScratchBuffer&);
  23669. // Properties:
  23670. bool reserved;
  23671. uint size;
  23672. };
  23673. class ScreenModeParams
  23674. {
  23675. public:
  23676. ~ScreenModeParams();
  23677. ScreenModeParams();
  23678. // Methods:
  23679. ScreenModeParams& operator=(const ScreenModeParams&);
  23680. bool operator==(const ScreenModeParams&) const;
  23681. bool EqualsExceptVSync(const ScreenModeParams&) const;
  23682. // Properties:
  23683. bool borderless;
  23684. bool fullscreen;
  23685. bool highDPI;
  23686. int monitor;
  23687. int multiSample;
  23688. int refreshRate;
  23689. bool resizable;
  23690. bool tripleBuffer;
  23691. bool vsync;
  23692. };
  23693. class Script
  23694. {
  23695. public:
  23696. Script();
  23697. // Methods:
  23698. void DumpAPI(DumpMode mode = DOXYGEN, const String& sourceTree = String ( ));
  23699. bool Execute(const String&);
  23700. bool GetBlockEvents() const;
  23701. VariantMap& GetEventDataMap() const;
  23702. Object GetEventSender() const;
  23703. Object GetSubsystem(StringHash) const;
  23704. StringHash GetType() const;
  23705. bool HasEventHandlers() const;
  23706. bool HasSubscribedToEvent(Object, StringHash) const;
  23707. bool HasSubscribedToEvent(StringHash) const;
  23708. bool IsInstanceOf(StringHash) const;
  23709. void OnEvent(Object, StringHash, VariantMap&);
  23710. int Refs() const;
  23711. void SendEvent(StringHash);
  23712. void SendEvent(StringHash, VariantMap&);
  23713. void SetBlockEvents(bool);
  23714. void SetGlobalVar(StringHash, const Variant&);
  23715. const String& GetCategory() const;
  23716. const String& GetTypeName() const;
  23717. void UnsubscribeFromAllEvents();
  23718. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23719. void UnsubscribeFromEvent(Object, StringHash);
  23720. void UnsubscribeFromEvent(StringHash);
  23721. void UnsubscribeFromEvents(Object);
  23722. const Variant& GetGlobalVar(StringHash) const;
  23723. const VariantMap& GetGlobalVars() const;
  23724. int WeakRefs() const;
  23725. // Properties:
  23726. /* readonly */
  23727. String category;
  23728. Scene defaultScene;
  23729. ScriptFile defaultScriptFile;
  23730. bool executeConsoleCommands;
  23731. Array<Variant> globalVar;
  23732. /* readonly */
  23733. VariantMap globalVars;
  23734. /* readonly */
  23735. int refs;
  23736. /* readonly */
  23737. StringHash type;
  23738. /* readonly */
  23739. String typeName;
  23740. /* readonly */
  23741. int weakRefs;
  23742. };
  23743. class ScriptFile
  23744. {
  23745. public:
  23746. ScriptFile();
  23747. // Methods:
  23748. bool BeginLoad(Deserializer&);
  23749. void ClearDelayedExecute(const String& declaration = String ( ));
  23750. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  23751. bool EndLoad();
  23752. bool Execute(const String&, const Array<Variant> params = null);
  23753. AsyncLoadState GetAsyncLoadState() const;
  23754. bool GetBlockEvents() const;
  23755. VariantMap& GetEventDataMap() const;
  23756. Object GetEventSender() const;
  23757. uint GetMemoryUse() const;
  23758. StringHash GetNameHash() const;
  23759. Object GetSubsystem(StringHash) const;
  23760. StringHash GetType() const;
  23761. uint GetUseTimer();
  23762. bool HasEventHandlers() const;
  23763. bool HasSubscribedToEvent(Object, StringHash) const;
  23764. bool HasSubscribedToEvent(StringHash) const;
  23765. bool IsInstanceOf(StringHash) const;
  23766. bool Load(Deserializer&);
  23767. bool Load(File);
  23768. bool Load(VectorBuffer&);
  23769. bool Load(const String&);
  23770. bool LoadFile(const String&);
  23771. void OnEvent(Object, StringHash, VariantMap&);
  23772. int Refs() const;
  23773. void ResetUseTimer();
  23774. bool Save(File) const;
  23775. bool Save(Serializer&) const;
  23776. bool Save(VectorBuffer&) const;
  23777. bool Save(const String&) const;
  23778. bool SaveFile(const String&) const;
  23779. void SendEvent(StringHash);
  23780. void SendEvent(StringHash, VariantMap&);
  23781. void SetAsyncLoadState(AsyncLoadState);
  23782. void SetBlockEvents(bool);
  23783. void SetGlobalVar(StringHash, const Variant&);
  23784. void SetMemoryUse(uint);
  23785. void SetName(const String&);
  23786. const String& GetCategory() const;
  23787. const String& GetName() const;
  23788. const String& GetTypeName() const;
  23789. void UnsubscribeFromAllEvents();
  23790. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23791. void UnsubscribeFromEvent(Object, StringHash);
  23792. void UnsubscribeFromEvent(StringHash);
  23793. void UnsubscribeFromEvents(Object);
  23794. const Variant& GetGlobalVar(StringHash) const;
  23795. const VariantMap& GetGlobalVars() const;
  23796. int WeakRefs() const;
  23797. // Properties:
  23798. /* readonly */
  23799. String category;
  23800. /* readonly */
  23801. bool compiled;
  23802. Array<Variant> globalVar;
  23803. /* readonly */
  23804. VariantMap globalVars;
  23805. /* readonly */
  23806. uint memoryUse;
  23807. String name;
  23808. /* readonly */
  23809. int refs;
  23810. /* readonly */
  23811. StringHash type;
  23812. /* readonly */
  23813. String typeName;
  23814. /* readonly */
  23815. uint useTimer;
  23816. /* readonly */
  23817. int weakRefs;
  23818. };
  23819. class ScriptInstance
  23820. {
  23821. public:
  23822. ScriptInstance();
  23823. // Methods:
  23824. void AllocateNetworkState();
  23825. operator Animatable() const;
  23826. void ApplyAttributes();
  23827. void CleanupConnection(Connection);
  23828. void ClearDelayedExecute(const String& declaration = String ( ));
  23829. operator Component() const;
  23830. bool CreateObject(ScriptFile, const String&);
  23831. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  23832. bool Execute(const String&, const Array<Variant> params = null);
  23833. bool GetAnimationEnabled() const;
  23834. Variant GetAttribute(const String&) const;
  23835. Variant GetAttribute(uint) const;
  23836. ValueAnimation GetAttributeAnimation(const String&) const;
  23837. float GetAttributeAnimationSpeed(const String&) const;
  23838. float GetAttributeAnimationTime(const String&) const;
  23839. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23840. Variant GetAttributeDefault(const String&) const;
  23841. Variant GetAttributeDefault(uint) const;
  23842. bool GetBlockEvents() const;
  23843. Component GetComponent(StringHash) const;
  23844. VariantMap& GetEventDataMap() const;
  23845. Object GetEventSender() const;
  23846. uint GetID() const;
  23847. bool GetInterceptNetworkUpdate(const String&) const;
  23848. Node GetNode() const;
  23849. uint GetNumAttributes() const;
  23850. uint GetNumNetworkAttributes() const;
  23851. ObjectAnimation GetObjectAnimation() const;
  23852. ResourceRef GetObjectAnimationAttr() const;
  23853. Scene GetScene() const;
  23854. Object GetSubsystem(StringHash) const;
  23855. StringHash GetType() const;
  23856. bool HasEventHandlers() const;
  23857. bool HasMethod(const String& declaration) const;
  23858. bool HasSubscribedToEvent(Object, StringHash) const;
  23859. bool HasSubscribedToEvent(StringHash) const;
  23860. bool IsA(const String& declaration) const;
  23861. bool IsEnabled() const;
  23862. bool IsEnabledEffective() const;
  23863. bool IsInstanceOf(StringHash) const;
  23864. bool IsReplicated() const;
  23865. bool IsTemporary() const;
  23866. bool Load(Deserializer&);
  23867. bool LoadJSON(const JSONValue&);
  23868. bool LoadXML(const XMLElement&);
  23869. void MarkNetworkUpdate();
  23870. operator Object() const;
  23871. void OnEvent(Object, StringHash, VariantMap&);
  23872. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  23873. void OnSetAttribute(const AttributeInfo&, const Variant&);
  23874. void OnSetEnabled();
  23875. void PrepareNetworkUpdate();
  23876. bool ReadDeltaUpdate(Deserializer&);
  23877. bool ReadLatestDataUpdate(Deserializer&);
  23878. operator RefCounted() const;
  23879. int Refs() const;
  23880. void Remove();
  23881. void RemoveAttributeAnimation(const String&);
  23882. void RemoveInstanceDefault();
  23883. void RemoveObjectAnimation();
  23884. void ResetToDefault();
  23885. bool Save(Serializer&) const;
  23886. bool SaveDefaultAttributes() const;
  23887. bool SaveJSON(JSONValue&) const;
  23888. bool SaveXML(XMLElement&) const;
  23889. void SendEvent(StringHash);
  23890. void SendEvent(StringHash, VariantMap&);
  23891. operator Serializable() const;
  23892. void SetAnimationEnabled(bool);
  23893. void SetAnimationTime(float);
  23894. bool SetAttribute(const String&, const Variant&);
  23895. bool SetAttribute(uint, const Variant&);
  23896. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23897. void SetAttributeAnimationSpeed(const String&, float);
  23898. void SetAttributeAnimationTime(const String&, float);
  23899. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23900. void SetBlockEvents(bool);
  23901. void SetEnabled(bool);
  23902. void SetGlobalVar(StringHash, const Variant&);
  23903. void SetInstanceDefault(bool);
  23904. void SetInterceptNetworkUpdate(const String&, bool);
  23905. void SetObjectAnimation(ObjectAnimation);
  23906. void SetObjectAnimationAttr(const ResourceRef&);
  23907. void SetTemporary(bool);
  23908. const String& GetCategory() const;
  23909. const String& GetTypeName() const;
  23910. void UnsubscribeFromAllEvents();
  23911. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23912. void UnsubscribeFromEvent(Object, StringHash);
  23913. void UnsubscribeFromEvent(StringHash);
  23914. void UnsubscribeFromEvents(Object);
  23915. const Variant& GetGlobalVar(StringHash) const;
  23916. const VariantMap& GetGlobalVars() const;
  23917. int WeakRefs() const;
  23918. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23919. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23920. void WriteLatestDataUpdate(Serializer&, uint8);
  23921. operator const Animatable() const;
  23922. operator const Component() const;
  23923. operator const Object() const;
  23924. operator const RefCounted() const;
  23925. operator const Serializable() const;
  23926. // Properties:
  23927. bool animationEnabled;
  23928. /* readonly */
  23929. Array<Variant> attributeDefaults;
  23930. /* readonly */
  23931. Array<AttributeInfo> attributeInfos;
  23932. Array<Variant> attributes;
  23933. /* readonly */
  23934. String category;
  23935. String className;
  23936. bool enabled;
  23937. /* readonly */
  23938. bool enabledEffective;
  23939. Array<Variant> globalVar;
  23940. /* readonly */
  23941. VariantMap globalVars;
  23942. /* readonly */
  23943. uint id;
  23944. /* readonly */
  23945. Node node;
  23946. /* readonly */
  23947. uint numAttributes;
  23948. ObjectAnimation objectAnimation;
  23949. /* readonly */
  23950. int refs;
  23951. /* readonly */
  23952. bool replicated;
  23953. ScriptFile scriptFile;
  23954. /* readonly */
  23955. ScriptObject scriptObject;
  23956. bool temporary;
  23957. /* readonly */
  23958. StringHash type;
  23959. /* readonly */
  23960. String typeName;
  23961. /* readonly */
  23962. int weakRefs;
  23963. };
  23964. class ScriptObject
  23965. {
  23966. public:
  23967. };
  23968. class ScrollBar
  23969. {
  23970. public:
  23971. ScrollBar();
  23972. // Methods:
  23973. void AddChild(UIElement);
  23974. void AddTag(const String&);
  23975. void AddTags(Array<String>);
  23976. void AddTags(const String&, int8 = ';');
  23977. void AdjustScissor(IntRect&);
  23978. void AllocateNetworkState();
  23979. operator Animatable() const;
  23980. void ApplyAttributes();
  23981. operator BorderImage() const;
  23982. void BringToFront();
  23983. void ChangeValue(float);
  23984. const Color& GetColor(Corner) const;
  23985. const Color& GetColorAttr() const;
  23986. const Color& GetDerivedColor() const;
  23987. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  23988. void DisableLayoutUpdate();
  23989. IntVector2 ElementToScreen(const IntVector2&);
  23990. void EnableLayoutUpdate();
  23991. bool FilterAttributes(XMLElement&) const;
  23992. uint FindChild(UIElement) const;
  23993. bool GetAnimationEnabled() const;
  23994. Variant GetAttribute(const String&) const;
  23995. Variant GetAttribute(uint) const;
  23996. ValueAnimation GetAttributeAnimation(const String&) const;
  23997. float GetAttributeAnimationSpeed(const String&) const;
  23998. float GetAttributeAnimationTime(const String&) const;
  23999. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  24000. Variant GetAttributeDefault(const String&) const;
  24001. Variant GetAttributeDefault(uint) const;
  24002. Button GetBackButton() const;
  24003. BlendMode GetBlendMode() const;
  24004. bool GetBlockEvents() const;
  24005. bool GetBringToBack() const;
  24006. bool GetBringToFront() const;
  24007. UIElement GetChild(const String&, bool = false) const;
  24008. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  24009. UIElement GetChild(uint) const;
  24010. Array<UIElement> GetChildren() const;
  24011. Array<UIElement> GetChildren(bool) const;
  24012. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  24013. bool GetClipChildren() const;
  24014. IntRect GetCombinedScreenRect();
  24015. XMLFile GetDefaultStyle(bool = true) const;
  24016. float GetDerivedOpacity() const;
  24017. uint GetDragButtonCombo() const;
  24018. uint GetDragButtonCount() const;
  24019. uint GetDragDropMode() const;
  24020. IntVector2 GetEffectiveMinSize() const;
  24021. float GetEffectiveScrollStep() const;
  24022. UIElement GetElementEventSender() const;
  24023. bool GetEnableAnchor() const;
  24024. VariantMap& GetEventDataMap() const;
  24025. Object GetEventSender() const;
  24026. FocusMode GetFocusMode() const;
  24027. Button GetForwardButton() const;
  24028. int GetHeight() const;
  24029. HorizontalAlignment GetHorizontalAlignment() const;
  24030. int GetIndent() const;
  24031. int GetIndentSpacing() const;
  24032. int GetIndentWidth() const;
  24033. bool GetInterceptNetworkUpdate(const String&) const;
  24034. int GetLayoutElementMaxSize() const;
  24035. LayoutMode GetLayoutMode() const;
  24036. int GetLayoutSpacing() const;
  24037. Material GetMaterial() const;
  24038. ResourceRef GetMaterialAttr() const;
  24039. int GetMaxHeight() const;
  24040. int GetMaxWidth() const;
  24041. int GetMinHeight() const;
  24042. int GetMinWidth() const;
  24043. uint GetNumAttributes() const;
  24044. uint GetNumChildren(bool = false) const;
  24045. uint GetNumNetworkAttributes() const;
  24046. ObjectAnimation GetObjectAnimation() const;
  24047. ResourceRef GetObjectAnimationAttr() const;
  24048. float GetOpacity() const;
  24049. Orientation GetOrientation() const;
  24050. UIElement GetParent() const;
  24051. int GetPriority() const;
  24052. float GetRange() const;
  24053. UIElement GetRoot() const;
  24054. float GetScrollStep() const;
  24055. Slider GetSlider() const;
  24056. bool GetSortChildren() const;
  24057. float GetStepFactor() const;
  24058. Object GetSubsystem(StringHash) const;
  24059. Array<String> GetTags() const;
  24060. Texture GetTexture() const;
  24061. ResourceRef GetTextureAttr() const;
  24062. TraversalMode GetTraversalMode() const;
  24063. StringHash GetType() const;
  24064. bool GetUseDerivedOpacity() const;
  24065. float GetValue() const;
  24066. VerticalAlignment GetVerticalAlignment() const;
  24067. int GetWidth() const;
  24068. bool HasColorGradient() const;
  24069. bool HasEventHandlers() const;
  24070. bool HasFocus() const;
  24071. bool HasSubscribedToEvent(Object, StringHash) const;
  24072. bool HasSubscribedToEvent(StringHash) const;
  24073. bool HasTag(const String&) const;
  24074. void InsertChild(uint, UIElement);
  24075. const IntRect& GetBorder() const;
  24076. const IntRect& GetClipBorder() const;
  24077. const IntRect& GetImageBorder() const;
  24078. const IntRect& GetImageRect() const;
  24079. const IntRect& GetLayoutBorder() const;
  24080. const IntVector2& GetChildOffset() const;
  24081. const IntVector2& GetDisabledOffset() const;
  24082. const IntVector2& GetHoverOffset() const;
  24083. const IntVector2& GetMaxOffset() const;
  24084. const IntVector2& GetMaxSize() const;
  24085. const IntVector2& GetMinOffset() const;
  24086. const IntVector2& GetMinSize() const;
  24087. const IntVector2& GetPosition() const;
  24088. const IntVector2& GetScreenPosition() const;
  24089. const IntVector2& GetSize() const;
  24090. bool IsChildOf(UIElement) const;
  24091. bool IsEditable() const;
  24092. bool IsElementEventSender() const;
  24093. bool IsEnabled() const;
  24094. bool IsEnabledSelf() const;
  24095. bool IsFixedHeight() const;
  24096. bool IsFixedSize() const;
  24097. bool IsFixedWidth() const;
  24098. bool IsHovering() const;
  24099. bool IsInside(IntVector2, bool);
  24100. bool IsInsideCombined(IntVector2, bool);
  24101. bool IsInstanceOf(StringHash) const;
  24102. bool IsInternal() const;
  24103. bool IsSelected() const;
  24104. bool IsTemporary() const;
  24105. bool IsTiled() const;
  24106. bool IsVisible() const;
  24107. bool IsVisibleEffective() const;
  24108. bool IsWheelHandler() const;
  24109. bool IsWithinScissor(const IntRect&);
  24110. bool Load(Deserializer&);
  24111. UIElement LoadChildXML(XMLFile, XMLFile);
  24112. UIElement LoadChildXML(const XMLElement&, XMLFile);
  24113. bool LoadJSON(const JSONValue&);
  24114. bool LoadXML(Deserializer&);
  24115. bool LoadXML(File);
  24116. bool LoadXML(VectorBuffer&);
  24117. bool LoadXML(XMLFile, XMLFile);
  24118. bool LoadXML(const XMLElement&);
  24119. bool LoadXML(const XMLElement&, XMLFile);
  24120. void MarkNetworkUpdate();
  24121. operator Object() const;
  24122. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24123. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  24124. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24125. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24126. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24127. bool OnDragDropFinish(UIElement);
  24128. bool OnDragDropTest(UIElement);
  24129. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24130. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24131. void OnEvent(Object, StringHash, VariantMap&);
  24132. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  24133. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24134. void OnIndentSet();
  24135. void OnKey(uint, uint, uint);
  24136. void OnPositionSet(const IntVector2&);
  24137. void OnResize(const IntVector2&, const IntVector2&);
  24138. void OnSetAttribute(const AttributeInfo&, const Variant&);
  24139. void OnSetEditable();
  24140. void OnTextInput(const String&);
  24141. void OnWheel(int, uint, uint);
  24142. bool ReadDeltaUpdate(Deserializer&);
  24143. bool ReadLatestDataUpdate(Deserializer&);
  24144. operator RefCounted() const;
  24145. int Refs() const;
  24146. void Remove();
  24147. void RemoveAllChildren();
  24148. void RemoveAllTags();
  24149. void RemoveAttributeAnimation(const String&);
  24150. void RemoveChild(UIElement, uint = 0);
  24151. void RemoveChild(uint);
  24152. void RemoveChildAtIndex(uint);
  24153. void RemoveInstanceDefault();
  24154. void RemoveObjectAnimation();
  24155. bool RemoveTag(const String&);
  24156. void ResetDeepEnabled();
  24157. void ResetToDefault();
  24158. bool Save(Serializer&) const;
  24159. bool SaveDefaultAttributes() const;
  24160. bool SaveJSON(JSONValue&) const;
  24161. bool SaveXML(File, const String& indentation = "\t");
  24162. bool SaveXML(Serializer&, const String& = "\t") const;
  24163. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  24164. bool SaveXML(XMLElement&) const;
  24165. IntVector2 ScreenToElement(const IntVector2&);
  24166. void SendEvent(StringHash);
  24167. void SendEvent(StringHash, VariantMap&);
  24168. operator Serializable() const;
  24169. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  24170. void SetAnimationEnabled(bool);
  24171. void SetAnimationTime(float);
  24172. bool SetAttribute(const String&, const Variant&);
  24173. bool SetAttribute(uint, const Variant&);
  24174. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  24175. void SetAttributeAnimationSpeed(const String&, float);
  24176. void SetAttributeAnimationTime(const String&, float);
  24177. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  24178. void SetBlendMode(BlendMode);
  24179. void SetBlockEvents(bool);
  24180. void SetBorder(const IntRect&);
  24181. void SetBringToBack(bool);
  24182. void SetBringToFront(bool);
  24183. void SetChildOffset(const IntVector2&);
  24184. void SetClipBorder(const IntRect&);
  24185. void SetClipChildren(bool);
  24186. void SetColor(Corner, const Color&);
  24187. void SetColor(const Color&);
  24188. void SetDeepEnabled(bool);
  24189. void SetDefaultStyle(XMLFile);
  24190. void SetDisabledOffset(const IntVector2&);
  24191. void SetDisabledOffset(int, int);
  24192. void SetDragDropMode(uint);
  24193. void SetEditable(bool);
  24194. void SetElementEventSender(bool);
  24195. void SetEnableAnchor(bool);
  24196. void SetEnabled(bool);
  24197. void SetEnabledRecursive(bool);
  24198. void SetFixedHeight(int);
  24199. void SetFixedSize(const IntVector2&);
  24200. void SetFixedSize(int, int);
  24201. void SetFixedWidth(int);
  24202. void SetFocus(bool);
  24203. void SetFocusMode(FocusMode);
  24204. void SetFullImageRect();
  24205. void SetGlobalVar(StringHash, const Variant&);
  24206. void SetHeight(int);
  24207. void SetHorizontalAlignment(HorizontalAlignment);
  24208. void SetHoverOffset(const IntVector2&);
  24209. void SetHoverOffset(int, int);
  24210. void SetHovering(bool);
  24211. void SetImageBorder(const IntRect&);
  24212. void SetImageRect(const IntRect&);
  24213. void SetIndent(int);
  24214. void SetIndentSpacing(int);
  24215. void SetInstanceDefault(bool);
  24216. void SetInterceptNetworkUpdate(const String&, bool);
  24217. void SetInternal(bool);
  24218. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  24219. void SetLayoutBorder(const IntRect&);
  24220. void SetLayoutFlexScale(const Vector2&);
  24221. void SetLayoutMode(LayoutMode);
  24222. void SetLayoutSpacing(int);
  24223. void SetMaterial(Material);
  24224. void SetMaterialAttr(const ResourceRef&);
  24225. void SetMaxAnchor(const Vector2&);
  24226. void SetMaxAnchor(float, float);
  24227. void SetMaxHeight(int);
  24228. void SetMaxOffset(const IntVector2&);
  24229. void SetMaxSize(const IntVector2&);
  24230. void SetMaxSize(int, int);
  24231. void SetMaxWidth(int);
  24232. void SetMinAnchor(const Vector2&);
  24233. void SetMinAnchor(float, float);
  24234. void SetMinHeight(int);
  24235. void SetMinOffset(const IntVector2&);
  24236. void SetMinSize(const IntVector2&);
  24237. void SetMinSize(int, int);
  24238. void SetMinWidth(int);
  24239. void SetName(const String&);
  24240. void SetObjectAnimation(ObjectAnimation);
  24241. void SetObjectAnimationAttr(const ResourceRef&);
  24242. void SetOpacity(float);
  24243. void SetOrientation(Orientation);
  24244. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  24245. void SetPivot(const Vector2&);
  24246. void SetPivot(float, float);
  24247. void SetPosition(const IntVector2&);
  24248. void SetPosition(int, int);
  24249. void SetPriority(int);
  24250. void SetRange(float);
  24251. void SetRenderTexture(Texture2D);
  24252. void SetScrollStep(float);
  24253. void SetSelected(bool);
  24254. void SetSize(const IntVector2&);
  24255. void SetSize(int, int);
  24256. void SetSortChildren(bool);
  24257. void SetStepFactor(float);
  24258. bool SetStyle(const String&, XMLFile = null);
  24259. bool SetStyle(const XMLElement&);
  24260. bool SetStyleAuto(XMLFile = null);
  24261. void SetTags(Array<String>);
  24262. void SetTemporary(bool);
  24263. void SetTexture(Texture);
  24264. void SetTextureAttr(const ResourceRef&);
  24265. void SetTiled(bool);
  24266. void SetTraversalMode(TraversalMode);
  24267. void SetUseDerivedOpacity(bool);
  24268. void SetValue(float);
  24269. void SetVar(StringHash, const Variant&);
  24270. void SetVerticalAlignment(VerticalAlignment);
  24271. void SetVisible(bool);
  24272. void SetWidth(int);
  24273. void SortChildren();
  24274. void StepBack();
  24275. void StepForward();
  24276. const String& GetAppliedStyle() const;
  24277. const String& GetCategory() const;
  24278. const String& GetName() const;
  24279. const String& GetTypeName() const;
  24280. operator UIElement() const;
  24281. void UnsubscribeFromAllEvents();
  24282. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  24283. void UnsubscribeFromEvent(Object, StringHash);
  24284. void UnsubscribeFromEvent(StringHash);
  24285. void UnsubscribeFromEvents(Object);
  24286. void Update(float);
  24287. void UpdateLayout();
  24288. const Variant& GetGlobalVar(StringHash) const;
  24289. const Variant& GetVar(const StringHash&) const;
  24290. const VariantMap& GetGlobalVars() const;
  24291. const VariantMap& GetVars() const;
  24292. const Vector2& GetLayoutFlexScale() const;
  24293. const Vector2& GetMaxAnchor() const;
  24294. const Vector2& GetMinAnchor() const;
  24295. const Vector2& GetPivot() const;
  24296. int WeakRefs() const;
  24297. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  24298. void WriteInitialDeltaUpdate(Serializer&, uint8);
  24299. void WriteLatestDataUpdate(Serializer&, uint8);
  24300. operator const Animatable() const;
  24301. operator const BorderImage() const;
  24302. operator const Object() const;
  24303. operator const RefCounted() const;
  24304. operator const Serializable() const;
  24305. operator const UIElement() const;
  24306. // Properties:
  24307. bool animationEnabled;
  24308. /* readonly */
  24309. Array<Variant> attributeDefaults;
  24310. /* readonly */
  24311. Array<AttributeInfo> attributeInfos;
  24312. Array<Variant> attributes;
  24313. /* readonly */
  24314. Button backButton;
  24315. BlendMode blendMode;
  24316. IntRect border;
  24317. bool bringToBack;
  24318. bool bringToFront;
  24319. /* readonly */
  24320. String category;
  24321. /* readonly */
  24322. IntVector2 childOffset;
  24323. /* readonly */
  24324. Array<UIElement> children;
  24325. IntRect clipBorder;
  24326. bool clipChildren;
  24327. /* writeonly */
  24328. Color color;
  24329. /* readonly */
  24330. bool colorGradient;
  24331. Array<Color> colors;
  24332. /* readonly */
  24333. IntRect combinedScreenRect;
  24334. XMLFile defaultStyle;
  24335. /* readonly */
  24336. float derivedOpacity;
  24337. IntVector2 disabledOffset;
  24338. /* readonly */
  24339. uint dragButtonCombo;
  24340. /* readonly */
  24341. uint dragButtonCount;
  24342. uint dragDropMode;
  24343. bool editable;
  24344. /* readonly */
  24345. float effectiveScrollStep;
  24346. bool elementEventSender;
  24347. bool enableAnchor;
  24348. bool enabled;
  24349. /* readonly */
  24350. bool enabledSelf;
  24351. /* readonly */
  24352. bool fixedHeight;
  24353. /* readonly */
  24354. bool fixedSize;
  24355. /* readonly */
  24356. bool fixedWidth;
  24357. bool focus;
  24358. FocusMode focusMode;
  24359. /* readonly */
  24360. Button forwardButton;
  24361. Array<Variant> globalVar;
  24362. /* readonly */
  24363. VariantMap globalVars;
  24364. int height;
  24365. HorizontalAlignment horizontalAlignment;
  24366. IntVector2 hoverOffset;
  24367. /* readonly */
  24368. bool hovering;
  24369. IntRect imageBorder;
  24370. IntRect imageRect;
  24371. int indent;
  24372. int indentSpacing;
  24373. /* readonly */
  24374. int indentWidth;
  24375. bool internal;
  24376. IntRect layoutBorder;
  24377. Vector2 layoutFlexScale;
  24378. LayoutMode layoutMode;
  24379. int layoutSpacing;
  24380. Material material;
  24381. Vector2 maxAnchor;
  24382. int maxHeight;
  24383. IntVector2 maxOffset;
  24384. IntVector2 maxSize;
  24385. int maxWidth;
  24386. Vector2 minAnchor;
  24387. int minHeight;
  24388. IntVector2 minOffset;
  24389. IntVector2 minSize;
  24390. int minWidth;
  24391. String name;
  24392. /* readonly */
  24393. uint numAllChildren;
  24394. /* readonly */
  24395. uint numAttributes;
  24396. /* readonly */
  24397. uint numChildren;
  24398. ObjectAnimation objectAnimation;
  24399. float opacity;
  24400. Orientation orientation;
  24401. UIElement parent;
  24402. Vector2 pivot;
  24403. IntVector2 position;
  24404. int priority;
  24405. float range;
  24406. /* readonly */
  24407. int refs;
  24408. /* readonly */
  24409. UIElement root;
  24410. /* readonly */
  24411. IntVector2 screenPosition;
  24412. float scrollStep;
  24413. bool selected;
  24414. IntVector2 size;
  24415. /* readonly */
  24416. Slider slider;
  24417. bool sortChildren;
  24418. float stepFactor;
  24419. String style;
  24420. /* readonly */
  24421. Array<String> tags;
  24422. bool temporary;
  24423. Texture texture;
  24424. bool tiled;
  24425. TraversalMode traversalMode;
  24426. /* readonly */
  24427. StringHash type;
  24428. /* readonly */
  24429. String typeName;
  24430. bool useDerivedOpacity;
  24431. float value;
  24432. /* readonly */
  24433. VariantMap vars;
  24434. VerticalAlignment verticalAlignment;
  24435. bool visible;
  24436. /* readonly */
  24437. bool visibleEffective;
  24438. /* readonly */
  24439. int weakRefs;
  24440. int width;
  24441. };
  24442. class ScrollView
  24443. {
  24444. public:
  24445. ScrollView();
  24446. // Methods:
  24447. void AddChild(UIElement);
  24448. void AddTag(const String&);
  24449. void AddTags(Array<String>);
  24450. void AddTags(const String&, int8 = ';');
  24451. void AdjustScissor(IntRect&);
  24452. void AllocateNetworkState();
  24453. operator Animatable() const;
  24454. void ApplyAttributes();
  24455. void BringToFront();
  24456. const Color& GetColor(Corner) const;
  24457. const Color& GetColorAttr() const;
  24458. const Color& GetDerivedColor() const;
  24459. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  24460. void DisableLayoutUpdate();
  24461. IntVector2 ElementToScreen(const IntVector2&);
  24462. void EnableLayoutUpdate();
  24463. bool FilterAttributes(XMLElement&) const;
  24464. uint FindChild(UIElement) const;
  24465. bool GetAnimationEnabled() const;
  24466. Variant GetAttribute(const String&) const;
  24467. Variant GetAttribute(uint) const;
  24468. ValueAnimation GetAttributeAnimation(const String&) const;
  24469. float GetAttributeAnimationSpeed(const String&) const;
  24470. float GetAttributeAnimationTime(const String&) const;
  24471. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  24472. Variant GetAttributeDefault(const String&) const;
  24473. Variant GetAttributeDefault(uint) const;
  24474. bool GetAutoDisableChildren() const;
  24475. float GetAutoDisableThreshold() const;
  24476. bool GetBlockEvents() const;
  24477. bool GetBringToBack() const;
  24478. bool GetBringToFront() const;
  24479. UIElement GetChild(const String&, bool = false) const;
  24480. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  24481. UIElement GetChild(uint) const;
  24482. Array<UIElement> GetChildren() const;
  24483. Array<UIElement> GetChildren(bool) const;
  24484. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  24485. bool GetClipChildren() const;
  24486. IntRect GetCombinedScreenRect();
  24487. UIElement GetContentElement() const;
  24488. XMLFile GetDefaultStyle(bool = true) const;
  24489. float GetDerivedOpacity() const;
  24490. uint GetDragButtonCombo() const;
  24491. uint GetDragButtonCount() const;
  24492. uint GetDragDropMode() const;
  24493. IntVector2 GetEffectiveMinSize() const;
  24494. UIElement GetElementEventSender() const;
  24495. bool GetEnableAnchor() const;
  24496. VariantMap& GetEventDataMap() const;
  24497. Object GetEventSender() const;
  24498. FocusMode GetFocusMode() const;
  24499. int GetHeight() const;
  24500. HorizontalAlignment GetHorizontalAlignment() const;
  24501. ScrollBar GetHorizontalScrollBar() const;
  24502. bool GetHorizontalScrollBarVisible() const;
  24503. int GetIndent() const;
  24504. int GetIndentSpacing() const;
  24505. int GetIndentWidth() const;
  24506. bool GetInterceptNetworkUpdate(const String&) const;
  24507. int GetLayoutElementMaxSize() const;
  24508. LayoutMode GetLayoutMode() const;
  24509. int GetLayoutSpacing() const;
  24510. int GetMaxHeight() const;
  24511. int GetMaxWidth() const;
  24512. int GetMinHeight() const;
  24513. int GetMinWidth() const;
  24514. uint GetNumAttributes() const;
  24515. uint GetNumChildren(bool = false) const;
  24516. uint GetNumNetworkAttributes() const;
  24517. ObjectAnimation GetObjectAnimation() const;
  24518. ResourceRef GetObjectAnimationAttr() const;
  24519. float GetOpacity() const;
  24520. float GetPageStep() const;
  24521. UIElement GetParent() const;
  24522. int GetPriority() const;
  24523. UIElement GetRoot() const;
  24524. bool GetScrollBarsAutoVisible() const;
  24525. float GetScrollDeceleration() const;
  24526. BorderImage GetScrollPanel() const;
  24527. float GetScrollSnapEpsilon() const;
  24528. float GetScrollStep() const;
  24529. bool GetSortChildren() const;
  24530. Object GetSubsystem(StringHash) const;
  24531. Array<String> GetTags() const;
  24532. TraversalMode GetTraversalMode() const;
  24533. StringHash GetType() const;
  24534. bool GetUseDerivedOpacity() const;
  24535. VerticalAlignment GetVerticalAlignment() const;
  24536. ScrollBar GetVerticalScrollBar() const;
  24537. bool GetVerticalScrollBarVisible() const;
  24538. int GetWidth() const;
  24539. bool HasColorGradient() const;
  24540. bool HasEventHandlers() const;
  24541. bool HasFocus() const;
  24542. bool HasSubscribedToEvent(Object, StringHash) const;
  24543. bool HasSubscribedToEvent(StringHash) const;
  24544. bool HasTag(const String&) const;
  24545. void InsertChild(uint, UIElement);
  24546. const IntRect& GetClipBorder() const;
  24547. const IntRect& GetLayoutBorder() const;
  24548. const IntVector2& GetChildOffset() const;
  24549. const IntVector2& GetMaxOffset() const;
  24550. const IntVector2& GetMaxSize() const;
  24551. const IntVector2& GetMinOffset() const;
  24552. const IntVector2& GetMinSize() const;
  24553. const IntVector2& GetPosition() const;
  24554. const IntVector2& GetScreenPosition() const;
  24555. const IntVector2& GetSize() const;
  24556. const IntVector2& GetViewPosition() const;
  24557. bool IsChildOf(UIElement) const;
  24558. bool IsEditable() const;
  24559. bool IsElementEventSender() const;
  24560. bool IsEnabled() const;
  24561. bool IsEnabledSelf() const;
  24562. bool IsFixedHeight() const;
  24563. bool IsFixedSize() const;
  24564. bool IsFixedWidth() const;
  24565. bool IsHovering() const;
  24566. bool IsInside(IntVector2, bool);
  24567. bool IsInsideCombined(IntVector2, bool);
  24568. bool IsInstanceOf(StringHash) const;
  24569. bool IsInternal() const;
  24570. bool IsSelected() const;
  24571. bool IsTemporary() const;
  24572. bool IsVisible() const;
  24573. bool IsVisibleEffective() const;
  24574. bool IsWheelHandler() const;
  24575. bool IsWithinScissor(const IntRect&);
  24576. operator ListView() const;
  24577. bool Load(Deserializer&);
  24578. UIElement LoadChildXML(XMLFile, XMLFile);
  24579. UIElement LoadChildXML(const XMLElement&, XMLFile);
  24580. bool LoadJSON(const JSONValue&);
  24581. bool LoadXML(Deserializer&);
  24582. bool LoadXML(File);
  24583. bool LoadXML(VectorBuffer&);
  24584. bool LoadXML(XMLFile, XMLFile);
  24585. bool LoadXML(const XMLElement&);
  24586. bool LoadXML(const XMLElement&, XMLFile);
  24587. void MarkNetworkUpdate();
  24588. operator Object() const;
  24589. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24590. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  24591. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24592. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24593. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24594. bool OnDragDropFinish(UIElement);
  24595. bool OnDragDropTest(UIElement);
  24596. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24597. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24598. void OnEvent(Object, StringHash, VariantMap&);
  24599. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  24600. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24601. void OnIndentSet();
  24602. void OnKey(uint, uint, uint);
  24603. void OnPositionSet(const IntVector2&);
  24604. void OnResize(const IntVector2&, const IntVector2&);
  24605. void OnSetAttribute(const AttributeInfo&, const Variant&);
  24606. void OnSetEditable();
  24607. void OnTextInput(const String&);
  24608. void OnWheel(int, uint, uint);
  24609. bool ReadDeltaUpdate(Deserializer&);
  24610. bool ReadLatestDataUpdate(Deserializer&);
  24611. operator RefCounted() const;
  24612. int Refs() const;
  24613. void Remove();
  24614. void RemoveAllChildren();
  24615. void RemoveAllTags();
  24616. void RemoveAttributeAnimation(const String&);
  24617. void RemoveChild(UIElement, uint = 0);
  24618. void RemoveChild(uint);
  24619. void RemoveChildAtIndex(uint);
  24620. void RemoveInstanceDefault();
  24621. void RemoveObjectAnimation();
  24622. bool RemoveTag(const String&);
  24623. void ResetDeepEnabled();
  24624. void ResetToDefault();
  24625. bool Save(Serializer&) const;
  24626. bool SaveDefaultAttributes() const;
  24627. bool SaveJSON(JSONValue&) const;
  24628. bool SaveXML(File, const String& indentation = "\t");
  24629. bool SaveXML(Serializer&, const String& = "\t") const;
  24630. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  24631. bool SaveXML(XMLElement&) const;
  24632. IntVector2 ScreenToElement(const IntVector2&);
  24633. void SendEvent(StringHash);
  24634. void SendEvent(StringHash, VariantMap&);
  24635. operator Serializable() const;
  24636. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  24637. void SetAnimationEnabled(bool);
  24638. void SetAnimationTime(float);
  24639. bool SetAttribute(const String&, const Variant&);
  24640. bool SetAttribute(uint, const Variant&);
  24641. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  24642. void SetAttributeAnimationSpeed(const String&, float);
  24643. void SetAttributeAnimationTime(const String&, float);
  24644. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  24645. void SetAutoDisableChildren(bool);
  24646. void SetAutoDisableThreshold(float);
  24647. void SetBlockEvents(bool);
  24648. void SetBringToBack(bool);
  24649. void SetBringToFront(bool);
  24650. void SetChildOffset(const IntVector2&);
  24651. void SetClipBorder(const IntRect&);
  24652. void SetClipChildren(bool);
  24653. void SetColor(Corner, const Color&);
  24654. void SetColor(const Color&);
  24655. void SetContentElement(UIElement);
  24656. void SetDeepEnabled(bool);
  24657. void SetDefaultStyle(XMLFile);
  24658. void SetDragDropMode(uint);
  24659. void SetEditable(bool);
  24660. void SetElementEventSender(bool);
  24661. void SetEnableAnchor(bool);
  24662. void SetEnabled(bool);
  24663. void SetEnabledRecursive(bool);
  24664. void SetFixedHeight(int);
  24665. void SetFixedSize(const IntVector2&);
  24666. void SetFixedSize(int, int);
  24667. void SetFixedWidth(int);
  24668. void SetFocus(bool);
  24669. void SetFocusMode(FocusMode);
  24670. void SetGlobalVar(StringHash, const Variant&);
  24671. void SetHeight(int);
  24672. void SetHorizontalAlignment(HorizontalAlignment);
  24673. void SetHorizontalScrollBarVisible(bool);
  24674. void SetHovering(bool);
  24675. void SetIndent(int);
  24676. void SetIndentSpacing(int);
  24677. void SetInstanceDefault(bool);
  24678. void SetInterceptNetworkUpdate(const String&, bool);
  24679. void SetInternal(bool);
  24680. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  24681. void SetLayoutBorder(const IntRect&);
  24682. void SetLayoutFlexScale(const Vector2&);
  24683. void SetLayoutMode(LayoutMode);
  24684. void SetLayoutSpacing(int);
  24685. void SetMaxAnchor(const Vector2&);
  24686. void SetMaxAnchor(float, float);
  24687. void SetMaxHeight(int);
  24688. void SetMaxOffset(const IntVector2&);
  24689. void SetMaxSize(const IntVector2&);
  24690. void SetMaxSize(int, int);
  24691. void SetMaxWidth(int);
  24692. void SetMinAnchor(const Vector2&);
  24693. void SetMinAnchor(float, float);
  24694. void SetMinHeight(int);
  24695. void SetMinOffset(const IntVector2&);
  24696. void SetMinSize(const IntVector2&);
  24697. void SetMinSize(int, int);
  24698. void SetMinWidth(int);
  24699. void SetName(const String&);
  24700. void SetObjectAnimation(ObjectAnimation);
  24701. void SetObjectAnimationAttr(const ResourceRef&);
  24702. void SetOpacity(float);
  24703. void SetPageStep(float);
  24704. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  24705. void SetPivot(const Vector2&);
  24706. void SetPivot(float, float);
  24707. void SetPosition(const IntVector2&);
  24708. void SetPosition(int, int);
  24709. void SetPriority(int);
  24710. void SetRenderTexture(Texture2D);
  24711. void SetScrollBarsAutoVisible(bool);
  24712. void SetScrollBarsVisible(bool, bool);
  24713. void SetScrollDeceleration(float);
  24714. void SetScrollSnapEpsilon(float);
  24715. void SetScrollStep(float);
  24716. void SetSelected(bool);
  24717. void SetSize(const IntVector2&);
  24718. void SetSize(int, int);
  24719. void SetSortChildren(bool);
  24720. bool SetStyle(const String&, XMLFile = null);
  24721. bool SetStyle(const XMLElement&);
  24722. bool SetStyleAuto(XMLFile = null);
  24723. void SetTags(Array<String>);
  24724. void SetTemporary(bool);
  24725. void SetTraversalMode(TraversalMode);
  24726. void SetUseDerivedOpacity(bool);
  24727. void SetVar(StringHash, const Variant&);
  24728. void SetVerticalAlignment(VerticalAlignment);
  24729. void SetVerticalScrollBarVisible(bool);
  24730. void SetViewPosition(const IntVector2&);
  24731. void SetViewPosition(int, int);
  24732. void SetViewPositionAttr(const IntVector2&);
  24733. void SetVisible(bool);
  24734. void SetWidth(int);
  24735. void SortChildren();
  24736. const String& GetAppliedStyle() const;
  24737. const String& GetCategory() const;
  24738. const String& GetName() const;
  24739. const String& GetTypeName() const;
  24740. operator UIElement() const;
  24741. void UnsubscribeFromAllEvents();
  24742. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  24743. void UnsubscribeFromEvent(Object, StringHash);
  24744. void UnsubscribeFromEvent(StringHash);
  24745. void UnsubscribeFromEvents(Object);
  24746. void Update(float);
  24747. void UpdateLayout();
  24748. const Variant& GetGlobalVar(StringHash) const;
  24749. const Variant& GetVar(const StringHash&) const;
  24750. const VariantMap& GetGlobalVars() const;
  24751. const VariantMap& GetVars() const;
  24752. const Vector2& GetLayoutFlexScale() const;
  24753. const Vector2& GetMaxAnchor() const;
  24754. const Vector2& GetMinAnchor() const;
  24755. const Vector2& GetPivot() const;
  24756. int WeakRefs() const;
  24757. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  24758. void WriteInitialDeltaUpdate(Serializer&, uint8);
  24759. void WriteLatestDataUpdate(Serializer&, uint8);
  24760. operator const Animatable() const;
  24761. operator const ListView() const;
  24762. operator const Object() const;
  24763. operator const RefCounted() const;
  24764. operator const Serializable() const;
  24765. operator const UIElement() const;
  24766. // Properties:
  24767. bool animationEnabled;
  24768. /* readonly */
  24769. Array<Variant> attributeDefaults;
  24770. /* readonly */
  24771. Array<AttributeInfo> attributeInfos;
  24772. Array<Variant> attributes;
  24773. bool autoDisableChildren;
  24774. float autoDisableThreshold;
  24775. bool bringToBack;
  24776. bool bringToFront;
  24777. /* readonly */
  24778. String category;
  24779. /* readonly */
  24780. IntVector2 childOffset;
  24781. /* readonly */
  24782. Array<UIElement> children;
  24783. IntRect clipBorder;
  24784. bool clipChildren;
  24785. /* writeonly */
  24786. Color color;
  24787. /* readonly */
  24788. bool colorGradient;
  24789. Array<Color> colors;
  24790. /* readonly */
  24791. IntRect combinedScreenRect;
  24792. UIElement contentElement;
  24793. XMLFile defaultStyle;
  24794. /* readonly */
  24795. float derivedOpacity;
  24796. /* readonly */
  24797. uint dragButtonCombo;
  24798. /* readonly */
  24799. uint dragButtonCount;
  24800. uint dragDropMode;
  24801. bool editable;
  24802. bool elementEventSender;
  24803. bool enableAnchor;
  24804. bool enabled;
  24805. /* readonly */
  24806. bool enabledSelf;
  24807. /* readonly */
  24808. bool fixedHeight;
  24809. /* readonly */
  24810. bool fixedSize;
  24811. /* readonly */
  24812. bool fixedWidth;
  24813. bool focus;
  24814. FocusMode focusMode;
  24815. Array<Variant> globalVar;
  24816. /* readonly */
  24817. VariantMap globalVars;
  24818. int height;
  24819. HorizontalAlignment horizontalAlignment;
  24820. /* readonly */
  24821. ScrollBar horizontalScrollBar;
  24822. bool horizontalScrollBarVisible;
  24823. /* readonly */
  24824. bool hovering;
  24825. int indent;
  24826. int indentSpacing;
  24827. /* readonly */
  24828. int indentWidth;
  24829. bool internal;
  24830. IntRect layoutBorder;
  24831. Vector2 layoutFlexScale;
  24832. LayoutMode layoutMode;
  24833. int layoutSpacing;
  24834. Vector2 maxAnchor;
  24835. int maxHeight;
  24836. IntVector2 maxOffset;
  24837. IntVector2 maxSize;
  24838. int maxWidth;
  24839. Vector2 minAnchor;
  24840. int minHeight;
  24841. IntVector2 minOffset;
  24842. IntVector2 minSize;
  24843. int minWidth;
  24844. String name;
  24845. /* readonly */
  24846. uint numAllChildren;
  24847. /* readonly */
  24848. uint numAttributes;
  24849. /* readonly */
  24850. uint numChildren;
  24851. ObjectAnimation objectAnimation;
  24852. float opacity;
  24853. float pageStep;
  24854. UIElement parent;
  24855. Vector2 pivot;
  24856. IntVector2 position;
  24857. int priority;
  24858. /* readonly */
  24859. int refs;
  24860. /* readonly */
  24861. UIElement root;
  24862. /* readonly */
  24863. IntVector2 screenPosition;
  24864. bool scrollBarsAutoVisible;
  24865. float scrollDeceleration;
  24866. /* readonly */
  24867. BorderImage scrollPanel;
  24868. float scrollSnapEpsilon;
  24869. float scrollStep;
  24870. bool selected;
  24871. IntVector2 size;
  24872. bool sortChildren;
  24873. String style;
  24874. /* readonly */
  24875. Array<String> tags;
  24876. bool temporary;
  24877. TraversalMode traversalMode;
  24878. /* readonly */
  24879. StringHash type;
  24880. /* readonly */
  24881. String typeName;
  24882. bool useDerivedOpacity;
  24883. /* readonly */
  24884. VariantMap vars;
  24885. VerticalAlignment verticalAlignment;
  24886. /* readonly */
  24887. ScrollBar verticalScrollBar;
  24888. bool verticalScrollBarVisible;
  24889. IntVector2 viewPosition;
  24890. bool visible;
  24891. /* readonly */
  24892. bool visibleEffective;
  24893. /* readonly */
  24894. int weakRefs;
  24895. int width;
  24896. };
  24897. class Serializable
  24898. {
  24899. public:
  24900. Serializable();
  24901. // Methods:
  24902. void AllocateNetworkState();
  24903. operator Animatable() const;
  24904. operator AnimatedModel() const;
  24905. operator AnimatedSprite2D() const;
  24906. operator AnimationController() const;
  24907. void ApplyAttributes();
  24908. operator BillboardSet() const;
  24909. operator BorderImage() const;
  24910. operator Button() const;
  24911. operator Camera() const;
  24912. operator CheckBox() const;
  24913. operator CollisionBox2D() const;
  24914. operator CollisionChain2D() const;
  24915. operator CollisionCircle2D() const;
  24916. operator CollisionEdge2D() const;
  24917. operator CollisionPolygon2D() const;
  24918. operator CollisionShape2D() const;
  24919. operator CollisionShape() const;
  24920. operator Component() const;
  24921. operator Constraint2D() const;
  24922. operator Constraint() const;
  24923. operator ConstraintDistance2D() const;
  24924. operator ConstraintFriction2D() const;
  24925. operator ConstraintGear2D() const;
  24926. operator ConstraintMotor2D() const;
  24927. operator ConstraintMouse2D() const;
  24928. operator ConstraintPrismatic2D() const;
  24929. operator ConstraintPulley2D() const;
  24930. operator ConstraintRevolute2D() const;
  24931. operator ConstraintWeld2D() const;
  24932. operator ConstraintWheel2D() const;
  24933. operator CrowdAgent() const;
  24934. operator CrowdManager() const;
  24935. operator Cursor() const;
  24936. operator CustomGeometry() const;
  24937. operator DebugRenderer() const;
  24938. operator DecalSet() const;
  24939. operator Drawable2D() const;
  24940. operator Drawable() const;
  24941. operator DropDownList() const;
  24942. operator DynamicNavigationMesh() const;
  24943. Variant GetAttribute(const String&) const;
  24944. Variant GetAttribute(uint) const;
  24945. Variant GetAttributeDefault(const String&) const;
  24946. Variant GetAttributeDefault(uint) const;
  24947. bool GetBlockEvents() const;
  24948. VariantMap& GetEventDataMap() const;
  24949. Object GetEventSender() const;
  24950. bool GetInterceptNetworkUpdate(const String&) const;
  24951. uint GetNumAttributes() const;
  24952. uint GetNumNetworkAttributes() const;
  24953. Object GetSubsystem(StringHash) const;
  24954. StringHash GetType() const;
  24955. bool HasEventHandlers() const;
  24956. bool HasSubscribedToEvent(Object, StringHash) const;
  24957. bool HasSubscribedToEvent(StringHash) const;
  24958. operator IKConstraint() const;
  24959. operator IKEffector() const;
  24960. operator IKSolver() const;
  24961. bool IsInstanceOf(StringHash) const;
  24962. bool IsTemporary() const;
  24963. operator Light() const;
  24964. operator LineEdit() const;
  24965. operator ListView() const;
  24966. bool Load(Deserializer&);
  24967. bool LoadJSON(const JSONValue&);
  24968. bool LoadXML(const XMLElement&);
  24969. operator LogicComponent() const;
  24970. void MarkNetworkUpdate();
  24971. operator Menu() const;
  24972. operator NavArea() const;
  24973. operator Navigable() const;
  24974. operator NavigationMesh() const;
  24975. operator NetworkPriority() const;
  24976. operator Node() const;
  24977. operator Object() const;
  24978. operator Obstacle() const;
  24979. operator Octree() const;
  24980. operator OffMeshConnection() const;
  24981. void OnEvent(Object, StringHash, VariantMap&);
  24982. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  24983. void OnSetAttribute(const AttributeInfo&, const Variant&);
  24984. operator ParticleEmitter2D() const;
  24985. operator ParticleEmitter() const;
  24986. operator PhysicsWorld2D() const;
  24987. operator PhysicsWorld() const;
  24988. operator ProgressBar() const;
  24989. operator RaycastVehicle() const;
  24990. bool ReadDeltaUpdate(Deserializer&);
  24991. bool ReadLatestDataUpdate(Deserializer&);
  24992. operator RefCounted() const;
  24993. int Refs() const;
  24994. void RemoveInstanceDefault();
  24995. operator Renderer2D() const;
  24996. void ResetToDefault();
  24997. operator RibbonTrail() const;
  24998. operator RigidBody2D() const;
  24999. operator RigidBody() const;
  25000. bool Save(Serializer&) const;
  25001. bool SaveDefaultAttributes() const;
  25002. bool SaveJSON(JSONValue&) const;
  25003. bool SaveXML(XMLElement&) const;
  25004. operator Scene() const;
  25005. operator ScriptInstance() const;
  25006. operator ScrollBar() const;
  25007. operator ScrollView() const;
  25008. void SendEvent(StringHash);
  25009. void SendEvent(StringHash, VariantMap&);
  25010. bool SetAttribute(const String&, const Variant&);
  25011. bool SetAttribute(uint, const Variant&);
  25012. void SetBlockEvents(bool);
  25013. void SetGlobalVar(StringHash, const Variant&);
  25014. void SetInstanceDefault(bool);
  25015. void SetInterceptNetworkUpdate(const String&, bool);
  25016. void SetTemporary(bool);
  25017. operator Skybox() const;
  25018. operator Slider() const;
  25019. operator SmoothedTransform() const;
  25020. operator SoundListener() const;
  25021. operator SoundSource3D() const;
  25022. operator SoundSource() const;
  25023. operator SplinePath() const;
  25024. operator Sprite() const;
  25025. operator StaticModel() const;
  25026. operator StaticModelGroup() const;
  25027. operator StaticSprite2D() const;
  25028. operator StretchableSprite2D() const;
  25029. const String& GetCategory() const;
  25030. const String& GetTypeName() const;
  25031. operator Terrain() const;
  25032. operator TerrainPatch() const;
  25033. operator Text3D() const;
  25034. operator Text() const;
  25035. operator TileMap2D() const;
  25036. operator TileMapLayer2D() const;
  25037. operator ToolTip() const;
  25038. operator UIComponent() const;
  25039. operator UIElement() const;
  25040. operator UISelectable() const;
  25041. operator UnknownComponent() const;
  25042. void UnsubscribeFromAllEvents();
  25043. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25044. void UnsubscribeFromEvent(Object, StringHash);
  25045. void UnsubscribeFromEvent(StringHash);
  25046. void UnsubscribeFromEvents(Object);
  25047. const Variant& GetGlobalVar(StringHash) const;
  25048. const VariantMap& GetGlobalVars() const;
  25049. operator View3D() const;
  25050. int WeakRefs() const;
  25051. operator Window() const;
  25052. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  25053. void WriteInitialDeltaUpdate(Serializer&, uint8);
  25054. void WriteLatestDataUpdate(Serializer&, uint8);
  25055. operator Zone() const;
  25056. operator const Animatable() const;
  25057. operator const AnimatedModel() const;
  25058. operator const AnimatedSprite2D() const;
  25059. operator const AnimationController() const;
  25060. operator const BillboardSet() const;
  25061. operator const BorderImage() const;
  25062. operator const Button() const;
  25063. operator const Camera() const;
  25064. operator const CheckBox() const;
  25065. operator const CollisionBox2D() const;
  25066. operator const CollisionChain2D() const;
  25067. operator const CollisionCircle2D() const;
  25068. operator const CollisionEdge2D() const;
  25069. operator const CollisionPolygon2D() const;
  25070. operator const CollisionShape2D() const;
  25071. operator const CollisionShape() const;
  25072. operator const Component() const;
  25073. operator const Constraint2D() const;
  25074. operator const Constraint() const;
  25075. operator const ConstraintDistance2D() const;
  25076. operator const ConstraintFriction2D() const;
  25077. operator const ConstraintGear2D() const;
  25078. operator const ConstraintMotor2D() const;
  25079. operator const ConstraintMouse2D() const;
  25080. operator const ConstraintPrismatic2D() const;
  25081. operator const ConstraintPulley2D() const;
  25082. operator const ConstraintRevolute2D() const;
  25083. operator const ConstraintWeld2D() const;
  25084. operator const ConstraintWheel2D() const;
  25085. operator const CrowdAgent() const;
  25086. operator const CrowdManager() const;
  25087. operator const Cursor() const;
  25088. operator const CustomGeometry() const;
  25089. operator const DebugRenderer() const;
  25090. operator const DecalSet() const;
  25091. operator const Drawable2D() const;
  25092. operator const Drawable() const;
  25093. operator const DropDownList() const;
  25094. operator const DynamicNavigationMesh() const;
  25095. operator const IKConstraint() const;
  25096. operator const IKEffector() const;
  25097. operator const IKSolver() const;
  25098. operator const Light() const;
  25099. operator const LineEdit() const;
  25100. operator const ListView() const;
  25101. operator const LogicComponent() const;
  25102. operator const Menu() const;
  25103. operator const NavArea() const;
  25104. operator const Navigable() const;
  25105. operator const NavigationMesh() const;
  25106. operator const NetworkPriority() const;
  25107. operator const Node() const;
  25108. operator const Object() const;
  25109. operator const Obstacle() const;
  25110. operator const Octree() const;
  25111. operator const OffMeshConnection() const;
  25112. operator const ParticleEmitter2D() const;
  25113. operator const ParticleEmitter() const;
  25114. operator const PhysicsWorld2D() const;
  25115. operator const PhysicsWorld() const;
  25116. operator const ProgressBar() const;
  25117. operator const RaycastVehicle() const;
  25118. operator const RefCounted() const;
  25119. operator const Renderer2D() const;
  25120. operator const RibbonTrail() const;
  25121. operator const RigidBody2D() const;
  25122. operator const RigidBody() const;
  25123. operator const Scene() const;
  25124. operator const ScriptInstance() const;
  25125. operator const ScrollBar() const;
  25126. operator const ScrollView() const;
  25127. operator const Skybox() const;
  25128. operator const Slider() const;
  25129. operator const SmoothedTransform() const;
  25130. operator const SoundListener() const;
  25131. operator const SoundSource3D() const;
  25132. operator const SoundSource() const;
  25133. operator const SplinePath() const;
  25134. operator const Sprite() const;
  25135. operator const StaticModel() const;
  25136. operator const StaticModelGroup() const;
  25137. operator const StaticSprite2D() const;
  25138. operator const StretchableSprite2D() const;
  25139. operator const Terrain() const;
  25140. operator const TerrainPatch() const;
  25141. operator const Text3D() const;
  25142. operator const Text() const;
  25143. operator const TileMap2D() const;
  25144. operator const TileMapLayer2D() const;
  25145. operator const ToolTip() const;
  25146. operator const UIComponent() const;
  25147. operator const UIElement() const;
  25148. operator const UISelectable() const;
  25149. operator const UnknownComponent() const;
  25150. operator const View3D() const;
  25151. operator const Window() const;
  25152. operator const Zone() const;
  25153. // Properties:
  25154. /* readonly */
  25155. Array<Variant> attributeDefaults;
  25156. /* readonly */
  25157. Array<AttributeInfo> attributeInfos;
  25158. Array<Variant> attributes;
  25159. /* readonly */
  25160. String category;
  25161. Array<Variant> globalVar;
  25162. /* readonly */
  25163. VariantMap globalVars;
  25164. /* readonly */
  25165. uint numAttributes;
  25166. /* readonly */
  25167. int refs;
  25168. bool temporary;
  25169. /* readonly */
  25170. StringHash type;
  25171. /* readonly */
  25172. String typeName;
  25173. /* readonly */
  25174. int weakRefs;
  25175. };
  25176. class Serializer
  25177. {
  25178. public:
  25179. // Methods:
  25180. Serializer& operator=(const Serializer&);
  25181. operator File() const;
  25182. operator NamedPipe() const;
  25183. uint Write(Array<uint8>);
  25184. bool WriteBool(bool);
  25185. bool WriteBoundingBox(const BoundingBox&);
  25186. bool WriteByte(int8);
  25187. bool WriteColor(const Color&);
  25188. bool WriteDouble(double);
  25189. bool WriteFileID(const String&);
  25190. bool WriteFloat(float);
  25191. bool WriteInt(int);
  25192. bool WriteInt64(int64);
  25193. bool WriteIntRect(const IntRect&);
  25194. bool WriteIntVector2(const IntVector2&);
  25195. bool WriteIntVector3(const IntVector3&);
  25196. bool WriteLine(const String&);
  25197. bool WriteMatrix3(const Matrix3&);
  25198. bool WriteMatrix3x4(const Matrix3x4&);
  25199. bool WriteMatrix4(const Matrix4&);
  25200. bool WriteNetID(uint);
  25201. bool WritePackedQuaternion(const Quaternion&);
  25202. bool WritePackedVector3(const Vector3&, float);
  25203. bool WriteQuaternion(const Quaternion&);
  25204. bool WriteRect(const Rect&);
  25205. bool WriteResourceRef(const ResourceRef&);
  25206. bool WriteResourceRefList(const ResourceRefList&);
  25207. bool WriteShort(int16);
  25208. bool WriteString(const String&);
  25209. bool WriteStringHash(const StringHash&);
  25210. bool WriteStringVector(Array<String>);
  25211. bool WriteUByte(uint8);
  25212. bool WriteUInt(uint);
  25213. bool WriteUInt64(uint64);
  25214. bool WriteUShort(uint16);
  25215. bool WriteVLE(uint);
  25216. bool WriteVariant(const Variant&);
  25217. bool WriteVariantData(const Variant&);
  25218. bool WriteVariantMap(const VariantMap&);
  25219. bool WriteVector2(const Vector2&);
  25220. bool WriteVector3(const Vector3&);
  25221. bool WriteVector4(const Vector4&);
  25222. bool WriteVectorBuffer(const VectorBuffer&);
  25223. operator const File() const;
  25224. operator const NamedPipe() const;
  25225. };
  25226. class Shader
  25227. {
  25228. public:
  25229. Shader();
  25230. // Methods:
  25231. bool BeginLoad(Deserializer&);
  25232. bool EndLoad();
  25233. AsyncLoadState GetAsyncLoadState() const;
  25234. bool GetBlockEvents() const;
  25235. VariantMap& GetEventDataMap() const;
  25236. Object GetEventSender() const;
  25237. uint GetMemoryUse() const;
  25238. StringHash GetNameHash() const;
  25239. Object GetSubsystem(StringHash) const;
  25240. uint GetTimeStamp() const;
  25241. StringHash GetType() const;
  25242. uint GetUseTimer();
  25243. ShaderVariation GetVariation(ShaderType, const String&);
  25244. bool HasEventHandlers() const;
  25245. bool HasSubscribedToEvent(Object, StringHash) const;
  25246. bool HasSubscribedToEvent(StringHash) const;
  25247. bool IsInstanceOf(StringHash) const;
  25248. bool Load(Deserializer&);
  25249. bool Load(File);
  25250. bool Load(VectorBuffer&);
  25251. bool Load(const String&);
  25252. bool LoadFile(const String&);
  25253. operator Object() const;
  25254. void OnEvent(Object, StringHash, VariantMap&);
  25255. operator RefCounted() const;
  25256. int Refs() const;
  25257. void ResetUseTimer();
  25258. operator Resource() const;
  25259. bool Save(File) const;
  25260. bool Save(Serializer&) const;
  25261. bool Save(VectorBuffer&) const;
  25262. bool Save(const String&) const;
  25263. bool SaveFile(const String&) const;
  25264. void SendEvent(StringHash);
  25265. void SendEvent(StringHash, VariantMap&);
  25266. void SetAsyncLoadState(AsyncLoadState);
  25267. void SetBlockEvents(bool);
  25268. void SetGlobalVar(StringHash, const Variant&);
  25269. void SetMemoryUse(uint);
  25270. void SetName(const String&);
  25271. const String& GetCategory() const;
  25272. const String& GetName() const;
  25273. const String& GetSourceCode(ShaderType) const;
  25274. const String& GetTypeName() const;
  25275. void UnsubscribeFromAllEvents();
  25276. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25277. void UnsubscribeFromEvent(Object, StringHash);
  25278. void UnsubscribeFromEvent(StringHash);
  25279. void UnsubscribeFromEvents(Object);
  25280. const Variant& GetGlobalVar(StringHash) const;
  25281. const VariantMap& GetGlobalVars() const;
  25282. int WeakRefs() const;
  25283. operator const Object() const;
  25284. operator const RefCounted() const;
  25285. operator const Resource() const;
  25286. // Properties:
  25287. /* readonly */
  25288. String category;
  25289. Array<Variant> globalVar;
  25290. /* readonly */
  25291. VariantMap globalVars;
  25292. /* readonly */
  25293. uint memoryUse;
  25294. String name;
  25295. /* readonly */
  25296. int refs;
  25297. /* readonly */
  25298. StringHash type;
  25299. /* readonly */
  25300. String typeName;
  25301. /* readonly */
  25302. uint useTimer;
  25303. /* readonly */
  25304. int weakRefs;
  25305. };
  25306. class ShaderParameter
  25307. {
  25308. public:
  25309. ~ShaderParameter();
  25310. ShaderParameter();
  25311. ShaderParameter(const String&in, uint, int);
  25312. ShaderParameter(ShaderType, const String&in, uint, uint, uint);
  25313. ShaderParameter(ShaderType, const String&in, uint, uint);
  25314. // Methods:
  25315. ShaderParameter& operator=(const ShaderParameter&);
  25316. // Properties:
  25317. uint buffer;
  25318. uint glType;
  25319. int location;
  25320. String name;
  25321. uint offset;
  25322. uint regCount;
  25323. uint register;
  25324. uint size;
  25325. ShaderType type;
  25326. };
  25327. class ShaderParameterAnimationInfo
  25328. {
  25329. public:
  25330. ShaderParameterAnimationInfo(Material&, const String&in, ValueAnimation&, WrapMode, float);
  25331. ShaderParameterAnimationInfo(const ShaderParameterAnimationInfo&in);
  25332. // Methods:
  25333. ValueAnimation GetAnimation() const;
  25334. float GetSpeed() const;
  25335. Object GetTarget() const;
  25336. float GetTime() const;
  25337. WrapMode GetWrapMode() const;
  25338. operator RefCounted() const;
  25339. int Refs() const;
  25340. void SetSpeed(float);
  25341. bool SetTime(float);
  25342. void SetWrapMode(WrapMode);
  25343. const String& GetName() const;
  25344. bool Update(float);
  25345. operator ValueAnimationInfo() const;
  25346. int WeakRefs() const;
  25347. operator const RefCounted() const;
  25348. operator const ValueAnimationInfo() const;
  25349. // Properties:
  25350. /* readonly */
  25351. int refs;
  25352. /* readonly */
  25353. int weakRefs;
  25354. };
  25355. class ShaderPrecache
  25356. {
  25357. public:
  25358. ShaderPrecache(const String&in);
  25359. // Methods:
  25360. bool GetBlockEvents() const;
  25361. VariantMap& GetEventDataMap() const;
  25362. Object GetEventSender() const;
  25363. Object GetSubsystem(StringHash) const;
  25364. StringHash GetType() const;
  25365. bool HasEventHandlers() const;
  25366. bool HasSubscribedToEvent(Object, StringHash) const;
  25367. bool HasSubscribedToEvent(StringHash) const;
  25368. bool IsInstanceOf(StringHash) const;
  25369. operator Object() const;
  25370. void OnEvent(Object, StringHash, VariantMap&);
  25371. operator RefCounted() const;
  25372. int Refs() const;
  25373. void SendEvent(StringHash);
  25374. void SendEvent(StringHash, VariantMap&);
  25375. void SetBlockEvents(bool);
  25376. void SetGlobalVar(StringHash, const Variant&);
  25377. void StoreShaders(ShaderVariation, ShaderVariation);
  25378. const String& GetCategory() const;
  25379. const String& GetTypeName() const;
  25380. void UnsubscribeFromAllEvents();
  25381. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25382. void UnsubscribeFromEvent(Object, StringHash);
  25383. void UnsubscribeFromEvent(StringHash);
  25384. void UnsubscribeFromEvents(Object);
  25385. const Variant& GetGlobalVar(StringHash) const;
  25386. const VariantMap& GetGlobalVars() const;
  25387. int WeakRefs() const;
  25388. operator const Object() const;
  25389. operator const RefCounted() const;
  25390. // Properties:
  25391. /* readonly */
  25392. String category;
  25393. Array<Variant> globalVar;
  25394. /* readonly */
  25395. VariantMap globalVars;
  25396. /* readonly */
  25397. int refs;
  25398. /* readonly */
  25399. StringHash type;
  25400. /* readonly */
  25401. String typeName;
  25402. /* readonly */
  25403. int weakRefs;
  25404. };
  25405. class ShaderVariation
  25406. {
  25407. public:
  25408. ShaderVariation(Shader&, ShaderType);
  25409. // Methods:
  25410. void ClearDataLost();
  25411. bool Create();
  25412. uint64 GetElementHash() const;
  25413. String GetFullName() const;
  25414. uint GetGPUObjectName() const;
  25415. Graphics GetGraphics() const;
  25416. Shader GetOwner() const;
  25417. ShaderType GetShaderType() const;
  25418. bool HasParameter(StringHash) const;
  25419. bool HasPendingData() const;
  25420. bool HasTextureUnit(TextureUnit) const;
  25421. bool IsDataLost() const;
  25422. void OnDeviceLost();
  25423. void OnDeviceReset();
  25424. operator RefCounted() const;
  25425. int Refs() const;
  25426. void Release();
  25427. void SetDefines(const String&);
  25428. void SetName(const String&);
  25429. const String& GetCompilerOutput() const;
  25430. const String& GetDefines() const;
  25431. const String& GetDefinesClipPlane();
  25432. const String& GetName() const;
  25433. int WeakRefs() const;
  25434. operator const RefCounted() const;
  25435. // Properties:
  25436. /* readonly */
  25437. bool dataLost;
  25438. /* readonly */
  25439. int refs;
  25440. /* readonly */
  25441. int weakRefs;
  25442. };
  25443. class ShadowBatchQueue
  25444. {
  25445. public:
  25446. ~ShadowBatchQueue();
  25447. ShadowBatchQueue();
  25448. // Methods:
  25449. ShadowBatchQueue& operator=(const ShadowBatchQueue&);
  25450. // Properties:
  25451. float farSplit;
  25452. float nearSplit;
  25453. BatchQueue shadowBatches;
  25454. IntRect shadowViewport;
  25455. };
  25456. class SimpleNavBuildData
  25457. {
  25458. public:
  25459. ~SimpleNavBuildData();
  25460. SimpleNavBuildData();
  25461. // Methods:
  25462. SimpleNavBuildData& operator=(const SimpleNavBuildData&);
  25463. // Properties:
  25464. BoundingBox worldBoundingBox;
  25465. };
  25466. class Skeleton
  25467. {
  25468. public:
  25469. // Methods:
  25470. Skeleton& operator=(const Skeleton&);
  25471. void ClearBones();
  25472. void Define(const Skeleton&);
  25473. Bone GetBone(const String&);
  25474. Bone GetBone(const StringHash&);
  25475. Bone GetBone(uint);
  25476. uint GetBoneIndex(Bone) const;
  25477. uint GetBoneIndex(const String&) const;
  25478. uint GetBoneIndex(const StringHash&) const;
  25479. Bone GetBoneParent(Bone);
  25480. uint GetNumBones() const;
  25481. Bone GetRootBone();
  25482. bool Load(Deserializer&);
  25483. void Reset();
  25484. void ResetSilent();
  25485. bool Save(Serializer&) const;
  25486. void SetRootBoneIndex(uint);
  25487. // Properties:
  25488. /* readonly */
  25489. Array<Bone> bones;
  25490. /* readonly */
  25491. uint numBones;
  25492. /* readonly */
  25493. Bone rootBone;
  25494. };
  25495. class Skybox
  25496. {
  25497. public:
  25498. Skybox();
  25499. // Methods:
  25500. void AddLight(Light);
  25501. void AddVertexLight(Light);
  25502. void AllocateNetworkState();
  25503. operator Animatable() const;
  25504. void ApplyAttributes();
  25505. void ApplyMaterialList(const String& = String :: EMPTY);
  25506. const BoundingBox& GetBoundingBox() const;
  25507. const BoundingBox& GetWorldBoundingBox();
  25508. void CleanupConnection(Connection);
  25509. operator Component() const;
  25510. void DrawDebugGeometry(DebugRenderer, bool);
  25511. bool DrawOcclusion(OcclusionBuffer);
  25512. operator Drawable() const;
  25513. bool GetAnimationEnabled() const;
  25514. Variant GetAttribute(const String&) const;
  25515. Variant GetAttribute(uint) const;
  25516. ValueAnimation GetAttributeAnimation(const String&) const;
  25517. float GetAttributeAnimationSpeed(const String&) const;
  25518. float GetAttributeAnimationTime(const String&) const;
  25519. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  25520. Variant GetAttributeDefault(const String&) const;
  25521. Variant GetAttributeDefault(uint) const;
  25522. bool GetBlockEvents() const;
  25523. bool GetCastShadows() const;
  25524. Component GetComponent(StringHash) const;
  25525. float GetDistance() const;
  25526. float GetDrawDistance() const;
  25527. uint8 GetDrawableFlags() const;
  25528. VariantMap& GetEventDataMap() const;
  25529. Object GetEventSender() const;
  25530. Light GetFirstLight() const;
  25531. uint GetID() const;
  25532. bool GetInterceptNetworkUpdate(const String&) const;
  25533. uint GetLightMask() const;
  25534. Array<Light> GetLights() const;
  25535. float GetLodBias() const;
  25536. float GetLodDistance() const;
  25537. Geometry GetLodGeometry(uint, uint);
  25538. Material GetMaterial() const;
  25539. Material GetMaterial(uint) const;
  25540. uint GetMaxLights() const;
  25541. float GetMaxZ() const;
  25542. float GetMinZ() const;
  25543. Model GetModel() const;
  25544. ResourceRef GetModelAttr() const;
  25545. Node GetNode() const;
  25546. uint GetNumAttributes() const;
  25547. uint GetNumGeometries() const;
  25548. uint GetNumNetworkAttributes() const;
  25549. uint GetNumOccluderTriangles();
  25550. ObjectAnimation GetObjectAnimation() const;
  25551. ResourceRef GetObjectAnimationAttr() const;
  25552. uint GetOcclusionLodLevel() const;
  25553. Scene GetScene() const;
  25554. float GetShadowDistance() const;
  25555. uint GetShadowMask() const;
  25556. float GetSortValue() const;
  25557. Object GetSubsystem(StringHash) const;
  25558. StringHash GetType() const;
  25559. UpdateGeometryType GetUpdateGeometryType();
  25560. Array<Light> GetVertexLights() const;
  25561. uint GetViewMask() const;
  25562. Zone GetZone() const;
  25563. uint GetZoneMask() const;
  25564. bool HasBasePass(uint) const;
  25565. bool HasEventHandlers() const;
  25566. bool HasSubscribedToEvent(Object, StringHash) const;
  25567. bool HasSubscribedToEvent(StringHash) const;
  25568. bool IsEnabled() const;
  25569. bool IsEnabledEffective() const;
  25570. bool IsInView() const;
  25571. bool IsInView(Camera) const;
  25572. bool IsInView(const FrameInfo&, bool = false) const;
  25573. bool IsInside(const Vector3&) const;
  25574. bool IsInsideLocal(const Vector3&) const;
  25575. bool IsInstanceOf(StringHash) const;
  25576. bool IsOccludee() const;
  25577. bool IsOccluder() const;
  25578. bool IsReplicated() const;
  25579. bool IsTemporary() const;
  25580. bool IsZoneDirty() const;
  25581. void LimitLights();
  25582. void LimitVertexLights(bool);
  25583. bool Load(Deserializer&);
  25584. bool LoadJSON(const JSONValue&);
  25585. bool LoadXML(const XMLElement&);
  25586. void MarkForUpdate();
  25587. void MarkInView(const FrameInfo&);
  25588. void MarkInView(uint);
  25589. void MarkNetworkUpdate();
  25590. operator Object() const;
  25591. void OnEvent(Object, StringHash, VariantMap&);
  25592. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  25593. void OnSetAttribute(const AttributeInfo&, const Variant&);
  25594. void OnSetEnabled();
  25595. void PrepareNetworkUpdate();
  25596. bool ReadDeltaUpdate(Deserializer&);
  25597. bool ReadLatestDataUpdate(Deserializer&);
  25598. operator RefCounted() const;
  25599. int Refs() const;
  25600. void Remove();
  25601. void RemoveAttributeAnimation(const String&);
  25602. void RemoveInstanceDefault();
  25603. void RemoveObjectAnimation();
  25604. void ResetToDefault();
  25605. const ResourceRefList& GetMaterialsAttr() const;
  25606. bool Save(Serializer&) const;
  25607. bool SaveDefaultAttributes() const;
  25608. bool SaveJSON(JSONValue&) const;
  25609. bool SaveXML(XMLElement&) const;
  25610. void SendEvent(StringHash);
  25611. void SendEvent(StringHash, VariantMap&);
  25612. operator Serializable() const;
  25613. void SetAnimationEnabled(bool);
  25614. void SetAnimationTime(float);
  25615. bool SetAttribute(const String&, const Variant&);
  25616. bool SetAttribute(uint, const Variant&);
  25617. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  25618. void SetAttributeAnimationSpeed(const String&, float);
  25619. void SetAttributeAnimationTime(const String&, float);
  25620. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  25621. void SetBasePass(uint);
  25622. void SetBlockEvents(bool);
  25623. void SetCastShadows(bool);
  25624. void SetDrawDistance(float);
  25625. void SetEnabled(bool);
  25626. void SetGlobalVar(StringHash, const Variant&);
  25627. void SetInstanceDefault(bool);
  25628. void SetInterceptNetworkUpdate(const String&, bool);
  25629. void SetLightMask(uint);
  25630. void SetLodBias(float);
  25631. void SetMaterial(Material);
  25632. bool SetMaterial(uint, Material);
  25633. void SetMaterialsAttr(const ResourceRefList&);
  25634. void SetMaxLights(uint);
  25635. void SetMinMaxZ(float, float);
  25636. void SetModel(Model);
  25637. void SetModelAttr(const ResourceRef&);
  25638. void SetObjectAnimation(ObjectAnimation);
  25639. void SetObjectAnimationAttr(const ResourceRef&);
  25640. void SetOccludee(bool);
  25641. void SetOccluder(bool);
  25642. void SetOcclusionLodLevel(uint);
  25643. void SetShadowDistance(float);
  25644. void SetShadowMask(uint);
  25645. void SetSortValue(float);
  25646. void SetTemporary(bool);
  25647. void SetViewMask(uint);
  25648. void SetZone(Zone, bool = false);
  25649. void SetZoneMask(uint);
  25650. operator StaticModel() const;
  25651. const String& GetCategory() const;
  25652. const String& GetTypeName() const;
  25653. void UnsubscribeFromAllEvents();
  25654. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25655. void UnsubscribeFromEvent(Object, StringHash);
  25656. void UnsubscribeFromEvent(StringHash);
  25657. void UnsubscribeFromEvents(Object);
  25658. void Update(const FrameInfo&);
  25659. void UpdateBatches(const FrameInfo&);
  25660. void UpdateGeometry(const FrameInfo&);
  25661. const Variant& GetGlobalVar(StringHash) const;
  25662. const VariantMap& GetGlobalVars() const;
  25663. int WeakRefs() const;
  25664. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  25665. void WriteInitialDeltaUpdate(Serializer&, uint8);
  25666. void WriteLatestDataUpdate(Serializer&, uint8);
  25667. operator const Animatable() const;
  25668. operator const Component() const;
  25669. operator const Drawable() const;
  25670. operator const Object() const;
  25671. operator const RefCounted() const;
  25672. operator const Serializable() const;
  25673. operator const StaticModel() const;
  25674. // Properties:
  25675. bool animationEnabled;
  25676. /* readonly */
  25677. Array<Variant> attributeDefaults;
  25678. /* readonly */
  25679. Array<AttributeInfo> attributeInfos;
  25680. Array<Variant> attributes;
  25681. /* readonly */
  25682. BoundingBox boundingBox;
  25683. bool castShadows;
  25684. /* readonly */
  25685. String category;
  25686. float drawDistance;
  25687. bool enabled;
  25688. /* readonly */
  25689. bool enabledEffective;
  25690. Array<Variant> globalVar;
  25691. /* readonly */
  25692. VariantMap globalVars;
  25693. /* readonly */
  25694. uint id;
  25695. /* readonly */
  25696. bool inView;
  25697. uint lightMask;
  25698. float lodBias;
  25699. Material material;
  25700. Array<Material> materials;
  25701. uint maxLights;
  25702. Model model;
  25703. /* readonly */
  25704. Node node;
  25705. /* readonly */
  25706. uint numAttributes;
  25707. /* readonly */
  25708. uint numGeometries;
  25709. ObjectAnimation objectAnimation;
  25710. bool occludee;
  25711. bool occluder;
  25712. uint occlusionLodLevel;
  25713. /* readonly */
  25714. int refs;
  25715. /* readonly */
  25716. bool replicated;
  25717. float shadowDistance;
  25718. uint shadowMask;
  25719. bool temporary;
  25720. /* readonly */
  25721. StringHash type;
  25722. /* readonly */
  25723. String typeName;
  25724. uint viewMask;
  25725. /* readonly */
  25726. int weakRefs;
  25727. /* readonly */
  25728. BoundingBox worldBoundingBox;
  25729. /* readonly */
  25730. Zone zone;
  25731. uint zoneMask;
  25732. };
  25733. class Slider
  25734. {
  25735. public:
  25736. Slider();
  25737. // Methods:
  25738. void AddChild(UIElement);
  25739. void AddTag(const String&);
  25740. void AddTags(Array<String>);
  25741. void AddTags(const String&, int8 = ';');
  25742. void AdjustScissor(IntRect&);
  25743. void AllocateNetworkState();
  25744. operator Animatable() const;
  25745. void ApplyAttributes();
  25746. operator BorderImage() const;
  25747. void BringToFront();
  25748. void ChangeValue(float);
  25749. const Color& GetColor(Corner) const;
  25750. const Color& GetColorAttr() const;
  25751. const Color& GetDerivedColor() const;
  25752. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  25753. void DisableLayoutUpdate();
  25754. IntVector2 ElementToScreen(const IntVector2&);
  25755. void EnableLayoutUpdate();
  25756. bool FilterAttributes(XMLElement&) const;
  25757. uint FindChild(UIElement) const;
  25758. bool GetAnimationEnabled() const;
  25759. Variant GetAttribute(const String&) const;
  25760. Variant GetAttribute(uint) const;
  25761. ValueAnimation GetAttributeAnimation(const String&) const;
  25762. float GetAttributeAnimationSpeed(const String&) const;
  25763. float GetAttributeAnimationTime(const String&) const;
  25764. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  25765. Variant GetAttributeDefault(const String&) const;
  25766. Variant GetAttributeDefault(uint) const;
  25767. BlendMode GetBlendMode() const;
  25768. bool GetBlockEvents() const;
  25769. bool GetBringToBack() const;
  25770. bool GetBringToFront() const;
  25771. UIElement GetChild(const String&, bool = false) const;
  25772. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  25773. UIElement GetChild(uint) const;
  25774. Array<UIElement> GetChildren() const;
  25775. Array<UIElement> GetChildren(bool) const;
  25776. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  25777. bool GetClipChildren() const;
  25778. IntRect GetCombinedScreenRect();
  25779. XMLFile GetDefaultStyle(bool = true) const;
  25780. float GetDerivedOpacity() const;
  25781. uint GetDragButtonCombo() const;
  25782. uint GetDragButtonCount() const;
  25783. uint GetDragDropMode() const;
  25784. IntVector2 GetEffectiveMinSize() const;
  25785. UIElement GetElementEventSender() const;
  25786. bool GetEnableAnchor() const;
  25787. VariantMap& GetEventDataMap() const;
  25788. Object GetEventSender() const;
  25789. FocusMode GetFocusMode() const;
  25790. int GetHeight() const;
  25791. HorizontalAlignment GetHorizontalAlignment() const;
  25792. int GetIndent() const;
  25793. int GetIndentSpacing() const;
  25794. int GetIndentWidth() const;
  25795. bool GetInterceptNetworkUpdate(const String&) const;
  25796. BorderImage GetKnob() const;
  25797. int GetLayoutElementMaxSize() const;
  25798. LayoutMode GetLayoutMode() const;
  25799. int GetLayoutSpacing() const;
  25800. Material GetMaterial() const;
  25801. ResourceRef GetMaterialAttr() const;
  25802. int GetMaxHeight() const;
  25803. int GetMaxWidth() const;
  25804. int GetMinHeight() const;
  25805. int GetMinWidth() const;
  25806. uint GetNumAttributes() const;
  25807. uint GetNumChildren(bool = false) const;
  25808. uint GetNumNetworkAttributes() const;
  25809. ObjectAnimation GetObjectAnimation() const;
  25810. ResourceRef GetObjectAnimationAttr() const;
  25811. float GetOpacity() const;
  25812. Orientation GetOrientation() const;
  25813. UIElement GetParent() const;
  25814. int GetPriority() const;
  25815. float GetRange() const;
  25816. float GetRepeatRate() const;
  25817. UIElement GetRoot() const;
  25818. bool GetSortChildren() const;
  25819. Object GetSubsystem(StringHash) const;
  25820. Array<String> GetTags() const;
  25821. Texture GetTexture() const;
  25822. ResourceRef GetTextureAttr() const;
  25823. TraversalMode GetTraversalMode() const;
  25824. StringHash GetType() const;
  25825. bool GetUseDerivedOpacity() const;
  25826. float GetValue() const;
  25827. VerticalAlignment GetVerticalAlignment() const;
  25828. int GetWidth() const;
  25829. bool HasColorGradient() const;
  25830. bool HasEventHandlers() const;
  25831. bool HasFocus() const;
  25832. bool HasSubscribedToEvent(Object, StringHash) const;
  25833. bool HasSubscribedToEvent(StringHash) const;
  25834. bool HasTag(const String&) const;
  25835. void InsertChild(uint, UIElement);
  25836. const IntRect& GetBorder() const;
  25837. const IntRect& GetClipBorder() const;
  25838. const IntRect& GetImageBorder() const;
  25839. const IntRect& GetImageRect() const;
  25840. const IntRect& GetLayoutBorder() const;
  25841. const IntVector2& GetChildOffset() const;
  25842. const IntVector2& GetDisabledOffset() const;
  25843. const IntVector2& GetHoverOffset() const;
  25844. const IntVector2& GetMaxOffset() const;
  25845. const IntVector2& GetMaxSize() const;
  25846. const IntVector2& GetMinOffset() const;
  25847. const IntVector2& GetMinSize() const;
  25848. const IntVector2& GetPosition() const;
  25849. const IntVector2& GetScreenPosition() const;
  25850. const IntVector2& GetSize() const;
  25851. bool IsChildOf(UIElement) const;
  25852. bool IsEditable() const;
  25853. bool IsElementEventSender() const;
  25854. bool IsEnabled() const;
  25855. bool IsEnabledSelf() const;
  25856. bool IsFixedHeight() const;
  25857. bool IsFixedSize() const;
  25858. bool IsFixedWidth() const;
  25859. bool IsHovering() const;
  25860. bool IsInside(IntVector2, bool);
  25861. bool IsInsideCombined(IntVector2, bool);
  25862. bool IsInstanceOf(StringHash) const;
  25863. bool IsInternal() const;
  25864. bool IsSelected() const;
  25865. bool IsTemporary() const;
  25866. bool IsTiled() const;
  25867. bool IsVisible() const;
  25868. bool IsVisibleEffective() const;
  25869. bool IsWheelHandler() const;
  25870. bool IsWithinScissor(const IntRect&);
  25871. bool Load(Deserializer&);
  25872. UIElement LoadChildXML(XMLFile, XMLFile);
  25873. UIElement LoadChildXML(const XMLElement&, XMLFile);
  25874. bool LoadJSON(const JSONValue&);
  25875. bool LoadXML(Deserializer&);
  25876. bool LoadXML(File);
  25877. bool LoadXML(VectorBuffer&);
  25878. bool LoadXML(XMLFile, XMLFile);
  25879. bool LoadXML(const XMLElement&);
  25880. bool LoadXML(const XMLElement&, XMLFile);
  25881. void MarkNetworkUpdate();
  25882. operator Object() const;
  25883. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  25884. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  25885. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  25886. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25887. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25888. bool OnDragDropFinish(UIElement);
  25889. bool OnDragDropTest(UIElement);
  25890. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25891. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25892. void OnEvent(Object, StringHash, VariantMap&);
  25893. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  25894. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25895. void OnIndentSet();
  25896. void OnKey(uint, uint, uint);
  25897. void OnPositionSet(const IntVector2&);
  25898. void OnResize(const IntVector2&, const IntVector2&);
  25899. void OnSetAttribute(const AttributeInfo&, const Variant&);
  25900. void OnSetEditable();
  25901. void OnTextInput(const String&);
  25902. void OnWheel(int, uint, uint);
  25903. bool ReadDeltaUpdate(Deserializer&);
  25904. bool ReadLatestDataUpdate(Deserializer&);
  25905. operator RefCounted() const;
  25906. int Refs() const;
  25907. void Remove();
  25908. void RemoveAllChildren();
  25909. void RemoveAllTags();
  25910. void RemoveAttributeAnimation(const String&);
  25911. void RemoveChild(UIElement, uint = 0);
  25912. void RemoveChild(uint);
  25913. void RemoveChildAtIndex(uint);
  25914. void RemoveInstanceDefault();
  25915. void RemoveObjectAnimation();
  25916. bool RemoveTag(const String&);
  25917. void ResetDeepEnabled();
  25918. void ResetToDefault();
  25919. bool Save(Serializer&) const;
  25920. bool SaveDefaultAttributes() const;
  25921. bool SaveJSON(JSONValue&) const;
  25922. bool SaveXML(File, const String& indentation = "\t");
  25923. bool SaveXML(Serializer&, const String& = "\t") const;
  25924. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  25925. bool SaveXML(XMLElement&) const;
  25926. IntVector2 ScreenToElement(const IntVector2&);
  25927. void SendEvent(StringHash);
  25928. void SendEvent(StringHash, VariantMap&);
  25929. operator Serializable() const;
  25930. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  25931. void SetAnimationEnabled(bool);
  25932. void SetAnimationTime(float);
  25933. bool SetAttribute(const String&, const Variant&);
  25934. bool SetAttribute(uint, const Variant&);
  25935. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  25936. void SetAttributeAnimationSpeed(const String&, float);
  25937. void SetAttributeAnimationTime(const String&, float);
  25938. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  25939. void SetBlendMode(BlendMode);
  25940. void SetBlockEvents(bool);
  25941. void SetBorder(const IntRect&);
  25942. void SetBringToBack(bool);
  25943. void SetBringToFront(bool);
  25944. void SetChildOffset(const IntVector2&);
  25945. void SetClipBorder(const IntRect&);
  25946. void SetClipChildren(bool);
  25947. void SetColor(Corner, const Color&);
  25948. void SetColor(const Color&);
  25949. void SetDeepEnabled(bool);
  25950. void SetDefaultStyle(XMLFile);
  25951. void SetDisabledOffset(const IntVector2&);
  25952. void SetDisabledOffset(int, int);
  25953. void SetDragDropMode(uint);
  25954. void SetEditable(bool);
  25955. void SetElementEventSender(bool);
  25956. void SetEnableAnchor(bool);
  25957. void SetEnabled(bool);
  25958. void SetEnabledRecursive(bool);
  25959. void SetFixedHeight(int);
  25960. void SetFixedSize(const IntVector2&);
  25961. void SetFixedSize(int, int);
  25962. void SetFixedWidth(int);
  25963. void SetFocus(bool);
  25964. void SetFocusMode(FocusMode);
  25965. void SetFullImageRect();
  25966. void SetGlobalVar(StringHash, const Variant&);
  25967. void SetHeight(int);
  25968. void SetHorizontalAlignment(HorizontalAlignment);
  25969. void SetHoverOffset(const IntVector2&);
  25970. void SetHoverOffset(int, int);
  25971. void SetHovering(bool);
  25972. void SetImageBorder(const IntRect&);
  25973. void SetImageRect(const IntRect&);
  25974. void SetIndent(int);
  25975. void SetIndentSpacing(int);
  25976. void SetInstanceDefault(bool);
  25977. void SetInterceptNetworkUpdate(const String&, bool);
  25978. void SetInternal(bool);
  25979. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  25980. void SetLayoutBorder(const IntRect&);
  25981. void SetLayoutFlexScale(const Vector2&);
  25982. void SetLayoutMode(LayoutMode);
  25983. void SetLayoutSpacing(int);
  25984. void SetMaterial(Material);
  25985. void SetMaterialAttr(const ResourceRef&);
  25986. void SetMaxAnchor(const Vector2&);
  25987. void SetMaxAnchor(float, float);
  25988. void SetMaxHeight(int);
  25989. void SetMaxOffset(const IntVector2&);
  25990. void SetMaxSize(const IntVector2&);
  25991. void SetMaxSize(int, int);
  25992. void SetMaxWidth(int);
  25993. void SetMinAnchor(const Vector2&);
  25994. void SetMinAnchor(float, float);
  25995. void SetMinHeight(int);
  25996. void SetMinOffset(const IntVector2&);
  25997. void SetMinSize(const IntVector2&);
  25998. void SetMinSize(int, int);
  25999. void SetMinWidth(int);
  26000. void SetName(const String&);
  26001. void SetObjectAnimation(ObjectAnimation);
  26002. void SetObjectAnimationAttr(const ResourceRef&);
  26003. void SetOpacity(float);
  26004. void SetOrientation(Orientation);
  26005. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  26006. void SetPivot(const Vector2&);
  26007. void SetPivot(float, float);
  26008. void SetPosition(const IntVector2&);
  26009. void SetPosition(int, int);
  26010. void SetPriority(int);
  26011. void SetRange(float);
  26012. void SetRenderTexture(Texture2D);
  26013. void SetRepeatRate(float);
  26014. void SetSelected(bool);
  26015. void SetSize(const IntVector2&);
  26016. void SetSize(int, int);
  26017. void SetSortChildren(bool);
  26018. bool SetStyle(const String&, XMLFile = null);
  26019. bool SetStyle(const XMLElement&);
  26020. bool SetStyleAuto(XMLFile = null);
  26021. void SetTags(Array<String>);
  26022. void SetTemporary(bool);
  26023. void SetTexture(Texture);
  26024. void SetTextureAttr(const ResourceRef&);
  26025. void SetTiled(bool);
  26026. void SetTraversalMode(TraversalMode);
  26027. void SetUseDerivedOpacity(bool);
  26028. void SetValue(float);
  26029. void SetVar(StringHash, const Variant&);
  26030. void SetVerticalAlignment(VerticalAlignment);
  26031. void SetVisible(bool);
  26032. void SetWidth(int);
  26033. void SortChildren();
  26034. const String& GetAppliedStyle() const;
  26035. const String& GetCategory() const;
  26036. const String& GetName() const;
  26037. const String& GetTypeName() const;
  26038. operator UIElement() const;
  26039. void UnsubscribeFromAllEvents();
  26040. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26041. void UnsubscribeFromEvent(Object, StringHash);
  26042. void UnsubscribeFromEvent(StringHash);
  26043. void UnsubscribeFromEvents(Object);
  26044. void Update(float);
  26045. void UpdateLayout();
  26046. const Variant& GetGlobalVar(StringHash) const;
  26047. const Variant& GetVar(const StringHash&) const;
  26048. const VariantMap& GetGlobalVars() const;
  26049. const VariantMap& GetVars() const;
  26050. const Vector2& GetLayoutFlexScale() const;
  26051. const Vector2& GetMaxAnchor() const;
  26052. const Vector2& GetMinAnchor() const;
  26053. const Vector2& GetPivot() const;
  26054. int WeakRefs() const;
  26055. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26056. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26057. void WriteLatestDataUpdate(Serializer&, uint8);
  26058. operator const Animatable() const;
  26059. operator const BorderImage() const;
  26060. operator const Object() const;
  26061. operator const RefCounted() const;
  26062. operator const Serializable() const;
  26063. operator const UIElement() const;
  26064. // Properties:
  26065. bool animationEnabled;
  26066. /* readonly */
  26067. Array<Variant> attributeDefaults;
  26068. /* readonly */
  26069. Array<AttributeInfo> attributeInfos;
  26070. Array<Variant> attributes;
  26071. BlendMode blendMode;
  26072. IntRect border;
  26073. bool bringToBack;
  26074. bool bringToFront;
  26075. /* readonly */
  26076. String category;
  26077. /* readonly */
  26078. IntVector2 childOffset;
  26079. /* readonly */
  26080. Array<UIElement> children;
  26081. IntRect clipBorder;
  26082. bool clipChildren;
  26083. /* writeonly */
  26084. Color color;
  26085. /* readonly */
  26086. bool colorGradient;
  26087. Array<Color> colors;
  26088. /* readonly */
  26089. IntRect combinedScreenRect;
  26090. XMLFile defaultStyle;
  26091. /* readonly */
  26092. float derivedOpacity;
  26093. IntVector2 disabledOffset;
  26094. /* readonly */
  26095. uint dragButtonCombo;
  26096. /* readonly */
  26097. uint dragButtonCount;
  26098. uint dragDropMode;
  26099. bool editable;
  26100. bool elementEventSender;
  26101. bool enableAnchor;
  26102. bool enabled;
  26103. /* readonly */
  26104. bool enabledSelf;
  26105. /* readonly */
  26106. bool fixedHeight;
  26107. /* readonly */
  26108. bool fixedSize;
  26109. /* readonly */
  26110. bool fixedWidth;
  26111. bool focus;
  26112. FocusMode focusMode;
  26113. Array<Variant> globalVar;
  26114. /* readonly */
  26115. VariantMap globalVars;
  26116. int height;
  26117. HorizontalAlignment horizontalAlignment;
  26118. IntVector2 hoverOffset;
  26119. /* readonly */
  26120. bool hovering;
  26121. IntRect imageBorder;
  26122. IntRect imageRect;
  26123. int indent;
  26124. int indentSpacing;
  26125. /* readonly */
  26126. int indentWidth;
  26127. bool internal;
  26128. /* readonly */
  26129. BorderImage knob;
  26130. IntRect layoutBorder;
  26131. Vector2 layoutFlexScale;
  26132. LayoutMode layoutMode;
  26133. int layoutSpacing;
  26134. Material material;
  26135. Vector2 maxAnchor;
  26136. int maxHeight;
  26137. IntVector2 maxOffset;
  26138. IntVector2 maxSize;
  26139. int maxWidth;
  26140. Vector2 minAnchor;
  26141. int minHeight;
  26142. IntVector2 minOffset;
  26143. IntVector2 minSize;
  26144. int minWidth;
  26145. String name;
  26146. /* readonly */
  26147. uint numAllChildren;
  26148. /* readonly */
  26149. uint numAttributes;
  26150. /* readonly */
  26151. uint numChildren;
  26152. ObjectAnimation objectAnimation;
  26153. float opacity;
  26154. Orientation orientation;
  26155. UIElement parent;
  26156. Vector2 pivot;
  26157. IntVector2 position;
  26158. int priority;
  26159. float range;
  26160. /* readonly */
  26161. int refs;
  26162. float repeatRate;
  26163. /* readonly */
  26164. UIElement root;
  26165. /* readonly */
  26166. IntVector2 screenPosition;
  26167. bool selected;
  26168. IntVector2 size;
  26169. bool sortChildren;
  26170. String style;
  26171. /* readonly */
  26172. Array<String> tags;
  26173. bool temporary;
  26174. Texture texture;
  26175. bool tiled;
  26176. TraversalMode traversalMode;
  26177. /* readonly */
  26178. StringHash type;
  26179. /* readonly */
  26180. String typeName;
  26181. bool useDerivedOpacity;
  26182. float value;
  26183. /* readonly */
  26184. VariantMap vars;
  26185. VerticalAlignment verticalAlignment;
  26186. bool visible;
  26187. /* readonly */
  26188. bool visibleEffective;
  26189. /* readonly */
  26190. int weakRefs;
  26191. int width;
  26192. };
  26193. class SmoothedTransform
  26194. {
  26195. public:
  26196. SmoothedTransform();
  26197. // Methods:
  26198. void AllocateNetworkState();
  26199. operator Animatable() const;
  26200. void ApplyAttributes();
  26201. void CleanupConnection(Connection);
  26202. operator Component() const;
  26203. void DrawDebugGeometry(DebugRenderer, bool);
  26204. bool GetAnimationEnabled() const;
  26205. Variant GetAttribute(const String&) const;
  26206. Variant GetAttribute(uint) const;
  26207. ValueAnimation GetAttributeAnimation(const String&) const;
  26208. float GetAttributeAnimationSpeed(const String&) const;
  26209. float GetAttributeAnimationTime(const String&) const;
  26210. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26211. Variant GetAttributeDefault(const String&) const;
  26212. Variant GetAttributeDefault(uint) const;
  26213. bool GetBlockEvents() const;
  26214. Component GetComponent(StringHash) const;
  26215. VariantMap& GetEventDataMap() const;
  26216. Object GetEventSender() const;
  26217. uint GetID() const;
  26218. bool GetInterceptNetworkUpdate(const String&) const;
  26219. Node GetNode() const;
  26220. uint GetNumAttributes() const;
  26221. uint GetNumNetworkAttributes() const;
  26222. ObjectAnimation GetObjectAnimation() const;
  26223. ResourceRef GetObjectAnimationAttr() const;
  26224. Scene GetScene() const;
  26225. Object GetSubsystem(StringHash) const;
  26226. Vector3 GetTargetWorldPosition() const;
  26227. Quaternion GetTargetWorldRotation() const;
  26228. StringHash GetType() const;
  26229. bool HasEventHandlers() const;
  26230. bool HasSubscribedToEvent(Object, StringHash) const;
  26231. bool HasSubscribedToEvent(StringHash) const;
  26232. bool IsEnabled() const;
  26233. bool IsEnabledEffective() const;
  26234. bool IsInProgress() const;
  26235. bool IsInstanceOf(StringHash) const;
  26236. bool IsReplicated() const;
  26237. bool IsTemporary() const;
  26238. bool Load(Deserializer&);
  26239. bool LoadJSON(const JSONValue&);
  26240. bool LoadXML(const XMLElement&);
  26241. void MarkNetworkUpdate();
  26242. operator Object() const;
  26243. void OnEvent(Object, StringHash, VariantMap&);
  26244. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26245. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26246. void OnSetEnabled();
  26247. void PrepareNetworkUpdate();
  26248. const Quaternion& GetTargetRotation() const;
  26249. bool ReadDeltaUpdate(Deserializer&);
  26250. bool ReadLatestDataUpdate(Deserializer&);
  26251. operator RefCounted() const;
  26252. int Refs() const;
  26253. void Remove();
  26254. void RemoveAttributeAnimation(const String&);
  26255. void RemoveInstanceDefault();
  26256. void RemoveObjectAnimation();
  26257. void ResetToDefault();
  26258. bool Save(Serializer&) const;
  26259. bool SaveDefaultAttributes() const;
  26260. bool SaveJSON(JSONValue&) const;
  26261. bool SaveXML(XMLElement&) const;
  26262. void SendEvent(StringHash);
  26263. void SendEvent(StringHash, VariantMap&);
  26264. operator Serializable() const;
  26265. void SetAnimationEnabled(bool);
  26266. void SetAnimationTime(float);
  26267. bool SetAttribute(const String&, const Variant&);
  26268. bool SetAttribute(uint, const Variant&);
  26269. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26270. void SetAttributeAnimationSpeed(const String&, float);
  26271. void SetAttributeAnimationTime(const String&, float);
  26272. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26273. void SetBlockEvents(bool);
  26274. void SetEnabled(bool);
  26275. void SetGlobalVar(StringHash, const Variant&);
  26276. void SetInstanceDefault(bool);
  26277. void SetInterceptNetworkUpdate(const String&, bool);
  26278. void SetObjectAnimation(ObjectAnimation);
  26279. void SetObjectAnimationAttr(const ResourceRef&);
  26280. void SetTargetPosition(const Vector3&);
  26281. void SetTargetRotation(const Quaternion&);
  26282. void SetTargetWorldPosition(const Vector3&);
  26283. void SetTargetWorldRotation(const Quaternion&);
  26284. void SetTemporary(bool);
  26285. const String& GetCategory() const;
  26286. const String& GetTypeName() const;
  26287. void UnsubscribeFromAllEvents();
  26288. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26289. void UnsubscribeFromEvent(Object, StringHash);
  26290. void UnsubscribeFromEvent(StringHash);
  26291. void UnsubscribeFromEvents(Object);
  26292. void Update(float, float);
  26293. const Variant& GetGlobalVar(StringHash) const;
  26294. const VariantMap& GetGlobalVars() const;
  26295. const Vector3& GetTargetPosition() const;
  26296. int WeakRefs() const;
  26297. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26298. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26299. void WriteLatestDataUpdate(Serializer&, uint8);
  26300. operator const Animatable() const;
  26301. operator const Component() const;
  26302. operator const Object() const;
  26303. operator const RefCounted() const;
  26304. operator const Serializable() const;
  26305. // Properties:
  26306. bool animationEnabled;
  26307. /* readonly */
  26308. Array<Variant> attributeDefaults;
  26309. /* readonly */
  26310. Array<AttributeInfo> attributeInfos;
  26311. Array<Variant> attributes;
  26312. /* readonly */
  26313. String category;
  26314. bool enabled;
  26315. /* readonly */
  26316. bool enabledEffective;
  26317. Array<Variant> globalVar;
  26318. /* readonly */
  26319. VariantMap globalVars;
  26320. /* readonly */
  26321. uint id;
  26322. /* readonly */
  26323. bool inProgress;
  26324. /* readonly */
  26325. Node node;
  26326. /* readonly */
  26327. uint numAttributes;
  26328. ObjectAnimation objectAnimation;
  26329. /* readonly */
  26330. int refs;
  26331. /* readonly */
  26332. bool replicated;
  26333. Vector3 targetPosition;
  26334. Quaternion targetRotation;
  26335. Vector3 targetWorldPosition;
  26336. Quaternion targetWorldRotation;
  26337. bool temporary;
  26338. /* readonly */
  26339. StringHash type;
  26340. /* readonly */
  26341. String typeName;
  26342. /* readonly */
  26343. int weakRefs;
  26344. };
  26345. class Sound
  26346. {
  26347. public:
  26348. Sound();
  26349. // Methods:
  26350. void AddMetadata(const String&, const Variant&);
  26351. bool BeginLoad(Deserializer&);
  26352. bool EndLoad();
  26353. void FixInterpolation();
  26354. AsyncLoadState GetAsyncLoadState() const;
  26355. bool GetBlockEvents() const;
  26356. uint GetDataSize() const;
  26357. SoundStream GetDecoderStream() const;
  26358. VariantMap& GetEventDataMap() const;
  26359. Object GetEventSender() const;
  26360. float GetFrequency() const;
  26361. uint GetIntFrequency() const;
  26362. float GetLength() const;
  26363. uint GetMemoryUse() const;
  26364. StringHash GetNameHash() const;
  26365. uint GetSampleSize() const;
  26366. Object GetSubsystem(StringHash) const;
  26367. StringHash GetType() const;
  26368. uint GetUseTimer();
  26369. bool HasEventHandlers() const;
  26370. bool HasMetadata() const;
  26371. bool HasSubscribedToEvent(Object, StringHash) const;
  26372. bool HasSubscribedToEvent(StringHash) const;
  26373. bool IsCompressed() const;
  26374. bool IsInstanceOf(StringHash) const;
  26375. bool IsLooped() const;
  26376. bool IsSixteenBit() const;
  26377. bool IsStereo() const;
  26378. bool Load(Deserializer&);
  26379. bool Load(File);
  26380. bool Load(VectorBuffer&);
  26381. bool Load(const String&);
  26382. bool LoadFile(const String&);
  26383. bool LoadOggVorbis(Deserializer&);
  26384. bool LoadRaw(Deserializer&);
  26385. bool LoadWav(Deserializer&);
  26386. operator Object() const;
  26387. void OnEvent(Object, StringHash, VariantMap&);
  26388. operator RefCounted() const;
  26389. int Refs() const;
  26390. void RemoveAllMetadata();
  26391. void RemoveMetadata(const String&);
  26392. void ResetUseTimer();
  26393. operator Resource() const;
  26394. operator ResourceWithMetadata() const;
  26395. bool Save(File) const;
  26396. bool Save(Serializer&) const;
  26397. bool Save(VectorBuffer&) const;
  26398. bool Save(const String&) const;
  26399. bool SaveFile(const String&) const;
  26400. void SendEvent(StringHash);
  26401. void SendEvent(StringHash, VariantMap&);
  26402. void SetAsyncLoadState(AsyncLoadState);
  26403. void SetBlockEvents(bool);
  26404. void SetFormat(uint, bool, bool);
  26405. void SetGlobalVar(StringHash, const Variant&);
  26406. void SetLoop(uint, uint);
  26407. void SetLooped(bool);
  26408. void SetMemoryUse(uint);
  26409. void SetName(const String&);
  26410. void SetSize(uint);
  26411. const String& GetCategory() const;
  26412. const String& GetName() const;
  26413. const String& GetTypeName() const;
  26414. void UnsubscribeFromAllEvents();
  26415. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26416. void UnsubscribeFromEvent(Object, StringHash);
  26417. void UnsubscribeFromEvent(StringHash);
  26418. void UnsubscribeFromEvents(Object);
  26419. const Variant& GetGlobalVar(StringHash) const;
  26420. const Variant& GetMetadata(const String&) const;
  26421. const VariantMap& GetGlobalVars() const;
  26422. int WeakRefs() const;
  26423. operator const Object() const;
  26424. operator const RefCounted() const;
  26425. operator const Resource() const;
  26426. operator const ResourceWithMetadata() const;
  26427. // Properties:
  26428. /* readonly */
  26429. String category;
  26430. /* readonly */
  26431. bool compressed;
  26432. /* readonly */
  26433. float frequency;
  26434. Array<Variant> globalVar;
  26435. /* readonly */
  26436. VariantMap globalVars;
  26437. /* readonly */
  26438. bool hasMetadata;
  26439. /* readonly */
  26440. float length;
  26441. bool looped;
  26442. /* readonly */
  26443. uint memoryUse;
  26444. Array<Variant> metadata;
  26445. String name;
  26446. /* readonly */
  26447. int refs;
  26448. /* readonly */
  26449. uint sampleSize;
  26450. /* readonly */
  26451. bool sixteenBit;
  26452. /* readonly */
  26453. bool stereo;
  26454. /* readonly */
  26455. StringHash type;
  26456. /* readonly */
  26457. String typeName;
  26458. /* readonly */
  26459. uint useTimer;
  26460. /* readonly */
  26461. int weakRefs;
  26462. };
  26463. class SoundListener
  26464. {
  26465. public:
  26466. SoundListener();
  26467. // Methods:
  26468. void AllocateNetworkState();
  26469. operator Animatable() const;
  26470. void ApplyAttributes();
  26471. void CleanupConnection(Connection);
  26472. operator Component() const;
  26473. void DrawDebugGeometry(DebugRenderer, bool);
  26474. bool GetAnimationEnabled() const;
  26475. Variant GetAttribute(const String&) const;
  26476. Variant GetAttribute(uint) const;
  26477. ValueAnimation GetAttributeAnimation(const String&) const;
  26478. float GetAttributeAnimationSpeed(const String&) const;
  26479. float GetAttributeAnimationTime(const String&) const;
  26480. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26481. Variant GetAttributeDefault(const String&) const;
  26482. Variant GetAttributeDefault(uint) const;
  26483. bool GetBlockEvents() const;
  26484. Component GetComponent(StringHash) const;
  26485. VariantMap& GetEventDataMap() const;
  26486. Object GetEventSender() const;
  26487. uint GetID() const;
  26488. bool GetInterceptNetworkUpdate(const String&) const;
  26489. Node GetNode() const;
  26490. uint GetNumAttributes() const;
  26491. uint GetNumNetworkAttributes() const;
  26492. ObjectAnimation GetObjectAnimation() const;
  26493. ResourceRef GetObjectAnimationAttr() const;
  26494. Scene GetScene() const;
  26495. Object GetSubsystem(StringHash) const;
  26496. StringHash GetType() const;
  26497. bool HasEventHandlers() const;
  26498. bool HasSubscribedToEvent(Object, StringHash) const;
  26499. bool HasSubscribedToEvent(StringHash) const;
  26500. bool IsEnabled() const;
  26501. bool IsEnabledEffective() const;
  26502. bool IsInstanceOf(StringHash) const;
  26503. bool IsReplicated() const;
  26504. bool IsTemporary() const;
  26505. bool Load(Deserializer&);
  26506. bool LoadJSON(const JSONValue&);
  26507. bool LoadXML(const XMLElement&);
  26508. void MarkNetworkUpdate();
  26509. operator Object() const;
  26510. void OnEvent(Object, StringHash, VariantMap&);
  26511. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26512. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26513. void OnSetEnabled();
  26514. void PrepareNetworkUpdate();
  26515. bool ReadDeltaUpdate(Deserializer&);
  26516. bool ReadLatestDataUpdate(Deserializer&);
  26517. operator RefCounted() const;
  26518. int Refs() const;
  26519. void Remove();
  26520. void RemoveAttributeAnimation(const String&);
  26521. void RemoveInstanceDefault();
  26522. void RemoveObjectAnimation();
  26523. void ResetToDefault();
  26524. bool Save(Serializer&) const;
  26525. bool SaveDefaultAttributes() const;
  26526. bool SaveJSON(JSONValue&) const;
  26527. bool SaveXML(XMLElement&) const;
  26528. void SendEvent(StringHash);
  26529. void SendEvent(StringHash, VariantMap&);
  26530. operator Serializable() const;
  26531. void SetAnimationEnabled(bool);
  26532. void SetAnimationTime(float);
  26533. bool SetAttribute(const String&, const Variant&);
  26534. bool SetAttribute(uint, const Variant&);
  26535. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26536. void SetAttributeAnimationSpeed(const String&, float);
  26537. void SetAttributeAnimationTime(const String&, float);
  26538. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26539. void SetBlockEvents(bool);
  26540. void SetEnabled(bool);
  26541. void SetGlobalVar(StringHash, const Variant&);
  26542. void SetInstanceDefault(bool);
  26543. void SetInterceptNetworkUpdate(const String&, bool);
  26544. void SetObjectAnimation(ObjectAnimation);
  26545. void SetObjectAnimationAttr(const ResourceRef&);
  26546. void SetTemporary(bool);
  26547. const String& GetCategory() const;
  26548. const String& GetTypeName() const;
  26549. void UnsubscribeFromAllEvents();
  26550. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26551. void UnsubscribeFromEvent(Object, StringHash);
  26552. void UnsubscribeFromEvent(StringHash);
  26553. void UnsubscribeFromEvents(Object);
  26554. const Variant& GetGlobalVar(StringHash) const;
  26555. const VariantMap& GetGlobalVars() const;
  26556. int WeakRefs() const;
  26557. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26558. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26559. void WriteLatestDataUpdate(Serializer&, uint8);
  26560. operator const Animatable() const;
  26561. operator const Component() const;
  26562. operator const Object() const;
  26563. operator const RefCounted() const;
  26564. operator const Serializable() const;
  26565. // Properties:
  26566. bool animationEnabled;
  26567. /* readonly */
  26568. Array<Variant> attributeDefaults;
  26569. /* readonly */
  26570. Array<AttributeInfo> attributeInfos;
  26571. Array<Variant> attributes;
  26572. /* readonly */
  26573. String category;
  26574. bool enabled;
  26575. /* readonly */
  26576. bool enabledEffective;
  26577. Array<Variant> globalVar;
  26578. /* readonly */
  26579. VariantMap globalVars;
  26580. /* readonly */
  26581. uint id;
  26582. /* readonly */
  26583. Node node;
  26584. /* readonly */
  26585. uint numAttributes;
  26586. ObjectAnimation objectAnimation;
  26587. /* readonly */
  26588. int refs;
  26589. /* readonly */
  26590. bool replicated;
  26591. bool temporary;
  26592. /* readonly */
  26593. StringHash type;
  26594. /* readonly */
  26595. String typeName;
  26596. /* readonly */
  26597. int weakRefs;
  26598. };
  26599. class SoundSource
  26600. {
  26601. public:
  26602. SoundSource();
  26603. // Methods:
  26604. void AllocateNetworkState();
  26605. operator Animatable() const;
  26606. void ApplyAttributes();
  26607. void CleanupConnection(Connection);
  26608. operator Component() const;
  26609. void DrawDebugGeometry(DebugRenderer, bool);
  26610. bool GetAnimationEnabled() const;
  26611. float GetAttenuation() const;
  26612. Variant GetAttribute(const String&) const;
  26613. Variant GetAttribute(uint) const;
  26614. ValueAnimation GetAttributeAnimation(const String&) const;
  26615. float GetAttributeAnimationSpeed(const String&) const;
  26616. float GetAttributeAnimationTime(const String&) const;
  26617. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26618. Variant GetAttributeDefault(const String&) const;
  26619. Variant GetAttributeDefault(uint) const;
  26620. AutoRemoveMode GetAutoRemoveMode() const;
  26621. bool GetBlockEvents() const;
  26622. Component GetComponent(StringHash) const;
  26623. VariantMap& GetEventDataMap() const;
  26624. Object GetEventSender() const;
  26625. float GetFrequency() const;
  26626. float GetGain() const;
  26627. uint GetID() const;
  26628. bool GetInterceptNetworkUpdate(const String&) const;
  26629. Node GetNode() const;
  26630. uint GetNumAttributes() const;
  26631. uint GetNumNetworkAttributes() const;
  26632. ObjectAnimation GetObjectAnimation() const;
  26633. ResourceRef GetObjectAnimationAttr() const;
  26634. float GetPanning() const;
  26635. int GetPositionAttr() const;
  26636. Scene GetScene() const;
  26637. Sound GetSound() const;
  26638. ResourceRef GetSoundAttr() const;
  26639. String GetSoundType() const;
  26640. Object GetSubsystem(StringHash) const;
  26641. float GetTimePosition() const;
  26642. StringHash GetType() const;
  26643. bool HasEventHandlers() const;
  26644. bool HasSubscribedToEvent(Object, StringHash) const;
  26645. bool HasSubscribedToEvent(StringHash) const;
  26646. bool IsEnabled() const;
  26647. bool IsEnabledEffective() const;
  26648. bool IsInstanceOf(StringHash) const;
  26649. bool IsPlaying() const;
  26650. bool IsReplicated() const;
  26651. bool IsTemporary() const;
  26652. bool Load(Deserializer&);
  26653. bool LoadJSON(const JSONValue&);
  26654. bool LoadXML(const XMLElement&);
  26655. void MarkNetworkUpdate();
  26656. operator Object() const;
  26657. void OnEvent(Object, StringHash, VariantMap&);
  26658. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26659. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26660. void OnSetEnabled();
  26661. void Play(Sound);
  26662. void Play(Sound, float);
  26663. void Play(Sound, float, float);
  26664. void Play(Sound, float, float, float);
  26665. void Play(SoundStream);
  26666. void PrepareNetworkUpdate();
  26667. bool ReadDeltaUpdate(Deserializer&);
  26668. bool ReadLatestDataUpdate(Deserializer&);
  26669. operator RefCounted() const;
  26670. int Refs() const;
  26671. void Remove();
  26672. void RemoveAttributeAnimation(const String&);
  26673. void RemoveInstanceDefault();
  26674. void RemoveObjectAnimation();
  26675. void ResetToDefault();
  26676. bool Save(Serializer&) const;
  26677. bool SaveDefaultAttributes() const;
  26678. bool SaveJSON(JSONValue&) const;
  26679. bool SaveXML(XMLElement&) const;
  26680. void Seek(float);
  26681. void SendEvent(StringHash);
  26682. void SendEvent(StringHash, VariantMap&);
  26683. operator Serializable() const;
  26684. void SetAnimationEnabled(bool);
  26685. void SetAnimationTime(float);
  26686. void SetAttenuation(float);
  26687. bool SetAttribute(const String&, const Variant&);
  26688. bool SetAttribute(uint, const Variant&);
  26689. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26690. void SetAttributeAnimationSpeed(const String&, float);
  26691. void SetAttributeAnimationTime(const String&, float);
  26692. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26693. void SetAutoRemoveMode(AutoRemoveMode);
  26694. void SetBlockEvents(bool);
  26695. void SetEnabled(bool);
  26696. void SetFrequency(float);
  26697. void SetGain(float);
  26698. void SetGlobalVar(StringHash, const Variant&);
  26699. void SetInstanceDefault(bool);
  26700. void SetInterceptNetworkUpdate(const String&, bool);
  26701. void SetObjectAnimation(ObjectAnimation);
  26702. void SetObjectAnimationAttr(const ResourceRef&);
  26703. void SetPanning(float);
  26704. void SetPlayingAttr(bool);
  26705. void SetPositionAttr(int);
  26706. void SetSoundAttr(const ResourceRef&);
  26707. void SetSoundType(const String&);
  26708. void SetTemporary(bool);
  26709. operator SoundSource3D() const;
  26710. void Stop();
  26711. const String& GetCategory() const;
  26712. const String& GetTypeName() const;
  26713. void UnsubscribeFromAllEvents();
  26714. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26715. void UnsubscribeFromEvent(Object, StringHash);
  26716. void UnsubscribeFromEvent(StringHash);
  26717. void UnsubscribeFromEvents(Object);
  26718. void Update(float);
  26719. void UpdateMasterGain();
  26720. const Variant& GetGlobalVar(StringHash) const;
  26721. const VariantMap& GetGlobalVars() const;
  26722. int WeakRefs() const;
  26723. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26724. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26725. void WriteLatestDataUpdate(Serializer&, uint8);
  26726. operator const Animatable() const;
  26727. operator const Component() const;
  26728. operator const Object() const;
  26729. operator const RefCounted() const;
  26730. operator const Serializable() const;
  26731. operator const SoundSource3D() const;
  26732. // Properties:
  26733. bool animationEnabled;
  26734. /* readonly */
  26735. float attenuation;
  26736. /* readonly */
  26737. Array<Variant> attributeDefaults;
  26738. /* readonly */
  26739. Array<AttributeInfo> attributeInfos;
  26740. Array<Variant> attributes;
  26741. AutoRemoveMode autoRemoveMode;
  26742. /* readonly */
  26743. String category;
  26744. bool enabled;
  26745. /* readonly */
  26746. bool enabledEffective;
  26747. float frequency;
  26748. float gain;
  26749. Array<Variant> globalVar;
  26750. /* readonly */
  26751. VariantMap globalVars;
  26752. /* readonly */
  26753. uint id;
  26754. /* readonly */
  26755. Node node;
  26756. /* readonly */
  26757. uint numAttributes;
  26758. ObjectAnimation objectAnimation;
  26759. float panning;
  26760. /* readonly */
  26761. bool playing;
  26762. /* readonly */
  26763. int refs;
  26764. /* readonly */
  26765. bool replicated;
  26766. /* readonly */
  26767. Sound sound;
  26768. String soundType;
  26769. bool temporary;
  26770. /* readonly */
  26771. float timePosition;
  26772. /* readonly */
  26773. StringHash type;
  26774. /* readonly */
  26775. String typeName;
  26776. /* readonly */
  26777. int weakRefs;
  26778. };
  26779. class SoundSource3D
  26780. {
  26781. public:
  26782. SoundSource3D();
  26783. // Methods:
  26784. void AllocateNetworkState();
  26785. operator Animatable() const;
  26786. void ApplyAttributes();
  26787. void CalculateAttenuation();
  26788. void CleanupConnection(Connection);
  26789. operator Component() const;
  26790. void DrawDebugGeometry(DebugRenderer, bool);
  26791. bool GetAnimationEnabled() const;
  26792. float GetAttenuation() const;
  26793. Variant GetAttribute(const String&) const;
  26794. Variant GetAttribute(uint) const;
  26795. ValueAnimation GetAttributeAnimation(const String&) const;
  26796. float GetAttributeAnimationSpeed(const String&) const;
  26797. float GetAttributeAnimationTime(const String&) const;
  26798. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26799. Variant GetAttributeDefault(const String&) const;
  26800. Variant GetAttributeDefault(uint) const;
  26801. AutoRemoveMode GetAutoRemoveMode() const;
  26802. bool GetBlockEvents() const;
  26803. Component GetComponent(StringHash) const;
  26804. VariantMap& GetEventDataMap() const;
  26805. Object GetEventSender() const;
  26806. float GetFarDistance() const;
  26807. float GetFrequency() const;
  26808. float GetGain() const;
  26809. uint GetID() const;
  26810. float GetInnerAngle() const;
  26811. bool GetInterceptNetworkUpdate(const String&) const;
  26812. float GetNearDistance() const;
  26813. Node GetNode() const;
  26814. uint GetNumAttributes() const;
  26815. uint GetNumNetworkAttributes() const;
  26816. ObjectAnimation GetObjectAnimation() const;
  26817. ResourceRef GetObjectAnimationAttr() const;
  26818. float GetOuterAngle() const;
  26819. float GetPanning() const;
  26820. int GetPositionAttr() const;
  26821. Scene GetScene() const;
  26822. Sound GetSound() const;
  26823. ResourceRef GetSoundAttr() const;
  26824. String GetSoundType() const;
  26825. Object GetSubsystem(StringHash) const;
  26826. float GetTimePosition() const;
  26827. StringHash GetType() const;
  26828. bool HasEventHandlers() const;
  26829. bool HasSubscribedToEvent(Object, StringHash) const;
  26830. bool HasSubscribedToEvent(StringHash) const;
  26831. bool IsEnabled() const;
  26832. bool IsEnabledEffective() const;
  26833. bool IsInstanceOf(StringHash) const;
  26834. bool IsPlaying() const;
  26835. bool IsReplicated() const;
  26836. bool IsTemporary() const;
  26837. bool Load(Deserializer&);
  26838. bool LoadJSON(const JSONValue&);
  26839. bool LoadXML(const XMLElement&);
  26840. void MarkNetworkUpdate();
  26841. operator Object() const;
  26842. void OnEvent(Object, StringHash, VariantMap&);
  26843. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26844. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26845. void OnSetEnabled();
  26846. void Play(Sound);
  26847. void Play(Sound, float);
  26848. void Play(Sound, float, float);
  26849. void Play(Sound, float, float, float);
  26850. void Play(SoundStream);
  26851. void PrepareNetworkUpdate();
  26852. bool ReadDeltaUpdate(Deserializer&);
  26853. bool ReadLatestDataUpdate(Deserializer&);
  26854. operator RefCounted() const;
  26855. int Refs() const;
  26856. void Remove();
  26857. void RemoveAttributeAnimation(const String&);
  26858. void RemoveInstanceDefault();
  26859. void RemoveObjectAnimation();
  26860. void ResetToDefault();
  26861. float RollAngleoffFactor() const;
  26862. bool Save(Serializer&) const;
  26863. bool SaveDefaultAttributes() const;
  26864. bool SaveJSON(JSONValue&) const;
  26865. bool SaveXML(XMLElement&) const;
  26866. void Seek(float);
  26867. void SendEvent(StringHash);
  26868. void SendEvent(StringHash, VariantMap&);
  26869. operator Serializable() const;
  26870. void SetAngleAttenuation(float, float);
  26871. void SetAnimationEnabled(bool);
  26872. void SetAnimationTime(float);
  26873. void SetAttenuation(float);
  26874. bool SetAttribute(const String&, const Variant&);
  26875. bool SetAttribute(uint, const Variant&);
  26876. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26877. void SetAttributeAnimationSpeed(const String&, float);
  26878. void SetAttributeAnimationTime(const String&, float);
  26879. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26880. void SetAutoRemoveMode(AutoRemoveMode);
  26881. void SetBlockEvents(bool);
  26882. void SetDistanceAttenuation(float, float, float);
  26883. void SetEnabled(bool);
  26884. void SetFarDistance(float);
  26885. void SetFrequency(float);
  26886. void SetGain(float);
  26887. void SetGlobalVar(StringHash, const Variant&);
  26888. void SetInnerAngle(float);
  26889. void SetInstanceDefault(bool);
  26890. void SetInterceptNetworkUpdate(const String&, bool);
  26891. void SetNearDistance(float);
  26892. void SetObjectAnimation(ObjectAnimation);
  26893. void SetObjectAnimationAttr(const ResourceRef&);
  26894. void SetOuterAngle(float);
  26895. void SetPanning(float);
  26896. void SetPlayingAttr(bool);
  26897. void SetPositionAttr(int);
  26898. void SetRolloffFactor(float);
  26899. void SetSoundAttr(const ResourceRef&);
  26900. void SetSoundType(const String&);
  26901. void SetTemporary(bool);
  26902. operator SoundSource() const;
  26903. void Stop();
  26904. const String& GetCategory() const;
  26905. const String& GetTypeName() const;
  26906. void UnsubscribeFromAllEvents();
  26907. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26908. void UnsubscribeFromEvent(Object, StringHash);
  26909. void UnsubscribeFromEvent(StringHash);
  26910. void UnsubscribeFromEvents(Object);
  26911. void Update(float);
  26912. void UpdateMasterGain();
  26913. const Variant& GetGlobalVar(StringHash) const;
  26914. const VariantMap& GetGlobalVars() const;
  26915. int WeakRefs() const;
  26916. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26917. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26918. void WriteLatestDataUpdate(Serializer&, uint8);
  26919. operator const Animatable() const;
  26920. operator const Component() const;
  26921. operator const Object() const;
  26922. operator const RefCounted() const;
  26923. operator const Serializable() const;
  26924. operator const SoundSource() const;
  26925. // Properties:
  26926. bool animationEnabled;
  26927. /* readonly */
  26928. float attenuation;
  26929. /* readonly */
  26930. Array<Variant> attributeDefaults;
  26931. /* readonly */
  26932. Array<AttributeInfo> attributeInfos;
  26933. Array<Variant> attributes;
  26934. AutoRemoveMode autoRemoveMode;
  26935. /* readonly */
  26936. String category;
  26937. bool enabled;
  26938. /* readonly */
  26939. bool enabledEffective;
  26940. float farDistance;
  26941. float frequency;
  26942. float gain;
  26943. Array<Variant> globalVar;
  26944. /* readonly */
  26945. VariantMap globalVars;
  26946. /* readonly */
  26947. uint id;
  26948. float innerAngle;
  26949. float nearDistance;
  26950. /* readonly */
  26951. Node node;
  26952. /* readonly */
  26953. uint numAttributes;
  26954. ObjectAnimation objectAnimation;
  26955. float outerAngle;
  26956. float panning;
  26957. /* readonly */
  26958. bool playing;
  26959. /* readonly */
  26960. int refs;
  26961. /* readonly */
  26962. bool replicated;
  26963. float rolloffFactor;
  26964. /* readonly */
  26965. Sound sound;
  26966. String soundType;
  26967. bool temporary;
  26968. /* readonly */
  26969. float timePosition;
  26970. /* readonly */
  26971. StringHash type;
  26972. /* readonly */
  26973. String typeName;
  26974. /* readonly */
  26975. int weakRefs;
  26976. };
  26977. class SoundStream
  26978. {
  26979. public:
  26980. // Methods:
  26981. operator BufferedSoundStream() const;
  26982. float GetFrequency() const;
  26983. uint GetIntFrequency() const;
  26984. uint GetSampleSize() const;
  26985. bool GetStopAtEnd() const;
  26986. bool IsSixteenBit() const;
  26987. bool IsStereo() const;
  26988. operator OggVorbisSoundStream() const;
  26989. operator RefCounted() const;
  26990. int Refs() const;
  26991. bool Seek(uint);
  26992. void SetFormat(uint, bool, bool);
  26993. void SetStopAtEnd(bool);
  26994. int WeakRefs() const;
  26995. operator const BufferedSoundStream() const;
  26996. operator const OggVorbisSoundStream() const;
  26997. operator const RefCounted() const;
  26998. // Properties:
  26999. /* readonly */
  27000. int refs;
  27001. /* readonly */
  27002. int weakRefs;
  27003. };
  27004. class SourceBatch
  27005. {
  27006. public:
  27007. ~SourceBatch();
  27008. SourceBatch();
  27009. SourceBatch(const SourceBatch&in);
  27010. // Methods:
  27011. SourceBatch& operator=(const SourceBatch&);
  27012. // Properties:
  27013. float distance;
  27014. GeometryType geometryType;
  27015. uint numWorldTransforms;
  27016. };
  27017. class SourceBatch2D
  27018. {
  27019. public:
  27020. ~SourceBatch2D();
  27021. SourceBatch2D();
  27022. // Methods:
  27023. SourceBatch2D& operator=(const SourceBatch2D&);
  27024. // Properties:
  27025. float distance;
  27026. int drawOrder;
  27027. };
  27028. class Sphere
  27029. {
  27030. public:
  27031. Sphere();
  27032. Sphere(const Sphere&in);
  27033. Sphere(const Vector3&in, float);
  27034. Sphere(const BoundingBox&in);
  27035. Sphere(const Frustum&in);
  27036. Sphere(const Polyhedron&in);
  27037. // Methods:
  27038. Sphere& operator=(const Sphere&);
  27039. bool operator==(const Sphere&) const;
  27040. void Clear();
  27041. void Define(const BoundingBox&);
  27042. void Define(const Frustum&);
  27043. void Define(const Polyhedron&);
  27044. void Define(const Sphere&);
  27045. void Define(const Vector3&, float);
  27046. bool Defined() const;
  27047. float Distance(const Vector3&) const;
  27048. Vector3 GetLocalPoint(float, float) const;
  27049. Vector3 GetPoint(float, float) const;
  27050. Intersection IsInside(const BoundingBox&) const;
  27051. Intersection IsInside(const Sphere&) const;
  27052. Intersection IsInside(const Vector3&) const;
  27053. Intersection IsInsideFast(const BoundingBox&) const;
  27054. Intersection IsInsideFast(const Sphere&) const;
  27055. void Merge(const BoundingBox&);
  27056. void Merge(const Frustum&);
  27057. void Merge(const Polyhedron&);
  27058. void Merge(const Sphere&);
  27059. void Merge(const Vector3&);
  27060. // Properties:
  27061. Vector3 center;
  27062. float radius;
  27063. };
  27064. class Spline
  27065. {
  27066. public:
  27067. ~Spline();
  27068. Spline();
  27069. Spline(InterpolationMode);
  27070. Spline(const Spline&in);
  27071. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  27072. // Methods:
  27073. Spline& operator=(const Spline&);
  27074. bool operator==(const Spline&) const;
  27075. void AddKnot(const Variant&);
  27076. void AddKnot(const Variant&, uint);
  27077. void Clear();
  27078. InterpolationMode GetInterpolationMode() const;
  27079. Variant GetKnot(uint) const;
  27080. Variant GetPoint(float) const;
  27081. void RemoveKnot();
  27082. void RemoveKnot(uint);
  27083. void SetInterpolationMode(InterpolationMode);
  27084. void SetKnot(const Variant&, uint);
  27085. // Properties:
  27086. InterpolationMode interpolationMode;
  27087. Array<Variant> knot;
  27088. Array<Variant> knots;
  27089. };
  27090. class SplinePath
  27091. {
  27092. public:
  27093. SplinePath();
  27094. // Methods:
  27095. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  27096. void AllocateNetworkState();
  27097. operator Animatable() const;
  27098. void ApplyAttributes();
  27099. void CleanupConnection(Connection);
  27100. void ClearControlPoints();
  27101. operator Component() const;
  27102. void DrawDebugGeometry(DebugRenderer, bool);
  27103. bool GetAnimationEnabled() const;
  27104. Variant GetAttribute(const String&) const;
  27105. Variant GetAttribute(uint) const;
  27106. ValueAnimation GetAttributeAnimation(const String&) const;
  27107. float GetAttributeAnimationSpeed(const String&) const;
  27108. float GetAttributeAnimationTime(const String&) const;
  27109. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  27110. Variant GetAttributeDefault(const String&) const;
  27111. Variant GetAttributeDefault(uint) const;
  27112. bool GetBlockEvents() const;
  27113. Component GetComponent(StringHash) const;
  27114. uint GetControlledIdAttr() const;
  27115. Node GetControlledNode() const;
  27116. VariantMap& GetEventDataMap() const;
  27117. Object GetEventSender() const;
  27118. uint GetID() const;
  27119. bool GetInterceptNetworkUpdate(const String&) const;
  27120. InterpolationMode GetInterpolationMode() const;
  27121. float GetLength() const;
  27122. Node GetNode() const;
  27123. uint GetNumAttributes() const;
  27124. uint GetNumNetworkAttributes() const;
  27125. ObjectAnimation GetObjectAnimation() const;
  27126. ResourceRef GetObjectAnimationAttr() const;
  27127. Vector3 GetPoint(float) const;
  27128. Vector3 GetPosition() const;
  27129. Scene GetScene() const;
  27130. float GetSpeed() const;
  27131. Object GetSubsystem(StringHash) const;
  27132. StringHash GetType() const;
  27133. bool HasEventHandlers() const;
  27134. bool HasSubscribedToEvent(Object, StringHash) const;
  27135. bool HasSubscribedToEvent(StringHash) const;
  27136. bool IsEnabled() const;
  27137. bool IsEnabledEffective() const;
  27138. bool IsFinished() const;
  27139. bool IsInstanceOf(StringHash) const;
  27140. bool IsReplicated() const;
  27141. bool IsTemporary() const;
  27142. bool Load(Deserializer&);
  27143. bool LoadJSON(const JSONValue&);
  27144. bool LoadXML(const XMLElement&);
  27145. void MarkNetworkUpdate();
  27146. void Move(float);
  27147. operator Object() const;
  27148. void OnEvent(Object, StringHash, VariantMap&);
  27149. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  27150. void OnSetAttribute(const AttributeInfo&, const Variant&);
  27151. void OnSetEnabled();
  27152. void PrepareNetworkUpdate();
  27153. bool ReadDeltaUpdate(Deserializer&);
  27154. bool ReadLatestDataUpdate(Deserializer&);
  27155. operator RefCounted() const;
  27156. int Refs() const;
  27157. void Remove();
  27158. void RemoveAttributeAnimation(const String&);
  27159. void RemoveControlPoint(Node);
  27160. void RemoveInstanceDefault();
  27161. void RemoveObjectAnimation();
  27162. void Reset();
  27163. void ResetToDefault();
  27164. bool Save(Serializer&) const;
  27165. bool SaveDefaultAttributes() const;
  27166. bool SaveJSON(JSONValue&) const;
  27167. bool SaveXML(XMLElement&) const;
  27168. void SendEvent(StringHash);
  27169. void SendEvent(StringHash, VariantMap&);
  27170. operator Serializable() const;
  27171. void SetAnimationEnabled(bool);
  27172. void SetAnimationTime(float);
  27173. bool SetAttribute(const String&, const Variant&);
  27174. bool SetAttribute(uint, const Variant&);
  27175. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  27176. void SetAttributeAnimationSpeed(const String&, float);
  27177. void SetAttributeAnimationTime(const String&, float);
  27178. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  27179. void SetBlockEvents(bool);
  27180. void SetControlledIdAttr(uint);
  27181. void SetControlledNode(Node);
  27182. void SetEnabled(bool);
  27183. void SetGlobalVar(StringHash, const Variant&);
  27184. void SetInstanceDefault(bool);
  27185. void SetInterceptNetworkUpdate(const String&, bool);
  27186. void SetInterpolationMode(InterpolationMode);
  27187. void SetObjectAnimation(ObjectAnimation);
  27188. void SetObjectAnimationAttr(const ResourceRef&);
  27189. void SetPosition(float);
  27190. void SetSpeed(float);
  27191. void SetTemporary(bool);
  27192. const String& GetCategory() const;
  27193. const String& GetTypeName() const;
  27194. void UnsubscribeFromAllEvents();
  27195. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27196. void UnsubscribeFromEvent(Object, StringHash);
  27197. void UnsubscribeFromEvent(StringHash);
  27198. void UnsubscribeFromEvents(Object);
  27199. const Variant& GetGlobalVar(StringHash) const;
  27200. const VariantMap& GetGlobalVars() const;
  27201. int WeakRefs() const;
  27202. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  27203. void WriteInitialDeltaUpdate(Serializer&, uint8);
  27204. void WriteLatestDataUpdate(Serializer&, uint8);
  27205. operator const Animatable() const;
  27206. operator const Component() const;
  27207. operator const Object() const;
  27208. operator const RefCounted() const;
  27209. operator const Serializable() const;
  27210. // Properties:
  27211. bool animationEnabled;
  27212. /* readonly */
  27213. Array<Variant> attributeDefaults;
  27214. /* readonly */
  27215. Array<AttributeInfo> attributeInfos;
  27216. Array<Variant> attributes;
  27217. /* readonly */
  27218. String category;
  27219. Node controlledNode;
  27220. bool enabled;
  27221. /* readonly */
  27222. bool enabledEffective;
  27223. Array<Variant> globalVar;
  27224. /* readonly */
  27225. VariantMap globalVars;
  27226. /* readonly */
  27227. uint id;
  27228. InterpolationMode interpolationMode;
  27229. /* readonly */
  27230. bool isFinished;
  27231. /* readonly */
  27232. float length;
  27233. /* readonly */
  27234. Node node;
  27235. /* readonly */
  27236. uint numAttributes;
  27237. ObjectAnimation objectAnimation;
  27238. /* readonly */
  27239. int refs;
  27240. /* readonly */
  27241. bool replicated;
  27242. float speed;
  27243. bool temporary;
  27244. /* readonly */
  27245. StringHash type;
  27246. /* readonly */
  27247. String typeName;
  27248. /* readonly */
  27249. int weakRefs;
  27250. };
  27251. class Sprite
  27252. {
  27253. public:
  27254. Sprite();
  27255. // Methods:
  27256. void AddChild(UIElement);
  27257. void AddTag(const String&);
  27258. void AddTags(Array<String>);
  27259. void AddTags(const String&, int8 = ';');
  27260. void AdjustScissor(IntRect&);
  27261. void AllocateNetworkState();
  27262. operator Animatable() const;
  27263. void ApplyAttributes();
  27264. void BringToFront();
  27265. const Color& GetColor(Corner) const;
  27266. const Color& GetColorAttr() const;
  27267. const Color& GetDerivedColor() const;
  27268. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  27269. void DisableLayoutUpdate();
  27270. IntVector2 ElementToScreen(const IntVector2&);
  27271. void EnableLayoutUpdate();
  27272. bool FilterAttributes(XMLElement&) const;
  27273. uint FindChild(UIElement) const;
  27274. bool GetAnimationEnabled() const;
  27275. Variant GetAttribute(const String&) const;
  27276. Variant GetAttribute(uint) const;
  27277. ValueAnimation GetAttributeAnimation(const String&) const;
  27278. float GetAttributeAnimationSpeed(const String&) const;
  27279. float GetAttributeAnimationTime(const String&) const;
  27280. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  27281. Variant GetAttributeDefault(const String&) const;
  27282. Variant GetAttributeDefault(uint) const;
  27283. BlendMode GetBlendMode() const;
  27284. bool GetBlockEvents() const;
  27285. bool GetBringToBack() const;
  27286. bool GetBringToFront() const;
  27287. UIElement GetChild(const String&, bool = false) const;
  27288. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  27289. UIElement GetChild(uint) const;
  27290. Array<UIElement> GetChildren() const;
  27291. Array<UIElement> GetChildren(bool) const;
  27292. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  27293. bool GetClipChildren() const;
  27294. IntRect GetCombinedScreenRect();
  27295. XMLFile GetDefaultStyle(bool = true) const;
  27296. float GetDerivedOpacity() const;
  27297. uint GetDragButtonCombo() const;
  27298. uint GetDragButtonCount() const;
  27299. uint GetDragDropMode() const;
  27300. IntVector2 GetEffectiveMinSize() const;
  27301. UIElement GetElementEventSender() const;
  27302. bool GetEnableAnchor() const;
  27303. VariantMap& GetEventDataMap() const;
  27304. Object GetEventSender() const;
  27305. FocusMode GetFocusMode() const;
  27306. int GetHeight() const;
  27307. HorizontalAlignment GetHorizontalAlignment() const;
  27308. int GetIndent() const;
  27309. int GetIndentSpacing() const;
  27310. int GetIndentWidth() const;
  27311. bool GetInterceptNetworkUpdate(const String&) const;
  27312. int GetLayoutElementMaxSize() const;
  27313. LayoutMode GetLayoutMode() const;
  27314. int GetLayoutSpacing() const;
  27315. int GetMaxHeight() const;
  27316. int GetMaxWidth() const;
  27317. int GetMinHeight() const;
  27318. int GetMinWidth() const;
  27319. uint GetNumAttributes() const;
  27320. uint GetNumChildren(bool = false) const;
  27321. uint GetNumNetworkAttributes() const;
  27322. ObjectAnimation GetObjectAnimation() const;
  27323. ResourceRef GetObjectAnimationAttr() const;
  27324. float GetOpacity() const;
  27325. UIElement GetParent() const;
  27326. int GetPriority() const;
  27327. UIElement GetRoot() const;
  27328. float GetRotation() const;
  27329. bool GetSortChildren() const;
  27330. Object GetSubsystem(StringHash) const;
  27331. Array<String> GetTags() const;
  27332. Texture GetTexture() const;
  27333. ResourceRef GetTextureAttr() const;
  27334. TraversalMode GetTraversalMode() const;
  27335. StringHash GetType() const;
  27336. bool GetUseDerivedOpacity() const;
  27337. VerticalAlignment GetVerticalAlignment() const;
  27338. int GetWidth() const;
  27339. bool HasColorGradient() const;
  27340. bool HasEventHandlers() const;
  27341. bool HasFocus() const;
  27342. bool HasSubscribedToEvent(Object, StringHash) const;
  27343. bool HasSubscribedToEvent(StringHash) const;
  27344. bool HasTag(const String&) const;
  27345. void InsertChild(uint, UIElement);
  27346. const IntRect& GetClipBorder() const;
  27347. const IntRect& GetImageRect() const;
  27348. const IntRect& GetLayoutBorder() const;
  27349. const IntVector2& GetChildOffset() const;
  27350. const IntVector2& GetHotSpot() const;
  27351. const IntVector2& GetMaxOffset() const;
  27352. const IntVector2& GetMaxSize() const;
  27353. const IntVector2& GetMinOffset() const;
  27354. const IntVector2& GetMinSize() const;
  27355. const IntVector2& GetScreenPosition() const;
  27356. const IntVector2& GetSize() const;
  27357. bool IsChildOf(UIElement) const;
  27358. bool IsEditable() const;
  27359. bool IsElementEventSender() const;
  27360. bool IsEnabled() const;
  27361. bool IsEnabledSelf() const;
  27362. bool IsFixedHeight() const;
  27363. bool IsFixedSize() const;
  27364. bool IsFixedWidth() const;
  27365. bool IsHovering() const;
  27366. bool IsInside(IntVector2, bool);
  27367. bool IsInsideCombined(IntVector2, bool);
  27368. bool IsInstanceOf(StringHash) const;
  27369. bool IsInternal() const;
  27370. bool IsSelected() const;
  27371. bool IsTemporary() const;
  27372. bool IsVisible() const;
  27373. bool IsVisibleEffective() const;
  27374. bool IsWheelHandler() const;
  27375. bool IsWithinScissor(const IntRect&);
  27376. bool Load(Deserializer&);
  27377. UIElement LoadChildXML(XMLFile, XMLFile);
  27378. UIElement LoadChildXML(const XMLElement&, XMLFile);
  27379. bool LoadJSON(const JSONValue&);
  27380. bool LoadXML(Deserializer&);
  27381. bool LoadXML(File);
  27382. bool LoadXML(VectorBuffer&);
  27383. bool LoadXML(XMLFile, XMLFile);
  27384. bool LoadXML(const XMLElement&);
  27385. bool LoadXML(const XMLElement&, XMLFile);
  27386. void MarkNetworkUpdate();
  27387. const Matrix3x4& GetTransform() const;
  27388. operator Object() const;
  27389. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  27390. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  27391. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  27392. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27393. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27394. bool OnDragDropFinish(UIElement);
  27395. bool OnDragDropTest(UIElement);
  27396. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27397. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27398. void OnEvent(Object, StringHash, VariantMap&);
  27399. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  27400. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27401. void OnIndentSet();
  27402. void OnKey(uint, uint, uint);
  27403. void OnPositionSet(const IntVector2&);
  27404. void OnResize(const IntVector2&, const IntVector2&);
  27405. void OnSetAttribute(const AttributeInfo&, const Variant&);
  27406. void OnSetEditable();
  27407. void OnTextInput(const String&);
  27408. void OnWheel(int, uint, uint);
  27409. bool ReadDeltaUpdate(Deserializer&);
  27410. bool ReadLatestDataUpdate(Deserializer&);
  27411. operator RefCounted() const;
  27412. int Refs() const;
  27413. void Remove();
  27414. void RemoveAllChildren();
  27415. void RemoveAllTags();
  27416. void RemoveAttributeAnimation(const String&);
  27417. void RemoveChild(UIElement, uint = 0);
  27418. void RemoveChild(uint);
  27419. void RemoveChildAtIndex(uint);
  27420. void RemoveInstanceDefault();
  27421. void RemoveObjectAnimation();
  27422. bool RemoveTag(const String&);
  27423. void ResetDeepEnabled();
  27424. void ResetToDefault();
  27425. bool Save(Serializer&) const;
  27426. bool SaveDefaultAttributes() const;
  27427. bool SaveJSON(JSONValue&) const;
  27428. bool SaveXML(File, const String& indentation = "\t");
  27429. bool SaveXML(Serializer&, const String& = "\t") const;
  27430. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  27431. bool SaveXML(XMLElement&) const;
  27432. IntVector2 ScreenToElement(const IntVector2&);
  27433. void SendEvent(StringHash);
  27434. void SendEvent(StringHash, VariantMap&);
  27435. operator Serializable() const;
  27436. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  27437. void SetAnimationEnabled(bool);
  27438. void SetAnimationTime(float);
  27439. bool SetAttribute(const String&, const Variant&);
  27440. bool SetAttribute(uint, const Variant&);
  27441. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  27442. void SetAttributeAnimationSpeed(const String&, float);
  27443. void SetAttributeAnimationTime(const String&, float);
  27444. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  27445. void SetBlendMode(BlendMode);
  27446. void SetBlockEvents(bool);
  27447. void SetBringToBack(bool);
  27448. void SetBringToFront(bool);
  27449. void SetChildOffset(const IntVector2&);
  27450. void SetClipBorder(const IntRect&);
  27451. void SetClipChildren(bool);
  27452. void SetColor(Corner, const Color&);
  27453. void SetColor(const Color&);
  27454. void SetDeepEnabled(bool);
  27455. void SetDefaultStyle(XMLFile);
  27456. void SetDragDropMode(uint);
  27457. void SetEditable(bool);
  27458. void SetElementEventSender(bool);
  27459. void SetEnableAnchor(bool);
  27460. void SetEnabled(bool);
  27461. void SetEnabledRecursive(bool);
  27462. void SetFixedHeight(int);
  27463. void SetFixedSize(const IntVector2&);
  27464. void SetFixedSize(int, int);
  27465. void SetFixedWidth(int);
  27466. void SetFocus(bool);
  27467. void SetFocusMode(FocusMode);
  27468. void SetFullImageRect();
  27469. void SetGlobalVar(StringHash, const Variant&);
  27470. void SetHeight(int);
  27471. void SetHorizontalAlignment(HorizontalAlignment);
  27472. void SetHotSpot(const IntVector2&);
  27473. void SetHotSpot(int, int);
  27474. void SetHovering(bool);
  27475. void SetImageRect(const IntRect&);
  27476. void SetIndent(int);
  27477. void SetIndentSpacing(int);
  27478. void SetInstanceDefault(bool);
  27479. void SetInterceptNetworkUpdate(const String&, bool);
  27480. void SetInternal(bool);
  27481. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  27482. void SetLayoutBorder(const IntRect&);
  27483. void SetLayoutFlexScale(const Vector2&);
  27484. void SetLayoutMode(LayoutMode);
  27485. void SetLayoutSpacing(int);
  27486. void SetMaxAnchor(const Vector2&);
  27487. void SetMaxAnchor(float, float);
  27488. void SetMaxHeight(int);
  27489. void SetMaxOffset(const IntVector2&);
  27490. void SetMaxSize(const IntVector2&);
  27491. void SetMaxSize(int, int);
  27492. void SetMaxWidth(int);
  27493. void SetMinAnchor(const Vector2&);
  27494. void SetMinAnchor(float, float);
  27495. void SetMinHeight(int);
  27496. void SetMinOffset(const IntVector2&);
  27497. void SetMinSize(const IntVector2&);
  27498. void SetMinSize(int, int);
  27499. void SetMinWidth(int);
  27500. void SetName(const String&);
  27501. void SetObjectAnimation(ObjectAnimation);
  27502. void SetObjectAnimationAttr(const ResourceRef&);
  27503. void SetOpacity(float);
  27504. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  27505. void SetPivot(const Vector2&);
  27506. void SetPivot(float, float);
  27507. void SetPosition(const Vector2&);
  27508. void SetPosition(float, float);
  27509. void SetPriority(int);
  27510. void SetRenderTexture(Texture2D);
  27511. void SetRotation(float);
  27512. void SetScale(const Vector2&);
  27513. void SetScale(float);
  27514. void SetScale(float, float);
  27515. void SetSelected(bool);
  27516. void SetSize(const IntVector2&);
  27517. void SetSize(int, int);
  27518. void SetSortChildren(bool);
  27519. bool SetStyle(const String&, XMLFile = null);
  27520. bool SetStyle(const XMLElement&);
  27521. bool SetStyleAuto(XMLFile = null);
  27522. void SetTags(Array<String>);
  27523. void SetTemporary(bool);
  27524. void SetTexture(Texture);
  27525. void SetTextureAttr(const ResourceRef&);
  27526. void SetTraversalMode(TraversalMode);
  27527. void SetUseDerivedOpacity(bool);
  27528. void SetVar(StringHash, const Variant&);
  27529. void SetVerticalAlignment(VerticalAlignment);
  27530. void SetVisible(bool);
  27531. void SetWidth(int);
  27532. void SortChildren();
  27533. const String& GetAppliedStyle() const;
  27534. const String& GetCategory() const;
  27535. const String& GetName() const;
  27536. const String& GetTypeName() const;
  27537. operator UIElement() const;
  27538. void UnsubscribeFromAllEvents();
  27539. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27540. void UnsubscribeFromEvent(Object, StringHash);
  27541. void UnsubscribeFromEvent(StringHash);
  27542. void UnsubscribeFromEvents(Object);
  27543. void Update(float);
  27544. void UpdateLayout();
  27545. const Variant& GetGlobalVar(StringHash) const;
  27546. const Variant& GetVar(const StringHash&) const;
  27547. const VariantMap& GetGlobalVars() const;
  27548. const VariantMap& GetVars() const;
  27549. const Vector2& GetLayoutFlexScale() const;
  27550. const Vector2& GetMaxAnchor() const;
  27551. const Vector2& GetMinAnchor() const;
  27552. const Vector2& GetPivot() const;
  27553. const Vector2& GetPosition() const;
  27554. const Vector2& GetScale() const;
  27555. int WeakRefs() const;
  27556. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  27557. void WriteInitialDeltaUpdate(Serializer&, uint8);
  27558. void WriteLatestDataUpdate(Serializer&, uint8);
  27559. operator const Animatable() const;
  27560. operator const Object() const;
  27561. operator const RefCounted() const;
  27562. operator const Serializable() const;
  27563. operator const UIElement() const;
  27564. // Properties:
  27565. bool animationEnabled;
  27566. /* readonly */
  27567. Array<Variant> attributeDefaults;
  27568. /* readonly */
  27569. Array<AttributeInfo> attributeInfos;
  27570. Array<Variant> attributes;
  27571. BlendMode blendMode;
  27572. bool bringToBack;
  27573. bool bringToFront;
  27574. /* readonly */
  27575. String category;
  27576. /* readonly */
  27577. IntVector2 childOffset;
  27578. /* readonly */
  27579. Array<UIElement> children;
  27580. IntRect clipBorder;
  27581. bool clipChildren;
  27582. /* writeonly */
  27583. Color color;
  27584. /* readonly */
  27585. bool colorGradient;
  27586. Array<Color> colors;
  27587. /* readonly */
  27588. IntRect combinedScreenRect;
  27589. XMLFile defaultStyle;
  27590. /* readonly */
  27591. float derivedOpacity;
  27592. /* readonly */
  27593. uint dragButtonCombo;
  27594. /* readonly */
  27595. uint dragButtonCount;
  27596. uint dragDropMode;
  27597. bool editable;
  27598. bool elementEventSender;
  27599. bool enableAnchor;
  27600. bool enabled;
  27601. /* readonly */
  27602. bool enabledSelf;
  27603. /* readonly */
  27604. bool fixedHeight;
  27605. /* readonly */
  27606. bool fixedSize;
  27607. /* readonly */
  27608. bool fixedWidth;
  27609. bool focus;
  27610. FocusMode focusMode;
  27611. Array<Variant> globalVar;
  27612. /* readonly */
  27613. VariantMap globalVars;
  27614. int height;
  27615. HorizontalAlignment horizontalAlignment;
  27616. IntVector2 hotSpot;
  27617. /* readonly */
  27618. bool hovering;
  27619. IntRect imageRect;
  27620. int indent;
  27621. int indentSpacing;
  27622. /* readonly */
  27623. int indentWidth;
  27624. bool internal;
  27625. IntRect layoutBorder;
  27626. Vector2 layoutFlexScale;
  27627. LayoutMode layoutMode;
  27628. int layoutSpacing;
  27629. Vector2 maxAnchor;
  27630. int maxHeight;
  27631. IntVector2 maxOffset;
  27632. IntVector2 maxSize;
  27633. int maxWidth;
  27634. Vector2 minAnchor;
  27635. int minHeight;
  27636. IntVector2 minOffset;
  27637. IntVector2 minSize;
  27638. int minWidth;
  27639. String name;
  27640. /* readonly */
  27641. uint numAllChildren;
  27642. /* readonly */
  27643. uint numAttributes;
  27644. /* readonly */
  27645. uint numChildren;
  27646. ObjectAnimation objectAnimation;
  27647. float opacity;
  27648. UIElement parent;
  27649. Vector2 pivot;
  27650. Vector2 position;
  27651. int priority;
  27652. /* readonly */
  27653. int refs;
  27654. /* readonly */
  27655. UIElement root;
  27656. float rotation;
  27657. Vector2 scale;
  27658. /* readonly */
  27659. IntVector2 screenPosition;
  27660. bool selected;
  27661. IntVector2 size;
  27662. bool sortChildren;
  27663. String style;
  27664. /* readonly */
  27665. Array<String> tags;
  27666. bool temporary;
  27667. Texture texture;
  27668. TraversalMode traversalMode;
  27669. /* readonly */
  27670. StringHash type;
  27671. /* readonly */
  27672. String typeName;
  27673. bool useDerivedOpacity;
  27674. /* readonly */
  27675. VariantMap vars;
  27676. VerticalAlignment verticalAlignment;
  27677. bool visible;
  27678. /* readonly */
  27679. bool visibleEffective;
  27680. /* readonly */
  27681. int weakRefs;
  27682. int width;
  27683. };
  27684. class Sprite2D
  27685. {
  27686. public:
  27687. Sprite2D();
  27688. // Methods:
  27689. bool BeginLoad(Deserializer&);
  27690. bool EndLoad();
  27691. AsyncLoadState GetAsyncLoadState() const;
  27692. bool GetBlockEvents() const;
  27693. bool GetDrawRectangle(Rect&, bool = false, bool = false) const;
  27694. bool GetDrawRectangle(Rect&, const Vector2&, bool = false, bool = false) const;
  27695. VariantMap& GetEventDataMap() const;
  27696. Object GetEventSender() const;
  27697. uint GetMemoryUse() const;
  27698. StringHash GetNameHash() const;
  27699. SpriteSheet2D GetSpriteSheet() const;
  27700. Object GetSubsystem(StringHash) const;
  27701. Texture2D GetTexture() const;
  27702. float GetTextureEdgeOffset() const;
  27703. bool GetTextureRectangle(Rect&, bool = false, bool = false) const;
  27704. StringHash GetType() const;
  27705. uint GetUseTimer();
  27706. bool HasEventHandlers() const;
  27707. bool HasSubscribedToEvent(Object, StringHash) const;
  27708. bool HasSubscribedToEvent(StringHash) const;
  27709. const IntRect& GetRectangle() const;
  27710. const IntVector2& GetOffset() const;
  27711. bool IsInstanceOf(StringHash) const;
  27712. bool Load(Deserializer&);
  27713. bool Load(File);
  27714. bool Load(VectorBuffer&);
  27715. bool Load(const String&);
  27716. bool LoadFile(const String&);
  27717. operator Object() const;
  27718. void OnEvent(Object, StringHash, VariantMap&);
  27719. operator RefCounted() const;
  27720. int Refs() const;
  27721. void ResetUseTimer();
  27722. operator Resource() const;
  27723. bool Save(File) const;
  27724. bool Save(Serializer&) const;
  27725. bool Save(VectorBuffer&) const;
  27726. bool Save(const String&) const;
  27727. bool SaveFile(const String&) const;
  27728. void SendEvent(StringHash);
  27729. void SendEvent(StringHash, VariantMap&);
  27730. void SetAsyncLoadState(AsyncLoadState);
  27731. void SetBlockEvents(bool);
  27732. void SetGlobalVar(StringHash, const Variant&);
  27733. void SetHotSpot(const Vector2&);
  27734. void SetMemoryUse(uint);
  27735. void SetName(const String&);
  27736. void SetOffset(const IntVector2&);
  27737. void SetRectangle(const IntRect&);
  27738. void SetSpriteSheet(SpriteSheet2D);
  27739. void SetTexture(Texture2D);
  27740. void SetTextureEdgeOffset(float);
  27741. const String& GetCategory() const;
  27742. const String& GetName() const;
  27743. const String& GetTypeName() const;
  27744. void UnsubscribeFromAllEvents();
  27745. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27746. void UnsubscribeFromEvent(Object, StringHash);
  27747. void UnsubscribeFromEvent(StringHash);
  27748. void UnsubscribeFromEvents(Object);
  27749. const Variant& GetGlobalVar(StringHash) const;
  27750. const VariantMap& GetGlobalVars() const;
  27751. const Vector2& GetHotSpot() const;
  27752. int WeakRefs() const;
  27753. operator const Object() const;
  27754. operator const RefCounted() const;
  27755. operator const Resource() const;
  27756. // Properties:
  27757. /* readonly */
  27758. String category;
  27759. Array<Variant> globalVar;
  27760. /* readonly */
  27761. VariantMap globalVars;
  27762. Vector2 hotSpot;
  27763. /* readonly */
  27764. uint memoryUse;
  27765. String name;
  27766. IntVector2 offset;
  27767. IntRect rectangle;
  27768. /* readonly */
  27769. int refs;
  27770. Texture2D texture;
  27771. float textureEdgeOffset;
  27772. /* readonly */
  27773. StringHash type;
  27774. /* readonly */
  27775. String typeName;
  27776. /* readonly */
  27777. uint useTimer;
  27778. /* readonly */
  27779. int weakRefs;
  27780. };
  27781. class SpriteSheet2D
  27782. {
  27783. public:
  27784. SpriteSheet2D();
  27785. // Methods:
  27786. bool BeginLoad(Deserializer&);
  27787. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  27788. bool EndLoad();
  27789. AsyncLoadState GetAsyncLoadState() const;
  27790. bool GetBlockEvents() const;
  27791. VariantMap& GetEventDataMap() const;
  27792. Object GetEventSender() const;
  27793. uint GetMemoryUse() const;
  27794. StringHash GetNameHash() const;
  27795. Sprite2D GetSprite(const String&) const;
  27796. Object GetSubsystem(StringHash) const;
  27797. Texture2D GetTexture() const;
  27798. StringHash GetType() const;
  27799. uint GetUseTimer();
  27800. bool HasEventHandlers() const;
  27801. bool HasSubscribedToEvent(Object, StringHash) const;
  27802. bool HasSubscribedToEvent(StringHash) const;
  27803. bool IsInstanceOf(StringHash) const;
  27804. bool Load(Deserializer&);
  27805. bool Load(File);
  27806. bool Load(VectorBuffer&);
  27807. bool Load(const String&);
  27808. bool LoadFile(const String&);
  27809. operator Object() const;
  27810. void OnEvent(Object, StringHash, VariantMap&);
  27811. operator RefCounted() const;
  27812. int Refs() const;
  27813. void ResetUseTimer();
  27814. operator Resource() const;
  27815. bool Save(File) const;
  27816. bool Save(Serializer&) const;
  27817. bool Save(VectorBuffer&) const;
  27818. bool Save(const String&) const;
  27819. bool SaveFile(const String&) const;
  27820. void SendEvent(StringHash);
  27821. void SendEvent(StringHash, VariantMap&);
  27822. void SetAsyncLoadState(AsyncLoadState);
  27823. void SetBlockEvents(bool);
  27824. void SetGlobalVar(StringHash, const Variant&);
  27825. void SetMemoryUse(uint);
  27826. void SetName(const String&);
  27827. void SetTexture(Texture2D);
  27828. const String& GetCategory() const;
  27829. const String& GetName() const;
  27830. const String& GetTypeName() const;
  27831. void UnsubscribeFromAllEvents();
  27832. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27833. void UnsubscribeFromEvent(Object, StringHash);
  27834. void UnsubscribeFromEvent(StringHash);
  27835. void UnsubscribeFromEvents(Object);
  27836. const Variant& GetGlobalVar(StringHash) const;
  27837. const VariantMap& GetGlobalVars() const;
  27838. int WeakRefs() const;
  27839. operator const Object() const;
  27840. operator const RefCounted() const;
  27841. operator const Resource() const;
  27842. // Properties:
  27843. /* readonly */
  27844. String category;
  27845. Array<Variant> globalVar;
  27846. /* readonly */
  27847. VariantMap globalVars;
  27848. /* readonly */
  27849. uint memoryUse;
  27850. String name;
  27851. /* readonly */
  27852. int refs;
  27853. Texture2D texture;
  27854. /* readonly */
  27855. StringHash type;
  27856. /* readonly */
  27857. String typeName;
  27858. /* readonly */
  27859. uint useTimer;
  27860. /* readonly */
  27861. int weakRefs;
  27862. };
  27863. class StaticModel
  27864. {
  27865. public:
  27866. StaticModel();
  27867. // Methods:
  27868. void AddLight(Light);
  27869. void AddVertexLight(Light);
  27870. void AllocateNetworkState();
  27871. operator Animatable() const;
  27872. operator AnimatedModel() const;
  27873. void ApplyAttributes();
  27874. void ApplyMaterialList(const String& = String :: EMPTY);
  27875. const BoundingBox& GetBoundingBox() const;
  27876. const BoundingBox& GetWorldBoundingBox();
  27877. void CleanupConnection(Connection);
  27878. operator Component() const;
  27879. void DrawDebugGeometry(DebugRenderer, bool);
  27880. bool DrawOcclusion(OcclusionBuffer);
  27881. operator Drawable() const;
  27882. bool GetAnimationEnabled() const;
  27883. Variant GetAttribute(const String&) const;
  27884. Variant GetAttribute(uint) const;
  27885. ValueAnimation GetAttributeAnimation(const String&) const;
  27886. float GetAttributeAnimationSpeed(const String&) const;
  27887. float GetAttributeAnimationTime(const String&) const;
  27888. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  27889. Variant GetAttributeDefault(const String&) const;
  27890. Variant GetAttributeDefault(uint) const;
  27891. bool GetBlockEvents() const;
  27892. bool GetCastShadows() const;
  27893. Component GetComponent(StringHash) const;
  27894. float GetDistance() const;
  27895. float GetDrawDistance() const;
  27896. uint8 GetDrawableFlags() const;
  27897. VariantMap& GetEventDataMap() const;
  27898. Object GetEventSender() const;
  27899. Light GetFirstLight() const;
  27900. uint GetID() const;
  27901. bool GetInterceptNetworkUpdate(const String&) const;
  27902. uint GetLightMask() const;
  27903. Array<Light> GetLights() const;
  27904. float GetLodBias() const;
  27905. float GetLodDistance() const;
  27906. Geometry GetLodGeometry(uint, uint);
  27907. Material GetMaterial() const;
  27908. Material GetMaterial(uint) const;
  27909. uint GetMaxLights() const;
  27910. float GetMaxZ() const;
  27911. float GetMinZ() const;
  27912. Model GetModel() const;
  27913. ResourceRef GetModelAttr() const;
  27914. Node GetNode() const;
  27915. uint GetNumAttributes() const;
  27916. uint GetNumGeometries() const;
  27917. uint GetNumNetworkAttributes() const;
  27918. uint GetNumOccluderTriangles();
  27919. ObjectAnimation GetObjectAnimation() const;
  27920. ResourceRef GetObjectAnimationAttr() const;
  27921. uint GetOcclusionLodLevel() const;
  27922. Scene GetScene() const;
  27923. float GetShadowDistance() const;
  27924. uint GetShadowMask() const;
  27925. float GetSortValue() const;
  27926. Object GetSubsystem(StringHash) const;
  27927. StringHash GetType() const;
  27928. UpdateGeometryType GetUpdateGeometryType();
  27929. Array<Light> GetVertexLights() const;
  27930. uint GetViewMask() const;
  27931. Zone GetZone() const;
  27932. uint GetZoneMask() const;
  27933. bool HasBasePass(uint) const;
  27934. bool HasEventHandlers() const;
  27935. bool HasSubscribedToEvent(Object, StringHash) const;
  27936. bool HasSubscribedToEvent(StringHash) const;
  27937. bool IsEnabled() const;
  27938. bool IsEnabledEffective() const;
  27939. bool IsInView() const;
  27940. bool IsInView(Camera) const;
  27941. bool IsInView(const FrameInfo&, bool = false) const;
  27942. bool IsInside(const Vector3&) const;
  27943. bool IsInsideLocal(const Vector3&) const;
  27944. bool IsInstanceOf(StringHash) const;
  27945. bool IsOccludee() const;
  27946. bool IsOccluder() const;
  27947. bool IsReplicated() const;
  27948. bool IsTemporary() const;
  27949. bool IsZoneDirty() const;
  27950. void LimitLights();
  27951. void LimitVertexLights(bool);
  27952. bool Load(Deserializer&);
  27953. bool LoadJSON(const JSONValue&);
  27954. bool LoadXML(const XMLElement&);
  27955. void MarkForUpdate();
  27956. void MarkInView(const FrameInfo&);
  27957. void MarkInView(uint);
  27958. void MarkNetworkUpdate();
  27959. operator Object() const;
  27960. void OnEvent(Object, StringHash, VariantMap&);
  27961. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  27962. void OnSetAttribute(const AttributeInfo&, const Variant&);
  27963. void OnSetEnabled();
  27964. void PrepareNetworkUpdate();
  27965. bool ReadDeltaUpdate(Deserializer&);
  27966. bool ReadLatestDataUpdate(Deserializer&);
  27967. operator RefCounted() const;
  27968. int Refs() const;
  27969. void Remove();
  27970. void RemoveAttributeAnimation(const String&);
  27971. void RemoveInstanceDefault();
  27972. void RemoveObjectAnimation();
  27973. void ResetToDefault();
  27974. const ResourceRefList& GetMaterialsAttr() const;
  27975. bool Save(Serializer&) const;
  27976. bool SaveDefaultAttributes() const;
  27977. bool SaveJSON(JSONValue&) const;
  27978. bool SaveXML(XMLElement&) const;
  27979. void SendEvent(StringHash);
  27980. void SendEvent(StringHash, VariantMap&);
  27981. operator Serializable() const;
  27982. void SetAnimationEnabled(bool);
  27983. void SetAnimationTime(float);
  27984. bool SetAttribute(const String&, const Variant&);
  27985. bool SetAttribute(uint, const Variant&);
  27986. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  27987. void SetAttributeAnimationSpeed(const String&, float);
  27988. void SetAttributeAnimationTime(const String&, float);
  27989. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  27990. void SetBasePass(uint);
  27991. void SetBlockEvents(bool);
  27992. void SetCastShadows(bool);
  27993. void SetDrawDistance(float);
  27994. void SetEnabled(bool);
  27995. void SetGlobalVar(StringHash, const Variant&);
  27996. void SetInstanceDefault(bool);
  27997. void SetInterceptNetworkUpdate(const String&, bool);
  27998. void SetLightMask(uint);
  27999. void SetLodBias(float);
  28000. void SetMaterial(Material);
  28001. bool SetMaterial(uint, Material);
  28002. void SetMaterialsAttr(const ResourceRefList&);
  28003. void SetMaxLights(uint);
  28004. void SetMinMaxZ(float, float);
  28005. void SetModel(Model);
  28006. void SetModelAttr(const ResourceRef&);
  28007. void SetObjectAnimation(ObjectAnimation);
  28008. void SetObjectAnimationAttr(const ResourceRef&);
  28009. void SetOccludee(bool);
  28010. void SetOccluder(bool);
  28011. void SetOcclusionLodLevel(uint);
  28012. void SetShadowDistance(float);
  28013. void SetShadowMask(uint);
  28014. void SetSortValue(float);
  28015. void SetTemporary(bool);
  28016. void SetViewMask(uint);
  28017. void SetZone(Zone, bool = false);
  28018. void SetZoneMask(uint);
  28019. operator Skybox() const;
  28020. operator StaticModelGroup() const;
  28021. const String& GetCategory() const;
  28022. const String& GetTypeName() const;
  28023. void UnsubscribeFromAllEvents();
  28024. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28025. void UnsubscribeFromEvent(Object, StringHash);
  28026. void UnsubscribeFromEvent(StringHash);
  28027. void UnsubscribeFromEvents(Object);
  28028. void Update(const FrameInfo&);
  28029. void UpdateBatches(const FrameInfo&);
  28030. void UpdateGeometry(const FrameInfo&);
  28031. const Variant& GetGlobalVar(StringHash) const;
  28032. const VariantMap& GetGlobalVars() const;
  28033. int WeakRefs() const;
  28034. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28035. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28036. void WriteLatestDataUpdate(Serializer&, uint8);
  28037. operator const Animatable() const;
  28038. operator const AnimatedModel() const;
  28039. operator const Component() const;
  28040. operator const Drawable() const;
  28041. operator const Object() const;
  28042. operator const RefCounted() const;
  28043. operator const Serializable() const;
  28044. operator const Skybox() const;
  28045. operator const StaticModelGroup() const;
  28046. // Properties:
  28047. bool animationEnabled;
  28048. /* readonly */
  28049. Array<Variant> attributeDefaults;
  28050. /* readonly */
  28051. Array<AttributeInfo> attributeInfos;
  28052. Array<Variant> attributes;
  28053. /* readonly */
  28054. BoundingBox boundingBox;
  28055. bool castShadows;
  28056. /* readonly */
  28057. String category;
  28058. float drawDistance;
  28059. bool enabled;
  28060. /* readonly */
  28061. bool enabledEffective;
  28062. Array<Variant> globalVar;
  28063. /* readonly */
  28064. VariantMap globalVars;
  28065. /* readonly */
  28066. uint id;
  28067. /* readonly */
  28068. bool inView;
  28069. uint lightMask;
  28070. float lodBias;
  28071. Material material;
  28072. Array<Material> materials;
  28073. uint maxLights;
  28074. Model model;
  28075. /* readonly */
  28076. Node node;
  28077. /* readonly */
  28078. uint numAttributes;
  28079. /* readonly */
  28080. uint numGeometries;
  28081. ObjectAnimation objectAnimation;
  28082. bool occludee;
  28083. bool occluder;
  28084. uint occlusionLodLevel;
  28085. /* readonly */
  28086. int refs;
  28087. /* readonly */
  28088. bool replicated;
  28089. float shadowDistance;
  28090. uint shadowMask;
  28091. bool temporary;
  28092. /* readonly */
  28093. StringHash type;
  28094. /* readonly */
  28095. String typeName;
  28096. uint viewMask;
  28097. /* readonly */
  28098. int weakRefs;
  28099. /* readonly */
  28100. BoundingBox worldBoundingBox;
  28101. /* readonly */
  28102. Zone zone;
  28103. uint zoneMask;
  28104. };
  28105. class StaticModelGeometryData
  28106. {
  28107. public:
  28108. ~StaticModelGeometryData();
  28109. StaticModelGeometryData();
  28110. // Methods:
  28111. StaticModelGeometryData& operator=(const StaticModelGeometryData&);
  28112. // Properties:
  28113. Vector3 center;
  28114. uint lodLevel;
  28115. };
  28116. class StaticModelGroup
  28117. {
  28118. public:
  28119. StaticModelGroup();
  28120. // Methods:
  28121. void AddInstanceNode(Node);
  28122. void AddLight(Light);
  28123. void AddVertexLight(Light);
  28124. void AllocateNetworkState();
  28125. operator Animatable() const;
  28126. void ApplyAttributes();
  28127. void ApplyMaterialList(const String& = String :: EMPTY);
  28128. const BoundingBox& GetBoundingBox() const;
  28129. const BoundingBox& GetWorldBoundingBox();
  28130. void CleanupConnection(Connection);
  28131. operator Component() const;
  28132. void DrawDebugGeometry(DebugRenderer, bool);
  28133. bool DrawOcclusion(OcclusionBuffer);
  28134. operator Drawable() const;
  28135. bool GetAnimationEnabled() const;
  28136. Variant GetAttribute(const String&) const;
  28137. Variant GetAttribute(uint) const;
  28138. ValueAnimation GetAttributeAnimation(const String&) const;
  28139. float GetAttributeAnimationSpeed(const String&) const;
  28140. float GetAttributeAnimationTime(const String&) const;
  28141. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28142. Variant GetAttributeDefault(const String&) const;
  28143. Variant GetAttributeDefault(uint) const;
  28144. bool GetBlockEvents() const;
  28145. bool GetCastShadows() const;
  28146. Component GetComponent(StringHash) const;
  28147. float GetDistance() const;
  28148. float GetDrawDistance() const;
  28149. uint8 GetDrawableFlags() const;
  28150. VariantMap& GetEventDataMap() const;
  28151. Object GetEventSender() const;
  28152. Light GetFirstLight() const;
  28153. uint GetID() const;
  28154. Node GetInstanceNode(uint) const;
  28155. bool GetInterceptNetworkUpdate(const String&) const;
  28156. uint GetLightMask() const;
  28157. Array<Light> GetLights() const;
  28158. float GetLodBias() const;
  28159. float GetLodDistance() const;
  28160. Geometry GetLodGeometry(uint, uint);
  28161. Material GetMaterial() const;
  28162. Material GetMaterial(uint) const;
  28163. uint GetMaxLights() const;
  28164. float GetMaxZ() const;
  28165. float GetMinZ() const;
  28166. Model GetModel() const;
  28167. ResourceRef GetModelAttr() const;
  28168. Node GetNode() const;
  28169. uint GetNumAttributes() const;
  28170. uint GetNumGeometries() const;
  28171. uint GetNumInstanceNodes() const;
  28172. uint GetNumNetworkAttributes() const;
  28173. uint GetNumOccluderTriangles();
  28174. ObjectAnimation GetObjectAnimation() const;
  28175. ResourceRef GetObjectAnimationAttr() const;
  28176. uint GetOcclusionLodLevel() const;
  28177. Scene GetScene() const;
  28178. float GetShadowDistance() const;
  28179. uint GetShadowMask() const;
  28180. float GetSortValue() const;
  28181. Object GetSubsystem(StringHash) const;
  28182. StringHash GetType() const;
  28183. UpdateGeometryType GetUpdateGeometryType();
  28184. Array<Light> GetVertexLights() const;
  28185. uint GetViewMask() const;
  28186. Zone GetZone() const;
  28187. uint GetZoneMask() const;
  28188. bool HasBasePass(uint) const;
  28189. bool HasEventHandlers() const;
  28190. bool HasSubscribedToEvent(Object, StringHash) const;
  28191. bool HasSubscribedToEvent(StringHash) const;
  28192. bool IsEnabled() const;
  28193. bool IsEnabledEffective() const;
  28194. bool IsInView() const;
  28195. bool IsInView(Camera) const;
  28196. bool IsInView(const FrameInfo&, bool = false) const;
  28197. bool IsInside(const Vector3&) const;
  28198. bool IsInsideLocal(const Vector3&) const;
  28199. bool IsInstanceOf(StringHash) const;
  28200. bool IsOccludee() const;
  28201. bool IsOccluder() const;
  28202. bool IsReplicated() const;
  28203. bool IsTemporary() const;
  28204. bool IsZoneDirty() const;
  28205. void LimitLights();
  28206. void LimitVertexLights(bool);
  28207. bool Load(Deserializer&);
  28208. bool LoadJSON(const JSONValue&);
  28209. bool LoadXML(const XMLElement&);
  28210. void MarkForUpdate();
  28211. void MarkInView(const FrameInfo&);
  28212. void MarkInView(uint);
  28213. void MarkNetworkUpdate();
  28214. operator Object() const;
  28215. void OnEvent(Object, StringHash, VariantMap&);
  28216. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28217. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28218. void OnSetEnabled();
  28219. void PrepareNetworkUpdate();
  28220. bool ReadDeltaUpdate(Deserializer&);
  28221. bool ReadLatestDataUpdate(Deserializer&);
  28222. operator RefCounted() const;
  28223. int Refs() const;
  28224. void Remove();
  28225. void RemoveAllInstanceNodes();
  28226. void RemoveAttributeAnimation(const String&);
  28227. void RemoveInstanceDefault();
  28228. void RemoveInstanceNode(Node);
  28229. void RemoveObjectAnimation();
  28230. void ResetToDefault();
  28231. const ResourceRefList& GetMaterialsAttr() const;
  28232. bool Save(Serializer&) const;
  28233. bool SaveDefaultAttributes() const;
  28234. bool SaveJSON(JSONValue&) const;
  28235. bool SaveXML(XMLElement&) const;
  28236. void SendEvent(StringHash);
  28237. void SendEvent(StringHash, VariantMap&);
  28238. operator Serializable() const;
  28239. void SetAnimationEnabled(bool);
  28240. void SetAnimationTime(float);
  28241. bool SetAttribute(const String&, const Variant&);
  28242. bool SetAttribute(uint, const Variant&);
  28243. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28244. void SetAttributeAnimationSpeed(const String&, float);
  28245. void SetAttributeAnimationTime(const String&, float);
  28246. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28247. void SetBasePass(uint);
  28248. void SetBlockEvents(bool);
  28249. void SetCastShadows(bool);
  28250. void SetDrawDistance(float);
  28251. void SetEnabled(bool);
  28252. void SetGlobalVar(StringHash, const Variant&);
  28253. void SetInstanceDefault(bool);
  28254. void SetInterceptNetworkUpdate(const String&, bool);
  28255. void SetLightMask(uint);
  28256. void SetLodBias(float);
  28257. void SetMaterial(Material);
  28258. bool SetMaterial(uint, Material);
  28259. void SetMaterialsAttr(const ResourceRefList&);
  28260. void SetMaxLights(uint);
  28261. void SetMinMaxZ(float, float);
  28262. void SetModel(Model);
  28263. void SetModelAttr(const ResourceRef&);
  28264. void SetObjectAnimation(ObjectAnimation);
  28265. void SetObjectAnimationAttr(const ResourceRef&);
  28266. void SetOccludee(bool);
  28267. void SetOccluder(bool);
  28268. void SetOcclusionLodLevel(uint);
  28269. void SetShadowDistance(float);
  28270. void SetShadowMask(uint);
  28271. void SetSortValue(float);
  28272. void SetTemporary(bool);
  28273. void SetViewMask(uint);
  28274. void SetZone(Zone, bool = false);
  28275. void SetZoneMask(uint);
  28276. operator StaticModel() const;
  28277. const String& GetCategory() const;
  28278. const String& GetTypeName() const;
  28279. void UnsubscribeFromAllEvents();
  28280. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28281. void UnsubscribeFromEvent(Object, StringHash);
  28282. void UnsubscribeFromEvent(StringHash);
  28283. void UnsubscribeFromEvents(Object);
  28284. void Update(const FrameInfo&);
  28285. void UpdateBatches(const FrameInfo&);
  28286. void UpdateGeometry(const FrameInfo&);
  28287. const Variant& GetGlobalVar(StringHash) const;
  28288. const VariantMap& GetGlobalVars() const;
  28289. int WeakRefs() const;
  28290. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28291. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28292. void WriteLatestDataUpdate(Serializer&, uint8);
  28293. operator const Animatable() const;
  28294. operator const Component() const;
  28295. operator const Drawable() const;
  28296. operator const Object() const;
  28297. operator const RefCounted() const;
  28298. operator const Serializable() const;
  28299. operator const StaticModel() const;
  28300. // Properties:
  28301. bool animationEnabled;
  28302. /* readonly */
  28303. Array<Variant> attributeDefaults;
  28304. /* readonly */
  28305. Array<AttributeInfo> attributeInfos;
  28306. Array<Variant> attributes;
  28307. /* readonly */
  28308. BoundingBox boundingBox;
  28309. bool castShadows;
  28310. /* readonly */
  28311. String category;
  28312. float drawDistance;
  28313. bool enabled;
  28314. /* readonly */
  28315. bool enabledEffective;
  28316. Array<Variant> globalVar;
  28317. /* readonly */
  28318. VariantMap globalVars;
  28319. /* readonly */
  28320. uint id;
  28321. /* readonly */
  28322. bool inView;
  28323. /* readonly */
  28324. Array<Node> instanceNodes;
  28325. uint lightMask;
  28326. float lodBias;
  28327. Material material;
  28328. Array<Material> materials;
  28329. uint maxLights;
  28330. Model model;
  28331. /* readonly */
  28332. Node node;
  28333. /* readonly */
  28334. uint numAttributes;
  28335. /* readonly */
  28336. uint numGeometries;
  28337. /* readonly */
  28338. uint numInstanceNodes;
  28339. ObjectAnimation objectAnimation;
  28340. bool occludee;
  28341. bool occluder;
  28342. uint occlusionLodLevel;
  28343. /* readonly */
  28344. int refs;
  28345. /* readonly */
  28346. bool replicated;
  28347. float shadowDistance;
  28348. uint shadowMask;
  28349. bool temporary;
  28350. /* readonly */
  28351. StringHash type;
  28352. /* readonly */
  28353. String typeName;
  28354. uint viewMask;
  28355. /* readonly */
  28356. int weakRefs;
  28357. /* readonly */
  28358. BoundingBox worldBoundingBox;
  28359. /* readonly */
  28360. Zone zone;
  28361. uint zoneMask;
  28362. };
  28363. class StaticSprite2D
  28364. {
  28365. public:
  28366. StaticSprite2D();
  28367. // Methods:
  28368. void AddLight(Light);
  28369. void AddVertexLight(Light);
  28370. void AllocateNetworkState();
  28371. operator Animatable() const;
  28372. operator AnimatedSprite2D() const;
  28373. void ApplyAttributes();
  28374. const BoundingBox& GetBoundingBox() const;
  28375. const BoundingBox& GetWorldBoundingBox();
  28376. void CleanupConnection(Connection);
  28377. const Color& GetColor() const;
  28378. operator Component() const;
  28379. void DrawDebugGeometry(DebugRenderer, bool);
  28380. bool DrawOcclusion(OcclusionBuffer);
  28381. operator Drawable2D() const;
  28382. operator Drawable() const;
  28383. float GetAlpha() const;
  28384. bool GetAnimationEnabled() const;
  28385. Variant GetAttribute(const String&) const;
  28386. Variant GetAttribute(uint) const;
  28387. ValueAnimation GetAttributeAnimation(const String&) const;
  28388. float GetAttributeAnimationSpeed(const String&) const;
  28389. float GetAttributeAnimationTime(const String&) const;
  28390. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28391. Variant GetAttributeDefault(const String&) const;
  28392. Variant GetAttributeDefault(uint) const;
  28393. BlendMode GetBlendMode() const;
  28394. bool GetBlockEvents() const;
  28395. bool GetCastShadows() const;
  28396. Component GetComponent(StringHash) const;
  28397. Material GetCustomMaterial() const;
  28398. ResourceRef GetCustomMaterialAttr() const;
  28399. float GetDistance() const;
  28400. float GetDrawDistance() const;
  28401. uint8 GetDrawableFlags() const;
  28402. VariantMap& GetEventDataMap() const;
  28403. Object GetEventSender() const;
  28404. Light GetFirstLight() const;
  28405. bool GetFlipX() const;
  28406. bool GetFlipY() const;
  28407. uint GetID() const;
  28408. bool GetInterceptNetworkUpdate(const String&) const;
  28409. int GetLayer() const;
  28410. uint GetLightMask() const;
  28411. Array<Light> GetLights() const;
  28412. float GetLodBias() const;
  28413. float GetLodDistance() const;
  28414. Geometry GetLodGeometry(uint, uint);
  28415. uint GetMaxLights() const;
  28416. float GetMaxZ() const;
  28417. float GetMinZ() const;
  28418. Node GetNode() const;
  28419. uint GetNumAttributes() const;
  28420. uint GetNumNetworkAttributes() const;
  28421. uint GetNumOccluderTriangles();
  28422. ObjectAnimation GetObjectAnimation() const;
  28423. ResourceRef GetObjectAnimationAttr() const;
  28424. int GetOrderInLayer() const;
  28425. Scene GetScene() const;
  28426. float GetShadowDistance() const;
  28427. uint GetShadowMask() const;
  28428. float GetSortValue() const;
  28429. Sprite2D GetSprite() const;
  28430. ResourceRef GetSpriteAttr() const;
  28431. Object GetSubsystem(StringHash) const;
  28432. bool GetSwapXY() const;
  28433. StringHash GetType() const;
  28434. UpdateGeometryType GetUpdateGeometryType();
  28435. bool GetUseDrawRect() const;
  28436. bool GetUseHotSpot() const;
  28437. bool GetUseTextureRect() const;
  28438. Array<Light> GetVertexLights() const;
  28439. uint GetViewMask() const;
  28440. Zone GetZone() const;
  28441. uint GetZoneMask() const;
  28442. bool HasBasePass(uint) const;
  28443. bool HasEventHandlers() const;
  28444. bool HasSubscribedToEvent(Object, StringHash) const;
  28445. bool HasSubscribedToEvent(StringHash) const;
  28446. bool IsEnabled() const;
  28447. bool IsEnabledEffective() const;
  28448. bool IsInView() const;
  28449. bool IsInView(Camera) const;
  28450. bool IsInView(const FrameInfo&, bool = false) const;
  28451. bool IsInstanceOf(StringHash) const;
  28452. bool IsOccludee() const;
  28453. bool IsOccluder() const;
  28454. bool IsReplicated() const;
  28455. bool IsTemporary() const;
  28456. bool IsZoneDirty() const;
  28457. void LimitLights();
  28458. void LimitVertexLights(bool);
  28459. bool Load(Deserializer&);
  28460. bool LoadJSON(const JSONValue&);
  28461. bool LoadXML(const XMLElement&);
  28462. void MarkForUpdate();
  28463. void MarkInView(const FrameInfo&);
  28464. void MarkInView(uint);
  28465. void MarkNetworkUpdate();
  28466. operator Object() const;
  28467. void OnEvent(Object, StringHash, VariantMap&);
  28468. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28469. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28470. void OnSetEnabled();
  28471. void PrepareNetworkUpdate();
  28472. bool ReadDeltaUpdate(Deserializer&);
  28473. bool ReadLatestDataUpdate(Deserializer&);
  28474. const Rect& GetDrawRect() const;
  28475. const Rect& GetTextureRect() const;
  28476. operator RefCounted() const;
  28477. int Refs() const;
  28478. void Remove();
  28479. void RemoveAttributeAnimation(const String&);
  28480. void RemoveInstanceDefault();
  28481. void RemoveObjectAnimation();
  28482. void ResetToDefault();
  28483. bool Save(Serializer&) const;
  28484. bool SaveDefaultAttributes() const;
  28485. bool SaveJSON(JSONValue&) const;
  28486. bool SaveXML(XMLElement&) const;
  28487. void SendEvent(StringHash);
  28488. void SendEvent(StringHash, VariantMap&);
  28489. operator Serializable() const;
  28490. void SetAlpha(float);
  28491. void SetAnimationEnabled(bool);
  28492. void SetAnimationTime(float);
  28493. bool SetAttribute(const String&, const Variant&);
  28494. bool SetAttribute(uint, const Variant&);
  28495. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28496. void SetAttributeAnimationSpeed(const String&, float);
  28497. void SetAttributeAnimationTime(const String&, float);
  28498. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28499. void SetBasePass(uint);
  28500. void SetBlendMode(BlendMode);
  28501. void SetBlockEvents(bool);
  28502. void SetCastShadows(bool);
  28503. void SetColor(const Color&);
  28504. void SetCustomMaterial(Material);
  28505. void SetCustomMaterialAttr(const ResourceRef&);
  28506. void SetDrawDistance(float);
  28507. void SetDrawRect(const Rect&);
  28508. void SetEnabled(bool);
  28509. void SetFlip(bool, bool, bool = false);
  28510. void SetFlipX(bool);
  28511. void SetFlipY(bool);
  28512. void SetGlobalVar(StringHash, const Variant&);
  28513. void SetHotSpot(const Vector2&);
  28514. void SetInstanceDefault(bool);
  28515. void SetInterceptNetworkUpdate(const String&, bool);
  28516. void SetLayer(int);
  28517. void SetLightMask(uint);
  28518. void SetLodBias(float);
  28519. void SetMaxLights(uint);
  28520. void SetMinMaxZ(float, float);
  28521. void SetObjectAnimation(ObjectAnimation);
  28522. void SetObjectAnimationAttr(const ResourceRef&);
  28523. void SetOccludee(bool);
  28524. void SetOccluder(bool);
  28525. void SetOrderInLayer(int);
  28526. void SetShadowDistance(float);
  28527. void SetShadowMask(uint);
  28528. void SetSortValue(float);
  28529. void SetSprite(Sprite2D);
  28530. void SetSpriteAttr(const ResourceRef&);
  28531. void SetSwapXY(bool);
  28532. void SetTemporary(bool);
  28533. void SetTextureRect(const Rect&);
  28534. void SetUseDrawRect(bool);
  28535. void SetUseHotSpot(bool);
  28536. void SetUseTextureRect(bool);
  28537. void SetViewMask(uint);
  28538. void SetZone(Zone, bool = false);
  28539. void SetZoneMask(uint);
  28540. operator StretchableSprite2D() const;
  28541. const String& GetCategory() const;
  28542. const String& GetTypeName() const;
  28543. void UnsubscribeFromAllEvents();
  28544. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28545. void UnsubscribeFromEvent(Object, StringHash);
  28546. void UnsubscribeFromEvent(StringHash);
  28547. void UnsubscribeFromEvents(Object);
  28548. void Update(const FrameInfo&);
  28549. void UpdateBatches(const FrameInfo&);
  28550. void UpdateGeometry(const FrameInfo&);
  28551. const Variant& GetGlobalVar(StringHash) const;
  28552. const VariantMap& GetGlobalVars() const;
  28553. const Vector2& GetHotSpot() const;
  28554. int WeakRefs() const;
  28555. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28556. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28557. void WriteLatestDataUpdate(Serializer&, uint8);
  28558. operator const Animatable() const;
  28559. operator const AnimatedSprite2D() const;
  28560. operator const Component() const;
  28561. operator const Drawable2D() const;
  28562. operator const Drawable() const;
  28563. operator const Object() const;
  28564. operator const RefCounted() const;
  28565. operator const Serializable() const;
  28566. operator const StretchableSprite2D() const;
  28567. // Properties:
  28568. float alpha;
  28569. bool animationEnabled;
  28570. /* readonly */
  28571. Array<Variant> attributeDefaults;
  28572. /* readonly */
  28573. Array<AttributeInfo> attributeInfos;
  28574. Array<Variant> attributes;
  28575. BlendMode blendMode;
  28576. /* readonly */
  28577. BoundingBox boundingBox;
  28578. bool castShadows;
  28579. /* readonly */
  28580. String category;
  28581. Color color;
  28582. Material customMaterial;
  28583. float drawDistance;
  28584. Rect drawRect;
  28585. bool enabled;
  28586. /* readonly */
  28587. bool enabledEffective;
  28588. bool flipX;
  28589. bool flipY;
  28590. Array<Variant> globalVar;
  28591. /* readonly */
  28592. VariantMap globalVars;
  28593. Vector2 hotSpot;
  28594. /* readonly */
  28595. uint id;
  28596. /* readonly */
  28597. bool inView;
  28598. int layer;
  28599. uint lightMask;
  28600. float lodBias;
  28601. uint maxLights;
  28602. /* readonly */
  28603. Node node;
  28604. /* readonly */
  28605. uint numAttributes;
  28606. ObjectAnimation objectAnimation;
  28607. bool occludee;
  28608. bool occluder;
  28609. int orderInLayer;
  28610. /* readonly */
  28611. int refs;
  28612. /* readonly */
  28613. bool replicated;
  28614. float shadowDistance;
  28615. uint shadowMask;
  28616. Sprite2D sprite;
  28617. bool swapXY;
  28618. bool temporary;
  28619. Rect textureRect;
  28620. /* readonly */
  28621. StringHash type;
  28622. /* readonly */
  28623. String typeName;
  28624. bool useDrawRect;
  28625. bool useHotSpot;
  28626. bool useTextureRect;
  28627. uint viewMask;
  28628. /* readonly */
  28629. int weakRefs;
  28630. /* readonly */
  28631. BoundingBox worldBoundingBox;
  28632. /* readonly */
  28633. Zone zone;
  28634. uint zoneMask;
  28635. };
  28636. class StoredLogMessage
  28637. {
  28638. public:
  28639. ~StoredLogMessage();
  28640. StoredLogMessage();
  28641. StoredLogMessage(const String&in, int, bool);
  28642. // Methods:
  28643. StoredLogMessage& operator=(const StoredLogMessage&);
  28644. // Properties:
  28645. bool error;
  28646. int level;
  28647. String message;
  28648. };
  28649. class StretchableSprite2D
  28650. {
  28651. public:
  28652. StretchableSprite2D();
  28653. // Methods:
  28654. void AddLight(Light);
  28655. void AddVertexLight(Light);
  28656. void AllocateNetworkState();
  28657. operator Animatable() const;
  28658. void ApplyAttributes();
  28659. const BoundingBox& GetBoundingBox() const;
  28660. const BoundingBox& GetWorldBoundingBox();
  28661. void CleanupConnection(Connection);
  28662. const Color& GetColor() const;
  28663. operator Component() const;
  28664. void DrawDebugGeometry(DebugRenderer, bool);
  28665. bool DrawOcclusion(OcclusionBuffer);
  28666. operator Drawable2D() const;
  28667. operator Drawable() const;
  28668. float GetAlpha() const;
  28669. bool GetAnimationEnabled() const;
  28670. Variant GetAttribute(const String&) const;
  28671. Variant GetAttribute(uint) const;
  28672. ValueAnimation GetAttributeAnimation(const String&) const;
  28673. float GetAttributeAnimationSpeed(const String&) const;
  28674. float GetAttributeAnimationTime(const String&) const;
  28675. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28676. Variant GetAttributeDefault(const String&) const;
  28677. Variant GetAttributeDefault(uint) const;
  28678. BlendMode GetBlendMode() const;
  28679. bool GetBlockEvents() const;
  28680. bool GetCastShadows() const;
  28681. Component GetComponent(StringHash) const;
  28682. Material GetCustomMaterial() const;
  28683. ResourceRef GetCustomMaterialAttr() const;
  28684. float GetDistance() const;
  28685. float GetDrawDistance() const;
  28686. uint8 GetDrawableFlags() const;
  28687. VariantMap& GetEventDataMap() const;
  28688. Object GetEventSender() const;
  28689. Light GetFirstLight() const;
  28690. bool GetFlipX() const;
  28691. bool GetFlipY() const;
  28692. uint GetID() const;
  28693. bool GetInterceptNetworkUpdate(const String&) const;
  28694. int GetLayer() const;
  28695. uint GetLightMask() const;
  28696. Array<Light> GetLights() const;
  28697. float GetLodBias() const;
  28698. float GetLodDistance() const;
  28699. Geometry GetLodGeometry(uint, uint);
  28700. uint GetMaxLights() const;
  28701. float GetMaxZ() const;
  28702. float GetMinZ() const;
  28703. Node GetNode() const;
  28704. uint GetNumAttributes() const;
  28705. uint GetNumNetworkAttributes() const;
  28706. uint GetNumOccluderTriangles();
  28707. ObjectAnimation GetObjectAnimation() const;
  28708. ResourceRef GetObjectAnimationAttr() const;
  28709. int GetOrderInLayer() const;
  28710. Scene GetScene() const;
  28711. float GetShadowDistance() const;
  28712. uint GetShadowMask() const;
  28713. float GetSortValue() const;
  28714. Sprite2D GetSprite() const;
  28715. ResourceRef GetSpriteAttr() const;
  28716. Object GetSubsystem(StringHash) const;
  28717. bool GetSwapXY() const;
  28718. StringHash GetType() const;
  28719. UpdateGeometryType GetUpdateGeometryType();
  28720. bool GetUseDrawRect() const;
  28721. bool GetUseHotSpot() const;
  28722. bool GetUseTextureRect() const;
  28723. Array<Light> GetVertexLights() const;
  28724. uint GetViewMask() const;
  28725. Zone GetZone() const;
  28726. uint GetZoneMask() const;
  28727. bool HasBasePass(uint) const;
  28728. bool HasEventHandlers() const;
  28729. bool HasSubscribedToEvent(Object, StringHash) const;
  28730. bool HasSubscribedToEvent(StringHash) const;
  28731. const IntRect& GetBorder() const;
  28732. bool IsEnabled() const;
  28733. bool IsEnabledEffective() const;
  28734. bool IsInView() const;
  28735. bool IsInView(Camera) const;
  28736. bool IsInView(const FrameInfo&, bool = false) const;
  28737. bool IsInstanceOf(StringHash) const;
  28738. bool IsOccludee() const;
  28739. bool IsOccluder() const;
  28740. bool IsReplicated() const;
  28741. bool IsTemporary() const;
  28742. bool IsZoneDirty() const;
  28743. void LimitLights();
  28744. void LimitVertexLights(bool);
  28745. bool Load(Deserializer&);
  28746. bool LoadJSON(const JSONValue&);
  28747. bool LoadXML(const XMLElement&);
  28748. void MarkForUpdate();
  28749. void MarkInView(const FrameInfo&);
  28750. void MarkInView(uint);
  28751. void MarkNetworkUpdate();
  28752. operator Object() const;
  28753. void OnEvent(Object, StringHash, VariantMap&);
  28754. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28755. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28756. void OnSetEnabled();
  28757. void PrepareNetworkUpdate();
  28758. bool ReadDeltaUpdate(Deserializer&);
  28759. bool ReadLatestDataUpdate(Deserializer&);
  28760. const Rect& GetDrawRect() const;
  28761. const Rect& GetTextureRect() const;
  28762. operator RefCounted() const;
  28763. int Refs() const;
  28764. void Remove();
  28765. void RemoveAttributeAnimation(const String&);
  28766. void RemoveInstanceDefault();
  28767. void RemoveObjectAnimation();
  28768. void ResetToDefault();
  28769. bool Save(Serializer&) const;
  28770. bool SaveDefaultAttributes() const;
  28771. bool SaveJSON(JSONValue&) const;
  28772. bool SaveXML(XMLElement&) const;
  28773. void SendEvent(StringHash);
  28774. void SendEvent(StringHash, VariantMap&);
  28775. operator Serializable() const;
  28776. void SetAlpha(float);
  28777. void SetAnimationEnabled(bool);
  28778. void SetAnimationTime(float);
  28779. bool SetAttribute(const String&, const Variant&);
  28780. bool SetAttribute(uint, const Variant&);
  28781. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28782. void SetAttributeAnimationSpeed(const String&, float);
  28783. void SetAttributeAnimationTime(const String&, float);
  28784. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28785. void SetBasePass(uint);
  28786. void SetBlendMode(BlendMode);
  28787. void SetBlockEvents(bool);
  28788. void SetBorder(const IntRect&);
  28789. void SetCastShadows(bool);
  28790. void SetColor(const Color&);
  28791. void SetCustomMaterial(Material);
  28792. void SetCustomMaterialAttr(const ResourceRef&);
  28793. void SetDrawDistance(float);
  28794. void SetDrawRect(const Rect&);
  28795. void SetEnabled(bool);
  28796. void SetFlip(bool, bool, bool = false);
  28797. void SetFlipX(bool);
  28798. void SetFlipY(bool);
  28799. void SetGlobalVar(StringHash, const Variant&);
  28800. void SetHotSpot(const Vector2&);
  28801. void SetInstanceDefault(bool);
  28802. void SetInterceptNetworkUpdate(const String&, bool);
  28803. void SetLayer(int);
  28804. void SetLightMask(uint);
  28805. void SetLodBias(float);
  28806. void SetMaxLights(uint);
  28807. void SetMinMaxZ(float, float);
  28808. void SetObjectAnimation(ObjectAnimation);
  28809. void SetObjectAnimationAttr(const ResourceRef&);
  28810. void SetOccludee(bool);
  28811. void SetOccluder(bool);
  28812. void SetOrderInLayer(int);
  28813. void SetShadowDistance(float);
  28814. void SetShadowMask(uint);
  28815. void SetSortValue(float);
  28816. void SetSprite(Sprite2D);
  28817. void SetSpriteAttr(const ResourceRef&);
  28818. void SetSwapXY(bool);
  28819. void SetTemporary(bool);
  28820. void SetTextureRect(const Rect&);
  28821. void SetUseDrawRect(bool);
  28822. void SetUseHotSpot(bool);
  28823. void SetUseTextureRect(bool);
  28824. void SetViewMask(uint);
  28825. void SetZone(Zone, bool = false);
  28826. void SetZoneMask(uint);
  28827. operator StaticSprite2D() const;
  28828. const String& GetCategory() const;
  28829. const String& GetTypeName() const;
  28830. void UnsubscribeFromAllEvents();
  28831. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28832. void UnsubscribeFromEvent(Object, StringHash);
  28833. void UnsubscribeFromEvent(StringHash);
  28834. void UnsubscribeFromEvents(Object);
  28835. void Update(const FrameInfo&);
  28836. void UpdateBatches(const FrameInfo&);
  28837. void UpdateGeometry(const FrameInfo&);
  28838. const Variant& GetGlobalVar(StringHash) const;
  28839. const VariantMap& GetGlobalVars() const;
  28840. const Vector2& GetHotSpot() const;
  28841. int WeakRefs() const;
  28842. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28843. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28844. void WriteLatestDataUpdate(Serializer&, uint8);
  28845. operator const Animatable() const;
  28846. operator const Component() const;
  28847. operator const Drawable2D() const;
  28848. operator const Drawable() const;
  28849. operator const Object() const;
  28850. operator const RefCounted() const;
  28851. operator const Serializable() const;
  28852. operator const StaticSprite2D() const;
  28853. // Properties:
  28854. float alpha;
  28855. bool animationEnabled;
  28856. /* readonly */
  28857. Array<Variant> attributeDefaults;
  28858. /* readonly */
  28859. Array<AttributeInfo> attributeInfos;
  28860. Array<Variant> attributes;
  28861. BlendMode blendMode;
  28862. IntRect border;
  28863. /* readonly */
  28864. BoundingBox boundingBox;
  28865. bool castShadows;
  28866. /* readonly */
  28867. String category;
  28868. Color color;
  28869. Material customMaterial;
  28870. float drawDistance;
  28871. Rect drawRect;
  28872. bool enabled;
  28873. /* readonly */
  28874. bool enabledEffective;
  28875. bool flipX;
  28876. bool flipY;
  28877. Array<Variant> globalVar;
  28878. /* readonly */
  28879. VariantMap globalVars;
  28880. Vector2 hotSpot;
  28881. /* readonly */
  28882. uint id;
  28883. /* readonly */
  28884. bool inView;
  28885. int layer;
  28886. uint lightMask;
  28887. float lodBias;
  28888. uint maxLights;
  28889. /* readonly */
  28890. Node node;
  28891. /* readonly */
  28892. uint numAttributes;
  28893. ObjectAnimation objectAnimation;
  28894. bool occludee;
  28895. bool occluder;
  28896. int orderInLayer;
  28897. /* readonly */
  28898. int refs;
  28899. /* readonly */
  28900. bool replicated;
  28901. float shadowDistance;
  28902. uint shadowMask;
  28903. Sprite2D sprite;
  28904. bool swapXY;
  28905. bool temporary;
  28906. Rect textureRect;
  28907. /* readonly */
  28908. StringHash type;
  28909. /* readonly */
  28910. String typeName;
  28911. bool useDrawRect;
  28912. bool useHotSpot;
  28913. bool useTextureRect;
  28914. uint viewMask;
  28915. /* readonly */
  28916. int weakRefs;
  28917. /* readonly */
  28918. BoundingBox worldBoundingBox;
  28919. /* readonly */
  28920. Zone zone;
  28921. uint zoneMask;
  28922. };
  28923. class String
  28924. {
  28925. public:
  28926. ~String();
  28927. String();
  28928. String(const String&in);
  28929. String(int);
  28930. String(int16);
  28931. String(int64);
  28932. String(uint);
  28933. String(uint16);
  28934. String(uint64);
  28935. String(float);
  28936. String(double);
  28937. String(bool);
  28938. String(int8);
  28939. String(int8, int);
  28940. String(const char*);
  28941. // Methods:
  28942. String operator+(bool) const;
  28943. String operator+(const String&) const;
  28944. String operator+(double) const;
  28945. String operator+(float) const;
  28946. String operator+(int) const;
  28947. String operator+(uint) const;
  28948. String& operator+=(bool);
  28949. String& operator+=(const String&);
  28950. String& operator+=(double);
  28951. String& operator+=(float);
  28952. String& operator+=(int);
  28953. String& operator+=(int16);
  28954. String& operator+=(int64);
  28955. String& operator+=(int8);
  28956. String& operator+=(uint);
  28957. String& operator+=(uint16);
  28958. String& operator+=(uint64);
  28959. int operator<(const String&) const;
  28960. String& operator=(bool);
  28961. String& operator=(const String&);
  28962. String& operator=(double);
  28963. String& operator=(float);
  28964. String& operator=(int);
  28965. String& operator=(uint);
  28966. bool operator==(const String&) const;
  28967. int8& operator[](int);
  28968. String& Append(const String&);
  28969. String& Append(int8);
  28970. String& AppendUTF8(uint);
  28971. int8& At(int);
  28972. uint AtUTF8(int) const;
  28973. int8 Back() const;
  28974. int ByteOffsetUTF8(int) const;
  28975. int Capacity() const;
  28976. void Clear();
  28977. void Compact();
  28978. int Compare(const String&, bool = true) const;
  28979. bool Contains(const String&, bool = true) const;
  28980. bool Contains(int8, bool = true) const;
  28981. bool Empty() const;
  28982. bool EndsWith(const String&, bool = true) const;
  28983. void Erase(int, int = 1);
  28984. int Find(const String&, int = 0, bool = true) const;
  28985. int Find(int8, int = 0, bool = true) const;
  28986. int FindLast(const String&, int = String :: NPOS, bool = true) const;
  28987. int FindLast(int8, int = String :: NPOS, bool = true) const;
  28988. int8 Front() const;
  28989. void Insert(int, const String&);
  28990. void Insert(int, int8);
  28991. bool IsShort() const;
  28992. void Join(Array<String>, const String&);
  28993. int Length() const;
  28994. int LengthUTF8() const;
  28995. uint NextUTF8Char(int&) const;
  28996. void Replace(const String&, const String&, bool = true);
  28997. void Replace(int, int, const String&);
  28998. void Replace(int8, int8, bool = true);
  28999. void ReplaceUTF8(int, uint);
  29000. String Replaced(const String&, const String&, bool = true) const;
  29001. String Replaced(int8, int8, bool = true) const;
  29002. void Reserve(int);
  29003. void Resize(int);
  29004. Array<String> Split(int8, bool = false) const;
  29005. bool StartsWith(const String&, bool = true) const;
  29006. String Substring(int) const;
  29007. String Substring(int, int) const;
  29008. String SubstringUTF8(int) const;
  29009. String SubstringUTF8(int, int) const;
  29010. void Swap(String&);
  29011. bool ToBool() const;
  29012. Color ToColor() const;
  29013. double ToDouble() const;
  29014. float ToFloat() const;
  29015. uint ToHash() const;
  29016. int ToInt(int base = 10) const;
  29017. int64 ToInt64(int base = 10) const;
  29018. IntRect ToIntRect() const;
  29019. IntVector2 ToIntVector2() const;
  29020. IntVector3 ToIntVector3() const;
  29021. String ToLower() const;
  29022. Matrix3 ToMatrix3() const;
  29023. Matrix3x4 ToMatrix3x4() const;
  29024. Matrix4 ToMatrix4() const;
  29025. Quaternion ToQuaternion() const;
  29026. uint ToUInt(int base = 10) const;
  29027. uint64 ToUInt64(int base = 10) const;
  29028. String ToUpper() const;
  29029. Vector2 ToVector2() const;
  29030. Vector3 ToVector3() const;
  29031. Vector4 ToVector4(bool allowMissingCoords = false) const;
  29032. Variant ToVectorVariant() const;
  29033. String Trimmed() const;
  29034. const int8& operator[](int) const;
  29035. const int8& At(int) const;
  29036. // Properties:
  29037. /* readonly */
  29038. bool empty;
  29039. /* readonly */
  29040. int length;
  29041. /* readonly */
  29042. int utf8Length;
  29043. // Constants:
  29044. static const String EMPTY;
  29045. static const int NPOS;
  29046. };
  29047. class StringHash
  29048. {
  29049. public:
  29050. StringHash();
  29051. StringHash(const StringHash&in);
  29052. StringHash(uint);
  29053. StringHash(const String&in);
  29054. // Methods:
  29055. StringHash operator+(const StringHash&) const;
  29056. StringHash& operator+=(const StringHash&);
  29057. int operator<(const StringHash&) const;
  29058. StringHash& operator=(const StringHash&);
  29059. bool operator==(const StringHash&) const;
  29060. String Reverse() const;
  29061. uint ToHash() const;
  29062. String ToString() const;
  29063. uint Value() const;
  29064. // Properties:
  29065. /* readonly */
  29066. uint value;
  29067. // Constants:
  29068. static const StringHash ZERO;
  29069. };
  29070. class StringHashRegister
  29071. {
  29072. public:
  29073. ~StringHashRegister();
  29074. StringHashRegister(bool);
  29075. // Methods:
  29076. bool Contains(const StringHash&) const;
  29077. String GetStringCopy(const StringHash&) const;
  29078. const String& GetString(const StringHash&) const;
  29079. };
  29080. class Technique
  29081. {
  29082. public:
  29083. Technique();
  29084. // Methods:
  29085. bool BeginLoad(Deserializer&);
  29086. Technique Clone(const String& = String :: EMPTY) const;
  29087. Technique CloneWithDefines(const String&, const String&);
  29088. Pass CreatePass(const String&);
  29089. bool EndLoad();
  29090. AsyncLoadState GetAsyncLoadState() const;
  29091. bool GetBlockEvents() const;
  29092. VariantMap& GetEventDataMap() const;
  29093. Object GetEventSender() const;
  29094. uint GetMemoryUse() const;
  29095. StringHash GetNameHash() const;
  29096. uint GetNumPasses() const;
  29097. Pass GetPass(const String&) const;
  29098. Pass GetPass(uint) const;
  29099. Array<String> GetPassNames() const;
  29100. Array<Pass> GetPasses() const;
  29101. Object GetSubsystem(StringHash) const;
  29102. Pass GetSupportedPass(const String&) const;
  29103. Pass GetSupportedPass(uint) const;
  29104. StringHash GetType() const;
  29105. uint GetUseTimer();
  29106. bool HasEventHandlers() const;
  29107. bool HasPass(const String&) const;
  29108. bool HasPass(uint) const;
  29109. bool HasSubscribedToEvent(Object, StringHash) const;
  29110. bool HasSubscribedToEvent(StringHash) const;
  29111. bool IsDesktop() const;
  29112. bool IsInstanceOf(StringHash) const;
  29113. bool IsSupported() const;
  29114. bool Load(Deserializer&);
  29115. bool Load(File);
  29116. bool Load(VectorBuffer&);
  29117. bool Load(const String&);
  29118. bool LoadFile(const String&);
  29119. operator Object() const;
  29120. void OnEvent(Object, StringHash, VariantMap&);
  29121. operator RefCounted() const;
  29122. int Refs() const;
  29123. void ReleaseShaders();
  29124. void RemovePass(const String&);
  29125. void ResetUseTimer();
  29126. operator Resource() const;
  29127. bool Save(File) const;
  29128. bool Save(Serializer&) const;
  29129. bool Save(VectorBuffer&) const;
  29130. bool Save(const String&) const;
  29131. bool SaveFile(const String&) const;
  29132. void SendEvent(StringHash);
  29133. void SendEvent(StringHash, VariantMap&);
  29134. void SetAsyncLoadState(AsyncLoadState);
  29135. void SetBlockEvents(bool);
  29136. void SetGlobalVar(StringHash, const Variant&);
  29137. void SetIsDesktop(bool);
  29138. void SetMemoryUse(uint);
  29139. void SetName(const String&);
  29140. const String& GetCategory() const;
  29141. const String& GetName() const;
  29142. const String& GetTypeName() const;
  29143. void UnsubscribeFromAllEvents();
  29144. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29145. void UnsubscribeFromEvent(Object, StringHash);
  29146. void UnsubscribeFromEvent(StringHash);
  29147. void UnsubscribeFromEvents(Object);
  29148. const Variant& GetGlobalVar(StringHash) const;
  29149. const VariantMap& GetGlobalVars() const;
  29150. int WeakRefs() const;
  29151. operator const Object() const;
  29152. operator const RefCounted() const;
  29153. operator const Resource() const;
  29154. // Properties:
  29155. /* readonly */
  29156. String category;
  29157. bool desktop;
  29158. Array<Variant> globalVar;
  29159. /* readonly */
  29160. VariantMap globalVars;
  29161. /* readonly */
  29162. uint memoryUse;
  29163. String name;
  29164. /* readonly */
  29165. uint numPasses;
  29166. /* readonly */
  29167. Array<String> passNames;
  29168. /* readonly */
  29169. Array<Pass> passes;
  29170. /* readonly */
  29171. int refs;
  29172. /* readonly */
  29173. bool supported;
  29174. /* readonly */
  29175. StringHash type;
  29176. /* readonly */
  29177. String typeName;
  29178. /* readonly */
  29179. uint useTimer;
  29180. /* readonly */
  29181. int weakRefs;
  29182. // Constants:
  29183. static const uint alphaPassIndex;
  29184. static const uint basePassIndex;
  29185. static const uint deferredPassIndex;
  29186. static const uint lightPassIndex;
  29187. static const uint litAlphaPassIndex;
  29188. static const uint litBasePassIndex;
  29189. static const uint materialPassIndex;
  29190. static const uint shadowPassIndex;
  29191. };
  29192. class TechniqueEntry
  29193. {
  29194. public:
  29195. ~TechniqueEntry();
  29196. TechniqueEntry();
  29197. TechniqueEntry(Technique@, uint, float);
  29198. // Methods:
  29199. TechniqueEntry& operator=(const TechniqueEntry&);
  29200. // Properties:
  29201. float lodDistance;
  29202. uint qualityLevel;
  29203. Technique technique;
  29204. };
  29205. class Terrain
  29206. {
  29207. public:
  29208. Terrain();
  29209. // Methods:
  29210. void AllocateNetworkState();
  29211. operator Animatable() const;
  29212. void ApplyAttributes();
  29213. void ApplyHeightMap();
  29214. void CleanupConnection(Connection);
  29215. operator Component() const;
  29216. void CreatePatchGeometry(TerrainPatch);
  29217. void DrawDebugGeometry(DebugRenderer, bool);
  29218. bool GetAnimationEnabled() const;
  29219. Variant GetAttribute(const String&) const;
  29220. Variant GetAttribute(uint) const;
  29221. ValueAnimation GetAttributeAnimation(const String&) const;
  29222. float GetAttributeAnimationSpeed(const String&) const;
  29223. float GetAttributeAnimationTime(const String&) const;
  29224. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29225. Variant GetAttributeDefault(const String&) const;
  29226. Variant GetAttributeDefault(uint) const;
  29227. bool GetBlockEvents() const;
  29228. bool GetCastShadows() const;
  29229. Component GetComponent(StringHash) const;
  29230. float GetDrawDistance() const;
  29231. Terrain GetEastNeighbor() const;
  29232. VariantMap& GetEventDataMap() const;
  29233. Object GetEventSender() const;
  29234. float GetHeight(const Vector3&) const;
  29235. Image GetHeightMap() const;
  29236. ResourceRef GetHeightMapAttr() const;
  29237. uint GetID() const;
  29238. bool GetInterceptNetworkUpdate(const String&) const;
  29239. uint GetLightMask() const;
  29240. float GetLodBias() const;
  29241. Material GetMaterial() const;
  29242. ResourceRef GetMaterialAttr() const;
  29243. uint GetMaxLights() const;
  29244. uint GetMaxLodLevels() const;
  29245. TerrainPatch GetNeighborPatch(int, int) const;
  29246. Node GetNode() const;
  29247. Vector3 GetNormal(const Vector3&) const;
  29248. Terrain GetNorthNeighbor() const;
  29249. uint GetNumAttributes() const;
  29250. uint GetNumNetworkAttributes() const;
  29251. ObjectAnimation GetObjectAnimation() const;
  29252. ResourceRef GetObjectAnimationAttr() const;
  29253. uint GetOcclusionLodLevel() const;
  29254. TerrainPatch GetPatch(int, int) const;
  29255. TerrainPatch GetPatch(uint) const;
  29256. int GetPatchSize() const;
  29257. Scene GetScene() const;
  29258. float GetShadowDistance() const;
  29259. uint GetShadowMask() const;
  29260. bool GetSmoothing() const;
  29261. Terrain GetSouthNeighbor() const;
  29262. Object GetSubsystem(StringHash) const;
  29263. StringHash GetType() const;
  29264. uint GetViewMask() const;
  29265. Terrain GetWestNeighbor() const;
  29266. uint GetZoneMask() const;
  29267. bool HasEventHandlers() const;
  29268. bool HasSubscribedToEvent(Object, StringHash) const;
  29269. bool HasSubscribedToEvent(StringHash) const;
  29270. Vector3 HeightMapToWorld(const IntVector2&) const;
  29271. const IntVector2& GetNumPatches() const;
  29272. const IntVector2& GetNumVertices() const;
  29273. bool IsEnabled() const;
  29274. bool IsEnabledEffective() const;
  29275. bool IsInstanceOf(StringHash) const;
  29276. bool IsOccludee() const;
  29277. bool IsOccluder() const;
  29278. bool IsReplicated() const;
  29279. bool IsTemporary() const;
  29280. bool IsVisible() const;
  29281. bool Load(Deserializer&);
  29282. bool LoadJSON(const JSONValue&);
  29283. bool LoadXML(const XMLElement&);
  29284. void MarkNetworkUpdate();
  29285. operator Object() const;
  29286. void OnEvent(Object, StringHash, VariantMap&);
  29287. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29288. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29289. void OnSetEnabled();
  29290. void PrepareNetworkUpdate();
  29291. bool ReadDeltaUpdate(Deserializer&);
  29292. bool ReadLatestDataUpdate(Deserializer&);
  29293. operator RefCounted() const;
  29294. int Refs() const;
  29295. void Remove();
  29296. void RemoveAttributeAnimation(const String&);
  29297. void RemoveInstanceDefault();
  29298. void RemoveObjectAnimation();
  29299. void ResetToDefault();
  29300. bool Save(Serializer&) const;
  29301. bool SaveDefaultAttributes() const;
  29302. bool SaveJSON(JSONValue&) const;
  29303. bool SaveXML(XMLElement&) const;
  29304. void SendEvent(StringHash);
  29305. void SendEvent(StringHash, VariantMap&);
  29306. operator Serializable() const;
  29307. void SetAnimationEnabled(bool);
  29308. void SetAnimationTime(float);
  29309. bool SetAttribute(const String&, const Variant&);
  29310. bool SetAttribute(uint, const Variant&);
  29311. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  29312. void SetAttributeAnimationSpeed(const String&, float);
  29313. void SetAttributeAnimationTime(const String&, float);
  29314. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  29315. void SetBlockEvents(bool);
  29316. void SetCastShadows(bool);
  29317. void SetDrawDistance(float);
  29318. void SetEastNeighbor(Terrain);
  29319. void SetEnabled(bool);
  29320. void SetGlobalVar(StringHash, const Variant&);
  29321. bool SetHeightMap(Image);
  29322. void SetHeightMapAttr(const ResourceRef&);
  29323. void SetInstanceDefault(bool);
  29324. void SetInterceptNetworkUpdate(const String&, bool);
  29325. void SetLightMask(uint);
  29326. void SetLodBias(float);
  29327. void SetMaterial(Material);
  29328. void SetMaterialAttr(const ResourceRef&);
  29329. void SetMaxLights(uint);
  29330. void SetMaxLodLevels(uint);
  29331. void SetMaxLodLevelsAttr(uint);
  29332. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  29333. void SetNorthNeighbor(Terrain);
  29334. void SetObjectAnimation(ObjectAnimation);
  29335. void SetObjectAnimationAttr(const ResourceRef&);
  29336. void SetOccludee(bool);
  29337. void SetOccluder(bool);
  29338. void SetOcclusionLodLevel(uint);
  29339. void SetOcclusionLodLevelAttr(uint);
  29340. void SetPatchSize(int);
  29341. void SetPatchSizeAttr(int);
  29342. void SetShadowDistance(float);
  29343. void SetShadowMask(uint);
  29344. void SetSmoothing(bool);
  29345. void SetSouthNeighbor(Terrain);
  29346. void SetSpacing(const Vector3&);
  29347. void SetTemporary(bool);
  29348. void SetViewMask(uint);
  29349. void SetWestNeighbor(Terrain);
  29350. void SetZoneMask(uint);
  29351. const String& GetCategory() const;
  29352. const String& GetTypeName() const;
  29353. void UnsubscribeFromAllEvents();
  29354. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29355. void UnsubscribeFromEvent(Object, StringHash);
  29356. void UnsubscribeFromEvent(StringHash);
  29357. void UnsubscribeFromEvents(Object);
  29358. void UpdatePatchLod(TerrainPatch);
  29359. const Variant& GetGlobalVar(StringHash) const;
  29360. const VariantMap& GetGlobalVars() const;
  29361. const Vector3& GetSpacing() const;
  29362. int WeakRefs() const;
  29363. IntVector2 WorldToHeightMap(const Vector3&) const;
  29364. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  29365. void WriteInitialDeltaUpdate(Serializer&, uint8);
  29366. void WriteLatestDataUpdate(Serializer&, uint8);
  29367. operator const Animatable() const;
  29368. operator const Component() const;
  29369. operator const Object() const;
  29370. operator const RefCounted() const;
  29371. operator const Serializable() const;
  29372. // Properties:
  29373. bool animationEnabled;
  29374. /* readonly */
  29375. Array<Variant> attributeDefaults;
  29376. /* readonly */
  29377. Array<AttributeInfo> attributeInfos;
  29378. Array<Variant> attributes;
  29379. bool castShadows;
  29380. /* readonly */
  29381. String category;
  29382. float drawDistance;
  29383. Terrain eastNeighbor;
  29384. bool enabled;
  29385. /* readonly */
  29386. bool enabledEffective;
  29387. Array<Variant> globalVar;
  29388. /* readonly */
  29389. VariantMap globalVars;
  29390. Image heightMap;
  29391. /* readonly */
  29392. uint id;
  29393. uint lightMask;
  29394. float lodBias;
  29395. Material material;
  29396. uint maxLights;
  29397. uint maxLodLevels;
  29398. /* readonly */
  29399. Node node;
  29400. Terrain northNeighbor;
  29401. /* readonly */
  29402. uint numAttributes;
  29403. /* readonly */
  29404. IntVector2 numPatches;
  29405. /* readonly */
  29406. IntVector2 numVertices;
  29407. ObjectAnimation objectAnimation;
  29408. bool occludee;
  29409. bool occluder;
  29410. uint occlusionLodLevel;
  29411. int patchSize;
  29412. /* readonly */
  29413. Array<TerrainPatch> patches;
  29414. /* readonly */
  29415. int refs;
  29416. /* readonly */
  29417. bool replicated;
  29418. float shadowDistance;
  29419. uint shadowMask;
  29420. bool smoothing;
  29421. Terrain southNeighbor;
  29422. Vector3 spacing;
  29423. bool temporary;
  29424. /* readonly */
  29425. StringHash type;
  29426. /* readonly */
  29427. String typeName;
  29428. uint viewMask;
  29429. /* readonly */
  29430. int weakRefs;
  29431. Terrain westNeighbor;
  29432. uint zoneMask;
  29433. };
  29434. class TerrainPatch
  29435. {
  29436. public:
  29437. TerrainPatch();
  29438. // Methods:
  29439. void AddLight(Light);
  29440. void AddVertexLight(Light);
  29441. void AllocateNetworkState();
  29442. operator Animatable() const;
  29443. void ApplyAttributes();
  29444. const BoundingBox& GetBoundingBox() const;
  29445. const BoundingBox& GetWorldBoundingBox();
  29446. void CleanupConnection(Connection);
  29447. operator Component() const;
  29448. void DrawDebugGeometry(DebugRenderer, bool);
  29449. bool DrawOcclusion(OcclusionBuffer);
  29450. operator Drawable() const;
  29451. bool GetAnimationEnabled() const;
  29452. Variant GetAttribute(const String&) const;
  29453. Variant GetAttribute(uint) const;
  29454. ValueAnimation GetAttributeAnimation(const String&) const;
  29455. float GetAttributeAnimationSpeed(const String&) const;
  29456. float GetAttributeAnimationTime(const String&) const;
  29457. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29458. Variant GetAttributeDefault(const String&) const;
  29459. Variant GetAttributeDefault(uint) const;
  29460. bool GetBlockEvents() const;
  29461. bool GetCastShadows() const;
  29462. Component GetComponent(StringHash) const;
  29463. float GetDistance() const;
  29464. float GetDrawDistance() const;
  29465. uint8 GetDrawableFlags() const;
  29466. TerrainPatch GetEastPatch() const;
  29467. VariantMap& GetEventDataMap() const;
  29468. Object GetEventSender() const;
  29469. Light GetFirstLight() const;
  29470. Geometry GetGeometry() const;
  29471. uint GetID() const;
  29472. bool GetInterceptNetworkUpdate(const String&) const;
  29473. uint GetLightMask() const;
  29474. Array<Light> GetLights() const;
  29475. float GetLodBias() const;
  29476. float GetLodDistance() const;
  29477. Geometry GetLodGeometry(uint, uint);
  29478. uint GetLodLevel() const;
  29479. uint GetMaxLights() const;
  29480. Geometry GetMaxLodGeometry() const;
  29481. float GetMaxZ() const;
  29482. float GetMinZ() const;
  29483. Node GetNode() const;
  29484. TerrainPatch GetNorthPatch() const;
  29485. uint GetNumAttributes() const;
  29486. uint GetNumNetworkAttributes() const;
  29487. uint GetNumOccluderTriangles();
  29488. ObjectAnimation GetObjectAnimation() const;
  29489. ResourceRef GetObjectAnimationAttr() const;
  29490. Geometry GetOcclusionGeometry() const;
  29491. Terrain GetOwner() const;
  29492. Scene GetScene() const;
  29493. float GetShadowDistance() const;
  29494. uint GetShadowMask() const;
  29495. float GetSortValue() const;
  29496. TerrainPatch GetSouthPatch() const;
  29497. Object GetSubsystem(StringHash) const;
  29498. StringHash GetType() const;
  29499. UpdateGeometryType GetUpdateGeometryType();
  29500. VertexBuffer GetVertexBuffer() const;
  29501. Array<Light> GetVertexLights() const;
  29502. uint GetViewMask() const;
  29503. TerrainPatch GetWestPatch() const;
  29504. Zone GetZone() const;
  29505. uint GetZoneMask() const;
  29506. bool HasBasePass(uint) const;
  29507. bool HasEventHandlers() const;
  29508. bool HasSubscribedToEvent(Object, StringHash) const;
  29509. bool HasSubscribedToEvent(StringHash) const;
  29510. const IntVector2& GetCoordinates() const;
  29511. bool IsEnabled() const;
  29512. bool IsEnabledEffective() const;
  29513. bool IsInView() const;
  29514. bool IsInView(Camera) const;
  29515. bool IsInView(const FrameInfo&, bool = false) const;
  29516. bool IsInstanceOf(StringHash) const;
  29517. bool IsOccludee() const;
  29518. bool IsOccluder() const;
  29519. bool IsReplicated() const;
  29520. bool IsTemporary() const;
  29521. bool IsZoneDirty() const;
  29522. void LimitLights();
  29523. void LimitVertexLights(bool);
  29524. bool Load(Deserializer&);
  29525. bool LoadJSON(const JSONValue&);
  29526. bool LoadXML(const XMLElement&);
  29527. void MarkForUpdate();
  29528. void MarkInView(const FrameInfo&);
  29529. void MarkInView(uint);
  29530. void MarkNetworkUpdate();
  29531. operator Object() const;
  29532. void OnEvent(Object, StringHash, VariantMap&);
  29533. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29534. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29535. void OnSetEnabled();
  29536. void PrepareNetworkUpdate();
  29537. bool ReadDeltaUpdate(Deserializer&);
  29538. bool ReadLatestDataUpdate(Deserializer&);
  29539. operator RefCounted() const;
  29540. int Refs() const;
  29541. void Remove();
  29542. void RemoveAttributeAnimation(const String&);
  29543. void RemoveInstanceDefault();
  29544. void RemoveObjectAnimation();
  29545. void ResetLod();
  29546. void ResetToDefault();
  29547. bool Save(Serializer&) const;
  29548. bool SaveDefaultAttributes() const;
  29549. bool SaveJSON(JSONValue&) const;
  29550. bool SaveXML(XMLElement&) const;
  29551. void SendEvent(StringHash);
  29552. void SendEvent(StringHash, VariantMap&);
  29553. operator Serializable() const;
  29554. void SetAnimationEnabled(bool);
  29555. void SetAnimationTime(float);
  29556. bool SetAttribute(const String&, const Variant&);
  29557. bool SetAttribute(uint, const Variant&);
  29558. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  29559. void SetAttributeAnimationSpeed(const String&, float);
  29560. void SetAttributeAnimationTime(const String&, float);
  29561. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  29562. void SetBasePass(uint);
  29563. void SetBlockEvents(bool);
  29564. void SetBoundingBox(const BoundingBox&);
  29565. void SetCastShadows(bool);
  29566. void SetCoordinates(const IntVector2&);
  29567. void SetDrawDistance(float);
  29568. void SetEnabled(bool);
  29569. void SetGlobalVar(StringHash, const Variant&);
  29570. void SetInstanceDefault(bool);
  29571. void SetInterceptNetworkUpdate(const String&, bool);
  29572. void SetLightMask(uint);
  29573. void SetLodBias(float);
  29574. void SetMaterial(Material);
  29575. void SetMaxLights(uint);
  29576. void SetMinMaxZ(float, float);
  29577. void SetNeighbors(TerrainPatch, TerrainPatch, TerrainPatch, TerrainPatch);
  29578. void SetObjectAnimation(ObjectAnimation);
  29579. void SetObjectAnimationAttr(const ResourceRef&);
  29580. void SetOccludee(bool);
  29581. void SetOccluder(bool);
  29582. void SetOwner(Terrain);
  29583. void SetShadowDistance(float);
  29584. void SetShadowMask(uint);
  29585. void SetSortValue(float);
  29586. void SetTemporary(bool);
  29587. void SetViewMask(uint);
  29588. void SetZone(Zone, bool = false);
  29589. void SetZoneMask(uint);
  29590. const String& GetCategory() const;
  29591. const String& GetTypeName() const;
  29592. void UnsubscribeFromAllEvents();
  29593. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29594. void UnsubscribeFromEvent(Object, StringHash);
  29595. void UnsubscribeFromEvent(StringHash);
  29596. void UnsubscribeFromEvents(Object);
  29597. void Update(const FrameInfo&);
  29598. void UpdateBatches(const FrameInfo&);
  29599. void UpdateGeometry(const FrameInfo&);
  29600. const Variant& GetGlobalVar(StringHash) const;
  29601. const VariantMap& GetGlobalVars() const;
  29602. int WeakRefs() const;
  29603. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  29604. void WriteInitialDeltaUpdate(Serializer&, uint8);
  29605. void WriteLatestDataUpdate(Serializer&, uint8);
  29606. operator const Animatable() const;
  29607. operator const Component() const;
  29608. operator const Drawable() const;
  29609. operator const Object() const;
  29610. operator const RefCounted() const;
  29611. operator const Serializable() const;
  29612. // Properties:
  29613. bool animationEnabled;
  29614. /* readonly */
  29615. Array<Variant> attributeDefaults;
  29616. /* readonly */
  29617. Array<AttributeInfo> attributeInfos;
  29618. Array<Variant> attributes;
  29619. /* readonly */
  29620. BoundingBox boundingBox;
  29621. bool castShadows;
  29622. /* readonly */
  29623. String category;
  29624. float drawDistance;
  29625. bool enabled;
  29626. /* readonly */
  29627. bool enabledEffective;
  29628. Array<Variant> globalVar;
  29629. /* readonly */
  29630. VariantMap globalVars;
  29631. /* readonly */
  29632. uint id;
  29633. /* readonly */
  29634. bool inView;
  29635. uint lightMask;
  29636. float lodBias;
  29637. uint maxLights;
  29638. /* readonly */
  29639. Node node;
  29640. /* readonly */
  29641. uint numAttributes;
  29642. ObjectAnimation objectAnimation;
  29643. bool occludee;
  29644. bool occluder;
  29645. /* readonly */
  29646. int refs;
  29647. /* readonly */
  29648. bool replicated;
  29649. float shadowDistance;
  29650. uint shadowMask;
  29651. bool temporary;
  29652. /* readonly */
  29653. StringHash type;
  29654. /* readonly */
  29655. String typeName;
  29656. uint viewMask;
  29657. /* readonly */
  29658. int weakRefs;
  29659. /* readonly */
  29660. BoundingBox worldBoundingBox;
  29661. /* readonly */
  29662. Zone zone;
  29663. uint zoneMask;
  29664. };
  29665. class Text
  29666. {
  29667. public:
  29668. Text();
  29669. // Methods:
  29670. void AddChild(UIElement);
  29671. void AddTag(const String&);
  29672. void AddTags(Array<String>);
  29673. void AddTags(const String&, int8 = ';');
  29674. void AdjustScissor(IntRect&);
  29675. void AllocateNetworkState();
  29676. operator Animatable() const;
  29677. void ApplyAttributes();
  29678. void BringToFront();
  29679. void ClearSelection();
  29680. const Color& GetColor(Corner) const;
  29681. const Color& GetColorAttr() const;
  29682. const Color& GetDerivedColor() const;
  29683. const Color& GetEffectColor() const;
  29684. const Color& GetHoverColor() const;
  29685. const Color& GetSelectionColor() const;
  29686. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  29687. void DisableLayoutUpdate();
  29688. IntVector2 ElementToScreen(const IntVector2&);
  29689. void EnableLayoutUpdate();
  29690. bool FilterAttributes(XMLElement&) const;
  29691. uint FindChild(UIElement) const;
  29692. bool GetAnimationEnabled() const;
  29693. Variant GetAttribute(const String&) const;
  29694. Variant GetAttribute(uint) const;
  29695. ValueAnimation GetAttributeAnimation(const String&) const;
  29696. float GetAttributeAnimationSpeed(const String&) const;
  29697. float GetAttributeAnimationTime(const String&) const;
  29698. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29699. Variant GetAttributeDefault(const String&) const;
  29700. Variant GetAttributeDefault(uint) const;
  29701. bool GetAutoLocalizable() const;
  29702. bool GetBlockEvents() const;
  29703. bool GetBringToBack() const;
  29704. bool GetBringToFront() const;
  29705. Vector2 GetCharPosition(uint);
  29706. Vector2 GetCharSize(uint);
  29707. UIElement GetChild(const String&, bool = false) const;
  29708. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  29709. UIElement GetChild(uint) const;
  29710. Array<UIElement> GetChildren() const;
  29711. Array<UIElement> GetChildren(bool) const;
  29712. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  29713. bool GetClipChildren() const;
  29714. IntRect GetCombinedScreenRect();
  29715. XMLFile GetDefaultStyle(bool = true) const;
  29716. float GetDerivedOpacity() const;
  29717. uint GetDragButtonCombo() const;
  29718. uint GetDragButtonCount() const;
  29719. uint GetDragDropMode() const;
  29720. float GetEffectDepthBias() const;
  29721. bool GetEffectRoundStroke() const;
  29722. int GetEffectStrokeThickness() const;
  29723. IntVector2 GetEffectiveMinSize() const;
  29724. UIElement GetElementEventSender() const;
  29725. bool GetEnableAnchor() const;
  29726. VariantMap& GetEventDataMap() const;
  29727. Object GetEventSender() const;
  29728. FocusMode GetFocusMode() const;
  29729. Font GetFont() const;
  29730. ResourceRef GetFontAttr() const;
  29731. float GetFontSize() const;
  29732. int GetHeight() const;
  29733. HorizontalAlignment GetHorizontalAlignment() const;
  29734. int GetIndent() const;
  29735. int GetIndentSpacing() const;
  29736. int GetIndentWidth() const;
  29737. bool GetInterceptNetworkUpdate(const String&) const;
  29738. int GetLayoutElementMaxSize() const;
  29739. LayoutMode GetLayoutMode() const;
  29740. int GetLayoutSpacing() const;
  29741. int GetMaxHeight() const;
  29742. int GetMaxWidth() const;
  29743. int GetMinHeight() const;
  29744. int GetMinWidth() const;
  29745. uint GetNumAttributes() const;
  29746. uint GetNumChars() const;
  29747. uint GetNumChildren(bool = false) const;
  29748. uint GetNumNetworkAttributes() const;
  29749. uint GetNumRows() const;
  29750. ObjectAnimation GetObjectAnimation() const;
  29751. ResourceRef GetObjectAnimationAttr() const;
  29752. float GetOpacity() const;
  29753. UIElement GetParent() const;
  29754. int GetPriority() const;
  29755. UIElement GetRoot() const;
  29756. float GetRowHeight() const;
  29757. float GetRowSpacing() const;
  29758. float GetRowWidth(uint) const;
  29759. uint GetSelectionLength() const;
  29760. uint GetSelectionStart() const;
  29761. bool GetSortChildren() const;
  29762. Object GetSubsystem(StringHash) const;
  29763. Array<String> GetTags() const;
  29764. HorizontalAlignment GetTextAlignment() const;
  29765. String GetTextAttr() const;
  29766. TextEffect GetTextEffect() const;
  29767. TraversalMode GetTraversalMode() const;
  29768. StringHash GetType() const;
  29769. bool GetUseDerivedOpacity() const;
  29770. VerticalAlignment GetVerticalAlignment() const;
  29771. int GetWidth() const;
  29772. bool GetWordwrap() const;
  29773. bool HasColorGradient() const;
  29774. bool HasEventHandlers() const;
  29775. bool HasFocus() const;
  29776. bool HasSubscribedToEvent(Object, StringHash) const;
  29777. bool HasSubscribedToEvent(StringHash) const;
  29778. bool HasTag(const String&) const;
  29779. void InsertChild(uint, UIElement);
  29780. const IntRect& GetClipBorder() const;
  29781. const IntRect& GetLayoutBorder() const;
  29782. const IntVector2& GetChildOffset() const;
  29783. const IntVector2& GetEffectShadowOffset() const;
  29784. const IntVector2& GetMaxOffset() const;
  29785. const IntVector2& GetMaxSize() const;
  29786. const IntVector2& GetMinOffset() const;
  29787. const IntVector2& GetMinSize() const;
  29788. const IntVector2& GetPosition() const;
  29789. const IntVector2& GetScreenPosition() const;
  29790. const IntVector2& GetSize() const;
  29791. bool IsChildOf(UIElement) const;
  29792. bool IsEditable() const;
  29793. bool IsElementEventSender() const;
  29794. bool IsEnabled() const;
  29795. bool IsEnabledSelf() const;
  29796. bool IsFixedHeight() const;
  29797. bool IsFixedSize() const;
  29798. bool IsFixedWidth() const;
  29799. bool IsHovering() const;
  29800. bool IsInside(IntVector2, bool);
  29801. bool IsInsideCombined(IntVector2, bool);
  29802. bool IsInstanceOf(StringHash) const;
  29803. bool IsInternal() const;
  29804. bool IsSelected() const;
  29805. bool IsTemporary() const;
  29806. bool IsVisible() const;
  29807. bool IsVisibleEffective() const;
  29808. bool IsWheelHandler() const;
  29809. bool IsWithinScissor(const IntRect&);
  29810. bool Load(Deserializer&);
  29811. UIElement LoadChildXML(XMLFile, XMLFile);
  29812. UIElement LoadChildXML(const XMLElement&, XMLFile);
  29813. bool LoadJSON(const JSONValue&);
  29814. bool LoadXML(Deserializer&);
  29815. bool LoadXML(File);
  29816. bool LoadXML(VectorBuffer&);
  29817. bool LoadXML(XMLFile, XMLFile);
  29818. bool LoadXML(const XMLElement&);
  29819. bool LoadXML(const XMLElement&, XMLFile);
  29820. void MarkNetworkUpdate();
  29821. operator Object() const;
  29822. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  29823. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  29824. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  29825. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29826. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29827. bool OnDragDropFinish(UIElement);
  29828. bool OnDragDropTest(UIElement);
  29829. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29830. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29831. void OnEvent(Object, StringHash, VariantMap&);
  29832. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29833. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29834. void OnIndentSet();
  29835. void OnKey(uint, uint, uint);
  29836. void OnPositionSet(const IntVector2&);
  29837. void OnResize(const IntVector2&, const IntVector2&);
  29838. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29839. void OnSetEditable();
  29840. void OnTextInput(const String&);
  29841. void OnWheel(int, uint, uint);
  29842. bool ReadDeltaUpdate(Deserializer&);
  29843. bool ReadLatestDataUpdate(Deserializer&);
  29844. operator RefCounted() const;
  29845. int Refs() const;
  29846. void Remove();
  29847. void RemoveAllChildren();
  29848. void RemoveAllTags();
  29849. void RemoveAttributeAnimation(const String&);
  29850. void RemoveChild(UIElement, uint = 0);
  29851. void RemoveChild(uint);
  29852. void RemoveChildAtIndex(uint);
  29853. void RemoveInstanceDefault();
  29854. void RemoveObjectAnimation();
  29855. bool RemoveTag(const String&);
  29856. void ResetDeepEnabled();
  29857. void ResetToDefault();
  29858. bool Save(Serializer&) const;
  29859. bool SaveDefaultAttributes() const;
  29860. bool SaveJSON(JSONValue&) const;
  29861. bool SaveXML(File, const String& indentation = "\t");
  29862. bool SaveXML(Serializer&, const String& = "\t") const;
  29863. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  29864. bool SaveXML(XMLElement&) const;
  29865. IntVector2 ScreenToElement(const IntVector2&);
  29866. void SendEvent(StringHash);
  29867. void SendEvent(StringHash, VariantMap&);
  29868. operator Serializable() const;
  29869. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  29870. void SetAnimationEnabled(bool);
  29871. void SetAnimationTime(float);
  29872. bool SetAttribute(const String&, const Variant&);
  29873. bool SetAttribute(uint, const Variant&);
  29874. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  29875. void SetAttributeAnimationSpeed(const String&, float);
  29876. void SetAttributeAnimationTime(const String&, float);
  29877. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  29878. void SetAutoLocalizable(bool);
  29879. void SetBlockEvents(bool);
  29880. void SetBringToBack(bool);
  29881. void SetBringToFront(bool);
  29882. void SetChildOffset(const IntVector2&);
  29883. void SetClipBorder(const IntRect&);
  29884. void SetClipChildren(bool);
  29885. void SetColor(Corner, const Color&);
  29886. void SetColor(const Color&);
  29887. void SetDeepEnabled(bool);
  29888. void SetDefaultStyle(XMLFile);
  29889. void SetDragDropMode(uint);
  29890. void SetEditable(bool);
  29891. void SetEffectColor(const Color&);
  29892. void SetEffectDepthBias(float);
  29893. void SetEffectRoundStroke(bool);
  29894. void SetEffectShadowOffset(const IntVector2&);
  29895. void SetEffectStrokeThickness(int);
  29896. void SetElementEventSender(bool);
  29897. void SetEnableAnchor(bool);
  29898. void SetEnabled(bool);
  29899. void SetEnabledRecursive(bool);
  29900. void SetFixedHeight(int);
  29901. void SetFixedSize(const IntVector2&);
  29902. void SetFixedSize(int, int);
  29903. void SetFixedWidth(int);
  29904. void SetFocus(bool);
  29905. void SetFocusMode(FocusMode);
  29906. bool SetFont(Font, float = DEFAULT_FONT_SIZE);
  29907. bool SetFont(const String&, float = DEFAULT_FONT_SIZE);
  29908. void SetFontAttr(const ResourceRef&);
  29909. bool SetFontSize(float);
  29910. void SetGlobalVar(StringHash, const Variant&);
  29911. void SetHeight(int);
  29912. void SetHorizontalAlignment(HorizontalAlignment);
  29913. void SetHoverColor(const Color&);
  29914. void SetHovering(bool);
  29915. void SetIndent(int);
  29916. void SetIndentSpacing(int);
  29917. void SetInstanceDefault(bool);
  29918. void SetInterceptNetworkUpdate(const String&, bool);
  29919. void SetInternal(bool);
  29920. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  29921. void SetLayoutBorder(const IntRect&);
  29922. void SetLayoutFlexScale(const Vector2&);
  29923. void SetLayoutMode(LayoutMode);
  29924. void SetLayoutSpacing(int);
  29925. void SetMaxAnchor(const Vector2&);
  29926. void SetMaxAnchor(float, float);
  29927. void SetMaxHeight(int);
  29928. void SetMaxOffset(const IntVector2&);
  29929. void SetMaxSize(const IntVector2&);
  29930. void SetMaxSize(int, int);
  29931. void SetMaxWidth(int);
  29932. void SetMinAnchor(const Vector2&);
  29933. void SetMinAnchor(float, float);
  29934. void SetMinHeight(int);
  29935. void SetMinOffset(const IntVector2&);
  29936. void SetMinSize(const IntVector2&);
  29937. void SetMinSize(int, int);
  29938. void SetMinWidth(int);
  29939. void SetName(const String&);
  29940. void SetObjectAnimation(ObjectAnimation);
  29941. void SetObjectAnimationAttr(const ResourceRef&);
  29942. void SetOpacity(float);
  29943. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  29944. void SetPivot(const Vector2&);
  29945. void SetPivot(float, float);
  29946. void SetPosition(const IntVector2&);
  29947. void SetPosition(int, int);
  29948. void SetPriority(int);
  29949. void SetRenderTexture(Texture2D);
  29950. void SetRowSpacing(float);
  29951. void SetSelected(bool);
  29952. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  29953. void SetSelectionColor(const Color&);
  29954. void SetSize(const IntVector2&);
  29955. void SetSize(int, int);
  29956. void SetSortChildren(bool);
  29957. bool SetStyle(const String&, XMLFile = null);
  29958. bool SetStyle(const XMLElement&);
  29959. bool SetStyleAuto(XMLFile = null);
  29960. void SetTags(Array<String>);
  29961. void SetTemporary(bool);
  29962. void SetText(const String&);
  29963. void SetTextAlignment(HorizontalAlignment);
  29964. void SetTextAttr(const String&);
  29965. void SetTextEffect(TextEffect);
  29966. void SetTraversalMode(TraversalMode);
  29967. void SetUseDerivedOpacity(bool);
  29968. void SetVar(StringHash, const Variant&);
  29969. void SetVerticalAlignment(VerticalAlignment);
  29970. void SetVisible(bool);
  29971. void SetWidth(int);
  29972. void SetWordwrap(bool);
  29973. void SortChildren();
  29974. const String& GetAppliedStyle() const;
  29975. const String& GetCategory() const;
  29976. const String& GetName() const;
  29977. const String& GetText() const;
  29978. const String& GetTypeName() const;
  29979. operator UIElement() const;
  29980. operator UISelectable() const;
  29981. void UnsubscribeFromAllEvents();
  29982. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29983. void UnsubscribeFromEvent(Object, StringHash);
  29984. void UnsubscribeFromEvent(StringHash);
  29985. void UnsubscribeFromEvents(Object);
  29986. void Update(float);
  29987. void UpdateLayout();
  29988. const Variant& GetGlobalVar(StringHash) const;
  29989. const Variant& GetVar(const StringHash&) const;
  29990. const VariantMap& GetGlobalVars() const;
  29991. const VariantMap& GetVars() const;
  29992. const Vector2& GetLayoutFlexScale() const;
  29993. const Vector2& GetMaxAnchor() const;
  29994. const Vector2& GetMinAnchor() const;
  29995. const Vector2& GetPivot() const;
  29996. int WeakRefs() const;
  29997. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  29998. void WriteInitialDeltaUpdate(Serializer&, uint8);
  29999. void WriteLatestDataUpdate(Serializer&, uint8);
  30000. operator const Animatable() const;
  30001. operator const Object() const;
  30002. operator const RefCounted() const;
  30003. operator const Serializable() const;
  30004. operator const UIElement() const;
  30005. operator const UISelectable() const;
  30006. // Properties:
  30007. bool animationEnabled;
  30008. /* readonly */
  30009. Array<Variant> attributeDefaults;
  30010. /* readonly */
  30011. Array<AttributeInfo> attributeInfos;
  30012. Array<Variant> attributes;
  30013. bool autoLocalizable;
  30014. bool bringToBack;
  30015. bool bringToFront;
  30016. /* readonly */
  30017. String category;
  30018. /* readonly */
  30019. Array<Vector2> charPositions;
  30020. /* readonly */
  30021. Array<Vector2> charSizes;
  30022. /* readonly */
  30023. IntVector2 childOffset;
  30024. /* readonly */
  30025. Array<UIElement> children;
  30026. IntRect clipBorder;
  30027. bool clipChildren;
  30028. /* writeonly */
  30029. Color color;
  30030. /* readonly */
  30031. bool colorGradient;
  30032. Array<Color> colors;
  30033. /* readonly */
  30034. IntRect combinedScreenRect;
  30035. XMLFile defaultStyle;
  30036. /* readonly */
  30037. float derivedOpacity;
  30038. /* readonly */
  30039. uint dragButtonCombo;
  30040. /* readonly */
  30041. uint dragButtonCount;
  30042. uint dragDropMode;
  30043. bool editable;
  30044. Color effectColor;
  30045. bool effectRoundStroke;
  30046. IntVector2 effectShadowOffset;
  30047. int effectStrokeThickness;
  30048. bool elementEventSender;
  30049. bool enableAnchor;
  30050. bool enabled;
  30051. /* readonly */
  30052. bool enabledSelf;
  30053. /* readonly */
  30054. bool fixedHeight;
  30055. /* readonly */
  30056. bool fixedSize;
  30057. /* readonly */
  30058. bool fixedWidth;
  30059. bool focus;
  30060. FocusMode focusMode;
  30061. /* readonly */
  30062. Font font;
  30063. float fontSize;
  30064. Array<Variant> globalVar;
  30065. /* readonly */
  30066. VariantMap globalVars;
  30067. int height;
  30068. HorizontalAlignment horizontalAlignment;
  30069. Color hoverColor;
  30070. /* readonly */
  30071. bool hovering;
  30072. int indent;
  30073. int indentSpacing;
  30074. /* readonly */
  30075. int indentWidth;
  30076. bool internal;
  30077. IntRect layoutBorder;
  30078. Vector2 layoutFlexScale;
  30079. LayoutMode layoutMode;
  30080. int layoutSpacing;
  30081. Vector2 maxAnchor;
  30082. int maxHeight;
  30083. IntVector2 maxOffset;
  30084. IntVector2 maxSize;
  30085. int maxWidth;
  30086. Vector2 minAnchor;
  30087. int minHeight;
  30088. IntVector2 minOffset;
  30089. IntVector2 minSize;
  30090. int minWidth;
  30091. String name;
  30092. /* readonly */
  30093. uint numAllChildren;
  30094. /* readonly */
  30095. uint numAttributes;
  30096. /* readonly */
  30097. uint numChars;
  30098. /* readonly */
  30099. uint numChildren;
  30100. /* readonly */
  30101. uint numRows;
  30102. ObjectAnimation objectAnimation;
  30103. float opacity;
  30104. UIElement parent;
  30105. Vector2 pivot;
  30106. IntVector2 position;
  30107. int priority;
  30108. /* readonly */
  30109. int refs;
  30110. /* readonly */
  30111. UIElement root;
  30112. /* readonly */
  30113. float rowHeight;
  30114. float rowSpacing;
  30115. /* readonly */
  30116. Array<float> rowWidths;
  30117. /* readonly */
  30118. IntVector2 screenPosition;
  30119. bool selected;
  30120. Color selectionColor;
  30121. /* readonly */
  30122. uint selectionLength;
  30123. /* readonly */
  30124. uint selectionStart;
  30125. IntVector2 size;
  30126. bool sortChildren;
  30127. String style;
  30128. /* readonly */
  30129. Array<String> tags;
  30130. bool temporary;
  30131. String text;
  30132. HorizontalAlignment textAlignment;
  30133. TextEffect textEffect;
  30134. TraversalMode traversalMode;
  30135. /* readonly */
  30136. StringHash type;
  30137. /* readonly */
  30138. String typeName;
  30139. bool useDerivedOpacity;
  30140. /* readonly */
  30141. VariantMap vars;
  30142. VerticalAlignment verticalAlignment;
  30143. bool visible;
  30144. /* readonly */
  30145. bool visibleEffective;
  30146. /* readonly */
  30147. int weakRefs;
  30148. int width;
  30149. bool wordwrap;
  30150. };
  30151. class Text3D
  30152. {
  30153. public:
  30154. Text3D();
  30155. // Methods:
  30156. void AddLight(Light);
  30157. void AddVertexLight(Light);
  30158. void AllocateNetworkState();
  30159. operator Animatable() const;
  30160. void ApplyAttributes();
  30161. const BoundingBox& GetBoundingBox() const;
  30162. const BoundingBox& GetWorldBoundingBox();
  30163. void CleanupConnection(Connection);
  30164. const Color& GetColor(Corner) const;
  30165. const Color& GetColorAttr() const;
  30166. const Color& GetEffectColor() const;
  30167. operator Component() const;
  30168. void DrawDebugGeometry(DebugRenderer, bool);
  30169. bool DrawOcclusion(OcclusionBuffer);
  30170. operator Drawable() const;
  30171. bool GetAnimationEnabled() const;
  30172. Variant GetAttribute(const String&) const;
  30173. Variant GetAttribute(uint) const;
  30174. ValueAnimation GetAttributeAnimation(const String&) const;
  30175. float GetAttributeAnimationSpeed(const String&) const;
  30176. float GetAttributeAnimationTime(const String&) const;
  30177. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  30178. Variant GetAttributeDefault(const String&) const;
  30179. Variant GetAttributeDefault(uint) const;
  30180. bool GetBlockEvents() const;
  30181. bool GetCastShadows() const;
  30182. Vector2 GetCharPosition(uint);
  30183. Vector2 GetCharSize(uint);
  30184. Component GetComponent(StringHash) const;
  30185. float GetDistance() const;
  30186. float GetDrawDistance() const;
  30187. uint8 GetDrawableFlags() const;
  30188. float GetEffectDepthBias() const;
  30189. bool GetEffectRoundStroke() const;
  30190. int GetEffectStrokeThickness() const;
  30191. VariantMap& GetEventDataMap() const;
  30192. Object GetEventSender() const;
  30193. FaceCameraMode GetFaceCameraMode() const;
  30194. Light GetFirstLight() const;
  30195. Font GetFont() const;
  30196. ResourceRef GetFontAttr() const;
  30197. float GetFontSize() const;
  30198. int GetHeight() const;
  30199. HorizontalAlignment GetHorizontalAlignment() const;
  30200. uint GetID() const;
  30201. bool GetInterceptNetworkUpdate(const String&) const;
  30202. uint GetLightMask() const;
  30203. Array<Light> GetLights() const;
  30204. float GetLodBias() const;
  30205. float GetLodDistance() const;
  30206. Geometry GetLodGeometry(uint, uint);
  30207. Material GetMaterial() const;
  30208. ResourceRef GetMaterialAttr() const;
  30209. uint GetMaxLights() const;
  30210. float GetMaxZ() const;
  30211. float GetMinZ() const;
  30212. Node GetNode() const;
  30213. uint GetNumAttributes() const;
  30214. uint GetNumChars() const;
  30215. uint GetNumNetworkAttributes() const;
  30216. uint GetNumOccluderTriangles();
  30217. uint GetNumRows() const;
  30218. ObjectAnimation GetObjectAnimation() const;
  30219. ResourceRef GetObjectAnimationAttr() const;
  30220. float GetOpacity() const;
  30221. int GetRowHeight() const;
  30222. float GetRowSpacing() const;
  30223. int GetRowWidth(uint) const;
  30224. Scene GetScene() const;
  30225. float GetShadowDistance() const;
  30226. uint GetShadowMask() const;
  30227. float GetSortValue() const;
  30228. Object GetSubsystem(StringHash) const;
  30229. HorizontalAlignment GetTextAlignment() const;
  30230. String GetTextAttr() const;
  30231. TextEffect GetTextEffect() const;
  30232. StringHash GetType() const;
  30233. UpdateGeometryType GetUpdateGeometryType();
  30234. Array<Light> GetVertexLights() const;
  30235. VerticalAlignment GetVerticalAlignment() const;
  30236. uint GetViewMask() const;
  30237. int GetWidth() const;
  30238. bool GetWordwrap() const;
  30239. Zone GetZone() const;
  30240. uint GetZoneMask() const;
  30241. bool HasBasePass(uint) const;
  30242. bool HasEventHandlers() const;
  30243. bool HasSubscribedToEvent(Object, StringHash) const;
  30244. bool HasSubscribedToEvent(StringHash) const;
  30245. const IntVector2& GetEffectShadowOffset() const;
  30246. bool IsEnabled() const;
  30247. bool IsEnabledEffective() const;
  30248. bool IsFixedScreenSize() const;
  30249. bool IsInView() const;
  30250. bool IsInView(Camera) const;
  30251. bool IsInView(const FrameInfo&, bool = false) const;
  30252. bool IsInstanceOf(StringHash) const;
  30253. bool IsOccludee() const;
  30254. bool IsOccluder() const;
  30255. bool IsReplicated() const;
  30256. bool IsTemporary() const;
  30257. bool IsZoneDirty() const;
  30258. void LimitLights();
  30259. void LimitVertexLights(bool);
  30260. bool Load(Deserializer&);
  30261. bool LoadJSON(const JSONValue&);
  30262. bool LoadXML(const XMLElement&);
  30263. void MarkForUpdate();
  30264. void MarkInView(const FrameInfo&);
  30265. void MarkInView(uint);
  30266. void MarkNetworkUpdate();
  30267. operator Object() const;
  30268. void OnEvent(Object, StringHash, VariantMap&);
  30269. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  30270. void OnSetAttribute(const AttributeInfo&, const Variant&);
  30271. void OnSetEnabled();
  30272. void PrepareNetworkUpdate();
  30273. bool ReadDeltaUpdate(Deserializer&);
  30274. bool ReadLatestDataUpdate(Deserializer&);
  30275. operator RefCounted() const;
  30276. int Refs() const;
  30277. void Remove();
  30278. void RemoveAttributeAnimation(const String&);
  30279. void RemoveInstanceDefault();
  30280. void RemoveObjectAnimation();
  30281. void ResetToDefault();
  30282. bool Save(Serializer&) const;
  30283. bool SaveDefaultAttributes() const;
  30284. bool SaveJSON(JSONValue&) const;
  30285. bool SaveXML(XMLElement&) const;
  30286. void SendEvent(StringHash);
  30287. void SendEvent(StringHash, VariantMap&);
  30288. operator Serializable() const;
  30289. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  30290. void SetAnimationEnabled(bool);
  30291. void SetAnimationTime(float);
  30292. bool SetAttribute(const String&, const Variant&);
  30293. bool SetAttribute(uint, const Variant&);
  30294. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  30295. void SetAttributeAnimationSpeed(const String&, float);
  30296. void SetAttributeAnimationTime(const String&, float);
  30297. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  30298. void SetBasePass(uint);
  30299. void SetBlockEvents(bool);
  30300. void SetCastShadows(bool);
  30301. void SetColor(Corner, const Color&);
  30302. void SetColor(const Color&);
  30303. void SetDrawDistance(float);
  30304. void SetEffectColor(const Color&);
  30305. void SetEffectDepthBias(float);
  30306. void SetEffectRoundStroke(bool);
  30307. void SetEffectShadowOffset(const IntVector2&);
  30308. void SetEffectStrokeThickness(int);
  30309. void SetEnabled(bool);
  30310. void SetFaceCameraMode(FaceCameraMode);
  30311. void SetFixedScreenSize(bool);
  30312. bool SetFont(Font, float = DEFAULT_FONT_SIZE);
  30313. bool SetFont(const String&, float = DEFAULT_FONT_SIZE);
  30314. void SetFontAttr(const ResourceRef&);
  30315. bool SetFontSize(float);
  30316. void SetGlobalVar(StringHash, const Variant&);
  30317. void SetHorizontalAlignment(HorizontalAlignment);
  30318. void SetInstanceDefault(bool);
  30319. void SetInterceptNetworkUpdate(const String&, bool);
  30320. void SetLightMask(uint);
  30321. void SetLodBias(float);
  30322. void SetMaterial(Material);
  30323. void SetMaterialAttr(const ResourceRef&);
  30324. void SetMaxLights(uint);
  30325. void SetMinMaxZ(float, float);
  30326. void SetObjectAnimation(ObjectAnimation);
  30327. void SetObjectAnimationAttr(const ResourceRef&);
  30328. void SetOccludee(bool);
  30329. void SetOccluder(bool);
  30330. void SetOpacity(float);
  30331. void SetRowSpacing(float);
  30332. void SetShadowDistance(float);
  30333. void SetShadowMask(uint);
  30334. void SetSortValue(float);
  30335. void SetTemporary(bool);
  30336. void SetText(const String&);
  30337. void SetTextAlignment(HorizontalAlignment);
  30338. void SetTextAttr(const String&);
  30339. void SetTextEffect(TextEffect);
  30340. void SetVerticalAlignment(VerticalAlignment);
  30341. void SetViewMask(uint);
  30342. void SetWidth(int);
  30343. void SetWordwrap(bool);
  30344. void SetZone(Zone, bool = false);
  30345. void SetZoneMask(uint);
  30346. const String& GetCategory() const;
  30347. const String& GetText() const;
  30348. const String& GetTypeName() const;
  30349. void UnsubscribeFromAllEvents();
  30350. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30351. void UnsubscribeFromEvent(Object, StringHash);
  30352. void UnsubscribeFromEvent(StringHash);
  30353. void UnsubscribeFromEvents(Object);
  30354. void Update(const FrameInfo&);
  30355. void UpdateBatches(const FrameInfo&);
  30356. void UpdateGeometry(const FrameInfo&);
  30357. const Variant& GetGlobalVar(StringHash) const;
  30358. const VariantMap& GetGlobalVars() const;
  30359. int WeakRefs() const;
  30360. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  30361. void WriteInitialDeltaUpdate(Serializer&, uint8);
  30362. void WriteLatestDataUpdate(Serializer&, uint8);
  30363. operator const Animatable() const;
  30364. operator const Component() const;
  30365. operator const Drawable() const;
  30366. operator const Object() const;
  30367. operator const RefCounted() const;
  30368. operator const Serializable() const;
  30369. // Properties:
  30370. bool animationEnabled;
  30371. /* readonly */
  30372. Array<Variant> attributeDefaults;
  30373. /* readonly */
  30374. Array<AttributeInfo> attributeInfos;
  30375. Array<Variant> attributes;
  30376. /* readonly */
  30377. BoundingBox boundingBox;
  30378. bool castShadows;
  30379. /* readonly */
  30380. String category;
  30381. /* readonly */
  30382. Array<Vector2> charPositions;
  30383. /* readonly */
  30384. Array<Vector2> charSizes;
  30385. /* writeonly */
  30386. Color color;
  30387. Array<Color> colors;
  30388. float drawDistance;
  30389. Color effectColor;
  30390. float effectDepthBias;
  30391. bool effectRoundStroke;
  30392. IntVector2 effectShadowOffset;
  30393. int effectStrokeThickness;
  30394. bool enabled;
  30395. /* readonly */
  30396. bool enabledEffective;
  30397. FaceCameraMode faceCameraMode;
  30398. bool fixedScreenSize;
  30399. /* readonly */
  30400. Font font;
  30401. float fontSize;
  30402. Array<Variant> globalVar;
  30403. /* readonly */
  30404. VariantMap globalVars;
  30405. /* readonly */
  30406. int height;
  30407. HorizontalAlignment horizontalAlignment;
  30408. /* readonly */
  30409. uint id;
  30410. /* readonly */
  30411. bool inView;
  30412. uint lightMask;
  30413. float lodBias;
  30414. Material material;
  30415. uint maxLights;
  30416. /* readonly */
  30417. Node node;
  30418. /* readonly */
  30419. uint numAttributes;
  30420. /* readonly */
  30421. uint numChars;
  30422. /* readonly */
  30423. uint numRows;
  30424. ObjectAnimation objectAnimation;
  30425. bool occludee;
  30426. bool occluder;
  30427. float opacity;
  30428. /* readonly */
  30429. int refs;
  30430. /* readonly */
  30431. bool replicated;
  30432. /* readonly */
  30433. int rowHeight;
  30434. float rowSpacing;
  30435. /* readonly */
  30436. Array<int> rowWidths;
  30437. float shadowDistance;
  30438. uint shadowMask;
  30439. bool temporary;
  30440. String text;
  30441. HorizontalAlignment textAlignment;
  30442. TextEffect textEffect;
  30443. /* readonly */
  30444. StringHash type;
  30445. /* readonly */
  30446. String typeName;
  30447. VerticalAlignment verticalAlignment;
  30448. uint viewMask;
  30449. /* readonly */
  30450. int weakRefs;
  30451. int width;
  30452. bool wordwrap;
  30453. /* readonly */
  30454. BoundingBox worldBoundingBox;
  30455. /* readonly */
  30456. Zone zone;
  30457. uint zoneMask;
  30458. };
  30459. class Texture
  30460. {
  30461. public:
  30462. Texture();
  30463. // Methods:
  30464. void AddMetadata(const String&, const Variant&);
  30465. bool BeginLoad(Deserializer&);
  30466. void ClearDataLost();
  30467. const Color& GetBorderColor() const;
  30468. bool EndLoad();
  30469. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30470. uint GetAnisotropy() const;
  30471. AsyncLoadState GetAsyncLoadState() const;
  30472. bool GetAutoResolve() const;
  30473. Texture GetBackupTexture() const;
  30474. bool GetBlockEvents() const;
  30475. uint GetComponents() const;
  30476. uint GetDataSize(int, int) const;
  30477. uint GetDataSize(int, int, int) const;
  30478. int GetDepth() const;
  30479. VariantMap& GetEventDataMap() const;
  30480. Object GetEventSender() const;
  30481. TextureFilterMode GetFilterMode() const;
  30482. uint GetFormat() const;
  30483. uint GetGPUObjectName() const;
  30484. Graphics GetGraphics() const;
  30485. int GetHeight() const;
  30486. int GetLevelDepth(uint) const;
  30487. int GetLevelHeight(uint) const;
  30488. int GetLevelWidth(uint) const;
  30489. uint GetLevels() const;
  30490. bool GetLevelsDirty() const;
  30491. uint GetMemoryUse() const;
  30492. int GetMipsToSkip(uint) const;
  30493. int GetMultiSample() const;
  30494. StringHash GetNameHash() const;
  30495. bool GetParametersDirty() const;
  30496. uint GetRowDataSize(int) const;
  30497. bool GetSRGB() const;
  30498. bool GetShadowCompare() const;
  30499. Object GetSubsystem(StringHash) const;
  30500. uint GetTarget() const;
  30501. StringHash GetType() const;
  30502. TextureUsage GetUsage() const;
  30503. uint GetUseTimer();
  30504. int GetWidth() const;
  30505. bool HasEventHandlers() const;
  30506. bool HasMetadata() const;
  30507. bool HasPendingData() const;
  30508. bool HasSubscribedToEvent(Object, StringHash) const;
  30509. bool HasSubscribedToEvent(StringHash) const;
  30510. bool IsCompressed() const;
  30511. bool IsDataLost() const;
  30512. bool IsInstanceOf(StringHash) const;
  30513. bool IsResolveDirty() const;
  30514. bool Load(Deserializer&);
  30515. bool Load(File);
  30516. bool Load(VectorBuffer&);
  30517. bool Load(const String&);
  30518. bool LoadFile(const String&);
  30519. operator Object() const;
  30520. void OnDeviceLost();
  30521. void OnDeviceReset();
  30522. void OnEvent(Object, StringHash, VariantMap&);
  30523. operator RefCounted() const;
  30524. int Refs() const;
  30525. void RegenerateLevels();
  30526. void Release();
  30527. void RemoveAllMetadata();
  30528. void RemoveMetadata(const String&);
  30529. void ResetUseTimer();
  30530. operator Resource() const;
  30531. operator ResourceWithMetadata() const;
  30532. bool Save(File) const;
  30533. bool Save(Serializer&) const;
  30534. bool Save(VectorBuffer&) const;
  30535. bool Save(const String&) const;
  30536. bool SaveFile(const String&) const;
  30537. void SendEvent(StringHash);
  30538. void SendEvent(StringHash, VariantMap&);
  30539. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  30540. void SetAnisotropy(uint);
  30541. void SetAsyncLoadState(AsyncLoadState);
  30542. void SetBackupTexture(Texture);
  30543. void SetBlockEvents(bool);
  30544. void SetBorderColor(const Color&);
  30545. void SetFilterMode(TextureFilterMode);
  30546. void SetGlobalVar(StringHash, const Variant&);
  30547. void SetLevelsDirty();
  30548. void SetMemoryUse(uint);
  30549. void SetMipsToSkip(uint, int);
  30550. void SetName(const String&);
  30551. void SetNumLevels(uint);
  30552. void SetParameters(XMLFile);
  30553. void SetParameters(const XMLElement&);
  30554. void SetParametersDirty();
  30555. void SetResolveDirty(bool);
  30556. void SetSRGB(bool);
  30557. void SetShadowCompare(bool);
  30558. const String& GetCategory() const;
  30559. const String& GetName() const;
  30560. const String& GetTypeName() const;
  30561. operator Texture2D() const;
  30562. operator Texture2DArray() const;
  30563. operator Texture3D() const;
  30564. operator TextureCube() const;
  30565. void UnsubscribeFromAllEvents();
  30566. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30567. void UnsubscribeFromEvent(Object, StringHash);
  30568. void UnsubscribeFromEvent(StringHash);
  30569. void UnsubscribeFromEvents(Object);
  30570. void UpdateParameters();
  30571. const Variant& GetGlobalVar(StringHash) const;
  30572. const Variant& GetMetadata(const String&) const;
  30573. const VariantMap& GetGlobalVars() const;
  30574. int WeakRefs() const;
  30575. operator const Object() const;
  30576. operator const RefCounted() const;
  30577. operator const Resource() const;
  30578. operator const ResourceWithMetadata() const;
  30579. operator const Texture2D() const;
  30580. operator const Texture2DArray() const;
  30581. operator const Texture3D() const;
  30582. operator const TextureCube() const;
  30583. // Properties:
  30584. Array<TextureAddressMode> addressMode;
  30585. uint anisotropy;
  30586. /* readonly */
  30587. bool autoResolve;
  30588. Texture backupTexture;
  30589. Color borderColor;
  30590. /* readonly */
  30591. String category;
  30592. /* readonly */
  30593. uint components;
  30594. /* readonly */
  30595. bool compressed;
  30596. /* readonly */
  30597. bool dataLost;
  30598. TextureFilterMode filterMode;
  30599. /* readonly */
  30600. uint format;
  30601. Array<Variant> globalVar;
  30602. /* readonly */
  30603. VariantMap globalVars;
  30604. /* readonly */
  30605. bool hasMetadata;
  30606. /* readonly */
  30607. int height;
  30608. /* readonly */
  30609. Array<int> levelHeight;
  30610. /* readonly */
  30611. Array<int> levelWidth;
  30612. /* readonly */
  30613. uint levels;
  30614. /* readonly */
  30615. bool levelsDirty;
  30616. /* readonly */
  30617. uint memoryUse;
  30618. Array<Variant> metadata;
  30619. Array<int> mipsToSkip;
  30620. /* readonly */
  30621. int multiSample;
  30622. String name;
  30623. /* readonly */
  30624. int refs;
  30625. /* readonly */
  30626. bool resolveDirty;
  30627. bool sRGB;
  30628. /* readonly */
  30629. StringHash type;
  30630. /* readonly */
  30631. String typeName;
  30632. /* readonly */
  30633. TextureUsage usage;
  30634. /* readonly */
  30635. uint useTimer;
  30636. /* readonly */
  30637. int weakRefs;
  30638. /* readonly */
  30639. int width;
  30640. };
  30641. class Texture2D
  30642. {
  30643. public:
  30644. Texture2D();
  30645. // Methods:
  30646. void AddMetadata(const String&, const Variant&);
  30647. bool BeginLoad(Deserializer&);
  30648. void ClearDataLost();
  30649. const Color& GetBorderColor() const;
  30650. bool EndLoad();
  30651. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30652. uint GetAnisotropy() const;
  30653. AsyncLoadState GetAsyncLoadState() const;
  30654. bool GetAutoResolve() const;
  30655. Texture GetBackupTexture() const;
  30656. bool GetBlockEvents() const;
  30657. uint GetComponents() const;
  30658. uint GetDataSize(int, int) const;
  30659. uint GetDataSize(int, int, int) const;
  30660. int GetDepth() const;
  30661. VariantMap& GetEventDataMap() const;
  30662. Object GetEventSender() const;
  30663. TextureFilterMode GetFilterMode() const;
  30664. uint GetFormat() const;
  30665. uint GetGPUObjectName() const;
  30666. Graphics GetGraphics() const;
  30667. int GetHeight() const;
  30668. Image GetImage() const;
  30669. bool GetImage(Image&) const;
  30670. int GetLevelDepth(uint) const;
  30671. int GetLevelHeight(uint) const;
  30672. int GetLevelWidth(uint) const;
  30673. uint GetLevels() const;
  30674. bool GetLevelsDirty() const;
  30675. uint GetMemoryUse() const;
  30676. int GetMipsToSkip(uint) const;
  30677. int GetMultiSample() const;
  30678. StringHash GetNameHash() const;
  30679. bool GetParametersDirty() const;
  30680. RenderSurface GetRenderSurface() const;
  30681. uint GetRowDataSize(int) const;
  30682. bool GetSRGB() const;
  30683. bool GetShadowCompare() const;
  30684. Object GetSubsystem(StringHash) const;
  30685. uint GetTarget() const;
  30686. StringHash GetType() const;
  30687. TextureUsage GetUsage() const;
  30688. uint GetUseTimer();
  30689. int GetWidth() const;
  30690. bool HasEventHandlers() const;
  30691. bool HasMetadata() const;
  30692. bool HasPendingData() const;
  30693. bool HasSubscribedToEvent(Object, StringHash) const;
  30694. bool HasSubscribedToEvent(StringHash) const;
  30695. bool IsCompressed() const;
  30696. bool IsDataLost() const;
  30697. bool IsInstanceOf(StringHash) const;
  30698. bool IsResolveDirty() const;
  30699. bool Load(Deserializer&);
  30700. bool Load(File);
  30701. bool Load(VectorBuffer&);
  30702. bool Load(const String&);
  30703. bool LoadFile(const String&);
  30704. operator Object() const;
  30705. void OnDeviceLost();
  30706. void OnDeviceReset();
  30707. void OnEvent(Object, StringHash, VariantMap&);
  30708. operator RefCounted() const;
  30709. int Refs() const;
  30710. void RegenerateLevels();
  30711. void Release();
  30712. void RemoveAllMetadata();
  30713. void RemoveMetadata(const String&);
  30714. void ResetUseTimer();
  30715. operator Resource() const;
  30716. operator ResourceWithMetadata() const;
  30717. bool Save(File) const;
  30718. bool Save(Serializer&) const;
  30719. bool Save(VectorBuffer&) const;
  30720. bool Save(const String&) const;
  30721. bool SaveFile(const String&) const;
  30722. void SendEvent(StringHash);
  30723. void SendEvent(StringHash, VariantMap&);
  30724. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  30725. void SetAnisotropy(uint);
  30726. void SetAsyncLoadState(AsyncLoadState);
  30727. void SetBackupTexture(Texture);
  30728. void SetBlockEvents(bool);
  30729. void SetBorderColor(const Color&);
  30730. bool SetData(Image, bool = false);
  30731. void SetFilterMode(TextureFilterMode);
  30732. void SetGlobalVar(StringHash, const Variant&);
  30733. void SetLevelsDirty();
  30734. void SetMemoryUse(uint);
  30735. void SetMipsToSkip(uint, int);
  30736. void SetName(const String&);
  30737. void SetNumLevels(uint);
  30738. void SetParameters(XMLFile);
  30739. void SetParameters(const XMLElement&);
  30740. void SetParametersDirty();
  30741. void SetResolveDirty(bool);
  30742. void SetSRGB(bool);
  30743. void SetShadowCompare(bool);
  30744. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  30745. const String& GetCategory() const;
  30746. const String& GetName() const;
  30747. const String& GetTypeName() const;
  30748. operator Texture() const;
  30749. void UnsubscribeFromAllEvents();
  30750. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30751. void UnsubscribeFromEvent(Object, StringHash);
  30752. void UnsubscribeFromEvent(StringHash);
  30753. void UnsubscribeFromEvents(Object);
  30754. void UpdateParameters();
  30755. const Variant& GetGlobalVar(StringHash) const;
  30756. const Variant& GetMetadata(const String&) const;
  30757. const VariantMap& GetGlobalVars() const;
  30758. int WeakRefs() const;
  30759. operator const Object() const;
  30760. operator const RefCounted() const;
  30761. operator const Resource() const;
  30762. operator const ResourceWithMetadata() const;
  30763. operator const Texture() const;
  30764. // Properties:
  30765. Array<TextureAddressMode> addressMode;
  30766. uint anisotropy;
  30767. /* readonly */
  30768. bool autoResolve;
  30769. Texture backupTexture;
  30770. Color borderColor;
  30771. /* readonly */
  30772. String category;
  30773. /* readonly */
  30774. uint components;
  30775. /* readonly */
  30776. bool compressed;
  30777. /* readonly */
  30778. bool dataLost;
  30779. TextureFilterMode filterMode;
  30780. /* readonly */
  30781. uint format;
  30782. Array<Variant> globalVar;
  30783. /* readonly */
  30784. VariantMap globalVars;
  30785. /* readonly */
  30786. bool hasMetadata;
  30787. /* readonly */
  30788. int height;
  30789. /* readonly */
  30790. Array<int> levelHeight;
  30791. /* readonly */
  30792. Array<int> levelWidth;
  30793. /* readonly */
  30794. uint levels;
  30795. /* readonly */
  30796. bool levelsDirty;
  30797. /* readonly */
  30798. uint memoryUse;
  30799. Array<Variant> metadata;
  30800. Array<int> mipsToSkip;
  30801. /* readonly */
  30802. int multiSample;
  30803. String name;
  30804. /* readonly */
  30805. int refs;
  30806. /* readonly */
  30807. RenderSurface renderSurface;
  30808. /* readonly */
  30809. bool resolveDirty;
  30810. bool sRGB;
  30811. /* readonly */
  30812. StringHash type;
  30813. /* readonly */
  30814. String typeName;
  30815. /* readonly */
  30816. TextureUsage usage;
  30817. /* readonly */
  30818. uint useTimer;
  30819. /* readonly */
  30820. int weakRefs;
  30821. /* readonly */
  30822. int width;
  30823. };
  30824. class Texture2DArray
  30825. {
  30826. public:
  30827. Texture2DArray();
  30828. // Methods:
  30829. void AddMetadata(const String&, const Variant&);
  30830. bool BeginLoad(Deserializer&);
  30831. void ClearDataLost();
  30832. const Color& GetBorderColor() const;
  30833. bool EndLoad();
  30834. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30835. uint GetAnisotropy() const;
  30836. AsyncLoadState GetAsyncLoadState() const;
  30837. bool GetAutoResolve() const;
  30838. Texture GetBackupTexture() const;
  30839. bool GetBlockEvents() const;
  30840. uint GetComponents() const;
  30841. uint GetDataSize(int, int) const;
  30842. uint GetDataSize(int, int, int) const;
  30843. int GetDepth() const;
  30844. VariantMap& GetEventDataMap() const;
  30845. Object GetEventSender() const;
  30846. TextureFilterMode GetFilterMode() const;
  30847. uint GetFormat() const;
  30848. uint GetGPUObjectName() const;
  30849. Graphics GetGraphics() const;
  30850. int GetHeight() const;
  30851. uint GetLayers() const;
  30852. int GetLevelDepth(uint) const;
  30853. int GetLevelHeight(uint) const;
  30854. int GetLevelWidth(uint) const;
  30855. uint GetLevels() const;
  30856. bool GetLevelsDirty() const;
  30857. uint GetMemoryUse() const;
  30858. int GetMipsToSkip(uint) const;
  30859. int GetMultiSample() const;
  30860. StringHash GetNameHash() const;
  30861. bool GetParametersDirty() const;
  30862. RenderSurface GetRenderSurface() const;
  30863. uint GetRowDataSize(int) const;
  30864. bool GetSRGB() const;
  30865. bool GetShadowCompare() const;
  30866. Object GetSubsystem(StringHash) const;
  30867. uint GetTarget() const;
  30868. StringHash GetType() const;
  30869. TextureUsage GetUsage() const;
  30870. uint GetUseTimer();
  30871. int GetWidth() const;
  30872. bool HasEventHandlers() const;
  30873. bool HasMetadata() const;
  30874. bool HasPendingData() const;
  30875. bool HasSubscribedToEvent(Object, StringHash) const;
  30876. bool HasSubscribedToEvent(StringHash) const;
  30877. bool IsCompressed() const;
  30878. bool IsDataLost() const;
  30879. bool IsInstanceOf(StringHash) const;
  30880. bool IsResolveDirty() const;
  30881. bool Load(Deserializer&);
  30882. bool Load(File);
  30883. bool Load(VectorBuffer&);
  30884. bool Load(const String&);
  30885. bool LoadFile(const String&);
  30886. operator Object() const;
  30887. void OnDeviceLost();
  30888. void OnDeviceReset();
  30889. void OnEvent(Object, StringHash, VariantMap&);
  30890. operator RefCounted() const;
  30891. int Refs() const;
  30892. void RegenerateLevels();
  30893. void Release();
  30894. void RemoveAllMetadata();
  30895. void RemoveMetadata(const String&);
  30896. void ResetUseTimer();
  30897. operator Resource() const;
  30898. operator ResourceWithMetadata() const;
  30899. bool Save(File) const;
  30900. bool Save(Serializer&) const;
  30901. bool Save(VectorBuffer&) const;
  30902. bool Save(const String&) const;
  30903. bool SaveFile(const String&) const;
  30904. void SendEvent(StringHash);
  30905. void SendEvent(StringHash, VariantMap&);
  30906. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  30907. void SetAnisotropy(uint);
  30908. void SetAsyncLoadState(AsyncLoadState);
  30909. void SetBackupTexture(Texture);
  30910. void SetBlockEvents(bool);
  30911. void SetBorderColor(const Color&);
  30912. bool SetData(uint, Deserializer&);
  30913. bool SetData(uint, Image, bool = false);
  30914. void SetFilterMode(TextureFilterMode);
  30915. void SetGlobalVar(StringHash, const Variant&);
  30916. void SetLayers(uint);
  30917. void SetLevelsDirty();
  30918. void SetMemoryUse(uint);
  30919. void SetMipsToSkip(uint, int);
  30920. void SetName(const String&);
  30921. void SetNumLevels(uint);
  30922. void SetParameters(XMLFile);
  30923. void SetParameters(const XMLElement&);
  30924. void SetParametersDirty();
  30925. void SetResolveDirty(bool);
  30926. void SetSRGB(bool);
  30927. void SetShadowCompare(bool);
  30928. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  30929. const String& GetCategory() const;
  30930. const String& GetName() const;
  30931. const String& GetTypeName() const;
  30932. operator Texture() const;
  30933. void UnsubscribeFromAllEvents();
  30934. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30935. void UnsubscribeFromEvent(Object, StringHash);
  30936. void UnsubscribeFromEvent(StringHash);
  30937. void UnsubscribeFromEvents(Object);
  30938. void UpdateParameters();
  30939. const Variant& GetGlobalVar(StringHash) const;
  30940. const Variant& GetMetadata(const String&) const;
  30941. const VariantMap& GetGlobalVars() const;
  30942. int WeakRefs() const;
  30943. operator const Object() const;
  30944. operator const RefCounted() const;
  30945. operator const Resource() const;
  30946. operator const ResourceWithMetadata() const;
  30947. operator const Texture() const;
  30948. // Properties:
  30949. Array<TextureAddressMode> addressMode;
  30950. uint anisotropy;
  30951. /* readonly */
  30952. bool autoResolve;
  30953. Texture backupTexture;
  30954. Color borderColor;
  30955. /* readonly */
  30956. String category;
  30957. /* readonly */
  30958. uint components;
  30959. /* readonly */
  30960. bool compressed;
  30961. /* readonly */
  30962. bool dataLost;
  30963. TextureFilterMode filterMode;
  30964. /* readonly */
  30965. uint format;
  30966. Array<Variant> globalVar;
  30967. /* readonly */
  30968. VariantMap globalVars;
  30969. /* readonly */
  30970. bool hasMetadata;
  30971. /* readonly */
  30972. int height;
  30973. uint layers;
  30974. /* readonly */
  30975. Array<int> levelHeight;
  30976. /* readonly */
  30977. Array<int> levelWidth;
  30978. /* readonly */
  30979. uint levels;
  30980. /* readonly */
  30981. bool levelsDirty;
  30982. /* readonly */
  30983. uint memoryUse;
  30984. Array<Variant> metadata;
  30985. Array<int> mipsToSkip;
  30986. /* readonly */
  30987. int multiSample;
  30988. String name;
  30989. /* readonly */
  30990. int refs;
  30991. /* readonly */
  30992. RenderSurface renderSurface;
  30993. /* readonly */
  30994. bool resolveDirty;
  30995. bool sRGB;
  30996. /* readonly */
  30997. StringHash type;
  30998. /* readonly */
  30999. String typeName;
  31000. /* readonly */
  31001. TextureUsage usage;
  31002. /* readonly */
  31003. uint useTimer;
  31004. /* readonly */
  31005. int weakRefs;
  31006. /* readonly */
  31007. int width;
  31008. };
  31009. class Texture3D
  31010. {
  31011. public:
  31012. Texture3D();
  31013. // Methods:
  31014. void AddMetadata(const String&, const Variant&);
  31015. bool BeginLoad(Deserializer&);
  31016. void ClearDataLost();
  31017. const Color& GetBorderColor() const;
  31018. bool EndLoad();
  31019. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  31020. uint GetAnisotropy() const;
  31021. AsyncLoadState GetAsyncLoadState() const;
  31022. bool GetAutoResolve() const;
  31023. Texture GetBackupTexture() const;
  31024. bool GetBlockEvents() const;
  31025. uint GetComponents() const;
  31026. uint GetDataSize(int, int) const;
  31027. uint GetDataSize(int, int, int) const;
  31028. int GetDepth() const;
  31029. VariantMap& GetEventDataMap() const;
  31030. Object GetEventSender() const;
  31031. TextureFilterMode GetFilterMode() const;
  31032. uint GetFormat() const;
  31033. uint GetGPUObjectName() const;
  31034. Graphics GetGraphics() const;
  31035. int GetHeight() const;
  31036. int GetLevelDepth(uint) const;
  31037. int GetLevelHeight(uint) const;
  31038. int GetLevelWidth(uint) const;
  31039. uint GetLevels() const;
  31040. bool GetLevelsDirty() const;
  31041. uint GetMemoryUse() const;
  31042. int GetMipsToSkip(uint) const;
  31043. int GetMultiSample() const;
  31044. StringHash GetNameHash() const;
  31045. bool GetParametersDirty() const;
  31046. uint GetRowDataSize(int) const;
  31047. bool GetSRGB() const;
  31048. bool GetShadowCompare() const;
  31049. Object GetSubsystem(StringHash) const;
  31050. uint GetTarget() const;
  31051. StringHash GetType() const;
  31052. TextureUsage GetUsage() const;
  31053. uint GetUseTimer();
  31054. int GetWidth() const;
  31055. bool HasEventHandlers() const;
  31056. bool HasMetadata() const;
  31057. bool HasPendingData() const;
  31058. bool HasSubscribedToEvent(Object, StringHash) const;
  31059. bool HasSubscribedToEvent(StringHash) const;
  31060. bool IsCompressed() const;
  31061. bool IsDataLost() const;
  31062. bool IsInstanceOf(StringHash) const;
  31063. bool IsResolveDirty() const;
  31064. bool Load(Deserializer&);
  31065. bool Load(File);
  31066. bool Load(VectorBuffer&);
  31067. bool Load(const String&);
  31068. bool LoadFile(const String&);
  31069. operator Object() const;
  31070. void OnDeviceLost();
  31071. void OnDeviceReset();
  31072. void OnEvent(Object, StringHash, VariantMap&);
  31073. operator RefCounted() const;
  31074. int Refs() const;
  31075. void RegenerateLevels();
  31076. void Release();
  31077. void RemoveAllMetadata();
  31078. void RemoveMetadata(const String&);
  31079. void ResetUseTimer();
  31080. operator Resource() const;
  31081. operator ResourceWithMetadata() const;
  31082. bool Save(File) const;
  31083. bool Save(Serializer&) const;
  31084. bool Save(VectorBuffer&) const;
  31085. bool Save(const String&) const;
  31086. bool SaveFile(const String&) const;
  31087. void SendEvent(StringHash);
  31088. void SendEvent(StringHash, VariantMap&);
  31089. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  31090. void SetAnisotropy(uint);
  31091. void SetAsyncLoadState(AsyncLoadState);
  31092. void SetBackupTexture(Texture);
  31093. void SetBlockEvents(bool);
  31094. void SetBorderColor(const Color&);
  31095. bool SetData(Image, bool = false);
  31096. void SetFilterMode(TextureFilterMode);
  31097. void SetGlobalVar(StringHash, const Variant&);
  31098. void SetLevelsDirty();
  31099. void SetMemoryUse(uint);
  31100. void SetMipsToSkip(uint, int);
  31101. void SetName(const String&);
  31102. void SetNumLevels(uint);
  31103. void SetParameters(XMLFile);
  31104. void SetParameters(const XMLElement&);
  31105. void SetParametersDirty();
  31106. void SetResolveDirty(bool);
  31107. void SetSRGB(bool);
  31108. void SetShadowCompare(bool);
  31109. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  31110. const String& GetCategory() const;
  31111. const String& GetName() const;
  31112. const String& GetTypeName() const;
  31113. operator Texture() const;
  31114. void UnsubscribeFromAllEvents();
  31115. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31116. void UnsubscribeFromEvent(Object, StringHash);
  31117. void UnsubscribeFromEvent(StringHash);
  31118. void UnsubscribeFromEvents(Object);
  31119. void UpdateParameters();
  31120. const Variant& GetGlobalVar(StringHash) const;
  31121. const Variant& GetMetadata(const String&) const;
  31122. const VariantMap& GetGlobalVars() const;
  31123. int WeakRefs() const;
  31124. operator const Object() const;
  31125. operator const RefCounted() const;
  31126. operator const Resource() const;
  31127. operator const ResourceWithMetadata() const;
  31128. operator const Texture() const;
  31129. // Properties:
  31130. Array<TextureAddressMode> addressMode;
  31131. uint anisotropy;
  31132. /* readonly */
  31133. bool autoResolve;
  31134. Texture backupTexture;
  31135. Color borderColor;
  31136. /* readonly */
  31137. String category;
  31138. /* readonly */
  31139. uint components;
  31140. /* readonly */
  31141. bool compressed;
  31142. /* readonly */
  31143. bool dataLost;
  31144. TextureFilterMode filterMode;
  31145. /* readonly */
  31146. uint format;
  31147. Array<Variant> globalVar;
  31148. /* readonly */
  31149. VariantMap globalVars;
  31150. /* readonly */
  31151. bool hasMetadata;
  31152. /* readonly */
  31153. int height;
  31154. /* readonly */
  31155. Array<int> levelHeight;
  31156. /* readonly */
  31157. Array<int> levelWidth;
  31158. /* readonly */
  31159. uint levels;
  31160. /* readonly */
  31161. bool levelsDirty;
  31162. /* readonly */
  31163. uint memoryUse;
  31164. Array<Variant> metadata;
  31165. Array<int> mipsToSkip;
  31166. /* readonly */
  31167. int multiSample;
  31168. String name;
  31169. /* readonly */
  31170. int refs;
  31171. /* readonly */
  31172. bool resolveDirty;
  31173. bool sRGB;
  31174. /* readonly */
  31175. StringHash type;
  31176. /* readonly */
  31177. String typeName;
  31178. /* readonly */
  31179. TextureUsage usage;
  31180. /* readonly */
  31181. uint useTimer;
  31182. /* readonly */
  31183. int weakRefs;
  31184. /* readonly */
  31185. int width;
  31186. };
  31187. class TextureCube
  31188. {
  31189. public:
  31190. TextureCube();
  31191. // Methods:
  31192. void AddMetadata(const String&, const Variant&);
  31193. bool BeginLoad(Deserializer&);
  31194. void ClearDataLost();
  31195. const Color& GetBorderColor() const;
  31196. bool EndLoad();
  31197. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  31198. uint GetAnisotropy() const;
  31199. AsyncLoadState GetAsyncLoadState() const;
  31200. bool GetAutoResolve() const;
  31201. Texture GetBackupTexture() const;
  31202. bool GetBlockEvents() const;
  31203. uint GetComponents() const;
  31204. uint GetDataSize(int, int) const;
  31205. uint GetDataSize(int, int, int) const;
  31206. int GetDepth() const;
  31207. VariantMap& GetEventDataMap() const;
  31208. Object GetEventSender() const;
  31209. TextureFilterMode GetFilterMode() const;
  31210. uint GetFormat() const;
  31211. uint GetGPUObjectName() const;
  31212. Graphics GetGraphics() const;
  31213. int GetHeight() const;
  31214. Image GetImage(CubeMapFace) const;
  31215. int GetLevelDepth(uint) const;
  31216. int GetLevelHeight(uint) const;
  31217. int GetLevelWidth(uint) const;
  31218. uint GetLevels() const;
  31219. bool GetLevelsDirty() const;
  31220. uint GetMemoryUse() const;
  31221. int GetMipsToSkip(uint) const;
  31222. int GetMultiSample() const;
  31223. StringHash GetNameHash() const;
  31224. bool GetParametersDirty() const;
  31225. RenderSurface GetRenderSurface(CubeMapFace) const;
  31226. uint GetRowDataSize(int) const;
  31227. bool GetSRGB() const;
  31228. bool GetShadowCompare() const;
  31229. Object GetSubsystem(StringHash) const;
  31230. uint GetTarget() const;
  31231. StringHash GetType() const;
  31232. TextureUsage GetUsage() const;
  31233. uint GetUseTimer();
  31234. int GetWidth() const;
  31235. bool HasEventHandlers() const;
  31236. bool HasMetadata() const;
  31237. bool HasPendingData() const;
  31238. bool HasSubscribedToEvent(Object, StringHash) const;
  31239. bool HasSubscribedToEvent(StringHash) const;
  31240. bool IsCompressed() const;
  31241. bool IsDataLost() const;
  31242. bool IsInstanceOf(StringHash) const;
  31243. bool IsResolveDirty() const;
  31244. bool Load(Deserializer&);
  31245. bool Load(File);
  31246. bool Load(VectorBuffer&);
  31247. bool Load(const String&);
  31248. bool LoadFile(const String&);
  31249. operator Object() const;
  31250. void OnDeviceLost();
  31251. void OnDeviceReset();
  31252. void OnEvent(Object, StringHash, VariantMap&);
  31253. operator RefCounted() const;
  31254. int Refs() const;
  31255. void RegenerateLevels();
  31256. void Release();
  31257. void RemoveAllMetadata();
  31258. void RemoveMetadata(const String&);
  31259. void ResetUseTimer();
  31260. operator Resource() const;
  31261. operator ResourceWithMetadata() const;
  31262. bool Save(File) const;
  31263. bool Save(Serializer&) const;
  31264. bool Save(VectorBuffer&) const;
  31265. bool Save(const String&) const;
  31266. bool SaveFile(const String&) const;
  31267. void SendEvent(StringHash);
  31268. void SendEvent(StringHash, VariantMap&);
  31269. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  31270. void SetAnisotropy(uint);
  31271. void SetAsyncLoadState(AsyncLoadState);
  31272. void SetBackupTexture(Texture);
  31273. void SetBlockEvents(bool);
  31274. void SetBorderColor(const Color&);
  31275. bool SetData(CubeMapFace, Deserializer&);
  31276. bool SetData(CubeMapFace, Image, bool = false);
  31277. void SetFilterMode(TextureFilterMode);
  31278. void SetGlobalVar(StringHash, const Variant&);
  31279. void SetLevelsDirty();
  31280. void SetMemoryUse(uint);
  31281. void SetMipsToSkip(uint, int);
  31282. void SetName(const String&);
  31283. void SetNumLevels(uint);
  31284. void SetParameters(XMLFile);
  31285. void SetParameters(const XMLElement&);
  31286. void SetParametersDirty();
  31287. void SetResolveDirty(bool);
  31288. void SetSRGB(bool);
  31289. void SetShadowCompare(bool);
  31290. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  31291. const String& GetCategory() const;
  31292. const String& GetName() const;
  31293. const String& GetTypeName() const;
  31294. operator Texture() const;
  31295. void UnsubscribeFromAllEvents();
  31296. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31297. void UnsubscribeFromEvent(Object, StringHash);
  31298. void UnsubscribeFromEvent(StringHash);
  31299. void UnsubscribeFromEvents(Object);
  31300. void UpdateParameters();
  31301. const Variant& GetGlobalVar(StringHash) const;
  31302. const Variant& GetMetadata(const String&) const;
  31303. const VariantMap& GetGlobalVars() const;
  31304. int WeakRefs() const;
  31305. operator const Object() const;
  31306. operator const RefCounted() const;
  31307. operator const Resource() const;
  31308. operator const ResourceWithMetadata() const;
  31309. operator const Texture() const;
  31310. // Properties:
  31311. Array<TextureAddressMode> addressMode;
  31312. uint anisotropy;
  31313. /* readonly */
  31314. bool autoResolve;
  31315. Texture backupTexture;
  31316. Color borderColor;
  31317. /* readonly */
  31318. String category;
  31319. /* readonly */
  31320. uint components;
  31321. /* readonly */
  31322. bool compressed;
  31323. /* readonly */
  31324. bool dataLost;
  31325. TextureFilterMode filterMode;
  31326. /* readonly */
  31327. uint format;
  31328. Array<Variant> globalVar;
  31329. /* readonly */
  31330. VariantMap globalVars;
  31331. /* readonly */
  31332. bool hasMetadata;
  31333. /* readonly */
  31334. int height;
  31335. /* readonly */
  31336. Array<int> levelHeight;
  31337. /* readonly */
  31338. Array<int> levelWidth;
  31339. /* readonly */
  31340. uint levels;
  31341. /* readonly */
  31342. bool levelsDirty;
  31343. /* readonly */
  31344. uint memoryUse;
  31345. Array<Variant> metadata;
  31346. Array<int> mipsToSkip;
  31347. /* readonly */
  31348. int multiSample;
  31349. String name;
  31350. /* readonly */
  31351. int refs;
  31352. /* readonly */
  31353. Array<RenderSurface> renderSurfaces;
  31354. /* readonly */
  31355. bool resolveDirty;
  31356. bool sRGB;
  31357. /* readonly */
  31358. StringHash type;
  31359. /* readonly */
  31360. String typeName;
  31361. /* readonly */
  31362. TextureUsage usage;
  31363. /* readonly */
  31364. uint useTimer;
  31365. /* readonly */
  31366. int weakRefs;
  31367. /* readonly */
  31368. int width;
  31369. };
  31370. class TextureFrame
  31371. {
  31372. public:
  31373. // Methods:
  31374. TextureFrame& operator=(const TextureFrame&);
  31375. // Properties:
  31376. float time;
  31377. Rect uv;
  31378. };
  31379. class Tile2D
  31380. {
  31381. public:
  31382. Tile2D();
  31383. // Methods:
  31384. bool GetFlipX() const;
  31385. bool GetFlipY() const;
  31386. uint GetGid() const;
  31387. Sprite2D GetSprite() const;
  31388. bool GetSwapXY() const;
  31389. bool HasProperty(const String&) const;
  31390. operator RefCounted() const;
  31391. int Refs() const;
  31392. const String& GetProperty(const String&) const;
  31393. int WeakRefs() const;
  31394. operator const RefCounted() const;
  31395. // Properties:
  31396. /* readonly */
  31397. bool flipX;
  31398. /* readonly */
  31399. bool flipY;
  31400. /* readonly */
  31401. uint gid;
  31402. /* readonly */
  31403. int refs;
  31404. /* readonly */
  31405. Sprite2D sprite;
  31406. /* readonly */
  31407. bool swapXY;
  31408. /* readonly */
  31409. int weakRefs;
  31410. };
  31411. class TileMap2D
  31412. {
  31413. public:
  31414. TileMap2D();
  31415. // Methods:
  31416. void AllocateNetworkState();
  31417. operator Animatable() const;
  31418. void ApplyAttributes();
  31419. void CleanupConnection(Connection);
  31420. operator Component() const;
  31421. void DrawDebugGeometry();
  31422. void DrawDebugGeometry(DebugRenderer, bool);
  31423. bool GetAnimationEnabled() const;
  31424. Variant GetAttribute(const String&) const;
  31425. Variant GetAttribute(uint) const;
  31426. ValueAnimation GetAttributeAnimation(const String&) const;
  31427. float GetAttributeAnimationSpeed(const String&) const;
  31428. float GetAttributeAnimationTime(const String&) const;
  31429. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  31430. Variant GetAttributeDefault(const String&) const;
  31431. Variant GetAttributeDefault(uint) const;
  31432. bool GetBlockEvents() const;
  31433. Component GetComponent(StringHash) const;
  31434. VariantMap& GetEventDataMap() const;
  31435. Object GetEventSender() const;
  31436. uint GetID() const;
  31437. bool GetInterceptNetworkUpdate(const String&) const;
  31438. TileMapLayer2D GetLayer(uint) const;
  31439. Node GetNode() const;
  31440. uint GetNumAttributes() const;
  31441. uint GetNumLayers() const;
  31442. uint GetNumNetworkAttributes() const;
  31443. ObjectAnimation GetObjectAnimation() const;
  31444. ResourceRef GetObjectAnimationAttr() const;
  31445. Scene GetScene() const;
  31446. Object GetSubsystem(StringHash) const;
  31447. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  31448. TmxFile2D GetTmxFile() const;
  31449. ResourceRef GetTmxFileAttr() const;
  31450. StringHash GetType() const;
  31451. bool HasEventHandlers() const;
  31452. bool HasSubscribedToEvent(Object, StringHash) const;
  31453. bool HasSubscribedToEvent(StringHash) const;
  31454. bool IsEnabled() const;
  31455. bool IsEnabledEffective() const;
  31456. bool IsInstanceOf(StringHash) const;
  31457. bool IsReplicated() const;
  31458. bool IsTemporary() const;
  31459. bool Load(Deserializer&);
  31460. bool LoadJSON(const JSONValue&);
  31461. bool LoadXML(const XMLElement&);
  31462. void MarkNetworkUpdate();
  31463. operator Object() const;
  31464. void OnEvent(Object, StringHash, VariantMap&);
  31465. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  31466. void OnSetAttribute(const AttributeInfo&, const Variant&);
  31467. void OnSetEnabled();
  31468. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  31469. void PrepareNetworkUpdate();
  31470. bool ReadDeltaUpdate(Deserializer&);
  31471. bool ReadLatestDataUpdate(Deserializer&);
  31472. operator RefCounted() const;
  31473. int Refs() const;
  31474. void Remove();
  31475. void RemoveAttributeAnimation(const String&);
  31476. void RemoveInstanceDefault();
  31477. void RemoveObjectAnimation();
  31478. void ResetToDefault();
  31479. bool Save(Serializer&) const;
  31480. bool SaveDefaultAttributes() const;
  31481. bool SaveJSON(JSONValue&) const;
  31482. bool SaveXML(XMLElement&) const;
  31483. void SendEvent(StringHash);
  31484. void SendEvent(StringHash, VariantMap&);
  31485. operator Serializable() const;
  31486. void SetAnimationEnabled(bool);
  31487. void SetAnimationTime(float);
  31488. bool SetAttribute(const String&, const Variant&);
  31489. bool SetAttribute(uint, const Variant&);
  31490. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  31491. void SetAttributeAnimationSpeed(const String&, float);
  31492. void SetAttributeAnimationTime(const String&, float);
  31493. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  31494. void SetBlockEvents(bool);
  31495. void SetEnabled(bool);
  31496. void SetGlobalVar(StringHash, const Variant&);
  31497. void SetInstanceDefault(bool);
  31498. void SetInterceptNetworkUpdate(const String&, bool);
  31499. void SetObjectAnimation(ObjectAnimation);
  31500. void SetObjectAnimationAttr(const ResourceRef&);
  31501. void SetTemporary(bool);
  31502. void SetTmxFile(TmxFile2D);
  31503. void SetTmxFileAttr(const ResourceRef&);
  31504. const String& GetCategory() const;
  31505. const String& GetTypeName() const;
  31506. Vector2 TileIndexToPosition(int, int) const;
  31507. const TileMapInfo2D& GetInfo() const;
  31508. void UnsubscribeFromAllEvents();
  31509. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31510. void UnsubscribeFromEvent(Object, StringHash);
  31511. void UnsubscribeFromEvent(StringHash);
  31512. void UnsubscribeFromEvents(Object);
  31513. const Variant& GetGlobalVar(StringHash) const;
  31514. const VariantMap& GetGlobalVars() const;
  31515. int WeakRefs() const;
  31516. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  31517. void WriteInitialDeltaUpdate(Serializer&, uint8);
  31518. void WriteLatestDataUpdate(Serializer&, uint8);
  31519. operator const Animatable() const;
  31520. operator const Component() const;
  31521. operator const Object() const;
  31522. operator const RefCounted() const;
  31523. operator const Serializable() const;
  31524. // Properties:
  31525. bool animationEnabled;
  31526. /* readonly */
  31527. Array<Variant> attributeDefaults;
  31528. /* readonly */
  31529. Array<AttributeInfo> attributeInfos;
  31530. Array<Variant> attributes;
  31531. /* readonly */
  31532. String category;
  31533. bool enabled;
  31534. /* readonly */
  31535. bool enabledEffective;
  31536. Array<Variant> globalVar;
  31537. /* readonly */
  31538. VariantMap globalVars;
  31539. /* readonly */
  31540. uint id;
  31541. /* readonly */
  31542. TileMapInfo2D info;
  31543. /* readonly */
  31544. Node node;
  31545. /* readonly */
  31546. uint numAttributes;
  31547. /* readonly */
  31548. uint numLayers;
  31549. ObjectAnimation objectAnimation;
  31550. /* readonly */
  31551. int refs;
  31552. /* readonly */
  31553. bool replicated;
  31554. bool temporary;
  31555. TmxFile2D tmxFile;
  31556. /* readonly */
  31557. StringHash type;
  31558. /* readonly */
  31559. String typeName;
  31560. /* readonly */
  31561. int weakRefs;
  31562. };
  31563. class TileMapInfo2D
  31564. {
  31565. public:
  31566. // Methods:
  31567. TileMapInfo2D& operator=(const TileMapInfo2D&);
  31568. Vector2 ConvertPosition(const Vector2&) const;
  31569. float GetMapHeight() const;
  31570. float GetMapWidth() const;
  31571. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  31572. Vector2 TileIndexToPosition(int, int) const;
  31573. // Properties:
  31574. int height;
  31575. /* readonly */
  31576. float mapHeight;
  31577. /* readonly */
  31578. float mapWidth;
  31579. Orientation2D orientation;
  31580. float tileHeight;
  31581. float tileWidth;
  31582. int width;
  31583. };
  31584. class TileMapLayer2D
  31585. {
  31586. public:
  31587. TileMapLayer2D();
  31588. // Methods:
  31589. void AllocateNetworkState();
  31590. operator Animatable() const;
  31591. void ApplyAttributes();
  31592. void CleanupConnection(Connection);
  31593. operator Component() const;
  31594. void DrawDebugGeometry(DebugRenderer, bool);
  31595. bool GetAnimationEnabled() const;
  31596. Variant GetAttribute(const String&) const;
  31597. Variant GetAttribute(uint) const;
  31598. ValueAnimation GetAttributeAnimation(const String&) const;
  31599. float GetAttributeAnimationSpeed(const String&) const;
  31600. float GetAttributeAnimationTime(const String&) const;
  31601. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  31602. Variant GetAttributeDefault(const String&) const;
  31603. Variant GetAttributeDefault(uint) const;
  31604. bool GetBlockEvents() const;
  31605. Component GetComponent(StringHash) const;
  31606. int GetDrawOrder() const;
  31607. VariantMap& GetEventDataMap() const;
  31608. Object GetEventSender() const;
  31609. int GetHeight() const;
  31610. uint GetID() const;
  31611. Node GetImageNode() const;
  31612. bool GetInterceptNetworkUpdate(const String&) const;
  31613. TileMapLayerType2D GetLayerType() const;
  31614. Node GetNode() const;
  31615. uint GetNumAttributes() const;
  31616. uint GetNumNetworkAttributes() const;
  31617. uint GetNumObjects() const;
  31618. TileMapObject2D GetObject(uint) const;
  31619. ObjectAnimation GetObjectAnimation() const;
  31620. ResourceRef GetObjectAnimationAttr() const;
  31621. Node GetObjectNode(uint) const;
  31622. Scene GetScene() const;
  31623. Object GetSubsystem(StringHash) const;
  31624. Tile2D GetTile(int, int) const;
  31625. TileMap2D GetTileMap() const;
  31626. Node GetTileNode(int, int) const;
  31627. TmxLayer2D GetTmxLayer() const;
  31628. StringHash GetType() const;
  31629. int GetWidth() const;
  31630. bool HasEventHandlers() const;
  31631. bool HasProperty(const String&) const;
  31632. bool HasSubscribedToEvent(Object, StringHash) const;
  31633. bool HasSubscribedToEvent(StringHash) const;
  31634. void Initialize(TileMap2D, TmxLayer2D);
  31635. bool IsEnabled() const;
  31636. bool IsEnabledEffective() const;
  31637. bool IsInstanceOf(StringHash) const;
  31638. bool IsReplicated() const;
  31639. bool IsTemporary() const;
  31640. bool IsVisible() const;
  31641. bool Load(Deserializer&);
  31642. bool LoadJSON(const JSONValue&);
  31643. bool LoadXML(const XMLElement&);
  31644. void MarkNetworkUpdate();
  31645. operator Object() const;
  31646. void OnEvent(Object, StringHash, VariantMap&);
  31647. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  31648. void OnSetAttribute(const AttributeInfo&, const Variant&);
  31649. void OnSetEnabled();
  31650. void PrepareNetworkUpdate();
  31651. bool ReadDeltaUpdate(Deserializer&);
  31652. bool ReadLatestDataUpdate(Deserializer&);
  31653. operator RefCounted() const;
  31654. int Refs() const;
  31655. void Remove();
  31656. void RemoveAttributeAnimation(const String&);
  31657. void RemoveInstanceDefault();
  31658. void RemoveObjectAnimation();
  31659. void ResetToDefault();
  31660. bool Save(Serializer&) const;
  31661. bool SaveDefaultAttributes() const;
  31662. bool SaveJSON(JSONValue&) const;
  31663. bool SaveXML(XMLElement&) const;
  31664. void SendEvent(StringHash);
  31665. void SendEvent(StringHash, VariantMap&);
  31666. operator Serializable() const;
  31667. void SetAnimationEnabled(bool);
  31668. void SetAnimationTime(float);
  31669. bool SetAttribute(const String&, const Variant&);
  31670. bool SetAttribute(uint, const Variant&);
  31671. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  31672. void SetAttributeAnimationSpeed(const String&, float);
  31673. void SetAttributeAnimationTime(const String&, float);
  31674. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  31675. void SetBlockEvents(bool);
  31676. void SetDrawOrder(int);
  31677. void SetEnabled(bool);
  31678. void SetGlobalVar(StringHash, const Variant&);
  31679. void SetInstanceDefault(bool);
  31680. void SetInterceptNetworkUpdate(const String&, bool);
  31681. void SetObjectAnimation(ObjectAnimation);
  31682. void SetObjectAnimationAttr(const ResourceRef&);
  31683. void SetTemporary(bool);
  31684. void SetVisible(bool);
  31685. const String& GetCategory() const;
  31686. const String& GetProperty(const String&) const;
  31687. const String& GetTypeName() const;
  31688. void UnsubscribeFromAllEvents();
  31689. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31690. void UnsubscribeFromEvent(Object, StringHash);
  31691. void UnsubscribeFromEvent(StringHash);
  31692. void UnsubscribeFromEvents(Object);
  31693. const Variant& GetGlobalVar(StringHash) const;
  31694. const VariantMap& GetGlobalVars() const;
  31695. int WeakRefs() const;
  31696. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  31697. void WriteInitialDeltaUpdate(Serializer&, uint8);
  31698. void WriteLatestDataUpdate(Serializer&, uint8);
  31699. operator const Animatable() const;
  31700. operator const Component() const;
  31701. operator const Object() const;
  31702. operator const RefCounted() const;
  31703. operator const Serializable() const;
  31704. // Properties:
  31705. bool animationEnabled;
  31706. /* readonly */
  31707. Array<Variant> attributeDefaults;
  31708. /* readonly */
  31709. Array<AttributeInfo> attributeInfos;
  31710. Array<Variant> attributes;
  31711. /* readonly */
  31712. String category;
  31713. int drawOrder;
  31714. bool enabled;
  31715. /* readonly */
  31716. bool enabledEffective;
  31717. Array<Variant> globalVar;
  31718. /* readonly */
  31719. VariantMap globalVars;
  31720. /* readonly */
  31721. int height;
  31722. /* readonly */
  31723. uint id;
  31724. /* readonly */
  31725. Node imageNode;
  31726. /* readonly */
  31727. TileMapLayerType2D layerType;
  31728. /* readonly */
  31729. Node node;
  31730. /* readonly */
  31731. uint numAttributes;
  31732. /* readonly */
  31733. uint numObjects;
  31734. ObjectAnimation objectAnimation;
  31735. /* readonly */
  31736. int refs;
  31737. /* readonly */
  31738. bool replicated;
  31739. bool temporary;
  31740. /* readonly */
  31741. StringHash type;
  31742. /* readonly */
  31743. String typeName;
  31744. bool visible;
  31745. /* readonly */
  31746. int weakRefs;
  31747. /* readonly */
  31748. int width;
  31749. };
  31750. class TileMapObject2D
  31751. {
  31752. public:
  31753. TileMapObject2D();
  31754. // Methods:
  31755. uint GetNumPoints() const;
  31756. TileMapObjectType2D GetObjectType() const;
  31757. bool GetTileFlipX() const;
  31758. bool GetTileFlipY() const;
  31759. uint GetTileGid() const;
  31760. Sprite2D GetTileSprite() const;
  31761. bool GetTileSwapXY() const;
  31762. bool HasProperty(const String&) const;
  31763. operator RefCounted() const;
  31764. int Refs() const;
  31765. const String& GetName() const;
  31766. const String& GetProperty(const String&) const;
  31767. const String& GetType() const;
  31768. const Vector2& GetPoint(uint) const;
  31769. const Vector2& GetPosition() const;
  31770. const Vector2& GetSize() const;
  31771. int WeakRefs() const;
  31772. operator const RefCounted() const;
  31773. // Properties:
  31774. /* readonly */
  31775. String name;
  31776. /* readonly */
  31777. uint numPoints;
  31778. /* readonly */
  31779. TileMapObjectType2D objectType;
  31780. /* readonly */
  31781. Vector2 position;
  31782. /* readonly */
  31783. int refs;
  31784. /* readonly */
  31785. Vector2 size;
  31786. /* readonly */
  31787. bool tileFlipX;
  31788. /* readonly */
  31789. bool tileFlipY;
  31790. /* readonly */
  31791. uint tileGid;
  31792. /* readonly */
  31793. Sprite2D tileSprite;
  31794. /* readonly */
  31795. bool tileSwapXY;
  31796. /* readonly */
  31797. String type;
  31798. /* readonly */
  31799. int weakRefs;
  31800. };
  31801. class Time
  31802. {
  31803. public:
  31804. Time();
  31805. // Methods:
  31806. void BeginFrame(float);
  31807. void EndFrame();
  31808. bool GetBlockEvents() const;
  31809. float GetElapsedTime();
  31810. VariantMap& GetEventDataMap() const;
  31811. Object GetEventSender() const;
  31812. uint GetFrameNumber() const;
  31813. float GetFramesPerSecond() const;
  31814. Object GetSubsystem(StringHash) const;
  31815. float GetTimeStep() const;
  31816. uint GetTimerPeriod() const;
  31817. StringHash GetType() const;
  31818. bool HasEventHandlers() const;
  31819. bool HasSubscribedToEvent(Object, StringHash) const;
  31820. bool HasSubscribedToEvent(StringHash) const;
  31821. bool IsInstanceOf(StringHash) const;
  31822. operator Object() const;
  31823. void OnEvent(Object, StringHash, VariantMap&);
  31824. operator RefCounted() const;
  31825. int Refs() const;
  31826. void SendEvent(StringHash);
  31827. void SendEvent(StringHash, VariantMap&);
  31828. void SetBlockEvents(bool);
  31829. void SetGlobalVar(StringHash, const Variant&);
  31830. void SetTimerPeriod(uint);
  31831. const String& GetCategory() const;
  31832. const String& GetTypeName() const;
  31833. void UnsubscribeFromAllEvents();
  31834. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31835. void UnsubscribeFromEvent(Object, StringHash);
  31836. void UnsubscribeFromEvent(StringHash);
  31837. void UnsubscribeFromEvents(Object);
  31838. const Variant& GetGlobalVar(StringHash) const;
  31839. const VariantMap& GetGlobalVars() const;
  31840. int WeakRefs() const;
  31841. operator const Object() const;
  31842. operator const RefCounted() const;
  31843. // Properties:
  31844. /* readonly */
  31845. String category;
  31846. /* readonly */
  31847. float elapsedTime;
  31848. /* readonly */
  31849. uint frameNumber;
  31850. /* readonly */
  31851. float framesPerSecond;
  31852. Array<Variant> globalVar;
  31853. /* readonly */
  31854. VariantMap globalVars;
  31855. /* readonly */
  31856. int refs;
  31857. /* readonly */
  31858. uint systemTime;
  31859. /* readonly */
  31860. uint timeSinceEpoch;
  31861. /* readonly */
  31862. String timeStamp;
  31863. /* readonly */
  31864. float timeStep;
  31865. /* readonly */
  31866. StringHash type;
  31867. /* readonly */
  31868. String typeName;
  31869. /* readonly */
  31870. int weakRefs;
  31871. };
  31872. class Timer
  31873. {
  31874. public:
  31875. Timer();
  31876. // Methods:
  31877. Timer& operator=(const Timer&);
  31878. uint GetMSec(bool);
  31879. void Reset();
  31880. };
  31881. class TmxFile2D
  31882. {
  31883. public:
  31884. TmxFile2D();
  31885. // Methods:
  31886. void AddLayer(uint, TmxLayer2D);
  31887. bool BeginLoad(Deserializer&);
  31888. bool EndLoad();
  31889. AsyncLoadState GetAsyncLoadState() const;
  31890. bool GetBlockEvents() const;
  31891. VariantMap& GetEventDataMap() const;
  31892. Object GetEventSender() const;
  31893. TmxLayer2D GetLayer(uint) const;
  31894. uint GetMemoryUse() const;
  31895. StringHash GetNameHash() const;
  31896. uint GetNumLayers() const;
  31897. float GetSpriteTextureEdgeOffset() const;
  31898. Object GetSubsystem(StringHash) const;
  31899. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  31900. PropertySet2D GetTilePropertySet(uint) const;
  31901. Sprite2D GetTileSprite(uint) const;
  31902. StringHash GetType() const;
  31903. uint GetUseTimer();
  31904. bool HasEventHandlers() const;
  31905. bool HasSubscribedToEvent(Object, StringHash) const;
  31906. bool HasSubscribedToEvent(StringHash) const;
  31907. bool IsInstanceOf(StringHash) const;
  31908. bool Load(Deserializer&);
  31909. bool Load(File);
  31910. bool Load(VectorBuffer&);
  31911. bool Load(const String&);
  31912. bool LoadFile(const String&);
  31913. operator Object() const;
  31914. void OnEvent(Object, StringHash, VariantMap&);
  31915. operator RefCounted() const;
  31916. int Refs() const;
  31917. void ResetUseTimer();
  31918. operator Resource() const;
  31919. bool Save(File) const;
  31920. bool Save(Serializer&) const;
  31921. bool Save(VectorBuffer&) const;
  31922. bool Save(const String&) const;
  31923. bool SaveFile(const String&) const;
  31924. void SendEvent(StringHash);
  31925. void SendEvent(StringHash, VariantMap&);
  31926. void SetAsyncLoadState(AsyncLoadState);
  31927. void SetBlockEvents(bool);
  31928. void SetGlobalVar(StringHash, const Variant&);
  31929. bool SetInfo(Orientation2D, int, int, float, float);
  31930. void SetMemoryUse(uint);
  31931. void SetName(const String&);
  31932. void SetSpriteTextureEdgeOffset(float);
  31933. const String& GetCategory() const;
  31934. const String& GetName() const;
  31935. const String& GetTypeName() const;
  31936. const TileMapInfo2D& GetInfo() const;
  31937. void UnsubscribeFromAllEvents();
  31938. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31939. void UnsubscribeFromEvent(Object, StringHash);
  31940. void UnsubscribeFromEvent(StringHash);
  31941. void UnsubscribeFromEvents(Object);
  31942. const Variant& GetGlobalVar(StringHash) const;
  31943. const VariantMap& GetGlobalVars() const;
  31944. int WeakRefs() const;
  31945. operator const Object() const;
  31946. operator const RefCounted() const;
  31947. operator const Resource() const;
  31948. // Properties:
  31949. /* readonly */
  31950. String category;
  31951. float edgeOffset;
  31952. Array<Variant> globalVar;
  31953. /* readonly */
  31954. VariantMap globalVars;
  31955. /* readonly */
  31956. uint memoryUse;
  31957. String name;
  31958. /* readonly */
  31959. int refs;
  31960. /* readonly */
  31961. StringHash type;
  31962. /* readonly */
  31963. String typeName;
  31964. /* readonly */
  31965. uint useTimer;
  31966. /* readonly */
  31967. int weakRefs;
  31968. };
  31969. class TmxImageLayer2D
  31970. {
  31971. public:
  31972. TmxImageLayer2D(TmxFile2D&);
  31973. // Methods:
  31974. int GetHeight() const;
  31975. Sprite2D GetSprite() const;
  31976. TmxFile2D GetTmxFile() const;
  31977. TileMapLayerType2D GetType() const;
  31978. int GetWidth() const;
  31979. bool HasProperty(const String&) const;
  31980. bool IsVisible() const;
  31981. bool Load(const XMLElement&, const TileMapInfo2D&);
  31982. operator RefCounted() const;
  31983. int Refs() const;
  31984. const String& GetName() const;
  31985. const String& GetProperty(const String&) const;
  31986. const String& GetSource() const;
  31987. operator TmxLayer2D() const;
  31988. const Vector2& GetPosition() const;
  31989. int WeakRefs() const;
  31990. operator const RefCounted() const;
  31991. operator const TmxLayer2D() const;
  31992. // Properties:
  31993. /* readonly */
  31994. int refs;
  31995. /* readonly */
  31996. int weakRefs;
  31997. };
  31998. class TmxLayer2D
  31999. {
  32000. public:
  32001. TmxLayer2D(TmxFile2D&, TileMapLayerType2D);
  32002. // Methods:
  32003. int GetHeight() const;
  32004. TmxFile2D GetTmxFile() const;
  32005. TileMapLayerType2D GetType() const;
  32006. int GetWidth() const;
  32007. bool HasProperty(const String&) const;
  32008. bool IsVisible() const;
  32009. operator RefCounted() const;
  32010. int Refs() const;
  32011. const String& GetName() const;
  32012. const String& GetProperty(const String&) const;
  32013. operator TmxImageLayer2D() const;
  32014. operator TmxObjectGroup2D() const;
  32015. operator TmxTileLayer2D() const;
  32016. int WeakRefs() const;
  32017. operator const RefCounted() const;
  32018. operator const TmxImageLayer2D() const;
  32019. operator const TmxObjectGroup2D() const;
  32020. operator const TmxTileLayer2D() const;
  32021. // Properties:
  32022. /* readonly */
  32023. int refs;
  32024. /* readonly */
  32025. int weakRefs;
  32026. };
  32027. class TmxObjectGroup2D
  32028. {
  32029. public:
  32030. TmxObjectGroup2D(TmxFile2D&);
  32031. // Methods:
  32032. int GetHeight() const;
  32033. uint GetNumObjects() const;
  32034. TileMapObject2D GetObject(uint) const;
  32035. TmxFile2D GetTmxFile() const;
  32036. TileMapLayerType2D GetType() const;
  32037. int GetWidth() const;
  32038. bool HasProperty(const String&) const;
  32039. bool IsVisible() const;
  32040. bool Load(const XMLElement&, const TileMapInfo2D&);
  32041. operator RefCounted() const;
  32042. int Refs() const;
  32043. const String& GetName() const;
  32044. const String& GetProperty(const String&) const;
  32045. operator TmxLayer2D() const;
  32046. int WeakRefs() const;
  32047. operator const RefCounted() const;
  32048. operator const TmxLayer2D() const;
  32049. // Properties:
  32050. /* readonly */
  32051. int refs;
  32052. /* readonly */
  32053. int weakRefs;
  32054. };
  32055. class TmxTileLayer2D
  32056. {
  32057. public:
  32058. TmxTileLayer2D(TmxFile2D&);
  32059. // Methods:
  32060. int GetHeight() const;
  32061. Tile2D GetTile(int, int) const;
  32062. TmxFile2D GetTmxFile() const;
  32063. TileMapLayerType2D GetType() const;
  32064. int GetWidth() const;
  32065. bool HasProperty(const String&) const;
  32066. bool IsVisible() const;
  32067. bool Load(const XMLElement&, const TileMapInfo2D&);
  32068. operator RefCounted() const;
  32069. int Refs() const;
  32070. const String& GetName() const;
  32071. const String& GetProperty(const String&) const;
  32072. operator TmxLayer2D() const;
  32073. int WeakRefs() const;
  32074. operator const RefCounted() const;
  32075. operator const TmxLayer2D() const;
  32076. // Properties:
  32077. /* readonly */
  32078. int refs;
  32079. /* readonly */
  32080. int weakRefs;
  32081. };
  32082. class ToolTip
  32083. {
  32084. public:
  32085. ToolTip();
  32086. // Methods:
  32087. void AddAltTarget(UIElement);
  32088. void AddChild(UIElement);
  32089. void AddTag(const String&);
  32090. void AddTags(Array<String>);
  32091. void AddTags(const String&, int8 = ';');
  32092. void AdjustScissor(IntRect&);
  32093. void AllocateNetworkState();
  32094. operator Animatable() const;
  32095. void ApplyAttributes();
  32096. void BringToFront();
  32097. const Color& GetColor(Corner) const;
  32098. const Color& GetColorAttr() const;
  32099. const Color& GetDerivedColor() const;
  32100. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  32101. void DisableLayoutUpdate();
  32102. IntVector2 ElementToScreen(const IntVector2&);
  32103. void EnableLayoutUpdate();
  32104. bool FilterAttributes(XMLElement&) const;
  32105. uint FindChild(UIElement) const;
  32106. bool GetAnimationEnabled() const;
  32107. Variant GetAttribute(const String&) const;
  32108. Variant GetAttribute(uint) const;
  32109. ValueAnimation GetAttributeAnimation(const String&) const;
  32110. float GetAttributeAnimationSpeed(const String&) const;
  32111. float GetAttributeAnimationTime(const String&) const;
  32112. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  32113. Variant GetAttributeDefault(const String&) const;
  32114. Variant GetAttributeDefault(uint) const;
  32115. bool GetBlockEvents() const;
  32116. bool GetBringToBack() const;
  32117. bool GetBringToFront() const;
  32118. UIElement GetChild(const String&, bool = false) const;
  32119. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  32120. UIElement GetChild(uint) const;
  32121. Array<UIElement> GetChildren() const;
  32122. Array<UIElement> GetChildren(bool) const;
  32123. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  32124. bool GetClipChildren() const;
  32125. IntRect GetCombinedScreenRect();
  32126. XMLFile GetDefaultStyle(bool = true) const;
  32127. float GetDelay() const;
  32128. float GetDerivedOpacity() const;
  32129. uint GetDragButtonCombo() const;
  32130. uint GetDragButtonCount() const;
  32131. uint GetDragDropMode() const;
  32132. IntVector2 GetEffectiveMinSize() const;
  32133. UIElement GetElementEventSender() const;
  32134. bool GetEnableAnchor() const;
  32135. VariantMap& GetEventDataMap() const;
  32136. Object GetEventSender() const;
  32137. FocusMode GetFocusMode() const;
  32138. int GetHeight() const;
  32139. HorizontalAlignment GetHorizontalAlignment() const;
  32140. int GetIndent() const;
  32141. int GetIndentSpacing() const;
  32142. int GetIndentWidth() const;
  32143. bool GetInterceptNetworkUpdate(const String&) const;
  32144. int GetLayoutElementMaxSize() const;
  32145. LayoutMode GetLayoutMode() const;
  32146. int GetLayoutSpacing() const;
  32147. int GetMaxHeight() const;
  32148. int GetMaxWidth() const;
  32149. int GetMinHeight() const;
  32150. int GetMinWidth() const;
  32151. uint GetNumAttributes() const;
  32152. uint GetNumChildren(bool = false) const;
  32153. uint GetNumNetworkAttributes() const;
  32154. ObjectAnimation GetObjectAnimation() const;
  32155. ResourceRef GetObjectAnimationAttr() const;
  32156. float GetOpacity() const;
  32157. UIElement GetParent() const;
  32158. int GetPriority() const;
  32159. UIElement GetRoot() const;
  32160. bool GetSortChildren() const;
  32161. Object GetSubsystem(StringHash) const;
  32162. Array<String> GetTags() const;
  32163. TraversalMode GetTraversalMode() const;
  32164. StringHash GetType() const;
  32165. bool GetUseDerivedOpacity() const;
  32166. VerticalAlignment GetVerticalAlignment() const;
  32167. int GetWidth() const;
  32168. bool HasColorGradient() const;
  32169. bool HasEventHandlers() const;
  32170. bool HasFocus() const;
  32171. bool HasSubscribedToEvent(Object, StringHash) const;
  32172. bool HasSubscribedToEvent(StringHash) const;
  32173. bool HasTag(const String&) const;
  32174. void InsertChild(uint, UIElement);
  32175. const IntRect& GetClipBorder() const;
  32176. const IntRect& GetLayoutBorder() const;
  32177. const IntVector2& GetChildOffset() const;
  32178. const IntVector2& GetMaxOffset() const;
  32179. const IntVector2& GetMaxSize() const;
  32180. const IntVector2& GetMinOffset() const;
  32181. const IntVector2& GetMinSize() const;
  32182. const IntVector2& GetPosition() const;
  32183. const IntVector2& GetScreenPosition() const;
  32184. const IntVector2& GetSize() const;
  32185. bool IsChildOf(UIElement) const;
  32186. bool IsEditable() const;
  32187. bool IsElementEventSender() const;
  32188. bool IsEnabled() const;
  32189. bool IsEnabledSelf() const;
  32190. bool IsFixedHeight() const;
  32191. bool IsFixedSize() const;
  32192. bool IsFixedWidth() const;
  32193. bool IsHovering() const;
  32194. bool IsInside(IntVector2, bool);
  32195. bool IsInsideCombined(IntVector2, bool);
  32196. bool IsInstanceOf(StringHash) const;
  32197. bool IsInternal() const;
  32198. bool IsSelected() const;
  32199. bool IsTemporary() const;
  32200. bool IsVisible() const;
  32201. bool IsVisibleEffective() const;
  32202. bool IsWheelHandler() const;
  32203. bool IsWithinScissor(const IntRect&);
  32204. bool Load(Deserializer&);
  32205. UIElement LoadChildXML(XMLFile, XMLFile);
  32206. UIElement LoadChildXML(const XMLElement&, XMLFile);
  32207. bool LoadJSON(const JSONValue&);
  32208. bool LoadXML(Deserializer&);
  32209. bool LoadXML(File);
  32210. bool LoadXML(VectorBuffer&);
  32211. bool LoadXML(XMLFile, XMLFile);
  32212. bool LoadXML(const XMLElement&);
  32213. bool LoadXML(const XMLElement&, XMLFile);
  32214. void MarkNetworkUpdate();
  32215. operator Object() const;
  32216. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  32217. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  32218. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  32219. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32220. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32221. bool OnDragDropFinish(UIElement);
  32222. bool OnDragDropTest(UIElement);
  32223. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32224. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32225. void OnEvent(Object, StringHash, VariantMap&);
  32226. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  32227. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32228. void OnIndentSet();
  32229. void OnKey(uint, uint, uint);
  32230. void OnPositionSet(const IntVector2&);
  32231. void OnResize(const IntVector2&, const IntVector2&);
  32232. void OnSetAttribute(const AttributeInfo&, const Variant&);
  32233. void OnSetEditable();
  32234. void OnTextInput(const String&);
  32235. void OnWheel(int, uint, uint);
  32236. bool ReadDeltaUpdate(Deserializer&);
  32237. bool ReadLatestDataUpdate(Deserializer&);
  32238. operator RefCounted() const;
  32239. int Refs() const;
  32240. void Remove();
  32241. void RemoveAllChildren();
  32242. void RemoveAllTags();
  32243. void RemoveAttributeAnimation(const String&);
  32244. void RemoveChild(UIElement, uint = 0);
  32245. void RemoveChild(uint);
  32246. void RemoveChildAtIndex(uint);
  32247. void RemoveInstanceDefault();
  32248. void RemoveObjectAnimation();
  32249. bool RemoveTag(const String&);
  32250. void Reset();
  32251. void ResetDeepEnabled();
  32252. void ResetToDefault();
  32253. bool Save(Serializer&) const;
  32254. bool SaveDefaultAttributes() const;
  32255. bool SaveJSON(JSONValue&) const;
  32256. bool SaveXML(File, const String& indentation = "\t");
  32257. bool SaveXML(Serializer&, const String& = "\t") const;
  32258. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  32259. bool SaveXML(XMLElement&) const;
  32260. IntVector2 ScreenToElement(const IntVector2&);
  32261. void SendEvent(StringHash);
  32262. void SendEvent(StringHash, VariantMap&);
  32263. operator Serializable() const;
  32264. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  32265. void SetAnimationEnabled(bool);
  32266. void SetAnimationTime(float);
  32267. bool SetAttribute(const String&, const Variant&);
  32268. bool SetAttribute(uint, const Variant&);
  32269. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  32270. void SetAttributeAnimationSpeed(const String&, float);
  32271. void SetAttributeAnimationTime(const String&, float);
  32272. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  32273. void SetBlockEvents(bool);
  32274. void SetBringToBack(bool);
  32275. void SetBringToFront(bool);
  32276. void SetChildOffset(const IntVector2&);
  32277. void SetClipBorder(const IntRect&);
  32278. void SetClipChildren(bool);
  32279. void SetColor(Corner, const Color&);
  32280. void SetColor(const Color&);
  32281. void SetDeepEnabled(bool);
  32282. void SetDefaultStyle(XMLFile);
  32283. void SetDelay(float);
  32284. void SetDragDropMode(uint);
  32285. void SetEditable(bool);
  32286. void SetElementEventSender(bool);
  32287. void SetEnableAnchor(bool);
  32288. void SetEnabled(bool);
  32289. void SetEnabledRecursive(bool);
  32290. void SetFixedHeight(int);
  32291. void SetFixedSize(const IntVector2&);
  32292. void SetFixedSize(int, int);
  32293. void SetFixedWidth(int);
  32294. void SetFocus(bool);
  32295. void SetFocusMode(FocusMode);
  32296. void SetGlobalVar(StringHash, const Variant&);
  32297. void SetHeight(int);
  32298. void SetHorizontalAlignment(HorizontalAlignment);
  32299. void SetHovering(bool);
  32300. void SetIndent(int);
  32301. void SetIndentSpacing(int);
  32302. void SetInstanceDefault(bool);
  32303. void SetInterceptNetworkUpdate(const String&, bool);
  32304. void SetInternal(bool);
  32305. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  32306. void SetLayoutBorder(const IntRect&);
  32307. void SetLayoutFlexScale(const Vector2&);
  32308. void SetLayoutMode(LayoutMode);
  32309. void SetLayoutSpacing(int);
  32310. void SetMaxAnchor(const Vector2&);
  32311. void SetMaxAnchor(float, float);
  32312. void SetMaxHeight(int);
  32313. void SetMaxOffset(const IntVector2&);
  32314. void SetMaxSize(const IntVector2&);
  32315. void SetMaxSize(int, int);
  32316. void SetMaxWidth(int);
  32317. void SetMinAnchor(const Vector2&);
  32318. void SetMinAnchor(float, float);
  32319. void SetMinHeight(int);
  32320. void SetMinOffset(const IntVector2&);
  32321. void SetMinSize(const IntVector2&);
  32322. void SetMinSize(int, int);
  32323. void SetMinWidth(int);
  32324. void SetName(const String&);
  32325. void SetObjectAnimation(ObjectAnimation);
  32326. void SetObjectAnimationAttr(const ResourceRef&);
  32327. void SetOpacity(float);
  32328. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  32329. void SetPivot(const Vector2&);
  32330. void SetPivot(float, float);
  32331. void SetPosition(const IntVector2&);
  32332. void SetPosition(int, int);
  32333. void SetPriority(int);
  32334. void SetRenderTexture(Texture2D);
  32335. void SetSelected(bool);
  32336. void SetSize(const IntVector2&);
  32337. void SetSize(int, int);
  32338. void SetSortChildren(bool);
  32339. bool SetStyle(const String&, XMLFile = null);
  32340. bool SetStyle(const XMLElement&);
  32341. bool SetStyleAuto(XMLFile = null);
  32342. void SetTags(Array<String>);
  32343. void SetTemporary(bool);
  32344. void SetTraversalMode(TraversalMode);
  32345. void SetUseDerivedOpacity(bool);
  32346. void SetVar(StringHash, const Variant&);
  32347. void SetVerticalAlignment(VerticalAlignment);
  32348. void SetVisible(bool);
  32349. void SetWidth(int);
  32350. void SortChildren();
  32351. const String& GetAppliedStyle() const;
  32352. const String& GetCategory() const;
  32353. const String& GetName() const;
  32354. const String& GetTypeName() const;
  32355. operator UIElement() const;
  32356. void UnsubscribeFromAllEvents();
  32357. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32358. void UnsubscribeFromEvent(Object, StringHash);
  32359. void UnsubscribeFromEvent(StringHash);
  32360. void UnsubscribeFromEvents(Object);
  32361. void Update(float);
  32362. void UpdateLayout();
  32363. const Variant& GetGlobalVar(StringHash) const;
  32364. const Variant& GetVar(const StringHash&) const;
  32365. const VariantMap& GetGlobalVars() const;
  32366. const VariantMap& GetVars() const;
  32367. const Vector2& GetLayoutFlexScale() const;
  32368. const Vector2& GetMaxAnchor() const;
  32369. const Vector2& GetMinAnchor() const;
  32370. const Vector2& GetPivot() const;
  32371. int WeakRefs() const;
  32372. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  32373. void WriteInitialDeltaUpdate(Serializer&, uint8);
  32374. void WriteLatestDataUpdate(Serializer&, uint8);
  32375. operator const Animatable() const;
  32376. operator const Object() const;
  32377. operator const RefCounted() const;
  32378. operator const Serializable() const;
  32379. operator const UIElement() const;
  32380. // Properties:
  32381. bool animationEnabled;
  32382. /* readonly */
  32383. Array<Variant> attributeDefaults;
  32384. /* readonly */
  32385. Array<AttributeInfo> attributeInfos;
  32386. Array<Variant> attributes;
  32387. bool bringToBack;
  32388. bool bringToFront;
  32389. /* readonly */
  32390. String category;
  32391. /* readonly */
  32392. IntVector2 childOffset;
  32393. /* readonly */
  32394. Array<UIElement> children;
  32395. IntRect clipBorder;
  32396. bool clipChildren;
  32397. /* writeonly */
  32398. Color color;
  32399. /* readonly */
  32400. bool colorGradient;
  32401. Array<Color> colors;
  32402. /* readonly */
  32403. IntRect combinedScreenRect;
  32404. XMLFile defaultStyle;
  32405. float delay;
  32406. /* readonly */
  32407. float derivedOpacity;
  32408. /* readonly */
  32409. uint dragButtonCombo;
  32410. /* readonly */
  32411. uint dragButtonCount;
  32412. uint dragDropMode;
  32413. bool editable;
  32414. bool elementEventSender;
  32415. bool enableAnchor;
  32416. bool enabled;
  32417. /* readonly */
  32418. bool enabledSelf;
  32419. /* readonly */
  32420. bool fixedHeight;
  32421. /* readonly */
  32422. bool fixedSize;
  32423. /* readonly */
  32424. bool fixedWidth;
  32425. bool focus;
  32426. FocusMode focusMode;
  32427. Array<Variant> globalVar;
  32428. /* readonly */
  32429. VariantMap globalVars;
  32430. int height;
  32431. HorizontalAlignment horizontalAlignment;
  32432. /* readonly */
  32433. bool hovering;
  32434. int indent;
  32435. int indentSpacing;
  32436. /* readonly */
  32437. int indentWidth;
  32438. bool internal;
  32439. IntRect layoutBorder;
  32440. Vector2 layoutFlexScale;
  32441. LayoutMode layoutMode;
  32442. int layoutSpacing;
  32443. Vector2 maxAnchor;
  32444. int maxHeight;
  32445. IntVector2 maxOffset;
  32446. IntVector2 maxSize;
  32447. int maxWidth;
  32448. Vector2 minAnchor;
  32449. int minHeight;
  32450. IntVector2 minOffset;
  32451. IntVector2 minSize;
  32452. int minWidth;
  32453. String name;
  32454. /* readonly */
  32455. uint numAllChildren;
  32456. /* readonly */
  32457. uint numAttributes;
  32458. /* readonly */
  32459. uint numChildren;
  32460. ObjectAnimation objectAnimation;
  32461. float opacity;
  32462. UIElement parent;
  32463. Vector2 pivot;
  32464. IntVector2 position;
  32465. int priority;
  32466. /* readonly */
  32467. int refs;
  32468. /* readonly */
  32469. UIElement root;
  32470. /* readonly */
  32471. IntVector2 screenPosition;
  32472. bool selected;
  32473. IntVector2 size;
  32474. bool sortChildren;
  32475. String style;
  32476. /* readonly */
  32477. Array<String> tags;
  32478. bool temporary;
  32479. TraversalMode traversalMode;
  32480. /* readonly */
  32481. StringHash type;
  32482. /* readonly */
  32483. String typeName;
  32484. bool useDerivedOpacity;
  32485. /* readonly */
  32486. VariantMap vars;
  32487. VerticalAlignment verticalAlignment;
  32488. bool visible;
  32489. /* readonly */
  32490. bool visibleEffective;
  32491. /* readonly */
  32492. int weakRefs;
  32493. int width;
  32494. };
  32495. class TouchState
  32496. {
  32497. public:
  32498. // Methods:
  32499. TouchState& operator=(const TouchState&);
  32500. UIElement GetTouchedElement();
  32501. // Properties:
  32502. IntVector2 delta;
  32503. IntVector2 lastPosition;
  32504. IntVector2 position;
  32505. float pressure;
  32506. int touchID;
  32507. /* readonly */
  32508. UIElement touchedElement;
  32509. };
  32510. class TrailPoint
  32511. {
  32512. public:
  32513. ~TrailPoint();
  32514. TrailPoint();
  32515. TrailPoint(const Vector3&in, const Vector3&in);
  32516. // Methods:
  32517. TrailPoint& operator=(const TrailPoint&);
  32518. // Properties:
  32519. float elapsedLength;
  32520. Vector3 forward;
  32521. float lifetime;
  32522. Vector3 parentPos;
  32523. Vector3 position;
  32524. float sortDistance;
  32525. };
  32526. class TriangleMeshData
  32527. {
  32528. public:
  32529. TriangleMeshData(Model&, uint);
  32530. TriangleMeshData(CustomGeometry&);
  32531. // Methods:
  32532. operator CollisionGeometryData() const;
  32533. operator RefCounted() const;
  32534. int Refs() const;
  32535. int WeakRefs() const;
  32536. operator const CollisionGeometryData() const;
  32537. operator const RefCounted() const;
  32538. // Properties:
  32539. /* readonly */
  32540. int refs;
  32541. /* readonly */
  32542. int weakRefs;
  32543. };
  32544. class UI
  32545. {
  32546. public:
  32547. UI();
  32548. // Methods:
  32549. void Clear();
  32550. IntVector2 ConvertSystemToUI(const IntVector2&) const;
  32551. IntVector2 ConvertUIToSystem(const IntVector2&) const;
  32552. void DebugDraw(UIElement);
  32553. bool GetBlockEvents() const;
  32554. Cursor GetCursor() const;
  32555. IntVector2 GetCursorPosition() const;
  32556. float GetDefaultToolTipDelay() const;
  32557. float GetDoubleClickInterval() const;
  32558. int GetDragBeginDistance() const;
  32559. float GetDragBeginInterval() const;
  32560. UIElement GetDragElement(uint);
  32561. UIElement GetElementAt(UIElement, const IntVector2&, bool = true);
  32562. UIElement GetElementAt(const IntVector2&, bool = true);
  32563. UIElement GetElementAt(int, int, bool = true);
  32564. VariantMap& GetEventDataMap() const;
  32565. Object GetEventSender() const;
  32566. UIElement GetFocusElement() const;
  32567. FontHintLevel GetFontHintLevel() const;
  32568. int GetFontOversampling() const;
  32569. float GetFontSubpixelThreshold() const;
  32570. bool GetForceAutoHint() const;
  32571. UIElement GetFrontElement() const;
  32572. float GetMaxDoubleClickDistance() const;
  32573. int GetMaxFontTextureSize() const;
  32574. uint GetNumDragElements() const;
  32575. UIElement GetRoot() const;
  32576. UIElement GetRootModalElement() const;
  32577. float GetScale() const;
  32578. Object GetSubsystem(StringHash) const;
  32579. StringHash GetType() const;
  32580. bool GetUseMutableGlyphs() const;
  32581. bool GetUseScreenKeyboard() const;
  32582. bool GetUseSystemClipboard() const;
  32583. bool HasEventHandlers() const;
  32584. bool HasModalElement() const;
  32585. bool HasSubscribedToEvent(Object, StringHash) const;
  32586. bool HasSubscribedToEvent(StringHash) const;
  32587. const IntVector2& GetCustomSize() const;
  32588. bool IsDragging() const;
  32589. bool IsInstanceOf(StringHash) const;
  32590. bool IsNonFocusedMouseWheel() const;
  32591. UIElement LoadLayout(Deserializer&, XMLFile = null);
  32592. UIElement LoadLayout(File);
  32593. UIElement LoadLayout(File, XMLFile);
  32594. UIElement LoadLayout(VectorBuffer&);
  32595. UIElement LoadLayout(VectorBuffer&, XMLFile);
  32596. UIElement LoadLayout(XMLFile, XMLFile = null);
  32597. operator Object() const;
  32598. void OnEvent(Object, StringHash, VariantMap&);
  32599. operator RefCounted() const;
  32600. int Refs() const;
  32601. void Render(bool = false);
  32602. void RenderUpdate();
  32603. bool SaveLayout(File, UIElement);
  32604. bool SaveLayout(Serializer&, UIElement);
  32605. bool SaveLayout(VectorBuffer&, UIElement);
  32606. void SendEvent(StringHash);
  32607. void SendEvent(StringHash, VariantMap&);
  32608. void SetBlockEvents(bool);
  32609. void SetClipboardText(const String&);
  32610. void SetCursor(Cursor);
  32611. void SetCustomSize(const IntVector2&);
  32612. void SetCustomSize(int, int);
  32613. void SetDefaultToolTipDelay(float);
  32614. void SetDoubleClickInterval(float);
  32615. void SetDragBeginDistance(int);
  32616. void SetDragBeginInterval(float);
  32617. void SetElementRenderTexture(UIElement, Texture2D);
  32618. void SetFocusElement(UIElement, bool = false);
  32619. void SetFontHintLevel(FontHintLevel);
  32620. void SetFontOversampling(int);
  32621. void SetFontSubpixelThreshold(float);
  32622. void SetForceAutoHint(bool);
  32623. void SetGlobalVar(StringHash, const Variant&);
  32624. void SetHeight(float);
  32625. void SetMaxDoubleClickDistance(float);
  32626. void SetMaxFontTextureSize(int);
  32627. bool SetModalElement(UIElement, bool);
  32628. void SetNonFocusedMouseWheel(bool);
  32629. void SetScale(float);
  32630. void SetUseMutableGlyphs(bool);
  32631. void SetUseScreenKeyboard(bool);
  32632. void SetUseSystemClipboard(bool);
  32633. void SetWidth(float);
  32634. const String& GetCategory() const;
  32635. const String& GetClipboardText() const;
  32636. const String& GetTypeName() const;
  32637. const Array<UIElement> GetDragElements();
  32638. void UnsubscribeFromAllEvents();
  32639. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32640. void UnsubscribeFromEvent(Object, StringHash);
  32641. void UnsubscribeFromEvent(StringHash);
  32642. void UnsubscribeFromEvents(Object);
  32643. void Update(float);
  32644. const Variant& GetGlobalVar(StringHash) const;
  32645. const VariantMap& GetGlobalVars() const;
  32646. int WeakRefs() const;
  32647. operator const Object() const;
  32648. operator const RefCounted() const;
  32649. // Properties:
  32650. /* readonly */
  32651. String category;
  32652. String clipboardText;
  32653. Cursor cursor;
  32654. /* readonly */
  32655. IntVector2 cursorPosition;
  32656. IntVector2 customSize;
  32657. float defaultToolTipDelay;
  32658. float doubleClickInterval;
  32659. int dragBeginDistance;
  32660. float dragBeginInterval;
  32661. UIElement focusElement;
  32662. FontHintLevel fontHintLevel;
  32663. int fontOversampling;
  32664. float fontSubpixelThreshold;
  32665. bool forceAutoHint;
  32666. /* readonly */
  32667. UIElement frontElement;
  32668. Array<Variant> globalVar;
  32669. /* readonly */
  32670. VariantMap globalVars;
  32671. float maxDoubleClickDistance;
  32672. int maxFontTextureSize;
  32673. /* readonly */
  32674. UIElement modalRoot;
  32675. bool nonFocusedMouseWheel;
  32676. /* readonly */
  32677. int refs;
  32678. /* readonly */
  32679. UIElement root;
  32680. float scale;
  32681. /* readonly */
  32682. StringHash type;
  32683. /* readonly */
  32684. String typeName;
  32685. bool useMutableGlyphs;
  32686. bool useScreenKeyboard;
  32687. bool useSystemClipboard;
  32688. /* readonly */
  32689. int weakRefs;
  32690. };
  32691. class UIBatch
  32692. {
  32693. public:
  32694. ~UIBatch();
  32695. UIBatch();
  32696. // Methods:
  32697. UIBatch& operator=(const UIBatch&);
  32698. void AddQuad(const Matrix3x4&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&);
  32699. void AddQuad(const Matrix3x4&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const Color&, const Color&, const Color&, const Color&);
  32700. void AddQuad(const Matrix3x4&, int, int, int, int, int, int, int = 0, int = 0);
  32701. void AddQuad(float, float, float, float, int, int, int = 0, int = 0);
  32702. void AddQuad(int, int, int, int, int, int, int, int, bool);
  32703. uint GetInterpolatedColor(float, float);
  32704. bool Merge(const UIBatch&);
  32705. void SetColor(const Color&, bool = false);
  32706. void SetDefaultColor();
  32707. // Properties:
  32708. BlendMode blendMode;
  32709. uint color;
  32710. Vector2 invTextureSize;
  32711. IntRect scissor;
  32712. bool useGradient;
  32713. uint vertexEnd;
  32714. uint vertexStart;
  32715. // Constants:
  32716. static const Vector3 posAdjust;
  32717. };
  32718. class UIComponent
  32719. {
  32720. public:
  32721. UIComponent();
  32722. // Methods:
  32723. void AllocateNetworkState();
  32724. operator Animatable() const;
  32725. void ApplyAttributes();
  32726. void CleanupConnection(Connection);
  32727. operator Component() const;
  32728. void DrawDebugGeometry(DebugRenderer, bool);
  32729. bool GetAnimationEnabled() const;
  32730. Variant GetAttribute(const String&) const;
  32731. Variant GetAttribute(uint) const;
  32732. ValueAnimation GetAttributeAnimation(const String&) const;
  32733. float GetAttributeAnimationSpeed(const String&) const;
  32734. float GetAttributeAnimationTime(const String&) const;
  32735. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  32736. Variant GetAttributeDefault(const String&) const;
  32737. Variant GetAttributeDefault(uint) const;
  32738. bool GetBlockEvents() const;
  32739. Component GetComponent(StringHash) const;
  32740. VariantMap& GetEventDataMap() const;
  32741. Object GetEventSender() const;
  32742. uint GetID() const;
  32743. bool GetInterceptNetworkUpdate(const String&) const;
  32744. Material GetMaterial() const;
  32745. Node GetNode() const;
  32746. uint GetNumAttributes() const;
  32747. uint GetNumNetworkAttributes() const;
  32748. ObjectAnimation GetObjectAnimation() const;
  32749. ResourceRef GetObjectAnimationAttr() const;
  32750. UIElement GetRoot() const;
  32751. Scene GetScene() const;
  32752. Object GetSubsystem(StringHash) const;
  32753. Texture2D GetTexture() const;
  32754. StringHash GetType() const;
  32755. bool HasEventHandlers() const;
  32756. bool HasSubscribedToEvent(Object, StringHash) const;
  32757. bool HasSubscribedToEvent(StringHash) const;
  32758. bool IsEnabled() const;
  32759. bool IsEnabledEffective() const;
  32760. bool IsInstanceOf(StringHash) const;
  32761. bool IsReplicated() const;
  32762. bool IsTemporary() const;
  32763. bool Load(Deserializer&);
  32764. bool LoadJSON(const JSONValue&);
  32765. bool LoadXML(const XMLElement&);
  32766. void MarkNetworkUpdate();
  32767. operator Object() const;
  32768. void OnEvent(Object, StringHash, VariantMap&);
  32769. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  32770. void OnSetAttribute(const AttributeInfo&, const Variant&);
  32771. void OnSetEnabled();
  32772. void PrepareNetworkUpdate();
  32773. bool ReadDeltaUpdate(Deserializer&);
  32774. bool ReadLatestDataUpdate(Deserializer&);
  32775. operator RefCounted() const;
  32776. int Refs() const;
  32777. void Remove();
  32778. void RemoveAttributeAnimation(const String&);
  32779. void RemoveInstanceDefault();
  32780. void RemoveObjectAnimation();
  32781. void ResetToDefault();
  32782. bool Save(Serializer&) const;
  32783. bool SaveDefaultAttributes() const;
  32784. bool SaveJSON(JSONValue&) const;
  32785. bool SaveXML(XMLElement&) const;
  32786. void SendEvent(StringHash);
  32787. void SendEvent(StringHash, VariantMap&);
  32788. operator Serializable() const;
  32789. void SetAnimationEnabled(bool);
  32790. void SetAnimationTime(float);
  32791. bool SetAttribute(const String&, const Variant&);
  32792. bool SetAttribute(uint, const Variant&);
  32793. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  32794. void SetAttributeAnimationSpeed(const String&, float);
  32795. void SetAttributeAnimationTime(const String&, float);
  32796. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  32797. void SetBlockEvents(bool);
  32798. void SetEnabled(bool);
  32799. void SetGlobalVar(StringHash, const Variant&);
  32800. void SetInstanceDefault(bool);
  32801. void SetInterceptNetworkUpdate(const String&, bool);
  32802. void SetObjectAnimation(ObjectAnimation);
  32803. void SetObjectAnimationAttr(const ResourceRef&);
  32804. void SetTemporary(bool);
  32805. void SetViewportIndex(uint);
  32806. const String& GetCategory() const;
  32807. const String& GetTypeName() const;
  32808. void UnsubscribeFromAllEvents();
  32809. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32810. void UnsubscribeFromEvent(Object, StringHash);
  32811. void UnsubscribeFromEvent(StringHash);
  32812. void UnsubscribeFromEvents(Object);
  32813. const Variant& GetGlobalVar(StringHash) const;
  32814. const VariantMap& GetGlobalVars() const;
  32815. int WeakRefs() const;
  32816. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  32817. void WriteInitialDeltaUpdate(Serializer&, uint8);
  32818. void WriteLatestDataUpdate(Serializer&, uint8);
  32819. operator const Animatable() const;
  32820. operator const Component() const;
  32821. operator const Object() const;
  32822. operator const RefCounted() const;
  32823. operator const Serializable() const;
  32824. // Properties:
  32825. bool animationEnabled;
  32826. /* readonly */
  32827. Array<Variant> attributeDefaults;
  32828. /* readonly */
  32829. Array<AttributeInfo> attributeInfos;
  32830. Array<Variant> attributes;
  32831. /* readonly */
  32832. String category;
  32833. bool enabled;
  32834. /* readonly */
  32835. bool enabledEffective;
  32836. Array<Variant> globalVar;
  32837. /* readonly */
  32838. VariantMap globalVars;
  32839. /* readonly */
  32840. uint id;
  32841. /* readonly */
  32842. Material material;
  32843. /* readonly */
  32844. Node node;
  32845. /* readonly */
  32846. uint numAttributes;
  32847. ObjectAnimation objectAnimation;
  32848. /* readonly */
  32849. int refs;
  32850. /* readonly */
  32851. bool replicated;
  32852. /* readonly */
  32853. UIElement root;
  32854. bool temporary;
  32855. /* readonly */
  32856. Texture2D texture;
  32857. /* readonly */
  32858. StringHash type;
  32859. /* readonly */
  32860. String typeName;
  32861. /* readonly */
  32862. int weakRefs;
  32863. };
  32864. class UIElement
  32865. {
  32866. public:
  32867. UIElement();
  32868. UIElement(const String&in);
  32869. // Methods:
  32870. void AddChild(UIElement);
  32871. void AddTag(const String&);
  32872. void AddTags(Array<String>);
  32873. void AddTags(const String&, int8 = ';');
  32874. void AdjustScissor(IntRect&);
  32875. void AllocateNetworkState();
  32876. operator Animatable() const;
  32877. void ApplyAttributes();
  32878. operator BorderImage() const;
  32879. void BringToFront();
  32880. operator Button() const;
  32881. operator CheckBox() const;
  32882. const Color& GetColor(Corner) const;
  32883. const Color& GetColorAttr() const;
  32884. const Color& GetDerivedColor() const;
  32885. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  32886. operator Cursor() const;
  32887. void DisableLayoutUpdate();
  32888. operator DropDownList() const;
  32889. IntVector2 ElementToScreen(const IntVector2&);
  32890. void EnableLayoutUpdate();
  32891. bool FilterAttributes(XMLElement&) const;
  32892. uint FindChild(UIElement) const;
  32893. bool GetAnimationEnabled() const;
  32894. Variant GetAttribute(const String&) const;
  32895. Variant GetAttribute(uint) const;
  32896. ValueAnimation GetAttributeAnimation(const String&) const;
  32897. float GetAttributeAnimationSpeed(const String&) const;
  32898. float GetAttributeAnimationTime(const String&) const;
  32899. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  32900. Variant GetAttributeDefault(const String&) const;
  32901. Variant GetAttributeDefault(uint) const;
  32902. bool GetBlockEvents() const;
  32903. bool GetBringToBack() const;
  32904. bool GetBringToFront() const;
  32905. UIElement GetChild(const String&, bool = false) const;
  32906. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  32907. UIElement GetChild(uint) const;
  32908. Array<UIElement> GetChildren() const;
  32909. Array<UIElement> GetChildren(bool) const;
  32910. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  32911. bool GetClipChildren() const;
  32912. IntRect GetCombinedScreenRect();
  32913. XMLFile GetDefaultStyle(bool = true) const;
  32914. float GetDerivedOpacity() const;
  32915. uint GetDragButtonCombo() const;
  32916. uint GetDragButtonCount() const;
  32917. uint GetDragDropMode() const;
  32918. IntVector2 GetEffectiveMinSize() const;
  32919. UIElement GetElementEventSender() const;
  32920. bool GetEnableAnchor() const;
  32921. VariantMap& GetEventDataMap() const;
  32922. Object GetEventSender() const;
  32923. FocusMode GetFocusMode() const;
  32924. int GetHeight() const;
  32925. HorizontalAlignment GetHorizontalAlignment() const;
  32926. int GetIndent() const;
  32927. int GetIndentSpacing() const;
  32928. int GetIndentWidth() const;
  32929. bool GetInterceptNetworkUpdate(const String&) const;
  32930. int GetLayoutElementMaxSize() const;
  32931. LayoutMode GetLayoutMode() const;
  32932. int GetLayoutSpacing() const;
  32933. int GetMaxHeight() const;
  32934. int GetMaxWidth() const;
  32935. int GetMinHeight() const;
  32936. int GetMinWidth() const;
  32937. uint GetNumAttributes() const;
  32938. uint GetNumChildren(bool = false) const;
  32939. uint GetNumNetworkAttributes() const;
  32940. ObjectAnimation GetObjectAnimation() const;
  32941. ResourceRef GetObjectAnimationAttr() const;
  32942. float GetOpacity() const;
  32943. UIElement GetParent() const;
  32944. int GetPriority() const;
  32945. UIElement GetRoot() const;
  32946. bool GetSortChildren() const;
  32947. Object GetSubsystem(StringHash) const;
  32948. Array<String> GetTags() const;
  32949. TraversalMode GetTraversalMode() const;
  32950. StringHash GetType() const;
  32951. bool GetUseDerivedOpacity() const;
  32952. VerticalAlignment GetVerticalAlignment() const;
  32953. int GetWidth() const;
  32954. bool HasColorGradient() const;
  32955. bool HasEventHandlers() const;
  32956. bool HasFocus() const;
  32957. bool HasSubscribedToEvent(Object, StringHash) const;
  32958. bool HasSubscribedToEvent(StringHash) const;
  32959. bool HasTag(const String&) const;
  32960. void InsertChild(uint, UIElement);
  32961. const IntRect& GetClipBorder() const;
  32962. const IntRect& GetLayoutBorder() const;
  32963. const IntVector2& GetChildOffset() const;
  32964. const IntVector2& GetMaxOffset() const;
  32965. const IntVector2& GetMaxSize() const;
  32966. const IntVector2& GetMinOffset() const;
  32967. const IntVector2& GetMinSize() const;
  32968. const IntVector2& GetPosition() const;
  32969. const IntVector2& GetScreenPosition() const;
  32970. const IntVector2& GetSize() const;
  32971. bool IsChildOf(UIElement) const;
  32972. bool IsEditable() const;
  32973. bool IsElementEventSender() const;
  32974. bool IsEnabled() const;
  32975. bool IsEnabledSelf() const;
  32976. bool IsFixedHeight() const;
  32977. bool IsFixedSize() const;
  32978. bool IsFixedWidth() const;
  32979. bool IsHovering() const;
  32980. bool IsInside(IntVector2, bool);
  32981. bool IsInsideCombined(IntVector2, bool);
  32982. bool IsInstanceOf(StringHash) const;
  32983. bool IsInternal() const;
  32984. bool IsSelected() const;
  32985. bool IsTemporary() const;
  32986. bool IsVisible() const;
  32987. bool IsVisibleEffective() const;
  32988. bool IsWheelHandler() const;
  32989. bool IsWithinScissor(const IntRect&);
  32990. operator LineEdit() const;
  32991. operator ListView() const;
  32992. bool Load(Deserializer&);
  32993. UIElement LoadChildXML(XMLFile, XMLFile);
  32994. UIElement LoadChildXML(const XMLElement&, XMLFile);
  32995. bool LoadJSON(const JSONValue&);
  32996. bool LoadXML(Deserializer&);
  32997. bool LoadXML(File);
  32998. bool LoadXML(VectorBuffer&);
  32999. bool LoadXML(XMLFile, XMLFile);
  33000. bool LoadXML(const XMLElement&);
  33001. bool LoadXML(const XMLElement&, XMLFile);
  33002. void MarkNetworkUpdate();
  33003. operator Menu() const;
  33004. operator Object() const;
  33005. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33006. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  33007. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33008. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33009. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33010. bool OnDragDropFinish(UIElement);
  33011. bool OnDragDropTest(UIElement);
  33012. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33013. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33014. void OnEvent(Object, StringHash, VariantMap&);
  33015. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33016. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33017. void OnIndentSet();
  33018. void OnKey(uint, uint, uint);
  33019. void OnPositionSet(const IntVector2&);
  33020. void OnResize(const IntVector2&, const IntVector2&);
  33021. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33022. void OnSetEditable();
  33023. void OnTextInput(const String&);
  33024. void OnWheel(int, uint, uint);
  33025. operator ProgressBar() const;
  33026. bool ReadDeltaUpdate(Deserializer&);
  33027. bool ReadLatestDataUpdate(Deserializer&);
  33028. operator RefCounted() const;
  33029. int Refs() const;
  33030. void Remove();
  33031. void RemoveAllChildren();
  33032. void RemoveAllTags();
  33033. void RemoveAttributeAnimation(const String&);
  33034. void RemoveChild(UIElement, uint = 0);
  33035. void RemoveChild(uint);
  33036. void RemoveChildAtIndex(uint);
  33037. void RemoveInstanceDefault();
  33038. void RemoveObjectAnimation();
  33039. bool RemoveTag(const String&);
  33040. void ResetDeepEnabled();
  33041. void ResetToDefault();
  33042. bool Save(Serializer&) const;
  33043. bool SaveDefaultAttributes() const;
  33044. bool SaveJSON(JSONValue&) const;
  33045. bool SaveXML(File, const String& indentation = "\t");
  33046. bool SaveXML(Serializer&, const String& = "\t") const;
  33047. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  33048. bool SaveXML(XMLElement&) const;
  33049. IntVector2 ScreenToElement(const IntVector2&);
  33050. operator ScrollBar() const;
  33051. operator ScrollView() const;
  33052. void SendEvent(StringHash);
  33053. void SendEvent(StringHash, VariantMap&);
  33054. operator Serializable() const;
  33055. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  33056. void SetAnimationEnabled(bool);
  33057. void SetAnimationTime(float);
  33058. bool SetAttribute(const String&, const Variant&);
  33059. bool SetAttribute(uint, const Variant&);
  33060. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33061. void SetAttributeAnimationSpeed(const String&, float);
  33062. void SetAttributeAnimationTime(const String&, float);
  33063. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33064. void SetBlockEvents(bool);
  33065. void SetBringToBack(bool);
  33066. void SetBringToFront(bool);
  33067. void SetChildOffset(const IntVector2&);
  33068. void SetClipBorder(const IntRect&);
  33069. void SetClipChildren(bool);
  33070. void SetColor(Corner, const Color&);
  33071. void SetColor(const Color&);
  33072. void SetDeepEnabled(bool);
  33073. void SetDefaultStyle(XMLFile);
  33074. void SetDragDropMode(uint);
  33075. void SetEditable(bool);
  33076. void SetElementEventSender(bool);
  33077. void SetEnableAnchor(bool);
  33078. void SetEnabled(bool);
  33079. void SetEnabledRecursive(bool);
  33080. void SetFixedHeight(int);
  33081. void SetFixedSize(const IntVector2&);
  33082. void SetFixedSize(int, int);
  33083. void SetFixedWidth(int);
  33084. void SetFocus(bool);
  33085. void SetFocusMode(FocusMode);
  33086. void SetGlobalVar(StringHash, const Variant&);
  33087. void SetHeight(int);
  33088. void SetHorizontalAlignment(HorizontalAlignment);
  33089. void SetHovering(bool);
  33090. void SetIndent(int);
  33091. void SetIndentSpacing(int);
  33092. void SetInstanceDefault(bool);
  33093. void SetInterceptNetworkUpdate(const String&, bool);
  33094. void SetInternal(bool);
  33095. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  33096. void SetLayoutBorder(const IntRect&);
  33097. void SetLayoutFlexScale(const Vector2&);
  33098. void SetLayoutMode(LayoutMode);
  33099. void SetLayoutSpacing(int);
  33100. void SetMaxAnchor(const Vector2&);
  33101. void SetMaxAnchor(float, float);
  33102. void SetMaxHeight(int);
  33103. void SetMaxOffset(const IntVector2&);
  33104. void SetMaxSize(const IntVector2&);
  33105. void SetMaxSize(int, int);
  33106. void SetMaxWidth(int);
  33107. void SetMinAnchor(const Vector2&);
  33108. void SetMinAnchor(float, float);
  33109. void SetMinHeight(int);
  33110. void SetMinOffset(const IntVector2&);
  33111. void SetMinSize(const IntVector2&);
  33112. void SetMinSize(int, int);
  33113. void SetMinWidth(int);
  33114. void SetName(const String&);
  33115. void SetObjectAnimation(ObjectAnimation);
  33116. void SetObjectAnimationAttr(const ResourceRef&);
  33117. void SetOpacity(float);
  33118. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  33119. void SetPivot(const Vector2&);
  33120. void SetPivot(float, float);
  33121. void SetPosition(const IntVector2&);
  33122. void SetPosition(int, int);
  33123. void SetPriority(int);
  33124. void SetRenderTexture(Texture2D);
  33125. void SetSelected(bool);
  33126. void SetSize(const IntVector2&);
  33127. void SetSize(int, int);
  33128. void SetSortChildren(bool);
  33129. bool SetStyle(const String&, XMLFile = null);
  33130. bool SetStyle(const XMLElement&);
  33131. bool SetStyleAuto(XMLFile = null);
  33132. void SetTags(Array<String>);
  33133. void SetTemporary(bool);
  33134. void SetTraversalMode(TraversalMode);
  33135. void SetUseDerivedOpacity(bool);
  33136. void SetVar(StringHash, const Variant&);
  33137. void SetVerticalAlignment(VerticalAlignment);
  33138. void SetVisible(bool);
  33139. void SetWidth(int);
  33140. operator Slider() const;
  33141. void SortChildren();
  33142. operator Sprite() const;
  33143. const String& GetAppliedStyle() const;
  33144. const String& GetCategory() const;
  33145. const String& GetName() const;
  33146. const String& GetTypeName() const;
  33147. operator Text() const;
  33148. operator ToolTip() const;
  33149. operator UISelectable() const;
  33150. void UnsubscribeFromAllEvents();
  33151. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33152. void UnsubscribeFromEvent(Object, StringHash);
  33153. void UnsubscribeFromEvent(StringHash);
  33154. void UnsubscribeFromEvents(Object);
  33155. void Update(float);
  33156. void UpdateLayout();
  33157. const Variant& GetGlobalVar(StringHash) const;
  33158. const Variant& GetVar(const StringHash&) const;
  33159. const VariantMap& GetGlobalVars() const;
  33160. const VariantMap& GetVars() const;
  33161. const Vector2& GetLayoutFlexScale() const;
  33162. const Vector2& GetMaxAnchor() const;
  33163. const Vector2& GetMinAnchor() const;
  33164. const Vector2& GetPivot() const;
  33165. operator View3D() const;
  33166. int WeakRefs() const;
  33167. operator Window() const;
  33168. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33169. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33170. void WriteLatestDataUpdate(Serializer&, uint8);
  33171. operator const Animatable() const;
  33172. operator const BorderImage() const;
  33173. operator const Button() const;
  33174. operator const CheckBox() const;
  33175. operator const Cursor() const;
  33176. operator const DropDownList() const;
  33177. operator const LineEdit() const;
  33178. operator const ListView() const;
  33179. operator const Menu() const;
  33180. operator const Object() const;
  33181. operator const ProgressBar() const;
  33182. operator const RefCounted() const;
  33183. operator const ScrollBar() const;
  33184. operator const ScrollView() const;
  33185. operator const Serializable() const;
  33186. operator const Slider() const;
  33187. operator const Sprite() const;
  33188. operator const Text() const;
  33189. operator const ToolTip() const;
  33190. operator const UISelectable() const;
  33191. operator const View3D() const;
  33192. operator const Window() const;
  33193. // Properties:
  33194. bool animationEnabled;
  33195. /* readonly */
  33196. Array<Variant> attributeDefaults;
  33197. /* readonly */
  33198. Array<AttributeInfo> attributeInfos;
  33199. Array<Variant> attributes;
  33200. bool bringToBack;
  33201. bool bringToFront;
  33202. /* readonly */
  33203. String category;
  33204. /* readonly */
  33205. IntVector2 childOffset;
  33206. /* readonly */
  33207. Array<UIElement> children;
  33208. IntRect clipBorder;
  33209. bool clipChildren;
  33210. /* writeonly */
  33211. Color color;
  33212. /* readonly */
  33213. bool colorGradient;
  33214. Array<Color> colors;
  33215. /* readonly */
  33216. IntRect combinedScreenRect;
  33217. XMLFile defaultStyle;
  33218. /* readonly */
  33219. float derivedOpacity;
  33220. /* readonly */
  33221. uint dragButtonCombo;
  33222. /* readonly */
  33223. uint dragButtonCount;
  33224. uint dragDropMode;
  33225. bool editable;
  33226. bool elementEventSender;
  33227. bool enableAnchor;
  33228. bool enabled;
  33229. /* readonly */
  33230. bool enabledSelf;
  33231. /* readonly */
  33232. bool fixedHeight;
  33233. /* readonly */
  33234. bool fixedSize;
  33235. /* readonly */
  33236. bool fixedWidth;
  33237. bool focus;
  33238. FocusMode focusMode;
  33239. Array<Variant> globalVar;
  33240. /* readonly */
  33241. VariantMap globalVars;
  33242. int height;
  33243. HorizontalAlignment horizontalAlignment;
  33244. /* readonly */
  33245. bool hovering;
  33246. int indent;
  33247. int indentSpacing;
  33248. /* readonly */
  33249. int indentWidth;
  33250. bool internal;
  33251. IntRect layoutBorder;
  33252. Vector2 layoutFlexScale;
  33253. LayoutMode layoutMode;
  33254. int layoutSpacing;
  33255. Vector2 maxAnchor;
  33256. int maxHeight;
  33257. IntVector2 maxOffset;
  33258. IntVector2 maxSize;
  33259. int maxWidth;
  33260. Vector2 minAnchor;
  33261. int minHeight;
  33262. IntVector2 minOffset;
  33263. IntVector2 minSize;
  33264. int minWidth;
  33265. String name;
  33266. /* readonly */
  33267. uint numAllChildren;
  33268. /* readonly */
  33269. uint numAttributes;
  33270. /* readonly */
  33271. uint numChildren;
  33272. ObjectAnimation objectAnimation;
  33273. float opacity;
  33274. UIElement parent;
  33275. Vector2 pivot;
  33276. IntVector2 position;
  33277. int priority;
  33278. /* readonly */
  33279. int refs;
  33280. /* readonly */
  33281. UIElement root;
  33282. /* readonly */
  33283. IntVector2 screenPosition;
  33284. bool selected;
  33285. IntVector2 size;
  33286. bool sortChildren;
  33287. String style;
  33288. /* readonly */
  33289. Array<String> tags;
  33290. bool temporary;
  33291. TraversalMode traversalMode;
  33292. /* readonly */
  33293. StringHash type;
  33294. /* readonly */
  33295. String typeName;
  33296. bool useDerivedOpacity;
  33297. /* readonly */
  33298. VariantMap vars;
  33299. VerticalAlignment verticalAlignment;
  33300. bool visible;
  33301. /* readonly */
  33302. bool visibleEffective;
  33303. /* readonly */
  33304. int weakRefs;
  33305. int width;
  33306. };
  33307. class UISelectable
  33308. {
  33309. public:
  33310. // Methods:
  33311. void AddChild(UIElement);
  33312. void AddTag(const String&);
  33313. void AddTags(Array<String>);
  33314. void AddTags(const String&, int8 = ';');
  33315. void AdjustScissor(IntRect&);
  33316. void AllocateNetworkState();
  33317. operator Animatable() const;
  33318. void ApplyAttributes();
  33319. void BringToFront();
  33320. const Color& GetColor(Corner) const;
  33321. const Color& GetColorAttr() const;
  33322. const Color& GetDerivedColor() const;
  33323. const Color& GetHoverColor() const;
  33324. const Color& GetSelectionColor() const;
  33325. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  33326. void DisableLayoutUpdate();
  33327. IntVector2 ElementToScreen(const IntVector2&);
  33328. void EnableLayoutUpdate();
  33329. bool FilterAttributes(XMLElement&) const;
  33330. uint FindChild(UIElement) const;
  33331. bool GetAnimationEnabled() const;
  33332. Variant GetAttribute(const String&) const;
  33333. Variant GetAttribute(uint) const;
  33334. ValueAnimation GetAttributeAnimation(const String&) const;
  33335. float GetAttributeAnimationSpeed(const String&) const;
  33336. float GetAttributeAnimationTime(const String&) const;
  33337. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  33338. Variant GetAttributeDefault(const String&) const;
  33339. Variant GetAttributeDefault(uint) const;
  33340. bool GetBlockEvents() const;
  33341. bool GetBringToBack() const;
  33342. bool GetBringToFront() const;
  33343. UIElement GetChild(const String&, bool = false) const;
  33344. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  33345. UIElement GetChild(uint) const;
  33346. Array<UIElement> GetChildren() const;
  33347. Array<UIElement> GetChildren(bool) const;
  33348. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  33349. bool GetClipChildren() const;
  33350. IntRect GetCombinedScreenRect();
  33351. XMLFile GetDefaultStyle(bool = true) const;
  33352. float GetDerivedOpacity() const;
  33353. uint GetDragButtonCombo() const;
  33354. uint GetDragButtonCount() const;
  33355. uint GetDragDropMode() const;
  33356. IntVector2 GetEffectiveMinSize() const;
  33357. UIElement GetElementEventSender() const;
  33358. bool GetEnableAnchor() const;
  33359. VariantMap& GetEventDataMap() const;
  33360. Object GetEventSender() const;
  33361. FocusMode GetFocusMode() const;
  33362. int GetHeight() const;
  33363. HorizontalAlignment GetHorizontalAlignment() const;
  33364. int GetIndent() const;
  33365. int GetIndentSpacing() const;
  33366. int GetIndentWidth() const;
  33367. bool GetInterceptNetworkUpdate(const String&) const;
  33368. int GetLayoutElementMaxSize() const;
  33369. LayoutMode GetLayoutMode() const;
  33370. int GetLayoutSpacing() const;
  33371. int GetMaxHeight() const;
  33372. int GetMaxWidth() const;
  33373. int GetMinHeight() const;
  33374. int GetMinWidth() const;
  33375. uint GetNumAttributes() const;
  33376. uint GetNumChildren(bool = false) const;
  33377. uint GetNumNetworkAttributes() const;
  33378. ObjectAnimation GetObjectAnimation() const;
  33379. ResourceRef GetObjectAnimationAttr() const;
  33380. float GetOpacity() const;
  33381. UIElement GetParent() const;
  33382. int GetPriority() const;
  33383. UIElement GetRoot() const;
  33384. bool GetSortChildren() const;
  33385. Object GetSubsystem(StringHash) const;
  33386. Array<String> GetTags() const;
  33387. TraversalMode GetTraversalMode() const;
  33388. StringHash GetType() const;
  33389. bool GetUseDerivedOpacity() const;
  33390. VerticalAlignment GetVerticalAlignment() const;
  33391. int GetWidth() const;
  33392. bool HasColorGradient() const;
  33393. bool HasEventHandlers() const;
  33394. bool HasFocus() const;
  33395. bool HasSubscribedToEvent(Object, StringHash) const;
  33396. bool HasSubscribedToEvent(StringHash) const;
  33397. bool HasTag(const String&) const;
  33398. void InsertChild(uint, UIElement);
  33399. const IntRect& GetClipBorder() const;
  33400. const IntRect& GetLayoutBorder() const;
  33401. const IntVector2& GetChildOffset() const;
  33402. const IntVector2& GetMaxOffset() const;
  33403. const IntVector2& GetMaxSize() const;
  33404. const IntVector2& GetMinOffset() const;
  33405. const IntVector2& GetMinSize() const;
  33406. const IntVector2& GetPosition() const;
  33407. const IntVector2& GetScreenPosition() const;
  33408. const IntVector2& GetSize() const;
  33409. bool IsChildOf(UIElement) const;
  33410. bool IsEditable() const;
  33411. bool IsElementEventSender() const;
  33412. bool IsEnabled() const;
  33413. bool IsEnabledSelf() const;
  33414. bool IsFixedHeight() const;
  33415. bool IsFixedSize() const;
  33416. bool IsFixedWidth() const;
  33417. bool IsHovering() const;
  33418. bool IsInside(IntVector2, bool);
  33419. bool IsInsideCombined(IntVector2, bool);
  33420. bool IsInstanceOf(StringHash) const;
  33421. bool IsInternal() const;
  33422. bool IsSelected() const;
  33423. bool IsTemporary() const;
  33424. bool IsVisible() const;
  33425. bool IsVisibleEffective() const;
  33426. bool IsWheelHandler() const;
  33427. bool IsWithinScissor(const IntRect&);
  33428. bool Load(Deserializer&);
  33429. UIElement LoadChildXML(XMLFile, XMLFile);
  33430. UIElement LoadChildXML(const XMLElement&, XMLFile);
  33431. bool LoadJSON(const JSONValue&);
  33432. bool LoadXML(Deserializer&);
  33433. bool LoadXML(File);
  33434. bool LoadXML(VectorBuffer&);
  33435. bool LoadXML(XMLFile, XMLFile);
  33436. bool LoadXML(const XMLElement&);
  33437. bool LoadXML(const XMLElement&, XMLFile);
  33438. void MarkNetworkUpdate();
  33439. operator Object() const;
  33440. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33441. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  33442. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33443. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33444. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33445. bool OnDragDropFinish(UIElement);
  33446. bool OnDragDropTest(UIElement);
  33447. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33448. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33449. void OnEvent(Object, StringHash, VariantMap&);
  33450. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33451. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33452. void OnIndentSet();
  33453. void OnKey(uint, uint, uint);
  33454. void OnPositionSet(const IntVector2&);
  33455. void OnResize(const IntVector2&, const IntVector2&);
  33456. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33457. void OnSetEditable();
  33458. void OnTextInput(const String&);
  33459. void OnWheel(int, uint, uint);
  33460. bool ReadDeltaUpdate(Deserializer&);
  33461. bool ReadLatestDataUpdate(Deserializer&);
  33462. operator RefCounted() const;
  33463. int Refs() const;
  33464. void Remove();
  33465. void RemoveAllChildren();
  33466. void RemoveAllTags();
  33467. void RemoveAttributeAnimation(const String&);
  33468. void RemoveChild(UIElement, uint = 0);
  33469. void RemoveChild(uint);
  33470. void RemoveChildAtIndex(uint);
  33471. void RemoveInstanceDefault();
  33472. void RemoveObjectAnimation();
  33473. bool RemoveTag(const String&);
  33474. void ResetDeepEnabled();
  33475. void ResetToDefault();
  33476. bool Save(Serializer&) const;
  33477. bool SaveDefaultAttributes() const;
  33478. bool SaveJSON(JSONValue&) const;
  33479. bool SaveXML(File, const String& indentation = "\t");
  33480. bool SaveXML(Serializer&, const String& = "\t") const;
  33481. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  33482. bool SaveXML(XMLElement&) const;
  33483. IntVector2 ScreenToElement(const IntVector2&);
  33484. void SendEvent(StringHash);
  33485. void SendEvent(StringHash, VariantMap&);
  33486. operator Serializable() const;
  33487. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  33488. void SetAnimationEnabled(bool);
  33489. void SetAnimationTime(float);
  33490. bool SetAttribute(const String&, const Variant&);
  33491. bool SetAttribute(uint, const Variant&);
  33492. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33493. void SetAttributeAnimationSpeed(const String&, float);
  33494. void SetAttributeAnimationTime(const String&, float);
  33495. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33496. void SetBlockEvents(bool);
  33497. void SetBringToBack(bool);
  33498. void SetBringToFront(bool);
  33499. void SetChildOffset(const IntVector2&);
  33500. void SetClipBorder(const IntRect&);
  33501. void SetClipChildren(bool);
  33502. void SetColor(Corner, const Color&);
  33503. void SetColor(const Color&);
  33504. void SetDeepEnabled(bool);
  33505. void SetDefaultStyle(XMLFile);
  33506. void SetDragDropMode(uint);
  33507. void SetEditable(bool);
  33508. void SetElementEventSender(bool);
  33509. void SetEnableAnchor(bool);
  33510. void SetEnabled(bool);
  33511. void SetEnabledRecursive(bool);
  33512. void SetFixedHeight(int);
  33513. void SetFixedSize(const IntVector2&);
  33514. void SetFixedSize(int, int);
  33515. void SetFixedWidth(int);
  33516. void SetFocus(bool);
  33517. void SetFocusMode(FocusMode);
  33518. void SetGlobalVar(StringHash, const Variant&);
  33519. void SetHeight(int);
  33520. void SetHorizontalAlignment(HorizontalAlignment);
  33521. void SetHoverColor(const Color&);
  33522. void SetHovering(bool);
  33523. void SetIndent(int);
  33524. void SetIndentSpacing(int);
  33525. void SetInstanceDefault(bool);
  33526. void SetInterceptNetworkUpdate(const String&, bool);
  33527. void SetInternal(bool);
  33528. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  33529. void SetLayoutBorder(const IntRect&);
  33530. void SetLayoutFlexScale(const Vector2&);
  33531. void SetLayoutMode(LayoutMode);
  33532. void SetLayoutSpacing(int);
  33533. void SetMaxAnchor(const Vector2&);
  33534. void SetMaxAnchor(float, float);
  33535. void SetMaxHeight(int);
  33536. void SetMaxOffset(const IntVector2&);
  33537. void SetMaxSize(const IntVector2&);
  33538. void SetMaxSize(int, int);
  33539. void SetMaxWidth(int);
  33540. void SetMinAnchor(const Vector2&);
  33541. void SetMinAnchor(float, float);
  33542. void SetMinHeight(int);
  33543. void SetMinOffset(const IntVector2&);
  33544. void SetMinSize(const IntVector2&);
  33545. void SetMinSize(int, int);
  33546. void SetMinWidth(int);
  33547. void SetName(const String&);
  33548. void SetObjectAnimation(ObjectAnimation);
  33549. void SetObjectAnimationAttr(const ResourceRef&);
  33550. void SetOpacity(float);
  33551. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  33552. void SetPivot(const Vector2&);
  33553. void SetPivot(float, float);
  33554. void SetPosition(const IntVector2&);
  33555. void SetPosition(int, int);
  33556. void SetPriority(int);
  33557. void SetRenderTexture(Texture2D);
  33558. void SetSelected(bool);
  33559. void SetSelectionColor(const Color&);
  33560. void SetSize(const IntVector2&);
  33561. void SetSize(int, int);
  33562. void SetSortChildren(bool);
  33563. bool SetStyle(const String&, XMLFile = null);
  33564. bool SetStyle(const XMLElement&);
  33565. bool SetStyleAuto(XMLFile = null);
  33566. void SetTags(Array<String>);
  33567. void SetTemporary(bool);
  33568. void SetTraversalMode(TraversalMode);
  33569. void SetUseDerivedOpacity(bool);
  33570. void SetVar(StringHash, const Variant&);
  33571. void SetVerticalAlignment(VerticalAlignment);
  33572. void SetVisible(bool);
  33573. void SetWidth(int);
  33574. void SortChildren();
  33575. const String& GetAppliedStyle() const;
  33576. const String& GetCategory() const;
  33577. const String& GetName() const;
  33578. const String& GetTypeName() const;
  33579. operator Text() const;
  33580. operator UIElement() const;
  33581. void UnsubscribeFromAllEvents();
  33582. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33583. void UnsubscribeFromEvent(Object, StringHash);
  33584. void UnsubscribeFromEvent(StringHash);
  33585. void UnsubscribeFromEvents(Object);
  33586. void Update(float);
  33587. void UpdateLayout();
  33588. const Variant& GetGlobalVar(StringHash) const;
  33589. const Variant& GetVar(const StringHash&) const;
  33590. const VariantMap& GetGlobalVars() const;
  33591. const VariantMap& GetVars() const;
  33592. const Vector2& GetLayoutFlexScale() const;
  33593. const Vector2& GetMaxAnchor() const;
  33594. const Vector2& GetMinAnchor() const;
  33595. const Vector2& GetPivot() const;
  33596. int WeakRefs() const;
  33597. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33598. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33599. void WriteLatestDataUpdate(Serializer&, uint8);
  33600. operator const Animatable() const;
  33601. operator const Object() const;
  33602. operator const RefCounted() const;
  33603. operator const Serializable() const;
  33604. operator const Text() const;
  33605. operator const UIElement() const;
  33606. // Properties:
  33607. bool animationEnabled;
  33608. /* readonly */
  33609. Array<Variant> attributeDefaults;
  33610. /* readonly */
  33611. Array<AttributeInfo> attributeInfos;
  33612. Array<Variant> attributes;
  33613. bool bringToBack;
  33614. bool bringToFront;
  33615. /* readonly */
  33616. String category;
  33617. /* readonly */
  33618. IntVector2 childOffset;
  33619. /* readonly */
  33620. Array<UIElement> children;
  33621. IntRect clipBorder;
  33622. bool clipChildren;
  33623. /* writeonly */
  33624. Color color;
  33625. /* readonly */
  33626. bool colorGradient;
  33627. Array<Color> colors;
  33628. /* readonly */
  33629. IntRect combinedScreenRect;
  33630. XMLFile defaultStyle;
  33631. /* readonly */
  33632. float derivedOpacity;
  33633. /* readonly */
  33634. uint dragButtonCombo;
  33635. /* readonly */
  33636. uint dragButtonCount;
  33637. uint dragDropMode;
  33638. bool editable;
  33639. bool elementEventSender;
  33640. bool enableAnchor;
  33641. bool enabled;
  33642. /* readonly */
  33643. bool enabledSelf;
  33644. /* readonly */
  33645. bool fixedHeight;
  33646. /* readonly */
  33647. bool fixedSize;
  33648. /* readonly */
  33649. bool fixedWidth;
  33650. bool focus;
  33651. FocusMode focusMode;
  33652. Array<Variant> globalVar;
  33653. /* readonly */
  33654. VariantMap globalVars;
  33655. int height;
  33656. HorizontalAlignment horizontalAlignment;
  33657. Color hoverColor;
  33658. /* readonly */
  33659. bool hovering;
  33660. int indent;
  33661. int indentSpacing;
  33662. /* readonly */
  33663. int indentWidth;
  33664. bool internal;
  33665. IntRect layoutBorder;
  33666. Vector2 layoutFlexScale;
  33667. LayoutMode layoutMode;
  33668. int layoutSpacing;
  33669. Vector2 maxAnchor;
  33670. int maxHeight;
  33671. IntVector2 maxOffset;
  33672. IntVector2 maxSize;
  33673. int maxWidth;
  33674. Vector2 minAnchor;
  33675. int minHeight;
  33676. IntVector2 minOffset;
  33677. IntVector2 minSize;
  33678. int minWidth;
  33679. String name;
  33680. /* readonly */
  33681. uint numAllChildren;
  33682. /* readonly */
  33683. uint numAttributes;
  33684. /* readonly */
  33685. uint numChildren;
  33686. ObjectAnimation objectAnimation;
  33687. float opacity;
  33688. UIElement parent;
  33689. Vector2 pivot;
  33690. IntVector2 position;
  33691. int priority;
  33692. /* readonly */
  33693. int refs;
  33694. /* readonly */
  33695. UIElement root;
  33696. /* readonly */
  33697. IntVector2 screenPosition;
  33698. bool selected;
  33699. Color selectionColor;
  33700. IntVector2 size;
  33701. bool sortChildren;
  33702. String style;
  33703. /* readonly */
  33704. Array<String> tags;
  33705. bool temporary;
  33706. TraversalMode traversalMode;
  33707. /* readonly */
  33708. StringHash type;
  33709. /* readonly */
  33710. String typeName;
  33711. bool useDerivedOpacity;
  33712. /* readonly */
  33713. VariantMap vars;
  33714. VerticalAlignment verticalAlignment;
  33715. bool visible;
  33716. /* readonly */
  33717. bool visibleEffective;
  33718. /* readonly */
  33719. int weakRefs;
  33720. int width;
  33721. };
  33722. class UnknownComponent
  33723. {
  33724. public:
  33725. // Methods:
  33726. void AllocateNetworkState();
  33727. operator Animatable() const;
  33728. void ApplyAttributes();
  33729. void CleanupConnection(Connection);
  33730. operator Component() const;
  33731. void DrawDebugGeometry(DebugRenderer, bool);
  33732. bool GetAnimationEnabled() const;
  33733. Variant GetAttribute(const String&) const;
  33734. Variant GetAttribute(uint) const;
  33735. ValueAnimation GetAttributeAnimation(const String&) const;
  33736. float GetAttributeAnimationSpeed(const String&) const;
  33737. float GetAttributeAnimationTime(const String&) const;
  33738. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  33739. Variant GetAttributeDefault(const String&) const;
  33740. Variant GetAttributeDefault(uint) const;
  33741. bool GetBlockEvents() const;
  33742. Component GetComponent(StringHash) const;
  33743. VariantMap& GetEventDataMap() const;
  33744. Object GetEventSender() const;
  33745. uint GetID() const;
  33746. bool GetInterceptNetworkUpdate(const String&) const;
  33747. Node GetNode() const;
  33748. uint GetNumAttributes() const;
  33749. uint GetNumNetworkAttributes() const;
  33750. ObjectAnimation GetObjectAnimation() const;
  33751. ResourceRef GetObjectAnimationAttr() const;
  33752. Scene GetScene() const;
  33753. Object GetSubsystem(StringHash) const;
  33754. StringHash GetType() const;
  33755. bool GetUseXML() const;
  33756. Array<String> GetXMLAttributes() const;
  33757. bool HasEventHandlers() const;
  33758. bool HasSubscribedToEvent(Object, StringHash) const;
  33759. bool HasSubscribedToEvent(StringHash) const;
  33760. bool IsEnabled() const;
  33761. bool IsEnabledEffective() const;
  33762. bool IsInstanceOf(StringHash) const;
  33763. bool IsReplicated() const;
  33764. bool IsTemporary() const;
  33765. bool Load(Deserializer&);
  33766. bool LoadJSON(const JSONValue&);
  33767. bool LoadXML(const XMLElement&);
  33768. void MarkNetworkUpdate();
  33769. operator Object() const;
  33770. void OnEvent(Object, StringHash, VariantMap&);
  33771. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33772. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33773. void OnSetEnabled();
  33774. void PrepareNetworkUpdate();
  33775. bool ReadDeltaUpdate(Deserializer&);
  33776. bool ReadLatestDataUpdate(Deserializer&);
  33777. operator RefCounted() const;
  33778. int Refs() const;
  33779. void Remove();
  33780. void RemoveAttributeAnimation(const String&);
  33781. void RemoveInstanceDefault();
  33782. void RemoveObjectAnimation();
  33783. void ResetToDefault();
  33784. bool Save(Serializer&) const;
  33785. bool SaveDefaultAttributes() const;
  33786. bool SaveJSON(JSONValue&) const;
  33787. bool SaveXML(XMLElement&) const;
  33788. void SendEvent(StringHash);
  33789. void SendEvent(StringHash, VariantMap&);
  33790. operator Serializable() const;
  33791. void SetAnimationEnabled(bool);
  33792. void SetAnimationTime(float);
  33793. bool SetAttribute(const String&, const Variant&);
  33794. bool SetAttribute(uint, const Variant&);
  33795. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33796. void SetAttributeAnimationSpeed(const String&, float);
  33797. void SetAttributeAnimationTime(const String&, float);
  33798. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33799. void SetBlockEvents(bool);
  33800. void SetEnabled(bool);
  33801. void SetGlobalVar(StringHash, const Variant&);
  33802. void SetInstanceDefault(bool);
  33803. void SetInterceptNetworkUpdate(const String&, bool);
  33804. void SetObjectAnimation(ObjectAnimation);
  33805. void SetObjectAnimationAttr(const ResourceRef&);
  33806. void SetTemporary(bool);
  33807. void SetType(StringHash);
  33808. void SetTypeName(const String&);
  33809. const String& GetCategory() const;
  33810. const String& GetTypeName() const;
  33811. void UnsubscribeFromAllEvents();
  33812. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33813. void UnsubscribeFromEvent(Object, StringHash);
  33814. void UnsubscribeFromEvent(StringHash);
  33815. void UnsubscribeFromEvents(Object);
  33816. const Variant& GetGlobalVar(StringHash) const;
  33817. const VariantMap& GetGlobalVars() const;
  33818. int WeakRefs() const;
  33819. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33820. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33821. void WriteLatestDataUpdate(Serializer&, uint8);
  33822. operator const Animatable() const;
  33823. operator const Component() const;
  33824. operator const Object() const;
  33825. operator const RefCounted() const;
  33826. operator const Serializable() const;
  33827. // Properties:
  33828. bool animationEnabled;
  33829. /* readonly */
  33830. Array<Variant> attributeDefaults;
  33831. /* readonly */
  33832. Array<AttributeInfo> attributeInfos;
  33833. Array<Variant> attributes;
  33834. /* readonly */
  33835. String category;
  33836. bool enabled;
  33837. /* readonly */
  33838. bool enabledEffective;
  33839. Array<Variant> globalVar;
  33840. /* readonly */
  33841. VariantMap globalVars;
  33842. /* readonly */
  33843. uint id;
  33844. /* readonly */
  33845. Node node;
  33846. /* readonly */
  33847. uint numAttributes;
  33848. ObjectAnimation objectAnimation;
  33849. /* readonly */
  33850. int refs;
  33851. /* readonly */
  33852. bool replicated;
  33853. bool temporary;
  33854. /* readonly */
  33855. StringHash type;
  33856. /* readonly */
  33857. String typeName;
  33858. /* readonly */
  33859. int weakRefs;
  33860. };
  33861. class VAnimEventFrame
  33862. {
  33863. public:
  33864. ~VAnimEventFrame();
  33865. VAnimEventFrame();
  33866. // Methods:
  33867. VAnimEventFrame& operator=(const VAnimEventFrame&);
  33868. // Properties:
  33869. VariantMap eventData;
  33870. StringHash eventType;
  33871. float time;
  33872. };
  33873. class VAnimKeyFrame
  33874. {
  33875. public:
  33876. ~VAnimKeyFrame();
  33877. VAnimKeyFrame();
  33878. // Methods:
  33879. VAnimKeyFrame& operator=(const VAnimKeyFrame&);
  33880. // Properties:
  33881. float time;
  33882. Variant value;
  33883. };
  33884. class ValueAnimation
  33885. {
  33886. public:
  33887. ValueAnimation();
  33888. // Methods:
  33889. bool BeginLoad(Deserializer&);
  33890. bool EndLoad();
  33891. Variant GetAnimationValue(float) const;
  33892. AsyncLoadState GetAsyncLoadState() const;
  33893. float GetBeginTime() const;
  33894. bool GetBlockEvents() const;
  33895. float GetEndTime() const;
  33896. VariantMap& GetEventDataMap() const;
  33897. Object GetEventSender() const;
  33898. InterpMethod GetInterpolationMethod() const;
  33899. uint GetMemoryUse() const;
  33900. StringHash GetNameHash() const;
  33901. float GetSplineTension() const;
  33902. Object GetSubsystem(StringHash) const;
  33903. StringHash GetType() const;
  33904. uint GetUseTimer();
  33905. VariantType GetValueType() const;
  33906. bool HasEventFrames() const;
  33907. bool HasEventHandlers() const;
  33908. bool HasSubscribedToEvent(Object, StringHash) const;
  33909. bool HasSubscribedToEvent(StringHash) const;
  33910. bool IsInstanceOf(StringHash) const;
  33911. bool IsValid() const;
  33912. bool Load(Deserializer&);
  33913. bool Load(File);
  33914. bool Load(VectorBuffer&);
  33915. bool Load(const String&);
  33916. bool LoadFile(const String&);
  33917. bool LoadJSON(const JSONValue&);
  33918. bool LoadXML(const XMLElement&);
  33919. operator Object() const;
  33920. void OnEvent(Object, StringHash, VariantMap&);
  33921. operator RefCounted() const;
  33922. int Refs() const;
  33923. void ResetUseTimer();
  33924. operator Resource() const;
  33925. bool Save(File) const;
  33926. bool Save(Serializer&) const;
  33927. bool Save(VectorBuffer&) const;
  33928. bool Save(const String&) const;
  33929. bool SaveFile(const String&) const;
  33930. bool SaveJSON(JSONValue&) const;
  33931. bool SaveXML(XMLElement&) const;
  33932. void SendEvent(StringHash);
  33933. void SendEvent(StringHash, VariantMap&);
  33934. void SetAsyncLoadState(AsyncLoadState);
  33935. void SetBlockEvents(bool);
  33936. void SetEventFrame(float, const StringHash&, const VariantMap& = VariantMap ( ));
  33937. void SetGlobalVar(StringHash, const Variant&);
  33938. void SetInterpolationMethod(InterpMethod);
  33939. bool SetKeyFrame(float, const Variant&);
  33940. void SetMemoryUse(uint);
  33941. void SetName(const String&);
  33942. void SetSplineTension(float);
  33943. void SetValueType(VariantType);
  33944. const String& GetCategory() const;
  33945. const String& GetName() const;
  33946. const String& GetTypeName() const;
  33947. void UnsubscribeFromAllEvents();
  33948. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33949. void UnsubscribeFromEvent(Object, StringHash);
  33950. void UnsubscribeFromEvent(StringHash);
  33951. void UnsubscribeFromEvents(Object);
  33952. const Variant& GetGlobalVar(StringHash) const;
  33953. const VariantMap& GetGlobalVars() const;
  33954. int WeakRefs() const;
  33955. operator const Object() const;
  33956. operator const RefCounted() const;
  33957. operator const Resource() const;
  33958. // Properties:
  33959. /* readonly */
  33960. String category;
  33961. Array<Variant> globalVar;
  33962. /* readonly */
  33963. VariantMap globalVars;
  33964. InterpMethod interpolationMethod;
  33965. /* readonly */
  33966. uint memoryUse;
  33967. String name;
  33968. /* readonly */
  33969. int refs;
  33970. float splineTension;
  33971. /* readonly */
  33972. StringHash type;
  33973. /* readonly */
  33974. String typeName;
  33975. /* readonly */
  33976. uint useTimer;
  33977. VariantType valueType;
  33978. /* readonly */
  33979. int weakRefs;
  33980. };
  33981. class ValueAnimationInfo
  33982. {
  33983. public:
  33984. ValueAnimationInfo(ValueAnimation&, WrapMode, float);
  33985. ValueAnimationInfo(Object&, ValueAnimation&, WrapMode, float);
  33986. ValueAnimationInfo(const ValueAnimationInfo&in);
  33987. // Methods:
  33988. operator AttributeAnimationInfo() const;
  33989. ValueAnimation GetAnimation() const;
  33990. float GetSpeed() const;
  33991. Object GetTarget() const;
  33992. float GetTime() const;
  33993. WrapMode GetWrapMode() const;
  33994. operator RefCounted() const;
  33995. int Refs() const;
  33996. void SetSpeed(float);
  33997. bool SetTime(float);
  33998. void SetWrapMode(WrapMode);
  33999. operator ShaderParameterAnimationInfo() const;
  34000. bool Update(float);
  34001. int WeakRefs() const;
  34002. operator const AttributeAnimationInfo() const;
  34003. operator const RefCounted() const;
  34004. operator const ShaderParameterAnimationInfo() const;
  34005. // Properties:
  34006. /* readonly */
  34007. int refs;
  34008. /* readonly */
  34009. int weakRefs;
  34010. };
  34011. class Variant
  34012. {
  34013. public:
  34014. ~Variant();
  34015. Variant();
  34016. Variant(int);
  34017. Variant(int64);
  34018. Variant(uint);
  34019. Variant(uint64);
  34020. Variant(const StringHash&in);
  34021. Variant(bool);
  34022. Variant(float);
  34023. Variant(double);
  34024. Variant(const Vector2&in);
  34025. Variant(const Vector3&in);
  34026. Variant(const Vector4&in);
  34027. Variant(const Quaternion&in);
  34028. Variant(const Color&in);
  34029. Variant(const String&in);
  34030. Variant(const VectorBuffer&in);
  34031. Variant(const ResourceRef&in);
  34032. Variant(const ResourceRefList&in);
  34033. Variant(const VariantMap&in);
  34034. Variant(String[]@);
  34035. Variant(const Rect&in);
  34036. Variant(const IntRect&in);
  34037. Variant(const IntVector2&in);
  34038. Variant(const IntVector3&in);
  34039. Variant(RefCounted@);
  34040. Variant(const Matrix3&in);
  34041. Variant(const Matrix3x4&in);
  34042. Variant(const Matrix4&in);
  34043. Variant(const String&in, const String&in);
  34044. Variant(VariantType, const String&in);
  34045. Variant(const Variant&in);
  34046. Variant(ScriptObject@);
  34047. Variant(const Variant[]@);
  34048. // Methods:
  34049. Variant& operator=(RefCounted);
  34050. Variant& operator=(ScriptObject);
  34051. Variant& operator=(Array<String>);
  34052. Variant& operator=(bool);
  34053. Variant& operator=(const Color&);
  34054. Variant& operator=(const IntRect&);
  34055. Variant& operator=(const IntVector2&);
  34056. Variant& operator=(const IntVector3&);
  34057. Variant& operator=(const Matrix3&);
  34058. Variant& operator=(const Matrix3x4&);
  34059. Variant& operator=(const Matrix4&);
  34060. Variant& operator=(const Quaternion&);
  34061. Variant& operator=(const Rect&);
  34062. Variant& operator=(const ResourceRef&);
  34063. Variant& operator=(const ResourceRefList&);
  34064. Variant& operator=(const String&);
  34065. Variant& operator=(const StringHash&);
  34066. Variant& operator=(const Variant&);
  34067. Variant& operator=(const VariantMap&);
  34068. Variant& operator=(const Array<Variant>);
  34069. Variant& operator=(const Vector2&);
  34070. Variant& operator=(const Vector3&);
  34071. Variant& operator=(const Vector4&);
  34072. Variant& operator=(const VectorBuffer&);
  34073. Variant& operator=(double);
  34074. Variant& operator=(float);
  34075. Variant& operator=(int);
  34076. Variant& operator=(int64);
  34077. Variant& operator=(uint);
  34078. Variant& operator=(uint64);
  34079. bool operator==(RefCounted) const;
  34080. bool operator==(ScriptObject) const;
  34081. bool operator==(Array<String>) const;
  34082. bool operator==(bool) const;
  34083. bool operator==(const Color&) const;
  34084. bool operator==(const IntRect&) const;
  34085. bool operator==(const IntVector2&) const;
  34086. bool operator==(const IntVector3&) const;
  34087. bool operator==(const Matrix3&) const;
  34088. bool operator==(const Matrix3x4&) const;
  34089. bool operator==(const Matrix4&) const;
  34090. bool operator==(const Quaternion&) const;
  34091. bool operator==(const Rect&) const;
  34092. bool operator==(const ResourceRef&) const;
  34093. bool operator==(const ResourceRefList&) const;
  34094. bool operator==(const String&) const;
  34095. bool operator==(const StringHash&) const;
  34096. bool operator==(const Variant&) const;
  34097. bool operator==(const VariantMap&) const;
  34098. bool operator==(const Array<Variant>);
  34099. bool operator==(const Vector2&) const;
  34100. bool operator==(const Vector3&) const;
  34101. bool operator==(const Vector4&) const;
  34102. bool operator==(const VectorBuffer&) const;
  34103. bool operator==(double) const;
  34104. bool operator==(float) const;
  34105. bool operator==(int) const;
  34106. bool operator==(int64) const;
  34107. bool operator==(uint) const;
  34108. bool operator==(uint64) const;
  34109. void Clear();
  34110. const Color& GetColor() const;
  34111. void FromString(VariantType, const String&);
  34112. void FromString(const String&, const String&);
  34113. bool GetBool() const;
  34114. VectorBuffer GetBuffer() const;
  34115. double GetDouble() const;
  34116. float GetFloat() const;
  34117. int GetInt() const;
  34118. int64 GetInt64() const;
  34119. RefCounted GetPtr() const;
  34120. ScriptObject GetScriptObject() const;
  34121. StringHash GetStringHash() const;
  34122. Array<String> GetStringVector() const;
  34123. VariantType GetType() const;
  34124. String GetTypeName() const;
  34125. uint GetUInt() const;
  34126. uint64 GetUInt64() const;
  34127. Array<Variant> GetVariantVector() const;
  34128. VectorBuffer GetVectorBuffer() const;
  34129. const IntRect& GetIntRect() const;
  34130. const IntVector2& GetIntVector2() const;
  34131. const IntVector3& GetIntVector3() const;
  34132. bool IsCustom() const;
  34133. bool IsEmpty() const;
  34134. bool IsZero() const;
  34135. const Matrix3& GetMatrix3() const;
  34136. const Matrix3x4& GetMatrix3x4() const;
  34137. const Matrix4& GetMatrix4() const;
  34138. const Quaternion& GetQuaternion() const;
  34139. const Rect& GetRect() const;
  34140. const ResourceRef& GetResourceRef() const;
  34141. const ResourceRefList& GetResourceRefList() const;
  34142. const String& GetString() const;
  34143. String ToString() const;
  34144. const VariantMap& GetVariantMap() const;
  34145. const Vector2& GetVector2() const;
  34146. const Vector3& GetVector3() const;
  34147. const Vector4& GetVector4() const;
  34148. // Properties:
  34149. /* readonly */
  34150. bool empty;
  34151. /* readonly */
  34152. VariantType type;
  34153. /* readonly */
  34154. String typeName;
  34155. /* readonly */
  34156. bool zero;
  34157. // Constants:
  34158. static const Variant EMPTY;
  34159. static const ResourceRef emptyResourceRef;
  34160. static const ResourceRefList emptyResourceRefList;
  34161. static const VariantMap emptyVariantMap;
  34162. };
  34163. class VariantMap
  34164. {
  34165. public:
  34166. ~VariantMap();
  34167. VariantMap();
  34168. VariantMap(const VariantMap&in);
  34169. // Methods:
  34170. VariantMap& operator=(const VariantMap&);
  34171. Variant& operator[](StringHash);
  34172. void Clear();
  34173. bool Contains(StringHash) const;
  34174. bool Erase(StringHash);
  34175. // Properties:
  34176. /* readonly */
  34177. Array<StringHash> keys;
  34178. /* readonly */
  34179. uint length;
  34180. /* readonly */
  34181. Array<Variant> values;
  34182. };
  34183. class Vector2
  34184. {
  34185. public:
  34186. Vector2();
  34187. Vector2(const Vector2&in);
  34188. Vector2(const IntVector2&in);
  34189. Vector2(float, float);
  34190. Vector2(float[]&inout);
  34191. // Methods:
  34192. Vector2 operator+(const Vector2&) const;
  34193. Vector2& operator+=(const Vector2&);
  34194. Vector2& operator=(const Vector2&);
  34195. bool operator==(const Vector2&) const;
  34196. Vector2 Abs() const;
  34197. float AbsDotProduct(const Vector2&) const;
  34198. float Angle(const Vector2&) const;
  34199. float DotProduct(const Vector2&) const;
  34200. bool Equals(const Vector2&) const;
  34201. bool IsInf() const;
  34202. bool IsNaN() const;
  34203. float Length() const;
  34204. float LengthSquared() const;
  34205. Vector2 Lerp(const Vector2&, float) const;
  34206. void Normalize();
  34207. Vector2 Normalized() const;
  34208. Vector2 NormalizedOrDefault(const Vector2& = Vector2 :: ZERO, float = M_LARGE_EPSILON) const;
  34209. float ProjectOntoAxis(const Vector2&) const;
  34210. Vector2 ReNormalized(float, float, const Vector2& = Vector2 :: ZERO, float = M_LARGE_EPSILON) const;
  34211. String ToString() const;
  34212. // Properties:
  34213. /* readonly */
  34214. Array<float> data;
  34215. /* readonly */
  34216. float length;
  34217. /* readonly */
  34218. float lengthSquared;
  34219. float x;
  34220. float y;
  34221. // Constants:
  34222. static const Vector2 DOWN;
  34223. static const Vector2 LEFT;
  34224. static const Vector2 ONE;
  34225. static const Vector2 RIGHT;
  34226. static const Vector2 UP;
  34227. static const Vector2 ZERO;
  34228. };
  34229. class Vector3
  34230. {
  34231. public:
  34232. Vector3();
  34233. Vector3(const Vector3&in);
  34234. Vector3(const Vector2&in, float);
  34235. Vector3(const Vector2&in);
  34236. Vector3(const IntVector3&in);
  34237. Vector3(float, float, float);
  34238. Vector3(float, float);
  34239. Vector3(float[]&inout);
  34240. // Methods:
  34241. Vector3 operator+(const Vector3&) const;
  34242. Vector3& operator+=(const Vector3&);
  34243. Vector3& operator=(const Vector3&);
  34244. bool operator==(const Vector3&) const;
  34245. Vector3 Abs() const;
  34246. float AbsDotProduct(const Vector3&) const;
  34247. float Angle(const Vector3&) const;
  34248. Vector3 CrossProduct(const Vector3&) const;
  34249. float DistanceToPlane(const Vector3&, const Vector3&) const;
  34250. float DistanceToPoint(const Vector3&) const;
  34251. float DotProduct(const Vector3&) const;
  34252. bool Equals(const Vector3&) const;
  34253. bool IsInf() const;
  34254. bool IsNaN() const;
  34255. float Length() const;
  34256. float LengthSquared() const;
  34257. Vector3 Lerp(const Vector3&, float) const;
  34258. void Normalize();
  34259. Vector3 Normalized() const;
  34260. Vector3 NormalizedOrDefault(const Vector3& = Vector3 :: ZERO, float = M_LARGE_EPSILON) const;
  34261. Vector3 Orthogonalize(const Vector3&) const;
  34262. float ProjectOntoAxis(const Vector3&) const;
  34263. Vector3 ProjectOntoLine(const Vector3&, const Vector3&, bool = false) const;
  34264. Vector3 ProjectOntoPlane(const Vector3&, const Vector3&) const;
  34265. Vector3 ReNormalized(float, float, const Vector3& = Vector3 :: ZERO, float = M_LARGE_EPSILON) const;
  34266. uint ToHash() const;
  34267. String ToString() const;
  34268. // Properties:
  34269. /* readonly */
  34270. Array<float> data;
  34271. /* readonly */
  34272. float length;
  34273. /* readonly */
  34274. float lengthSquared;
  34275. float x;
  34276. float y;
  34277. float z;
  34278. // Constants:
  34279. static const Vector3 BACK;
  34280. static const Vector3 DOWN;
  34281. static const Vector3 FORWARD;
  34282. static const Vector3 LEFT;
  34283. static const Vector3 ONE;
  34284. static const Vector3 RIGHT;
  34285. static const Vector3 UP;
  34286. static const Vector3 ZERO;
  34287. };
  34288. class Vector4
  34289. {
  34290. public:
  34291. Vector4();
  34292. Vector4(const Vector4&in);
  34293. Vector4(const Vector3&in, float);
  34294. Vector4(float, float, float, float);
  34295. Vector4(float[]&inout);
  34296. // Methods:
  34297. Vector4 operator+(const Vector4&) const;
  34298. Vector4& operator+=(const Vector4&);
  34299. Vector4& operator=(const Vector4&);
  34300. bool operator==(const Vector4&) const;
  34301. float& operator[](uint);
  34302. float operator[](uint) const;
  34303. Vector4 Abs() const;
  34304. float AbsDotProduct(const Vector4&) const;
  34305. float DotProduct(const Vector4&) const;
  34306. bool Equals(const Vector4&) const;
  34307. bool IsInf() const;
  34308. bool IsNaN() const;
  34309. Vector4 Lerp(const Vector4&, float) const;
  34310. float ProjectOntoAxis(const Vector3&) const;
  34311. uint ToHash() const;
  34312. String ToString() const;
  34313. // Properties:
  34314. /* readonly */
  34315. Array<float> data;
  34316. float w;
  34317. float x;
  34318. float y;
  34319. float z;
  34320. // Constants:
  34321. static const Vector4 ONE;
  34322. static const Vector4 ZERO;
  34323. };
  34324. class VectorBase
  34325. {
  34326. public:
  34327. ~VectorBase();
  34328. VectorBase();
  34329. // Methods:
  34330. VectorBase& operator=(const VectorBase&);
  34331. void Swap(VectorBase&);
  34332. };
  34333. class VectorBuffer
  34334. {
  34335. public:
  34336. ~VectorBuffer();
  34337. VectorBuffer();
  34338. VectorBuffer(Deserializer&inout, uint);
  34339. // Methods:
  34340. VectorBuffer& operator=(const VectorBuffer&);
  34341. uint8& operator[](uint);
  34342. void Clear();
  34343. uint GetChecksum();
  34344. uint GetPosition() const;
  34345. uint GetSize() const;
  34346. bool IsEof() const;
  34347. Array<uint8> Read(uint);
  34348. bool ReadBool();
  34349. BoundingBox ReadBoundingBox();
  34350. int8 ReadByte();
  34351. Color ReadColor();
  34352. double ReadDouble();
  34353. String ReadFileID();
  34354. float ReadFloat();
  34355. int ReadInt();
  34356. int64 ReadInt64();
  34357. IntRect ReadIntRect();
  34358. IntVector2 ReadIntVector2();
  34359. IntVector3 ReadIntVector3();
  34360. String ReadLine();
  34361. Matrix3 ReadMatrix3();
  34362. Matrix3x4 ReadMatrix3x4();
  34363. Matrix4 ReadMatrix4();
  34364. uint ReadNetID();
  34365. Quaternion ReadPackedQuaternion();
  34366. Vector3 ReadPackedVector3(float);
  34367. Quaternion ReadQuaternion();
  34368. Rect ReadRect();
  34369. ResourceRef ReadResourceRef();
  34370. ResourceRefList ReadResourceRefList();
  34371. int16 ReadShort();
  34372. String ReadString();
  34373. StringHash ReadStringHash();
  34374. Array<String> ReadStringVector();
  34375. uint8 ReadUByte();
  34376. uint ReadUInt();
  34377. uint64 ReadUInt64();
  34378. uint16 ReadUShort();
  34379. uint ReadVLE();
  34380. Variant ReadVariant();
  34381. Variant ReadVariant(VariantType);
  34382. VariantMap ReadVariantMap();
  34383. Vector2 ReadVector2();
  34384. Vector3 ReadVector3();
  34385. Vector4 ReadVector4();
  34386. VectorBuffer ReadVectorBuffer(uint);
  34387. void Resize(uint);
  34388. uint Seek(uint);
  34389. uint SeekRelative(int);
  34390. void SetData(Deserializer&, uint);
  34391. void SetName(const String&);
  34392. const String& GetName() const;
  34393. uint Tell() const;
  34394. uint Write(Array<uint8>);
  34395. bool WriteBool(bool);
  34396. bool WriteBoundingBox(const BoundingBox&);
  34397. bool WriteByte(int8);
  34398. bool WriteColor(const Color&);
  34399. bool WriteDouble(double);
  34400. bool WriteFileID(const String&);
  34401. bool WriteFloat(float);
  34402. bool WriteInt(int);
  34403. bool WriteInt64(int64);
  34404. bool WriteIntRect(const IntRect&);
  34405. bool WriteIntVector2(const IntVector2&);
  34406. bool WriteIntVector3(const IntVector3&);
  34407. bool WriteLine(const String&);
  34408. bool WriteMatrix3(const Matrix3&);
  34409. bool WriteMatrix3x4(const Matrix3x4&);
  34410. bool WriteMatrix4(const Matrix4&);
  34411. bool WriteNetID(uint);
  34412. bool WritePackedQuaternion(const Quaternion&);
  34413. bool WritePackedVector3(const Vector3&, float);
  34414. bool WriteQuaternion(const Quaternion&);
  34415. bool WriteRect(const Rect&);
  34416. bool WriteResourceRef(const ResourceRef&);
  34417. bool WriteResourceRefList(const ResourceRefList&);
  34418. bool WriteShort(int16);
  34419. bool WriteString(const String&);
  34420. bool WriteStringHash(const StringHash&);
  34421. bool WriteStringVector(Array<String>);
  34422. bool WriteUByte(uint8);
  34423. bool WriteUInt(uint);
  34424. bool WriteUInt64(uint64);
  34425. bool WriteUShort(uint16);
  34426. bool WriteVLE(uint);
  34427. bool WriteVariant(const Variant&);
  34428. bool WriteVariantData(const Variant&);
  34429. bool WriteVariantMap(const VariantMap&);
  34430. bool WriteVector2(const Vector2&);
  34431. bool WriteVector3(const Vector3&);
  34432. bool WriteVector4(const Vector4&);
  34433. bool WriteVectorBuffer(const VectorBuffer&);
  34434. const uint8& operator[](uint) const;
  34435. // Properties:
  34436. /* readonly */
  34437. uint checksum;
  34438. /* readonly */
  34439. bool eof;
  34440. String name;
  34441. /* readonly */
  34442. uint position;
  34443. /* readonly */
  34444. uint size;
  34445. };
  34446. class Vertex2D
  34447. {
  34448. public:
  34449. ~Vertex2D();
  34450. Vertex2D();
  34451. // Methods:
  34452. Vertex2D& operator=(const Vertex2D&);
  34453. // Properties:
  34454. uint color;
  34455. Vector3 position;
  34456. Vector2 uv;
  34457. };
  34458. class VertexBuffer
  34459. {
  34460. public:
  34461. VertexBuffer(bool = false);
  34462. // Methods:
  34463. void ClearDataLost();
  34464. bool GetBlockEvents() const;
  34465. uint64 GetBufferHash(uint);
  34466. VectorBuffer GetData() const;
  34467. uint GetElementMask() const;
  34468. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  34469. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  34470. Array<VertexElement> GetElements() const;
  34471. VariantMap& GetEventDataMap() const;
  34472. Object GetEventSender() const;
  34473. uint GetGPUObjectName() const;
  34474. Graphics GetGraphics() const;
  34475. Object GetSubsystem(StringHash) const;
  34476. StringHash GetType() const;
  34477. uint GetVertexCount() const;
  34478. uint GetVertexSize() const;
  34479. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  34480. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  34481. bool HasEventHandlers() const;
  34482. bool HasPendingData() const;
  34483. bool HasSubscribedToEvent(Object, StringHash) const;
  34484. bool HasSubscribedToEvent(StringHash) const;
  34485. bool IsDataLost() const;
  34486. bool IsDynamic() const;
  34487. bool IsInstanceOf(StringHash) const;
  34488. bool IsLocked() const;
  34489. bool IsShadowed() const;
  34490. operator Object() const;
  34491. void OnDeviceLost();
  34492. void OnDeviceReset();
  34493. void OnEvent(Object, StringHash, VariantMap&);
  34494. operator RefCounted() const;
  34495. int Refs() const;
  34496. void Release();
  34497. void SendEvent(StringHash);
  34498. void SendEvent(StringHash, VariantMap&);
  34499. void SetBlockEvents(bool);
  34500. bool SetData(VectorBuffer&);
  34501. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  34502. void SetGlobalVar(StringHash, const Variant&);
  34503. void SetShadowed(bool);
  34504. bool SetSize(uint, Array<VertexElement>, bool = false);
  34505. bool SetSize(uint, uint, bool = false);
  34506. const String& GetCategory() const;
  34507. const String& GetTypeName() const;
  34508. void Unlock();
  34509. void UnsubscribeFromAllEvents();
  34510. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  34511. void UnsubscribeFromEvent(Object, StringHash);
  34512. void UnsubscribeFromEvent(StringHash);
  34513. void UnsubscribeFromEvents(Object);
  34514. const Variant& GetGlobalVar(StringHash) const;
  34515. const VariantMap& GetGlobalVars() const;
  34516. int WeakRefs() const;
  34517. operator const Object() const;
  34518. operator const RefCounted() const;
  34519. // Properties:
  34520. /* readonly */
  34521. String category;
  34522. /* readonly */
  34523. bool dataLost;
  34524. /* readonly */
  34525. bool dynamic;
  34526. /* readonly */
  34527. uint elementMask;
  34528. /* readonly */
  34529. Array<VertexElement> elements;
  34530. Array<Variant> globalVar;
  34531. /* readonly */
  34532. VariantMap globalVars;
  34533. /* readonly */
  34534. int refs;
  34535. bool shadowed;
  34536. /* readonly */
  34537. StringHash type;
  34538. /* readonly */
  34539. String typeName;
  34540. /* readonly */
  34541. uint vertexCount;
  34542. /* readonly */
  34543. uint vertexSize;
  34544. /* readonly */
  34545. int weakRefs;
  34546. };
  34547. class VertexBufferDesc
  34548. {
  34549. public:
  34550. ~VertexBufferDesc();
  34551. VertexBufferDesc();
  34552. // Methods:
  34553. VertexBufferDesc& operator=(const VertexBufferDesc&);
  34554. // Properties:
  34555. uint dataSize;
  34556. uint vertexCount;
  34557. };
  34558. class VertexBufferMorph
  34559. {
  34560. public:
  34561. ~VertexBufferMorph();
  34562. VertexBufferMorph();
  34563. // Methods:
  34564. VertexBufferMorph& operator=(const VertexBufferMorph&);
  34565. // Properties:
  34566. uint dataSize;
  34567. uint elementMask;
  34568. uint vertexCount;
  34569. };
  34570. class VertexElement
  34571. {
  34572. public:
  34573. ~VertexElement();
  34574. VertexElement();
  34575. VertexElement(VertexElementType, VertexElementSemantic, uint8 = 0, bool = false);
  34576. // Methods:
  34577. VertexElement& operator=(const VertexElement&);
  34578. bool operator==(const VertexElement&) const;
  34579. // Properties:
  34580. uint8 index;
  34581. uint offset;
  34582. bool perInstance;
  34583. VertexElementSemantic semantic;
  34584. VertexElementType type;
  34585. };
  34586. class View
  34587. {
  34588. public:
  34589. View();
  34590. // Methods:
  34591. bool Define(RenderSurface, Viewport);
  34592. void DrawFullscreenQuad(bool = false);
  34593. Texture FindNamedTexture(const String&, bool, bool = false);
  34594. const FrameInfo& GetFrameInfo() const;
  34595. bool GetBlockEvents() const;
  34596. Camera GetCamera() const;
  34597. Camera GetCullCamera() const;
  34598. bool GetDrawDebug() const;
  34599. VariantMap& GetEventDataMap() const;
  34600. Object GetEventSender() const;
  34601. Array<Drawable> GetGeometries() const;
  34602. Graphics GetGraphics() const;
  34603. Array<Light> GetLights() const;
  34604. uint GetNumActiveOccluders() const;
  34605. Array<Drawable> GetOccluders() const;
  34606. OcclusionBuffer GetOcclusionBuffer() const;
  34607. Octree GetOctree() const;
  34608. RenderSurface GetRenderTarget() const;
  34609. Renderer GetRenderer() const;
  34610. Scene GetScene() const;
  34611. View GetSourceView() const;
  34612. Object GetSubsystem(StringHash) const;
  34613. StringHash GetType() const;
  34614. bool HasEventHandlers() const;
  34615. bool HasSubscribedToEvent(Object, StringHash) const;
  34616. bool HasSubscribedToEvent(StringHash) const;
  34617. const IntRect& GetViewRect() const;
  34618. const IntVector2& GetViewSize() const;
  34619. bool IsInstanceOf(StringHash) const;
  34620. operator Object() const;
  34621. void OnEvent(Object, StringHash, VariantMap&);
  34622. operator RefCounted() const;
  34623. int Refs() const;
  34624. void Render();
  34625. void SendEvent(StringHash);
  34626. void SendEvent(StringHash, VariantMap&);
  34627. void SetBlockEvents(bool);
  34628. void SetCameraShaderParameters(Camera);
  34629. void SetCommandShaderParameters(const RenderPathCommand&);
  34630. void SetGBufferShaderParameters(const IntVector2&, const IntRect&);
  34631. void SetGlobalShaderParameters();
  34632. void SetGlobalVar(StringHash, const Variant&);
  34633. const String& GetCategory() const;
  34634. const String& GetTypeName() const;
  34635. void UnsubscribeFromAllEvents();
  34636. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  34637. void UnsubscribeFromEvent(Object, StringHash);
  34638. void UnsubscribeFromEvent(StringHash);
  34639. void UnsubscribeFromEvents(Object);
  34640. void Update(const FrameInfo&);
  34641. const Variant& GetGlobalVar(StringHash) const;
  34642. const VariantMap& GetGlobalVars() const;
  34643. int WeakRefs() const;
  34644. operator const Object() const;
  34645. operator const RefCounted() const;
  34646. // Properties:
  34647. /* readonly */
  34648. String category;
  34649. Array<Variant> globalVar;
  34650. /* readonly */
  34651. VariantMap globalVars;
  34652. /* readonly */
  34653. int refs;
  34654. /* readonly */
  34655. StringHash type;
  34656. /* readonly */
  34657. String typeName;
  34658. /* readonly */
  34659. int weakRefs;
  34660. };
  34661. class View3D
  34662. {
  34663. public:
  34664. View3D();
  34665. // Methods:
  34666. void AddChild(UIElement);
  34667. void AddTag(const String&);
  34668. void AddTags(Array<String>);
  34669. void AddTags(const String&, int8 = ';');
  34670. void AdjustScissor(IntRect&);
  34671. void AllocateNetworkState();
  34672. operator Animatable() const;
  34673. void ApplyAttributes();
  34674. operator BorderImage() const;
  34675. void BringToFront();
  34676. const Color& GetColor(Corner) const;
  34677. const Color& GetColorAttr() const;
  34678. const Color& GetDerivedColor() const;
  34679. const Color& GetModalFrameColor() const;
  34680. const Color& GetModalShadeColor() const;
  34681. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  34682. void DisableLayoutUpdate();
  34683. IntVector2 ElementToScreen(const IntVector2&);
  34684. void EnableLayoutUpdate();
  34685. bool FilterAttributes(XMLElement&) const;
  34686. uint FindChild(UIElement) const;
  34687. bool GetAnimationEnabled() const;
  34688. Variant GetAttribute(const String&) const;
  34689. Variant GetAttribute(uint) const;
  34690. ValueAnimation GetAttributeAnimation(const String&) const;
  34691. float GetAttributeAnimationSpeed(const String&) const;
  34692. float GetAttributeAnimationTime(const String&) const;
  34693. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  34694. Variant GetAttributeDefault(const String&) const;
  34695. Variant GetAttributeDefault(uint) const;
  34696. bool GetAutoUpdate() const;
  34697. BlendMode GetBlendMode() const;
  34698. bool GetBlockEvents() const;
  34699. bool GetBringToBack() const;
  34700. bool GetBringToFront() const;
  34701. Node GetCameraNode() const;
  34702. UIElement GetChild(const String&, bool = false) const;
  34703. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  34704. UIElement GetChild(uint) const;
  34705. Array<UIElement> GetChildren() const;
  34706. Array<UIElement> GetChildren(bool) const;
  34707. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  34708. bool GetClipChildren() const;
  34709. IntRect GetCombinedScreenRect();
  34710. XMLFile GetDefaultStyle(bool = true) const;
  34711. Texture2D GetDepthTexture() const;
  34712. float GetDerivedOpacity() const;
  34713. uint GetDragButtonCombo() const;
  34714. uint GetDragButtonCount() const;
  34715. uint GetDragDropMode() const;
  34716. IntVector2 GetEffectiveMinSize() const;
  34717. UIElement GetElementEventSender() const;
  34718. bool GetEnableAnchor() const;
  34719. VariantMap& GetEventDataMap() const;
  34720. Object GetEventSender() const;
  34721. bool GetFixedHeightResizing() const;
  34722. bool GetFixedWidthResizing() const;
  34723. FocusMode GetFocusMode() const;
  34724. uint GetFormat() const;
  34725. int GetHeight() const;
  34726. HorizontalAlignment GetHorizontalAlignment() const;
  34727. int GetIndent() const;
  34728. int GetIndentSpacing() const;
  34729. int GetIndentWidth() const;
  34730. bool GetInterceptNetworkUpdate(const String&) const;
  34731. int GetLayoutElementMaxSize() const;
  34732. LayoutMode GetLayoutMode() const;
  34733. int GetLayoutSpacing() const;
  34734. Material GetMaterial() const;
  34735. ResourceRef GetMaterialAttr() const;
  34736. int GetMaxHeight() const;
  34737. int GetMaxWidth() const;
  34738. int GetMinHeight() const;
  34739. int GetMinWidth() const;
  34740. bool GetModalAutoDismiss() const;
  34741. uint GetNumAttributes() const;
  34742. uint GetNumChildren(bool = false) const;
  34743. uint GetNumNetworkAttributes() const;
  34744. ObjectAnimation GetObjectAnimation() const;
  34745. ResourceRef GetObjectAnimationAttr() const;
  34746. float GetOpacity() const;
  34747. UIElement GetParent() const;
  34748. int GetPriority() const;
  34749. Texture2D GetRenderTexture() const;
  34750. UIElement GetRoot() const;
  34751. Scene GetScene() const;
  34752. bool GetSortChildren() const;
  34753. Object GetSubsystem(StringHash) const;
  34754. Array<String> GetTags() const;
  34755. Texture GetTexture() const;
  34756. ResourceRef GetTextureAttr() const;
  34757. TraversalMode GetTraversalMode() const;
  34758. StringHash GetType() const;
  34759. bool GetUseDerivedOpacity() const;
  34760. VerticalAlignment GetVerticalAlignment() const;
  34761. Viewport GetViewport() const;
  34762. int GetWidth() const;
  34763. bool HasColorGradient() const;
  34764. bool HasEventHandlers() const;
  34765. bool HasFocus() const;
  34766. bool HasSubscribedToEvent(Object, StringHash) const;
  34767. bool HasSubscribedToEvent(StringHash) const;
  34768. bool HasTag(const String&) const;
  34769. void InsertChild(uint, UIElement);
  34770. const IntRect& GetBorder() const;
  34771. const IntRect& GetClipBorder() const;
  34772. const IntRect& GetImageBorder() const;
  34773. const IntRect& GetImageRect() const;
  34774. const IntRect& GetLayoutBorder() const;
  34775. const IntRect& GetResizeBorder() const;
  34776. const IntVector2& GetChildOffset() const;
  34777. const IntVector2& GetDisabledOffset() const;
  34778. const IntVector2& GetHoverOffset() const;
  34779. const IntVector2& GetMaxOffset() const;
  34780. const IntVector2& GetMaxSize() const;
  34781. const IntVector2& GetMinOffset() const;
  34782. const IntVector2& GetMinSize() const;
  34783. const IntVector2& GetModalFrameSize() const;
  34784. const IntVector2& GetPosition() const;
  34785. const IntVector2& GetScreenPosition() const;
  34786. const IntVector2& GetSize() const;
  34787. bool IsChildOf(UIElement) const;
  34788. bool IsEditable() const;
  34789. bool IsElementEventSender() const;
  34790. bool IsEnabled() const;
  34791. bool IsEnabledSelf() const;
  34792. bool IsFixedHeight() const;
  34793. bool IsFixedSize() const;
  34794. bool IsFixedWidth() const;
  34795. bool IsHovering() const;
  34796. bool IsInside(IntVector2, bool);
  34797. bool IsInsideCombined(IntVector2, bool);
  34798. bool IsInstanceOf(StringHash) const;
  34799. bool IsInternal() const;
  34800. bool IsModal() const;
  34801. bool IsMovable() const;
  34802. bool IsResizable() const;
  34803. bool IsSelected() const;
  34804. bool IsTemporary() const;
  34805. bool IsTiled() const;
  34806. bool IsVisible() const;
  34807. bool IsVisibleEffective() const;
  34808. bool IsWheelHandler() const;
  34809. bool IsWithinScissor(const IntRect&);
  34810. bool Load(Deserializer&);
  34811. UIElement LoadChildXML(XMLFile, XMLFile);
  34812. UIElement LoadChildXML(const XMLElement&, XMLFile);
  34813. bool LoadJSON(const JSONValue&);
  34814. bool LoadXML(Deserializer&);
  34815. bool LoadXML(File);
  34816. bool LoadXML(VectorBuffer&);
  34817. bool LoadXML(XMLFile, XMLFile);
  34818. bool LoadXML(const XMLElement&);
  34819. bool LoadXML(const XMLElement&, XMLFile);
  34820. void MarkNetworkUpdate();
  34821. operator Object() const;
  34822. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  34823. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  34824. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  34825. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34826. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34827. bool OnDragDropFinish(UIElement);
  34828. bool OnDragDropTest(UIElement);
  34829. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34830. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34831. void OnEvent(Object, StringHash, VariantMap&);
  34832. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  34833. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34834. void OnIndentSet();
  34835. void OnKey(uint, uint, uint);
  34836. void OnPositionSet(const IntVector2&);
  34837. void OnResize(const IntVector2&, const IntVector2&);
  34838. void OnSetAttribute(const AttributeInfo&, const Variant&);
  34839. void OnSetEditable();
  34840. void OnTextInput(const String&);
  34841. void OnWheel(int, uint, uint);
  34842. void QueueUpdate();
  34843. bool ReadDeltaUpdate(Deserializer&);
  34844. bool ReadLatestDataUpdate(Deserializer&);
  34845. operator RefCounted() const;
  34846. int Refs() const;
  34847. void Remove();
  34848. void RemoveAllChildren();
  34849. void RemoveAllTags();
  34850. void RemoveAttributeAnimation(const String&);
  34851. void RemoveChild(UIElement, uint = 0);
  34852. void RemoveChild(uint);
  34853. void RemoveChildAtIndex(uint);
  34854. void RemoveInstanceDefault();
  34855. void RemoveObjectAnimation();
  34856. bool RemoveTag(const String&);
  34857. void ResetDeepEnabled();
  34858. void ResetToDefault();
  34859. bool Save(Serializer&) const;
  34860. bool SaveDefaultAttributes() const;
  34861. bool SaveJSON(JSONValue&) const;
  34862. bool SaveXML(File, const String& indentation = "\t");
  34863. bool SaveXML(Serializer&, const String& = "\t") const;
  34864. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  34865. bool SaveXML(XMLElement&) const;
  34866. IntVector2 ScreenToElement(const IntVector2&);
  34867. void SendEvent(StringHash);
  34868. void SendEvent(StringHash, VariantMap&);
  34869. operator Serializable() const;
  34870. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  34871. void SetAnimationEnabled(bool);
  34872. void SetAnimationTime(float);
  34873. bool SetAttribute(const String&, const Variant&);
  34874. bool SetAttribute(uint, const Variant&);
  34875. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  34876. void SetAttributeAnimationSpeed(const String&, float);
  34877. void SetAttributeAnimationTime(const String&, float);
  34878. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  34879. void SetAutoUpdate(bool);
  34880. void SetBlendMode(BlendMode);
  34881. void SetBlockEvents(bool);
  34882. void SetBorder(const IntRect&);
  34883. void SetBringToBack(bool);
  34884. void SetBringToFront(bool);
  34885. void SetChildOffset(const IntVector2&);
  34886. void SetClipBorder(const IntRect&);
  34887. void SetClipChildren(bool);
  34888. void SetColor(Corner, const Color&);
  34889. void SetColor(const Color&);
  34890. void SetDeepEnabled(bool);
  34891. void SetDefaultStyle(XMLFile);
  34892. void SetDisabledOffset(const IntVector2&);
  34893. void SetDisabledOffset(int, int);
  34894. void SetDragDropMode(uint);
  34895. void SetEditable(bool);
  34896. void SetElementEventSender(bool);
  34897. void SetEnableAnchor(bool);
  34898. void SetEnabled(bool);
  34899. void SetEnabledRecursive(bool);
  34900. void SetFixedHeight(int);
  34901. void SetFixedHeightResizing(bool);
  34902. void SetFixedSize(const IntVector2&);
  34903. void SetFixedSize(int, int);
  34904. void SetFixedWidth(int);
  34905. void SetFixedWidthResizing(bool);
  34906. void SetFocus(bool);
  34907. void SetFocusMode(FocusMode);
  34908. void SetFormat(uint);
  34909. void SetFullImageRect();
  34910. void SetGlobalVar(StringHash, const Variant&);
  34911. void SetHeight(int);
  34912. void SetHorizontalAlignment(HorizontalAlignment);
  34913. void SetHoverOffset(const IntVector2&);
  34914. void SetHoverOffset(int, int);
  34915. void SetHovering(bool);
  34916. void SetImageBorder(const IntRect&);
  34917. void SetImageRect(const IntRect&);
  34918. void SetIndent(int);
  34919. void SetIndentSpacing(int);
  34920. void SetInstanceDefault(bool);
  34921. void SetInterceptNetworkUpdate(const String&, bool);
  34922. void SetInternal(bool);
  34923. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  34924. void SetLayoutBorder(const IntRect&);
  34925. void SetLayoutFlexScale(const Vector2&);
  34926. void SetLayoutMode(LayoutMode);
  34927. void SetLayoutSpacing(int);
  34928. void SetMaterial(Material);
  34929. void SetMaterialAttr(const ResourceRef&);
  34930. void SetMaxAnchor(const Vector2&);
  34931. void SetMaxAnchor(float, float);
  34932. void SetMaxHeight(int);
  34933. void SetMaxOffset(const IntVector2&);
  34934. void SetMaxSize(const IntVector2&);
  34935. void SetMaxSize(int, int);
  34936. void SetMaxWidth(int);
  34937. void SetMinAnchor(const Vector2&);
  34938. void SetMinAnchor(float, float);
  34939. void SetMinHeight(int);
  34940. void SetMinOffset(const IntVector2&);
  34941. void SetMinSize(const IntVector2&);
  34942. void SetMinSize(int, int);
  34943. void SetMinWidth(int);
  34944. void SetModal(bool);
  34945. void SetModalAutoDismiss(bool);
  34946. void SetModalFrameColor(const Color&);
  34947. void SetModalFrameSize(const IntVector2&);
  34948. void SetModalShadeColor(const Color&);
  34949. void SetMovable(bool);
  34950. void SetName(const String&);
  34951. void SetObjectAnimation(ObjectAnimation);
  34952. void SetObjectAnimationAttr(const ResourceRef&);
  34953. void SetOpacity(float);
  34954. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  34955. void SetPivot(const Vector2&);
  34956. void SetPivot(float, float);
  34957. void SetPosition(const IntVector2&);
  34958. void SetPosition(int, int);
  34959. void SetPriority(int);
  34960. void SetRenderTexture(Texture2D);
  34961. void SetResizable(bool);
  34962. void SetResizeBorder(const IntRect&);
  34963. void SetSelected(bool);
  34964. void SetSize(const IntVector2&);
  34965. void SetSize(int, int);
  34966. void SetSortChildren(bool);
  34967. bool SetStyle(const String&, XMLFile = null);
  34968. bool SetStyle(const XMLElement&);
  34969. bool SetStyleAuto(XMLFile = null);
  34970. void SetTags(Array<String>);
  34971. void SetTemporary(bool);
  34972. void SetTexture(Texture);
  34973. void SetTextureAttr(const ResourceRef&);
  34974. void SetTiled(bool);
  34975. void SetTraversalMode(TraversalMode);
  34976. void SetUseDerivedOpacity(bool);
  34977. void SetVar(StringHash, const Variant&);
  34978. void SetVerticalAlignment(VerticalAlignment);
  34979. void SetView(Scene, Camera, bool = true);
  34980. void SetVisible(bool);
  34981. void SetWidth(int);
  34982. void SortChildren();
  34983. const String& GetAppliedStyle() const;
  34984. const String& GetCategory() const;
  34985. const String& GetName() const;
  34986. const String& GetTypeName() const;
  34987. operator UIElement() const;
  34988. void UnsubscribeFromAllEvents();
  34989. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  34990. void UnsubscribeFromEvent(Object, StringHash);
  34991. void UnsubscribeFromEvent(StringHash);
  34992. void UnsubscribeFromEvents(Object);
  34993. void Update(float);
  34994. void UpdateLayout();
  34995. const Variant& GetGlobalVar(StringHash) const;
  34996. const Variant& GetVar(const StringHash&) const;
  34997. const VariantMap& GetGlobalVars() const;
  34998. const VariantMap& GetVars() const;
  34999. const Vector2& GetLayoutFlexScale() const;
  35000. const Vector2& GetMaxAnchor() const;
  35001. const Vector2& GetMinAnchor() const;
  35002. const Vector2& GetPivot() const;
  35003. int WeakRefs() const;
  35004. operator Window() const;
  35005. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  35006. void WriteInitialDeltaUpdate(Serializer&, uint8);
  35007. void WriteLatestDataUpdate(Serializer&, uint8);
  35008. operator const Animatable() const;
  35009. operator const BorderImage() const;
  35010. operator const Object() const;
  35011. operator const RefCounted() const;
  35012. operator const Serializable() const;
  35013. operator const UIElement() const;
  35014. operator const Window() const;
  35015. // Properties:
  35016. bool animationEnabled;
  35017. /* readonly */
  35018. Array<Variant> attributeDefaults;
  35019. /* readonly */
  35020. Array<AttributeInfo> attributeInfos;
  35021. Array<Variant> attributes;
  35022. bool autoUpdate;
  35023. BlendMode blendMode;
  35024. IntRect border;
  35025. bool bringToBack;
  35026. bool bringToFront;
  35027. /* readonly */
  35028. Node cameraNode;
  35029. /* readonly */
  35030. String category;
  35031. /* readonly */
  35032. IntVector2 childOffset;
  35033. /* readonly */
  35034. Array<UIElement> children;
  35035. IntRect clipBorder;
  35036. bool clipChildren;
  35037. /* writeonly */
  35038. Color color;
  35039. /* readonly */
  35040. bool colorGradient;
  35041. Array<Color> colors;
  35042. /* readonly */
  35043. IntRect combinedScreenRect;
  35044. XMLFile defaultStyle;
  35045. /* readonly */
  35046. Texture2D depthTexture;
  35047. /* readonly */
  35048. float derivedOpacity;
  35049. IntVector2 disabledOffset;
  35050. /* readonly */
  35051. uint dragButtonCombo;
  35052. /* readonly */
  35053. uint dragButtonCount;
  35054. uint dragDropMode;
  35055. bool editable;
  35056. bool elementEventSender;
  35057. bool enableAnchor;
  35058. bool enabled;
  35059. /* readonly */
  35060. bool enabledSelf;
  35061. /* readonly */
  35062. bool fixedHeight;
  35063. bool fixedHeightResizing;
  35064. /* readonly */
  35065. bool fixedSize;
  35066. /* readonly */
  35067. bool fixedWidth;
  35068. bool fixedWidthResizing;
  35069. bool focus;
  35070. FocusMode focusMode;
  35071. uint format;
  35072. Array<Variant> globalVar;
  35073. /* readonly */
  35074. VariantMap globalVars;
  35075. int height;
  35076. HorizontalAlignment horizontalAlignment;
  35077. IntVector2 hoverOffset;
  35078. /* readonly */
  35079. bool hovering;
  35080. IntRect imageBorder;
  35081. IntRect imageRect;
  35082. int indent;
  35083. int indentSpacing;
  35084. /* readonly */
  35085. int indentWidth;
  35086. bool internal;
  35087. IntRect layoutBorder;
  35088. Vector2 layoutFlexScale;
  35089. LayoutMode layoutMode;
  35090. int layoutSpacing;
  35091. Material material;
  35092. Vector2 maxAnchor;
  35093. int maxHeight;
  35094. IntVector2 maxOffset;
  35095. IntVector2 maxSize;
  35096. int maxWidth;
  35097. Vector2 minAnchor;
  35098. int minHeight;
  35099. IntVector2 minOffset;
  35100. IntVector2 minSize;
  35101. int minWidth;
  35102. bool modal;
  35103. bool modalAutoDismiss;
  35104. Color modalFrameColor;
  35105. IntVector2 modalFrameSize;
  35106. Color modalShadeColor;
  35107. bool movable;
  35108. String name;
  35109. /* readonly */
  35110. uint numAllChildren;
  35111. /* readonly */
  35112. uint numAttributes;
  35113. /* readonly */
  35114. uint numChildren;
  35115. ObjectAnimation objectAnimation;
  35116. float opacity;
  35117. UIElement parent;
  35118. Vector2 pivot;
  35119. IntVector2 position;
  35120. int priority;
  35121. /* readonly */
  35122. int refs;
  35123. /* readonly */
  35124. Texture2D renderTexture;
  35125. bool resizable;
  35126. IntRect resizeBorder;
  35127. /* readonly */
  35128. UIElement root;
  35129. /* readonly */
  35130. Scene scene;
  35131. /* readonly */
  35132. IntVector2 screenPosition;
  35133. bool selected;
  35134. IntVector2 size;
  35135. bool sortChildren;
  35136. String style;
  35137. /* readonly */
  35138. Array<String> tags;
  35139. bool temporary;
  35140. Texture texture;
  35141. bool tiled;
  35142. TraversalMode traversalMode;
  35143. /* readonly */
  35144. StringHash type;
  35145. /* readonly */
  35146. String typeName;
  35147. bool useDerivedOpacity;
  35148. /* readonly */
  35149. VariantMap vars;
  35150. VerticalAlignment verticalAlignment;
  35151. /* readonly */
  35152. Viewport viewport;
  35153. bool visible;
  35154. /* readonly */
  35155. bool visibleEffective;
  35156. /* readonly */
  35157. int weakRefs;
  35158. int width;
  35159. };
  35160. class Viewport
  35161. {
  35162. public:
  35163. Viewport();
  35164. Viewport(Scene&, Camera&, RenderPath& = null);
  35165. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& = null);
  35166. // Methods:
  35167. void AllocateView();
  35168. bool GetBlockEvents() const;
  35169. Camera GetCamera() const;
  35170. Camera GetCullCamera() const;
  35171. bool GetDrawDebug() const;
  35172. VariantMap& GetEventDataMap() const;
  35173. Object GetEventSender() const;
  35174. RenderPath GetRenderPath() const;
  35175. Scene GetScene() const;
  35176. Ray GetScreenRay(int, int) const;
  35177. Object GetSubsystem(StringHash) const;
  35178. StringHash GetType() const;
  35179. View GetView() const;
  35180. bool HasEventHandlers() const;
  35181. bool HasSubscribedToEvent(Object, StringHash) const;
  35182. bool HasSubscribedToEvent(StringHash) const;
  35183. const IntRect& GetRect() const;
  35184. bool IsInstanceOf(StringHash) const;
  35185. operator Object() const;
  35186. void OnEvent(Object, StringHash, VariantMap&);
  35187. operator RefCounted() const;
  35188. int Refs() const;
  35189. Vector3 ScreenToWorldPoint(int, int, float) const;
  35190. void SendEvent(StringHash);
  35191. void SendEvent(StringHash, VariantMap&);
  35192. void SetBlockEvents(bool);
  35193. void SetCamera(Camera);
  35194. void SetCullCamera(Camera);
  35195. void SetDrawDebug(bool);
  35196. void SetGlobalVar(StringHash, const Variant&);
  35197. void SetRect(const IntRect&);
  35198. void SetRenderPath(RenderPath);
  35199. bool SetRenderPath(XMLFile);
  35200. void SetScene(Scene);
  35201. const String& GetCategory() const;
  35202. const String& GetTypeName() const;
  35203. void UnsubscribeFromAllEvents();
  35204. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35205. void UnsubscribeFromEvent(Object, StringHash);
  35206. void UnsubscribeFromEvent(StringHash);
  35207. void UnsubscribeFromEvents(Object);
  35208. const Variant& GetGlobalVar(StringHash) const;
  35209. const VariantMap& GetGlobalVars() const;
  35210. int WeakRefs() const;
  35211. IntVector2 WorldToScreenPoint(const Vector3&) const;
  35212. operator const Object() const;
  35213. operator const RefCounted() const;
  35214. // Properties:
  35215. Camera camera;
  35216. /* readonly */
  35217. String category;
  35218. Camera cullCamera;
  35219. bool drawDebug;
  35220. Array<Variant> globalVar;
  35221. /* readonly */
  35222. VariantMap globalVars;
  35223. IntRect rect;
  35224. /* readonly */
  35225. int refs;
  35226. RenderPath renderPath;
  35227. Scene scene;
  35228. /* readonly */
  35229. StringHash type;
  35230. /* readonly */
  35231. String typeName;
  35232. /* readonly */
  35233. int weakRefs;
  35234. };
  35235. class WeakHandle
  35236. {
  35237. public:
  35238. ~WeakHandle();
  35239. WeakHandle();
  35240. WeakHandle(const WeakHandle&in);
  35241. WeakHandle(RefCounted@);
  35242. // Methods:
  35243. WeakHandle& operator=(RefCounted);
  35244. WeakHandle& operator=(const WeakHandle&);
  35245. RefCounted Get() const;
  35246. // Properties:
  35247. /* readonly */
  35248. bool expired;
  35249. /* readonly */
  35250. int refs;
  35251. /* readonly */
  35252. int weakRefs;
  35253. };
  35254. class Window
  35255. {
  35256. public:
  35257. Window();
  35258. // Methods:
  35259. void AddChild(UIElement);
  35260. void AddTag(const String&);
  35261. void AddTags(Array<String>);
  35262. void AddTags(const String&, int8 = ';');
  35263. void AdjustScissor(IntRect&);
  35264. void AllocateNetworkState();
  35265. operator Animatable() const;
  35266. void ApplyAttributes();
  35267. operator BorderImage() const;
  35268. void BringToFront();
  35269. const Color& GetColor(Corner) const;
  35270. const Color& GetColorAttr() const;
  35271. const Color& GetDerivedColor() const;
  35272. const Color& GetModalFrameColor() const;
  35273. const Color& GetModalShadeColor() const;
  35274. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  35275. void DisableLayoutUpdate();
  35276. IntVector2 ElementToScreen(const IntVector2&);
  35277. void EnableLayoutUpdate();
  35278. bool FilterAttributes(XMLElement&) const;
  35279. uint FindChild(UIElement) const;
  35280. bool GetAnimationEnabled() const;
  35281. Variant GetAttribute(const String&) const;
  35282. Variant GetAttribute(uint) const;
  35283. ValueAnimation GetAttributeAnimation(const String&) const;
  35284. float GetAttributeAnimationSpeed(const String&) const;
  35285. float GetAttributeAnimationTime(const String&) const;
  35286. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  35287. Variant GetAttributeDefault(const String&) const;
  35288. Variant GetAttributeDefault(uint) const;
  35289. BlendMode GetBlendMode() const;
  35290. bool GetBlockEvents() const;
  35291. bool GetBringToBack() const;
  35292. bool GetBringToFront() const;
  35293. UIElement GetChild(const String&, bool = false) const;
  35294. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  35295. UIElement GetChild(uint) const;
  35296. Array<UIElement> GetChildren() const;
  35297. Array<UIElement> GetChildren(bool) const;
  35298. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  35299. bool GetClipChildren() const;
  35300. IntRect GetCombinedScreenRect();
  35301. XMLFile GetDefaultStyle(bool = true) const;
  35302. float GetDerivedOpacity() const;
  35303. uint GetDragButtonCombo() const;
  35304. uint GetDragButtonCount() const;
  35305. uint GetDragDropMode() const;
  35306. IntVector2 GetEffectiveMinSize() const;
  35307. UIElement GetElementEventSender() const;
  35308. bool GetEnableAnchor() const;
  35309. VariantMap& GetEventDataMap() const;
  35310. Object GetEventSender() const;
  35311. bool GetFixedHeightResizing() const;
  35312. bool GetFixedWidthResizing() const;
  35313. FocusMode GetFocusMode() const;
  35314. int GetHeight() const;
  35315. HorizontalAlignment GetHorizontalAlignment() const;
  35316. int GetIndent() const;
  35317. int GetIndentSpacing() const;
  35318. int GetIndentWidth() const;
  35319. bool GetInterceptNetworkUpdate(const String&) const;
  35320. int GetLayoutElementMaxSize() const;
  35321. LayoutMode GetLayoutMode() const;
  35322. int GetLayoutSpacing() const;
  35323. Material GetMaterial() const;
  35324. ResourceRef GetMaterialAttr() const;
  35325. int GetMaxHeight() const;
  35326. int GetMaxWidth() const;
  35327. int GetMinHeight() const;
  35328. int GetMinWidth() const;
  35329. bool GetModalAutoDismiss() const;
  35330. uint GetNumAttributes() const;
  35331. uint GetNumChildren(bool = false) const;
  35332. uint GetNumNetworkAttributes() const;
  35333. ObjectAnimation GetObjectAnimation() const;
  35334. ResourceRef GetObjectAnimationAttr() const;
  35335. float GetOpacity() const;
  35336. UIElement GetParent() const;
  35337. int GetPriority() const;
  35338. UIElement GetRoot() const;
  35339. bool GetSortChildren() const;
  35340. Object GetSubsystem(StringHash) const;
  35341. Array<String> GetTags() const;
  35342. Texture GetTexture() const;
  35343. ResourceRef GetTextureAttr() const;
  35344. TraversalMode GetTraversalMode() const;
  35345. StringHash GetType() const;
  35346. bool GetUseDerivedOpacity() const;
  35347. VerticalAlignment GetVerticalAlignment() const;
  35348. int GetWidth() const;
  35349. bool HasColorGradient() const;
  35350. bool HasEventHandlers() const;
  35351. bool HasFocus() const;
  35352. bool HasSubscribedToEvent(Object, StringHash) const;
  35353. bool HasSubscribedToEvent(StringHash) const;
  35354. bool HasTag(const String&) const;
  35355. void InsertChild(uint, UIElement);
  35356. const IntRect& GetBorder() const;
  35357. const IntRect& GetClipBorder() const;
  35358. const IntRect& GetImageBorder() const;
  35359. const IntRect& GetImageRect() const;
  35360. const IntRect& GetLayoutBorder() const;
  35361. const IntRect& GetResizeBorder() const;
  35362. const IntVector2& GetChildOffset() const;
  35363. const IntVector2& GetDisabledOffset() const;
  35364. const IntVector2& GetHoverOffset() const;
  35365. const IntVector2& GetMaxOffset() const;
  35366. const IntVector2& GetMaxSize() const;
  35367. const IntVector2& GetMinOffset() const;
  35368. const IntVector2& GetMinSize() const;
  35369. const IntVector2& GetModalFrameSize() const;
  35370. const IntVector2& GetPosition() const;
  35371. const IntVector2& GetScreenPosition() const;
  35372. const IntVector2& GetSize() const;
  35373. bool IsChildOf(UIElement) const;
  35374. bool IsEditable() const;
  35375. bool IsElementEventSender() const;
  35376. bool IsEnabled() const;
  35377. bool IsEnabledSelf() const;
  35378. bool IsFixedHeight() const;
  35379. bool IsFixedSize() const;
  35380. bool IsFixedWidth() const;
  35381. bool IsHovering() const;
  35382. bool IsInside(IntVector2, bool);
  35383. bool IsInsideCombined(IntVector2, bool);
  35384. bool IsInstanceOf(StringHash) const;
  35385. bool IsInternal() const;
  35386. bool IsModal() const;
  35387. bool IsMovable() const;
  35388. bool IsResizable() const;
  35389. bool IsSelected() const;
  35390. bool IsTemporary() const;
  35391. bool IsTiled() const;
  35392. bool IsVisible() const;
  35393. bool IsVisibleEffective() const;
  35394. bool IsWheelHandler() const;
  35395. bool IsWithinScissor(const IntRect&);
  35396. bool Load(Deserializer&);
  35397. UIElement LoadChildXML(XMLFile, XMLFile);
  35398. UIElement LoadChildXML(const XMLElement&, XMLFile);
  35399. bool LoadJSON(const JSONValue&);
  35400. bool LoadXML(Deserializer&);
  35401. bool LoadXML(File);
  35402. bool LoadXML(VectorBuffer&);
  35403. bool LoadXML(XMLFile, XMLFile);
  35404. bool LoadXML(const XMLElement&);
  35405. bool LoadXML(const XMLElement&, XMLFile);
  35406. void MarkNetworkUpdate();
  35407. operator Object() const;
  35408. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  35409. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  35410. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  35411. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35412. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35413. bool OnDragDropFinish(UIElement);
  35414. bool OnDragDropTest(UIElement);
  35415. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35416. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35417. void OnEvent(Object, StringHash, VariantMap&);
  35418. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  35419. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35420. void OnIndentSet();
  35421. void OnKey(uint, uint, uint);
  35422. void OnPositionSet(const IntVector2&);
  35423. void OnResize(const IntVector2&, const IntVector2&);
  35424. void OnSetAttribute(const AttributeInfo&, const Variant&);
  35425. void OnSetEditable();
  35426. void OnTextInput(const String&);
  35427. void OnWheel(int, uint, uint);
  35428. bool ReadDeltaUpdate(Deserializer&);
  35429. bool ReadLatestDataUpdate(Deserializer&);
  35430. operator RefCounted() const;
  35431. int Refs() const;
  35432. void Remove();
  35433. void RemoveAllChildren();
  35434. void RemoveAllTags();
  35435. void RemoveAttributeAnimation(const String&);
  35436. void RemoveChild(UIElement, uint = 0);
  35437. void RemoveChild(uint);
  35438. void RemoveChildAtIndex(uint);
  35439. void RemoveInstanceDefault();
  35440. void RemoveObjectAnimation();
  35441. bool RemoveTag(const String&);
  35442. void ResetDeepEnabled();
  35443. void ResetToDefault();
  35444. bool Save(Serializer&) const;
  35445. bool SaveDefaultAttributes() const;
  35446. bool SaveJSON(JSONValue&) const;
  35447. bool SaveXML(File, const String& indentation = "\t");
  35448. bool SaveXML(Serializer&, const String& = "\t") const;
  35449. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  35450. bool SaveXML(XMLElement&) const;
  35451. IntVector2 ScreenToElement(const IntVector2&);
  35452. void SendEvent(StringHash);
  35453. void SendEvent(StringHash, VariantMap&);
  35454. operator Serializable() const;
  35455. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  35456. void SetAnimationEnabled(bool);
  35457. void SetAnimationTime(float);
  35458. bool SetAttribute(const String&, const Variant&);
  35459. bool SetAttribute(uint, const Variant&);
  35460. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  35461. void SetAttributeAnimationSpeed(const String&, float);
  35462. void SetAttributeAnimationTime(const String&, float);
  35463. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  35464. void SetBlendMode(BlendMode);
  35465. void SetBlockEvents(bool);
  35466. void SetBorder(const IntRect&);
  35467. void SetBringToBack(bool);
  35468. void SetBringToFront(bool);
  35469. void SetChildOffset(const IntVector2&);
  35470. void SetClipBorder(const IntRect&);
  35471. void SetClipChildren(bool);
  35472. void SetColor(Corner, const Color&);
  35473. void SetColor(const Color&);
  35474. void SetDeepEnabled(bool);
  35475. void SetDefaultStyle(XMLFile);
  35476. void SetDisabledOffset(const IntVector2&);
  35477. void SetDisabledOffset(int, int);
  35478. void SetDragDropMode(uint);
  35479. void SetEditable(bool);
  35480. void SetElementEventSender(bool);
  35481. void SetEnableAnchor(bool);
  35482. void SetEnabled(bool);
  35483. void SetEnabledRecursive(bool);
  35484. void SetFixedHeight(int);
  35485. void SetFixedHeightResizing(bool);
  35486. void SetFixedSize(const IntVector2&);
  35487. void SetFixedSize(int, int);
  35488. void SetFixedWidth(int);
  35489. void SetFixedWidthResizing(bool);
  35490. void SetFocus(bool);
  35491. void SetFocusMode(FocusMode);
  35492. void SetFullImageRect();
  35493. void SetGlobalVar(StringHash, const Variant&);
  35494. void SetHeight(int);
  35495. void SetHorizontalAlignment(HorizontalAlignment);
  35496. void SetHoverOffset(const IntVector2&);
  35497. void SetHoverOffset(int, int);
  35498. void SetHovering(bool);
  35499. void SetImageBorder(const IntRect&);
  35500. void SetImageRect(const IntRect&);
  35501. void SetIndent(int);
  35502. void SetIndentSpacing(int);
  35503. void SetInstanceDefault(bool);
  35504. void SetInterceptNetworkUpdate(const String&, bool);
  35505. void SetInternal(bool);
  35506. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  35507. void SetLayoutBorder(const IntRect&);
  35508. void SetLayoutFlexScale(const Vector2&);
  35509. void SetLayoutMode(LayoutMode);
  35510. void SetLayoutSpacing(int);
  35511. void SetMaterial(Material);
  35512. void SetMaterialAttr(const ResourceRef&);
  35513. void SetMaxAnchor(const Vector2&);
  35514. void SetMaxAnchor(float, float);
  35515. void SetMaxHeight(int);
  35516. void SetMaxOffset(const IntVector2&);
  35517. void SetMaxSize(const IntVector2&);
  35518. void SetMaxSize(int, int);
  35519. void SetMaxWidth(int);
  35520. void SetMinAnchor(const Vector2&);
  35521. void SetMinAnchor(float, float);
  35522. void SetMinHeight(int);
  35523. void SetMinOffset(const IntVector2&);
  35524. void SetMinSize(const IntVector2&);
  35525. void SetMinSize(int, int);
  35526. void SetMinWidth(int);
  35527. void SetModal(bool);
  35528. void SetModalAutoDismiss(bool);
  35529. void SetModalFrameColor(const Color&);
  35530. void SetModalFrameSize(const IntVector2&);
  35531. void SetModalShadeColor(const Color&);
  35532. void SetMovable(bool);
  35533. void SetName(const String&);
  35534. void SetObjectAnimation(ObjectAnimation);
  35535. void SetObjectAnimationAttr(const ResourceRef&);
  35536. void SetOpacity(float);
  35537. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  35538. void SetPivot(const Vector2&);
  35539. void SetPivot(float, float);
  35540. void SetPosition(const IntVector2&);
  35541. void SetPosition(int, int);
  35542. void SetPriority(int);
  35543. void SetRenderTexture(Texture2D);
  35544. void SetResizable(bool);
  35545. void SetResizeBorder(const IntRect&);
  35546. void SetSelected(bool);
  35547. void SetSize(const IntVector2&);
  35548. void SetSize(int, int);
  35549. void SetSortChildren(bool);
  35550. bool SetStyle(const String&, XMLFile = null);
  35551. bool SetStyle(const XMLElement&);
  35552. bool SetStyleAuto(XMLFile = null);
  35553. void SetTags(Array<String>);
  35554. void SetTemporary(bool);
  35555. void SetTexture(Texture);
  35556. void SetTextureAttr(const ResourceRef&);
  35557. void SetTiled(bool);
  35558. void SetTraversalMode(TraversalMode);
  35559. void SetUseDerivedOpacity(bool);
  35560. void SetVar(StringHash, const Variant&);
  35561. void SetVerticalAlignment(VerticalAlignment);
  35562. void SetVisible(bool);
  35563. void SetWidth(int);
  35564. void SortChildren();
  35565. const String& GetAppliedStyle() const;
  35566. const String& GetCategory() const;
  35567. const String& GetName() const;
  35568. const String& GetTypeName() const;
  35569. operator UIElement() const;
  35570. void UnsubscribeFromAllEvents();
  35571. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35572. void UnsubscribeFromEvent(Object, StringHash);
  35573. void UnsubscribeFromEvent(StringHash);
  35574. void UnsubscribeFromEvents(Object);
  35575. void Update(float);
  35576. void UpdateLayout();
  35577. const Variant& GetGlobalVar(StringHash) const;
  35578. const Variant& GetVar(const StringHash&) const;
  35579. const VariantMap& GetGlobalVars() const;
  35580. const VariantMap& GetVars() const;
  35581. const Vector2& GetLayoutFlexScale() const;
  35582. const Vector2& GetMaxAnchor() const;
  35583. const Vector2& GetMinAnchor() const;
  35584. const Vector2& GetPivot() const;
  35585. operator View3D() const;
  35586. int WeakRefs() const;
  35587. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  35588. void WriteInitialDeltaUpdate(Serializer&, uint8);
  35589. void WriteLatestDataUpdate(Serializer&, uint8);
  35590. operator const Animatable() const;
  35591. operator const BorderImage() const;
  35592. operator const Object() const;
  35593. operator const RefCounted() const;
  35594. operator const Serializable() const;
  35595. operator const UIElement() const;
  35596. operator const View3D() const;
  35597. // Properties:
  35598. bool animationEnabled;
  35599. /* readonly */
  35600. Array<Variant> attributeDefaults;
  35601. /* readonly */
  35602. Array<AttributeInfo> attributeInfos;
  35603. Array<Variant> attributes;
  35604. BlendMode blendMode;
  35605. IntRect border;
  35606. bool bringToBack;
  35607. bool bringToFront;
  35608. /* readonly */
  35609. String category;
  35610. /* readonly */
  35611. IntVector2 childOffset;
  35612. /* readonly */
  35613. Array<UIElement> children;
  35614. IntRect clipBorder;
  35615. bool clipChildren;
  35616. /* writeonly */
  35617. Color color;
  35618. /* readonly */
  35619. bool colorGradient;
  35620. Array<Color> colors;
  35621. /* readonly */
  35622. IntRect combinedScreenRect;
  35623. XMLFile defaultStyle;
  35624. /* readonly */
  35625. float derivedOpacity;
  35626. IntVector2 disabledOffset;
  35627. /* readonly */
  35628. uint dragButtonCombo;
  35629. /* readonly */
  35630. uint dragButtonCount;
  35631. uint dragDropMode;
  35632. bool editable;
  35633. bool elementEventSender;
  35634. bool enableAnchor;
  35635. bool enabled;
  35636. /* readonly */
  35637. bool enabledSelf;
  35638. /* readonly */
  35639. bool fixedHeight;
  35640. bool fixedHeightResizing;
  35641. /* readonly */
  35642. bool fixedSize;
  35643. /* readonly */
  35644. bool fixedWidth;
  35645. bool fixedWidthResizing;
  35646. bool focus;
  35647. FocusMode focusMode;
  35648. Array<Variant> globalVar;
  35649. /* readonly */
  35650. VariantMap globalVars;
  35651. int height;
  35652. HorizontalAlignment horizontalAlignment;
  35653. IntVector2 hoverOffset;
  35654. /* readonly */
  35655. bool hovering;
  35656. IntRect imageBorder;
  35657. IntRect imageRect;
  35658. int indent;
  35659. int indentSpacing;
  35660. /* readonly */
  35661. int indentWidth;
  35662. bool internal;
  35663. IntRect layoutBorder;
  35664. Vector2 layoutFlexScale;
  35665. LayoutMode layoutMode;
  35666. int layoutSpacing;
  35667. Material material;
  35668. Vector2 maxAnchor;
  35669. int maxHeight;
  35670. IntVector2 maxOffset;
  35671. IntVector2 maxSize;
  35672. int maxWidth;
  35673. Vector2 minAnchor;
  35674. int minHeight;
  35675. IntVector2 minOffset;
  35676. IntVector2 minSize;
  35677. int minWidth;
  35678. bool modal;
  35679. bool modalAutoDismiss;
  35680. Color modalFrameColor;
  35681. IntVector2 modalFrameSize;
  35682. Color modalShadeColor;
  35683. bool movable;
  35684. String name;
  35685. /* readonly */
  35686. uint numAllChildren;
  35687. /* readonly */
  35688. uint numAttributes;
  35689. /* readonly */
  35690. uint numChildren;
  35691. ObjectAnimation objectAnimation;
  35692. float opacity;
  35693. UIElement parent;
  35694. Vector2 pivot;
  35695. IntVector2 position;
  35696. int priority;
  35697. /* readonly */
  35698. int refs;
  35699. bool resizable;
  35700. IntRect resizeBorder;
  35701. /* readonly */
  35702. UIElement root;
  35703. /* readonly */
  35704. IntVector2 screenPosition;
  35705. bool selected;
  35706. IntVector2 size;
  35707. bool sortChildren;
  35708. String style;
  35709. /* readonly */
  35710. Array<String> tags;
  35711. bool temporary;
  35712. Texture texture;
  35713. bool tiled;
  35714. TraversalMode traversalMode;
  35715. /* readonly */
  35716. StringHash type;
  35717. /* readonly */
  35718. String typeName;
  35719. bool useDerivedOpacity;
  35720. /* readonly */
  35721. VariantMap vars;
  35722. VerticalAlignment verticalAlignment;
  35723. bool visible;
  35724. /* readonly */
  35725. bool visibleEffective;
  35726. /* readonly */
  35727. int weakRefs;
  35728. int width;
  35729. };
  35730. class WindowModeParams
  35731. {
  35732. public:
  35733. ~WindowModeParams();
  35734. WindowModeParams();
  35735. // Methods:
  35736. WindowModeParams& operator=(const WindowModeParams&);
  35737. // Properties:
  35738. int height;
  35739. ScreenModeParams screenParams;
  35740. int width;
  35741. };
  35742. class WorkQueue
  35743. {
  35744. public:
  35745. WorkQueue();
  35746. // Methods:
  35747. void Complete(uint);
  35748. void CreateThreads(uint);
  35749. bool GetBlockEvents() const;
  35750. VariantMap& GetEventDataMap() const;
  35751. Object GetEventSender() const;
  35752. int GetNonThreadedWorkMs() const;
  35753. uint GetNumThreads() const;
  35754. Object GetSubsystem(StringHash) const;
  35755. int GetTolerance() const;
  35756. StringHash GetType() const;
  35757. bool HasEventHandlers() const;
  35758. bool HasSubscribedToEvent(Object, StringHash) const;
  35759. bool HasSubscribedToEvent(StringHash) const;
  35760. bool IsCompleted(uint) const;
  35761. bool IsCompleting() const;
  35762. bool IsInstanceOf(StringHash) const;
  35763. operator Object() const;
  35764. void OnEvent(Object, StringHash, VariantMap&);
  35765. void Pause();
  35766. operator RefCounted() const;
  35767. int Refs() const;
  35768. void Resume();
  35769. void SendEvent(StringHash);
  35770. void SendEvent(StringHash, VariantMap&);
  35771. void SetBlockEvents(bool);
  35772. void SetGlobalVar(StringHash, const Variant&);
  35773. void SetNonThreadedWorkMs(int);
  35774. void SetTolerance(int);
  35775. const String& GetCategory() const;
  35776. const String& GetTypeName() const;
  35777. void UnsubscribeFromAllEvents();
  35778. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35779. void UnsubscribeFromEvent(Object, StringHash);
  35780. void UnsubscribeFromEvent(StringHash);
  35781. void UnsubscribeFromEvents(Object);
  35782. const Variant& GetGlobalVar(StringHash) const;
  35783. const VariantMap& GetGlobalVars() const;
  35784. int WeakRefs() const;
  35785. operator const Object() const;
  35786. operator const RefCounted() const;
  35787. // Properties:
  35788. /* readonly */
  35789. String category;
  35790. Array<Variant> globalVar;
  35791. /* readonly */
  35792. VariantMap globalVars;
  35793. /* readonly */
  35794. int refs;
  35795. /* readonly */
  35796. StringHash type;
  35797. /* readonly */
  35798. String typeName;
  35799. /* readonly */
  35800. int weakRefs;
  35801. };
  35802. class XMLElement
  35803. {
  35804. public:
  35805. ~XMLElement();
  35806. XMLElement();
  35807. XMLElement(const XMLElement&in);
  35808. // Methods:
  35809. XMLElement& operator=(const XMLElement&);
  35810. bool AppendChild(XMLElement, bool = false);
  35811. XMLElement CreateChild(const String&);
  35812. String GetAttribute(const String& = String :: EMPTY) const;
  35813. String GetAttributeLower(const String&) const;
  35814. Array<String> GetAttributeNames() const;
  35815. String GetAttributeUpper(const String&) const;
  35816. bool GetBool(const String&) const;
  35817. BoundingBox GetBoundingBox() const;
  35818. XMLElement GetChild(const String& = String :: EMPTY) const;
  35819. Color GetColor(const String&) const;
  35820. double GetDouble(const String&) const;
  35821. XMLFile GetFile() const;
  35822. float GetFloat(const String&) const;
  35823. int GetInt(const String&) const;
  35824. int64 GetInt64(const String&) const;
  35825. IntRect GetIntRect(const String&) const;
  35826. IntVector2 GetIntVector2(const String&) const;
  35827. IntVector3 GetIntVector3(const String&) const;
  35828. Matrix3 GetMatrix3(const String&) const;
  35829. Matrix3x4 GetMatrix3x4(const String&) const;
  35830. Matrix4 GetMatrix4(const String&) const;
  35831. String GetName() const;
  35832. XMLElement GetNext(const String& = String :: EMPTY) const;
  35833. uint GetNumAttributes() const;
  35834. XMLElement GetOrCreateChild(const String&);
  35835. XMLElement GetParent() const;
  35836. Quaternion GetQuaternion(const String&) const;
  35837. Rect GetRect(const String&) const;
  35838. ResourceRef GetResourceRef() const;
  35839. ResourceRefList GetResourceRefList() const;
  35840. Array<String> GetStringVector() const;
  35841. uint GetUInt(const String&) const;
  35842. uint64 GetUInt64(const String&) const;
  35843. String GetValue() const;
  35844. Variant GetVariant() const;
  35845. VariantMap GetVariantMap() const;
  35846. Variant GetVariantValue(VariantType) const;
  35847. Array<Variant> GetVariantVector() const;
  35848. Vector4 GetVector(const String&) const;
  35849. Vector2 GetVector2(const String&) const;
  35850. Vector3 GetVector3(const String&) const;
  35851. Vector4 GetVector4(const String&) const;
  35852. Variant GetVectorVariant(const String&) const;
  35853. uint GetXPathResultIndex() const;
  35854. bool HasAttribute(const String&) const;
  35855. bool HasChild(const String&) const;
  35856. bool IsNull() const;
  35857. XMLElement NextResult() const;
  35858. bool NotNull() const;
  35859. bool Remove();
  35860. bool RemoveAttribute(const String& = String :: EMPTY);
  35861. bool RemoveChild(const String&);
  35862. bool RemoveChild(const XMLElement&);
  35863. bool RemoveChildren(const String& = String :: EMPTY);
  35864. XPathResultSet Select(const String&);
  35865. XPathResultSet SelectPrepared(const XPathQuery&) const;
  35866. XMLElement SelectSingle(const String&);
  35867. XMLElement SelectSinglePrepared(const XPathQuery&) const;
  35868. bool SetAttribute(const String&);
  35869. bool SetAttribute(const String&, const String&);
  35870. bool SetBool(const String&, bool);
  35871. bool SetBoundingBox(const BoundingBox&);
  35872. bool SetColor(const String&, const Color&);
  35873. bool SetDouble(const String&, double);
  35874. bool SetFloat(const String&, float);
  35875. bool SetInt(const String&, int);
  35876. bool SetInt64(const String&, int64);
  35877. bool SetIntRect(const String&, const IntRect&);
  35878. bool SetIntVector2(const String&, const IntVector2&);
  35879. bool SetIntVector3(const String&, const IntVector3&);
  35880. bool SetMatrix3(const String&, const Matrix3&);
  35881. bool SetMatrix3x4(const String&, const Matrix3x4&);
  35882. bool SetMatrix4(const String&, const Matrix4&);
  35883. bool SetQuaternion(const String&, const Quaternion&);
  35884. bool SetRect(const String&, const Rect&);
  35885. bool SetResourceRef(const ResourceRef&);
  35886. bool SetResourceRefList(const ResourceRefList&);
  35887. bool SetString(const String&, const String&);
  35888. bool SetStringVector(Array<String>);
  35889. bool SetUInt(const String&, uint);
  35890. bool SetUInt64(const String&, uint64);
  35891. bool SetValue(const String&);
  35892. bool SetVariant(const Variant&);
  35893. bool SetVariantMap(const VariantMap&);
  35894. bool SetVariantValue(const Variant&);
  35895. bool SetVariantVector(Array<Variant>);
  35896. bool SetVector2(const String&, const Vector2&);
  35897. bool SetVector3(const String&, const Vector3&);
  35898. bool SetVector4(const String&, const Vector4&);
  35899. bool SetVectorVariant(const String&, const Variant&);
  35900. // Properties:
  35901. /* readonly */
  35902. XMLFile file;
  35903. /* readonly */
  35904. bool isNull;
  35905. /* readonly */
  35906. String name;
  35907. /* readonly */
  35908. XMLElement nextResult;
  35909. /* readonly */
  35910. bool notNull;
  35911. /* readonly */
  35912. uint numAttributes;
  35913. /* readonly */
  35914. XMLElement parent;
  35915. String value;
  35916. // Constants:
  35917. static const XMLElement EMPTY;
  35918. };
  35919. class XMLFile
  35920. {
  35921. public:
  35922. XMLFile();
  35923. // Methods:
  35924. bool BeginLoad(Deserializer&);
  35925. XMLElement CreateRoot(const String&);
  35926. bool EndLoad();
  35927. bool FromString(const String&);
  35928. AsyncLoadState GetAsyncLoadState() const;
  35929. bool GetBlockEvents() const;
  35930. VariantMap& GetEventDataMap() const;
  35931. Object GetEventSender() const;
  35932. uint GetMemoryUse() const;
  35933. StringHash GetNameHash() const;
  35934. XMLElement GetOrCreateRoot(const String&);
  35935. XMLElement GetRoot(const String& = String :: EMPTY);
  35936. Object GetSubsystem(StringHash) const;
  35937. StringHash GetType() const;
  35938. uint GetUseTimer();
  35939. bool HasEventHandlers() const;
  35940. bool HasSubscribedToEvent(Object, StringHash) const;
  35941. bool HasSubscribedToEvent(StringHash) const;
  35942. bool IsInstanceOf(StringHash) const;
  35943. bool Load(Deserializer&);
  35944. bool Load(File);
  35945. bool Load(VectorBuffer&);
  35946. bool Load(const String&);
  35947. bool LoadFile(const String&);
  35948. operator Object() const;
  35949. void OnEvent(Object, StringHash, VariantMap&);
  35950. void Patch(XMLFile);
  35951. void Patch(const XMLElement&);
  35952. operator RefCounted() const;
  35953. int Refs() const;
  35954. void ResetUseTimer();
  35955. operator Resource() const;
  35956. bool Save(File) const;
  35957. bool Save(Serializer&) const;
  35958. bool Save(Serializer&, const String&) const;
  35959. bool Save(VectorBuffer&) const;
  35960. bool Save(const String&) const;
  35961. bool SaveFile(const String&) const;
  35962. void SendEvent(StringHash);
  35963. void SendEvent(StringHash, VariantMap&);
  35964. void SetAsyncLoadState(AsyncLoadState);
  35965. void SetBlockEvents(bool);
  35966. void SetGlobalVar(StringHash, const Variant&);
  35967. void SetMemoryUse(uint);
  35968. void SetName(const String&);
  35969. const String& GetCategory() const;
  35970. const String& GetName() const;
  35971. const String& GetTypeName() const;
  35972. String ToString(const String& = "\t") const;
  35973. void UnsubscribeFromAllEvents();
  35974. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35975. void UnsubscribeFromEvent(Object, StringHash);
  35976. void UnsubscribeFromEvent(StringHash);
  35977. void UnsubscribeFromEvents(Object);
  35978. const Variant& GetGlobalVar(StringHash) const;
  35979. const VariantMap& GetGlobalVars() const;
  35980. int WeakRefs() const;
  35981. operator const Object() const;
  35982. operator const RefCounted() const;
  35983. operator const Resource() const;
  35984. // Properties:
  35985. /* readonly */
  35986. String category;
  35987. Array<Variant> globalVar;
  35988. /* readonly */
  35989. VariantMap globalVars;
  35990. /* readonly */
  35991. uint memoryUse;
  35992. String name;
  35993. /* readonly */
  35994. int refs;
  35995. /* readonly */
  35996. XMLElement root;
  35997. /* readonly */
  35998. StringHash type;
  35999. /* readonly */
  36000. String typeName;
  36001. /* readonly */
  36002. uint useTimer;
  36003. /* readonly */
  36004. int weakRefs;
  36005. };
  36006. class XPathQuery
  36007. {
  36008. public:
  36009. ~XPathQuery();
  36010. XPathQuery();
  36011. XPathQuery(const String&in, const String&in = String :: EMPTY);
  36012. // Methods:
  36013. void Bind();
  36014. void Clear();
  36015. XPathResultSet Evaluate(const XMLElement&) const;
  36016. bool EvaluateToBool(const XMLElement&) const;
  36017. float EvaluateToFloat(const XMLElement&) const;
  36018. String EvaluateToString(const XMLElement&) const;
  36019. String GetQuery() const;
  36020. bool SetQuery(const String&, const String& = String :: EMPTY, bool = true);
  36021. bool SetVariable(const String&, bool);
  36022. bool SetVariable(const String&, const String&);
  36023. bool SetVariable(const String&, const XPathResultSet&);
  36024. bool SetVariable(const String&, float);
  36025. // Properties:
  36026. String query;
  36027. };
  36028. class XPathResultSet
  36029. {
  36030. public:
  36031. ~XPathResultSet();
  36032. XPathResultSet();
  36033. XPathResultSet(const XPathResultSet&in);
  36034. // Methods:
  36035. XPathResultSet& operator=(const XPathResultSet&);
  36036. XMLElement operator[](uint) const;
  36037. bool Empty() const;
  36038. XMLElement FirstResult();
  36039. uint Size() const;
  36040. // Properties:
  36041. /* readonly */
  36042. bool empty;
  36043. /* readonly */
  36044. XMLElement firstResult;
  36045. /* readonly */
  36046. uint size;
  36047. };
  36048. class Zone
  36049. {
  36050. public:
  36051. Zone();
  36052. // Methods:
  36053. void AddLight(Light);
  36054. void AddVertexLight(Light);
  36055. void AllocateNetworkState();
  36056. operator Animatable() const;
  36057. void ApplyAttributes();
  36058. const BoundingBox& GetBoundingBox() const;
  36059. const BoundingBox& GetWorldBoundingBox();
  36060. void CleanupConnection(Connection);
  36061. const Color& GetAmbientColor() const;
  36062. const Color& GetAmbientEndColor();
  36063. const Color& GetAmbientStartColor();
  36064. const Color& GetFogColor() const;
  36065. operator Component() const;
  36066. void DrawDebugGeometry(DebugRenderer, bool);
  36067. bool DrawOcclusion(OcclusionBuffer);
  36068. operator Drawable() const;
  36069. bool GetAmbientGradient() const;
  36070. bool GetAnimationEnabled() const;
  36071. Variant GetAttribute(const String&) const;
  36072. Variant GetAttribute(uint) const;
  36073. ValueAnimation GetAttributeAnimation(const String&) const;
  36074. float GetAttributeAnimationSpeed(const String&) const;
  36075. float GetAttributeAnimationTime(const String&) const;
  36076. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  36077. Variant GetAttributeDefault(const String&) const;
  36078. Variant GetAttributeDefault(uint) const;
  36079. bool GetBlockEvents() const;
  36080. bool GetCastShadows() const;
  36081. Component GetComponent(StringHash) const;
  36082. float GetDistance() const;
  36083. float GetDrawDistance() const;
  36084. uint8 GetDrawableFlags() const;
  36085. VariantMap& GetEventDataMap() const;
  36086. Object GetEventSender() const;
  36087. Light GetFirstLight() const;
  36088. float GetFogEnd() const;
  36089. float GetFogHeight() const;
  36090. float GetFogHeightScale() const;
  36091. float GetFogStart() const;
  36092. bool GetHeightFog() const;
  36093. uint GetID() const;
  36094. bool GetInterceptNetworkUpdate(const String&) const;
  36095. uint GetLightMask() const;
  36096. Array<Light> GetLights() const;
  36097. float GetLodBias() const;
  36098. float GetLodDistance() const;
  36099. Geometry GetLodGeometry(uint, uint);
  36100. uint GetMaxLights() const;
  36101. float GetMaxZ() const;
  36102. float GetMinZ() const;
  36103. Node GetNode() const;
  36104. uint GetNumAttributes() const;
  36105. uint GetNumNetworkAttributes() const;
  36106. uint GetNumOccluderTriangles();
  36107. ObjectAnimation GetObjectAnimation() const;
  36108. ResourceRef GetObjectAnimationAttr() const;
  36109. bool GetOverride() const;
  36110. int GetPriority() const;
  36111. Scene GetScene() const;
  36112. float GetShadowDistance() const;
  36113. uint GetShadowMask() const;
  36114. float GetSortValue() const;
  36115. Object GetSubsystem(StringHash) const;
  36116. StringHash GetType() const;
  36117. UpdateGeometryType GetUpdateGeometryType();
  36118. Array<Light> GetVertexLights() const;
  36119. uint GetViewMask() const;
  36120. Zone GetZone() const;
  36121. uint GetZoneMask() const;
  36122. Texture GetZoneTexture() const;
  36123. ResourceRef GetZoneTextureAttr() const;
  36124. bool HasBasePass(uint) const;
  36125. bool HasEventHandlers() const;
  36126. bool HasSubscribedToEvent(Object, StringHash) const;
  36127. bool HasSubscribedToEvent(StringHash) const;
  36128. bool IsEnabled() const;
  36129. bool IsEnabledEffective() const;
  36130. bool IsInView() const;
  36131. bool IsInView(Camera) const;
  36132. bool IsInView(const FrameInfo&, bool = false) const;
  36133. bool IsInside(const Vector3&) const;
  36134. bool IsInstanceOf(StringHash) const;
  36135. bool IsOccludee() const;
  36136. bool IsOccluder() const;
  36137. bool IsReplicated() const;
  36138. bool IsTemporary() const;
  36139. bool IsZoneDirty() const;
  36140. void LimitLights();
  36141. void LimitVertexLights(bool);
  36142. bool Load(Deserializer&);
  36143. bool LoadJSON(const JSONValue&);
  36144. bool LoadXML(const XMLElement&);
  36145. void MarkForUpdate();
  36146. void MarkInView(const FrameInfo&);
  36147. void MarkInView(uint);
  36148. void MarkNetworkUpdate();
  36149. const Matrix3x4& GetInverseWorldTransform() const;
  36150. operator Object() const;
  36151. void OnEvent(Object, StringHash, VariantMap&);
  36152. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  36153. void OnSetAttribute(const AttributeInfo&, const Variant&);
  36154. void OnSetEnabled();
  36155. void PrepareNetworkUpdate();
  36156. bool ReadDeltaUpdate(Deserializer&);
  36157. bool ReadLatestDataUpdate(Deserializer&);
  36158. operator RefCounted() const;
  36159. int Refs() const;
  36160. void Remove();
  36161. void RemoveAttributeAnimation(const String&);
  36162. void RemoveInstanceDefault();
  36163. void RemoveObjectAnimation();
  36164. void ResetToDefault();
  36165. bool Save(Serializer&) const;
  36166. bool SaveDefaultAttributes() const;
  36167. bool SaveJSON(JSONValue&) const;
  36168. bool SaveXML(XMLElement&) const;
  36169. void SendEvent(StringHash);
  36170. void SendEvent(StringHash, VariantMap&);
  36171. operator Serializable() const;
  36172. void SetAmbientColor(const Color&);
  36173. void SetAmbientGradient(bool);
  36174. void SetAnimationEnabled(bool);
  36175. void SetAnimationTime(float);
  36176. bool SetAttribute(const String&, const Variant&);
  36177. bool SetAttribute(uint, const Variant&);
  36178. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  36179. void SetAttributeAnimationSpeed(const String&, float);
  36180. void SetAttributeAnimationTime(const String&, float);
  36181. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  36182. void SetBasePass(uint);
  36183. void SetBlockEvents(bool);
  36184. void SetBoundingBox(const BoundingBox&);
  36185. void SetCastShadows(bool);
  36186. void SetDrawDistance(float);
  36187. void SetEnabled(bool);
  36188. void SetFogColor(const Color&);
  36189. void SetFogEnd(float);
  36190. void SetFogHeight(float);
  36191. void SetFogHeightScale(float);
  36192. void SetFogStart(float);
  36193. void SetGlobalVar(StringHash, const Variant&);
  36194. void SetHeightFog(bool);
  36195. void SetInstanceDefault(bool);
  36196. void SetInterceptNetworkUpdate(const String&, bool);
  36197. void SetLightMask(uint);
  36198. void SetLodBias(float);
  36199. void SetMaxLights(uint);
  36200. void SetMinMaxZ(float, float);
  36201. void SetObjectAnimation(ObjectAnimation);
  36202. void SetObjectAnimationAttr(const ResourceRef&);
  36203. void SetOccludee(bool);
  36204. void SetOccluder(bool);
  36205. void SetOverride(bool);
  36206. void SetPriority(int);
  36207. void SetShadowDistance(float);
  36208. void SetShadowMask(uint);
  36209. void SetSortValue(float);
  36210. void SetTemporary(bool);
  36211. void SetViewMask(uint);
  36212. void SetZone(Zone, bool = false);
  36213. void SetZoneMask(uint);
  36214. void SetZoneTexture(Texture);
  36215. void SetZoneTextureAttr(const ResourceRef&);
  36216. const String& GetCategory() const;
  36217. const String& GetTypeName() const;
  36218. void UnsubscribeFromAllEvents();
  36219. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  36220. void UnsubscribeFromEvent(Object, StringHash);
  36221. void UnsubscribeFromEvent(StringHash);
  36222. void UnsubscribeFromEvents(Object);
  36223. void Update(const FrameInfo&);
  36224. void UpdateBatches(const FrameInfo&);
  36225. void UpdateGeometry(const FrameInfo&);
  36226. const Variant& GetGlobalVar(StringHash) const;
  36227. const VariantMap& GetGlobalVars() const;
  36228. int WeakRefs() const;
  36229. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  36230. void WriteInitialDeltaUpdate(Serializer&, uint8);
  36231. void WriteLatestDataUpdate(Serializer&, uint8);
  36232. operator const Animatable() const;
  36233. operator const Component() const;
  36234. operator const Drawable() const;
  36235. operator const Object() const;
  36236. operator const RefCounted() const;
  36237. operator const Serializable() const;
  36238. // Properties:
  36239. Color ambientColor;
  36240. /* readonly */
  36241. Color ambientEndColor;
  36242. bool ambientGradient;
  36243. /* readonly */
  36244. Color ambientStartColor;
  36245. bool animationEnabled;
  36246. /* readonly */
  36247. Array<Variant> attributeDefaults;
  36248. /* readonly */
  36249. Array<AttributeInfo> attributeInfos;
  36250. Array<Variant> attributes;
  36251. BoundingBox boundingBox;
  36252. bool castShadows;
  36253. /* readonly */
  36254. String category;
  36255. float drawDistance;
  36256. bool enabled;
  36257. /* readonly */
  36258. bool enabledEffective;
  36259. Color fogColor;
  36260. float fogEnd;
  36261. float fogHeight;
  36262. float fogHeightScale;
  36263. float fogStart;
  36264. Array<Variant> globalVar;
  36265. /* readonly */
  36266. VariantMap globalVars;
  36267. bool heightFog;
  36268. /* readonly */
  36269. uint id;
  36270. /* readonly */
  36271. bool inView;
  36272. /* readonly */
  36273. Matrix3x4 inverseWorldTransform;
  36274. uint lightMask;
  36275. float lodBias;
  36276. uint maxLights;
  36277. /* readonly */
  36278. Node node;
  36279. /* readonly */
  36280. uint numAttributes;
  36281. ObjectAnimation objectAnimation;
  36282. bool occludee;
  36283. bool occluder;
  36284. bool override;
  36285. int priority;
  36286. /* readonly */
  36287. int refs;
  36288. /* readonly */
  36289. bool replicated;
  36290. float shadowDistance;
  36291. uint shadowMask;
  36292. bool temporary;
  36293. /* readonly */
  36294. StringHash type;
  36295. /* readonly */
  36296. String typeName;
  36297. uint viewMask;
  36298. /* readonly */
  36299. int weakRefs;
  36300. /* readonly */
  36301. BoundingBox worldBoundingBox;
  36302. /* readonly */
  36303. Zone zone;
  36304. uint zoneMask;
  36305. Texture zoneTexture;
  36306. };
  36307. // Enumerations
  36308. enum AnimationBlendMode
  36309. {
  36310. ABM_LERP,
  36311. ABM_ADDITIVE,
  36312. };
  36313. enum AsyncLoadState
  36314. {
  36315. ASYNC_DONE,
  36316. ASYNC_QUEUED,
  36317. ASYNC_LOADING,
  36318. ASYNC_SUCCESS,
  36319. ASYNC_FAIL,
  36320. };
  36321. enum AttributeMode
  36322. {
  36323. AM_EDIT,
  36324. AM_FILE,
  36325. AM_NET,
  36326. AM_DEFAULT,
  36327. AM_LATESTDATA,
  36328. AM_NOEDIT,
  36329. AM_NODEID,
  36330. AM_COMPONENTID,
  36331. AM_NODEIDVECTOR,
  36332. AM_FILEREADONLY,
  36333. };
  36334. enum AutoRemoveMode
  36335. {
  36336. REMOVE_DISABLED,
  36337. REMOVE_COMPONENT,
  36338. REMOVE_NODE,
  36339. };
  36340. enum BlendMode
  36341. {
  36342. BLEND_REPLACE,
  36343. BLEND_ADD,
  36344. BLEND_MULTIPLY,
  36345. BLEND_ALPHA,
  36346. BLEND_ADDALPHA,
  36347. BLEND_PREMULALPHA,
  36348. BLEND_INVDESTALPHA,
  36349. BLEND_SUBTRACT,
  36350. BLEND_SUBTRACTALPHA,
  36351. MAX_BLENDMODES,
  36352. };
  36353. enum BodyType2D
  36354. {
  36355. BT_STATIC,
  36356. BT_KINEMATIC,
  36357. BT_DYNAMIC,
  36358. };
  36359. enum CollisionEventMode
  36360. {
  36361. COLLISION_NEVER,
  36362. COLLISION_ACTIVE,
  36363. COLLISION_ALWAYS,
  36364. };
  36365. enum CompareMode
  36366. {
  36367. CMP_ALWAYS,
  36368. CMP_EQUAL,
  36369. CMP_NOTEQUAL,
  36370. CMP_LESS,
  36371. CMP_LESSEQUAL,
  36372. CMP_GREATER,
  36373. CMP_GREATEREQUAL,
  36374. MAX_COMPAREMODES,
  36375. };
  36376. enum CompressedFormat
  36377. {
  36378. CF_NONE,
  36379. CF_RGBA,
  36380. CF_DXT1,
  36381. CF_DXT3,
  36382. CF_DXT5,
  36383. CF_ETC1,
  36384. CF_ETC2_RGB,
  36385. CF_ETC2_RGBA,
  36386. CF_PVRTC_RGB_2BPP,
  36387. CF_PVRTC_RGBA_2BPP,
  36388. CF_PVRTC_RGB_4BPP,
  36389. CF_PVRTC_RGBA_4BPP,
  36390. };
  36391. enum ConstraintType
  36392. {
  36393. CONSTRAINT_POINT,
  36394. CONSTRAINT_HINGE,
  36395. CONSTRAINT_SLIDER,
  36396. CONSTRAINT_CONETWIST,
  36397. };
  36398. enum Corner
  36399. {
  36400. C_TOPLEFT,
  36401. C_TOPRIGHT,
  36402. C_BOTTOMLEFT,
  36403. C_BOTTOMRIGHT,
  36404. MAX_UIELEMENT_CORNERS,
  36405. };
  36406. enum CreateMode
  36407. {
  36408. REPLICATED,
  36409. LOCAL,
  36410. };
  36411. enum CrowdAgentRequestedTarget
  36412. {
  36413. CA_REQUESTEDTARGET_NONE,
  36414. CA_REQUESTEDTARGET_POSITION,
  36415. CA_REQUESTEDTARGET_VELOCITY,
  36416. };
  36417. enum CrowdAgentState
  36418. {
  36419. CA_STATE_INVALID,
  36420. CA_STATE_WALKING,
  36421. CA_STATE_OFFMESH,
  36422. };
  36423. enum CrowdAgentTargetState
  36424. {
  36425. CA_TARGET_NONE,
  36426. CA_TARGET_FAILED,
  36427. CA_TARGET_VALID,
  36428. CA_TARGET_REQUESTING,
  36429. CA_TARGET_WAITINGFORQUEUE,
  36430. CA_TARGET_WAITINGFORPATH,
  36431. CA_TARGET_VELOCITY,
  36432. };
  36433. enum CubeMapFace
  36434. {
  36435. FACE_POSITIVE_X,
  36436. FACE_NEGATIVE_X,
  36437. FACE_POSITIVE_Y,
  36438. FACE_NEGATIVE_Y,
  36439. FACE_POSITIVE_Z,
  36440. FACE_NEGATIVE_Z,
  36441. MAX_CUBEMAP_FACES,
  36442. };
  36443. enum CubeMapLayout
  36444. {
  36445. CML_HORIZONTAL,
  36446. CML_HORIZONTALNVIDIA,
  36447. CML_HORIZONTALCROSS,
  36448. CML_VERTICALCROSS,
  36449. CML_BLENDER,
  36450. };
  36451. enum CullMode
  36452. {
  36453. CULL_NONE,
  36454. CULL_CCW,
  36455. CULL_CW,
  36456. MAX_CULLMODES,
  36457. };
  36458. enum CursorShape
  36459. {
  36460. CS_NORMAL,
  36461. CS_IBEAM,
  36462. CS_CROSS,
  36463. CS_RESIZEVERTICAL,
  36464. CS_RESIZEDIAGONAL_TOPRIGHT,
  36465. CS_RESIZEHORIZONTAL,
  36466. CS_RESIZEDIAGONAL_TOPLEFT,
  36467. CS_RESIZE_ALL,
  36468. CS_ACCEPTDROP,
  36469. CS_REJECTDROP,
  36470. CS_BUSY,
  36471. CS_BUSY_ARROW,
  36472. CS_MAX_SHAPES,
  36473. };
  36474. enum DBAPI
  36475. {
  36476. DBAPI_SQLITE,
  36477. DBAPI_ODBC,
  36478. };
  36479. enum DeferredLightPSVariation
  36480. {
  36481. DLPS_NONE,
  36482. DLPS_SPOT,
  36483. DLPS_POINT,
  36484. DLPS_POINTMASK,
  36485. DLPS_SPEC,
  36486. DLPS_SPOTSPEC,
  36487. DLPS_POINTSPEC,
  36488. DLPS_POINTMASKSPEC,
  36489. DLPS_SHADOW,
  36490. DLPS_SPOTSHADOW,
  36491. DLPS_POINTSHADOW,
  36492. DLPS_POINTMASKSHADOW,
  36493. DLPS_SHADOWSPEC,
  36494. DLPS_SPOTSHADOWSPEC,
  36495. DLPS_POINTSHADOWSPEC,
  36496. DLPS_POINTMASKSHADOWSPEC,
  36497. DLPS_SHADOWNORMALOFFSET,
  36498. DLPS_SPOTSHADOWNORMALOFFSET,
  36499. DLPS_POINTSHADOWNORMALOFFSET,
  36500. DLPS_POINTMASKSHADOWNORMALOFFSET,
  36501. DLPS_SHADOWSPECNORMALOFFSET,
  36502. DLPS_SPOTSHADOWSPECNORMALOFFSET,
  36503. DLPS_POINTSHADOWSPECNORMALOFFSET,
  36504. DLPS_POINTMASKSHADOWSPECNORMALOFFSET,
  36505. DLPS_ORTHO,
  36506. DLPS_ORTHOSPOT,
  36507. DLPS_ORTHOPOINT,
  36508. DLPS_ORTHOPOINTMASK,
  36509. DLPS_ORTHOSPEC,
  36510. DLPS_ORTHOSPOTSPEC,
  36511. DLPS_ORTHOPOINTSPEC,
  36512. DLPS_ORTHOPOINTMASKSPEC,
  36513. DLPS_ORTHOSHADOW,
  36514. DLPS_ORTHOSPOTSHADOW,
  36515. DLPS_ORTHOPOINTSHADOW,
  36516. DLPS_ORTHOPOINTMASKSHADOW,
  36517. DLPS_ORTHOSHADOWSPEC,
  36518. DLPS_ORTHOSPOTSHADOWSPEC,
  36519. DLPS_ORTHOPOINTSHADOWSPEC,
  36520. DLPS_ORTHOPOINTMASKSHADOWSPEC,
  36521. DLPS_ORTHOSHADOWNORMALOFFSET,
  36522. DLPS_ORTHOSPOTSHADOWNORMALOFFSET,
  36523. DLPS_ORTHOPOINTSHADOWNORMALOFFSET,
  36524. DLPS_ORTHOPOINTMASKSHADOWNORMALOFFSET,
  36525. DLPS_ORTHOSHADOWSPECNORMALOFFSET,
  36526. DLPS_ORTHOSPOTSHADOWSPECNORMALOFFSET,
  36527. DLPS_ORTHOPOINTSHADOWSPECNORMALOFFSET,
  36528. DLPS_ORTHOPOINTMASKSHADOWSPECNORMALOFFSET,
  36529. MAX_DEFERRED_LIGHT_PS_VARIATIONS,
  36530. };
  36531. enum DeferredLightVSVariation
  36532. {
  36533. DLVS_NONE,
  36534. DLVS_DIR,
  36535. DLVS_ORTHO,
  36536. DLVS_ORTHODIR,
  36537. MAX_DEFERRED_LIGHT_VS_VARIATIONS,
  36538. };
  36539. enum DumpMode
  36540. {
  36541. DOXYGEN,
  36542. C_HEADER,
  36543. };
  36544. enum EmitterType
  36545. {
  36546. EMITTER_SPHERE,
  36547. EMITTER_BOX,
  36548. EMITTER_SPHEREVOLUME,
  36549. EMITTER_CYLINDER,
  36550. EMITTER_RING,
  36551. };
  36552. enum EmitterType2D
  36553. {
  36554. EMITTER_TYPE_GRAVITY,
  36555. EMITTER_TYPE_RADIAL,
  36556. };
  36557. enum FaceCameraMode
  36558. {
  36559. FC_NONE,
  36560. FC_ROTATE_XYZ,
  36561. FC_ROTATE_Y,
  36562. FC_LOOKAT_XYZ,
  36563. FC_LOOKAT_Y,
  36564. FC_LOOKAT_MIXED,
  36565. FC_DIRECTION,
  36566. };
  36567. enum FileMode
  36568. {
  36569. FILE_READ,
  36570. FILE_WRITE,
  36571. FILE_READWRITE,
  36572. };
  36573. enum FillMode
  36574. {
  36575. FILL_SOLID,
  36576. FILL_WIREFRAME,
  36577. FILL_POINT,
  36578. };
  36579. enum FocusMode
  36580. {
  36581. FM_NOTFOCUSABLE,
  36582. FM_RESETFOCUS,
  36583. FM_FOCUSABLE,
  36584. FM_FOCUSABLE_DEFOCUSABLE,
  36585. };
  36586. enum FontHintLevel
  36587. {
  36588. FONT_HINT_LEVEL_NONE,
  36589. FONT_HINT_LEVEL_LIGHT,
  36590. FONT_HINT_LEVEL_NORMAL,
  36591. };
  36592. enum FontType
  36593. {
  36594. FONT_NONE,
  36595. FONT_FREETYPE,
  36596. FONT_BITMAP,
  36597. MAX_FONT_TYPES,
  36598. };
  36599. enum FrustumPlane
  36600. {
  36601. PLANE_NEAR,
  36602. PLANE_LEFT,
  36603. PLANE_RIGHT,
  36604. PLANE_UP,
  36605. PLANE_DOWN,
  36606. PLANE_FAR,
  36607. };
  36608. enum GAPI
  36609. {
  36610. GAPI_NONE,
  36611. GAPI_OPENGL,
  36612. GAPI_D3D9,
  36613. GAPI_D3D11,
  36614. };
  36615. enum GeometryType
  36616. {
  36617. GEOM_STATIC,
  36618. GEOM_SKINNED,
  36619. GEOM_INSTANCED,
  36620. GEOM_BILLBOARD,
  36621. GEOM_DIRBILLBOARD,
  36622. GEOM_TRAIL_FACE_CAMERA,
  36623. GEOM_TRAIL_BONE,
  36624. MAX_GEOMETRYTYPES,
  36625. GEOM_STATIC_NOINSTANCING,
  36626. };
  36627. enum HighlightMode
  36628. {
  36629. HM_NEVER,
  36630. HM_FOCUS,
  36631. HM_ALWAYS,
  36632. };
  36633. enum HorizontalAlignment
  36634. {
  36635. HA_LEFT,
  36636. HA_CENTER,
  36637. HA_RIGHT,
  36638. HA_CUSTOM,
  36639. };
  36640. enum HttpRequestState
  36641. {
  36642. HTTP_INITIALIZING,
  36643. HTTP_ERROR,
  36644. HTTP_OPEN,
  36645. HTTP_CLOSED,
  36646. };
  36647. enum IKAlgorithm
  36648. {
  36649. ONE_BONE,
  36650. TWO_BONE,
  36651. FABRIK,
  36652. };
  36653. enum IKFeature
  36654. {
  36655. JOINT_ROTATIONS,
  36656. TARGET_ROTATIONS,
  36657. UPDATE_ORIGINAL_POSE,
  36658. UPDATE_ACTIVE_POSE,
  36659. USE_ORIGINAL_POSE,
  36660. CONSTRAINTS,
  36661. AUTO_SOLVE,
  36662. };
  36663. enum InterpMethod
  36664. {
  36665. IM_NONE,
  36666. IM_LINEAR,
  36667. IM_SPLINE,
  36668. };
  36669. enum InterpolationMode
  36670. {
  36671. BEZIER_CURVE,
  36672. CATMULL_ROM_CURVE,
  36673. LINEAR_CURVE,
  36674. CATMULL_ROM_FULL_CURVE,
  36675. };
  36676. enum Intersection
  36677. {
  36678. OUTSIDE,
  36679. INTERSECTS,
  36680. INSIDE,
  36681. };
  36682. enum JSONNumberType
  36683. {
  36684. JSONNT_NAN,
  36685. JSONNT_INT,
  36686. JSONNT_UINT,
  36687. JSONNT_FLOAT_DOUBLE,
  36688. };
  36689. enum JSONValueType
  36690. {
  36691. JSON_NULL,
  36692. JSON_BOOL,
  36693. JSON_NUMBER,
  36694. JSON_STRING,
  36695. JSON_ARRAY,
  36696. JSON_OBJECT,
  36697. };
  36698. enum LayoutMode
  36699. {
  36700. LM_FREE,
  36701. LM_HORIZONTAL,
  36702. LM_VERTICAL,
  36703. };
  36704. enum LegacyVertexElement
  36705. {
  36706. ELEMENT_POSITION,
  36707. ELEMENT_NORMAL,
  36708. ELEMENT_COLOR,
  36709. ELEMENT_TEXCOORD1,
  36710. ELEMENT_TEXCOORD2,
  36711. ELEMENT_CUBETEXCOORD1,
  36712. ELEMENT_CUBETEXCOORD2,
  36713. ELEMENT_TANGENT,
  36714. ELEMENT_BLENDWEIGHTS,
  36715. ELEMENT_BLENDINDICES,
  36716. ELEMENT_INSTANCEMATRIX1,
  36717. ELEMENT_INSTANCEMATRIX2,
  36718. ELEMENT_INSTANCEMATRIX3,
  36719. ELEMENT_OBJECTINDEX,
  36720. MAX_LEGACY_VERTEX_ELEMENTS,
  36721. };
  36722. enum LightPSVariation
  36723. {
  36724. LPS_NONE,
  36725. LPS_SPOT,
  36726. LPS_POINT,
  36727. LPS_POINTMASK,
  36728. LPS_SPEC,
  36729. LPS_SPOTSPEC,
  36730. LPS_POINTSPEC,
  36731. LPS_POINTMASKSPEC,
  36732. LPS_SHADOW,
  36733. LPS_SPOTSHADOW,
  36734. LPS_POINTSHADOW,
  36735. LPS_POINTMASKSHADOW,
  36736. LPS_SHADOWSPEC,
  36737. LPS_SPOTSHADOWSPEC,
  36738. LPS_POINTSHADOWSPEC,
  36739. LPS_POINTMASKSHADOWSPEC,
  36740. MAX_LIGHT_PS_VARIATIONS,
  36741. };
  36742. enum LightType
  36743. {
  36744. LIGHT_DIRECTIONAL,
  36745. LIGHT_SPOT,
  36746. LIGHT_POINT,
  36747. };
  36748. enum LightVSVariation
  36749. {
  36750. LVS_DIR,
  36751. LVS_SPOT,
  36752. LVS_POINT,
  36753. LVS_SHADOW,
  36754. LVS_SPOTSHADOW,
  36755. LVS_POINTSHADOW,
  36756. LVS_SHADOWNORMALOFFSET,
  36757. LVS_SPOTSHADOWNORMALOFFSET,
  36758. LVS_POINTSHADOWNORMALOFFSET,
  36759. MAX_LIGHT_VS_VARIATIONS,
  36760. };
  36761. enum LoadMode
  36762. {
  36763. LOAD_RESOURCES_ONLY,
  36764. LOAD_SCENE,
  36765. LOAD_SCENE_AND_RESOURCES,
  36766. };
  36767. enum LockState
  36768. {
  36769. LOCK_NONE,
  36770. LOCK_HARDWARE,
  36771. LOCK_SHADOW,
  36772. LOCK_SCRATCH,
  36773. };
  36774. enum LoopMode2D
  36775. {
  36776. LM_DEFAULT,
  36777. LM_FORCE_LOOPED,
  36778. LM_FORCE_CLAMPED,
  36779. };
  36780. enum MouseMode
  36781. {
  36782. MM_ABSOLUTE,
  36783. MM_RELATIVE,
  36784. MM_WRAP,
  36785. MM_FREE,
  36786. MM_INVALID,
  36787. };
  36788. enum NavigationPathPointFlag
  36789. {
  36790. NAVPATHFLAG_NONE,
  36791. NAVPATHFLAG_START,
  36792. NAVPATHFLAG_END,
  36793. NAVPATHFLAG_OFF_MESH,
  36794. };
  36795. enum NavigationPushiness
  36796. {
  36797. NAVIGATIONPUSHINESS_LOW,
  36798. NAVIGATIONPUSHINESS_MEDIUM,
  36799. NAVIGATIONPUSHINESS_HIGH,
  36800. NAVIGATIONPUSHINESS_NONE,
  36801. };
  36802. enum NavigationQuality
  36803. {
  36804. NAVIGATIONQUALITY_LOW,
  36805. NAVIGATIONQUALITY_MEDIUM,
  36806. NAVIGATIONQUALITY_HIGH,
  36807. };
  36808. enum NavmeshPartitionType
  36809. {
  36810. NAVMESH_PARTITION_WATERSHED,
  36811. NAVMESH_PARTITION_MONOTONE,
  36812. };
  36813. enum ObserverPositionSendMode
  36814. {
  36815. OPSM_NONE,
  36816. OPSM_POSITION,
  36817. OPSM_POSITION_ROTATION,
  36818. };
  36819. enum Orientation
  36820. {
  36821. O_HORIZONTAL,
  36822. O_VERTICAL,
  36823. };
  36824. enum Orientation2D
  36825. {
  36826. O_ORTHOGONAL,
  36827. O_ISOMETRIC,
  36828. O_STAGGERED,
  36829. O_HEXAGONAL,
  36830. };
  36831. enum PacketType
  36832. {
  36833. PT_UNRELIABLE_UNORDERED,
  36834. PT_UNRELIABLE_ORDERED,
  36835. PT_RELIABLE_UNORDERED,
  36836. PT_RELIABLE_ORDERED,
  36837. };
  36838. enum PassLightingMode
  36839. {
  36840. LIGHTING_UNLIT,
  36841. LIGHTING_PERVERTEX,
  36842. LIGHTING_PERPIXEL,
  36843. };
  36844. enum PrimitiveType
  36845. {
  36846. TRIANGLE_LIST,
  36847. LINE_LIST,
  36848. POINT_LIST,
  36849. TRIANGLE_STRIP,
  36850. LINE_STRIP,
  36851. TRIANGLE_FAN,
  36852. };
  36853. enum RayQueryLevel
  36854. {
  36855. RAY_AABB,
  36856. RAY_OBB,
  36857. RAY_TRIANGLE,
  36858. RAY_TRIANGLE_UV,
  36859. };
  36860. enum RenderCommandSortMode
  36861. {
  36862. SORT_FRONTTOBACK,
  36863. SORT_BACKTOFRONT,
  36864. };
  36865. enum RenderCommandType
  36866. {
  36867. CMD_NONE,
  36868. CMD_CLEAR,
  36869. CMD_SCENEPASS,
  36870. CMD_QUAD,
  36871. CMD_FORWARDLIGHTS,
  36872. CMD_LIGHTVOLUMES,
  36873. CMD_RENDERUI,
  36874. CMD_SENDEVENT,
  36875. };
  36876. enum RenderSurfaceUpdateMode
  36877. {
  36878. SURFACE_MANUALUPDATE,
  36879. SURFACE_UPDATEVISIBLE,
  36880. SURFACE_UPDATEALWAYS,
  36881. };
  36882. enum RenderTargetSizeMode
  36883. {
  36884. SIZE_ABSOLUTE,
  36885. SIZE_VIEWPORTDIVISOR,
  36886. SIZE_VIEWPORTMULTIPLIER,
  36887. };
  36888. enum ResourceRequest
  36889. {
  36890. RESOURCE_CHECKEXISTS,
  36891. RESOURCE_GETFILE,
  36892. };
  36893. enum ShaderParameterGroup
  36894. {
  36895. SP_FRAME,
  36896. SP_CAMERA,
  36897. SP_ZONE,
  36898. SP_LIGHT,
  36899. SP_MATERIAL,
  36900. SP_OBJECT,
  36901. SP_CUSTOM,
  36902. MAX_SHADER_PARAMETER_GROUPS,
  36903. };
  36904. enum ShaderType
  36905. {
  36906. VS,
  36907. PS,
  36908. };
  36909. enum ShadowQuality
  36910. {
  36911. SHADOWQUALITY_SIMPLE_16BIT,
  36912. SHADOWQUALITY_SIMPLE_24BIT,
  36913. SHADOWQUALITY_PCF_16BIT,
  36914. SHADOWQUALITY_PCF_24BIT,
  36915. SHADOWQUALITY_VSM,
  36916. SHADOWQUALITY_BLUR_VSM,
  36917. };
  36918. enum ShapeType
  36919. {
  36920. SHAPE_BOX,
  36921. SHAPE_SPHERE,
  36922. SHAPE_STATICPLANE,
  36923. SHAPE_CYLINDER,
  36924. SHAPE_CAPSULE,
  36925. SHAPE_CONE,
  36926. SHAPE_TRIANGLEMESH,
  36927. SHAPE_CONVEXHULL,
  36928. SHAPE_TERRAIN,
  36929. SHAPE_GIMPACTMESH,
  36930. };
  36931. enum StencilOp
  36932. {
  36933. OP_KEEP,
  36934. OP_ZERO,
  36935. OP_REF,
  36936. OP_INCR,
  36937. OP_DECR,
  36938. };
  36939. enum TextEffect
  36940. {
  36941. TE_NONE,
  36942. TE_SHADOW,
  36943. TE_STROKE,
  36944. };
  36945. enum TextureAddressMode
  36946. {
  36947. ADDRESS_WRAP,
  36948. ADDRESS_MIRROR,
  36949. ADDRESS_CLAMP,
  36950. ADDRESS_BORDER,
  36951. MAX_ADDRESSMODES,
  36952. };
  36953. enum TextureCoordinate
  36954. {
  36955. COORD_U,
  36956. COORD_V,
  36957. COORD_W,
  36958. MAX_COORDS,
  36959. };
  36960. enum TextureFilterMode
  36961. {
  36962. FILTER_NEAREST,
  36963. FILTER_BILINEAR,
  36964. FILTER_TRILINEAR,
  36965. FILTER_ANISOTROPIC,
  36966. FILTER_NEAREST_ANISOTROPIC,
  36967. FILTER_DEFAULT,
  36968. MAX_FILTERMODES,
  36969. };
  36970. enum TextureUnit
  36971. {
  36972. TU_DIFFUSE,
  36973. TU_ALBEDOBUFFER,
  36974. TU_NORMAL,
  36975. TU_NORMALBUFFER,
  36976. TU_SPECULAR,
  36977. TU_EMISSIVE,
  36978. TU_ENVIRONMENT,
  36979. TU_LIGHTRAMP,
  36980. TU_LIGHTSHAPE,
  36981. TU_SHADOWMAP,
  36982. TU_VOLUMEMAP,
  36983. TU_CUSTOM1,
  36984. TU_CUSTOM2,
  36985. TU_FACESELECT,
  36986. TU_INDIRECTION,
  36987. TU_DEPTHBUFFER,
  36988. TU_LIGHTBUFFER,
  36989. TU_ZONE,
  36990. MAX_MATERIAL_TEXTURE_UNITS,
  36991. MAX_TEXTURE_UNITS,
  36992. };
  36993. enum TextureUsage
  36994. {
  36995. TEXTURE_STATIC,
  36996. TEXTURE_DYNAMIC,
  36997. TEXTURE_RENDERTARGET,
  36998. TEXTURE_DEPTHSTENCIL,
  36999. };
  37000. enum TileMapLayerType2D
  37001. {
  37002. LT_TILE_LAYER,
  37003. LT_OBJECT_GROUP,
  37004. LT_IMAGE_LAYER,
  37005. LT_INVALID,
  37006. };
  37007. enum TileMapObjectType2D
  37008. {
  37009. OT_RECTANGLE,
  37010. OT_ELLIPSE,
  37011. OT_POLYGON,
  37012. OT_POLYLINE,
  37013. OT_TILE,
  37014. OT_INVALID,
  37015. };
  37016. enum TrailType
  37017. {
  37018. TT_FACE_CAMERA,
  37019. TT_BONE,
  37020. };
  37021. enum TransformSpace
  37022. {
  37023. TS_LOCAL,
  37024. TS_PARENT,
  37025. TS_WORLD,
  37026. };
  37027. enum TraversalMode
  37028. {
  37029. TM_BREADTH_FIRST,
  37030. TM_DEPTH_FIRST,
  37031. };
  37032. enum UpdateGeometryType
  37033. {
  37034. UPDATE_NONE,
  37035. UPDATE_MAIN_THREAD,
  37036. UPDATE_WORKER_THREAD,
  37037. };
  37038. enum VariantType
  37039. {
  37040. VAR_NONE,
  37041. VAR_INT,
  37042. VAR_BOOL,
  37043. VAR_FLOAT,
  37044. VAR_VECTOR2,
  37045. VAR_VECTOR3,
  37046. VAR_VECTOR4,
  37047. VAR_QUATERNION,
  37048. VAR_COLOR,
  37049. VAR_STRING,
  37050. VAR_BUFFER,
  37051. VAR_VOIDPTR,
  37052. VAR_RESOURCEREF,
  37053. VAR_RESOURCEREFLIST,
  37054. VAR_VARIANTVECTOR,
  37055. VAR_VARIANTMAP,
  37056. VAR_INTRECT,
  37057. VAR_INTVECTOR2,
  37058. VAR_PTR,
  37059. VAR_MATRIX3,
  37060. VAR_MATRIX3X4,
  37061. VAR_MATRIX4,
  37062. VAR_DOUBLE,
  37063. VAR_STRINGVECTOR,
  37064. VAR_RECT,
  37065. VAR_INTVECTOR3,
  37066. VAR_INT64,
  37067. VAR_CUSTOM_HEAP,
  37068. VAR_CUSTOM_STACK,
  37069. MAX_VAR_TYPES,
  37070. };
  37071. enum VertexElementSemantic
  37072. {
  37073. SEM_POSITION,
  37074. SEM_NORMAL,
  37075. SEM_BINORMAL,
  37076. SEM_TANGENT,
  37077. SEM_TEXCOORD,
  37078. SEM_COLOR,
  37079. SEM_BLENDWEIGHTS,
  37080. SEM_BLENDINDICES,
  37081. SEM_OBJECTINDEX,
  37082. MAX_VERTEX_ELEMENT_SEMANTICS,
  37083. };
  37084. enum VertexElementType
  37085. {
  37086. TYPE_INT,
  37087. TYPE_FLOAT,
  37088. TYPE_VECTOR2,
  37089. TYPE_VECTOR3,
  37090. TYPE_VECTOR4,
  37091. TYPE_UBYTE4,
  37092. TYPE_UBYTE4_NORM,
  37093. MAX_VERTEX_ELEMENT_TYPES,
  37094. };
  37095. enum VertexLightVSVariation
  37096. {
  37097. VLVS_NOLIGHTS,
  37098. VLVS_1LIGHT,
  37099. VLVS_2LIGHTS,
  37100. VLVS_3LIGHTS,
  37101. VLVS_4LIGHTS,
  37102. MAX_VERTEXLIGHT_VS_VARIATIONS,
  37103. };
  37104. enum VerticalAlignment
  37105. {
  37106. VA_TOP,
  37107. VA_CENTER,
  37108. VA_BOTTOM,
  37109. VA_CUSTOM,
  37110. };
  37111. enum WindowDragMode
  37112. {
  37113. DRAG_NONE,
  37114. DRAG_MOVE,
  37115. DRAG_RESIZE_TOPLEFT,
  37116. DRAG_RESIZE_TOP,
  37117. DRAG_RESIZE_TOPRIGHT,
  37118. DRAG_RESIZE_RIGHT,
  37119. DRAG_RESIZE_BOTTOMRIGHT,
  37120. DRAG_RESIZE_BOTTOM,
  37121. DRAG_RESIZE_BOTTOMLEFT,
  37122. DRAG_RESIZE_LEFT,
  37123. };
  37124. enum WrapMode
  37125. {
  37126. WM_LOOP,
  37127. WM_ONCE,
  37128. WM_CLAMP,
  37129. };
  37130. // Global functions
  37131. BigInt Abs(const BigInt&);
  37132. float Abs(float);
  37133. float Acos(float);
  37134. String AddTrailingSlash(const String&);
  37135. float Asin(float);
  37136. float Atan(float);
  37137. float Atan2(float, float);
  37138. float Ceil(float);
  37139. int CeilToInt(float);
  37140. uint CheckMaxLevels(int, int, int, uint);
  37141. uint CheckMaxLevels(int, int, int, uint);
  37142. uint CheckMaxLevels(int, int, int, uint);
  37143. uint CheckMaxLevels(int, int, int, uint);
  37144. uint CheckMaxLevels(int, int, int, uint);
  37145. uint CheckMaxLevels(int, int, uint);
  37146. uint CheckMaxLevels(int, int, uint);
  37147. uint CheckMaxLevels(int, int, uint);
  37148. uint CheckMaxLevels(int, int, uint);
  37149. uint CheckMaxLevels(int, int, uint);
  37150. float Clamp(float, float, float);
  37151. int Clamp(int, int, int);
  37152. void ClearDelayedExecute(const String& declaration = String ( ));
  37153. uint ClosestPowerOfTwo(uint);
  37154. void CombineHash(uint&, uint);
  37155. bool CompareDrawables(Drawable, Drawable);
  37156. bool CompareLights(Light, Light);
  37157. bool CompressStream(Serializer&, Deserializer&);
  37158. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  37159. float ConvertGammaToLinear(float);
  37160. float ConvertLinearToGamma(float);
  37161. float Cos(float);
  37162. int CountSetBits(uint);
  37163. Object CreateObject(const String&);
  37164. bool DecompressStream(Serializer&, Deserializer&);
  37165. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  37166. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  37167. bool Equals(float, float);
  37168. void ErrorDialog(const String&, const String&);
  37169. void ErrorExit(const String& = String :: EMPTY, int = EXIT_FAILURE);
  37170. uint EstimateCompressBound(uint);
  37171. uint16 FloatToHalf(float);
  37172. uint FloatToRawIntBits(float);
  37173. float Floor(float);
  37174. int FloorToInt(float);
  37175. float Fract(float);
  37176. DBAPI GetAPI();
  37177. View GetActualView(View);
  37178. uint GetAlphaFormat();
  37179. Array<String> GetArguments();
  37180. String GetConsoleInput();
  37181. uint GetDepthStencilFormat();
  37182. uint GetElementOffset(Array<VertexElement>, VertexElementType, VertexElementSemantic, uint8 = 0);
  37183. Array<VertexElement> GetElements(uint);
  37184. StringHashRegister& GetEventNameRegister();
  37185. Object GetEventSender();
  37186. String GetExtension(const String&, bool = true);
  37187. String GetFileName(const String&);
  37188. String GetFileNameAndExtension(const String&, bool = false);
  37189. String GetFileSizeString(uint64);
  37190. uint GetFloat16Format();
  37191. uint GetFloat32Format();
  37192. uint GetFormat(const String&);
  37193. int64 GetFrequency();
  37194. Matrix3x4 GetFullscreenQuadTransform(Camera);
  37195. GAPI GetGAPI();
  37196. bool GetGL3Support();
  37197. Variant GetGlobalVar(const String&);
  37198. String GetHostName();
  37199. String GetInternalPath(const String&);
  37200. uint GetLinearDepthFormat();
  37201. String GetLoginName();
  37202. uint GetLuminanceAlphaFormat();
  37203. uint GetLuminanceFormat();
  37204. uint GetMaxBones();
  37205. String GetMiniDumpDir();
  37206. String GetNativePath(const String&);
  37207. uint GetNumLogicalCPUs();
  37208. uint GetNumPhysicalCPUs();
  37209. JSONNumberType GetNumberTypeFromName(const String&);
  37210. String GetNumberTypeName(JSONNumberType);
  37211. String GetOSVersion();
  37212. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  37213. Array<String> GetObjectCategories();
  37214. Array<String> GetObjectsByCategory(const String&);
  37215. String GetParentPath(const String&);
  37216. uint GetPassIndex(const String&);
  37217. String GetPath(const String&);
  37218. String GetPlatform();
  37219. uint GetRG16Format();
  37220. uint GetRGBA16Format();
  37221. uint GetRGBAFloat16Format();
  37222. uint GetRGBAFloat32Format();
  37223. uint GetRGBAFormat();
  37224. uint GetRGBFormat();
  37225. uint GetRGFloat16Format();
  37226. uint GetRGFloat32Format();
  37227. uint GetRandomSeed();
  37228. uint GetReadableDepthFormat();
  37229. ResourceRef GetResourceRef(Resource, StringHash);
  37230. StringHash GetResourceType(Resource, StringHash);
  37231. uint GetSystemTime();
  37232. String GetTextureUnitName(TextureUnit);
  37233. uint GetTimeSinceEpoch();
  37234. String GetTimeStamp();
  37235. uint64 GetTotalMemory();
  37236. VariantType GetTypeFromName(const String&);
  37237. String GetTypeName(VariantType);
  37238. JSONValueType GetValueTypeFromName(const String&);
  37239. String GetValueTypeName(JSONValueType);
  37240. VariantType GetVariantTypeFromName(const String&);
  37241. String GetVariantTypeName(VariantType);
  37242. uint GetVertexSize(Array<VertexElement>);
  37243. uint GetVertexSize(uint);
  37244. float HalfToFloat(uint16);
  37245. bool HasElement(Array<VertexElement>, VertexElementType, VertexElementSemantic, uint8 = 0);
  37246. bool HasParameter(const VariantMap&, const String&);
  37247. bool HasSubscribedToEvent(Object, const String&);
  37248. bool HasSubscribedToEvent(const String&);
  37249. void InitFPU();
  37250. float InverseLerp(float, float, float);
  37251. bool IsAbsolutePath(const String&);
  37252. bool IsActive();
  37253. bool IsAlpha(uint);
  37254. bool IsDigit(uint);
  37255. bool IsMainThread();
  37256. bool IsMainThread();
  37257. bool IsNaN(double);
  37258. bool IsNaN(float);
  37259. bool IsPowerOfTwo(uint);
  37260. bool IsReplicatedID(uint);
  37261. bool IsSupported();
  37262. String Join(Array<String>&, const String& glue);
  37263. float Lerp(float, float, float);
  37264. float Ln(float);
  37265. Sprite2D LoadFromResourceRef(Object, const ResourceRef&);
  37266. void LoadShaders(Graphics, Deserializer&);
  37267. uint LogBaseTwo(uint);
  37268. void MarkNetworkUpdate();
  37269. float Max(float, float);
  37270. int Max(int, int);
  37271. float Min(float, float);
  37272. int Min(int, int);
  37273. float Mod(float, float);
  37274. uint NextPowerOfTwo(uint);
  37275. void OpenConsoleWindow();
  37276. Array<String> ParseArguments(const String&, bool = true);
  37277. VariantMap ParseParameters(Array<String>);
  37278. Variant ParseShaderParameterValue(const String&);
  37279. float Pow(float, float);
  37280. void Print(bool, bool error = false);
  37281. void Print(const String&, bool error = false);
  37282. void Print(const Variant&, bool error = false);
  37283. void Print(float, bool error = false);
  37284. void Print(int, bool error = false);
  37285. void Print(int64, bool error = false);
  37286. void Print(uint, bool error = false);
  37287. void Print(uint64, bool error = false);
  37288. void PrintCallStack(bool error = false);
  37289. void PrintLine(const String&, bool = false);
  37290. void PrintUnicode(const String&, bool = false);
  37291. void PrintUnicodeLine(const String&, bool = false);
  37292. int Rand();
  37293. float RandStandardNormal();
  37294. float Random();
  37295. float Random(float);
  37296. float Random(float, float);
  37297. int Random(int);
  37298. int Random(int, int);
  37299. int RandomInt();
  37300. int RandomInt(int);
  37301. int RandomInt(int, int);
  37302. float RandomNormal(float, float);
  37303. void RegisterEventName(const String&);
  37304. void Remove();
  37305. String RemoveTrailingSlash(const String&);
  37306. String ReplaceExtension(const String&, const String&);
  37307. float Round(float);
  37308. int RoundToInt(float);
  37309. uint SDBMHash(uint, uint8);
  37310. ResourceRef SaveToResourceRef(Sprite2D);
  37311. void SendEvent(const String&, VariantMap& eventData = VariantMap ( ));
  37312. void SetActive(bool);
  37313. void SetGlobalVar(const String&, Variant&);
  37314. void SetMainThread();
  37315. void SetMainThread();
  37316. void SetMiniDumpDir(const String&);
  37317. void SetRandomSeed(uint);
  37318. float Sign(float);
  37319. float Sin(float);
  37320. void SinCos(float, float&, float&);
  37321. void Sleep(uint);
  37322. float SmoothStep(float, float, float);
  37323. void SplitPath(const String&, String&, String&, String&, bool = true);
  37324. float Sqrt(float);
  37325. float StableRandom(const Vector2&);
  37326. float StableRandom(const Vector3&);
  37327. float StableRandom(float);
  37328. const String& GetResourceName(Resource);
  37329. const String& GetTypeName(StringHash);
  37330. void SubscribeToEvent(Object, const String&, const String&);
  37331. void SubscribeToEvent(const String&, const String&);
  37332. float Tan(float);
  37333. bool ToBool(const String&);
  37334. Color ToColor(const String&);
  37335. double ToDouble(const String&);
  37336. float ToFloat(const String&);
  37337. int ToInt(const String&, int = 10);
  37338. int64 ToInt64(const String&, int = 10);
  37339. IntRect ToIntRect(const String&);
  37340. IntVector2 ToIntVector2(const String&);
  37341. IntVector3 ToIntVector3(const String&);
  37342. uint ToLower(uint);
  37343. Matrix3 ToMatrix3(const String&);
  37344. Matrix3x4 ToMatrix3x4(const String&);
  37345. Matrix4 ToMatrix4(const String&);
  37346. Quaternion ToQuaternion(const String&);
  37347. Rect ToRect(const String&);
  37348. String ToStringHex(uint);
  37349. uint ToUInt(const String&, int = 10);
  37350. uint64 ToUInt64(const String&, int = 10);
  37351. uint ToUpper(uint);
  37352. Vector2 ToVector2(const String&);
  37353. Vector3 ToVector3(const String&);
  37354. Vector4 ToVector4(const String&, bool = false);
  37355. Variant ToVectorVariant(const String&);
  37356. void UnsubscribeFromAllEvents();
  37357. void UnsubscribeFromAllEventsExcept(Array<String>);
  37358. void UnsubscribeFromEvent(Object, const String&);
  37359. void UnsubscribeFromEvent(const String&);
  37360. void UnsubscribeFromEvents(Object);
  37361. const Variant& GetParameter(const VariantMap&, const String&, const Variant& = Variant :: EMPTY);
  37362. const Vector2& GetPixelUVOffset();
  37363. IntVector2 VectorAbs(const IntVector2&);
  37364. IntVector3 VectorAbs(const IntVector3&);
  37365. Vector2 VectorAbs(const Vector2&);
  37366. Vector3 VectorAbs(const Vector3&);
  37367. Vector2 VectorCeil(const Vector2&);
  37368. Vector3 VectorCeil(const Vector3&);
  37369. Vector4 VectorCeil(const Vector4&);
  37370. IntVector2 VectorCeilToInt(const Vector2&);
  37371. IntVector3 VectorCeilToInt(const Vector3&);
  37372. Vector2 VectorFloor(const Vector2&);
  37373. Vector3 VectorFloor(const Vector3&);
  37374. Vector4 VectorFloor(const Vector4&);
  37375. IntVector2 VectorFloorToInt(const Vector2&);
  37376. IntVector3 VectorFloorToInt(const Vector3&);
  37377. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  37378. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  37379. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  37380. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  37381. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  37382. Vector2 VectorMax(const Vector2&, const Vector2&);
  37383. Vector3 VectorMax(const Vector3&, const Vector3&);
  37384. Vector4 VectorMax(const Vector4&, const Vector4&);
  37385. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  37386. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  37387. Vector2 VectorMin(const Vector2&, const Vector2&);
  37388. Vector3 VectorMin(const Vector3&, const Vector3&);
  37389. Vector4 VectorMin(const Vector4&, const Vector4&);
  37390. Vector2 VectorRound(const Vector2&);
  37391. Vector3 VectorRound(const Vector3&);
  37392. Vector4 VectorRound(const Vector4&);
  37393. IntVector2 VectorRoundToInt(const Vector2&);
  37394. IntVector3 VectorRoundToInt(const Vector3&);
  37395. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  37396. void WriteRaw(const String&, bool = false);
  37397. // Global properties
  37398. DBAPI DBAPI;
  37399. Audio audio;
  37400. ResourceCache cache;
  37401. Console console;
  37402. Database database;
  37403. DebugHud debugHud;
  37404. DebugRenderer debugRenderer;
  37405. Engine engine;
  37406. FileSystem fileSystem;
  37407. VariantMap globalVars;
  37408. Graphics graphics;
  37409. Input input;
  37410. Localization localization;
  37411. Log log;
  37412. Network network;
  37413. Node node;
  37414. Octree octree;
  37415. PhysicsWorld physicsWorld;
  37416. PhysicsWorld2D physicsWorld2D;
  37417. Renderer renderer;
  37418. ResourceCache resourceCache;
  37419. Scene scene;
  37420. Script script;
  37421. ScriptFile scriptFile;
  37422. ScriptInstance self;
  37423. Time time;
  37424. UI ui;
  37425. // Global constants
  37426. float ANIMATION_LOD_BASESCALE;
  37427. int BITS_PER_COMPONENT;
  37428. uint8 BONECOLLISION_BOX;
  37429. uint8 BONECOLLISION_NONE;
  37430. uint8 BONECOLLISION_SPHERE;
  37431. uint8 CHANNEL_NONE;
  37432. uint8 CHANNEL_POSITION;
  37433. uint8 CHANNEL_ROTATION;
  37434. uint8 CHANNEL_SCALE;
  37435. uint CLEAR_COLOR;
  37436. uint CLEAR_DEPTH;
  37437. uint CLEAR_STENCIL;
  37438. int COLOR_LUT_SIZE;
  37439. uint CONTROLLER_AXIS_LEFTX;
  37440. uint CONTROLLER_AXIS_LEFTY;
  37441. uint CONTROLLER_AXIS_RIGHTX;
  37442. uint CONTROLLER_AXIS_RIGHTY;
  37443. uint CONTROLLER_AXIS_TRIGGERLEFT;
  37444. uint CONTROLLER_AXIS_TRIGGERRIGHT;
  37445. uint CONTROLLER_BUTTON_A;
  37446. uint CONTROLLER_BUTTON_B;
  37447. uint CONTROLLER_BUTTON_BACK;
  37448. uint CONTROLLER_BUTTON_DPAD_DOWN;
  37449. uint CONTROLLER_BUTTON_DPAD_LEFT;
  37450. uint CONTROLLER_BUTTON_DPAD_RIGHT;
  37451. uint CONTROLLER_BUTTON_DPAD_UP;
  37452. uint CONTROLLER_BUTTON_GUIDE;
  37453. uint CONTROLLER_BUTTON_LEFTSHOULDER;
  37454. uint CONTROLLER_BUTTON_LEFTSTICK;
  37455. uint CONTROLLER_BUTTON_RIGHTSHOULDER;
  37456. uint CONTROLLER_BUTTON_RIGHTSTICK;
  37457. uint CONTROLLER_BUTTON_START;
  37458. uint CONTROLLER_BUTTON_X;
  37459. uint CONTROLLER_BUTTON_Y;
  37460. uint CONTROLS_CONTENT_ID;
  37461. int CONVERSION_BUFFER_LENGTH;
  37462. uint DD_DISABLED;
  37463. uint DD_SOURCE;
  37464. uint DD_SOURCE_AND_TARGET;
  37465. uint DD_TARGET;
  37466. uint DEBUGHUD_SHOW_ALL;
  37467. uint DEBUGHUD_SHOW_EVENTPROFILER;
  37468. uint DEBUGHUD_SHOW_MEMORY;
  37469. uint DEBUGHUD_SHOW_MODE;
  37470. uint DEBUGHUD_SHOW_NONE;
  37471. uint DEBUGHUD_SHOW_PROFILER;
  37472. uint DEBUGHUD_SHOW_STATS;
  37473. float DEFAULT_CAMERA_FOV;
  37474. float DEFAULT_FARCLIP;
  37475. float DEFAULT_FONT_SIZE;
  37476. int DEFAULT_FPS;
  37477. uint DEFAULT_LIGHTMASK;
  37478. float DEFAULT_MAX_NETWORK_ANGULAR_VELOCITY;
  37479. float DEFAULT_NEARCLIP;
  37480. uint DEFAULT_NUM_PARTICLES;
  37481. float DEFAULT_ORTHOSIZE;
  37482. uint8 DEFAULT_RENDER_ORDER;
  37483. uint DEFAULT_SHADOWMASK;
  37484. uint DEFAULT_VIEWMASK;
  37485. uint DEFAULT_ZONEMASK;
  37486. Vector3 DOT_SCALE;
  37487. uint DRAWABLE_ANY;
  37488. uint DRAWABLE_GEOMETRY;
  37489. uint DRAWABLE_GEOMETRY2D;
  37490. uint DRAWABLE_LIGHT;
  37491. uint DRAWABLE_UNDEFINED;
  37492. uint DRAWABLE_ZONE;
  37493. String EP_AUTOLOAD_PATHS;
  37494. String EP_BORDERLESS;
  37495. String EP_DIRECT3D11;
  37496. String EP_DIRECT3D9;
  37497. String EP_DUMP_SHADERS;
  37498. String EP_EVENT_PROFILER;
  37499. String EP_EXTERNAL_WINDOW;
  37500. String EP_FLUSH_GPU;
  37501. String EP_FORCE_GL2;
  37502. String EP_FRAME_LIMITER;
  37503. String EP_FULL_SCREEN;
  37504. String EP_HEADLESS;
  37505. String EP_HIGH_DPI;
  37506. String EP_LOG_LEVEL;
  37507. String EP_LOG_NAME;
  37508. String EP_LOG_QUIET;
  37509. String EP_LOW_QUALITY_SHADOWS;
  37510. String EP_MATERIAL_QUALITY;
  37511. String EP_MONITOR;
  37512. String EP_MULTI_SAMPLE;
  37513. String EP_OPENGL;
  37514. String EP_ORIENTATIONS;
  37515. String EP_PACKAGE_CACHE_DIR;
  37516. String EP_REFRESH_RATE;
  37517. String EP_RENDER_PATH;
  37518. String EP_RESOURCE_PACKAGES;
  37519. String EP_RESOURCE_PATHS;
  37520. String EP_RESOURCE_PREFIX_PATHS;
  37521. String EP_SHADER_CACHE_DIR;
  37522. String EP_SHADOWS;
  37523. String EP_SOUND;
  37524. String EP_SOUND_BUFFER;
  37525. String EP_SOUND_INTERPOLATION;
  37526. String EP_SOUND_MIX_RATE;
  37527. String EP_SOUND_STEREO;
  37528. String EP_TEXTURE_ANISOTROPY;
  37529. String EP_TEXTURE_FILTER_MODE;
  37530. String EP_TEXTURE_QUALITY;
  37531. String EP_TIME_OUT;
  37532. String EP_TOUCH_EMULATION;
  37533. String EP_TRIPLE_BUFFER;
  37534. String EP_VSYNC;
  37535. String EP_WINDOW_HEIGHT;
  37536. String EP_WINDOW_ICON;
  37537. String EP_WINDOW_POSITION_X;
  37538. String EP_WINDOW_POSITION_Y;
  37539. String EP_WINDOW_RESIZABLE;
  37540. String EP_WINDOW_TITLE;
  37541. String EP_WINDOW_WIDTH;
  37542. String EP_WORKER_THREADS;
  37543. uint FIRST_LOCAL_ID;
  37544. uint FIRST_REPLICATED_ID;
  37545. uint FLIP_ALL;
  37546. uint FLIP_DIAGONAL;
  37547. uint FLIP_HORIZONTAL;
  37548. uint FLIP_RESERVED;
  37549. uint FLIP_VERTICAL;
  37550. int FONT_DPI;
  37551. int FONT_TEXTURE_MIN_SIZE;
  37552. uint HAT_CENTER;
  37553. uint HAT_DOWN;
  37554. uint HAT_LEFT;
  37555. uint HAT_RIGHT;
  37556. uint HAT_UP;
  37557. int INSTANCING_BUFFER_DEFAULT_SIZE;
  37558. uint KEY_0;
  37559. uint KEY_1;
  37560. uint KEY_2;
  37561. uint KEY_3;
  37562. uint KEY_4;
  37563. uint KEY_5;
  37564. uint KEY_6;
  37565. uint KEY_7;
  37566. uint KEY_8;
  37567. uint KEY_9;
  37568. uint KEY_A;
  37569. uint KEY_AC_BACK;
  37570. uint KEY_AC_BOOKMARKS;
  37571. uint KEY_AC_FORWARD;
  37572. uint KEY_AC_HOME;
  37573. uint KEY_AC_REFRESH;
  37574. uint KEY_AC_SEARCH;
  37575. uint KEY_AC_STOP;
  37576. uint KEY_AGAIN;
  37577. uint KEY_ALT;
  37578. uint KEY_ALTERASE;
  37579. uint KEY_AMPERSAND;
  37580. uint KEY_APPLICATION;
  37581. uint KEY_ASTERISK;
  37582. uint KEY_AT;
  37583. uint KEY_AUDIOMUTE;
  37584. uint KEY_AUDIONEXT;
  37585. uint KEY_AUDIOPLAY;
  37586. uint KEY_AUDIOPREV;
  37587. uint KEY_AUDIOSTOP;
  37588. uint KEY_B;
  37589. uint KEY_BACKQUOTE;
  37590. uint KEY_BACKSLASH;
  37591. uint KEY_BACKSPACE;
  37592. uint KEY_BRIGHTNESSDOWN;
  37593. uint KEY_BRIGHTNESSUP;
  37594. uint KEY_C;
  37595. uint KEY_CALCULATOR;
  37596. uint KEY_CANCEL;
  37597. uint KEY_CAPSLOCK;
  37598. uint KEY_CARET;
  37599. uint KEY_CLEAR;
  37600. uint KEY_CLEARAGAIN;
  37601. uint KEY_COLON;
  37602. uint KEY_COMMA;
  37603. uint KEY_COMPUTER;
  37604. uint KEY_COPY;
  37605. uint KEY_CRSEL;
  37606. uint KEY_CTRL;
  37607. uint KEY_CURRENCYSUBUNIT;
  37608. uint KEY_CURRENCYUNIT;
  37609. uint KEY_CUT;
  37610. uint KEY_D;
  37611. uint KEY_DECIMALSEPARATOR;
  37612. uint KEY_DELETE;
  37613. uint KEY_DISPLAYSWITCH;
  37614. uint KEY_DOLLAR;
  37615. uint KEY_DOWN;
  37616. uint KEY_E;
  37617. uint KEY_EJECT;
  37618. uint KEY_END;
  37619. uint KEY_EQUALS;
  37620. uint KEY_ESCAPE;
  37621. uint KEY_EXCLAIM;
  37622. uint KEY_EXSEL;
  37623. uint KEY_F;
  37624. uint KEY_F1;
  37625. uint KEY_F10;
  37626. uint KEY_F11;
  37627. uint KEY_F12;
  37628. uint KEY_F13;
  37629. uint KEY_F14;
  37630. uint KEY_F15;
  37631. uint KEY_F16;
  37632. uint KEY_F17;
  37633. uint KEY_F18;
  37634. uint KEY_F19;
  37635. uint KEY_F2;
  37636. uint KEY_F20;
  37637. uint KEY_F21;
  37638. uint KEY_F22;
  37639. uint KEY_F23;
  37640. uint KEY_F24;
  37641. uint KEY_F3;
  37642. uint KEY_F4;
  37643. uint KEY_F5;
  37644. uint KEY_F6;
  37645. uint KEY_F7;
  37646. uint KEY_F8;
  37647. uint KEY_F9;
  37648. uint KEY_FIND;
  37649. uint KEY_G;
  37650. uint KEY_GREATER;
  37651. uint KEY_GUI;
  37652. uint KEY_H;
  37653. uint KEY_HASH;
  37654. uint KEY_HELP;
  37655. uint KEY_HOME;
  37656. uint KEY_I;
  37657. uint KEY_INSERT;
  37658. uint KEY_J;
  37659. uint KEY_K;
  37660. uint KEY_KBDILLUMDOWN;
  37661. uint KEY_KBDILLUMTOGGLE;
  37662. uint KEY_KBDILLUMUP;
  37663. uint KEY_KP_0;
  37664. uint KEY_KP_00;
  37665. uint KEY_KP_000;
  37666. uint KEY_KP_1;
  37667. uint KEY_KP_2;
  37668. uint KEY_KP_3;
  37669. uint KEY_KP_4;
  37670. uint KEY_KP_5;
  37671. uint KEY_KP_6;
  37672. uint KEY_KP_7;
  37673. uint KEY_KP_8;
  37674. uint KEY_KP_9;
  37675. uint KEY_KP_A;
  37676. uint KEY_KP_AMPERSAND;
  37677. uint KEY_KP_AT;
  37678. uint KEY_KP_B;
  37679. uint KEY_KP_BACKSPACE;
  37680. uint KEY_KP_BINARY;
  37681. uint KEY_KP_C;
  37682. uint KEY_KP_CLEAR;
  37683. uint KEY_KP_CLEARENTRY;
  37684. uint KEY_KP_COLON;
  37685. uint KEY_KP_COMMA;
  37686. uint KEY_KP_D;
  37687. uint KEY_KP_DBLAMPERSAND;
  37688. uint KEY_KP_DBLVERTICALBAR;
  37689. uint KEY_KP_DECIMAL;
  37690. uint KEY_KP_DIVIDE;
  37691. uint KEY_KP_E;
  37692. uint KEY_KP_ENTER;
  37693. uint KEY_KP_EQUALS;
  37694. uint KEY_KP_EQUALSAS400;
  37695. uint KEY_KP_EXCLAM;
  37696. uint KEY_KP_F;
  37697. uint KEY_KP_GREATER;
  37698. uint KEY_KP_HASH;
  37699. uint KEY_KP_HEXADECIMAL;
  37700. uint KEY_KP_LEFTBRACE;
  37701. uint KEY_KP_LEFTPAREN;
  37702. uint KEY_KP_LESS;
  37703. uint KEY_KP_MEMADD;
  37704. uint KEY_KP_MEMCLEAR;
  37705. uint KEY_KP_MEMDIVIDE;
  37706. uint KEY_KP_MEMMULTIPLY;
  37707. uint KEY_KP_MEMRECALL;
  37708. uint KEY_KP_MEMSTORE;
  37709. uint KEY_KP_MEMSUBTRACT;
  37710. uint KEY_KP_MINUS;
  37711. uint KEY_KP_MULTIPLY;
  37712. uint KEY_KP_OCTAL;
  37713. uint KEY_KP_PERCENT;
  37714. uint KEY_KP_PERIOD;
  37715. uint KEY_KP_PLUS;
  37716. uint KEY_KP_PLUSMINUS;
  37717. uint KEY_KP_POWER;
  37718. uint KEY_KP_RIGHTBRACE;
  37719. uint KEY_KP_RIGHTPAREN;
  37720. uint KEY_KP_SPACE;
  37721. uint KEY_KP_TAB;
  37722. uint KEY_KP_VERTICALBAR;
  37723. uint KEY_KP_XOR;
  37724. uint KEY_L;
  37725. uint KEY_LALT;
  37726. uint KEY_LCTRL;
  37727. uint KEY_LEFT;
  37728. uint KEY_LEFTBRACKET;
  37729. uint KEY_LEFTPAREN;
  37730. uint KEY_LESS;
  37731. uint KEY_LGUI;
  37732. uint KEY_LSHIFT;
  37733. uint KEY_M;
  37734. uint KEY_MAIL;
  37735. uint KEY_MEDIASELECT;
  37736. uint KEY_MENU;
  37737. uint KEY_MINUS;
  37738. uint KEY_MODE;
  37739. uint KEY_MUTE;
  37740. uint KEY_N;
  37741. uint KEY_NUMLOCKCLEAR;
  37742. uint KEY_O;
  37743. uint KEY_OPER;
  37744. uint KEY_OUT;
  37745. uint KEY_P;
  37746. uint KEY_PAGEDOWN;
  37747. uint KEY_PAGEUP;
  37748. uint KEY_PASTE;
  37749. uint KEY_PAUSE;
  37750. uint KEY_PERCENT;
  37751. uint KEY_PERIOD;
  37752. uint KEY_PLUS;
  37753. uint KEY_POWER;
  37754. uint KEY_PRINTSCREEN;
  37755. uint KEY_PRIOR;
  37756. uint KEY_Q;
  37757. uint KEY_QUESTION;
  37758. uint KEY_QUOTE;
  37759. uint KEY_QUOTEDBL;
  37760. uint KEY_R;
  37761. uint KEY_RALT;
  37762. uint KEY_RCTRL;
  37763. uint KEY_RETURN;
  37764. uint KEY_RETURN2;
  37765. uint KEY_RGUI;
  37766. uint KEY_RIGHT;
  37767. uint KEY_RIGHTBRACKET;
  37768. uint KEY_RIGHTPAREN;
  37769. uint KEY_RSHIFT;
  37770. uint KEY_S;
  37771. uint KEY_SCROLLLOCK;
  37772. uint KEY_SELECT;
  37773. uint KEY_SEMICOLON;
  37774. uint KEY_SEPARATOR;
  37775. uint KEY_SHIFT;
  37776. uint KEY_SLASH;
  37777. uint KEY_SLEEP;
  37778. uint KEY_SPACE;
  37779. uint KEY_STOP;
  37780. uint KEY_SYSREQ;
  37781. uint KEY_T;
  37782. uint KEY_TAB;
  37783. uint KEY_THOUSANDSSEPARATOR;
  37784. uint KEY_U;
  37785. uint KEY_UNDERSCORE;
  37786. uint KEY_UNDO;
  37787. uint KEY_UNKNOWN;
  37788. uint KEY_UP;
  37789. uint KEY_V;
  37790. uint KEY_VOLUMEDOWN;
  37791. uint KEY_VOLUMEUP;
  37792. uint KEY_W;
  37793. uint KEY_WWW;
  37794. uint KEY_X;
  37795. uint KEY_Y;
  37796. uint KEY_Z;
  37797. uint LAST_LOCAL_ID;
  37798. uint LAST_REPLICATED_ID;
  37799. int LOG_DEBUG;
  37800. int LOG_ERROR;
  37801. int LOG_INFO;
  37802. int LOG_NONE;
  37803. int LOG_RAW;
  37804. int LOG_TRACE;
  37805. int LOG_WARNING;
  37806. uint MASK_BLENDINDICES;
  37807. uint MASK_BLENDWEIGHTS;
  37808. uint MASK_COLOR;
  37809. uint MASK_CUBETEXCOORD1;
  37810. uint MASK_CUBETEXCOORD2;
  37811. uint MASK_INSTANCEMATRIX1;
  37812. uint MASK_INSTANCEMATRIX2;
  37813. uint MASK_INSTANCEMATRIX3;
  37814. uint MASK_NONE;
  37815. uint MASK_NORMAL;
  37816. uint MASK_OBJECTINDEX;
  37817. uint MASK_POSITION;
  37818. uint MASK_TANGENT;
  37819. uint MASK_TEXCOORD1;
  37820. uint MASK_TEXCOORD2;
  37821. int MATRIX_CONVERSION_BUFFER_LENGTH;
  37822. uint MAX_CASCADE_SPLITS;
  37823. int MAX_CONSTANT_REGISTERS;
  37824. int MAX_LIGHT_SPLITS;
  37825. uint MAX_NETWORK_ATTRIBUTES;
  37826. int MAX_RENDERTARGETS;
  37827. int MAX_TEXTURE_QUALITY_LEVELS;
  37828. int MAX_VERTEX_LIGHTS;
  37829. int MAX_VERTEX_STREAMS;
  37830. uint MAX_VIEWPORT_TEXTURES;
  37831. uint MOUSEB_ANY;
  37832. uint MOUSEB_LEFT;
  37833. uint MOUSEB_MIDDLE;
  37834. uint MOUSEB_NONE;
  37835. uint MOUSEB_RIGHT;
  37836. uint MOUSEB_X1;
  37837. uint MOUSEB_X2;
  37838. IntVector2 MOUSE_POSITION_OFFSCREEN;
  37839. int MSG_COMPONENTDELTAUPDATE;
  37840. int MSG_COMPONENTLATESTDATA;
  37841. int MSG_CONTROLS;
  37842. int MSG_CREATECOMPONENT;
  37843. int MSG_CREATENODE;
  37844. int MSG_IDENTITY;
  37845. int MSG_LOADSCENE;
  37846. int MSG_NODEDELTAUPDATE;
  37847. int MSG_NODELATESTDATA;
  37848. int MSG_PACKAGEDATA;
  37849. int MSG_PACKAGEINFO;
  37850. int MSG_PACKED_MESSAGE;
  37851. int MSG_REMOTEEVENT;
  37852. int MSG_REMOTENODEEVENT;
  37853. int MSG_REMOVECOMPONENT;
  37854. int MSG_REMOVENODE;
  37855. int MSG_REQUESTPACKAGE;
  37856. int MSG_SCENECHECKSUMERROR;
  37857. int MSG_SCENELOADED;
  37858. int MSG_USER;
  37859. float M_DEGTORAD;
  37860. float M_DEGTORAD_2;
  37861. float M_EPSILON;
  37862. float M_HALF_PI;
  37863. float M_INFINITY;
  37864. float M_LARGE_EPSILON;
  37865. float M_LARGE_VALUE;
  37866. float M_MAX_FOV;
  37867. int M_MAX_INT;
  37868. uint M_MAX_UNSIGNED;
  37869. int M_MIN_INT;
  37870. float M_MIN_NEARCLIP;
  37871. uint M_MIN_UNSIGNED;
  37872. float M_PI;
  37873. float M_RADTODEG;
  37874. uint NUM_FRUSTUM_PLANES;
  37875. uint NUM_FRUSTUM_VERTICES;
  37876. int NUM_OCTANTS;
  37877. int OCCLUSION_DEFAULT_MAX_TRIANGLES;
  37878. int OCCLUSION_FIXED_BIAS;
  37879. int OCCLUSION_MIN_SIZE;
  37880. float OCCLUSION_RELATIVE_BIAS;
  37881. float OCCLUSION_X_SCALE;
  37882. float OCCLUSION_Z_SCALE;
  37883. uint PACKAGE_FRAGMENT_SIZE;
  37884. float PIXEL_SIZE;
  37885. uint PRIORITY_LAST;
  37886. StringHash PSP_AMBIENTCOLOR;
  37887. StringHash PSP_CAMERAPOS;
  37888. StringHash PSP_DELTATIME;
  37889. StringHash PSP_DEPTHRECONSTRUCT;
  37890. StringHash PSP_ELAPSEDTIME;
  37891. StringHash PSP_FARCLIP;
  37892. StringHash PSP_FOGCOLOR;
  37893. StringHash PSP_FOGPARAMS;
  37894. StringHash PSP_GBUFFERINVSIZE;
  37895. StringHash PSP_LIGHTCOLOR;
  37896. StringHash PSP_LIGHTDIR;
  37897. StringHash PSP_LIGHTLENGTH;
  37898. StringHash PSP_LIGHTMATRICES;
  37899. StringHash PSP_LIGHTPOS;
  37900. StringHash PSP_LIGHTRAD;
  37901. StringHash PSP_MATDIFFCOLOR;
  37902. StringHash PSP_MATEMISSIVECOLOR;
  37903. StringHash PSP_MATENVMAPCOLOR;
  37904. StringHash PSP_MATSPECCOLOR;
  37905. StringHash PSP_METALLIC;
  37906. StringHash PSP_NEARCLIP;
  37907. StringHash PSP_NORMALOFFSETSCALE;
  37908. StringHash PSP_ROUGHNESS;
  37909. StringHash PSP_SHADOWCUBEADJUST;
  37910. StringHash PSP_SHADOWDEPTHFADE;
  37911. StringHash PSP_SHADOWINTENSITY;
  37912. StringHash PSP_SHADOWMAPINVSIZE;
  37913. StringHash PSP_SHADOWSPLITS;
  37914. StringHash PSP_VSMSHADOWPARAMS;
  37915. StringHash PSP_ZONEMAX;
  37916. StringHash PSP_ZONEMIN;
  37917. uint QUALITY_HIGH;
  37918. uint QUALITY_LOW;
  37919. uint QUALITY_MAX;
  37920. uint QUALITY_MEDIUM;
  37921. uint QUAL_ALT;
  37922. uint QUAL_ANY;
  37923. uint QUAL_CTRL;
  37924. uint QUAL_NONE;
  37925. uint QUAL_SHIFT;
  37926. int QUICKSORT_THRESHOLD;
  37927. uint ROOT_INDEX;
  37928. uint SCANCODE_0;
  37929. uint SCANCODE_1;
  37930. uint SCANCODE_2;
  37931. uint SCANCODE_3;
  37932. uint SCANCODE_4;
  37933. uint SCANCODE_5;
  37934. uint SCANCODE_6;
  37935. uint SCANCODE_7;
  37936. uint SCANCODE_8;
  37937. uint SCANCODE_9;
  37938. uint SCANCODE_A;
  37939. uint SCANCODE_AC_BACK;
  37940. uint SCANCODE_AC_BOOKMARKS;
  37941. uint SCANCODE_AC_FORWARD;
  37942. uint SCANCODE_AC_HOME;
  37943. uint SCANCODE_AC_REFRESH;
  37944. uint SCANCODE_AC_SEARCH;
  37945. uint SCANCODE_AC_STOP;
  37946. uint SCANCODE_AGAIN;
  37947. uint SCANCODE_ALT;
  37948. uint SCANCODE_ALTERASE;
  37949. uint SCANCODE_APOSTROPHE;
  37950. uint SCANCODE_APP1;
  37951. uint SCANCODE_APP2;
  37952. uint SCANCODE_APPLICATION;
  37953. uint SCANCODE_AUDIOMUTE;
  37954. uint SCANCODE_AUDIONEXT;
  37955. uint SCANCODE_AUDIOPLAY;
  37956. uint SCANCODE_AUDIOPREV;
  37957. uint SCANCODE_AUDIOSTOP;
  37958. uint SCANCODE_B;
  37959. uint SCANCODE_BACKSLASH;
  37960. uint SCANCODE_BACKSPACE;
  37961. uint SCANCODE_BRIGHTNESSDOWN;
  37962. uint SCANCODE_BRIGHTNESSUP;
  37963. uint SCANCODE_C;
  37964. uint SCANCODE_CALCULATOR;
  37965. uint SCANCODE_CANCEL;
  37966. uint SCANCODE_CAPSLOCK;
  37967. uint SCANCODE_CLEAR;
  37968. uint SCANCODE_CLEARAGAIN;
  37969. uint SCANCODE_COMMA;
  37970. uint SCANCODE_COMPUTER;
  37971. uint SCANCODE_COPY;
  37972. uint SCANCODE_CRSEL;
  37973. uint SCANCODE_CTRL;
  37974. uint SCANCODE_CURRENCYSUBUNIT;
  37975. uint SCANCODE_CURRENCYUNIT;
  37976. uint SCANCODE_CUT;
  37977. uint SCANCODE_D;
  37978. uint SCANCODE_DECIMALSEPARATOR;
  37979. uint SCANCODE_DELETE;
  37980. uint SCANCODE_DISPLAYSWITCH;
  37981. uint SCANCODE_DOWN;
  37982. uint SCANCODE_E;
  37983. uint SCANCODE_EJECT;
  37984. uint SCANCODE_END;
  37985. uint SCANCODE_EQUALS;
  37986. uint SCANCODE_ESCAPE;
  37987. uint SCANCODE_EXECUTE;
  37988. uint SCANCODE_EXSEL;
  37989. uint SCANCODE_F;
  37990. uint SCANCODE_F1;
  37991. uint SCANCODE_F10;
  37992. uint SCANCODE_F11;
  37993. uint SCANCODE_F12;
  37994. uint SCANCODE_F13;
  37995. uint SCANCODE_F14;
  37996. uint SCANCODE_F15;
  37997. uint SCANCODE_F16;
  37998. uint SCANCODE_F17;
  37999. uint SCANCODE_F18;
  38000. uint SCANCODE_F19;
  38001. uint SCANCODE_F2;
  38002. uint SCANCODE_F20;
  38003. uint SCANCODE_F21;
  38004. uint SCANCODE_F22;
  38005. uint SCANCODE_F23;
  38006. uint SCANCODE_F24;
  38007. uint SCANCODE_F3;
  38008. uint SCANCODE_F4;
  38009. uint SCANCODE_F5;
  38010. uint SCANCODE_F6;
  38011. uint SCANCODE_F7;
  38012. uint SCANCODE_F8;
  38013. uint SCANCODE_F9;
  38014. uint SCANCODE_FIND;
  38015. uint SCANCODE_G;
  38016. uint SCANCODE_GRAVE;
  38017. uint SCANCODE_GUI;
  38018. uint SCANCODE_H;
  38019. uint SCANCODE_HELP;
  38020. uint SCANCODE_HOME;
  38021. uint SCANCODE_I;
  38022. uint SCANCODE_INSERT;
  38023. uint SCANCODE_INTERNATIONAL1;
  38024. uint SCANCODE_INTERNATIONAL2;
  38025. uint SCANCODE_INTERNATIONAL3;
  38026. uint SCANCODE_INTERNATIONAL4;
  38027. uint SCANCODE_INTERNATIONAL5;
  38028. uint SCANCODE_INTERNATIONAL6;
  38029. uint SCANCODE_INTERNATIONAL7;
  38030. uint SCANCODE_INTERNATIONAL8;
  38031. uint SCANCODE_INTERNATIONAL9;
  38032. uint SCANCODE_J;
  38033. uint SCANCODE_K;
  38034. uint SCANCODE_KBDILLUMDOWN;
  38035. uint SCANCODE_KBDILLUMTOGGLE;
  38036. uint SCANCODE_KBDILLUMUP;
  38037. uint SCANCODE_KP_0;
  38038. uint SCANCODE_KP_00;
  38039. uint SCANCODE_KP_000;
  38040. uint SCANCODE_KP_1;
  38041. uint SCANCODE_KP_2;
  38042. uint SCANCODE_KP_3;
  38043. uint SCANCODE_KP_4;
  38044. uint SCANCODE_KP_5;
  38045. uint SCANCODE_KP_6;
  38046. uint SCANCODE_KP_7;
  38047. uint SCANCODE_KP_8;
  38048. uint SCANCODE_KP_9;
  38049. uint SCANCODE_KP_A;
  38050. uint SCANCODE_KP_AMPERSAND;
  38051. uint SCANCODE_KP_AT;
  38052. uint SCANCODE_KP_B;
  38053. uint SCANCODE_KP_BACKSPACE;
  38054. uint SCANCODE_KP_BINARY;
  38055. uint SCANCODE_KP_C;
  38056. uint SCANCODE_KP_CLEAR;
  38057. uint SCANCODE_KP_CLEARENTRY;
  38058. uint SCANCODE_KP_COLON;
  38059. uint SCANCODE_KP_COMMA;
  38060. uint SCANCODE_KP_D;
  38061. uint SCANCODE_KP_DBLAMPERSAND;
  38062. uint SCANCODE_KP_DBLVERTICALBAR;
  38063. uint SCANCODE_KP_DECIMAL;
  38064. uint SCANCODE_KP_DIVIDE;
  38065. uint SCANCODE_KP_E;
  38066. uint SCANCODE_KP_ENTER;
  38067. uint SCANCODE_KP_EQUALS;
  38068. uint SCANCODE_KP_EQUALSAS400;
  38069. uint SCANCODE_KP_EXCLAM;
  38070. uint SCANCODE_KP_F;
  38071. uint SCANCODE_KP_GREATER;
  38072. uint SCANCODE_KP_HASH;
  38073. uint SCANCODE_KP_HEXADECIMAL;
  38074. uint SCANCODE_KP_LEFTBRACE;
  38075. uint SCANCODE_KP_LEFTPAREN;
  38076. uint SCANCODE_KP_LESS;
  38077. uint SCANCODE_KP_MEMADD;
  38078. uint SCANCODE_KP_MEMCLEAR;
  38079. uint SCANCODE_KP_MEMDIVIDE;
  38080. uint SCANCODE_KP_MEMMULTIPLY;
  38081. uint SCANCODE_KP_MEMRECALL;
  38082. uint SCANCODE_KP_MEMSTORE;
  38083. uint SCANCODE_KP_MEMSUBTRACT;
  38084. uint SCANCODE_KP_MINUS;
  38085. uint SCANCODE_KP_MULTIPLY;
  38086. uint SCANCODE_KP_OCTAL;
  38087. uint SCANCODE_KP_PERCENT;
  38088. uint SCANCODE_KP_PERIOD;
  38089. uint SCANCODE_KP_PLUS;
  38090. uint SCANCODE_KP_PLUSMINUS;
  38091. uint SCANCODE_KP_POWER;
  38092. uint SCANCODE_KP_RIGHTBRACE;
  38093. uint SCANCODE_KP_RIGHTPAREN;
  38094. uint SCANCODE_KP_SPACE;
  38095. uint SCANCODE_KP_TAB;
  38096. uint SCANCODE_KP_VERTICALBAR;
  38097. uint SCANCODE_KP_XOR;
  38098. uint SCANCODE_L;
  38099. uint SCANCODE_LALT;
  38100. uint SCANCODE_LANG1;
  38101. uint SCANCODE_LANG2;
  38102. uint SCANCODE_LANG3;
  38103. uint SCANCODE_LANG4;
  38104. uint SCANCODE_LANG5;
  38105. uint SCANCODE_LANG6;
  38106. uint SCANCODE_LANG7;
  38107. uint SCANCODE_LANG8;
  38108. uint SCANCODE_LANG9;
  38109. uint SCANCODE_LCTRL;
  38110. uint SCANCODE_LEFT;
  38111. uint SCANCODE_LEFTBRACKET;
  38112. uint SCANCODE_LGUI;
  38113. uint SCANCODE_LSHIFT;
  38114. uint SCANCODE_M;
  38115. uint SCANCODE_MAIL;
  38116. uint SCANCODE_MEDIASELECT;
  38117. uint SCANCODE_MENU;
  38118. uint SCANCODE_MINUS;
  38119. uint SCANCODE_MODE;
  38120. uint SCANCODE_MUTE;
  38121. uint SCANCODE_N;
  38122. uint SCANCODE_NONUSBACKSLASH;
  38123. uint SCANCODE_NONUSHASH;
  38124. uint SCANCODE_NUMLOCKCLEAR;
  38125. uint SCANCODE_O;
  38126. uint SCANCODE_OPER;
  38127. uint SCANCODE_OUT;
  38128. uint SCANCODE_P;
  38129. uint SCANCODE_PAGEDOWN;
  38130. uint SCANCODE_PAGEUP;
  38131. uint SCANCODE_PASTE;
  38132. uint SCANCODE_PAUSE;
  38133. uint SCANCODE_PERIOD;
  38134. uint SCANCODE_POWER;
  38135. uint SCANCODE_PRINTSCREEN;
  38136. uint SCANCODE_PRIOR;
  38137. uint SCANCODE_Q;
  38138. uint SCANCODE_R;
  38139. uint SCANCODE_RALT;
  38140. uint SCANCODE_RCTRL;
  38141. uint SCANCODE_RETURN;
  38142. uint SCANCODE_RETURN2;
  38143. uint SCANCODE_RGUI;
  38144. uint SCANCODE_RIGHT;
  38145. uint SCANCODE_RIGHTBRACKET;
  38146. uint SCANCODE_RSHIFT;
  38147. uint SCANCODE_S;
  38148. uint SCANCODE_SCROLLLOCK;
  38149. uint SCANCODE_SELECT;
  38150. uint SCANCODE_SEMICOLON;
  38151. uint SCANCODE_SEPARATOR;
  38152. uint SCANCODE_SHIFT;
  38153. uint SCANCODE_SLASH;
  38154. uint SCANCODE_SLEEP;
  38155. uint SCANCODE_SPACE;
  38156. uint SCANCODE_STOP;
  38157. uint SCANCODE_SYSREQ;
  38158. uint SCANCODE_T;
  38159. uint SCANCODE_TAB;
  38160. uint SCANCODE_THOUSANDSSEPARATOR;
  38161. uint SCANCODE_U;
  38162. uint SCANCODE_UNDO;
  38163. uint SCANCODE_UNKNOWN;
  38164. uint SCANCODE_UP;
  38165. uint SCANCODE_V;
  38166. uint SCANCODE_VOLUMEDOWN;
  38167. uint SCANCODE_VOLUMEUP;
  38168. uint SCANCODE_W;
  38169. uint SCANCODE_WWW;
  38170. uint SCANCODE_X;
  38171. uint SCANCODE_Y;
  38172. uint SCANCODE_Z;
  38173. uint SCAN_DIRS;
  38174. uint SCAN_FILES;
  38175. uint SCAN_HIDDEN;
  38176. int SHADOW_MIN_PIXELS;
  38177. float SHADOW_MIN_QUANTIZE;
  38178. float SHADOW_MIN_VIEW;
  38179. uint SMOOTH_NONE;
  38180. uint SMOOTH_POSITION;
  38181. uint SMOOTH_ROTATION;
  38182. String SOUND_AMBIENT;
  38183. String SOUND_EFFECT;
  38184. String SOUND_MASTER;
  38185. String SOUND_MUSIC;
  38186. String SOUND_VOICE;
  38187. int STREAM_BUFFER_LENGTH;
  38188. uint UI_VERTEX_SIZE;
  38189. uint USE_FIXEDPOSTUPDATE;
  38190. uint USE_FIXEDUPDATE;
  38191. uint USE_NO_EVENT;
  38192. uint USE_POSTUPDATE;
  38193. uint USE_UPDATE;
  38194. uint VARIANT_VALUE_SIZE;
  38195. uint VO_DISABLE_OCCLUSION;
  38196. uint VO_DISABLE_SHADOWS;
  38197. uint VO_LOW_MATERIAL_QUALITY;
  38198. uint VO_NONE;
  38199. StringHash VSP_AMBIENTENDCOLOR;
  38200. StringHash VSP_AMBIENTSTARTCOLOR;
  38201. StringHash VSP_BILLBOARDROT;
  38202. StringHash VSP_CAMERAPOS;
  38203. StringHash VSP_CLIPPLANE;
  38204. StringHash VSP_DELTATIME;
  38205. StringHash VSP_DEPTHMODE;
  38206. StringHash VSP_ELAPSEDTIME;
  38207. StringHash VSP_FARCLIP;
  38208. StringHash VSP_FRUSTUMSIZE;
  38209. StringHash VSP_GBUFFEROFFSETS;
  38210. StringHash VSP_LIGHTDIR;
  38211. StringHash VSP_LIGHTMATRICES;
  38212. StringHash VSP_LIGHTPOS;
  38213. StringHash VSP_MODEL;
  38214. StringHash VSP_NEARCLIP;
  38215. StringHash VSP_NORMALOFFSETSCALE;
  38216. StringHash VSP_SKINMATRICES;
  38217. StringHash VSP_UOFFSET;
  38218. StringHash VSP_VERTEXLIGHTS;
  38219. StringHash VSP_VIEW;
  38220. StringHash VSP_VIEWINV;
  38221. StringHash VSP_VIEWPROJ;
  38222. StringHash VSP_VOFFSET;
  38223. StringHash VSP_ZONE;