AngelScriptAPI.h 1.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028
  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 AllocatorBlock
  23. {
  24. public:
  25. ~AllocatorBlock();
  26. AllocatorBlock();
  27. // Methods:
  28. AllocatorBlock& operator=(const AllocatorBlock&);
  29. // Properties:
  30. uint capacity;
  31. uint nodeSize;
  32. };
  33. class AllocatorNode
  34. {
  35. public:
  36. ~AllocatorNode();
  37. AllocatorNode();
  38. // Methods:
  39. AllocatorNode& operator=(const AllocatorNode&);
  40. };
  41. class Animatable
  42. {
  43. public:
  44. // Methods:
  45. void AllocateNetworkState();
  46. operator AnimatedModel() const;
  47. operator AnimatedSprite2D() const;
  48. operator AnimationController() const;
  49. void ApplyAttributes();
  50. operator BillboardSet() const;
  51. operator BorderImage() const;
  52. operator Button() const;
  53. operator Camera() const;
  54. operator CheckBox() const;
  55. operator CollisionBox2D() const;
  56. operator CollisionChain2D() const;
  57. operator CollisionCircle2D() const;
  58. operator CollisionEdge2D() const;
  59. operator CollisionPolygon2D() const;
  60. operator CollisionShape2D() const;
  61. operator CollisionShape() const;
  62. operator Component() const;
  63. operator Constraint2D() const;
  64. operator Constraint() const;
  65. operator ConstraintDistance2D() const;
  66. operator ConstraintFriction2D() const;
  67. operator ConstraintGear2D() const;
  68. operator ConstraintMotor2D() const;
  69. operator ConstraintMouse2D() const;
  70. operator ConstraintPrismatic2D() const;
  71. operator ConstraintPulley2D() const;
  72. operator ConstraintRevolute2D() const;
  73. operator ConstraintWeld2D() const;
  74. operator ConstraintWheel2D() const;
  75. operator CrowdAgent() const;
  76. operator CrowdManager() const;
  77. operator Cursor() const;
  78. operator CustomGeometry() const;
  79. operator DebugRenderer() const;
  80. operator DecalSet() const;
  81. operator Drawable2D() const;
  82. operator Drawable() const;
  83. operator DropDownList() const;
  84. operator DynamicNavigationMesh() const;
  85. bool GetAnimationEnabled() const;
  86. Variant GetAttribute(const String&) const;
  87. Variant GetAttribute(uint) const;
  88. ValueAnimation GetAttributeAnimation(const String&) const;
  89. float GetAttributeAnimationSpeed(const String&) const;
  90. float GetAttributeAnimationTime(const String&) const;
  91. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  92. Variant GetAttributeDefault(const String&) const;
  93. Variant GetAttributeDefault(uint) const;
  94. bool GetBlockEvents() const;
  95. VariantMap& GetEventDataMap() const;
  96. Object GetEventSender() const;
  97. bool GetInterceptNetworkUpdate(const String&) const;
  98. uint GetNumAttributes() const;
  99. uint GetNumNetworkAttributes() const;
  100. ObjectAnimation GetObjectAnimation() const;
  101. ResourceRef GetObjectAnimationAttr() const;
  102. Object GetSubsystem(StringHash) const;
  103. StringHash GetType() const;
  104. bool HasEventHandlers() const;
  105. bool HasSubscribedToEvent(Object, StringHash) const;
  106. bool HasSubscribedToEvent(StringHash) const;
  107. operator IKConstraint() const;
  108. operator IKEffector() const;
  109. operator IKSolver() const;
  110. bool IsInstanceOf(StringHash) const;
  111. bool IsTemporary() const;
  112. operator Light() const;
  113. operator LineEdit() const;
  114. operator ListView() const;
  115. bool Load(Deserializer&);
  116. bool LoadJSON(const JSONValue&);
  117. bool LoadXML(const XMLElement&);
  118. operator LogicComponent() const;
  119. void MarkNetworkUpdate();
  120. operator Menu() const;
  121. operator NavArea() const;
  122. operator Navigable() const;
  123. operator NavigationMesh() const;
  124. operator NetworkPriority() const;
  125. operator Node() const;
  126. operator Object() const;
  127. operator Obstacle() const;
  128. operator Octree() const;
  129. operator OffMeshConnection() const;
  130. void OnEvent(Object, StringHash, VariantMap&);
  131. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  132. void OnSetAttribute(const AttributeInfo&, const Variant&);
  133. operator ParticleEmitter2D() const;
  134. operator ParticleEmitter() const;
  135. operator PhysicsWorld2D() const;
  136. operator PhysicsWorld() const;
  137. operator ProgressBar() const;
  138. operator RaycastVehicle() const;
  139. bool ReadDeltaUpdate(Deserializer&);
  140. bool ReadLatestDataUpdate(Deserializer&);
  141. operator RefCounted() const;
  142. int Refs() const;
  143. void RemoveAttributeAnimation(const String&);
  144. void RemoveInstanceDefault();
  145. void RemoveObjectAnimation();
  146. operator Renderer2D() const;
  147. void ResetToDefault();
  148. operator RibbonTrail() const;
  149. operator RigidBody2D() const;
  150. operator RigidBody() const;
  151. bool Save(Serializer&) const;
  152. bool SaveDefaultAttributes() const;
  153. bool SaveJSON(JSONValue&) const;
  154. bool SaveXML(XMLElement&) const;
  155. operator Scene() const;
  156. operator ScriptInstance() const;
  157. operator ScrollBar() const;
  158. operator ScrollView() const;
  159. void SendEvent(StringHash);
  160. void SendEvent(StringHash, VariantMap&);
  161. operator Serializable() const;
  162. void SetAnimationEnabled(bool);
  163. void SetAnimationTime(float);
  164. bool SetAttribute(const String&, const Variant&);
  165. bool SetAttribute(uint, const Variant&);
  166. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  167. void SetAttributeAnimationSpeed(const String&, float);
  168. void SetAttributeAnimationTime(const String&, float);
  169. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  170. void SetBlockEvents(bool);
  171. void SetGlobalVar(StringHash, const Variant&);
  172. void SetInstanceDefault(bool);
  173. void SetInterceptNetworkUpdate(const String&, bool);
  174. void SetObjectAnimation(ObjectAnimation);
  175. void SetObjectAnimationAttr(const ResourceRef&);
  176. void SetTemporary(bool);
  177. operator Skybox() const;
  178. operator Slider() const;
  179. operator SmoothedTransform() const;
  180. operator SoundListener() const;
  181. operator SoundSource3D() const;
  182. operator SoundSource() const;
  183. operator SplinePath() const;
  184. operator Sprite() const;
  185. operator StaticModel() const;
  186. operator StaticModelGroup() const;
  187. operator StaticSprite2D() const;
  188. operator StretchableSprite2D() const;
  189. const String& GetCategory() const;
  190. const String& GetTypeName() const;
  191. operator Terrain() const;
  192. operator TerrainPatch() const;
  193. operator Text3D() const;
  194. operator Text() const;
  195. operator TileMap2D() const;
  196. operator TileMapLayer2D() const;
  197. operator ToolTip() const;
  198. operator UIComponent() const;
  199. operator UIElement() const;
  200. operator UISelectable() const;
  201. operator UnknownComponent() const;
  202. void UnsubscribeFromAllEvents();
  203. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  204. void UnsubscribeFromEvent(Object, StringHash);
  205. void UnsubscribeFromEvent(StringHash);
  206. void UnsubscribeFromEvents(Object);
  207. const Variant& GetGlobalVar(StringHash) const;
  208. const VariantMap& GetGlobalVars() const;
  209. operator View3D() const;
  210. int WeakRefs() const;
  211. operator Window() const;
  212. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  213. void WriteInitialDeltaUpdate(Serializer&, uint8);
  214. void WriteLatestDataUpdate(Serializer&, uint8);
  215. operator Zone() const;
  216. operator const AnimatedModel() const;
  217. operator const AnimatedSprite2D() const;
  218. operator const AnimationController() const;
  219. operator const BillboardSet() const;
  220. operator const BorderImage() const;
  221. operator const Button() const;
  222. operator const Camera() const;
  223. operator const CheckBox() const;
  224. operator const CollisionBox2D() const;
  225. operator const CollisionChain2D() const;
  226. operator const CollisionCircle2D() const;
  227. operator const CollisionEdge2D() const;
  228. operator const CollisionPolygon2D() const;
  229. operator const CollisionShape2D() const;
  230. operator const CollisionShape() const;
  231. operator const Component() const;
  232. operator const Constraint2D() const;
  233. operator const Constraint() const;
  234. operator const ConstraintDistance2D() const;
  235. operator const ConstraintFriction2D() const;
  236. operator const ConstraintGear2D() const;
  237. operator const ConstraintMotor2D() const;
  238. operator const ConstraintMouse2D() const;
  239. operator const ConstraintPrismatic2D() const;
  240. operator const ConstraintPulley2D() const;
  241. operator const ConstraintRevolute2D() const;
  242. operator const ConstraintWeld2D() const;
  243. operator const ConstraintWheel2D() const;
  244. operator const CrowdAgent() const;
  245. operator const CrowdManager() const;
  246. operator const Cursor() const;
  247. operator const CustomGeometry() const;
  248. operator const DebugRenderer() const;
  249. operator const DecalSet() const;
  250. operator const Drawable2D() const;
  251. operator const Drawable() const;
  252. operator const DropDownList() const;
  253. operator const DynamicNavigationMesh() const;
  254. operator const IKConstraint() const;
  255. operator const IKEffector() const;
  256. operator const IKSolver() const;
  257. operator const Light() const;
  258. operator const LineEdit() const;
  259. operator const ListView() const;
  260. operator const LogicComponent() const;
  261. operator const Menu() const;
  262. operator const NavArea() const;
  263. operator const Navigable() const;
  264. operator const NavigationMesh() const;
  265. operator const NetworkPriority() const;
  266. operator const Node() const;
  267. operator const Object() const;
  268. operator const Obstacle() const;
  269. operator const Octree() const;
  270. operator const OffMeshConnection() const;
  271. operator const ParticleEmitter2D() const;
  272. operator const ParticleEmitter() const;
  273. operator const PhysicsWorld2D() const;
  274. operator const PhysicsWorld() const;
  275. operator const ProgressBar() const;
  276. operator const RaycastVehicle() const;
  277. operator const RefCounted() const;
  278. operator const Renderer2D() const;
  279. operator const RibbonTrail() const;
  280. operator const RigidBody2D() const;
  281. operator const RigidBody() const;
  282. operator const Scene() const;
  283. operator const ScriptInstance() const;
  284. operator const ScrollBar() const;
  285. operator const ScrollView() const;
  286. operator const Serializable() const;
  287. operator const Skybox() const;
  288. operator const Slider() const;
  289. operator const SmoothedTransform() const;
  290. operator const SoundListener() const;
  291. operator const SoundSource3D() const;
  292. operator const SoundSource() const;
  293. operator const SplinePath() const;
  294. operator const Sprite() const;
  295. operator const StaticModel() const;
  296. operator const StaticModelGroup() const;
  297. operator const StaticSprite2D() const;
  298. operator const StretchableSprite2D() const;
  299. operator const Terrain() const;
  300. operator const TerrainPatch() const;
  301. operator const Text3D() const;
  302. operator const Text() const;
  303. operator const TileMap2D() const;
  304. operator const TileMapLayer2D() const;
  305. operator const ToolTip() const;
  306. operator const UIComponent() const;
  307. operator const UIElement() const;
  308. operator const UISelectable() const;
  309. operator const UnknownComponent() const;
  310. operator const View3D() const;
  311. operator const Window() const;
  312. operator const Zone() const;
  313. // Properties:
  314. bool animationEnabled;
  315. /* readonly */
  316. Array<Variant> attributeDefaults;
  317. /* readonly */
  318. Array<AttributeInfo> attributeInfos;
  319. Array<Variant> attributes;
  320. /* readonly */
  321. String category;
  322. Array<Variant> globalVar;
  323. /* readonly */
  324. VariantMap globalVars;
  325. /* readonly */
  326. uint numAttributes;
  327. ObjectAnimation objectAnimation;
  328. /* readonly */
  329. int refs;
  330. bool temporary;
  331. /* readonly */
  332. StringHash type;
  333. /* readonly */
  334. String typeName;
  335. /* readonly */
  336. int weakRefs;
  337. };
  338. class AnimatedModel
  339. {
  340. public:
  341. AnimatedModel();
  342. // Methods:
  343. AnimationState AddAnimationState(Animation);
  344. void AddLight(Light);
  345. void AddVertexLight(Light);
  346. void AllocateNetworkState();
  347. operator Animatable() const;
  348. void ApplyAnimation();
  349. void ApplyAttributes();
  350. void ApplyMaterialList(const String& = String :: EMPTY);
  351. const BoundingBox& GetBoundingBox() const;
  352. const BoundingBox& GetWorldBoundingBox();
  353. void CleanupConnection(Connection);
  354. operator Component() const;
  355. void DrawDebugGeometry(DebugRenderer, bool);
  356. bool DrawOcclusion(OcclusionBuffer);
  357. operator Drawable() const;
  358. bool GetAnimationEnabled() const;
  359. float GetAnimationLodBias() const;
  360. AnimationState GetAnimationState(Animation) const;
  361. AnimationState GetAnimationState(StringHash) const;
  362. AnimationState GetAnimationState(const String&) const;
  363. AnimationState GetAnimationState(uint) const;
  364. Array<AnimationState> GetAnimationStates() const;
  365. Variant GetAttribute(const String&) const;
  366. Variant GetAttribute(uint) const;
  367. ValueAnimation GetAttributeAnimation(const String&) const;
  368. float GetAttributeAnimationSpeed(const String&) const;
  369. float GetAttributeAnimationTime(const String&) const;
  370. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  371. Variant GetAttributeDefault(const String&) const;
  372. Variant GetAttributeDefault(uint) const;
  373. bool GetBlockEvents() const;
  374. bool GetCastShadows() const;
  375. Component GetComponent(StringHash) const;
  376. float GetDistance() const;
  377. float GetDrawDistance() const;
  378. uint8 GetDrawableFlags() const;
  379. VariantMap& GetEventDataMap() const;
  380. Object GetEventSender() const;
  381. Light GetFirstLight() const;
  382. uint GetID() const;
  383. bool GetInterceptNetworkUpdate(const String&) const;
  384. uint GetLightMask() const;
  385. Array<Light> GetLights() const;
  386. float GetLodBias() const;
  387. float GetLodDistance() const;
  388. Geometry GetLodGeometry(uint, uint);
  389. Material GetMaterial() const;
  390. Material GetMaterial(uint) const;
  391. uint GetMaxLights() const;
  392. float GetMaxZ() const;
  393. float GetMinZ() const;
  394. Model GetModel() const;
  395. ResourceRef GetModelAttr() const;
  396. Array<VertexBuffer> GetMorphVertexBuffers() const;
  397. float GetMorphWeight(StringHash) const;
  398. float GetMorphWeight(const String&) const;
  399. float GetMorphWeight(uint) const;
  400. Node GetNode() const;
  401. uint GetNumAnimationStates() const;
  402. uint GetNumAttributes() const;
  403. uint GetNumGeometries() const;
  404. uint GetNumMorphs() const;
  405. uint GetNumNetworkAttributes() const;
  406. uint GetNumOccluderTriangles();
  407. ObjectAnimation GetObjectAnimation() const;
  408. ResourceRef GetObjectAnimationAttr() const;
  409. uint GetOcclusionLodLevel() const;
  410. Scene GetScene() const;
  411. float GetShadowDistance() const;
  412. uint GetShadowMask() const;
  413. Skeleton& GetSkeleton();
  414. float GetSortValue() const;
  415. Object GetSubsystem(StringHash) const;
  416. StringHash GetType() const;
  417. UpdateGeometryType GetUpdateGeometryType();
  418. bool GetUpdateInvisible() const;
  419. Array<Light> GetVertexLights() const;
  420. uint GetViewMask() const;
  421. Zone GetZone() const;
  422. uint GetZoneMask() const;
  423. bool HasBasePass(uint) const;
  424. bool HasEventHandlers() const;
  425. bool HasSubscribedToEvent(Object, StringHash) const;
  426. bool HasSubscribedToEvent(StringHash) const;
  427. bool IsEnabled() const;
  428. bool IsEnabledEffective() const;
  429. bool IsInView() const;
  430. bool IsInView(Camera) const;
  431. bool IsInView(const FrameInfo&, bool = false) const;
  432. bool IsInside(const Vector3&) const;
  433. bool IsInsideLocal(const Vector3&) const;
  434. bool IsInstanceOf(StringHash) const;
  435. bool IsMaster() const;
  436. bool IsOccludee() const;
  437. bool IsOccluder() const;
  438. bool IsReplicated() const;
  439. bool IsTemporary() const;
  440. bool IsZoneDirty() const;
  441. void LimitLights();
  442. void LimitVertexLights(bool);
  443. bool Load(Deserializer&);
  444. bool LoadJSON(const JSONValue&);
  445. bool LoadXML(const XMLElement&);
  446. void MarkForUpdate();
  447. void MarkInView(const FrameInfo&);
  448. void MarkInView(uint);
  449. void MarkNetworkUpdate();
  450. operator Object() const;
  451. void OnEvent(Object, StringHash, VariantMap&);
  452. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  453. void OnSetAttribute(const AttributeInfo&, const Variant&);
  454. void OnSetEnabled();
  455. void PrepareNetworkUpdate();
  456. bool ReadDeltaUpdate(Deserializer&);
  457. bool ReadLatestDataUpdate(Deserializer&);
  458. operator RefCounted() const;
  459. int Refs() const;
  460. void Remove();
  461. void RemoveAllAnimationStates();
  462. void RemoveAnimationState(Animation);
  463. void RemoveAnimationState(AnimationState);
  464. void RemoveAnimationState(StringHash);
  465. void RemoveAnimationState(const String&);
  466. void RemoveAnimationState(uint);
  467. void RemoveAttributeAnimation(const String&);
  468. void RemoveInstanceDefault();
  469. void RemoveObjectAnimation();
  470. void ResetMorphWeights();
  471. void ResetToDefault();
  472. const ResourceRefList& GetMaterialsAttr() const;
  473. bool Save(Serializer&) const;
  474. bool SaveDefaultAttributes() const;
  475. bool SaveJSON(JSONValue&) const;
  476. bool SaveXML(XMLElement&) const;
  477. void SendEvent(StringHash);
  478. void SendEvent(StringHash, VariantMap&);
  479. operator Serializable() const;
  480. void SetAnimationEnabled(bool);
  481. void SetAnimationLodBias(float);
  482. void SetAnimationTime(float);
  483. bool SetAttribute(const String&, const Variant&);
  484. bool SetAttribute(uint, const Variant&);
  485. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  486. void SetAttributeAnimationSpeed(const String&, float);
  487. void SetAttributeAnimationTime(const String&, float);
  488. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  489. void SetBasePass(uint);
  490. void SetBlockEvents(bool);
  491. void SetCastShadows(bool);
  492. void SetDrawDistance(float);
  493. void SetEnabled(bool);
  494. void SetGlobalVar(StringHash, const Variant&);
  495. void SetInstanceDefault(bool);
  496. void SetInterceptNetworkUpdate(const String&, bool);
  497. void SetLightMask(uint);
  498. void SetLodBias(float);
  499. void SetMaterial(Material);
  500. bool SetMaterial(uint, Material);
  501. void SetMaterialsAttr(const ResourceRefList&);
  502. void SetMaxLights(uint);
  503. void SetMinMaxZ(float, float);
  504. void SetModel(Model);
  505. void SetModel(Model, bool = true);
  506. void SetModelAttr(const ResourceRef&);
  507. void SetMorphWeight(StringHash, float);
  508. void SetMorphWeight(const String&, float);
  509. void SetMorphWeight(uint, float);
  510. void SetObjectAnimation(ObjectAnimation);
  511. void SetObjectAnimationAttr(const ResourceRef&);
  512. void SetOccludee(bool);
  513. void SetOccluder(bool);
  514. void SetOcclusionLodLevel(uint);
  515. void SetShadowDistance(float);
  516. void SetShadowMask(uint);
  517. void SetSortValue(float);
  518. void SetTemporary(bool);
  519. void SetUpdateInvisible(bool);
  520. void SetViewMask(uint);
  521. void SetZone(Zone, bool = false);
  522. void SetZoneMask(uint);
  523. operator StaticModel() const;
  524. const String& GetCategory() const;
  525. const String& GetTypeName() const;
  526. void UnsubscribeFromAllEvents();
  527. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  528. void UnsubscribeFromEvent(Object, StringHash);
  529. void UnsubscribeFromEvent(StringHash);
  530. void UnsubscribeFromEvents(Object);
  531. void Update(const FrameInfo&);
  532. void UpdateBatches(const FrameInfo&);
  533. void UpdateBoneBoundingBox();
  534. void UpdateGeometry(const FrameInfo&);
  535. const Variant& GetGlobalVar(StringHash) const;
  536. const VariantMap& GetGlobalVars() const;
  537. int WeakRefs() const;
  538. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  539. void WriteInitialDeltaUpdate(Serializer&, uint8);
  540. void WriteLatestDataUpdate(Serializer&, uint8);
  541. operator const Animatable() const;
  542. operator const Component() const;
  543. operator const Drawable() const;
  544. operator const Object() const;
  545. operator const RefCounted() const;
  546. operator const Serializable() const;
  547. operator const StaticModel() const;
  548. // Properties:
  549. bool animationEnabled;
  550. float animationLodBias;
  551. /* readonly */
  552. Array<AnimationState> animationStates;
  553. /* readonly */
  554. Array<Variant> attributeDefaults;
  555. /* readonly */
  556. Array<AttributeInfo> attributeInfos;
  557. Array<Variant> attributes;
  558. /* readonly */
  559. BoundingBox boundingBox;
  560. bool castShadows;
  561. /* readonly */
  562. String category;
  563. float drawDistance;
  564. bool enabled;
  565. /* readonly */
  566. bool enabledEffective;
  567. Array<Variant> globalVar;
  568. /* readonly */
  569. VariantMap globalVars;
  570. /* readonly */
  571. uint id;
  572. /* readonly */
  573. bool inView;
  574. uint lightMask;
  575. float lodBias;
  576. Material material;
  577. Array<Material> materials;
  578. uint maxLights;
  579. Model model;
  580. /* readonly */
  581. Array<String> morphNames;
  582. Array<float> morphWeights;
  583. /* readonly */
  584. Node node;
  585. /* readonly */
  586. uint numAnimationStates;
  587. /* readonly */
  588. uint numAttributes;
  589. /* readonly */
  590. uint numGeometries;
  591. /* readonly */
  592. uint numMorphs;
  593. ObjectAnimation objectAnimation;
  594. bool occludee;
  595. bool occluder;
  596. uint occlusionLodLevel;
  597. /* readonly */
  598. int refs;
  599. /* readonly */
  600. bool replicated;
  601. float shadowDistance;
  602. uint shadowMask;
  603. /* readonly */
  604. Skeleton skeleton;
  605. bool temporary;
  606. /* readonly */
  607. StringHash type;
  608. /* readonly */
  609. String typeName;
  610. bool updateInvisible;
  611. uint viewMask;
  612. /* readonly */
  613. int weakRefs;
  614. /* readonly */
  615. BoundingBox worldBoundingBox;
  616. /* readonly */
  617. Zone zone;
  618. uint zoneMask;
  619. };
  620. class AnimatedSprite2D
  621. {
  622. public:
  623. AnimatedSprite2D();
  624. // Methods:
  625. void AddLight(Light);
  626. void AddVertexLight(Light);
  627. void AllocateNetworkState();
  628. operator Animatable() const;
  629. void ApplyAttributes();
  630. const BoundingBox& GetBoundingBox() const;
  631. const BoundingBox& GetWorldBoundingBox();
  632. void CleanupConnection(Connection);
  633. const Color& GetColor() const;
  634. operator Component() const;
  635. void DrawDebugGeometry(DebugRenderer, bool);
  636. bool DrawOcclusion(OcclusionBuffer);
  637. operator Drawable2D() const;
  638. operator Drawable() const;
  639. float GetAlpha() const;
  640. bool GetAnimationEnabled() const;
  641. AnimationSet2D GetAnimationSet() const;
  642. ResourceRef GetAnimationSetAttr() const;
  643. Variant GetAttribute(const String&) const;
  644. Variant GetAttribute(uint) const;
  645. ValueAnimation GetAttributeAnimation(const String&) const;
  646. float GetAttributeAnimationSpeed(const String&) const;
  647. float GetAttributeAnimationTime(const String&) const;
  648. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  649. Variant GetAttributeDefault(const String&) const;
  650. Variant GetAttributeDefault(uint) const;
  651. BlendMode GetBlendMode() const;
  652. bool GetBlockEvents() const;
  653. bool GetCastShadows() const;
  654. Component GetComponent(StringHash) const;
  655. Material GetCustomMaterial() const;
  656. ResourceRef GetCustomMaterialAttr() const;
  657. float GetDistance() const;
  658. float GetDrawDistance() const;
  659. uint8 GetDrawableFlags() const;
  660. VariantMap& GetEventDataMap() const;
  661. Object GetEventSender() const;
  662. Light GetFirstLight() const;
  663. bool GetFlipX() const;
  664. bool GetFlipY() const;
  665. uint GetID() const;
  666. bool GetInterceptNetworkUpdate(const String&) const;
  667. int GetLayer() const;
  668. uint GetLightMask() const;
  669. Array<Light> GetLights() const;
  670. float GetLodBias() const;
  671. float GetLodDistance() const;
  672. Geometry GetLodGeometry(uint, uint);
  673. LoopMode2D GetLoopMode() const;
  674. uint GetMaxLights() const;
  675. float GetMaxZ() const;
  676. float GetMinZ() const;
  677. Node GetNode() const;
  678. uint GetNumAttributes() const;
  679. uint GetNumNetworkAttributes() const;
  680. uint GetNumOccluderTriangles();
  681. ObjectAnimation GetObjectAnimation() const;
  682. ResourceRef GetObjectAnimationAttr() const;
  683. int GetOrderInLayer() const;
  684. Scene GetScene() const;
  685. float GetShadowDistance() const;
  686. uint GetShadowMask() const;
  687. float GetSortValue() const;
  688. float GetSpeed() const;
  689. Sprite2D GetSprite() const;
  690. ResourceRef GetSpriteAttr() const;
  691. Object GetSubsystem(StringHash) const;
  692. bool GetSwapXY() const;
  693. StringHash GetType() const;
  694. UpdateGeometryType GetUpdateGeometryType();
  695. bool GetUseDrawRect() const;
  696. bool GetUseHotSpot() const;
  697. bool GetUseTextureRect() const;
  698. Array<Light> GetVertexLights() const;
  699. uint GetViewMask() const;
  700. Zone GetZone() const;
  701. uint GetZoneMask() const;
  702. bool HasBasePass(uint) const;
  703. bool HasEventHandlers() const;
  704. bool HasSubscribedToEvent(Object, StringHash) const;
  705. bool HasSubscribedToEvent(StringHash) const;
  706. bool IsEnabled() const;
  707. bool IsEnabledEffective() const;
  708. bool IsInView() const;
  709. bool IsInView(Camera) const;
  710. bool IsInView(const FrameInfo&, bool = false) const;
  711. bool IsInstanceOf(StringHash) const;
  712. bool IsOccludee() const;
  713. bool IsOccluder() const;
  714. bool IsReplicated() const;
  715. bool IsTemporary() const;
  716. bool IsZoneDirty() const;
  717. void LimitLights();
  718. void LimitVertexLights(bool);
  719. bool Load(Deserializer&);
  720. bool LoadJSON(const JSONValue&);
  721. bool LoadXML(const XMLElement&);
  722. void MarkForUpdate();
  723. void MarkInView(const FrameInfo&);
  724. void MarkInView(uint);
  725. void MarkNetworkUpdate();
  726. operator Object() const;
  727. void OnEvent(Object, StringHash, VariantMap&);
  728. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  729. void OnSetAttribute(const AttributeInfo&, const Variant&);
  730. void OnSetEnabled();
  731. void PrepareNetworkUpdate();
  732. bool ReadDeltaUpdate(Deserializer&);
  733. bool ReadLatestDataUpdate(Deserializer&);
  734. const Rect& GetDrawRect() const;
  735. const Rect& GetTextureRect() const;
  736. operator RefCounted() const;
  737. int Refs() const;
  738. void Remove();
  739. void RemoveAttributeAnimation(const String&);
  740. void RemoveInstanceDefault();
  741. void RemoveObjectAnimation();
  742. void ResetToDefault();
  743. bool Save(Serializer&) const;
  744. bool SaveDefaultAttributes() const;
  745. bool SaveJSON(JSONValue&) const;
  746. bool SaveXML(XMLElement&) const;
  747. void SendEvent(StringHash);
  748. void SendEvent(StringHash, VariantMap&);
  749. operator Serializable() const;
  750. void SetAlpha(float);
  751. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  752. void SetAnimationAttr(const String&);
  753. void SetAnimationEnabled(bool);
  754. void SetAnimationSet(AnimationSet2D);
  755. void SetAnimationSetAttr(const ResourceRef&);
  756. void SetAnimationTime(float);
  757. bool SetAttribute(const String&, const Variant&);
  758. bool SetAttribute(uint, const Variant&);
  759. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  760. void SetAttributeAnimationSpeed(const String&, float);
  761. void SetAttributeAnimationTime(const String&, float);
  762. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  763. void SetBasePass(uint);
  764. void SetBlendMode(BlendMode);
  765. void SetBlockEvents(bool);
  766. void SetCastShadows(bool);
  767. void SetColor(const Color&);
  768. void SetCustomMaterial(Material);
  769. void SetCustomMaterialAttr(const ResourceRef&);
  770. void SetDrawDistance(float);
  771. void SetDrawRect(const Rect&);
  772. void SetEnabled(bool);
  773. void SetEntity(const String&);
  774. void SetFlip(bool, bool, bool = false);
  775. void SetFlipX(bool);
  776. void SetFlipY(bool);
  777. void SetGlobalVar(StringHash, const Variant&);
  778. void SetHotSpot(const Vector2&);
  779. void SetInstanceDefault(bool);
  780. void SetInterceptNetworkUpdate(const String&, bool);
  781. void SetLayer(int);
  782. void SetLightMask(uint);
  783. void SetLodBias(float);
  784. void SetLoopMode(LoopMode2D);
  785. void SetMaxLights(uint);
  786. void SetMinMaxZ(float, float);
  787. void SetObjectAnimation(ObjectAnimation);
  788. void SetObjectAnimationAttr(const ResourceRef&);
  789. void SetOccludee(bool);
  790. void SetOccluder(bool);
  791. void SetOrderInLayer(int);
  792. void SetShadowDistance(float);
  793. void SetShadowMask(uint);
  794. void SetSortValue(float);
  795. void SetSpeed(float);
  796. void SetSprite(Sprite2D);
  797. void SetSpriteAttr(const ResourceRef&);
  798. void SetSwapXY(bool);
  799. void SetTemporary(bool);
  800. void SetTextureRect(const Rect&);
  801. void SetUseDrawRect(bool);
  802. void SetUseHotSpot(bool);
  803. void SetUseTextureRect(bool);
  804. void SetViewMask(uint);
  805. void SetZone(Zone, bool = false);
  806. void SetZoneMask(uint);
  807. operator StaticSprite2D() const;
  808. const String& GetAnimation() const;
  809. const String& GetCategory() const;
  810. const String& GetEntity() const;
  811. const String& GetTypeName() const;
  812. void UnsubscribeFromAllEvents();
  813. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  814. void UnsubscribeFromEvent(Object, StringHash);
  815. void UnsubscribeFromEvent(StringHash);
  816. void UnsubscribeFromEvents(Object);
  817. void Update(const FrameInfo&);
  818. void UpdateBatches(const FrameInfo&);
  819. void UpdateGeometry(const FrameInfo&);
  820. const Variant& GetGlobalVar(StringHash) const;
  821. const VariantMap& GetGlobalVars() const;
  822. const Vector2& GetHotSpot() const;
  823. int WeakRefs() const;
  824. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  825. void WriteInitialDeltaUpdate(Serializer&, uint8);
  826. void WriteLatestDataUpdate(Serializer&, uint8);
  827. operator const Animatable() const;
  828. operator const Component() const;
  829. operator const Drawable2D() const;
  830. operator const Drawable() const;
  831. operator const Object() const;
  832. operator const RefCounted() const;
  833. operator const Serializable() const;
  834. operator const StaticSprite2D() const;
  835. // Properties:
  836. float alpha;
  837. String animation;
  838. bool animationEnabled;
  839. AnimationSet2D animationSet;
  840. /* readonly */
  841. Array<Variant> attributeDefaults;
  842. /* readonly */
  843. Array<AttributeInfo> attributeInfos;
  844. Array<Variant> attributes;
  845. BlendMode blendMode;
  846. /* readonly */
  847. BoundingBox boundingBox;
  848. bool castShadows;
  849. /* readonly */
  850. String category;
  851. Color color;
  852. Material customMaterial;
  853. float drawDistance;
  854. Rect drawRect;
  855. bool enabled;
  856. /* readonly */
  857. bool enabledEffective;
  858. String entity;
  859. bool flipX;
  860. bool flipY;
  861. Array<Variant> globalVar;
  862. /* readonly */
  863. VariantMap globalVars;
  864. Vector2 hotSpot;
  865. /* readonly */
  866. uint id;
  867. /* readonly */
  868. bool inView;
  869. int layer;
  870. uint lightMask;
  871. float lodBias;
  872. LoopMode2D loopMode;
  873. uint maxLights;
  874. /* readonly */
  875. Node node;
  876. /* readonly */
  877. uint numAttributes;
  878. ObjectAnimation objectAnimation;
  879. bool occludee;
  880. bool occluder;
  881. int orderInLayer;
  882. /* readonly */
  883. int refs;
  884. /* readonly */
  885. bool replicated;
  886. float shadowDistance;
  887. uint shadowMask;
  888. float speed;
  889. Sprite2D sprite;
  890. bool swapXY;
  891. bool temporary;
  892. Rect textureRect;
  893. /* readonly */
  894. StringHash type;
  895. /* readonly */
  896. String typeName;
  897. bool useDrawRect;
  898. bool useHotSpot;
  899. bool useTextureRect;
  900. uint viewMask;
  901. /* readonly */
  902. int weakRefs;
  903. /* readonly */
  904. BoundingBox worldBoundingBox;
  905. /* readonly */
  906. Zone zone;
  907. uint zoneMask;
  908. };
  909. class Animation
  910. {
  911. public:
  912. Animation();
  913. // Methods:
  914. void AddMetadata(const String&, const Variant&);
  915. void AddTrigger(const AnimationTriggerPoint&);
  916. void AddTrigger(float, bool, const Variant&);
  917. bool BeginLoad(Deserializer&);
  918. Animation Clone(const String& = String :: EMPTY) const;
  919. AnimationTrack CreateTrack(const String&);
  920. bool EndLoad();
  921. StringHash GetAnimationNameHash() const;
  922. AsyncLoadState GetAsyncLoadState() const;
  923. bool GetBlockEvents() const;
  924. VariantMap& GetEventDataMap() const;
  925. Object GetEventSender() const;
  926. float GetLength() const;
  927. uint GetMemoryUse() const;
  928. StringHash GetNameHash() const;
  929. uint GetNumTracks() const;
  930. uint GetNumTriggers() const;
  931. Object GetSubsystem(StringHash) const;
  932. AnimationTrack GetTrack(StringHash);
  933. AnimationTrack GetTrack(const String&);
  934. AnimationTrack GetTrack(uint);
  935. StringHash GetType() const;
  936. uint GetUseTimer();
  937. bool HasEventHandlers() const;
  938. bool HasMetadata() const;
  939. bool HasSubscribedToEvent(Object, StringHash) const;
  940. bool HasSubscribedToEvent(StringHash) const;
  941. bool IsInstanceOf(StringHash) const;
  942. bool Load(Deserializer&);
  943. bool Load(File);
  944. bool Load(VectorBuffer&);
  945. bool Load(const String&);
  946. bool LoadFile(const String&);
  947. operator Object() const;
  948. void OnEvent(Object, StringHash, VariantMap&);
  949. operator RefCounted() const;
  950. int Refs() const;
  951. void RemoveAllMetadata();
  952. void RemoveAllTracks();
  953. void RemoveAllTriggers();
  954. void RemoveMetadata(const String&);
  955. bool RemoveTrack(const String&);
  956. void RemoveTrigger(uint);
  957. void ResetUseTimer();
  958. operator Resource() const;
  959. operator ResourceWithMetadata() const;
  960. bool Save(File) const;
  961. bool Save(Serializer&) const;
  962. bool Save(VectorBuffer&) const;
  963. bool Save(const String&) const;
  964. bool SaveFile(const String&) const;
  965. void SendEvent(StringHash);
  966. void SendEvent(StringHash, VariantMap&);
  967. void SetAnimationName(const String&);
  968. void SetAsyncLoadState(AsyncLoadState);
  969. void SetBlockEvents(bool);
  970. void SetGlobalVar(StringHash, const Variant&);
  971. void SetLength(float);
  972. void SetMemoryUse(uint);
  973. void SetName(const String&);
  974. void SetNumTriggers(uint);
  975. void SetTrigger(uint, const AnimationTriggerPoint&);
  976. const String& GetAnimationName() const;
  977. const String& GetCategory() const;
  978. const String& GetName() const;
  979. const String& GetTypeName() const;
  980. void UnsubscribeFromAllEvents();
  981. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  982. void UnsubscribeFromEvent(Object, StringHash);
  983. void UnsubscribeFromEvent(StringHash);
  984. void UnsubscribeFromEvents(Object);
  985. const Variant& GetGlobalVar(StringHash) const;
  986. const Variant& GetMetadata(const String&) const;
  987. const VariantMap& GetGlobalVars() const;
  988. int WeakRefs() const;
  989. operator const Object() const;
  990. operator const RefCounted() const;
  991. operator const Resource() const;
  992. operator const ResourceWithMetadata() const;
  993. // Properties:
  994. String animationName;
  995. /* readonly */
  996. String category;
  997. Array<Variant> globalVar;
  998. /* readonly */
  999. VariantMap globalVars;
  1000. /* readonly */
  1001. bool hasMetadata;
  1002. float length;
  1003. /* readonly */
  1004. uint memoryUse;
  1005. Array<Variant> metadata;
  1006. String name;
  1007. /* readonly */
  1008. uint numTracks;
  1009. uint numTriggers;
  1010. /* readonly */
  1011. int refs;
  1012. /* readonly */
  1013. Array<AnimationTrack> tracks;
  1014. Array<AnimationTriggerPoint> triggers;
  1015. /* readonly */
  1016. StringHash type;
  1017. /* readonly */
  1018. String typeName;
  1019. /* readonly */
  1020. uint useTimer;
  1021. /* readonly */
  1022. int weakRefs;
  1023. };
  1024. class AnimationControl
  1025. {
  1026. public:
  1027. // Methods:
  1028. AnimationControl& operator=(const AnimationControl&);
  1029. // Properties:
  1030. float autoFadeTime;
  1031. float fadeTime;
  1032. StringHash hash;
  1033. String name;
  1034. bool removeOnCompletion;
  1035. uint16 setTime;
  1036. uint8 setTimeRev;
  1037. float setTimeTtl;
  1038. uint8 setWeight;
  1039. uint8 setWeightRev;
  1040. float setWeightTtl;
  1041. float speed;
  1042. float targetWeight;
  1043. };
  1044. class AnimationController
  1045. {
  1046. public:
  1047. AnimationController();
  1048. // Methods:
  1049. void AllocateNetworkState();
  1050. operator Animatable() const;
  1051. void ApplyAttributes();
  1052. void CleanupConnection(Connection);
  1053. operator Component() const;
  1054. void DrawDebugGeometry(DebugRenderer, bool);
  1055. bool Fade(const String&, float, float);
  1056. bool FadeOthers(const String&, float, float);
  1057. bool GetAnimationEnabled() const;
  1058. AnimationState GetAnimationState(StringHash) const;
  1059. AnimationState GetAnimationState(const String&) const;
  1060. Variant GetAttribute(const String&) const;
  1061. Variant GetAttribute(uint) const;
  1062. ValueAnimation GetAttributeAnimation(const String&) const;
  1063. float GetAttributeAnimationSpeed(const String&) const;
  1064. float GetAttributeAnimationTime(const String&) const;
  1065. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1066. Variant GetAttributeDefault(const String&) const;
  1067. Variant GetAttributeDefault(uint) const;
  1068. float GetAutoFade(const String&) const;
  1069. AnimationBlendMode GetBlendMode(const String&) const;
  1070. bool GetBlockEvents() const;
  1071. Component GetComponent(StringHash) const;
  1072. VariantMap& GetEventDataMap() const;
  1073. Object GetEventSender() const;
  1074. float GetFadeTarget(const String&) const;
  1075. float GetFadeTime(const String&) const;
  1076. uint GetID() const;
  1077. bool GetInterceptNetworkUpdate(const String&) const;
  1078. uint8 GetLayer(const String&) const;
  1079. float GetLength(const String&) const;
  1080. Node GetNode() const;
  1081. uint GetNumAttributes() const;
  1082. uint GetNumNetworkAttributes() const;
  1083. ObjectAnimation GetObjectAnimation() const;
  1084. ResourceRef GetObjectAnimationAttr() const;
  1085. bool GetRemoveOnCompletion(const String&) const;
  1086. Scene GetScene() const;
  1087. float GetSpeed(const String&) const;
  1088. Bone GetStartBone(const String&) const;
  1089. Object GetSubsystem(StringHash) const;
  1090. float GetTime(const String&) const;
  1091. StringHash GetType() const;
  1092. float GetWeight(const String&) const;
  1093. bool HasEventHandlers() const;
  1094. bool HasSubscribedToEvent(Object, StringHash) const;
  1095. bool HasSubscribedToEvent(StringHash) const;
  1096. bool IsAtEnd(const String&) const;
  1097. bool IsEnabled() const;
  1098. bool IsEnabledEffective() const;
  1099. bool IsFadingIn(const String&) const;
  1100. bool IsFadingOut(const String&) const;
  1101. bool IsInstanceOf(StringHash) const;
  1102. bool IsLooped(const String&) const;
  1103. bool IsPlaying(const String&) const;
  1104. bool IsPlaying(uint8) const;
  1105. bool IsReplicated() const;
  1106. bool IsTemporary() const;
  1107. bool Load(Deserializer&);
  1108. bool LoadJSON(const JSONValue&);
  1109. bool LoadXML(const XMLElement&);
  1110. void MarkNetworkUpdate();
  1111. operator Object() const;
  1112. void OnEvent(Object, StringHash, VariantMap&);
  1113. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  1114. void OnSetAttribute(const AttributeInfo&, const Variant&);
  1115. void OnSetEnabled();
  1116. bool Play(const String&, uint8, bool, float = 0.0f);
  1117. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  1118. void PrepareNetworkUpdate();
  1119. bool ReadDeltaUpdate(Deserializer&);
  1120. bool ReadLatestDataUpdate(Deserializer&);
  1121. operator RefCounted() const;
  1122. int Refs() const;
  1123. void Remove();
  1124. void RemoveAttributeAnimation(const String&);
  1125. void RemoveInstanceDefault();
  1126. void RemoveObjectAnimation();
  1127. void ResetToDefault();
  1128. bool Save(Serializer&) const;
  1129. bool SaveDefaultAttributes() const;
  1130. bool SaveJSON(JSONValue&) const;
  1131. bool SaveXML(XMLElement&) const;
  1132. void SendEvent(StringHash);
  1133. void SendEvent(StringHash, VariantMap&);
  1134. operator Serializable() const;
  1135. void SetAnimationEnabled(bool);
  1136. void SetAnimationTime(float);
  1137. bool SetAttribute(const String&, const Variant&);
  1138. bool SetAttribute(uint, const Variant&);
  1139. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1140. void SetAttributeAnimationSpeed(const String&, float);
  1141. void SetAttributeAnimationTime(const String&, float);
  1142. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1143. bool SetAutoFade(const String&, float);
  1144. bool SetBlendMode(const String&, AnimationBlendMode);
  1145. void SetBlockEvents(bool);
  1146. void SetEnabled(bool);
  1147. void SetGlobalVar(StringHash, const Variant&);
  1148. void SetInstanceDefault(bool);
  1149. void SetInterceptNetworkUpdate(const String&, bool);
  1150. bool SetLayer(const String&, uint8);
  1151. bool SetLooped(const String&, bool);
  1152. void SetObjectAnimation(ObjectAnimation);
  1153. void SetObjectAnimationAttr(const ResourceRef&);
  1154. bool SetRemoveOnCompletion(const String&, bool);
  1155. bool SetSpeed(const String&, float);
  1156. bool SetStartBone(const String&, const String&);
  1157. void SetTemporary(bool);
  1158. bool SetTime(const String&, float);
  1159. bool SetWeight(const String&, float);
  1160. bool Stop(const String&, float = 0.0f);
  1161. void StopAll(float = 0.0f);
  1162. void StopLayer(uint8, float = 0.0f);
  1163. const String& GetCategory() const;
  1164. const String& GetStartBoneName(const String&) const;
  1165. const String& GetTypeName() const;
  1166. void UnsubscribeFromAllEvents();
  1167. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1168. void UnsubscribeFromEvent(Object, StringHash);
  1169. void UnsubscribeFromEvent(StringHash);
  1170. void UnsubscribeFromEvents(Object);
  1171. void Update(float);
  1172. const Variant& GetGlobalVar(StringHash) const;
  1173. const VariantMap& GetGlobalVars() const;
  1174. int WeakRefs() const;
  1175. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  1176. void WriteInitialDeltaUpdate(Serializer&, uint8);
  1177. void WriteLatestDataUpdate(Serializer&, uint8);
  1178. operator const Animatable() const;
  1179. operator const Component() const;
  1180. operator const Object() const;
  1181. operator const RefCounted() const;
  1182. operator const Serializable() const;
  1183. // Properties:
  1184. bool animationEnabled;
  1185. /* readonly */
  1186. Array<AnimationControl> animations;
  1187. /* readonly */
  1188. Array<Variant> attributeDefaults;
  1189. /* readonly */
  1190. Array<AttributeInfo> attributeInfos;
  1191. Array<Variant> attributes;
  1192. /* readonly */
  1193. String category;
  1194. bool enabled;
  1195. /* readonly */
  1196. bool enabledEffective;
  1197. Array<Variant> globalVar;
  1198. /* readonly */
  1199. VariantMap globalVars;
  1200. /* readonly */
  1201. uint id;
  1202. /* readonly */
  1203. Node node;
  1204. /* readonly */
  1205. uint numAnimations;
  1206. /* readonly */
  1207. uint numAttributes;
  1208. ObjectAnimation objectAnimation;
  1209. /* readonly */
  1210. int refs;
  1211. /* readonly */
  1212. bool replicated;
  1213. bool temporary;
  1214. /* readonly */
  1215. StringHash type;
  1216. /* readonly */
  1217. String typeName;
  1218. /* readonly */
  1219. int weakRefs;
  1220. };
  1221. class AnimationKeyFrame
  1222. {
  1223. public:
  1224. ~AnimationKeyFrame();
  1225. AnimationKeyFrame();
  1226. // Methods:
  1227. AnimationKeyFrame& operator=(const AnimationKeyFrame&);
  1228. // Properties:
  1229. Vector3 position;
  1230. Quaternion rotation;
  1231. Vector3 scale;
  1232. float time;
  1233. };
  1234. class AnimationSet2D
  1235. {
  1236. public:
  1237. AnimationSet2D();
  1238. // Methods:
  1239. bool BeginLoad(Deserializer&);
  1240. bool EndLoad();
  1241. String GetAnimation(uint) const;
  1242. AsyncLoadState GetAsyncLoadState() const;
  1243. bool GetBlockEvents() const;
  1244. VariantMap& GetEventDataMap() const;
  1245. Object GetEventSender() const;
  1246. uint GetMemoryUse() const;
  1247. StringHash GetNameHash() const;
  1248. uint GetNumAnimations() const;
  1249. Sprite2D GetSprite() const;
  1250. Sprite2D GetSpriterFileSprite(int, int) const;
  1251. Object GetSubsystem(StringHash) const;
  1252. StringHash GetType() const;
  1253. uint GetUseTimer();
  1254. bool HasAnimation(const String&) const;
  1255. bool HasEventHandlers() const;
  1256. bool HasSubscribedToEvent(Object, StringHash) const;
  1257. bool HasSubscribedToEvent(StringHash) const;
  1258. bool IsInstanceOf(StringHash) const;
  1259. bool Load(Deserializer&);
  1260. bool Load(File);
  1261. bool Load(VectorBuffer&);
  1262. bool Load(const String&);
  1263. bool LoadFile(const String&);
  1264. operator Object() const;
  1265. void OnEvent(Object, StringHash, VariantMap&);
  1266. operator RefCounted() const;
  1267. int Refs() const;
  1268. void ResetUseTimer();
  1269. operator Resource() const;
  1270. bool Save(File) const;
  1271. bool Save(Serializer&) const;
  1272. bool Save(VectorBuffer&) const;
  1273. bool Save(const String&) const;
  1274. bool SaveFile(const String&) const;
  1275. void SendEvent(StringHash);
  1276. void SendEvent(StringHash, VariantMap&);
  1277. void SetAsyncLoadState(AsyncLoadState);
  1278. void SetBlockEvents(bool);
  1279. void SetGlobalVar(StringHash, const Variant&);
  1280. void SetMemoryUse(uint);
  1281. void SetName(const String&);
  1282. const String& GetCategory() const;
  1283. const String& GetName() const;
  1284. const String& GetTypeName() const;
  1285. void UnsubscribeFromAllEvents();
  1286. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1287. void UnsubscribeFromEvent(Object, StringHash);
  1288. void UnsubscribeFromEvent(StringHash);
  1289. void UnsubscribeFromEvents(Object);
  1290. const Variant& GetGlobalVar(StringHash) const;
  1291. const VariantMap& GetGlobalVars() const;
  1292. int WeakRefs() const;
  1293. operator const Object() const;
  1294. operator const RefCounted() const;
  1295. operator const Resource() const;
  1296. // Properties:
  1297. /* readonly */
  1298. String category;
  1299. Array<Variant> globalVar;
  1300. /* readonly */
  1301. VariantMap globalVars;
  1302. /* readonly */
  1303. uint memoryUse;
  1304. String name;
  1305. /* readonly */
  1306. uint numAnimations;
  1307. /* readonly */
  1308. int refs;
  1309. /* readonly */
  1310. StringHash type;
  1311. /* readonly */
  1312. String typeName;
  1313. /* readonly */
  1314. uint useTimer;
  1315. /* readonly */
  1316. int weakRefs;
  1317. };
  1318. class AnimationState
  1319. {
  1320. public:
  1321. AnimationState(AnimatedModel&, Animation&);
  1322. AnimationState(Node&, Animation&);
  1323. // Methods:
  1324. void AddTime(float);
  1325. void AddWeight(float);
  1326. void Apply();
  1327. Animation GetAnimation() const;
  1328. AnimationBlendMode GetBlendMode() const;
  1329. float GetBoneWeight(StringHash) const;
  1330. float GetBoneWeight(const String&) const;
  1331. float GetBoneWeight(uint) const;
  1332. uint8 GetLayer() const;
  1333. float GetLength() const;
  1334. AnimatedModel GetModel() const;
  1335. Node GetNode() const;
  1336. Bone GetStartBone() const;
  1337. float GetTime() const;
  1338. uint GetTrackIndex(Node) const;
  1339. uint GetTrackIndex(StringHash) const;
  1340. uint GetTrackIndex(const String&) const;
  1341. float GetWeight() const;
  1342. bool IsEnabled() const;
  1343. bool IsLooped() const;
  1344. operator RefCounted() const;
  1345. int Refs() const;
  1346. void SetBlendMode(AnimationBlendMode);
  1347. void SetBoneWeight(StringHash, float, bool = false);
  1348. void SetBoneWeight(const String&, float, bool = false);
  1349. void SetBoneWeight(uint, float, bool = false);
  1350. void SetLayer(uint8);
  1351. void SetLooped(bool);
  1352. void SetStartBone(Bone);
  1353. void SetTime(float);
  1354. void SetWeight(float);
  1355. int WeakRefs() const;
  1356. operator const RefCounted() const;
  1357. // Properties:
  1358. /* readonly */
  1359. Animation animation;
  1360. AnimationBlendMode blendMode;
  1361. Array<float> boneWeights;
  1362. /* readonly */
  1363. bool enabled;
  1364. uint8 layer;
  1365. /* readonly */
  1366. float length;
  1367. bool looped;
  1368. /* readonly */
  1369. AnimatedModel model;
  1370. /* readonly */
  1371. Node node;
  1372. /* readonly */
  1373. int refs;
  1374. Bone startBone;
  1375. float time;
  1376. /* readonly */
  1377. int weakRefs;
  1378. float weight;
  1379. };
  1380. class AnimationStateTrack
  1381. {
  1382. public:
  1383. ~AnimationStateTrack();
  1384. AnimationStateTrack();
  1385. // Methods:
  1386. AnimationStateTrack& operator=(const AnimationStateTrack&);
  1387. // Properties:
  1388. uint keyFrame;
  1389. float weight;
  1390. };
  1391. class AnimationTrack
  1392. {
  1393. public:
  1394. // Methods:
  1395. AnimationTrack& operator=(const AnimationTrack&);
  1396. void AddKeyFrame(const AnimationKeyFrame&);
  1397. bool GetKeyFrameIndex(float, uint&) const;
  1398. uint GetNumKeyFrames() const;
  1399. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  1400. void RemoveAllKeyFrames();
  1401. void RemoveKeyFrame(uint);
  1402. void SetKeyFrame(uint, const AnimationKeyFrame&);
  1403. // Properties:
  1404. uint8 channelMask;
  1405. Array<AnimationKeyFrame> keyFrames;
  1406. String name;
  1407. StringHash nameHash;
  1408. /* readonly */
  1409. uint numKeyFrames;
  1410. };
  1411. class AnimationTriggerPoint
  1412. {
  1413. public:
  1414. ~AnimationTriggerPoint();
  1415. AnimationTriggerPoint();
  1416. // Methods:
  1417. AnimationTriggerPoint& operator=(const AnimationTriggerPoint&);
  1418. // Properties:
  1419. Variant data;
  1420. float time;
  1421. };
  1422. class AreaAllocator
  1423. {
  1424. public:
  1425. ~AreaAllocator();
  1426. AreaAllocator();
  1427. AreaAllocator(int, int, bool = true);
  1428. AreaAllocator(int, int, int, int, bool = true);
  1429. // Methods:
  1430. AreaAllocator& operator=(const AreaAllocator&);
  1431. bool Allocate(int, int, int&, int&);
  1432. bool GetFastMode() const;
  1433. int GetHeight() const;
  1434. int GetWidth() const;
  1435. void Reset(int, int, int = 0, int = 0, bool = true);
  1436. };
  1437. template <typename T>
  1438. class Array
  1439. {
  1440. public:
  1441. Array(int&in);
  1442. Array(int&in, uint);
  1443. Array(int&in, uint, const T&in);
  1444. // Methods:
  1445. Array<Array<T>& operator=(const T>&);
  1446. bool operator==(const Array<T>&) const;
  1447. T& operator[](uint);
  1448. void Clear();
  1449. void Erase(uint);
  1450. int Find(const T&) const;
  1451. int Find(uint, const T&) const;
  1452. int FindByRef(const T&) const;
  1453. int FindByRef(uint, const T&) const;
  1454. void Insert(uint, const T&);
  1455. void Pop();
  1456. void Push(const T&);
  1457. void Reserve(uint);
  1458. void Resize(uint);
  1459. void Reverse();
  1460. void Sort();
  1461. void Sort(uint, uint);
  1462. void SortReverse();
  1463. void SortReverse(uint, uint);
  1464. bool Swap(Array<T>&);
  1465. const T& operator[](uint) const;
  1466. // Properties:
  1467. /* readonly */
  1468. bool empty;
  1469. uint length;
  1470. };
  1471. class AsyncProgress
  1472. {
  1473. public:
  1474. ~AsyncProgress();
  1475. AsyncProgress();
  1476. // Methods:
  1477. AsyncProgress& operator=(const AsyncProgress&);
  1478. // Properties:
  1479. uint jsonIndex;
  1480. uint loadedNodes;
  1481. uint loadedResources;
  1482. LoadMode mode;
  1483. uint totalNodes;
  1484. uint totalResources;
  1485. XMLElement xmlElement;
  1486. };
  1487. class AttributeAccessor
  1488. {
  1489. public:
  1490. // Methods:
  1491. void Get(Serializable, Variant&) const;
  1492. operator RefCounted() const;
  1493. int Refs() const;
  1494. void Set(Serializable, const Variant&);
  1495. int WeakRefs() const;
  1496. operator const RefCounted() const;
  1497. // Properties:
  1498. /* readonly */
  1499. int refs;
  1500. /* readonly */
  1501. int weakRefs;
  1502. };
  1503. class AttributeAnimationInfo
  1504. {
  1505. public:
  1506. AttributeAnimationInfo(Animatable&, const AttributeInfo&in, ValueAnimation&, WrapMode, float);
  1507. AttributeAnimationInfo(const AttributeAnimationInfo&in);
  1508. // Methods:
  1509. const AttributeInfo& GetAttributeInfo() const;
  1510. ValueAnimation GetAnimation() const;
  1511. float GetSpeed() const;
  1512. Object GetTarget() const;
  1513. float GetTime() const;
  1514. WrapMode GetWrapMode() const;
  1515. operator RefCounted() const;
  1516. int Refs() const;
  1517. void SetSpeed(float);
  1518. bool SetTime(float);
  1519. void SetWrapMode(WrapMode);
  1520. bool Update(float);
  1521. operator ValueAnimationInfo() const;
  1522. int WeakRefs() const;
  1523. operator const RefCounted() const;
  1524. operator const ValueAnimationInfo() const;
  1525. // Properties:
  1526. /* readonly */
  1527. int refs;
  1528. /* readonly */
  1529. int weakRefs;
  1530. };
  1531. class AttributeInfo
  1532. {
  1533. public:
  1534. ~AttributeInfo();
  1535. AttributeInfo();
  1536. // Methods:
  1537. AttributeInfo& operator=(const AttributeInfo&);
  1538. const Variant& GetMetadata(const StringHash&) const;
  1539. // Properties:
  1540. Variant defaultValue;
  1541. /* readonly */
  1542. Array<String> enumNames;
  1543. VariantMap metadata;
  1544. int mode;
  1545. String name;
  1546. VariantType type;
  1547. };
  1548. class Audio
  1549. {
  1550. public:
  1551. Audio();
  1552. // Methods:
  1553. void AddSoundSource(SoundSource);
  1554. bool GetBlockEvents() const;
  1555. VariantMap& GetEventDataMap() const;
  1556. Object GetEventSender() const;
  1557. bool GetInterpolation() const;
  1558. SoundListener GetListener() const;
  1559. float GetMasterGain(const String&) const;
  1560. int GetMixRate() const;
  1561. Mutex& GetMutex();
  1562. uint GetSampleSize() const;
  1563. float GetSoundSourceMasterGain(StringHash) const;
  1564. Array<SoundSource> GetSoundSources() const;
  1565. Object GetSubsystem(StringHash) const;
  1566. StringHash GetType() const;
  1567. bool HasEventHandlers() const;
  1568. bool HasMasterGain(const String&) const;
  1569. bool HasSubscribedToEvent(Object, StringHash) const;
  1570. bool HasSubscribedToEvent(StringHash) const;
  1571. bool IsInitialized() const;
  1572. bool IsInstanceOf(StringHash) const;
  1573. bool IsPlaying() const;
  1574. bool IsSoundTypePaused(const String&) const;
  1575. bool IsStereo() const;
  1576. operator Object() const;
  1577. void OnEvent(Object, StringHash, VariantMap&);
  1578. void PauseSoundType(const String&);
  1579. bool Play();
  1580. operator RefCounted() const;
  1581. int Refs() const;
  1582. void RemoveSoundSource(SoundSource);
  1583. void ResumeAll();
  1584. void ResumeSoundType(const String&);
  1585. void SendEvent(StringHash);
  1586. void SendEvent(StringHash, VariantMap&);
  1587. void SetBlockEvents(bool);
  1588. void SetGlobalVar(StringHash, const Variant&);
  1589. void SetListener(SoundListener);
  1590. void SetMasterGain(const String&, float);
  1591. bool SetMode(int, int, bool, bool = true);
  1592. void Stop();
  1593. void StopSound(Sound);
  1594. const String& GetCategory() const;
  1595. const String& GetTypeName() const;
  1596. void UnsubscribeFromAllEvents();
  1597. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1598. void UnsubscribeFromEvent(Object, StringHash);
  1599. void UnsubscribeFromEvent(StringHash);
  1600. void UnsubscribeFromEvents(Object);
  1601. void Update(float);
  1602. const Variant& GetGlobalVar(StringHash) const;
  1603. const VariantMap& GetGlobalVars() const;
  1604. int WeakRefs() const;
  1605. operator const Object() const;
  1606. operator const RefCounted() const;
  1607. // Properties:
  1608. /* readonly */
  1609. String category;
  1610. Array<Variant> globalVar;
  1611. /* readonly */
  1612. VariantMap globalVars;
  1613. /* readonly */
  1614. bool initialized;
  1615. /* readonly */
  1616. bool interpolation;
  1617. SoundListener listener;
  1618. Array<float> masterGain;
  1619. /* readonly */
  1620. int mixRate;
  1621. /* readonly */
  1622. bool playing;
  1623. /* readonly */
  1624. int refs;
  1625. /* readonly */
  1626. uint sampleSize;
  1627. /* readonly */
  1628. bool stereo;
  1629. /* readonly */
  1630. StringHash type;
  1631. /* readonly */
  1632. String typeName;
  1633. /* readonly */
  1634. int weakRefs;
  1635. };
  1636. class BackgroundLoadItem
  1637. {
  1638. public:
  1639. ~BackgroundLoadItem();
  1640. BackgroundLoadItem();
  1641. // Methods:
  1642. BackgroundLoadItem& operator=(const BackgroundLoadItem&);
  1643. // Properties:
  1644. bool sendEventOnFailure;
  1645. };
  1646. class Batch
  1647. {
  1648. public:
  1649. ~Batch();
  1650. Batch();
  1651. Batch(const SourceBatch&in);
  1652. // Methods:
  1653. Batch& operator=(const Batch&);
  1654. void CalculateSortKey();
  1655. void Draw(View, Camera, bool) const;
  1656. void Prepare(View, Camera, bool, bool) const;
  1657. // Properties:
  1658. float distance;
  1659. GeometryType geometryType;
  1660. bool isBase;
  1661. uint8 lightMask;
  1662. uint numWorldTransforms;
  1663. uint8 renderOrder;
  1664. uint64 sortKey;
  1665. };
  1666. class BatchGroup
  1667. {
  1668. public:
  1669. ~BatchGroup();
  1670. BatchGroup();
  1671. BatchGroup(const Batch&in);
  1672. // Methods:
  1673. BatchGroup& operator=(const BatchGroup&);
  1674. void AddTransforms(const Batch&);
  1675. void CalculateSortKey();
  1676. void Draw(View, Camera, bool) const;
  1677. void Prepare(View, Camera, bool, bool) const;
  1678. // Properties:
  1679. float distance;
  1680. GeometryType geometryType;
  1681. bool isBase;
  1682. uint8 lightMask;
  1683. uint numWorldTransforms;
  1684. uint8 renderOrder;
  1685. uint64 sortKey;
  1686. uint startIndex;
  1687. };
  1688. class BatchGroupKey
  1689. {
  1690. public:
  1691. ~BatchGroupKey();
  1692. BatchGroupKey();
  1693. BatchGroupKey(const Batch&in);
  1694. // Methods:
  1695. BatchGroupKey& operator=(const BatchGroupKey&);
  1696. bool operator==(const BatchGroupKey&) const;
  1697. uint ToHash() const;
  1698. // Properties:
  1699. uint8 renderOrder;
  1700. };
  1701. class BatchQueue
  1702. {
  1703. public:
  1704. ~BatchQueue();
  1705. BatchQueue();
  1706. // Methods:
  1707. BatchQueue& operator=(const BatchQueue&);
  1708. void Clear(int);
  1709. void Draw(View, Camera, bool, bool, bool) const;
  1710. uint GetNumInstances() const;
  1711. bool IsEmpty() const;
  1712. void SortBackToFront();
  1713. void SortFrontToBack();
  1714. // Properties:
  1715. bool hasExtraDefines;
  1716. uint maxSortedInstances;
  1717. String psExtraDefines;
  1718. StringHash psExtraDefinesHash;
  1719. String vsExtraDefines;
  1720. StringHash vsExtraDefinesHash;
  1721. };
  1722. class BiasParameters
  1723. {
  1724. public:
  1725. BiasParameters();
  1726. BiasParameters(float, float, float = 0.0f);
  1727. // Methods:
  1728. BiasParameters& operator=(const BiasParameters&);
  1729. void Validate();
  1730. // Properties:
  1731. float constantBias;
  1732. float normalOffset;
  1733. float slopeScaledBias;
  1734. };
  1735. class BigInt
  1736. {
  1737. public:
  1738. ~BigInt();
  1739. BigInt();
  1740. BigInt(const String&in);
  1741. BigInt(int);
  1742. BigInt(int64);
  1743. BigInt(uint);
  1744. BigInt(uint64);
  1745. // Methods:
  1746. BigInt operator+(const BigInt&) const;
  1747. BigInt& operator++();
  1748. BigInt operator++(int);
  1749. BigInt& operator+=(const BigInt&);
  1750. int operator<(const BigInt&) const;
  1751. BigInt& operator=(const BigInt&);
  1752. bool operator==(const BigInt&) const;
  1753. bool IsNegative() const;
  1754. bool IsPositive() const;
  1755. bool IsZero() const;
  1756. String ToString() const;
  1757. };
  1758. class Billboard
  1759. {
  1760. public:
  1761. // Methods:
  1762. Billboard& operator=(const Billboard&);
  1763. // Properties:
  1764. Color color;
  1765. Vector3 direction;
  1766. bool enabled;
  1767. Vector3 position;
  1768. float rotation;
  1769. float screenScaleFactor;
  1770. Vector2 size;
  1771. float sortDistance;
  1772. Rect uv;
  1773. };
  1774. class BillboardSet
  1775. {
  1776. public:
  1777. BillboardSet();
  1778. // Methods:
  1779. void AddLight(Light);
  1780. void AddVertexLight(Light);
  1781. void AllocateNetworkState();
  1782. operator Animatable() const;
  1783. void ApplyAttributes();
  1784. const BoundingBox& GetBoundingBox() const;
  1785. const BoundingBox& GetWorldBoundingBox();
  1786. void CleanupConnection(Connection);
  1787. void Commit();
  1788. operator Component() const;
  1789. void DrawDebugGeometry(DebugRenderer, bool);
  1790. bool DrawOcclusion(OcclusionBuffer);
  1791. operator Drawable() const;
  1792. bool GetAnimationEnabled() const;
  1793. float GetAnimationLodBias() const;
  1794. Variant GetAttribute(const String&) const;
  1795. Variant GetAttribute(uint) const;
  1796. ValueAnimation GetAttributeAnimation(const String&) const;
  1797. float GetAttributeAnimationSpeed(const String&) const;
  1798. float GetAttributeAnimationTime(const String&) const;
  1799. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1800. Variant GetAttributeDefault(const String&) const;
  1801. Variant GetAttributeDefault(uint) const;
  1802. Billboard GetBillboard(uint);
  1803. bool GetBlockEvents() const;
  1804. bool GetCastShadows() const;
  1805. Component GetComponent(StringHash) const;
  1806. float GetDistance() const;
  1807. float GetDrawDistance() const;
  1808. uint8 GetDrawableFlags() const;
  1809. VariantMap& GetEventDataMap() const;
  1810. Object GetEventSender() const;
  1811. FaceCameraMode GetFaceCameraMode() const;
  1812. Light GetFirstLight() const;
  1813. uint GetID() const;
  1814. bool GetInterceptNetworkUpdate(const String&) const;
  1815. uint GetLightMask() const;
  1816. Array<Light> GetLights() const;
  1817. float GetLodBias() const;
  1818. float GetLodDistance() const;
  1819. Geometry GetLodGeometry(uint, uint);
  1820. Material GetMaterial() const;
  1821. ResourceRef GetMaterialAttr() const;
  1822. uint GetMaxLights() const;
  1823. float GetMaxZ() const;
  1824. float GetMinAngle() const;
  1825. float GetMinZ() const;
  1826. Node GetNode() const;
  1827. uint GetNumAttributes() const;
  1828. uint GetNumBillboards() const;
  1829. uint GetNumNetworkAttributes() const;
  1830. uint GetNumOccluderTriangles();
  1831. ObjectAnimation GetObjectAnimation() const;
  1832. ResourceRef GetObjectAnimationAttr() const;
  1833. Scene GetScene() const;
  1834. float GetShadowDistance() const;
  1835. uint GetShadowMask() const;
  1836. float GetSortValue() const;
  1837. Object GetSubsystem(StringHash) const;
  1838. StringHash GetType() const;
  1839. UpdateGeometryType GetUpdateGeometryType();
  1840. Array<Light> GetVertexLights() const;
  1841. uint GetViewMask() const;
  1842. Zone GetZone() const;
  1843. uint GetZoneMask() const;
  1844. bool HasBasePass(uint) const;
  1845. bool HasEventHandlers() const;
  1846. bool HasSubscribedToEvent(Object, StringHash) const;
  1847. bool HasSubscribedToEvent(StringHash) const;
  1848. bool IsEnabled() const;
  1849. bool IsEnabledEffective() const;
  1850. bool IsFixedScreenSize() const;
  1851. bool IsInView() const;
  1852. bool IsInView(Camera) const;
  1853. bool IsInView(const FrameInfo&, bool = false) const;
  1854. bool IsInstanceOf(StringHash) const;
  1855. bool IsOccludee() const;
  1856. bool IsOccluder() const;
  1857. bool IsRelative() const;
  1858. bool IsReplicated() const;
  1859. bool IsScaled() const;
  1860. bool IsSorted() const;
  1861. bool IsTemporary() const;
  1862. bool IsZoneDirty() const;
  1863. void LimitLights();
  1864. void LimitVertexLights(bool);
  1865. bool Load(Deserializer&);
  1866. bool LoadJSON(const JSONValue&);
  1867. bool LoadXML(const XMLElement&);
  1868. void MarkForUpdate();
  1869. void MarkInView(const FrameInfo&);
  1870. void MarkInView(uint);
  1871. void MarkNetworkUpdate();
  1872. operator Object() const;
  1873. void OnEvent(Object, StringHash, VariantMap&);
  1874. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  1875. void OnSetAttribute(const AttributeInfo&, const Variant&);
  1876. void OnSetEnabled();
  1877. operator ParticleEmitter() const;
  1878. void PrepareNetworkUpdate();
  1879. bool ReadDeltaUpdate(Deserializer&);
  1880. bool ReadLatestDataUpdate(Deserializer&);
  1881. operator RefCounted() const;
  1882. int Refs() const;
  1883. void Remove();
  1884. void RemoveAttributeAnimation(const String&);
  1885. void RemoveInstanceDefault();
  1886. void RemoveObjectAnimation();
  1887. void ResetToDefault();
  1888. bool Save(Serializer&) const;
  1889. bool SaveDefaultAttributes() const;
  1890. bool SaveJSON(JSONValue&) const;
  1891. bool SaveXML(XMLElement&) const;
  1892. void SendEvent(StringHash);
  1893. void SendEvent(StringHash, VariantMap&);
  1894. operator Serializable() const;
  1895. void SetAnimationEnabled(bool);
  1896. void SetAnimationLodBias(float);
  1897. void SetAnimationTime(float);
  1898. bool SetAttribute(const String&, const Variant&);
  1899. bool SetAttribute(uint, const Variant&);
  1900. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1901. void SetAttributeAnimationSpeed(const String&, float);
  1902. void SetAttributeAnimationTime(const String&, float);
  1903. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1904. void SetBasePass(uint);
  1905. void SetBlockEvents(bool);
  1906. void SetCastShadows(bool);
  1907. void SetDrawDistance(float);
  1908. void SetEnabled(bool);
  1909. void SetFaceCameraMode(FaceCameraMode);
  1910. void SetFixedScreenSize(bool);
  1911. void SetGlobalVar(StringHash, const Variant&);
  1912. void SetInstanceDefault(bool);
  1913. void SetInterceptNetworkUpdate(const String&, bool);
  1914. void SetLightMask(uint);
  1915. void SetLodBias(float);
  1916. void SetMaterial(Material);
  1917. void SetMaterialAttr(const ResourceRef&);
  1918. void SetMaxLights(uint);
  1919. void SetMinAngle(float);
  1920. void SetMinMaxZ(float, float);
  1921. void SetNumBillboards(uint);
  1922. void SetObjectAnimation(ObjectAnimation);
  1923. void SetObjectAnimationAttr(const ResourceRef&);
  1924. void SetOccludee(bool);
  1925. void SetOccluder(bool);
  1926. void SetRelative(bool);
  1927. void SetScaled(bool);
  1928. void SetShadowDistance(float);
  1929. void SetShadowMask(uint);
  1930. void SetSortValue(float);
  1931. void SetSorted(bool);
  1932. void SetTemporary(bool);
  1933. void SetViewMask(uint);
  1934. void SetZone(Zone, bool = false);
  1935. void SetZoneMask(uint);
  1936. const String& GetCategory() const;
  1937. const String& GetTypeName() const;
  1938. void UnsubscribeFromAllEvents();
  1939. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1940. void UnsubscribeFromEvent(Object, StringHash);
  1941. void UnsubscribeFromEvent(StringHash);
  1942. void UnsubscribeFromEvents(Object);
  1943. void Update(const FrameInfo&);
  1944. void UpdateBatches(const FrameInfo&);
  1945. void UpdateGeometry(const FrameInfo&);
  1946. const Variant& GetGlobalVar(StringHash) const;
  1947. const VariantMap& GetGlobalVars() const;
  1948. int WeakRefs() const;
  1949. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  1950. void WriteInitialDeltaUpdate(Serializer&, uint8);
  1951. void WriteLatestDataUpdate(Serializer&, uint8);
  1952. operator const Animatable() const;
  1953. operator const Component() const;
  1954. operator const Drawable() const;
  1955. operator const Object() const;
  1956. operator const ParticleEmitter() const;
  1957. operator const RefCounted() const;
  1958. operator const Serializable() const;
  1959. // Properties:
  1960. bool animationEnabled;
  1961. float animationLodBias;
  1962. /* readonly */
  1963. Array<Variant> attributeDefaults;
  1964. /* readonly */
  1965. Array<AttributeInfo> attributeInfos;
  1966. Array<Variant> attributes;
  1967. /* readonly */
  1968. Array<Billboard> billboards;
  1969. /* readonly */
  1970. BoundingBox boundingBox;
  1971. bool castShadows;
  1972. /* readonly */
  1973. String category;
  1974. float drawDistance;
  1975. bool enabled;
  1976. /* readonly */
  1977. bool enabledEffective;
  1978. FaceCameraMode faceCameraMode;
  1979. bool fixedScreenSize;
  1980. Array<Variant> globalVar;
  1981. /* readonly */
  1982. VariantMap globalVars;
  1983. /* readonly */
  1984. uint id;
  1985. /* readonly */
  1986. bool inView;
  1987. uint lightMask;
  1988. float lodBias;
  1989. Material material;
  1990. uint maxLights;
  1991. float minAngle;
  1992. /* readonly */
  1993. Node node;
  1994. /* readonly */
  1995. uint numAttributes;
  1996. uint numBillboards;
  1997. ObjectAnimation objectAnimation;
  1998. bool occludee;
  1999. bool occluder;
  2000. /* readonly */
  2001. int refs;
  2002. bool relative;
  2003. /* readonly */
  2004. bool replicated;
  2005. bool scaled;
  2006. float shadowDistance;
  2007. uint shadowMask;
  2008. bool sorted;
  2009. bool temporary;
  2010. /* readonly */
  2011. StringHash type;
  2012. /* readonly */
  2013. String typeName;
  2014. uint viewMask;
  2015. /* readonly */
  2016. int weakRefs;
  2017. /* readonly */
  2018. BoundingBox worldBoundingBox;
  2019. /* readonly */
  2020. Zone zone;
  2021. uint zoneMask;
  2022. };
  2023. class Bone
  2024. {
  2025. public:
  2026. // Methods:
  2027. Bone& operator=(const Bone&);
  2028. // Properties:
  2029. bool animated;
  2030. BoundingBox boundingBox;
  2031. uint8 collisionMask;
  2032. Vector3 initialPosition;
  2033. Quaternion initialRotation;
  2034. Vector3 initialScale;
  2035. String name;
  2036. StringHash nameHash;
  2037. Node node;
  2038. Matrix3x4 offsetMatrix;
  2039. uint parentIndex;
  2040. float radius;
  2041. };
  2042. class BorderImage
  2043. {
  2044. public:
  2045. BorderImage();
  2046. BorderImage(const String&in);
  2047. // Methods:
  2048. void AddChild(UIElement);
  2049. void AddTag(const String&);
  2050. void AddTags(Array<String>);
  2051. void AddTags(const String&, int8 = ';');
  2052. void AdjustScissor(IntRect&);
  2053. void AllocateNetworkState();
  2054. operator Animatable() const;
  2055. void ApplyAttributes();
  2056. void BringToFront();
  2057. operator Button() const;
  2058. operator CheckBox() const;
  2059. const Color& GetColor(Corner) const;
  2060. const Color& GetColorAttr() const;
  2061. const Color& GetDerivedColor() const;
  2062. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  2063. operator Cursor() const;
  2064. void DisableLayoutUpdate();
  2065. operator DropDownList() const;
  2066. IntVector2 ElementToScreen(const IntVector2&);
  2067. void EnableLayoutUpdate();
  2068. bool FilterAttributes(XMLElement&) const;
  2069. uint FindChild(UIElement) const;
  2070. bool GetAnimationEnabled() const;
  2071. Variant GetAttribute(const String&) const;
  2072. Variant GetAttribute(uint) const;
  2073. ValueAnimation GetAttributeAnimation(const String&) const;
  2074. float GetAttributeAnimationSpeed(const String&) const;
  2075. float GetAttributeAnimationTime(const String&) const;
  2076. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2077. Variant GetAttributeDefault(const String&) const;
  2078. Variant GetAttributeDefault(uint) const;
  2079. BlendMode GetBlendMode() const;
  2080. bool GetBlockEvents() const;
  2081. bool GetBringToBack() const;
  2082. bool GetBringToFront() const;
  2083. UIElement GetChild(const String&, bool = false) const;
  2084. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  2085. UIElement GetChild(uint) const;
  2086. Array<UIElement> GetChildren() const;
  2087. Array<UIElement> GetChildren(bool) const;
  2088. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  2089. bool GetClipChildren() const;
  2090. IntRect GetCombinedScreenRect();
  2091. XMLFile GetDefaultStyle(bool = true) const;
  2092. float GetDerivedOpacity() const;
  2093. uint GetDragButtonCombo() const;
  2094. uint GetDragButtonCount() const;
  2095. uint GetDragDropMode() const;
  2096. IntVector2 GetEffectiveMinSize() const;
  2097. UIElement GetElementEventSender() const;
  2098. bool GetEnableAnchor() const;
  2099. VariantMap& GetEventDataMap() const;
  2100. Object GetEventSender() const;
  2101. FocusMode GetFocusMode() const;
  2102. int GetHeight() const;
  2103. HorizontalAlignment GetHorizontalAlignment() const;
  2104. int GetIndent() const;
  2105. int GetIndentSpacing() const;
  2106. int GetIndentWidth() const;
  2107. bool GetInterceptNetworkUpdate(const String&) const;
  2108. int GetLayoutElementMaxSize() const;
  2109. LayoutMode GetLayoutMode() const;
  2110. int GetLayoutSpacing() const;
  2111. Material GetMaterial() const;
  2112. ResourceRef GetMaterialAttr() const;
  2113. int GetMaxHeight() const;
  2114. int GetMaxWidth() const;
  2115. int GetMinHeight() const;
  2116. int GetMinWidth() const;
  2117. uint GetNumAttributes() const;
  2118. uint GetNumChildren(bool = false) const;
  2119. uint GetNumNetworkAttributes() const;
  2120. ObjectAnimation GetObjectAnimation() const;
  2121. ResourceRef GetObjectAnimationAttr() const;
  2122. float GetOpacity() const;
  2123. UIElement GetParent() const;
  2124. int GetPriority() const;
  2125. UIElement GetRoot() const;
  2126. bool GetSortChildren() const;
  2127. Object GetSubsystem(StringHash) const;
  2128. Array<String> GetTags() const;
  2129. Texture GetTexture() const;
  2130. ResourceRef GetTextureAttr() const;
  2131. TraversalMode GetTraversalMode() const;
  2132. StringHash GetType() const;
  2133. bool GetUseDerivedOpacity() const;
  2134. VerticalAlignment GetVerticalAlignment() const;
  2135. int GetWidth() const;
  2136. bool HasColorGradient() const;
  2137. bool HasEventHandlers() const;
  2138. bool HasFocus() const;
  2139. bool HasSubscribedToEvent(Object, StringHash) const;
  2140. bool HasSubscribedToEvent(StringHash) const;
  2141. bool HasTag(const String&) const;
  2142. void InsertChild(uint, UIElement);
  2143. const IntRect& GetBorder() const;
  2144. const IntRect& GetClipBorder() const;
  2145. const IntRect& GetImageBorder() const;
  2146. const IntRect& GetImageRect() const;
  2147. const IntRect& GetLayoutBorder() const;
  2148. const IntVector2& GetChildOffset() const;
  2149. const IntVector2& GetDisabledOffset() const;
  2150. const IntVector2& GetHoverOffset() const;
  2151. const IntVector2& GetMaxOffset() const;
  2152. const IntVector2& GetMaxSize() const;
  2153. const IntVector2& GetMinOffset() const;
  2154. const IntVector2& GetMinSize() const;
  2155. const IntVector2& GetPosition() const;
  2156. const IntVector2& GetScreenPosition() const;
  2157. const IntVector2& GetSize() const;
  2158. bool IsChildOf(UIElement) const;
  2159. bool IsEditable() const;
  2160. bool IsElementEventSender() const;
  2161. bool IsEnabled() const;
  2162. bool IsEnabledSelf() const;
  2163. bool IsFixedHeight() const;
  2164. bool IsFixedSize() const;
  2165. bool IsFixedWidth() const;
  2166. bool IsHovering() const;
  2167. bool IsInside(IntVector2, bool);
  2168. bool IsInsideCombined(IntVector2, bool);
  2169. bool IsInstanceOf(StringHash) const;
  2170. bool IsInternal() const;
  2171. bool IsSelected() const;
  2172. bool IsTemporary() const;
  2173. bool IsTiled() const;
  2174. bool IsVisible() const;
  2175. bool IsVisibleEffective() const;
  2176. bool IsWheelHandler() const;
  2177. bool IsWithinScissor(const IntRect&);
  2178. operator LineEdit() const;
  2179. bool Load(Deserializer&);
  2180. UIElement LoadChildXML(XMLFile, XMLFile);
  2181. UIElement LoadChildXML(const XMLElement&, XMLFile);
  2182. bool LoadJSON(const JSONValue&);
  2183. bool LoadXML(Deserializer&);
  2184. bool LoadXML(File);
  2185. bool LoadXML(VectorBuffer&);
  2186. bool LoadXML(XMLFile, XMLFile);
  2187. bool LoadXML(const XMLElement&);
  2188. bool LoadXML(const XMLElement&, XMLFile);
  2189. void MarkNetworkUpdate();
  2190. operator Menu() const;
  2191. operator Object() const;
  2192. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2193. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  2194. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2195. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2196. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2197. bool OnDragDropFinish(UIElement);
  2198. bool OnDragDropTest(UIElement);
  2199. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2200. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2201. void OnEvent(Object, StringHash, VariantMap&);
  2202. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  2203. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2204. void OnIndentSet();
  2205. void OnKey(uint, uint, uint);
  2206. void OnPositionSet(const IntVector2&);
  2207. void OnResize(const IntVector2&, const IntVector2&);
  2208. void OnSetAttribute(const AttributeInfo&, const Variant&);
  2209. void OnSetEditable();
  2210. void OnTextInput(const String&);
  2211. void OnWheel(int, uint, uint);
  2212. operator ProgressBar() const;
  2213. bool ReadDeltaUpdate(Deserializer&);
  2214. bool ReadLatestDataUpdate(Deserializer&);
  2215. operator RefCounted() const;
  2216. int Refs() const;
  2217. void Remove();
  2218. void RemoveAllChildren();
  2219. void RemoveAllTags();
  2220. void RemoveAttributeAnimation(const String&);
  2221. void RemoveChild(UIElement, uint = 0);
  2222. void RemoveChild(uint);
  2223. void RemoveChildAtIndex(uint);
  2224. void RemoveInstanceDefault();
  2225. void RemoveObjectAnimation();
  2226. bool RemoveTag(const String&);
  2227. void ResetDeepEnabled();
  2228. void ResetToDefault();
  2229. bool Save(Serializer&) const;
  2230. bool SaveDefaultAttributes() const;
  2231. bool SaveJSON(JSONValue&) const;
  2232. bool SaveXML(File, const String& indentation = "\t");
  2233. bool SaveXML(Serializer&, const String& = "\t") const;
  2234. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  2235. bool SaveXML(XMLElement&) const;
  2236. IntVector2 ScreenToElement(const IntVector2&);
  2237. operator ScrollBar() const;
  2238. void SendEvent(StringHash);
  2239. void SendEvent(StringHash, VariantMap&);
  2240. operator Serializable() const;
  2241. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  2242. void SetAnimationEnabled(bool);
  2243. void SetAnimationTime(float);
  2244. bool SetAttribute(const String&, const Variant&);
  2245. bool SetAttribute(uint, const Variant&);
  2246. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2247. void SetAttributeAnimationSpeed(const String&, float);
  2248. void SetAttributeAnimationTime(const String&, float);
  2249. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2250. void SetBlendMode(BlendMode);
  2251. void SetBlockEvents(bool);
  2252. void SetBorder(const IntRect&);
  2253. void SetBringToBack(bool);
  2254. void SetBringToFront(bool);
  2255. void SetChildOffset(const IntVector2&);
  2256. void SetClipBorder(const IntRect&);
  2257. void SetClipChildren(bool);
  2258. void SetColor(Corner, const Color&);
  2259. void SetColor(const Color&);
  2260. void SetDeepEnabled(bool);
  2261. void SetDefaultStyle(XMLFile);
  2262. void SetDisabledOffset(const IntVector2&);
  2263. void SetDisabledOffset(int, int);
  2264. void SetDragDropMode(uint);
  2265. void SetEditable(bool);
  2266. void SetElementEventSender(bool);
  2267. void SetEnableAnchor(bool);
  2268. void SetEnabled(bool);
  2269. void SetEnabledRecursive(bool);
  2270. void SetFixedHeight(int);
  2271. void SetFixedSize(const IntVector2&);
  2272. void SetFixedSize(int, int);
  2273. void SetFixedWidth(int);
  2274. void SetFocus(bool);
  2275. void SetFocusMode(FocusMode);
  2276. void SetFullImageRect();
  2277. void SetGlobalVar(StringHash, const Variant&);
  2278. void SetHeight(int);
  2279. void SetHorizontalAlignment(HorizontalAlignment);
  2280. void SetHoverOffset(const IntVector2&);
  2281. void SetHoverOffset(int, int);
  2282. void SetHovering(bool);
  2283. void SetImageBorder(const IntRect&);
  2284. void SetImageRect(const IntRect&);
  2285. void SetIndent(int);
  2286. void SetIndentSpacing(int);
  2287. void SetInstanceDefault(bool);
  2288. void SetInterceptNetworkUpdate(const String&, bool);
  2289. void SetInternal(bool);
  2290. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  2291. void SetLayoutBorder(const IntRect&);
  2292. void SetLayoutFlexScale(const Vector2&);
  2293. void SetLayoutMode(LayoutMode);
  2294. void SetLayoutSpacing(int);
  2295. void SetMaterial(Material);
  2296. void SetMaterialAttr(const ResourceRef&);
  2297. void SetMaxAnchor(const Vector2&);
  2298. void SetMaxAnchor(float, float);
  2299. void SetMaxHeight(int);
  2300. void SetMaxOffset(const IntVector2&);
  2301. void SetMaxSize(const IntVector2&);
  2302. void SetMaxSize(int, int);
  2303. void SetMaxWidth(int);
  2304. void SetMinAnchor(const Vector2&);
  2305. void SetMinAnchor(float, float);
  2306. void SetMinHeight(int);
  2307. void SetMinOffset(const IntVector2&);
  2308. void SetMinSize(const IntVector2&);
  2309. void SetMinSize(int, int);
  2310. void SetMinWidth(int);
  2311. void SetName(const String&);
  2312. void SetObjectAnimation(ObjectAnimation);
  2313. void SetObjectAnimationAttr(const ResourceRef&);
  2314. void SetOpacity(float);
  2315. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  2316. void SetPivot(const Vector2&);
  2317. void SetPivot(float, float);
  2318. void SetPosition(const IntVector2&);
  2319. void SetPosition(int, int);
  2320. void SetPriority(int);
  2321. void SetRenderTexture(Texture2D);
  2322. void SetSelected(bool);
  2323. void SetSize(const IntVector2&);
  2324. void SetSize(int, int);
  2325. void SetSortChildren(bool);
  2326. bool SetStyle(const String&, XMLFile = null);
  2327. bool SetStyle(const XMLElement&);
  2328. bool SetStyleAuto(XMLFile = null);
  2329. void SetTags(Array<String>);
  2330. void SetTemporary(bool);
  2331. void SetTexture(Texture);
  2332. void SetTextureAttr(const ResourceRef&);
  2333. void SetTiled(bool);
  2334. void SetTraversalMode(TraversalMode);
  2335. void SetUseDerivedOpacity(bool);
  2336. void SetVar(StringHash, const Variant&);
  2337. void SetVerticalAlignment(VerticalAlignment);
  2338. void SetVisible(bool);
  2339. void SetWidth(int);
  2340. operator Slider() const;
  2341. void SortChildren();
  2342. const String& GetAppliedStyle() const;
  2343. const String& GetCategory() const;
  2344. const String& GetName() const;
  2345. const String& GetTypeName() const;
  2346. operator UIElement() const;
  2347. void UnsubscribeFromAllEvents();
  2348. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  2349. void UnsubscribeFromEvent(Object, StringHash);
  2350. void UnsubscribeFromEvent(StringHash);
  2351. void UnsubscribeFromEvents(Object);
  2352. void Update(float);
  2353. void UpdateLayout();
  2354. const Variant& GetGlobalVar(StringHash) const;
  2355. const Variant& GetVar(const StringHash&) const;
  2356. const VariantMap& GetGlobalVars() const;
  2357. const VariantMap& GetVars() const;
  2358. const Vector2& GetLayoutFlexScale() const;
  2359. const Vector2& GetMaxAnchor() const;
  2360. const Vector2& GetMinAnchor() const;
  2361. const Vector2& GetPivot() const;
  2362. operator View3D() const;
  2363. int WeakRefs() const;
  2364. operator Window() const;
  2365. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  2366. void WriteInitialDeltaUpdate(Serializer&, uint8);
  2367. void WriteLatestDataUpdate(Serializer&, uint8);
  2368. operator const Animatable() const;
  2369. operator const Button() const;
  2370. operator const CheckBox() const;
  2371. operator const Cursor() const;
  2372. operator const DropDownList() const;
  2373. operator const LineEdit() const;
  2374. operator const Menu() const;
  2375. operator const Object() const;
  2376. operator const ProgressBar() const;
  2377. operator const RefCounted() const;
  2378. operator const ScrollBar() const;
  2379. operator const Serializable() const;
  2380. operator const Slider() const;
  2381. operator const UIElement() const;
  2382. operator const View3D() const;
  2383. operator const Window() const;
  2384. // Properties:
  2385. bool animationEnabled;
  2386. /* readonly */
  2387. Array<Variant> attributeDefaults;
  2388. /* readonly */
  2389. Array<AttributeInfo> attributeInfos;
  2390. Array<Variant> attributes;
  2391. BlendMode blendMode;
  2392. IntRect border;
  2393. bool bringToBack;
  2394. bool bringToFront;
  2395. /* readonly */
  2396. String category;
  2397. /* readonly */
  2398. IntVector2 childOffset;
  2399. /* readonly */
  2400. Array<UIElement> children;
  2401. IntRect clipBorder;
  2402. bool clipChildren;
  2403. /* writeonly */
  2404. Color color;
  2405. /* readonly */
  2406. bool colorGradient;
  2407. Array<Color> colors;
  2408. /* readonly */
  2409. IntRect combinedScreenRect;
  2410. XMLFile defaultStyle;
  2411. /* readonly */
  2412. float derivedOpacity;
  2413. IntVector2 disabledOffset;
  2414. /* readonly */
  2415. uint dragButtonCombo;
  2416. /* readonly */
  2417. uint dragButtonCount;
  2418. uint dragDropMode;
  2419. bool editable;
  2420. bool elementEventSender;
  2421. bool enableAnchor;
  2422. bool enabled;
  2423. /* readonly */
  2424. bool enabledSelf;
  2425. /* readonly */
  2426. bool fixedHeight;
  2427. /* readonly */
  2428. bool fixedSize;
  2429. /* readonly */
  2430. bool fixedWidth;
  2431. bool focus;
  2432. FocusMode focusMode;
  2433. Array<Variant> globalVar;
  2434. /* readonly */
  2435. VariantMap globalVars;
  2436. int height;
  2437. HorizontalAlignment horizontalAlignment;
  2438. IntVector2 hoverOffset;
  2439. /* readonly */
  2440. bool hovering;
  2441. IntRect imageBorder;
  2442. IntRect imageRect;
  2443. int indent;
  2444. int indentSpacing;
  2445. /* readonly */
  2446. int indentWidth;
  2447. bool internal;
  2448. IntRect layoutBorder;
  2449. Vector2 layoutFlexScale;
  2450. LayoutMode layoutMode;
  2451. int layoutSpacing;
  2452. Material material;
  2453. Vector2 maxAnchor;
  2454. int maxHeight;
  2455. IntVector2 maxOffset;
  2456. IntVector2 maxSize;
  2457. int maxWidth;
  2458. Vector2 minAnchor;
  2459. int minHeight;
  2460. IntVector2 minOffset;
  2461. IntVector2 minSize;
  2462. int minWidth;
  2463. String name;
  2464. /* readonly */
  2465. uint numAllChildren;
  2466. /* readonly */
  2467. uint numAttributes;
  2468. /* readonly */
  2469. uint numChildren;
  2470. ObjectAnimation objectAnimation;
  2471. float opacity;
  2472. UIElement parent;
  2473. Vector2 pivot;
  2474. IntVector2 position;
  2475. int priority;
  2476. /* readonly */
  2477. int refs;
  2478. /* readonly */
  2479. UIElement root;
  2480. /* readonly */
  2481. IntVector2 screenPosition;
  2482. bool selected;
  2483. IntVector2 size;
  2484. bool sortChildren;
  2485. String style;
  2486. /* readonly */
  2487. Array<String> tags;
  2488. bool temporary;
  2489. Texture texture;
  2490. bool tiled;
  2491. TraversalMode traversalMode;
  2492. /* readonly */
  2493. StringHash type;
  2494. /* readonly */
  2495. String typeName;
  2496. bool useDerivedOpacity;
  2497. /* readonly */
  2498. VariantMap vars;
  2499. VerticalAlignment verticalAlignment;
  2500. bool visible;
  2501. /* readonly */
  2502. bool visibleEffective;
  2503. /* readonly */
  2504. int weakRefs;
  2505. int width;
  2506. };
  2507. class BoundingBox
  2508. {
  2509. public:
  2510. BoundingBox();
  2511. BoundingBox(const BoundingBox&in);
  2512. BoundingBox(const Rect&in);
  2513. BoundingBox(const Vector3&in, const Vector3&in);
  2514. BoundingBox(float, float);
  2515. BoundingBox(const Frustum&in);
  2516. BoundingBox(const Polyhedron&in);
  2517. BoundingBox(const Sphere&in);
  2518. // Methods:
  2519. BoundingBox& operator=(const BoundingBox&);
  2520. BoundingBox& operator=(const Rect&);
  2521. bool operator==(const BoundingBox&) const;
  2522. Vector3 Center() const;
  2523. void Clear();
  2524. void Clip(const BoundingBox&);
  2525. void Define(const BoundingBox&);
  2526. void Define(const Frustum&);
  2527. void Define(const Polyhedron&);
  2528. void Define(const Rect&);
  2529. void Define(const Sphere&);
  2530. void Define(const Vector3&);
  2531. void Define(const Vector3&, const Vector3&);
  2532. void Define(float, float);
  2533. bool Defined() const;
  2534. float DistanceToPoint(const Vector3&) const;
  2535. Vector3 HalfSize() const;
  2536. Intersection IsInside(const BoundingBox&) const;
  2537. Intersection IsInside(const Sphere&) const;
  2538. Intersection IsInside(const Vector3&) const;
  2539. Intersection IsInsideFast(const BoundingBox&) const;
  2540. Intersection IsInsideFast(const Sphere&) const;
  2541. void Merge(const BoundingBox&);
  2542. void Merge(const Frustum&);
  2543. void Merge(const Polyhedron&);
  2544. void Merge(const Sphere&);
  2545. void Merge(const Vector3&);
  2546. Rect Projected(const Matrix4&) const;
  2547. Vector3 Size() const;
  2548. String ToString() const;
  2549. void Transform(const Matrix3&);
  2550. void Transform(const Matrix3x4&);
  2551. BoundingBox Transformed(const Matrix3&) const;
  2552. BoundingBox Transformed(const Matrix3x4&) const;
  2553. // Properties:
  2554. /* readonly */
  2555. Vector3 center;
  2556. float dummyMax;
  2557. float dummyMin;
  2558. /* readonly */
  2559. Vector3 halfSize;
  2560. Vector3 max;
  2561. Vector3 min;
  2562. /* readonly */
  2563. Vector3 size;
  2564. };
  2565. class BufferedSoundStream
  2566. {
  2567. public:
  2568. BufferedSoundStream();
  2569. // Methods:
  2570. void Clear();
  2571. float GetBufferLength() const;
  2572. uint GetBufferNumBytes() const;
  2573. float GetFrequency() const;
  2574. uint GetIntFrequency() const;
  2575. uint GetSampleSize() const;
  2576. bool GetStopAtEnd() const;
  2577. bool IsSixteenBit() const;
  2578. bool IsStereo() const;
  2579. operator RefCounted() const;
  2580. int Refs() const;
  2581. bool Seek(uint);
  2582. void SetFormat(uint, bool, bool);
  2583. void SetStopAtEnd(bool);
  2584. operator SoundStream() const;
  2585. int WeakRefs() const;
  2586. operator const RefCounted() const;
  2587. operator const SoundStream() const;
  2588. // Properties:
  2589. /* readonly */
  2590. int refs;
  2591. /* readonly */
  2592. int weakRefs;
  2593. };
  2594. class Button
  2595. {
  2596. public:
  2597. Button();
  2598. Button(const String&in);
  2599. // Methods:
  2600. void AddChild(UIElement);
  2601. void AddTag(const String&);
  2602. void AddTags(Array<String>);
  2603. void AddTags(const String&, int8 = ';');
  2604. void AdjustScissor(IntRect&);
  2605. void AllocateNetworkState();
  2606. operator Animatable() const;
  2607. void ApplyAttributes();
  2608. operator BorderImage() const;
  2609. void BringToFront();
  2610. const Color& GetColor(Corner) const;
  2611. const Color& GetColorAttr() const;
  2612. const Color& GetDerivedColor() const;
  2613. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  2614. void DisableLayoutUpdate();
  2615. operator DropDownList() const;
  2616. IntVector2 ElementToScreen(const IntVector2&);
  2617. void EnableLayoutUpdate();
  2618. bool FilterAttributes(XMLElement&) const;
  2619. uint FindChild(UIElement) const;
  2620. bool GetAnimationEnabled() const;
  2621. Variant GetAttribute(const String&) const;
  2622. Variant GetAttribute(uint) const;
  2623. ValueAnimation GetAttributeAnimation(const String&) const;
  2624. float GetAttributeAnimationSpeed(const String&) const;
  2625. float GetAttributeAnimationTime(const String&) const;
  2626. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2627. Variant GetAttributeDefault(const String&) const;
  2628. Variant GetAttributeDefault(uint) const;
  2629. BlendMode GetBlendMode() const;
  2630. bool GetBlockEvents() const;
  2631. bool GetBringToBack() const;
  2632. bool GetBringToFront() const;
  2633. UIElement GetChild(const String&, bool = false) const;
  2634. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  2635. UIElement GetChild(uint) const;
  2636. Array<UIElement> GetChildren() const;
  2637. Array<UIElement> GetChildren(bool) const;
  2638. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  2639. bool GetClipChildren() const;
  2640. IntRect GetCombinedScreenRect();
  2641. XMLFile GetDefaultStyle(bool = true) const;
  2642. float GetDerivedOpacity() const;
  2643. uint GetDragButtonCombo() const;
  2644. uint GetDragButtonCount() const;
  2645. uint GetDragDropMode() const;
  2646. IntVector2 GetEffectiveMinSize() const;
  2647. UIElement GetElementEventSender() const;
  2648. bool GetEnableAnchor() const;
  2649. VariantMap& GetEventDataMap() const;
  2650. Object GetEventSender() const;
  2651. FocusMode GetFocusMode() const;
  2652. int GetHeight() const;
  2653. HorizontalAlignment GetHorizontalAlignment() const;
  2654. int GetIndent() const;
  2655. int GetIndentSpacing() const;
  2656. int GetIndentWidth() const;
  2657. bool GetInterceptNetworkUpdate(const String&) const;
  2658. int GetLayoutElementMaxSize() const;
  2659. LayoutMode GetLayoutMode() const;
  2660. int GetLayoutSpacing() const;
  2661. Material GetMaterial() const;
  2662. ResourceRef GetMaterialAttr() const;
  2663. int GetMaxHeight() const;
  2664. int GetMaxWidth() const;
  2665. int GetMinHeight() const;
  2666. int GetMinWidth() const;
  2667. uint GetNumAttributes() const;
  2668. uint GetNumChildren(bool = false) const;
  2669. uint GetNumNetworkAttributes() const;
  2670. ObjectAnimation GetObjectAnimation() const;
  2671. ResourceRef GetObjectAnimationAttr() const;
  2672. float GetOpacity() const;
  2673. UIElement GetParent() const;
  2674. int GetPriority() const;
  2675. float GetRepeatDelay() const;
  2676. float GetRepeatRate() const;
  2677. UIElement GetRoot() const;
  2678. bool GetSortChildren() const;
  2679. Object GetSubsystem(StringHash) const;
  2680. Array<String> GetTags() const;
  2681. Texture GetTexture() const;
  2682. ResourceRef GetTextureAttr() const;
  2683. TraversalMode GetTraversalMode() const;
  2684. StringHash GetType() const;
  2685. bool GetUseDerivedOpacity() const;
  2686. VerticalAlignment GetVerticalAlignment() const;
  2687. int GetWidth() const;
  2688. bool HasColorGradient() const;
  2689. bool HasEventHandlers() const;
  2690. bool HasFocus() const;
  2691. bool HasSubscribedToEvent(Object, StringHash) const;
  2692. bool HasSubscribedToEvent(StringHash) const;
  2693. bool HasTag(const String&) const;
  2694. void InsertChild(uint, UIElement);
  2695. const IntRect& GetBorder() const;
  2696. const IntRect& GetClipBorder() const;
  2697. const IntRect& GetImageBorder() const;
  2698. const IntRect& GetImageRect() const;
  2699. const IntRect& GetLayoutBorder() const;
  2700. const IntVector2& GetChildOffset() const;
  2701. const IntVector2& GetDisabledOffset() const;
  2702. const IntVector2& GetHoverOffset() const;
  2703. const IntVector2& GetMaxOffset() const;
  2704. const IntVector2& GetMaxSize() const;
  2705. const IntVector2& GetMinOffset() const;
  2706. const IntVector2& GetMinSize() const;
  2707. const IntVector2& GetPosition() const;
  2708. const IntVector2& GetPressedChildOffset() const;
  2709. const IntVector2& GetPressedOffset() const;
  2710. const IntVector2& GetScreenPosition() const;
  2711. const IntVector2& GetSize() const;
  2712. bool IsChildOf(UIElement) const;
  2713. bool IsEditable() const;
  2714. bool IsElementEventSender() const;
  2715. bool IsEnabled() const;
  2716. bool IsEnabledSelf() const;
  2717. bool IsFixedHeight() const;
  2718. bool IsFixedSize() const;
  2719. bool IsFixedWidth() const;
  2720. bool IsHovering() const;
  2721. bool IsInside(IntVector2, bool);
  2722. bool IsInsideCombined(IntVector2, bool);
  2723. bool IsInstanceOf(StringHash) const;
  2724. bool IsInternal() const;
  2725. bool IsPressed() const;
  2726. bool IsSelected() const;
  2727. bool IsTemporary() const;
  2728. bool IsTiled() const;
  2729. bool IsVisible() const;
  2730. bool IsVisibleEffective() const;
  2731. bool IsWheelHandler() const;
  2732. bool IsWithinScissor(const IntRect&);
  2733. bool Load(Deserializer&);
  2734. UIElement LoadChildXML(XMLFile, XMLFile);
  2735. UIElement LoadChildXML(const XMLElement&, XMLFile);
  2736. bool LoadJSON(const JSONValue&);
  2737. bool LoadXML(Deserializer&);
  2738. bool LoadXML(File);
  2739. bool LoadXML(VectorBuffer&);
  2740. bool LoadXML(XMLFile, XMLFile);
  2741. bool LoadXML(const XMLElement&);
  2742. bool LoadXML(const XMLElement&, XMLFile);
  2743. void MarkNetworkUpdate();
  2744. operator Menu() const;
  2745. operator Object() const;
  2746. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2747. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  2748. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2749. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2750. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2751. bool OnDragDropFinish(UIElement);
  2752. bool OnDragDropTest(UIElement);
  2753. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2754. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2755. void OnEvent(Object, StringHash, VariantMap&);
  2756. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  2757. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2758. void OnIndentSet();
  2759. void OnKey(uint, uint, uint);
  2760. void OnPositionSet(const IntVector2&);
  2761. void OnResize(const IntVector2&, const IntVector2&);
  2762. void OnSetAttribute(const AttributeInfo&, const Variant&);
  2763. void OnSetEditable();
  2764. void OnTextInput(const String&);
  2765. void OnWheel(int, uint, uint);
  2766. bool ReadDeltaUpdate(Deserializer&);
  2767. bool ReadLatestDataUpdate(Deserializer&);
  2768. operator RefCounted() const;
  2769. int Refs() const;
  2770. void Remove();
  2771. void RemoveAllChildren();
  2772. void RemoveAllTags();
  2773. void RemoveAttributeAnimation(const String&);
  2774. void RemoveChild(UIElement, uint = 0);
  2775. void RemoveChild(uint);
  2776. void RemoveChildAtIndex(uint);
  2777. void RemoveInstanceDefault();
  2778. void RemoveObjectAnimation();
  2779. bool RemoveTag(const String&);
  2780. void ResetDeepEnabled();
  2781. void ResetToDefault();
  2782. bool Save(Serializer&) const;
  2783. bool SaveDefaultAttributes() const;
  2784. bool SaveJSON(JSONValue&) const;
  2785. bool SaveXML(File, const String& indentation = "\t");
  2786. bool SaveXML(Serializer&, const String& = "\t") const;
  2787. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  2788. bool SaveXML(XMLElement&) const;
  2789. IntVector2 ScreenToElement(const IntVector2&);
  2790. void SendEvent(StringHash);
  2791. void SendEvent(StringHash, VariantMap&);
  2792. operator Serializable() const;
  2793. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  2794. void SetAnimationEnabled(bool);
  2795. void SetAnimationTime(float);
  2796. bool SetAttribute(const String&, const Variant&);
  2797. bool SetAttribute(uint, const Variant&);
  2798. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2799. void SetAttributeAnimationSpeed(const String&, float);
  2800. void SetAttributeAnimationTime(const String&, float);
  2801. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2802. void SetBlendMode(BlendMode);
  2803. void SetBlockEvents(bool);
  2804. void SetBorder(const IntRect&);
  2805. void SetBringToBack(bool);
  2806. void SetBringToFront(bool);
  2807. void SetChildOffset(const IntVector2&);
  2808. void SetClipBorder(const IntRect&);
  2809. void SetClipChildren(bool);
  2810. void SetColor(Corner, const Color&);
  2811. void SetColor(const Color&);
  2812. void SetDeepEnabled(bool);
  2813. void SetDefaultStyle(XMLFile);
  2814. void SetDisabledOffset(const IntVector2&);
  2815. void SetDisabledOffset(int, int);
  2816. void SetDragDropMode(uint);
  2817. void SetEditable(bool);
  2818. void SetElementEventSender(bool);
  2819. void SetEnableAnchor(bool);
  2820. void SetEnabled(bool);
  2821. void SetEnabledRecursive(bool);
  2822. void SetFixedHeight(int);
  2823. void SetFixedSize(const IntVector2&);
  2824. void SetFixedSize(int, int);
  2825. void SetFixedWidth(int);
  2826. void SetFocus(bool);
  2827. void SetFocusMode(FocusMode);
  2828. void SetFullImageRect();
  2829. void SetGlobalVar(StringHash, const Variant&);
  2830. void SetHeight(int);
  2831. void SetHorizontalAlignment(HorizontalAlignment);
  2832. void SetHoverOffset(const IntVector2&);
  2833. void SetHoverOffset(int, int);
  2834. void SetHovering(bool);
  2835. void SetImageBorder(const IntRect&);
  2836. void SetImageRect(const IntRect&);
  2837. void SetIndent(int);
  2838. void SetIndentSpacing(int);
  2839. void SetInstanceDefault(bool);
  2840. void SetInterceptNetworkUpdate(const String&, bool);
  2841. void SetInternal(bool);
  2842. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  2843. void SetLayoutBorder(const IntRect&);
  2844. void SetLayoutFlexScale(const Vector2&);
  2845. void SetLayoutMode(LayoutMode);
  2846. void SetLayoutSpacing(int);
  2847. void SetMaterial(Material);
  2848. void SetMaterialAttr(const ResourceRef&);
  2849. void SetMaxAnchor(const Vector2&);
  2850. void SetMaxAnchor(float, float);
  2851. void SetMaxHeight(int);
  2852. void SetMaxOffset(const IntVector2&);
  2853. void SetMaxSize(const IntVector2&);
  2854. void SetMaxSize(int, int);
  2855. void SetMaxWidth(int);
  2856. void SetMinAnchor(const Vector2&);
  2857. void SetMinAnchor(float, float);
  2858. void SetMinHeight(int);
  2859. void SetMinOffset(const IntVector2&);
  2860. void SetMinSize(const IntVector2&);
  2861. void SetMinSize(int, int);
  2862. void SetMinWidth(int);
  2863. void SetName(const String&);
  2864. void SetObjectAnimation(ObjectAnimation);
  2865. void SetObjectAnimationAttr(const ResourceRef&);
  2866. void SetOpacity(float);
  2867. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  2868. void SetPivot(const Vector2&);
  2869. void SetPivot(float, float);
  2870. void SetPosition(const IntVector2&);
  2871. void SetPosition(int, int);
  2872. void SetPressedChildOffset(const IntVector2&);
  2873. void SetPressedChildOffset(int, int);
  2874. void SetPressedOffset(const IntVector2&);
  2875. void SetPressedOffset(int, int);
  2876. void SetPriority(int);
  2877. void SetRenderTexture(Texture2D);
  2878. void SetRepeat(float, float);
  2879. void SetRepeatDelay(float);
  2880. void SetRepeatRate(float);
  2881. void SetSelected(bool);
  2882. void SetSize(const IntVector2&);
  2883. void SetSize(int, int);
  2884. void SetSortChildren(bool);
  2885. bool SetStyle(const String&, XMLFile = null);
  2886. bool SetStyle(const XMLElement&);
  2887. bool SetStyleAuto(XMLFile = null);
  2888. void SetTags(Array<String>);
  2889. void SetTemporary(bool);
  2890. void SetTexture(Texture);
  2891. void SetTextureAttr(const ResourceRef&);
  2892. void SetTiled(bool);
  2893. void SetTraversalMode(TraversalMode);
  2894. void SetUseDerivedOpacity(bool);
  2895. void SetVar(StringHash, const Variant&);
  2896. void SetVerticalAlignment(VerticalAlignment);
  2897. void SetVisible(bool);
  2898. void SetWidth(int);
  2899. void SortChildren();
  2900. const String& GetAppliedStyle() const;
  2901. const String& GetCategory() const;
  2902. const String& GetName() const;
  2903. const String& GetTypeName() const;
  2904. operator UIElement() const;
  2905. void UnsubscribeFromAllEvents();
  2906. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  2907. void UnsubscribeFromEvent(Object, StringHash);
  2908. void UnsubscribeFromEvent(StringHash);
  2909. void UnsubscribeFromEvents(Object);
  2910. void Update(float);
  2911. void UpdateLayout();
  2912. const Variant& GetGlobalVar(StringHash) const;
  2913. const Variant& GetVar(const StringHash&) const;
  2914. const VariantMap& GetGlobalVars() const;
  2915. const VariantMap& GetVars() const;
  2916. const Vector2& GetLayoutFlexScale() const;
  2917. const Vector2& GetMaxAnchor() const;
  2918. const Vector2& GetMinAnchor() const;
  2919. const Vector2& GetPivot() const;
  2920. int WeakRefs() const;
  2921. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  2922. void WriteInitialDeltaUpdate(Serializer&, uint8);
  2923. void WriteLatestDataUpdate(Serializer&, uint8);
  2924. operator const Animatable() const;
  2925. operator const BorderImage() const;
  2926. operator const DropDownList() const;
  2927. operator const Menu() const;
  2928. operator const Object() const;
  2929. operator const RefCounted() const;
  2930. operator const Serializable() const;
  2931. operator const UIElement() const;
  2932. // Properties:
  2933. bool animationEnabled;
  2934. /* readonly */
  2935. Array<Variant> attributeDefaults;
  2936. /* readonly */
  2937. Array<AttributeInfo> attributeInfos;
  2938. Array<Variant> attributes;
  2939. BlendMode blendMode;
  2940. IntRect border;
  2941. bool bringToBack;
  2942. bool bringToFront;
  2943. /* readonly */
  2944. String category;
  2945. /* readonly */
  2946. IntVector2 childOffset;
  2947. /* readonly */
  2948. Array<UIElement> children;
  2949. IntRect clipBorder;
  2950. bool clipChildren;
  2951. /* writeonly */
  2952. Color color;
  2953. /* readonly */
  2954. bool colorGradient;
  2955. Array<Color> colors;
  2956. /* readonly */
  2957. IntRect combinedScreenRect;
  2958. XMLFile defaultStyle;
  2959. /* readonly */
  2960. float derivedOpacity;
  2961. IntVector2 disabledOffset;
  2962. /* readonly */
  2963. uint dragButtonCombo;
  2964. /* readonly */
  2965. uint dragButtonCount;
  2966. uint dragDropMode;
  2967. bool editable;
  2968. bool elementEventSender;
  2969. bool enableAnchor;
  2970. bool enabled;
  2971. /* readonly */
  2972. bool enabledSelf;
  2973. /* readonly */
  2974. bool fixedHeight;
  2975. /* readonly */
  2976. bool fixedSize;
  2977. /* readonly */
  2978. bool fixedWidth;
  2979. bool focus;
  2980. FocusMode focusMode;
  2981. Array<Variant> globalVar;
  2982. /* readonly */
  2983. VariantMap globalVars;
  2984. int height;
  2985. HorizontalAlignment horizontalAlignment;
  2986. IntVector2 hoverOffset;
  2987. /* readonly */
  2988. bool hovering;
  2989. IntRect imageBorder;
  2990. IntRect imageRect;
  2991. int indent;
  2992. int indentSpacing;
  2993. /* readonly */
  2994. int indentWidth;
  2995. bool internal;
  2996. IntRect layoutBorder;
  2997. Vector2 layoutFlexScale;
  2998. LayoutMode layoutMode;
  2999. int layoutSpacing;
  3000. Material material;
  3001. Vector2 maxAnchor;
  3002. int maxHeight;
  3003. IntVector2 maxOffset;
  3004. IntVector2 maxSize;
  3005. int maxWidth;
  3006. Vector2 minAnchor;
  3007. int minHeight;
  3008. IntVector2 minOffset;
  3009. IntVector2 minSize;
  3010. int minWidth;
  3011. String name;
  3012. /* readonly */
  3013. uint numAllChildren;
  3014. /* readonly */
  3015. uint numAttributes;
  3016. /* readonly */
  3017. uint numChildren;
  3018. ObjectAnimation objectAnimation;
  3019. float opacity;
  3020. UIElement parent;
  3021. Vector2 pivot;
  3022. IntVector2 position;
  3023. /* readonly */
  3024. bool pressed;
  3025. IntVector2 pressedChildOffset;
  3026. IntVector2 pressedOffset;
  3027. int priority;
  3028. /* readonly */
  3029. int refs;
  3030. float repeatDelay;
  3031. float repeatRate;
  3032. /* readonly */
  3033. UIElement root;
  3034. /* readonly */
  3035. IntVector2 screenPosition;
  3036. bool selected;
  3037. IntVector2 size;
  3038. bool sortChildren;
  3039. String style;
  3040. /* readonly */
  3041. Array<String> tags;
  3042. bool temporary;
  3043. Texture texture;
  3044. bool tiled;
  3045. TraversalMode traversalMode;
  3046. /* readonly */
  3047. StringHash type;
  3048. /* readonly */
  3049. String typeName;
  3050. bool useDerivedOpacity;
  3051. /* readonly */
  3052. VariantMap vars;
  3053. VerticalAlignment verticalAlignment;
  3054. bool visible;
  3055. /* readonly */
  3056. bool visibleEffective;
  3057. /* readonly */
  3058. int weakRefs;
  3059. int width;
  3060. };
  3061. class Camera
  3062. {
  3063. public:
  3064. Camera();
  3065. // Methods:
  3066. void AllocateNetworkState();
  3067. operator Animatable() const;
  3068. void ApplyAttributes();
  3069. void CleanupConnection(Connection);
  3070. operator Component() const;
  3071. void DrawDebugGeometry(DebugRenderer, bool);
  3072. const Frustum& GetFrustum() const;
  3073. bool GetAnimationEnabled() const;
  3074. float GetAspectRatio() const;
  3075. Variant GetAttribute(const String&) const;
  3076. Variant GetAttribute(uint) const;
  3077. ValueAnimation GetAttributeAnimation(const String&) const;
  3078. float GetAttributeAnimationSpeed(const String&) const;
  3079. float GetAttributeAnimationTime(const String&) const;
  3080. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3081. Variant GetAttributeDefault(const String&) const;
  3082. Variant GetAttributeDefault(uint) const;
  3083. bool GetAutoAspectRatio() const;
  3084. bool GetBlockEvents() const;
  3085. Vector4 GetClipPlaneAttr() const;
  3086. Component GetComponent(StringHash) const;
  3087. float GetDistance(const Vector3&) const;
  3088. float GetDistanceSquared(const Vector3&) const;
  3089. Matrix3x4 GetEffectiveWorldTransform() const;
  3090. VariantMap& GetEventDataMap() const;
  3091. Object GetEventSender() const;
  3092. Quaternion GetFaceCameraRotation(const Vector3&, const Quaternion&, FaceCameraMode, float = 0.0f);
  3093. float GetFarClip() const;
  3094. FillMode GetFillMode() const;
  3095. bool GetFlipVertical() const;
  3096. float GetFov() const;
  3097. void GetFrustumSize(Vector3&, Vector3&) const;
  3098. Matrix4 GetGPUProjection() const;
  3099. float GetHalfViewSize() const;
  3100. uint GetID() const;
  3101. bool GetInterceptNetworkUpdate(const String&) const;
  3102. float GetLodBias() const;
  3103. float GetLodDistance(float, float, float) const;
  3104. float GetNearClip() const;
  3105. Node GetNode() const;
  3106. uint GetNumAttributes() const;
  3107. uint GetNumNetworkAttributes() const;
  3108. ObjectAnimation GetObjectAnimation() const;
  3109. ResourceRef GetObjectAnimationAttr() const;
  3110. float GetOrthoSize() const;
  3111. Matrix4 GetProjection() const;
  3112. Vector4 GetReflectionPlaneAttr() const;
  3113. bool GetReverseCulling() const;
  3114. Scene GetScene() const;
  3115. Ray GetScreenRay(float, float) const;
  3116. Frustum GetSplitFrustum(float, float) const;
  3117. Object GetSubsystem(StringHash) const;
  3118. StringHash GetType() const;
  3119. bool GetUseClipping() const;
  3120. bool GetUseReflection() const;
  3121. uint GetViewMask() const;
  3122. uint GetViewOverrideFlags() const;
  3123. Frustum GetViewSpaceFrustum() const;
  3124. Frustum GetViewSpaceSplitFrustum(float, float) const;
  3125. float GetZoom() const;
  3126. bool HasEventHandlers() const;
  3127. bool HasSubscribedToEvent(Object, StringHash) const;
  3128. bool HasSubscribedToEvent(StringHash) const;
  3129. bool IsEnabled() const;
  3130. bool IsEnabledEffective() const;
  3131. bool IsInstanceOf(StringHash) const;
  3132. bool IsOrthographic() const;
  3133. bool IsProjectionValid() const;
  3134. bool IsReplicated() const;
  3135. bool IsTemporary() const;
  3136. bool Load(Deserializer&);
  3137. bool LoadJSON(const JSONValue&);
  3138. bool LoadXML(const XMLElement&);
  3139. void MarkNetworkUpdate();
  3140. const Matrix3x4& GetView() const;
  3141. operator Object() const;
  3142. void OnEvent(Object, StringHash, VariantMap&);
  3143. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  3144. void OnSetAttribute(const AttributeInfo&, const Variant&);
  3145. void OnSetEnabled();
  3146. const Plane& GetClipPlane() const;
  3147. const Plane& GetReflectionPlane() const;
  3148. void PrepareNetworkUpdate();
  3149. bool ReadDeltaUpdate(Deserializer&);
  3150. bool ReadLatestDataUpdate(Deserializer&);
  3151. operator RefCounted() const;
  3152. int Refs() const;
  3153. void Remove();
  3154. void RemoveAttributeAnimation(const String&);
  3155. void RemoveInstanceDefault();
  3156. void RemoveObjectAnimation();
  3157. void ResetToDefault();
  3158. bool Save(Serializer&) const;
  3159. bool SaveDefaultAttributes() const;
  3160. bool SaveJSON(JSONValue&) const;
  3161. bool SaveXML(XMLElement&) const;
  3162. Vector3 ScreenToWorldPoint(const Vector3&) const;
  3163. void SendEvent(StringHash);
  3164. void SendEvent(StringHash, VariantMap&);
  3165. operator Serializable() const;
  3166. void SetAnimationEnabled(bool);
  3167. void SetAnimationTime(float);
  3168. void SetAspectRatio(float);
  3169. void SetAspectRatioInternal(float);
  3170. bool SetAttribute(const String&, const Variant&);
  3171. bool SetAttribute(uint, const Variant&);
  3172. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3173. void SetAttributeAnimationSpeed(const String&, float);
  3174. void SetAttributeAnimationTime(const String&, float);
  3175. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3176. void SetAutoAspectRatio(bool);
  3177. void SetBlockEvents(bool);
  3178. void SetClipPlane(const Plane&);
  3179. void SetClipPlaneAttr(const Vector4&);
  3180. void SetEnabled(bool);
  3181. void SetFarClip(float);
  3182. void SetFillMode(FillMode);
  3183. void SetFlipVertical(bool);
  3184. void SetFov(float);
  3185. void SetGlobalVar(StringHash, const Variant&);
  3186. void SetInstanceDefault(bool);
  3187. void SetInterceptNetworkUpdate(const String&, bool);
  3188. void SetLodBias(float);
  3189. void SetNearClip(float);
  3190. void SetObjectAnimation(ObjectAnimation);
  3191. void SetObjectAnimationAttr(const ResourceRef&);
  3192. void SetOrthoSize(const Vector2&);
  3193. void SetOrthoSize(float);
  3194. void SetOrthoSizeAttr(float);
  3195. void SetOrthographic(bool);
  3196. void SetProjection(const Matrix4&);
  3197. void SetProjectionOffset(const Vector2&);
  3198. void SetReflectionPlane(const Plane&);
  3199. void SetReflectionPlaneAttr(const Vector4&);
  3200. void SetTemporary(bool);
  3201. void SetUseClipping(bool);
  3202. void SetUseReflection(bool);
  3203. void SetViewMask(uint);
  3204. void SetViewOverrideFlags(uint);
  3205. void SetZoom(float);
  3206. const String& GetCategory() const;
  3207. const String& GetTypeName() const;
  3208. void UnsubscribeFromAllEvents();
  3209. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  3210. void UnsubscribeFromEvent(Object, StringHash);
  3211. void UnsubscribeFromEvent(StringHash);
  3212. void UnsubscribeFromEvents(Object);
  3213. const Variant& GetGlobalVar(StringHash) const;
  3214. const VariantMap& GetGlobalVars() const;
  3215. const Vector2& GetProjectionOffset() const;
  3216. int WeakRefs() const;
  3217. Vector2 WorldToScreenPoint(const Vector3&) const;
  3218. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  3219. void WriteInitialDeltaUpdate(Serializer&, uint8);
  3220. void WriteLatestDataUpdate(Serializer&, uint8);
  3221. operator const Animatable() const;
  3222. operator const Component() const;
  3223. operator const Object() const;
  3224. operator const RefCounted() const;
  3225. operator const Serializable() const;
  3226. // Properties:
  3227. bool animationEnabled;
  3228. float aspectRatio;
  3229. /* readonly */
  3230. Array<Variant> attributeDefaults;
  3231. /* readonly */
  3232. Array<AttributeInfo> attributeInfos;
  3233. Array<Variant> attributes;
  3234. bool autoAspectRatio;
  3235. /* readonly */
  3236. String category;
  3237. Plane clipPlane;
  3238. /* readonly */
  3239. Matrix3x4 effectiveWorldTransform;
  3240. bool enabled;
  3241. /* readonly */
  3242. bool enabledEffective;
  3243. float farClip;
  3244. FillMode fillMode;
  3245. float fov;
  3246. /* readonly */
  3247. Frustum frustum;
  3248. /* readonly */
  3249. Matrix4 gPUProjection;
  3250. Array<Variant> globalVar;
  3251. /* readonly */
  3252. VariantMap globalVars;
  3253. /* readonly */
  3254. float halfViewSize;
  3255. /* readonly */
  3256. uint id;
  3257. float lodBias;
  3258. float nearClip;
  3259. /* readonly */
  3260. Node node;
  3261. /* readonly */
  3262. uint numAttributes;
  3263. ObjectAnimation objectAnimation;
  3264. float orthoSize;
  3265. bool orthographic;
  3266. Matrix4 projection;
  3267. Vector2 projectionOffset;
  3268. Plane reflectionPlane;
  3269. /* readonly */
  3270. int refs;
  3271. /* readonly */
  3272. bool replicated;
  3273. bool temporary;
  3274. /* readonly */
  3275. StringHash type;
  3276. /* readonly */
  3277. String typeName;
  3278. bool useClipping;
  3279. bool useReflection;
  3280. /* readonly */
  3281. Matrix3x4 view;
  3282. uint viewMask;
  3283. uint viewOverrideFlags;
  3284. /* readonly */
  3285. Frustum viewSpaceFrustum;
  3286. /* readonly */
  3287. int weakRefs;
  3288. float zoom;
  3289. };
  3290. class CascadeParameters
  3291. {
  3292. public:
  3293. CascadeParameters();
  3294. CascadeParameters(float, float, float, float, float, float = 1.0f);
  3295. // Methods:
  3296. CascadeParameters& operator=(const CascadeParameters&);
  3297. float GetShadowRange() const;
  3298. void Validate();
  3299. // Properties:
  3300. float biasAutoAdjust;
  3301. float fadeStart;
  3302. float split1;
  3303. float split2;
  3304. float split3;
  3305. float split4;
  3306. Vector4 splits;
  3307. };
  3308. class CharLocation
  3309. {
  3310. public:
  3311. ~CharLocation();
  3312. CharLocation();
  3313. // Methods:
  3314. CharLocation& operator=(const CharLocation&);
  3315. // Properties:
  3316. Vector2 position;
  3317. Vector2 size;
  3318. };
  3319. class CheckBox
  3320. {
  3321. public:
  3322. CheckBox();
  3323. CheckBox(const String&in);
  3324. // Methods:
  3325. void AddChild(UIElement);
  3326. void AddTag(const String&);
  3327. void AddTags(Array<String>);
  3328. void AddTags(const String&, int8 = ';');
  3329. void AdjustScissor(IntRect&);
  3330. void AllocateNetworkState();
  3331. operator Animatable() const;
  3332. void ApplyAttributes();
  3333. operator BorderImage() const;
  3334. void BringToFront();
  3335. const Color& GetColor(Corner) const;
  3336. const Color& GetColorAttr() const;
  3337. const Color& GetDerivedColor() const;
  3338. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  3339. void DisableLayoutUpdate();
  3340. IntVector2 ElementToScreen(const IntVector2&);
  3341. void EnableLayoutUpdate();
  3342. bool FilterAttributes(XMLElement&) const;
  3343. uint FindChild(UIElement) const;
  3344. bool GetAnimationEnabled() const;
  3345. Variant GetAttribute(const String&) const;
  3346. Variant GetAttribute(uint) const;
  3347. ValueAnimation GetAttributeAnimation(const String&) const;
  3348. float GetAttributeAnimationSpeed(const String&) const;
  3349. float GetAttributeAnimationTime(const String&) const;
  3350. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3351. Variant GetAttributeDefault(const String&) const;
  3352. Variant GetAttributeDefault(uint) const;
  3353. BlendMode GetBlendMode() const;
  3354. bool GetBlockEvents() const;
  3355. bool GetBringToBack() const;
  3356. bool GetBringToFront() const;
  3357. UIElement GetChild(const String&, bool = false) const;
  3358. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  3359. UIElement GetChild(uint) const;
  3360. Array<UIElement> GetChildren() const;
  3361. Array<UIElement> GetChildren(bool) const;
  3362. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3363. bool GetClipChildren() const;
  3364. IntRect GetCombinedScreenRect();
  3365. XMLFile GetDefaultStyle(bool = true) const;
  3366. float GetDerivedOpacity() const;
  3367. uint GetDragButtonCombo() const;
  3368. uint GetDragButtonCount() const;
  3369. uint GetDragDropMode() const;
  3370. IntVector2 GetEffectiveMinSize() const;
  3371. UIElement GetElementEventSender() const;
  3372. bool GetEnableAnchor() const;
  3373. VariantMap& GetEventDataMap() const;
  3374. Object GetEventSender() const;
  3375. FocusMode GetFocusMode() const;
  3376. int GetHeight() const;
  3377. HorizontalAlignment GetHorizontalAlignment() const;
  3378. int GetIndent() const;
  3379. int GetIndentSpacing() const;
  3380. int GetIndentWidth() const;
  3381. bool GetInterceptNetworkUpdate(const String&) const;
  3382. int GetLayoutElementMaxSize() const;
  3383. LayoutMode GetLayoutMode() const;
  3384. int GetLayoutSpacing() const;
  3385. Material GetMaterial() const;
  3386. ResourceRef GetMaterialAttr() const;
  3387. int GetMaxHeight() const;
  3388. int GetMaxWidth() const;
  3389. int GetMinHeight() const;
  3390. int GetMinWidth() const;
  3391. uint GetNumAttributes() const;
  3392. uint GetNumChildren(bool = false) const;
  3393. uint GetNumNetworkAttributes() const;
  3394. ObjectAnimation GetObjectAnimation() const;
  3395. ResourceRef GetObjectAnimationAttr() const;
  3396. float GetOpacity() const;
  3397. UIElement GetParent() const;
  3398. int GetPriority() const;
  3399. UIElement GetRoot() const;
  3400. bool GetSortChildren() const;
  3401. Object GetSubsystem(StringHash) const;
  3402. Array<String> GetTags() const;
  3403. Texture GetTexture() const;
  3404. ResourceRef GetTextureAttr() const;
  3405. TraversalMode GetTraversalMode() const;
  3406. StringHash GetType() const;
  3407. bool GetUseDerivedOpacity() const;
  3408. VerticalAlignment GetVerticalAlignment() const;
  3409. int GetWidth() const;
  3410. bool HasColorGradient() const;
  3411. bool HasEventHandlers() const;
  3412. bool HasFocus() const;
  3413. bool HasSubscribedToEvent(Object, StringHash) const;
  3414. bool HasSubscribedToEvent(StringHash) const;
  3415. bool HasTag(const String&) const;
  3416. void InsertChild(uint, UIElement);
  3417. const IntRect& GetBorder() const;
  3418. const IntRect& GetClipBorder() const;
  3419. const IntRect& GetImageBorder() const;
  3420. const IntRect& GetImageRect() const;
  3421. const IntRect& GetLayoutBorder() const;
  3422. const IntVector2& GetCheckedOffset() const;
  3423. const IntVector2& GetChildOffset() const;
  3424. const IntVector2& GetDisabledOffset() const;
  3425. const IntVector2& GetHoverOffset() const;
  3426. const IntVector2& GetMaxOffset() const;
  3427. const IntVector2& GetMaxSize() const;
  3428. const IntVector2& GetMinOffset() const;
  3429. const IntVector2& GetMinSize() const;
  3430. const IntVector2& GetPosition() const;
  3431. const IntVector2& GetScreenPosition() const;
  3432. const IntVector2& GetSize() const;
  3433. bool IsChecked() const;
  3434. bool IsChildOf(UIElement) const;
  3435. bool IsEditable() const;
  3436. bool IsElementEventSender() const;
  3437. bool IsEnabled() const;
  3438. bool IsEnabledSelf() const;
  3439. bool IsFixedHeight() const;
  3440. bool IsFixedSize() const;
  3441. bool IsFixedWidth() const;
  3442. bool IsHovering() const;
  3443. bool IsInside(IntVector2, bool);
  3444. bool IsInsideCombined(IntVector2, bool);
  3445. bool IsInstanceOf(StringHash) const;
  3446. bool IsInternal() const;
  3447. bool IsSelected() const;
  3448. bool IsTemporary() const;
  3449. bool IsTiled() const;
  3450. bool IsVisible() const;
  3451. bool IsVisibleEffective() const;
  3452. bool IsWheelHandler() const;
  3453. bool IsWithinScissor(const IntRect&);
  3454. bool Load(Deserializer&);
  3455. UIElement LoadChildXML(XMLFile, XMLFile);
  3456. UIElement LoadChildXML(const XMLElement&, XMLFile);
  3457. bool LoadJSON(const JSONValue&);
  3458. bool LoadXML(Deserializer&);
  3459. bool LoadXML(File);
  3460. bool LoadXML(VectorBuffer&);
  3461. bool LoadXML(XMLFile, XMLFile);
  3462. bool LoadXML(const XMLElement&);
  3463. bool LoadXML(const XMLElement&, XMLFile);
  3464. void MarkNetworkUpdate();
  3465. operator Object() const;
  3466. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  3467. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  3468. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  3469. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3470. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3471. bool OnDragDropFinish(UIElement);
  3472. bool OnDragDropTest(UIElement);
  3473. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3474. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3475. void OnEvent(Object, StringHash, VariantMap&);
  3476. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  3477. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3478. void OnIndentSet();
  3479. void OnKey(uint, uint, uint);
  3480. void OnPositionSet(const IntVector2&);
  3481. void OnResize(const IntVector2&, const IntVector2&);
  3482. void OnSetAttribute(const AttributeInfo&, const Variant&);
  3483. void OnSetEditable();
  3484. void OnTextInput(const String&);
  3485. void OnWheel(int, uint, uint);
  3486. bool ReadDeltaUpdate(Deserializer&);
  3487. bool ReadLatestDataUpdate(Deserializer&);
  3488. operator RefCounted() const;
  3489. int Refs() const;
  3490. void Remove();
  3491. void RemoveAllChildren();
  3492. void RemoveAllTags();
  3493. void RemoveAttributeAnimation(const String&);
  3494. void RemoveChild(UIElement, uint = 0);
  3495. void RemoveChild(uint);
  3496. void RemoveChildAtIndex(uint);
  3497. void RemoveInstanceDefault();
  3498. void RemoveObjectAnimation();
  3499. bool RemoveTag(const String&);
  3500. void ResetDeepEnabled();
  3501. void ResetToDefault();
  3502. bool Save(Serializer&) const;
  3503. bool SaveDefaultAttributes() const;
  3504. bool SaveJSON(JSONValue&) const;
  3505. bool SaveXML(File, const String& indentation = "\t");
  3506. bool SaveXML(Serializer&, const String& = "\t") const;
  3507. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  3508. bool SaveXML(XMLElement&) const;
  3509. IntVector2 ScreenToElement(const IntVector2&);
  3510. void SendEvent(StringHash);
  3511. void SendEvent(StringHash, VariantMap&);
  3512. operator Serializable() const;
  3513. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3514. void SetAnimationEnabled(bool);
  3515. void SetAnimationTime(float);
  3516. bool SetAttribute(const String&, const Variant&);
  3517. bool SetAttribute(uint, const Variant&);
  3518. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3519. void SetAttributeAnimationSpeed(const String&, float);
  3520. void SetAttributeAnimationTime(const String&, float);
  3521. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3522. void SetBlendMode(BlendMode);
  3523. void SetBlockEvents(bool);
  3524. void SetBorder(const IntRect&);
  3525. void SetBringToBack(bool);
  3526. void SetBringToFront(bool);
  3527. void SetChecked(bool);
  3528. void SetCheckedOffset(const IntVector2&);
  3529. void SetCheckedOffset(int, int);
  3530. void SetChildOffset(const IntVector2&);
  3531. void SetClipBorder(const IntRect&);
  3532. void SetClipChildren(bool);
  3533. void SetColor(Corner, const Color&);
  3534. void SetColor(const Color&);
  3535. void SetDeepEnabled(bool);
  3536. void SetDefaultStyle(XMLFile);
  3537. void SetDisabledOffset(const IntVector2&);
  3538. void SetDisabledOffset(int, int);
  3539. void SetDragDropMode(uint);
  3540. void SetEditable(bool);
  3541. void SetElementEventSender(bool);
  3542. void SetEnableAnchor(bool);
  3543. void SetEnabled(bool);
  3544. void SetEnabledRecursive(bool);
  3545. void SetFixedHeight(int);
  3546. void SetFixedSize(const IntVector2&);
  3547. void SetFixedSize(int, int);
  3548. void SetFixedWidth(int);
  3549. void SetFocus(bool);
  3550. void SetFocusMode(FocusMode);
  3551. void SetFullImageRect();
  3552. void SetGlobalVar(StringHash, const Variant&);
  3553. void SetHeight(int);
  3554. void SetHorizontalAlignment(HorizontalAlignment);
  3555. void SetHoverOffset(const IntVector2&);
  3556. void SetHoverOffset(int, int);
  3557. void SetHovering(bool);
  3558. void SetImageBorder(const IntRect&);
  3559. void SetImageRect(const IntRect&);
  3560. void SetIndent(int);
  3561. void SetIndentSpacing(int);
  3562. void SetInstanceDefault(bool);
  3563. void SetInterceptNetworkUpdate(const String&, bool);
  3564. void SetInternal(bool);
  3565. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  3566. void SetLayoutBorder(const IntRect&);
  3567. void SetLayoutFlexScale(const Vector2&);
  3568. void SetLayoutMode(LayoutMode);
  3569. void SetLayoutSpacing(int);
  3570. void SetMaterial(Material);
  3571. void SetMaterialAttr(const ResourceRef&);
  3572. void SetMaxAnchor(const Vector2&);
  3573. void SetMaxAnchor(float, float);
  3574. void SetMaxHeight(int);
  3575. void SetMaxOffset(const IntVector2&);
  3576. void SetMaxSize(const IntVector2&);
  3577. void SetMaxSize(int, int);
  3578. void SetMaxWidth(int);
  3579. void SetMinAnchor(const Vector2&);
  3580. void SetMinAnchor(float, float);
  3581. void SetMinHeight(int);
  3582. void SetMinOffset(const IntVector2&);
  3583. void SetMinSize(const IntVector2&);
  3584. void SetMinSize(int, int);
  3585. void SetMinWidth(int);
  3586. void SetName(const String&);
  3587. void SetObjectAnimation(ObjectAnimation);
  3588. void SetObjectAnimationAttr(const ResourceRef&);
  3589. void SetOpacity(float);
  3590. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3591. void SetPivot(const Vector2&);
  3592. void SetPivot(float, float);
  3593. void SetPosition(const IntVector2&);
  3594. void SetPosition(int, int);
  3595. void SetPriority(int);
  3596. void SetRenderTexture(Texture2D);
  3597. void SetSelected(bool);
  3598. void SetSize(const IntVector2&);
  3599. void SetSize(int, int);
  3600. void SetSortChildren(bool);
  3601. bool SetStyle(const String&, XMLFile = null);
  3602. bool SetStyle(const XMLElement&);
  3603. bool SetStyleAuto(XMLFile = null);
  3604. void SetTags(Array<String>);
  3605. void SetTemporary(bool);
  3606. void SetTexture(Texture);
  3607. void SetTextureAttr(const ResourceRef&);
  3608. void SetTiled(bool);
  3609. void SetTraversalMode(TraversalMode);
  3610. void SetUseDerivedOpacity(bool);
  3611. void SetVar(StringHash, const Variant&);
  3612. void SetVerticalAlignment(VerticalAlignment);
  3613. void SetVisible(bool);
  3614. void SetWidth(int);
  3615. void SortChildren();
  3616. const String& GetAppliedStyle() const;
  3617. const String& GetCategory() const;
  3618. const String& GetName() const;
  3619. const String& GetTypeName() const;
  3620. operator UIElement() const;
  3621. void UnsubscribeFromAllEvents();
  3622. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  3623. void UnsubscribeFromEvent(Object, StringHash);
  3624. void UnsubscribeFromEvent(StringHash);
  3625. void UnsubscribeFromEvents(Object);
  3626. void Update(float);
  3627. void UpdateLayout();
  3628. const Variant& GetGlobalVar(StringHash) const;
  3629. const Variant& GetVar(const StringHash&) const;
  3630. const VariantMap& GetGlobalVars() const;
  3631. const VariantMap& GetVars() const;
  3632. const Vector2& GetLayoutFlexScale() const;
  3633. const Vector2& GetMaxAnchor() const;
  3634. const Vector2& GetMinAnchor() const;
  3635. const Vector2& GetPivot() const;
  3636. int WeakRefs() const;
  3637. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  3638. void WriteInitialDeltaUpdate(Serializer&, uint8);
  3639. void WriteLatestDataUpdate(Serializer&, uint8);
  3640. operator const Animatable() const;
  3641. operator const BorderImage() const;
  3642. operator const Object() const;
  3643. operator const RefCounted() const;
  3644. operator const Serializable() const;
  3645. operator const UIElement() const;
  3646. // Properties:
  3647. bool animationEnabled;
  3648. /* readonly */
  3649. Array<Variant> attributeDefaults;
  3650. /* readonly */
  3651. Array<AttributeInfo> attributeInfos;
  3652. Array<Variant> attributes;
  3653. BlendMode blendMode;
  3654. IntRect border;
  3655. bool bringToBack;
  3656. bool bringToFront;
  3657. /* readonly */
  3658. String category;
  3659. bool checked;
  3660. IntVector2 checkedOffset;
  3661. /* readonly */
  3662. IntVector2 childOffset;
  3663. /* readonly */
  3664. Array<UIElement> children;
  3665. IntRect clipBorder;
  3666. bool clipChildren;
  3667. /* writeonly */
  3668. Color color;
  3669. /* readonly */
  3670. bool colorGradient;
  3671. Array<Color> colors;
  3672. /* readonly */
  3673. IntRect combinedScreenRect;
  3674. XMLFile defaultStyle;
  3675. /* readonly */
  3676. float derivedOpacity;
  3677. IntVector2 disabledOffset;
  3678. /* readonly */
  3679. uint dragButtonCombo;
  3680. /* readonly */
  3681. uint dragButtonCount;
  3682. uint dragDropMode;
  3683. bool editable;
  3684. bool elementEventSender;
  3685. bool enableAnchor;
  3686. bool enabled;
  3687. /* readonly */
  3688. bool enabledSelf;
  3689. /* readonly */
  3690. bool fixedHeight;
  3691. /* readonly */
  3692. bool fixedSize;
  3693. /* readonly */
  3694. bool fixedWidth;
  3695. bool focus;
  3696. FocusMode focusMode;
  3697. Array<Variant> globalVar;
  3698. /* readonly */
  3699. VariantMap globalVars;
  3700. int height;
  3701. HorizontalAlignment horizontalAlignment;
  3702. IntVector2 hoverOffset;
  3703. /* readonly */
  3704. bool hovering;
  3705. IntRect imageBorder;
  3706. IntRect imageRect;
  3707. int indent;
  3708. int indentSpacing;
  3709. /* readonly */
  3710. int indentWidth;
  3711. bool internal;
  3712. IntRect layoutBorder;
  3713. Vector2 layoutFlexScale;
  3714. LayoutMode layoutMode;
  3715. int layoutSpacing;
  3716. Material material;
  3717. Vector2 maxAnchor;
  3718. int maxHeight;
  3719. IntVector2 maxOffset;
  3720. IntVector2 maxSize;
  3721. int maxWidth;
  3722. Vector2 minAnchor;
  3723. int minHeight;
  3724. IntVector2 minOffset;
  3725. IntVector2 minSize;
  3726. int minWidth;
  3727. String name;
  3728. /* readonly */
  3729. uint numAllChildren;
  3730. /* readonly */
  3731. uint numAttributes;
  3732. /* readonly */
  3733. uint numChildren;
  3734. ObjectAnimation objectAnimation;
  3735. float opacity;
  3736. UIElement parent;
  3737. Vector2 pivot;
  3738. IntVector2 position;
  3739. int priority;
  3740. /* readonly */
  3741. int refs;
  3742. /* readonly */
  3743. UIElement root;
  3744. /* readonly */
  3745. IntVector2 screenPosition;
  3746. bool selected;
  3747. IntVector2 size;
  3748. bool sortChildren;
  3749. String style;
  3750. /* readonly */
  3751. Array<String> tags;
  3752. bool temporary;
  3753. Texture texture;
  3754. bool tiled;
  3755. TraversalMode traversalMode;
  3756. /* readonly */
  3757. StringHash type;
  3758. /* readonly */
  3759. String typeName;
  3760. bool useDerivedOpacity;
  3761. /* readonly */
  3762. VariantMap vars;
  3763. VerticalAlignment verticalAlignment;
  3764. bool visible;
  3765. /* readonly */
  3766. bool visibleEffective;
  3767. /* readonly */
  3768. int weakRefs;
  3769. int width;
  3770. };
  3771. class CollisionBox2D
  3772. {
  3773. public:
  3774. CollisionBox2D();
  3775. // Methods:
  3776. void AllocateNetworkState();
  3777. operator Animatable() const;
  3778. void ApplyAttributes();
  3779. void CleanupConnection(Connection);
  3780. operator CollisionShape2D() const;
  3781. operator Component() const;
  3782. void CreateFixture();
  3783. void DrawDebugGeometry(DebugRenderer, bool);
  3784. float GetAngle() const;
  3785. bool GetAnimationEnabled() const;
  3786. Variant GetAttribute(const String&) const;
  3787. Variant GetAttribute(uint) const;
  3788. ValueAnimation GetAttributeAnimation(const String&) const;
  3789. float GetAttributeAnimationSpeed(const String&) const;
  3790. float GetAttributeAnimationTime(const String&) const;
  3791. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3792. Variant GetAttributeDefault(const String&) const;
  3793. Variant GetAttributeDefault(uint) const;
  3794. bool GetBlockEvents() const;
  3795. int GetCategoryBits() const;
  3796. Component GetComponent(StringHash) const;
  3797. float GetDensity() const;
  3798. VariantMap& GetEventDataMap() const;
  3799. Object GetEventSender() const;
  3800. float GetFriction() const;
  3801. int GetGroupIndex() const;
  3802. uint GetID() const;
  3803. float GetInertia() const;
  3804. bool GetInterceptNetworkUpdate(const String&) const;
  3805. int GetMaskBits() const;
  3806. float GetMass() const;
  3807. Vector2 GetMassCenter() const;
  3808. Node GetNode() const;
  3809. uint GetNumAttributes() const;
  3810. uint GetNumNetworkAttributes() const;
  3811. ObjectAnimation GetObjectAnimation() const;
  3812. ResourceRef GetObjectAnimationAttr() const;
  3813. float GetRestitution() const;
  3814. Scene GetScene() const;
  3815. Object GetSubsystem(StringHash) const;
  3816. StringHash GetType() const;
  3817. bool HasEventHandlers() const;
  3818. bool HasSubscribedToEvent(Object, StringHash) const;
  3819. bool HasSubscribedToEvent(StringHash) const;
  3820. bool IsEnabled() const;
  3821. bool IsEnabledEffective() const;
  3822. bool IsInstanceOf(StringHash) const;
  3823. bool IsReplicated() const;
  3824. bool IsTemporary() const;
  3825. bool IsTrigger() const;
  3826. bool Load(Deserializer&);
  3827. bool LoadJSON(const JSONValue&);
  3828. bool LoadXML(const XMLElement&);
  3829. void MarkNetworkUpdate();
  3830. operator Object() const;
  3831. void OnEvent(Object, StringHash, VariantMap&);
  3832. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  3833. void OnSetAttribute(const AttributeInfo&, const Variant&);
  3834. void OnSetEnabled();
  3835. void PrepareNetworkUpdate();
  3836. bool ReadDeltaUpdate(Deserializer&);
  3837. bool ReadLatestDataUpdate(Deserializer&);
  3838. operator RefCounted() const;
  3839. int Refs() const;
  3840. void ReleaseFixture();
  3841. void Remove();
  3842. void RemoveAttributeAnimation(const String&);
  3843. void RemoveInstanceDefault();
  3844. void RemoveObjectAnimation();
  3845. void ResetToDefault();
  3846. bool Save(Serializer&) const;
  3847. bool SaveDefaultAttributes() const;
  3848. bool SaveJSON(JSONValue&) const;
  3849. bool SaveXML(XMLElement&) const;
  3850. void SendEvent(StringHash);
  3851. void SendEvent(StringHash, VariantMap&);
  3852. operator Serializable() const;
  3853. void SetAngle(float);
  3854. void SetAnimationEnabled(bool);
  3855. void SetAnimationTime(float);
  3856. bool SetAttribute(const String&, const Variant&);
  3857. bool SetAttribute(uint, const Variant&);
  3858. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3859. void SetAttributeAnimationSpeed(const String&, float);
  3860. void SetAttributeAnimationTime(const String&, float);
  3861. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3862. void SetBlockEvents(bool);
  3863. void SetCategoryBits(int);
  3864. void SetCenter(const Vector2&);
  3865. void SetCenter(float, float);
  3866. void SetDensity(float);
  3867. void SetEnabled(bool);
  3868. void SetFriction(float);
  3869. void SetGlobalVar(StringHash, const Variant&);
  3870. void SetGroupIndex(int);
  3871. void SetInstanceDefault(bool);
  3872. void SetInterceptNetworkUpdate(const String&, bool);
  3873. void SetMaskBits(int);
  3874. void SetObjectAnimation(ObjectAnimation);
  3875. void SetObjectAnimationAttr(const ResourceRef&);
  3876. void SetRestitution(float);
  3877. void SetSize(const Vector2&);
  3878. void SetSize(float, float);
  3879. void SetTemporary(bool);
  3880. void SetTrigger(bool);
  3881. const String& GetCategory() const;
  3882. const String& GetTypeName() const;
  3883. void UnsubscribeFromAllEvents();
  3884. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  3885. void UnsubscribeFromEvent(Object, StringHash);
  3886. void UnsubscribeFromEvent(StringHash);
  3887. void UnsubscribeFromEvents(Object);
  3888. const Variant& GetGlobalVar(StringHash) const;
  3889. const VariantMap& GetGlobalVars() const;
  3890. const Vector2& GetCenter() const;
  3891. const Vector2& GetSize() const;
  3892. int WeakRefs() const;
  3893. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  3894. void WriteInitialDeltaUpdate(Serializer&, uint8);
  3895. void WriteLatestDataUpdate(Serializer&, uint8);
  3896. operator const Animatable() const;
  3897. operator const CollisionShape2D() const;
  3898. operator const Component() const;
  3899. operator const Object() const;
  3900. operator const RefCounted() const;
  3901. operator const Serializable() const;
  3902. // Properties:
  3903. float angle;
  3904. bool animationEnabled;
  3905. /* readonly */
  3906. Array<Variant> attributeDefaults;
  3907. /* readonly */
  3908. Array<AttributeInfo> attributeInfos;
  3909. Array<Variant> attributes;
  3910. /* readonly */
  3911. String category;
  3912. int categoryBits;
  3913. Vector2 center;
  3914. float density;
  3915. bool enabled;
  3916. /* readonly */
  3917. bool enabledEffective;
  3918. float friction;
  3919. Array<Variant> globalVar;
  3920. /* readonly */
  3921. VariantMap globalVars;
  3922. int groupIndex;
  3923. /* readonly */
  3924. uint id;
  3925. /* readonly */
  3926. float inertia;
  3927. int maskBits;
  3928. /* readonly */
  3929. float mass;
  3930. /* readonly */
  3931. Vector2 massCenter;
  3932. /* readonly */
  3933. Node node;
  3934. /* readonly */
  3935. uint numAttributes;
  3936. ObjectAnimation objectAnimation;
  3937. /* readonly */
  3938. int refs;
  3939. /* readonly */
  3940. bool replicated;
  3941. float restitution;
  3942. Vector2 size;
  3943. bool temporary;
  3944. bool trigger;
  3945. /* readonly */
  3946. StringHash type;
  3947. /* readonly */
  3948. String typeName;
  3949. /* readonly */
  3950. int weakRefs;
  3951. };
  3952. class CollisionChain2D
  3953. {
  3954. public:
  3955. CollisionChain2D();
  3956. // Methods:
  3957. void AllocateNetworkState();
  3958. operator Animatable() const;
  3959. void ApplyAttributes();
  3960. void CleanupConnection(Connection);
  3961. operator CollisionShape2D() const;
  3962. operator Component() const;
  3963. void CreateFixture();
  3964. void DrawDebugGeometry(DebugRenderer, bool);
  3965. bool GetAnimationEnabled() const;
  3966. Variant GetAttribute(const String&) const;
  3967. Variant GetAttribute(uint) const;
  3968. ValueAnimation GetAttributeAnimation(const String&) const;
  3969. float GetAttributeAnimationSpeed(const String&) const;
  3970. float GetAttributeAnimationTime(const String&) const;
  3971. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3972. Variant GetAttributeDefault(const String&) const;
  3973. Variant GetAttributeDefault(uint) const;
  3974. bool GetBlockEvents() const;
  3975. int GetCategoryBits() const;
  3976. Component GetComponent(StringHash) const;
  3977. float GetDensity() const;
  3978. VariantMap& GetEventDataMap() const;
  3979. Object GetEventSender() const;
  3980. float GetFriction() const;
  3981. int GetGroupIndex() const;
  3982. uint GetID() const;
  3983. float GetInertia() const;
  3984. bool GetInterceptNetworkUpdate(const String&) const;
  3985. bool GetLoop() const;
  3986. int GetMaskBits() const;
  3987. float GetMass() const;
  3988. Vector2 GetMassCenter() const;
  3989. Node GetNode() const;
  3990. uint GetNumAttributes() const;
  3991. uint GetNumNetworkAttributes() const;
  3992. ObjectAnimation GetObjectAnimation() const;
  3993. ResourceRef GetObjectAnimationAttr() const;
  3994. float GetRestitution() const;
  3995. Scene GetScene() const;
  3996. Object GetSubsystem(StringHash) const;
  3997. StringHash GetType() const;
  3998. uint GetVertexCount() const;
  3999. Array<Vector2> GetVertices() const;
  4000. bool HasEventHandlers() const;
  4001. bool HasSubscribedToEvent(Object, StringHash) const;
  4002. bool HasSubscribedToEvent(StringHash) const;
  4003. bool IsEnabled() const;
  4004. bool IsEnabledEffective() const;
  4005. bool IsInstanceOf(StringHash) const;
  4006. bool IsReplicated() const;
  4007. bool IsTemporary() const;
  4008. bool IsTrigger() const;
  4009. bool Load(Deserializer&);
  4010. bool LoadJSON(const JSONValue&);
  4011. bool LoadXML(const XMLElement&);
  4012. void MarkNetworkUpdate();
  4013. operator Object() const;
  4014. void OnEvent(Object, StringHash, VariantMap&);
  4015. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4016. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4017. void OnSetEnabled();
  4018. void PrepareNetworkUpdate();
  4019. bool ReadDeltaUpdate(Deserializer&);
  4020. bool ReadLatestDataUpdate(Deserializer&);
  4021. operator RefCounted() const;
  4022. int Refs() const;
  4023. void ReleaseFixture();
  4024. void Remove();
  4025. void RemoveAttributeAnimation(const String&);
  4026. void RemoveInstanceDefault();
  4027. void RemoveObjectAnimation();
  4028. void ResetToDefault();
  4029. bool Save(Serializer&) const;
  4030. bool SaveDefaultAttributes() const;
  4031. bool SaveJSON(JSONValue&) const;
  4032. bool SaveXML(XMLElement&) const;
  4033. void SendEvent(StringHash);
  4034. void SendEvent(StringHash, VariantMap&);
  4035. operator Serializable() const;
  4036. void SetAnimationEnabled(bool);
  4037. void SetAnimationTime(float);
  4038. bool SetAttribute(const String&, const Variant&);
  4039. bool SetAttribute(uint, const Variant&);
  4040. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4041. void SetAttributeAnimationSpeed(const String&, float);
  4042. void SetAttributeAnimationTime(const String&, float);
  4043. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4044. void SetBlockEvents(bool);
  4045. void SetCategoryBits(int);
  4046. void SetDensity(float);
  4047. void SetEnabled(bool);
  4048. void SetFriction(float);
  4049. void SetGlobalVar(StringHash, const Variant&);
  4050. void SetGroupIndex(int);
  4051. void SetInstanceDefault(bool);
  4052. void SetInterceptNetworkUpdate(const String&, bool);
  4053. void SetLoop(bool);
  4054. void SetMaskBits(int);
  4055. void SetObjectAnimation(ObjectAnimation);
  4056. void SetObjectAnimationAttr(const ResourceRef&);
  4057. void SetRestitution(float);
  4058. void SetTemporary(bool);
  4059. void SetTrigger(bool);
  4060. void SetVertex(uint, const Vector2&);
  4061. void SetVertexCount(uint);
  4062. void SetVertices(Array<Vector2>);
  4063. const String& GetCategory() const;
  4064. const String& GetTypeName() const;
  4065. void UnsubscribeFromAllEvents();
  4066. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4067. void UnsubscribeFromEvent(Object, StringHash);
  4068. void UnsubscribeFromEvent(StringHash);
  4069. void UnsubscribeFromEvents(Object);
  4070. const Variant& GetGlobalVar(StringHash) const;
  4071. const VariantMap& GetGlobalVars() const;
  4072. const Vector2& GetVertex(uint) const;
  4073. int WeakRefs() const;
  4074. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4075. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4076. void WriteLatestDataUpdate(Serializer&, uint8);
  4077. operator const Animatable() const;
  4078. operator const CollisionShape2D() const;
  4079. operator const Component() const;
  4080. operator const Object() const;
  4081. operator const RefCounted() const;
  4082. operator const Serializable() const;
  4083. // Properties:
  4084. bool animationEnabled;
  4085. /* readonly */
  4086. Array<Variant> attributeDefaults;
  4087. /* readonly */
  4088. Array<AttributeInfo> attributeInfos;
  4089. Array<Variant> attributes;
  4090. /* readonly */
  4091. String category;
  4092. int categoryBits;
  4093. float density;
  4094. bool enabled;
  4095. /* readonly */
  4096. bool enabledEffective;
  4097. float friction;
  4098. Array<Variant> globalVar;
  4099. /* readonly */
  4100. VariantMap globalVars;
  4101. int groupIndex;
  4102. /* readonly */
  4103. uint id;
  4104. /* readonly */
  4105. float inertia;
  4106. bool loop;
  4107. int maskBits;
  4108. /* readonly */
  4109. float mass;
  4110. /* readonly */
  4111. Vector2 massCenter;
  4112. /* readonly */
  4113. Node node;
  4114. /* readonly */
  4115. uint numAttributes;
  4116. ObjectAnimation objectAnimation;
  4117. /* readonly */
  4118. int refs;
  4119. /* readonly */
  4120. bool replicated;
  4121. float restitution;
  4122. bool temporary;
  4123. bool trigger;
  4124. /* readonly */
  4125. StringHash type;
  4126. /* readonly */
  4127. String typeName;
  4128. uint vertexCount;
  4129. /* readonly */
  4130. int weakRefs;
  4131. };
  4132. class CollisionCircle2D
  4133. {
  4134. public:
  4135. CollisionCircle2D();
  4136. // Methods:
  4137. void AllocateNetworkState();
  4138. operator Animatable() const;
  4139. void ApplyAttributes();
  4140. void CleanupConnection(Connection);
  4141. operator CollisionShape2D() const;
  4142. operator Component() const;
  4143. void CreateFixture();
  4144. void DrawDebugGeometry(DebugRenderer, bool);
  4145. bool GetAnimationEnabled() const;
  4146. Variant GetAttribute(const String&) const;
  4147. Variant GetAttribute(uint) const;
  4148. ValueAnimation GetAttributeAnimation(const String&) const;
  4149. float GetAttributeAnimationSpeed(const String&) const;
  4150. float GetAttributeAnimationTime(const String&) const;
  4151. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4152. Variant GetAttributeDefault(const String&) const;
  4153. Variant GetAttributeDefault(uint) const;
  4154. bool GetBlockEvents() const;
  4155. int GetCategoryBits() const;
  4156. Component GetComponent(StringHash) const;
  4157. float GetDensity() const;
  4158. VariantMap& GetEventDataMap() const;
  4159. Object GetEventSender() const;
  4160. float GetFriction() const;
  4161. int GetGroupIndex() const;
  4162. uint GetID() const;
  4163. float GetInertia() const;
  4164. bool GetInterceptNetworkUpdate(const String&) const;
  4165. int GetMaskBits() const;
  4166. float GetMass() const;
  4167. Vector2 GetMassCenter() const;
  4168. Node GetNode() const;
  4169. uint GetNumAttributes() const;
  4170. uint GetNumNetworkAttributes() const;
  4171. ObjectAnimation GetObjectAnimation() const;
  4172. ResourceRef GetObjectAnimationAttr() const;
  4173. float GetRadius() const;
  4174. float GetRestitution() const;
  4175. Scene GetScene() const;
  4176. Object GetSubsystem(StringHash) const;
  4177. StringHash GetType() const;
  4178. bool HasEventHandlers() const;
  4179. bool HasSubscribedToEvent(Object, StringHash) const;
  4180. bool HasSubscribedToEvent(StringHash) const;
  4181. bool IsEnabled() const;
  4182. bool IsEnabledEffective() const;
  4183. bool IsInstanceOf(StringHash) const;
  4184. bool IsReplicated() const;
  4185. bool IsTemporary() const;
  4186. bool IsTrigger() const;
  4187. bool Load(Deserializer&);
  4188. bool LoadJSON(const JSONValue&);
  4189. bool LoadXML(const XMLElement&);
  4190. void MarkNetworkUpdate();
  4191. operator Object() const;
  4192. void OnEvent(Object, StringHash, VariantMap&);
  4193. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4194. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4195. void OnSetEnabled();
  4196. void PrepareNetworkUpdate();
  4197. bool ReadDeltaUpdate(Deserializer&);
  4198. bool ReadLatestDataUpdate(Deserializer&);
  4199. operator RefCounted() const;
  4200. int Refs() const;
  4201. void ReleaseFixture();
  4202. void Remove();
  4203. void RemoveAttributeAnimation(const String&);
  4204. void RemoveInstanceDefault();
  4205. void RemoveObjectAnimation();
  4206. void ResetToDefault();
  4207. bool Save(Serializer&) const;
  4208. bool SaveDefaultAttributes() const;
  4209. bool SaveJSON(JSONValue&) const;
  4210. bool SaveXML(XMLElement&) const;
  4211. void SendEvent(StringHash);
  4212. void SendEvent(StringHash, VariantMap&);
  4213. operator Serializable() const;
  4214. void SetAnimationEnabled(bool);
  4215. void SetAnimationTime(float);
  4216. bool SetAttribute(const String&, const Variant&);
  4217. bool SetAttribute(uint, const Variant&);
  4218. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4219. void SetAttributeAnimationSpeed(const String&, float);
  4220. void SetAttributeAnimationTime(const String&, float);
  4221. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4222. void SetBlockEvents(bool);
  4223. void SetCategoryBits(int);
  4224. void SetCenter(const Vector2&);
  4225. void SetCenter(float, float);
  4226. void SetDensity(float);
  4227. void SetEnabled(bool);
  4228. void SetFriction(float);
  4229. void SetGlobalVar(StringHash, const Variant&);
  4230. void SetGroupIndex(int);
  4231. void SetInstanceDefault(bool);
  4232. void SetInterceptNetworkUpdate(const String&, bool);
  4233. void SetMaskBits(int);
  4234. void SetObjectAnimation(ObjectAnimation);
  4235. void SetObjectAnimationAttr(const ResourceRef&);
  4236. void SetRadius(float);
  4237. void SetRestitution(float);
  4238. void SetTemporary(bool);
  4239. void SetTrigger(bool);
  4240. const String& GetCategory() const;
  4241. const String& GetTypeName() const;
  4242. void UnsubscribeFromAllEvents();
  4243. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4244. void UnsubscribeFromEvent(Object, StringHash);
  4245. void UnsubscribeFromEvent(StringHash);
  4246. void UnsubscribeFromEvents(Object);
  4247. const Variant& GetGlobalVar(StringHash) const;
  4248. const VariantMap& GetGlobalVars() const;
  4249. const Vector2& GetCenter() const;
  4250. int WeakRefs() const;
  4251. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4252. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4253. void WriteLatestDataUpdate(Serializer&, uint8);
  4254. operator const Animatable() const;
  4255. operator const CollisionShape2D() const;
  4256. operator const Component() const;
  4257. operator const Object() const;
  4258. operator const RefCounted() const;
  4259. operator const Serializable() const;
  4260. // Properties:
  4261. bool animationEnabled;
  4262. /* readonly */
  4263. Array<Variant> attributeDefaults;
  4264. /* readonly */
  4265. Array<AttributeInfo> attributeInfos;
  4266. Array<Variant> attributes;
  4267. /* readonly */
  4268. String category;
  4269. int categoryBits;
  4270. Vector2 center;
  4271. float density;
  4272. bool enabled;
  4273. /* readonly */
  4274. bool enabledEffective;
  4275. float friction;
  4276. Array<Variant> globalVar;
  4277. /* readonly */
  4278. VariantMap globalVars;
  4279. int groupIndex;
  4280. /* readonly */
  4281. uint id;
  4282. /* readonly */
  4283. float inertia;
  4284. int maskBits;
  4285. /* readonly */
  4286. float mass;
  4287. /* readonly */
  4288. Vector2 massCenter;
  4289. /* readonly */
  4290. Node node;
  4291. /* readonly */
  4292. uint numAttributes;
  4293. ObjectAnimation objectAnimation;
  4294. float radius;
  4295. /* readonly */
  4296. int refs;
  4297. /* readonly */
  4298. bool replicated;
  4299. float restitution;
  4300. bool temporary;
  4301. bool trigger;
  4302. /* readonly */
  4303. StringHash type;
  4304. /* readonly */
  4305. String typeName;
  4306. /* readonly */
  4307. int weakRefs;
  4308. };
  4309. class CollisionEdge2D
  4310. {
  4311. public:
  4312. CollisionEdge2D();
  4313. // Methods:
  4314. void AllocateNetworkState();
  4315. operator Animatable() const;
  4316. void ApplyAttributes();
  4317. void CleanupConnection(Connection);
  4318. operator CollisionShape2D() const;
  4319. operator Component() const;
  4320. void CreateFixture();
  4321. void DrawDebugGeometry(DebugRenderer, bool);
  4322. bool GetAnimationEnabled() const;
  4323. Variant GetAttribute(const String&) const;
  4324. Variant GetAttribute(uint) const;
  4325. ValueAnimation GetAttributeAnimation(const String&) const;
  4326. float GetAttributeAnimationSpeed(const String&) const;
  4327. float GetAttributeAnimationTime(const String&) const;
  4328. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4329. Variant GetAttributeDefault(const String&) const;
  4330. Variant GetAttributeDefault(uint) const;
  4331. bool GetBlockEvents() const;
  4332. int GetCategoryBits() const;
  4333. Component GetComponent(StringHash) const;
  4334. float GetDensity() const;
  4335. VariantMap& GetEventDataMap() const;
  4336. Object GetEventSender() const;
  4337. float GetFriction() const;
  4338. int GetGroupIndex() const;
  4339. uint GetID() const;
  4340. float GetInertia() const;
  4341. bool GetInterceptNetworkUpdate(const String&) const;
  4342. int GetMaskBits() const;
  4343. float GetMass() const;
  4344. Vector2 GetMassCenter() const;
  4345. Node GetNode() const;
  4346. uint GetNumAttributes() const;
  4347. uint GetNumNetworkAttributes() const;
  4348. ObjectAnimation GetObjectAnimation() const;
  4349. ResourceRef GetObjectAnimationAttr() const;
  4350. float GetRestitution() const;
  4351. Scene GetScene() const;
  4352. Object GetSubsystem(StringHash) const;
  4353. StringHash GetType() const;
  4354. bool HasEventHandlers() const;
  4355. bool HasSubscribedToEvent(Object, StringHash) const;
  4356. bool HasSubscribedToEvent(StringHash) const;
  4357. bool IsEnabled() const;
  4358. bool IsEnabledEffective() const;
  4359. bool IsInstanceOf(StringHash) const;
  4360. bool IsReplicated() const;
  4361. bool IsTemporary() const;
  4362. bool IsTrigger() const;
  4363. bool Load(Deserializer&);
  4364. bool LoadJSON(const JSONValue&);
  4365. bool LoadXML(const XMLElement&);
  4366. void MarkNetworkUpdate();
  4367. operator Object() const;
  4368. void OnEvent(Object, StringHash, VariantMap&);
  4369. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4370. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4371. void OnSetEnabled();
  4372. void PrepareNetworkUpdate();
  4373. bool ReadDeltaUpdate(Deserializer&);
  4374. bool ReadLatestDataUpdate(Deserializer&);
  4375. operator RefCounted() const;
  4376. int Refs() const;
  4377. void ReleaseFixture();
  4378. void Remove();
  4379. void RemoveAttributeAnimation(const String&);
  4380. void RemoveInstanceDefault();
  4381. void RemoveObjectAnimation();
  4382. void ResetToDefault();
  4383. bool Save(Serializer&) const;
  4384. bool SaveDefaultAttributes() const;
  4385. bool SaveJSON(JSONValue&) const;
  4386. bool SaveXML(XMLElement&) const;
  4387. void SendEvent(StringHash);
  4388. void SendEvent(StringHash, VariantMap&);
  4389. operator Serializable() const;
  4390. void SetAnimationEnabled(bool);
  4391. void SetAnimationTime(float);
  4392. bool SetAttribute(const String&, const Variant&);
  4393. bool SetAttribute(uint, const Variant&);
  4394. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4395. void SetAttributeAnimationSpeed(const String&, float);
  4396. void SetAttributeAnimationTime(const String&, float);
  4397. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4398. void SetBlockEvents(bool);
  4399. void SetCategoryBits(int);
  4400. void SetDensity(float);
  4401. void SetEnabled(bool);
  4402. void SetFriction(float);
  4403. void SetGlobalVar(StringHash, const Variant&);
  4404. void SetGroupIndex(int);
  4405. void SetInstanceDefault(bool);
  4406. void SetInterceptNetworkUpdate(const String&, bool);
  4407. void SetMaskBits(int);
  4408. void SetObjectAnimation(ObjectAnimation);
  4409. void SetObjectAnimationAttr(const ResourceRef&);
  4410. void SetRestitution(float);
  4411. void SetTemporary(bool);
  4412. void SetTrigger(bool);
  4413. void SetVertex1(const Vector2&);
  4414. void SetVertex2(const Vector2&);
  4415. void SetVertices(const Vector2&, const Vector2&);
  4416. const String& GetCategory() const;
  4417. const String& GetTypeName() const;
  4418. void UnsubscribeFromAllEvents();
  4419. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4420. void UnsubscribeFromEvent(Object, StringHash);
  4421. void UnsubscribeFromEvent(StringHash);
  4422. void UnsubscribeFromEvents(Object);
  4423. const Variant& GetGlobalVar(StringHash) const;
  4424. const VariantMap& GetGlobalVars() const;
  4425. const Vector2& GetVertex1() const;
  4426. const Vector2& GetVertex2() const;
  4427. int WeakRefs() const;
  4428. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4429. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4430. void WriteLatestDataUpdate(Serializer&, uint8);
  4431. operator const Animatable() const;
  4432. operator const CollisionShape2D() const;
  4433. operator const Component() const;
  4434. operator const Object() const;
  4435. operator const RefCounted() const;
  4436. operator const Serializable() const;
  4437. // Properties:
  4438. bool animationEnabled;
  4439. /* readonly */
  4440. Array<Variant> attributeDefaults;
  4441. /* readonly */
  4442. Array<AttributeInfo> attributeInfos;
  4443. Array<Variant> attributes;
  4444. /* readonly */
  4445. String category;
  4446. int categoryBits;
  4447. float density;
  4448. bool enabled;
  4449. /* readonly */
  4450. bool enabledEffective;
  4451. float friction;
  4452. Array<Variant> globalVar;
  4453. /* readonly */
  4454. VariantMap globalVars;
  4455. int groupIndex;
  4456. /* readonly */
  4457. uint id;
  4458. /* readonly */
  4459. float inertia;
  4460. int maskBits;
  4461. /* readonly */
  4462. float mass;
  4463. /* readonly */
  4464. Vector2 massCenter;
  4465. /* readonly */
  4466. Node node;
  4467. /* readonly */
  4468. uint numAttributes;
  4469. ObjectAnimation objectAnimation;
  4470. /* readonly */
  4471. int refs;
  4472. /* readonly */
  4473. bool replicated;
  4474. float restitution;
  4475. bool temporary;
  4476. bool trigger;
  4477. /* readonly */
  4478. StringHash type;
  4479. /* readonly */
  4480. String typeName;
  4481. Vector2 vertex1;
  4482. Vector2 vertex2;
  4483. /* readonly */
  4484. int weakRefs;
  4485. };
  4486. class CollisionGeometryData
  4487. {
  4488. public:
  4489. // Methods:
  4490. operator ConvexData() const;
  4491. operator GImpactMeshData() const;
  4492. operator HeightfieldData() const;
  4493. operator RefCounted() const;
  4494. int Refs() const;
  4495. operator TriangleMeshData() const;
  4496. int WeakRefs() const;
  4497. operator const ConvexData() const;
  4498. operator const GImpactMeshData() const;
  4499. operator const HeightfieldData() const;
  4500. operator const RefCounted() const;
  4501. operator const TriangleMeshData() const;
  4502. // Properties:
  4503. /* readonly */
  4504. int refs;
  4505. /* readonly */
  4506. int weakRefs;
  4507. };
  4508. class CollisionPolygon2D
  4509. {
  4510. public:
  4511. CollisionPolygon2D();
  4512. // Methods:
  4513. void AllocateNetworkState();
  4514. operator Animatable() const;
  4515. void ApplyAttributes();
  4516. void CleanupConnection(Connection);
  4517. operator CollisionShape2D() const;
  4518. operator Component() const;
  4519. void CreateFixture();
  4520. void DrawDebugGeometry(DebugRenderer, bool);
  4521. bool GetAnimationEnabled() const;
  4522. Variant GetAttribute(const String&) const;
  4523. Variant GetAttribute(uint) const;
  4524. ValueAnimation GetAttributeAnimation(const String&) const;
  4525. float GetAttributeAnimationSpeed(const String&) const;
  4526. float GetAttributeAnimationTime(const String&) const;
  4527. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4528. Variant GetAttributeDefault(const String&) const;
  4529. Variant GetAttributeDefault(uint) const;
  4530. bool GetBlockEvents() const;
  4531. int GetCategoryBits() const;
  4532. Component GetComponent(StringHash) const;
  4533. float GetDensity() const;
  4534. VariantMap& GetEventDataMap() const;
  4535. Object GetEventSender() const;
  4536. float GetFriction() const;
  4537. int GetGroupIndex() const;
  4538. uint GetID() const;
  4539. float GetInertia() const;
  4540. bool GetInterceptNetworkUpdate(const String&) const;
  4541. int GetMaskBits() const;
  4542. float GetMass() const;
  4543. Vector2 GetMassCenter() const;
  4544. Node GetNode() const;
  4545. uint GetNumAttributes() const;
  4546. uint GetNumNetworkAttributes() const;
  4547. ObjectAnimation GetObjectAnimation() const;
  4548. ResourceRef GetObjectAnimationAttr() const;
  4549. float GetRestitution() const;
  4550. Scene GetScene() const;
  4551. Object GetSubsystem(StringHash) const;
  4552. StringHash GetType() const;
  4553. uint GetVertexCount() const;
  4554. Array<Vector2> GetVertices() const;
  4555. bool HasEventHandlers() const;
  4556. bool HasSubscribedToEvent(Object, StringHash) const;
  4557. bool HasSubscribedToEvent(StringHash) const;
  4558. bool IsEnabled() const;
  4559. bool IsEnabledEffective() const;
  4560. bool IsInstanceOf(StringHash) const;
  4561. bool IsReplicated() const;
  4562. bool IsTemporary() const;
  4563. bool IsTrigger() const;
  4564. bool Load(Deserializer&);
  4565. bool LoadJSON(const JSONValue&);
  4566. bool LoadXML(const XMLElement&);
  4567. void MarkNetworkUpdate();
  4568. operator Object() const;
  4569. void OnEvent(Object, StringHash, VariantMap&);
  4570. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4571. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4572. void OnSetEnabled();
  4573. void PrepareNetworkUpdate();
  4574. bool ReadDeltaUpdate(Deserializer&);
  4575. bool ReadLatestDataUpdate(Deserializer&);
  4576. operator RefCounted() const;
  4577. int Refs() const;
  4578. void ReleaseFixture();
  4579. void Remove();
  4580. void RemoveAttributeAnimation(const String&);
  4581. void RemoveInstanceDefault();
  4582. void RemoveObjectAnimation();
  4583. void ResetToDefault();
  4584. bool Save(Serializer&) const;
  4585. bool SaveDefaultAttributes() const;
  4586. bool SaveJSON(JSONValue&) const;
  4587. bool SaveXML(XMLElement&) const;
  4588. void SendEvent(StringHash);
  4589. void SendEvent(StringHash, VariantMap&);
  4590. operator Serializable() const;
  4591. void SetAnimationEnabled(bool);
  4592. void SetAnimationTime(float);
  4593. bool SetAttribute(const String&, const Variant&);
  4594. bool SetAttribute(uint, const Variant&);
  4595. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4596. void SetAttributeAnimationSpeed(const String&, float);
  4597. void SetAttributeAnimationTime(const String&, float);
  4598. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4599. void SetBlockEvents(bool);
  4600. void SetCategoryBits(int);
  4601. void SetDensity(float);
  4602. void SetEnabled(bool);
  4603. void SetFriction(float);
  4604. void SetGlobalVar(StringHash, const Variant&);
  4605. void SetGroupIndex(int);
  4606. void SetInstanceDefault(bool);
  4607. void SetInterceptNetworkUpdate(const String&, bool);
  4608. void SetMaskBits(int);
  4609. void SetObjectAnimation(ObjectAnimation);
  4610. void SetObjectAnimationAttr(const ResourceRef&);
  4611. void SetRestitution(float);
  4612. void SetTemporary(bool);
  4613. void SetTrigger(bool);
  4614. void SetVertex(uint, const Vector2&);
  4615. void SetVertexCount(uint);
  4616. void SetVertices(Array<Vector2>);
  4617. const String& GetCategory() const;
  4618. const String& GetTypeName() const;
  4619. void UnsubscribeFromAllEvents();
  4620. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4621. void UnsubscribeFromEvent(Object, StringHash);
  4622. void UnsubscribeFromEvent(StringHash);
  4623. void UnsubscribeFromEvents(Object);
  4624. const Variant& GetGlobalVar(StringHash) const;
  4625. const VariantMap& GetGlobalVars() const;
  4626. const Vector2& GetVertex(uint) const;
  4627. int WeakRefs() const;
  4628. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4629. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4630. void WriteLatestDataUpdate(Serializer&, uint8);
  4631. operator const Animatable() const;
  4632. operator const CollisionShape2D() const;
  4633. operator const Component() const;
  4634. operator const Object() const;
  4635. operator const RefCounted() const;
  4636. operator const Serializable() const;
  4637. // Properties:
  4638. bool animationEnabled;
  4639. /* readonly */
  4640. Array<Variant> attributeDefaults;
  4641. /* readonly */
  4642. Array<AttributeInfo> attributeInfos;
  4643. Array<Variant> attributes;
  4644. /* readonly */
  4645. String category;
  4646. int categoryBits;
  4647. float density;
  4648. bool enabled;
  4649. /* readonly */
  4650. bool enabledEffective;
  4651. float friction;
  4652. Array<Variant> globalVar;
  4653. /* readonly */
  4654. VariantMap globalVars;
  4655. int groupIndex;
  4656. /* readonly */
  4657. uint id;
  4658. /* readonly */
  4659. float inertia;
  4660. int maskBits;
  4661. /* readonly */
  4662. float mass;
  4663. /* readonly */
  4664. Vector2 massCenter;
  4665. /* readonly */
  4666. Node node;
  4667. /* readonly */
  4668. uint numAttributes;
  4669. ObjectAnimation objectAnimation;
  4670. /* readonly */
  4671. int refs;
  4672. /* readonly */
  4673. bool replicated;
  4674. float restitution;
  4675. bool temporary;
  4676. bool trigger;
  4677. /* readonly */
  4678. StringHash type;
  4679. /* readonly */
  4680. String typeName;
  4681. uint vertexCount;
  4682. /* readonly */
  4683. int weakRefs;
  4684. };
  4685. class CollisionShape
  4686. {
  4687. public:
  4688. CollisionShape();
  4689. // Methods:
  4690. void AllocateNetworkState();
  4691. operator Animatable() const;
  4692. void ApplyAttributes();
  4693. void CleanupConnection(Connection);
  4694. operator Component() const;
  4695. void DrawDebugGeometry(DebugRenderer, bool);
  4696. bool GetAnimationEnabled() const;
  4697. Variant GetAttribute(const String&) const;
  4698. Variant GetAttribute(uint) const;
  4699. ValueAnimation GetAttributeAnimation(const String&) const;
  4700. float GetAttributeAnimationSpeed(const String&) const;
  4701. float GetAttributeAnimationTime(const String&) const;
  4702. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4703. Variant GetAttributeDefault(const String&) const;
  4704. Variant GetAttributeDefault(uint) const;
  4705. bool GetBlockEvents() const;
  4706. Component GetComponent(StringHash) const;
  4707. VariantMap& GetEventDataMap() const;
  4708. Object GetEventSender() const;
  4709. CollisionGeometryData GetGeometryData() const;
  4710. uint GetID() const;
  4711. bool GetInterceptNetworkUpdate(const String&) const;
  4712. uint GetLodLevel() const;
  4713. float GetMargin() const;
  4714. Model GetModel() const;
  4715. ResourceRef GetModelAttr() const;
  4716. Node GetNode() const;
  4717. uint GetNumAttributes() const;
  4718. uint GetNumNetworkAttributes() const;
  4719. ObjectAnimation GetObjectAnimation() const;
  4720. ResourceRef GetObjectAnimationAttr() const;
  4721. PhysicsWorld GetPhysicsWorld() const;
  4722. Scene GetScene() const;
  4723. ShapeType GetShapeType() const;
  4724. Object GetSubsystem(StringHash) const;
  4725. StringHash GetType() const;
  4726. BoundingBox GetWorldBoundingBox() const;
  4727. bool HasEventHandlers() const;
  4728. bool HasSubscribedToEvent(Object, StringHash) const;
  4729. bool HasSubscribedToEvent(StringHash) const;
  4730. bool IsEnabled() const;
  4731. bool IsEnabledEffective() const;
  4732. bool IsInstanceOf(StringHash) const;
  4733. bool IsReplicated() const;
  4734. bool IsTemporary() const;
  4735. bool Load(Deserializer&);
  4736. bool LoadJSON(const JSONValue&);
  4737. bool LoadXML(const XMLElement&);
  4738. void MarkNetworkUpdate();
  4739. void NotifyRigidBody(bool = true);
  4740. operator Object() const;
  4741. void OnEvent(Object, StringHash, VariantMap&);
  4742. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4743. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4744. void OnSetEnabled();
  4745. void PrepareNetworkUpdate();
  4746. const Quaternion& GetRotation() const;
  4747. bool ReadDeltaUpdate(Deserializer&);
  4748. bool ReadLatestDataUpdate(Deserializer&);
  4749. operator RefCounted() const;
  4750. int Refs() const;
  4751. void ReleaseShape();
  4752. void Remove();
  4753. void RemoveAttributeAnimation(const String&);
  4754. void RemoveInstanceDefault();
  4755. void RemoveObjectAnimation();
  4756. void ResetToDefault();
  4757. bool Save(Serializer&) const;
  4758. bool SaveDefaultAttributes() const;
  4759. bool SaveJSON(JSONValue&) const;
  4760. bool SaveXML(XMLElement&) const;
  4761. void SendEvent(StringHash);
  4762. void SendEvent(StringHash, VariantMap&);
  4763. operator Serializable() const;
  4764. void SetAnimationEnabled(bool);
  4765. void SetAnimationTime(float);
  4766. bool SetAttribute(const String&, const Variant&);
  4767. bool SetAttribute(uint, const Variant&);
  4768. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4769. void SetAttributeAnimationSpeed(const String&, float);
  4770. void SetAttributeAnimationTime(const String&, float);
  4771. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4772. void SetBlockEvents(bool);
  4773. void SetBox(const Vector3&, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4774. void SetCapsule(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4775. void SetCone(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4776. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4777. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4778. void SetCustomGImpactMesh(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4779. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4780. void SetCylinder(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4781. void SetEnabled(bool);
  4782. void SetGImpactMesh(Model, uint = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4783. void SetGlobalVar(StringHash, const Variant&);
  4784. void SetInstanceDefault(bool);
  4785. void SetInterceptNetworkUpdate(const String&, bool);
  4786. void SetLodLevel(uint);
  4787. void SetMargin(float);
  4788. void SetModel(Model);
  4789. void SetModelAttr(const ResourceRef&);
  4790. void SetObjectAnimation(ObjectAnimation);
  4791. void SetObjectAnimationAttr(const ResourceRef&);
  4792. void SetPosition(const Vector3&);
  4793. void SetRotation(const Quaternion&);
  4794. void SetShapeType(ShapeType);
  4795. void SetSize(const Vector3&);
  4796. void SetSphere(float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4797. void SetStaticPlane(const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4798. void SetTemporary(bool);
  4799. void SetTerrain(uint = 0);
  4800. void SetTransform(const Vector3&, const Quaternion&);
  4801. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4802. const String& GetCategory() const;
  4803. const String& GetTypeName() const;
  4804. void UnsubscribeFromAllEvents();
  4805. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4806. void UnsubscribeFromEvent(Object, StringHash);
  4807. void UnsubscribeFromEvent(StringHash);
  4808. void UnsubscribeFromEvents(Object);
  4809. const Variant& GetGlobalVar(StringHash) const;
  4810. const VariantMap& GetGlobalVars() const;
  4811. const Vector3& GetPosition() const;
  4812. const Vector3& GetSize() const;
  4813. int WeakRefs() const;
  4814. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4815. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4816. void WriteLatestDataUpdate(Serializer&, uint8);
  4817. operator const Animatable() const;
  4818. operator const Component() const;
  4819. operator const Object() const;
  4820. operator const RefCounted() const;
  4821. operator const Serializable() const;
  4822. // Properties:
  4823. bool animationEnabled;
  4824. /* readonly */
  4825. Array<Variant> attributeDefaults;
  4826. /* readonly */
  4827. Array<AttributeInfo> attributeInfos;
  4828. Array<Variant> attributes;
  4829. /* readonly */
  4830. String category;
  4831. bool enabled;
  4832. /* readonly */
  4833. bool enabledEffective;
  4834. Array<Variant> globalVar;
  4835. /* readonly */
  4836. VariantMap globalVars;
  4837. /* readonly */
  4838. uint id;
  4839. uint lodLevel;
  4840. float margin;
  4841. Model model;
  4842. /* readonly */
  4843. Node node;
  4844. /* readonly */
  4845. uint numAttributes;
  4846. ObjectAnimation objectAnimation;
  4847. Vector3 position;
  4848. /* readonly */
  4849. int refs;
  4850. /* readonly */
  4851. bool replicated;
  4852. Quaternion rotation;
  4853. ShapeType shapeType;
  4854. Vector3 size;
  4855. bool temporary;
  4856. /* readonly */
  4857. StringHash type;
  4858. /* readonly */
  4859. String typeName;
  4860. /* readonly */
  4861. int weakRefs;
  4862. /* readonly */
  4863. BoundingBox worldBoundingBox;
  4864. };
  4865. class CollisionShape2D
  4866. {
  4867. public:
  4868. // Methods:
  4869. void AllocateNetworkState();
  4870. operator Animatable() const;
  4871. void ApplyAttributes();
  4872. void CleanupConnection(Connection);
  4873. operator CollisionBox2D() const;
  4874. operator CollisionChain2D() const;
  4875. operator CollisionCircle2D() const;
  4876. operator CollisionEdge2D() const;
  4877. operator CollisionPolygon2D() const;
  4878. operator Component() const;
  4879. void CreateFixture();
  4880. void DrawDebugGeometry(DebugRenderer, bool);
  4881. bool GetAnimationEnabled() const;
  4882. Variant GetAttribute(const String&) const;
  4883. Variant GetAttribute(uint) const;
  4884. ValueAnimation GetAttributeAnimation(const String&) const;
  4885. float GetAttributeAnimationSpeed(const String&) const;
  4886. float GetAttributeAnimationTime(const String&) const;
  4887. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4888. Variant GetAttributeDefault(const String&) const;
  4889. Variant GetAttributeDefault(uint) const;
  4890. bool GetBlockEvents() const;
  4891. int GetCategoryBits() const;
  4892. Component GetComponent(StringHash) const;
  4893. float GetDensity() const;
  4894. VariantMap& GetEventDataMap() const;
  4895. Object GetEventSender() const;
  4896. float GetFriction() const;
  4897. int GetGroupIndex() const;
  4898. uint GetID() const;
  4899. float GetInertia() const;
  4900. bool GetInterceptNetworkUpdate(const String&) const;
  4901. int GetMaskBits() const;
  4902. float GetMass() const;
  4903. Vector2 GetMassCenter() const;
  4904. Node GetNode() const;
  4905. uint GetNumAttributes() const;
  4906. uint GetNumNetworkAttributes() const;
  4907. ObjectAnimation GetObjectAnimation() const;
  4908. ResourceRef GetObjectAnimationAttr() const;
  4909. float GetRestitution() const;
  4910. Scene GetScene() const;
  4911. Object GetSubsystem(StringHash) const;
  4912. StringHash GetType() const;
  4913. bool HasEventHandlers() const;
  4914. bool HasSubscribedToEvent(Object, StringHash) const;
  4915. bool HasSubscribedToEvent(StringHash) const;
  4916. bool IsEnabled() const;
  4917. bool IsEnabledEffective() const;
  4918. bool IsInstanceOf(StringHash) const;
  4919. bool IsReplicated() const;
  4920. bool IsTemporary() const;
  4921. bool IsTrigger() const;
  4922. bool Load(Deserializer&);
  4923. bool LoadJSON(const JSONValue&);
  4924. bool LoadXML(const XMLElement&);
  4925. void MarkNetworkUpdate();
  4926. operator Object() const;
  4927. void OnEvent(Object, StringHash, VariantMap&);
  4928. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4929. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4930. void OnSetEnabled();
  4931. void PrepareNetworkUpdate();
  4932. bool ReadDeltaUpdate(Deserializer&);
  4933. bool ReadLatestDataUpdate(Deserializer&);
  4934. operator RefCounted() const;
  4935. int Refs() const;
  4936. void ReleaseFixture();
  4937. void Remove();
  4938. void RemoveAttributeAnimation(const String&);
  4939. void RemoveInstanceDefault();
  4940. void RemoveObjectAnimation();
  4941. void ResetToDefault();
  4942. bool Save(Serializer&) const;
  4943. bool SaveDefaultAttributes() const;
  4944. bool SaveJSON(JSONValue&) const;
  4945. bool SaveXML(XMLElement&) const;
  4946. void SendEvent(StringHash);
  4947. void SendEvent(StringHash, VariantMap&);
  4948. operator Serializable() const;
  4949. void SetAnimationEnabled(bool);
  4950. void SetAnimationTime(float);
  4951. bool SetAttribute(const String&, const Variant&);
  4952. bool SetAttribute(uint, const Variant&);
  4953. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4954. void SetAttributeAnimationSpeed(const String&, float);
  4955. void SetAttributeAnimationTime(const String&, float);
  4956. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4957. void SetBlockEvents(bool);
  4958. void SetCategoryBits(int);
  4959. void SetDensity(float);
  4960. void SetEnabled(bool);
  4961. void SetFriction(float);
  4962. void SetGlobalVar(StringHash, const Variant&);
  4963. void SetGroupIndex(int);
  4964. void SetInstanceDefault(bool);
  4965. void SetInterceptNetworkUpdate(const String&, bool);
  4966. void SetMaskBits(int);
  4967. void SetObjectAnimation(ObjectAnimation);
  4968. void SetObjectAnimationAttr(const ResourceRef&);
  4969. void SetRestitution(float);
  4970. void SetTemporary(bool);
  4971. void SetTrigger(bool);
  4972. const String& GetCategory() const;
  4973. const String& GetTypeName() const;
  4974. void UnsubscribeFromAllEvents();
  4975. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4976. void UnsubscribeFromEvent(Object, StringHash);
  4977. void UnsubscribeFromEvent(StringHash);
  4978. void UnsubscribeFromEvents(Object);
  4979. const Variant& GetGlobalVar(StringHash) const;
  4980. const VariantMap& GetGlobalVars() const;
  4981. int WeakRefs() const;
  4982. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4983. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4984. void WriteLatestDataUpdate(Serializer&, uint8);
  4985. operator const Animatable() const;
  4986. operator const CollisionBox2D() const;
  4987. operator const CollisionChain2D() const;
  4988. operator const CollisionCircle2D() const;
  4989. operator const CollisionEdge2D() const;
  4990. operator const CollisionPolygon2D() const;
  4991. operator const Component() const;
  4992. operator const Object() const;
  4993. operator const RefCounted() const;
  4994. operator const Serializable() const;
  4995. // Properties:
  4996. bool animationEnabled;
  4997. /* readonly */
  4998. Array<Variant> attributeDefaults;
  4999. /* readonly */
  5000. Array<AttributeInfo> attributeInfos;
  5001. Array<Variant> attributes;
  5002. /* readonly */
  5003. String category;
  5004. int categoryBits;
  5005. float density;
  5006. bool enabled;
  5007. /* readonly */
  5008. bool enabledEffective;
  5009. float friction;
  5010. Array<Variant> globalVar;
  5011. /* readonly */
  5012. VariantMap globalVars;
  5013. int groupIndex;
  5014. /* readonly */
  5015. uint id;
  5016. /* readonly */
  5017. float inertia;
  5018. int maskBits;
  5019. /* readonly */
  5020. float mass;
  5021. /* readonly */
  5022. Vector2 massCenter;
  5023. /* readonly */
  5024. Node node;
  5025. /* readonly */
  5026. uint numAttributes;
  5027. ObjectAnimation objectAnimation;
  5028. /* readonly */
  5029. int refs;
  5030. /* readonly */
  5031. bool replicated;
  5032. float restitution;
  5033. bool temporary;
  5034. bool trigger;
  5035. /* readonly */
  5036. StringHash type;
  5037. /* readonly */
  5038. String typeName;
  5039. /* readonly */
  5040. int weakRefs;
  5041. };
  5042. class Color
  5043. {
  5044. public:
  5045. Color();
  5046. Color(const Color&in);
  5047. Color(const Color&in, float);
  5048. Color(float, float, float);
  5049. Color(float, float, float, float);
  5050. Color(const Vector3&in);
  5051. Color(const Vector4&in);
  5052. Color(float[]&inout);
  5053. // Methods:
  5054. Color operator+(const Color&) const;
  5055. Color& operator+=(const Color&);
  5056. Color& operator=(const Color&);
  5057. bool operator==(const Color&) const;
  5058. Color Abs() const;
  5059. float Average() const;
  5060. float Chroma() const;
  5061. void Clip(bool = false);
  5062. bool Equals(const Color&) const;
  5063. void FromHSL(float, float, float, float = 1.0f);
  5064. void FromHSV(float, float, float, float = 1.0f);
  5065. void FromUInt(uint);
  5066. Color GammaToLinear() const;
  5067. float Hue() const;
  5068. void Invert(bool = false);
  5069. Color Lerp(const Color&, float) const;
  5070. float Lightness() const;
  5071. Color LinearToGamma() const;
  5072. float Luma() const;
  5073. float MaxRGB() const;
  5074. float MinRGB() const;
  5075. float Range() const;
  5076. float SaturationHSL() const;
  5077. float SaturationHSV() const;
  5078. float SumRGB() const;
  5079. Vector3 ToHSL() const;
  5080. Vector3 ToHSV() const;
  5081. uint ToHash() const;
  5082. String ToString() const;
  5083. uint ToUInt() const;
  5084. uint ToUIntArgb() const;
  5085. Vector3 ToVector3() const;
  5086. Vector4 ToVector4() const;
  5087. float Value() const;
  5088. // Properties:
  5089. float a;
  5090. float b;
  5091. /* readonly */
  5092. Array<float> data;
  5093. float g;
  5094. float r;
  5095. /* readonly */
  5096. Vector3 rgb;
  5097. /* readonly */
  5098. Vector4 rgba;
  5099. // Constants:
  5100. static const Color BLACK;
  5101. static const Color BLUE;
  5102. static const Color CYAN;
  5103. static const Color GRAY;
  5104. static const Color GREEN;
  5105. static const Color MAGENTA;
  5106. static const Color RED;
  5107. static const Color TRANSPARENT_BLACK;
  5108. static const Color WHITE;
  5109. static const Color YELLOW;
  5110. };
  5111. class ColorFrame
  5112. {
  5113. public:
  5114. // Methods:
  5115. ColorFrame& operator=(const ColorFrame&);
  5116. Color Interpolate(const ColorFrame&, float) const;
  5117. // Properties:
  5118. Color color;
  5119. float time;
  5120. };
  5121. class Component
  5122. {
  5123. public:
  5124. Component();
  5125. // Methods:
  5126. void AllocateNetworkState();
  5127. operator Animatable() const;
  5128. operator AnimatedModel() const;
  5129. operator AnimatedSprite2D() const;
  5130. operator AnimationController() const;
  5131. void ApplyAttributes();
  5132. operator BillboardSet() const;
  5133. operator Camera() const;
  5134. void CleanupConnection(Connection);
  5135. operator CollisionBox2D() const;
  5136. operator CollisionChain2D() const;
  5137. operator CollisionCircle2D() const;
  5138. operator CollisionEdge2D() const;
  5139. operator CollisionPolygon2D() const;
  5140. operator CollisionShape2D() const;
  5141. operator CollisionShape() const;
  5142. operator Constraint2D() const;
  5143. operator Constraint() const;
  5144. operator ConstraintDistance2D() const;
  5145. operator ConstraintFriction2D() const;
  5146. operator ConstraintGear2D() const;
  5147. operator ConstraintMotor2D() const;
  5148. operator ConstraintMouse2D() const;
  5149. operator ConstraintPrismatic2D() const;
  5150. operator ConstraintPulley2D() const;
  5151. operator ConstraintRevolute2D() const;
  5152. operator ConstraintWeld2D() const;
  5153. operator ConstraintWheel2D() const;
  5154. operator CrowdAgent() const;
  5155. operator CrowdManager() const;
  5156. operator CustomGeometry() const;
  5157. operator DebugRenderer() const;
  5158. operator DecalSet() const;
  5159. void DrawDebugGeometry(DebugRenderer, bool);
  5160. operator Drawable2D() const;
  5161. operator Drawable() const;
  5162. operator DynamicNavigationMesh() const;
  5163. bool GetAnimationEnabled() const;
  5164. Variant GetAttribute(const String&) const;
  5165. Variant GetAttribute(uint) const;
  5166. ValueAnimation GetAttributeAnimation(const String&) const;
  5167. float GetAttributeAnimationSpeed(const String&) const;
  5168. float GetAttributeAnimationTime(const String&) const;
  5169. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5170. Variant GetAttributeDefault(const String&) const;
  5171. Variant GetAttributeDefault(uint) const;
  5172. bool GetBlockEvents() const;
  5173. Component GetComponent(StringHash) const;
  5174. VariantMap& GetEventDataMap() const;
  5175. Object GetEventSender() const;
  5176. uint GetID() const;
  5177. bool GetInterceptNetworkUpdate(const String&) const;
  5178. Node GetNode() const;
  5179. uint GetNumAttributes() const;
  5180. uint GetNumNetworkAttributes() const;
  5181. ObjectAnimation GetObjectAnimation() const;
  5182. ResourceRef GetObjectAnimationAttr() const;
  5183. Scene GetScene() const;
  5184. Object GetSubsystem(StringHash) const;
  5185. StringHash GetType() const;
  5186. bool HasEventHandlers() const;
  5187. bool HasSubscribedToEvent(Object, StringHash) const;
  5188. bool HasSubscribedToEvent(StringHash) const;
  5189. operator IKConstraint() const;
  5190. operator IKEffector() const;
  5191. operator IKSolver() const;
  5192. bool IsEnabled() const;
  5193. bool IsEnabledEffective() const;
  5194. bool IsInstanceOf(StringHash) const;
  5195. bool IsReplicated() const;
  5196. bool IsTemporary() const;
  5197. operator Light() const;
  5198. bool Load(Deserializer&);
  5199. bool LoadJSON(const JSONValue&);
  5200. bool LoadXML(const XMLElement&);
  5201. operator LogicComponent() const;
  5202. void MarkNetworkUpdate();
  5203. operator NavArea() const;
  5204. operator Navigable() const;
  5205. operator NavigationMesh() const;
  5206. operator NetworkPriority() const;
  5207. operator Object() const;
  5208. operator Obstacle() const;
  5209. operator Octree() const;
  5210. operator OffMeshConnection() const;
  5211. void OnEvent(Object, StringHash, VariantMap&);
  5212. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5213. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5214. void OnSetEnabled();
  5215. operator ParticleEmitter2D() const;
  5216. operator ParticleEmitter() const;
  5217. operator PhysicsWorld2D() const;
  5218. operator PhysicsWorld() const;
  5219. void PrepareNetworkUpdate();
  5220. operator RaycastVehicle() const;
  5221. bool ReadDeltaUpdate(Deserializer&);
  5222. bool ReadLatestDataUpdate(Deserializer&);
  5223. operator RefCounted() const;
  5224. int Refs() const;
  5225. void Remove();
  5226. void RemoveAttributeAnimation(const String&);
  5227. void RemoveInstanceDefault();
  5228. void RemoveObjectAnimation();
  5229. operator Renderer2D() const;
  5230. void ResetToDefault();
  5231. operator RibbonTrail() const;
  5232. operator RigidBody2D() const;
  5233. operator RigidBody() const;
  5234. bool Save(Serializer&) const;
  5235. bool SaveDefaultAttributes() const;
  5236. bool SaveJSON(JSONValue&) const;
  5237. bool SaveXML(XMLElement&) const;
  5238. operator ScriptInstance() const;
  5239. void SendEvent(StringHash);
  5240. void SendEvent(StringHash, VariantMap&);
  5241. operator Serializable() const;
  5242. void SetAnimationEnabled(bool);
  5243. void SetAnimationTime(float);
  5244. bool SetAttribute(const String&, const Variant&);
  5245. bool SetAttribute(uint, const Variant&);
  5246. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5247. void SetAttributeAnimationSpeed(const String&, float);
  5248. void SetAttributeAnimationTime(const String&, float);
  5249. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5250. void SetBlockEvents(bool);
  5251. void SetEnabled(bool);
  5252. void SetGlobalVar(StringHash, const Variant&);
  5253. void SetInstanceDefault(bool);
  5254. void SetInterceptNetworkUpdate(const String&, bool);
  5255. void SetObjectAnimation(ObjectAnimation);
  5256. void SetObjectAnimationAttr(const ResourceRef&);
  5257. void SetTemporary(bool);
  5258. operator Skybox() const;
  5259. operator SmoothedTransform() const;
  5260. operator SoundListener() const;
  5261. operator SoundSource3D() const;
  5262. operator SoundSource() const;
  5263. operator SplinePath() const;
  5264. operator StaticModel() const;
  5265. operator StaticModelGroup() const;
  5266. operator StaticSprite2D() const;
  5267. operator StretchableSprite2D() const;
  5268. const String& GetCategory() const;
  5269. const String& GetTypeName() const;
  5270. operator Terrain() const;
  5271. operator TerrainPatch() const;
  5272. operator Text3D() const;
  5273. operator TileMap2D() const;
  5274. operator TileMapLayer2D() const;
  5275. operator UIComponent() const;
  5276. operator UnknownComponent() const;
  5277. void UnsubscribeFromAllEvents();
  5278. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5279. void UnsubscribeFromEvent(Object, StringHash);
  5280. void UnsubscribeFromEvent(StringHash);
  5281. void UnsubscribeFromEvents(Object);
  5282. const Variant& GetGlobalVar(StringHash) const;
  5283. const VariantMap& GetGlobalVars() const;
  5284. int WeakRefs() const;
  5285. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  5286. void WriteInitialDeltaUpdate(Serializer&, uint8);
  5287. void WriteLatestDataUpdate(Serializer&, uint8);
  5288. operator Zone() const;
  5289. operator const Animatable() const;
  5290. operator const AnimatedModel() const;
  5291. operator const AnimatedSprite2D() const;
  5292. operator const AnimationController() const;
  5293. operator const BillboardSet() const;
  5294. operator const Camera() const;
  5295. operator const CollisionBox2D() const;
  5296. operator const CollisionChain2D() const;
  5297. operator const CollisionCircle2D() const;
  5298. operator const CollisionEdge2D() const;
  5299. operator const CollisionPolygon2D() const;
  5300. operator const CollisionShape2D() const;
  5301. operator const CollisionShape() const;
  5302. operator const Constraint2D() const;
  5303. operator const Constraint() const;
  5304. operator const ConstraintDistance2D() const;
  5305. operator const ConstraintFriction2D() const;
  5306. operator const ConstraintGear2D() const;
  5307. operator const ConstraintMotor2D() const;
  5308. operator const ConstraintMouse2D() const;
  5309. operator const ConstraintPrismatic2D() const;
  5310. operator const ConstraintPulley2D() const;
  5311. operator const ConstraintRevolute2D() const;
  5312. operator const ConstraintWeld2D() const;
  5313. operator const ConstraintWheel2D() const;
  5314. operator const CrowdAgent() const;
  5315. operator const CrowdManager() const;
  5316. operator const CustomGeometry() const;
  5317. operator const DebugRenderer() const;
  5318. operator const DecalSet() const;
  5319. operator const Drawable2D() const;
  5320. operator const Drawable() const;
  5321. operator const DynamicNavigationMesh() const;
  5322. operator const IKConstraint() const;
  5323. operator const IKEffector() const;
  5324. operator const IKSolver() const;
  5325. operator const Light() const;
  5326. operator const LogicComponent() const;
  5327. operator const NavArea() const;
  5328. operator const Navigable() const;
  5329. operator const NavigationMesh() const;
  5330. operator const NetworkPriority() const;
  5331. operator const Object() const;
  5332. operator const Obstacle() const;
  5333. operator const Octree() const;
  5334. operator const OffMeshConnection() const;
  5335. operator const ParticleEmitter2D() const;
  5336. operator const ParticleEmitter() const;
  5337. operator const PhysicsWorld2D() const;
  5338. operator const PhysicsWorld() const;
  5339. operator const RaycastVehicle() const;
  5340. operator const RefCounted() const;
  5341. operator const Renderer2D() const;
  5342. operator const RibbonTrail() const;
  5343. operator const RigidBody2D() const;
  5344. operator const RigidBody() const;
  5345. operator const ScriptInstance() const;
  5346. operator const Serializable() const;
  5347. operator const Skybox() const;
  5348. operator const SmoothedTransform() const;
  5349. operator const SoundListener() const;
  5350. operator const SoundSource3D() const;
  5351. operator const SoundSource() const;
  5352. operator const SplinePath() const;
  5353. operator const StaticModel() const;
  5354. operator const StaticModelGroup() const;
  5355. operator const StaticSprite2D() const;
  5356. operator const StretchableSprite2D() const;
  5357. operator const Terrain() const;
  5358. operator const TerrainPatch() const;
  5359. operator const Text3D() const;
  5360. operator const TileMap2D() const;
  5361. operator const TileMapLayer2D() const;
  5362. operator const UIComponent() const;
  5363. operator const UnknownComponent() const;
  5364. operator const Zone() const;
  5365. // Properties:
  5366. bool animationEnabled;
  5367. /* readonly */
  5368. Array<Variant> attributeDefaults;
  5369. /* readonly */
  5370. Array<AttributeInfo> attributeInfos;
  5371. Array<Variant> attributes;
  5372. /* readonly */
  5373. String category;
  5374. bool enabled;
  5375. /* readonly */
  5376. bool enabledEffective;
  5377. Array<Variant> globalVar;
  5378. /* readonly */
  5379. VariantMap globalVars;
  5380. /* readonly */
  5381. uint id;
  5382. /* readonly */
  5383. Node node;
  5384. /* readonly */
  5385. uint numAttributes;
  5386. ObjectAnimation objectAnimation;
  5387. /* readonly */
  5388. int refs;
  5389. /* readonly */
  5390. bool replicated;
  5391. bool temporary;
  5392. /* readonly */
  5393. StringHash type;
  5394. /* readonly */
  5395. String typeName;
  5396. /* readonly */
  5397. int weakRefs;
  5398. };
  5399. class ComponentReplicationState
  5400. {
  5401. public:
  5402. ~ComponentReplicationState();
  5403. ComponentReplicationState();
  5404. // Methods:
  5405. ComponentReplicationState& operator=(const ComponentReplicationState&);
  5406. // Properties:
  5407. DirtyBits dirtyAttributes;
  5408. };
  5409. class CompressedLevel
  5410. {
  5411. public:
  5412. ~CompressedLevel();
  5413. CompressedLevel();
  5414. // Methods:
  5415. CompressedLevel& operator=(const CompressedLevel&);
  5416. // Properties:
  5417. uint blockSize;
  5418. uint dataSize;
  5419. int depth;
  5420. CompressedFormat format;
  5421. int height;
  5422. uint rowSize;
  5423. uint rows;
  5424. int width;
  5425. };
  5426. class Condition
  5427. {
  5428. public:
  5429. ~Condition();
  5430. Condition();
  5431. // Methods:
  5432. Condition& operator=(const Condition&);
  5433. void Set();
  5434. void Wait();
  5435. };
  5436. class Connection
  5437. {
  5438. public:
  5439. // Methods:
  5440. void Ban();
  5441. void ConfigureNetworkSimulator(int, float);
  5442. const Controls& GetControls() const;
  5443. void Disconnect(int = 0);
  5444. String GetAddress() const;
  5445. bool GetBlockEvents() const;
  5446. float GetBytesInPerSec() const;
  5447. float GetBytesOutPerSec() const;
  5448. float GetDownloadProgress() const;
  5449. VariantMap& GetEventDataMap() const;
  5450. Object GetEventSender() const;
  5451. VariantMap& GetIdentity();
  5452. uint GetLastHeardTime() const;
  5453. bool GetLogStatistics() const;
  5454. uint GetNumDownloads() const;
  5455. PacketType GetPacketType(bool, bool);
  5456. int GetPacketsInPerSec() const;
  5457. int GetPacketsOutPerSec() const;
  5458. uint16 GetPort() const;
  5459. float GetRoundTripTime() const;
  5460. Scene GetScene() const;
  5461. Object GetSubsystem(StringHash) const;
  5462. uint8 GetTimeStamp() const;
  5463. StringHash GetType() const;
  5464. bool HasEventHandlers() const;
  5465. bool HasSubscribedToEvent(Object, StringHash) const;
  5466. bool HasSubscribedToEvent(StringHash) const;
  5467. bool IsClient() const;
  5468. bool IsConnectPending() const;
  5469. bool IsConnected() const;
  5470. bool IsInstanceOf(StringHash) const;
  5471. bool IsSceneLoaded() const;
  5472. operator Object() const;
  5473. void OnEvent(Object, StringHash, VariantMap&);
  5474. void ProcessPendingLatestData();
  5475. const Quaternion& GetRotation() const;
  5476. operator RefCounted() const;
  5477. int Refs() const;
  5478. void SendAllBuffers();
  5479. void SendBuffer(PacketType);
  5480. void SendClientUpdate();
  5481. void SendEvent(StringHash);
  5482. void SendEvent(StringHash, VariantMap&);
  5483. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  5484. void SendPackageToClient(PackageFile);
  5485. void SendPackages();
  5486. void SendRemoteEvent(Node, StringHash, bool, const VariantMap& = VariantMap ( ));
  5487. void SendRemoteEvent(StringHash, bool, const VariantMap& = VariantMap ( ));
  5488. void SendRemoteEvents();
  5489. void SendServerUpdate();
  5490. void SetBlockEvents(bool);
  5491. void SetConnectPending(bool);
  5492. void SetControls(const Controls&);
  5493. void SetGlobalVar(StringHash, const Variant&);
  5494. void SetIdentity(const VariantMap&);
  5495. void SetLogStatistics(bool);
  5496. void SetPacketSizeLimit(int);
  5497. void SetPosition(const Vector3&);
  5498. void SetRotation(const Quaternion&);
  5499. void SetScene(Scene);
  5500. const String& GetCategory() const;
  5501. const String& GetDownloadName() const;
  5502. const String& GetTypeName() const;
  5503. String ToString() const;
  5504. void UnsubscribeFromAllEvents();
  5505. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5506. void UnsubscribeFromEvent(Object, StringHash);
  5507. void UnsubscribeFromEvent(StringHash);
  5508. void UnsubscribeFromEvents(Object);
  5509. const Variant& GetGlobalVar(StringHash) const;
  5510. const VariantMap& GetGlobalVars() const;
  5511. const Vector3& GetPosition() const;
  5512. int WeakRefs() const;
  5513. operator const Object() const;
  5514. operator const RefCounted() const;
  5515. // Properties:
  5516. /* readonly */
  5517. String address;
  5518. /* readonly */
  5519. float bytesInPerSec;
  5520. /* readonly */
  5521. float bytesOutPerSec;
  5522. /* readonly */
  5523. String category;
  5524. /* readonly */
  5525. bool client;
  5526. /* readonly */
  5527. bool connectPending;
  5528. /* readonly */
  5529. bool connected;
  5530. Controls controls;
  5531. /* readonly */
  5532. String downloadName;
  5533. /* readonly */
  5534. float downloadProgress;
  5535. Array<Variant> globalVar;
  5536. /* readonly */
  5537. VariantMap globalVars;
  5538. VariantMap identity;
  5539. /* readonly */
  5540. uint lastHeardTime;
  5541. bool logStatistics;
  5542. /* readonly */
  5543. uint numDownloads;
  5544. /* readonly */
  5545. int packetsInPerSec;
  5546. /* readonly */
  5547. int packetsOutPerSec;
  5548. /* readonly */
  5549. uint16 port;
  5550. Vector3 position;
  5551. /* readonly */
  5552. int refs;
  5553. Quaternion rotation;
  5554. /* readonly */
  5555. float roundTripTime;
  5556. Scene scene;
  5557. /* readonly */
  5558. bool sceneLoaded;
  5559. uint8 timeStamp;
  5560. /* readonly */
  5561. StringHash type;
  5562. /* readonly */
  5563. String typeName;
  5564. /* readonly */
  5565. int weakRefs;
  5566. };
  5567. class Console
  5568. {
  5569. public:
  5570. Console();
  5571. // Methods:
  5572. void AddAutoComplete(const String&);
  5573. void CopySelectedRows() const;
  5574. BorderImage GetBackground() const;
  5575. bool GetBlockEvents() const;
  5576. Button GetCloseButton() const;
  5577. XMLFile GetDefaultStyle() const;
  5578. VariantMap& GetEventDataMap() const;
  5579. Object GetEventSender() const;
  5580. bool GetFocusOnShow() const;
  5581. uint GetHistoryPosition() const;
  5582. LineEdit GetLineEdit() const;
  5583. uint GetNumBufferedRows() const;
  5584. uint GetNumHistoryRows() const;
  5585. uint GetNumRows() const;
  5586. Object GetSubsystem(StringHash) const;
  5587. StringHash GetType() const;
  5588. bool HasEventHandlers() const;
  5589. bool HasSubscribedToEvent(Object, StringHash) const;
  5590. bool HasSubscribedToEvent(StringHash) const;
  5591. bool IsAutoVisibleOnError() const;
  5592. bool IsInstanceOf(StringHash) const;
  5593. bool IsVisible() const;
  5594. operator Object() const;
  5595. void OnEvent(Object, StringHash, VariantMap&);
  5596. operator RefCounted() const;
  5597. int Refs() const;
  5598. void RemoveAutoComplete(const String&);
  5599. void SendEvent(StringHash);
  5600. void SendEvent(StringHash, VariantMap&);
  5601. void SetAutoVisibleOnError(bool);
  5602. void SetBlockEvents(bool);
  5603. void SetCommandInterpreter(const String&);
  5604. void SetDefaultStyle(XMLFile);
  5605. void SetFocusOnShow(bool);
  5606. void SetGlobalVar(StringHash, const Variant&);
  5607. void SetNumBufferedRows(uint);
  5608. void SetNumHistoryRows(uint);
  5609. void SetNumRows(uint);
  5610. void SetVisible(bool);
  5611. const String& GetCategory() const;
  5612. const String& GetCommandInterpreter() const;
  5613. const String& GetHistoryRow(uint) const;
  5614. const String& GetTypeName() const;
  5615. void Toggle();
  5616. void UnsubscribeFromAllEvents();
  5617. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5618. void UnsubscribeFromEvent(Object, StringHash);
  5619. void UnsubscribeFromEvent(StringHash);
  5620. void UnsubscribeFromEvents(Object);
  5621. void UpdateElements();
  5622. const Variant& GetGlobalVar(StringHash) const;
  5623. const VariantMap& GetGlobalVars() const;
  5624. int WeakRefs() const;
  5625. operator const Object() const;
  5626. operator const RefCounted() const;
  5627. // Properties:
  5628. bool autoVisibleOnError;
  5629. /* readonly */
  5630. BorderImage background;
  5631. /* readonly */
  5632. String category;
  5633. /* readonly */
  5634. Button closeButton;
  5635. String commandInterpreter;
  5636. XMLFile defaultStyle;
  5637. bool focusOnShow;
  5638. Array<Variant> globalVar;
  5639. /* readonly */
  5640. VariantMap globalVars;
  5641. /* readonly */
  5642. uint historyPosition;
  5643. /* readonly */
  5644. Array<String> historyRow;
  5645. /* readonly */
  5646. LineEdit lineEdit;
  5647. uint numBufferedRows;
  5648. uint numHistoryRows;
  5649. uint numRows;
  5650. /* readonly */
  5651. int refs;
  5652. /* readonly */
  5653. StringHash type;
  5654. /* readonly */
  5655. String typeName;
  5656. bool visible;
  5657. /* readonly */
  5658. int weakRefs;
  5659. };
  5660. class ConstantBuffer
  5661. {
  5662. public:
  5663. ConstantBuffer();
  5664. // Methods:
  5665. void Apply();
  5666. void ClearDataLost();
  5667. bool GetBlockEvents() const;
  5668. VariantMap& GetEventDataMap() const;
  5669. Object GetEventSender() const;
  5670. uint GetGPUObjectName() const;
  5671. Graphics GetGraphics() const;
  5672. uint GetSize() const;
  5673. Object GetSubsystem(StringHash) const;
  5674. StringHash GetType() const;
  5675. bool HasEventHandlers() const;
  5676. bool HasPendingData() const;
  5677. bool HasSubscribedToEvent(Object, StringHash) const;
  5678. bool HasSubscribedToEvent(StringHash) const;
  5679. bool IsDataLost() const;
  5680. bool IsDirty() const;
  5681. bool IsInstanceOf(StringHash) const;
  5682. operator Object() const;
  5683. void OnDeviceLost();
  5684. void OnDeviceReset();
  5685. void OnEvent(Object, StringHash, VariantMap&);
  5686. operator RefCounted() const;
  5687. int Refs() const;
  5688. void Release();
  5689. void SendEvent(StringHash);
  5690. void SendEvent(StringHash, VariantMap&);
  5691. void SetBlockEvents(bool);
  5692. void SetGlobalVar(StringHash, const Variant&);
  5693. bool SetSize(uint);
  5694. const String& GetCategory() const;
  5695. const String& GetTypeName() const;
  5696. void UnsubscribeFromAllEvents();
  5697. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5698. void UnsubscribeFromEvent(Object, StringHash);
  5699. void UnsubscribeFromEvent(StringHash);
  5700. void UnsubscribeFromEvents(Object);
  5701. const Variant& GetGlobalVar(StringHash) const;
  5702. const VariantMap& GetGlobalVars() const;
  5703. int WeakRefs() const;
  5704. operator const Object() const;
  5705. operator const RefCounted() const;
  5706. // Properties:
  5707. /* readonly */
  5708. String category;
  5709. /* readonly */
  5710. bool dataLost;
  5711. Array<Variant> globalVar;
  5712. /* readonly */
  5713. VariantMap globalVars;
  5714. /* readonly */
  5715. int refs;
  5716. /* readonly */
  5717. StringHash type;
  5718. /* readonly */
  5719. String typeName;
  5720. /* readonly */
  5721. int weakRefs;
  5722. };
  5723. class Constraint
  5724. {
  5725. public:
  5726. Constraint();
  5727. // Methods:
  5728. void AllocateNetworkState();
  5729. operator Animatable() const;
  5730. void ApplyAttributes();
  5731. void ApplyFrames();
  5732. void CleanupConnection(Connection);
  5733. operator Component() const;
  5734. void DrawDebugGeometry(DebugRenderer, bool);
  5735. bool GetAnimationEnabled() const;
  5736. Variant GetAttribute(const String&) const;
  5737. Variant GetAttribute(uint) const;
  5738. ValueAnimation GetAttributeAnimation(const String&) const;
  5739. float GetAttributeAnimationSpeed(const String&) const;
  5740. float GetAttributeAnimationTime(const String&) const;
  5741. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5742. Variant GetAttributeDefault(const String&) const;
  5743. Variant GetAttributeDefault(uint) const;
  5744. bool GetBlockEvents() const;
  5745. float GetCFM() const;
  5746. Component GetComponent(StringHash) const;
  5747. ConstraintType GetConstraintType() const;
  5748. bool GetDisableCollision() const;
  5749. float GetERP() const;
  5750. VariantMap& GetEventDataMap() const;
  5751. Object GetEventSender() const;
  5752. uint GetID() const;
  5753. bool GetInterceptNetworkUpdate(const String&) const;
  5754. Node GetNode() const;
  5755. uint GetNumAttributes() const;
  5756. uint GetNumNetworkAttributes() const;
  5757. ObjectAnimation GetObjectAnimation() const;
  5758. ResourceRef GetObjectAnimationAttr() const;
  5759. RigidBody GetOtherBody() const;
  5760. RigidBody GetOwnBody() const;
  5761. PhysicsWorld GetPhysicsWorld() const;
  5762. Scene GetScene() const;
  5763. Object GetSubsystem(StringHash) const;
  5764. StringHash GetType() const;
  5765. Vector3 GetWorldPosition() const;
  5766. bool HasEventHandlers() const;
  5767. bool HasSubscribedToEvent(Object, StringHash) const;
  5768. bool HasSubscribedToEvent(StringHash) const;
  5769. bool IsEnabled() const;
  5770. bool IsEnabledEffective() const;
  5771. bool IsInstanceOf(StringHash) const;
  5772. bool IsReplicated() const;
  5773. bool IsTemporary() const;
  5774. bool Load(Deserializer&);
  5775. bool LoadJSON(const JSONValue&);
  5776. bool LoadXML(const XMLElement&);
  5777. void MarkNetworkUpdate();
  5778. operator Object() const;
  5779. void OnEvent(Object, StringHash, VariantMap&);
  5780. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5781. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5782. void OnSetEnabled();
  5783. void PrepareNetworkUpdate();
  5784. const Quaternion& GetOtherRotation() const;
  5785. const Quaternion& GetRotation() const;
  5786. bool ReadDeltaUpdate(Deserializer&);
  5787. bool ReadLatestDataUpdate(Deserializer&);
  5788. operator RefCounted() const;
  5789. int Refs() const;
  5790. void ReleaseConstraint();
  5791. void Remove();
  5792. void RemoveAttributeAnimation(const String&);
  5793. void RemoveInstanceDefault();
  5794. void RemoveObjectAnimation();
  5795. void ResetToDefault();
  5796. bool Save(Serializer&) const;
  5797. bool SaveDefaultAttributes() const;
  5798. bool SaveJSON(JSONValue&) const;
  5799. bool SaveXML(XMLElement&) const;
  5800. void SendEvent(StringHash);
  5801. void SendEvent(StringHash, VariantMap&);
  5802. operator Serializable() const;
  5803. void SetAnimationEnabled(bool);
  5804. void SetAnimationTime(float);
  5805. bool SetAttribute(const String&, const Variant&);
  5806. bool SetAttribute(uint, const Variant&);
  5807. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5808. void SetAttributeAnimationSpeed(const String&, float);
  5809. void SetAttributeAnimationTime(const String&, float);
  5810. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5811. void SetAxis(const Vector3&);
  5812. void SetBlockEvents(bool);
  5813. void SetCFM(float);
  5814. void SetConstraintType(ConstraintType);
  5815. void SetDisableCollision(bool);
  5816. void SetERP(float);
  5817. void SetEnabled(bool);
  5818. void SetGlobalVar(StringHash, const Variant&);
  5819. void SetHighLimit(const Vector2&);
  5820. void SetInstanceDefault(bool);
  5821. void SetInterceptNetworkUpdate(const String&, bool);
  5822. void SetLowLimit(const Vector2&);
  5823. void SetObjectAnimation(ObjectAnimation);
  5824. void SetObjectAnimationAttr(const ResourceRef&);
  5825. void SetOtherAxis(const Vector3&);
  5826. void SetOtherBody(RigidBody);
  5827. void SetOtherPosition(const Vector3&);
  5828. void SetOtherRotation(const Quaternion&);
  5829. void SetPosition(const Vector3&);
  5830. void SetRotation(const Quaternion&);
  5831. void SetTemporary(bool);
  5832. void SetWorldPosition(const Vector3&);
  5833. const String& GetCategory() const;
  5834. const String& GetTypeName() const;
  5835. void UnsubscribeFromAllEvents();
  5836. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5837. void UnsubscribeFromEvent(Object, StringHash);
  5838. void UnsubscribeFromEvent(StringHash);
  5839. void UnsubscribeFromEvents(Object);
  5840. const Variant& GetGlobalVar(StringHash) const;
  5841. const VariantMap& GetGlobalVars() const;
  5842. const Vector2& GetHighLimit() const;
  5843. const Vector2& GetLowLimit() const;
  5844. const Vector3& GetOtherPosition() const;
  5845. const Vector3& GetPosition() const;
  5846. int WeakRefs() const;
  5847. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  5848. void WriteInitialDeltaUpdate(Serializer&, uint8);
  5849. void WriteLatestDataUpdate(Serializer&, uint8);
  5850. operator const Animatable() const;
  5851. operator const Component() const;
  5852. operator const Object() const;
  5853. operator const RefCounted() const;
  5854. operator const Serializable() const;
  5855. // Properties:
  5856. bool animationEnabled;
  5857. /* readonly */
  5858. Array<Variant> attributeDefaults;
  5859. /* readonly */
  5860. Array<AttributeInfo> attributeInfos;
  5861. Array<Variant> attributes;
  5862. /* writeonly */
  5863. Vector3 axis;
  5864. /* readonly */
  5865. String category;
  5866. float cfm;
  5867. ConstraintType constraintType;
  5868. bool disableCollision;
  5869. bool enabled;
  5870. /* readonly */
  5871. bool enabledEffective;
  5872. float erp;
  5873. Array<Variant> globalVar;
  5874. /* readonly */
  5875. VariantMap globalVars;
  5876. Vector2 highLimit;
  5877. /* readonly */
  5878. uint id;
  5879. Vector2 lowLimit;
  5880. /* readonly */
  5881. Node node;
  5882. /* readonly */
  5883. uint numAttributes;
  5884. ObjectAnimation objectAnimation;
  5885. /* writeonly */
  5886. Vector3 otherAxis;
  5887. RigidBody otherBody;
  5888. Vector3 otherPosition;
  5889. Quaternion otherRotation;
  5890. /* readonly */
  5891. RigidBody ownBody;
  5892. Vector3 position;
  5893. /* readonly */
  5894. int refs;
  5895. /* readonly */
  5896. bool replicated;
  5897. Quaternion rotation;
  5898. bool temporary;
  5899. /* readonly */
  5900. StringHash type;
  5901. /* readonly */
  5902. String typeName;
  5903. /* readonly */
  5904. int weakRefs;
  5905. Vector3 worldPosition;
  5906. };
  5907. class Constraint2D
  5908. {
  5909. public:
  5910. Constraint2D();
  5911. // Methods:
  5912. void AllocateNetworkState();
  5913. operator Animatable() const;
  5914. void ApplyAttributes();
  5915. void CleanupConnection(Connection);
  5916. operator Component() const;
  5917. operator ConstraintDistance2D() const;
  5918. operator ConstraintFriction2D() const;
  5919. operator ConstraintGear2D() const;
  5920. operator ConstraintMotor2D() const;
  5921. operator ConstraintMouse2D() const;
  5922. operator ConstraintPrismatic2D() const;
  5923. operator ConstraintPulley2D() const;
  5924. operator ConstraintRevolute2D() const;
  5925. operator ConstraintWeld2D() const;
  5926. operator ConstraintWheel2D() const;
  5927. void CreateJoint();
  5928. void DrawDebugGeometry(DebugRenderer, bool);
  5929. bool GetAnimationEnabled() const;
  5930. Constraint2D GetAttachedConstraint() const;
  5931. Variant GetAttribute(const String&) const;
  5932. Variant GetAttribute(uint) const;
  5933. ValueAnimation GetAttributeAnimation(const String&) const;
  5934. float GetAttributeAnimationSpeed(const String&) const;
  5935. float GetAttributeAnimationTime(const String&) const;
  5936. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5937. Variant GetAttributeDefault(const String&) const;
  5938. Variant GetAttributeDefault(uint) const;
  5939. bool GetBlockEvents() const;
  5940. bool GetCollideConnected() const;
  5941. Component GetComponent(StringHash) const;
  5942. VariantMap& GetEventDataMap() const;
  5943. Object GetEventSender() const;
  5944. uint GetID() const;
  5945. bool GetInterceptNetworkUpdate(const String&) const;
  5946. Node GetNode() const;
  5947. uint GetNumAttributes() const;
  5948. uint GetNumNetworkAttributes() const;
  5949. ObjectAnimation GetObjectAnimation() const;
  5950. ResourceRef GetObjectAnimationAttr() const;
  5951. RigidBody2D GetOtherBody() const;
  5952. RigidBody2D GetOwnerBody() const;
  5953. Scene GetScene() const;
  5954. Object GetSubsystem(StringHash) const;
  5955. StringHash GetType() const;
  5956. bool HasEventHandlers() const;
  5957. bool HasSubscribedToEvent(Object, StringHash) const;
  5958. bool HasSubscribedToEvent(StringHash) const;
  5959. bool IsEnabled() const;
  5960. bool IsEnabledEffective() const;
  5961. bool IsInstanceOf(StringHash) const;
  5962. bool IsReplicated() const;
  5963. bool IsTemporary() const;
  5964. bool Load(Deserializer&);
  5965. bool LoadJSON(const JSONValue&);
  5966. bool LoadXML(const XMLElement&);
  5967. void MarkNetworkUpdate();
  5968. operator Object() const;
  5969. void OnEvent(Object, StringHash, VariantMap&);
  5970. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5971. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5972. void OnSetEnabled();
  5973. void PrepareNetworkUpdate();
  5974. bool ReadDeltaUpdate(Deserializer&);
  5975. bool ReadLatestDataUpdate(Deserializer&);
  5976. operator RefCounted() const;
  5977. int Refs() const;
  5978. void ReleaseJoint();
  5979. void Remove();
  5980. void RemoveAttributeAnimation(const String&);
  5981. void RemoveInstanceDefault();
  5982. void RemoveObjectAnimation();
  5983. void ResetToDefault();
  5984. bool Save(Serializer&) const;
  5985. bool SaveDefaultAttributes() const;
  5986. bool SaveJSON(JSONValue&) const;
  5987. bool SaveXML(XMLElement&) const;
  5988. void SendEvent(StringHash);
  5989. void SendEvent(StringHash, VariantMap&);
  5990. operator Serializable() const;
  5991. void SetAnimationEnabled(bool);
  5992. void SetAnimationTime(float);
  5993. void SetAttachedConstraint(Constraint2D);
  5994. bool SetAttribute(const String&, const Variant&);
  5995. bool SetAttribute(uint, const Variant&);
  5996. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5997. void SetAttributeAnimationSpeed(const String&, float);
  5998. void SetAttributeAnimationTime(const String&, float);
  5999. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6000. void SetBlockEvents(bool);
  6001. void SetCollideConnected(bool);
  6002. void SetEnabled(bool);
  6003. void SetGlobalVar(StringHash, const Variant&);
  6004. void SetInstanceDefault(bool);
  6005. void SetInterceptNetworkUpdate(const String&, bool);
  6006. void SetObjectAnimation(ObjectAnimation);
  6007. void SetObjectAnimationAttr(const ResourceRef&);
  6008. void SetOtherBody(RigidBody2D);
  6009. void SetTemporary(bool);
  6010. const String& GetCategory() const;
  6011. const String& GetTypeName() const;
  6012. void UnsubscribeFromAllEvents();
  6013. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6014. void UnsubscribeFromEvent(Object, StringHash);
  6015. void UnsubscribeFromEvent(StringHash);
  6016. void UnsubscribeFromEvents(Object);
  6017. const Variant& GetGlobalVar(StringHash) const;
  6018. const VariantMap& GetGlobalVars() const;
  6019. int WeakRefs() const;
  6020. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6021. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6022. void WriteLatestDataUpdate(Serializer&, uint8);
  6023. operator const Animatable() const;
  6024. operator const Component() const;
  6025. operator const ConstraintDistance2D() const;
  6026. operator const ConstraintFriction2D() const;
  6027. operator const ConstraintGear2D() const;
  6028. operator const ConstraintMotor2D() const;
  6029. operator const ConstraintMouse2D() const;
  6030. operator const ConstraintPrismatic2D() const;
  6031. operator const ConstraintPulley2D() const;
  6032. operator const ConstraintRevolute2D() const;
  6033. operator const ConstraintWeld2D() const;
  6034. operator const ConstraintWheel2D() const;
  6035. operator const Object() const;
  6036. operator const RefCounted() const;
  6037. operator const Serializable() const;
  6038. // Properties:
  6039. bool animationEnabled;
  6040. /* readonly */
  6041. Array<Variant> attributeDefaults;
  6042. /* readonly */
  6043. Array<AttributeInfo> attributeInfos;
  6044. Array<Variant> attributes;
  6045. /* readonly */
  6046. String category;
  6047. bool collideConnected;
  6048. bool enabled;
  6049. /* readonly */
  6050. bool enabledEffective;
  6051. Array<Variant> globalVar;
  6052. /* readonly */
  6053. VariantMap globalVars;
  6054. /* readonly */
  6055. uint id;
  6056. /* readonly */
  6057. Node node;
  6058. /* readonly */
  6059. uint numAttributes;
  6060. ObjectAnimation objectAnimation;
  6061. RigidBody2D otherBody;
  6062. /* readonly */
  6063. RigidBody2D ownerBody;
  6064. /* readonly */
  6065. int refs;
  6066. /* readonly */
  6067. bool replicated;
  6068. bool temporary;
  6069. /* readonly */
  6070. StringHash type;
  6071. /* readonly */
  6072. String typeName;
  6073. /* readonly */
  6074. int weakRefs;
  6075. };
  6076. class ConstraintDistance2D
  6077. {
  6078. public:
  6079. ConstraintDistance2D();
  6080. // Methods:
  6081. void AllocateNetworkState();
  6082. operator Animatable() const;
  6083. void ApplyAttributes();
  6084. void CleanupConnection(Connection);
  6085. operator Component() const;
  6086. operator Constraint2D() const;
  6087. void CreateJoint();
  6088. void DrawDebugGeometry(DebugRenderer, bool);
  6089. bool GetAnimationEnabled() const;
  6090. Constraint2D GetAttachedConstraint() const;
  6091. Variant GetAttribute(const String&) const;
  6092. Variant GetAttribute(uint) const;
  6093. ValueAnimation GetAttributeAnimation(const String&) const;
  6094. float GetAttributeAnimationSpeed(const String&) const;
  6095. float GetAttributeAnimationTime(const String&) const;
  6096. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6097. Variant GetAttributeDefault(const String&) const;
  6098. Variant GetAttributeDefault(uint) const;
  6099. bool GetBlockEvents() const;
  6100. bool GetCollideConnected() const;
  6101. Component GetComponent(StringHash) const;
  6102. float GetDamping() const;
  6103. VariantMap& GetEventDataMap() const;
  6104. Object GetEventSender() const;
  6105. uint GetID() const;
  6106. bool GetInterceptNetworkUpdate(const String&) const;
  6107. float GetLength() const;
  6108. float GetMaxLength() const;
  6109. float GetMinLength() const;
  6110. Node GetNode() const;
  6111. uint GetNumAttributes() const;
  6112. uint GetNumNetworkAttributes() const;
  6113. ObjectAnimation GetObjectAnimation() const;
  6114. ResourceRef GetObjectAnimationAttr() const;
  6115. RigidBody2D GetOtherBody() const;
  6116. RigidBody2D GetOwnerBody() const;
  6117. Scene GetScene() const;
  6118. float GetStiffness() const;
  6119. Object GetSubsystem(StringHash) const;
  6120. StringHash GetType() const;
  6121. bool HasEventHandlers() const;
  6122. bool HasSubscribedToEvent(Object, StringHash) const;
  6123. bool HasSubscribedToEvent(StringHash) const;
  6124. bool IsEnabled() const;
  6125. bool IsEnabledEffective() const;
  6126. bool IsInstanceOf(StringHash) const;
  6127. bool IsReplicated() const;
  6128. bool IsTemporary() const;
  6129. bool Load(Deserializer&);
  6130. bool LoadJSON(const JSONValue&);
  6131. bool LoadXML(const XMLElement&);
  6132. void MarkNetworkUpdate();
  6133. operator Object() const;
  6134. void OnEvent(Object, StringHash, VariantMap&);
  6135. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6136. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6137. void OnSetEnabled();
  6138. void PrepareNetworkUpdate();
  6139. bool ReadDeltaUpdate(Deserializer&);
  6140. bool ReadLatestDataUpdate(Deserializer&);
  6141. operator RefCounted() const;
  6142. int Refs() const;
  6143. void ReleaseJoint();
  6144. void Remove();
  6145. void RemoveAttributeAnimation(const String&);
  6146. void RemoveInstanceDefault();
  6147. void RemoveObjectAnimation();
  6148. void ResetToDefault();
  6149. bool Save(Serializer&) const;
  6150. bool SaveDefaultAttributes() const;
  6151. bool SaveJSON(JSONValue&) const;
  6152. bool SaveXML(XMLElement&) const;
  6153. void SendEvent(StringHash);
  6154. void SendEvent(StringHash, VariantMap&);
  6155. operator Serializable() const;
  6156. void SetAnimationEnabled(bool);
  6157. void SetAnimationTime(float);
  6158. void SetAttachedConstraint(Constraint2D);
  6159. bool SetAttribute(const String&, const Variant&);
  6160. bool SetAttribute(uint, const Variant&);
  6161. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6162. void SetAttributeAnimationSpeed(const String&, float);
  6163. void SetAttributeAnimationTime(const String&, float);
  6164. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6165. void SetBlockEvents(bool);
  6166. void SetCollideConnected(bool);
  6167. void SetDamping(float);
  6168. void SetEnabled(bool);
  6169. void SetGlobalVar(StringHash, const Variant&);
  6170. void SetInstanceDefault(bool);
  6171. void SetInterceptNetworkUpdate(const String&, bool);
  6172. void SetLength(float);
  6173. bool SetLinearStiffness(float, float);
  6174. void SetMaxLength(float);
  6175. void SetMinLength(float);
  6176. void SetObjectAnimation(ObjectAnimation);
  6177. void SetObjectAnimationAttr(const ResourceRef&);
  6178. void SetOtherBody(RigidBody2D);
  6179. void SetOtherBodyAnchor(const Vector2&);
  6180. void SetOwnerBodyAnchor(const Vector2&);
  6181. void SetStiffness(float);
  6182. void SetTemporary(bool);
  6183. const String& GetCategory() const;
  6184. const String& GetTypeName() const;
  6185. void UnsubscribeFromAllEvents();
  6186. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6187. void UnsubscribeFromEvent(Object, StringHash);
  6188. void UnsubscribeFromEvent(StringHash);
  6189. void UnsubscribeFromEvents(Object);
  6190. const Variant& GetGlobalVar(StringHash) const;
  6191. const VariantMap& GetGlobalVars() const;
  6192. const Vector2& GetOtherBodyAnchor() const;
  6193. const Vector2& GetOwnerBodyAnchor() const;
  6194. int WeakRefs() const;
  6195. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6196. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6197. void WriteLatestDataUpdate(Serializer&, uint8);
  6198. operator const Animatable() const;
  6199. operator const Component() const;
  6200. operator const Constraint2D() const;
  6201. operator const Object() const;
  6202. operator const RefCounted() const;
  6203. operator const Serializable() const;
  6204. // Properties:
  6205. bool animationEnabled;
  6206. /* readonly */
  6207. Array<Variant> attributeDefaults;
  6208. /* readonly */
  6209. Array<AttributeInfo> attributeInfos;
  6210. Array<Variant> attributes;
  6211. /* readonly */
  6212. String category;
  6213. bool collideConnected;
  6214. float damping;
  6215. bool enabled;
  6216. /* readonly */
  6217. bool enabledEffective;
  6218. Array<Variant> globalVar;
  6219. /* readonly */
  6220. VariantMap globalVars;
  6221. /* readonly */
  6222. uint id;
  6223. float length;
  6224. float maxLength;
  6225. float minLength;
  6226. /* readonly */
  6227. Node node;
  6228. /* readonly */
  6229. uint numAttributes;
  6230. ObjectAnimation objectAnimation;
  6231. RigidBody2D otherBody;
  6232. Vector2 otherBodyAnchor;
  6233. /* readonly */
  6234. RigidBody2D ownerBody;
  6235. Vector2 ownerBodyAnchor;
  6236. /* readonly */
  6237. int refs;
  6238. /* readonly */
  6239. bool replicated;
  6240. float stiffness;
  6241. bool temporary;
  6242. /* readonly */
  6243. StringHash type;
  6244. /* readonly */
  6245. String typeName;
  6246. /* readonly */
  6247. int weakRefs;
  6248. };
  6249. class ConstraintFriction2D
  6250. {
  6251. public:
  6252. ConstraintFriction2D();
  6253. // Methods:
  6254. void AllocateNetworkState();
  6255. operator Animatable() const;
  6256. void ApplyAttributes();
  6257. void CleanupConnection(Connection);
  6258. operator Component() const;
  6259. operator Constraint2D() const;
  6260. void CreateJoint();
  6261. void DrawDebugGeometry(DebugRenderer, bool);
  6262. bool GetAnimationEnabled() const;
  6263. Constraint2D GetAttachedConstraint() const;
  6264. Variant GetAttribute(const String&) const;
  6265. Variant GetAttribute(uint) const;
  6266. ValueAnimation GetAttributeAnimation(const String&) const;
  6267. float GetAttributeAnimationSpeed(const String&) const;
  6268. float GetAttributeAnimationTime(const String&) const;
  6269. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6270. Variant GetAttributeDefault(const String&) const;
  6271. Variant GetAttributeDefault(uint) const;
  6272. bool GetBlockEvents() const;
  6273. bool GetCollideConnected() const;
  6274. Component GetComponent(StringHash) const;
  6275. VariantMap& GetEventDataMap() const;
  6276. Object GetEventSender() const;
  6277. uint GetID() const;
  6278. bool GetInterceptNetworkUpdate(const String&) const;
  6279. float GetMaxForce() const;
  6280. float GetMaxTorque() const;
  6281. Node GetNode() const;
  6282. uint GetNumAttributes() const;
  6283. uint GetNumNetworkAttributes() const;
  6284. ObjectAnimation GetObjectAnimation() const;
  6285. ResourceRef GetObjectAnimationAttr() const;
  6286. RigidBody2D GetOtherBody() const;
  6287. RigidBody2D GetOwnerBody() const;
  6288. Scene GetScene() const;
  6289. Object GetSubsystem(StringHash) const;
  6290. StringHash GetType() const;
  6291. bool HasEventHandlers() const;
  6292. bool HasSubscribedToEvent(Object, StringHash) const;
  6293. bool HasSubscribedToEvent(StringHash) const;
  6294. bool IsEnabled() const;
  6295. bool IsEnabledEffective() const;
  6296. bool IsInstanceOf(StringHash) const;
  6297. bool IsReplicated() const;
  6298. bool IsTemporary() const;
  6299. bool Load(Deserializer&);
  6300. bool LoadJSON(const JSONValue&);
  6301. bool LoadXML(const XMLElement&);
  6302. void MarkNetworkUpdate();
  6303. operator Object() const;
  6304. void OnEvent(Object, StringHash, VariantMap&);
  6305. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6306. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6307. void OnSetEnabled();
  6308. void PrepareNetworkUpdate();
  6309. bool ReadDeltaUpdate(Deserializer&);
  6310. bool ReadLatestDataUpdate(Deserializer&);
  6311. operator RefCounted() const;
  6312. int Refs() const;
  6313. void ReleaseJoint();
  6314. void Remove();
  6315. void RemoveAttributeAnimation(const String&);
  6316. void RemoveInstanceDefault();
  6317. void RemoveObjectAnimation();
  6318. void ResetToDefault();
  6319. bool Save(Serializer&) const;
  6320. bool SaveDefaultAttributes() const;
  6321. bool SaveJSON(JSONValue&) const;
  6322. bool SaveXML(XMLElement&) const;
  6323. void SendEvent(StringHash);
  6324. void SendEvent(StringHash, VariantMap&);
  6325. operator Serializable() const;
  6326. void SetAnchor(const Vector2&);
  6327. void SetAnimationEnabled(bool);
  6328. void SetAnimationTime(float);
  6329. void SetAttachedConstraint(Constraint2D);
  6330. bool SetAttribute(const String&, const Variant&);
  6331. bool SetAttribute(uint, const Variant&);
  6332. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6333. void SetAttributeAnimationSpeed(const String&, float);
  6334. void SetAttributeAnimationTime(const String&, float);
  6335. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6336. void SetBlockEvents(bool);
  6337. void SetCollideConnected(bool);
  6338. void SetEnabled(bool);
  6339. void SetGlobalVar(StringHash, const Variant&);
  6340. void SetInstanceDefault(bool);
  6341. void SetInterceptNetworkUpdate(const String&, bool);
  6342. void SetMaxForce(float);
  6343. void SetMaxTorque(float);
  6344. void SetObjectAnimation(ObjectAnimation);
  6345. void SetObjectAnimationAttr(const ResourceRef&);
  6346. void SetOtherBody(RigidBody2D);
  6347. void SetTemporary(bool);
  6348. const String& GetCategory() const;
  6349. const String& GetTypeName() const;
  6350. void UnsubscribeFromAllEvents();
  6351. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6352. void UnsubscribeFromEvent(Object, StringHash);
  6353. void UnsubscribeFromEvent(StringHash);
  6354. void UnsubscribeFromEvents(Object);
  6355. const Variant& GetGlobalVar(StringHash) const;
  6356. const VariantMap& GetGlobalVars() const;
  6357. const Vector2& GetAnchor() const;
  6358. int WeakRefs() const;
  6359. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6360. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6361. void WriteLatestDataUpdate(Serializer&, uint8);
  6362. operator const Animatable() const;
  6363. operator const Component() const;
  6364. operator const Constraint2D() const;
  6365. operator const Object() const;
  6366. operator const RefCounted() const;
  6367. operator const Serializable() const;
  6368. // Properties:
  6369. Vector2 anchor;
  6370. bool animationEnabled;
  6371. /* readonly */
  6372. Array<Variant> attributeDefaults;
  6373. /* readonly */
  6374. Array<AttributeInfo> attributeInfos;
  6375. Array<Variant> attributes;
  6376. /* readonly */
  6377. String category;
  6378. bool collideConnected;
  6379. bool enabled;
  6380. /* readonly */
  6381. bool enabledEffective;
  6382. Array<Variant> globalVar;
  6383. /* readonly */
  6384. VariantMap globalVars;
  6385. /* readonly */
  6386. uint id;
  6387. float maxForce;
  6388. float maxTorque;
  6389. /* readonly */
  6390. Node node;
  6391. /* readonly */
  6392. uint numAttributes;
  6393. ObjectAnimation objectAnimation;
  6394. RigidBody2D otherBody;
  6395. /* readonly */
  6396. RigidBody2D ownerBody;
  6397. /* readonly */
  6398. int refs;
  6399. /* readonly */
  6400. bool replicated;
  6401. bool temporary;
  6402. /* readonly */
  6403. StringHash type;
  6404. /* readonly */
  6405. String typeName;
  6406. /* readonly */
  6407. int weakRefs;
  6408. };
  6409. class ConstraintGear2D
  6410. {
  6411. public:
  6412. ConstraintGear2D();
  6413. // Methods:
  6414. void AllocateNetworkState();
  6415. operator Animatable() const;
  6416. void ApplyAttributes();
  6417. void CleanupConnection(Connection);
  6418. operator Component() const;
  6419. operator Constraint2D() const;
  6420. void CreateJoint();
  6421. void DrawDebugGeometry(DebugRenderer, bool);
  6422. bool GetAnimationEnabled() const;
  6423. Constraint2D GetAttachedConstraint() const;
  6424. Variant GetAttribute(const String&) const;
  6425. Variant GetAttribute(uint) const;
  6426. ValueAnimation GetAttributeAnimation(const String&) const;
  6427. float GetAttributeAnimationSpeed(const String&) const;
  6428. float GetAttributeAnimationTime(const String&) const;
  6429. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6430. Variant GetAttributeDefault(const String&) const;
  6431. Variant GetAttributeDefault(uint) const;
  6432. bool GetBlockEvents() const;
  6433. bool GetCollideConnected() const;
  6434. Component GetComponent(StringHash) const;
  6435. VariantMap& GetEventDataMap() const;
  6436. Object GetEventSender() const;
  6437. uint GetID() const;
  6438. bool GetInterceptNetworkUpdate(const String&) const;
  6439. Node GetNode() const;
  6440. uint GetNumAttributes() const;
  6441. uint GetNumNetworkAttributes() const;
  6442. ObjectAnimation GetObjectAnimation() const;
  6443. ResourceRef GetObjectAnimationAttr() const;
  6444. RigidBody2D GetOtherBody() const;
  6445. Constraint2D GetOtherConstraint() const;
  6446. RigidBody2D GetOwnerBody() const;
  6447. Constraint2D GetOwnerConstraint() const;
  6448. float GetRatio() const;
  6449. Scene GetScene() const;
  6450. Object GetSubsystem(StringHash) const;
  6451. StringHash GetType() const;
  6452. bool HasEventHandlers() const;
  6453. bool HasSubscribedToEvent(Object, StringHash) const;
  6454. bool HasSubscribedToEvent(StringHash) const;
  6455. bool IsEnabled() const;
  6456. bool IsEnabledEffective() const;
  6457. bool IsInstanceOf(StringHash) const;
  6458. bool IsReplicated() const;
  6459. bool IsTemporary() const;
  6460. bool Load(Deserializer&);
  6461. bool LoadJSON(const JSONValue&);
  6462. bool LoadXML(const XMLElement&);
  6463. void MarkNetworkUpdate();
  6464. operator Object() const;
  6465. void OnEvent(Object, StringHash, VariantMap&);
  6466. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6467. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6468. void OnSetEnabled();
  6469. void PrepareNetworkUpdate();
  6470. bool ReadDeltaUpdate(Deserializer&);
  6471. bool ReadLatestDataUpdate(Deserializer&);
  6472. operator RefCounted() const;
  6473. int Refs() const;
  6474. void ReleaseJoint();
  6475. void Remove();
  6476. void RemoveAttributeAnimation(const String&);
  6477. void RemoveInstanceDefault();
  6478. void RemoveObjectAnimation();
  6479. void ResetToDefault();
  6480. bool Save(Serializer&) const;
  6481. bool SaveDefaultAttributes() const;
  6482. bool SaveJSON(JSONValue&) const;
  6483. bool SaveXML(XMLElement&) const;
  6484. void SendEvent(StringHash);
  6485. void SendEvent(StringHash, VariantMap&);
  6486. operator Serializable() const;
  6487. void SetAnimationEnabled(bool);
  6488. void SetAnimationTime(float);
  6489. void SetAttachedConstraint(Constraint2D);
  6490. bool SetAttribute(const String&, const Variant&);
  6491. bool SetAttribute(uint, const Variant&);
  6492. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6493. void SetAttributeAnimationSpeed(const String&, float);
  6494. void SetAttributeAnimationTime(const String&, float);
  6495. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6496. void SetBlockEvents(bool);
  6497. void SetCollideConnected(bool);
  6498. void SetEnabled(bool);
  6499. void SetGlobalVar(StringHash, const Variant&);
  6500. void SetInstanceDefault(bool);
  6501. void SetInterceptNetworkUpdate(const String&, bool);
  6502. void SetObjectAnimation(ObjectAnimation);
  6503. void SetObjectAnimationAttr(const ResourceRef&);
  6504. void SetOtherBody(RigidBody2D);
  6505. void SetOtherConstraint(Constraint2D);
  6506. void SetOwnerConstraint(Constraint2D);
  6507. void SetRatio(float);
  6508. void SetTemporary(bool);
  6509. const String& GetCategory() const;
  6510. const String& GetTypeName() const;
  6511. void UnsubscribeFromAllEvents();
  6512. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6513. void UnsubscribeFromEvent(Object, StringHash);
  6514. void UnsubscribeFromEvent(StringHash);
  6515. void UnsubscribeFromEvents(Object);
  6516. const Variant& GetGlobalVar(StringHash) const;
  6517. const VariantMap& GetGlobalVars() const;
  6518. int WeakRefs() const;
  6519. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6520. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6521. void WriteLatestDataUpdate(Serializer&, uint8);
  6522. operator const Animatable() const;
  6523. operator const Component() const;
  6524. operator const Constraint2D() const;
  6525. operator const Object() const;
  6526. operator const RefCounted() const;
  6527. operator const Serializable() const;
  6528. // Properties:
  6529. bool animationEnabled;
  6530. /* readonly */
  6531. Array<Variant> attributeDefaults;
  6532. /* readonly */
  6533. Array<AttributeInfo> attributeInfos;
  6534. Array<Variant> attributes;
  6535. /* readonly */
  6536. String category;
  6537. bool collideConnected;
  6538. bool enabled;
  6539. /* readonly */
  6540. bool enabledEffective;
  6541. Array<Variant> globalVar;
  6542. /* readonly */
  6543. VariantMap globalVars;
  6544. /* readonly */
  6545. uint id;
  6546. /* readonly */
  6547. Node node;
  6548. /* readonly */
  6549. uint numAttributes;
  6550. ObjectAnimation objectAnimation;
  6551. RigidBody2D otherBody;
  6552. Constraint2D otherConstraint;
  6553. /* readonly */
  6554. RigidBody2D ownerBody;
  6555. Constraint2D ownerConstraint;
  6556. float ratio;
  6557. /* readonly */
  6558. int refs;
  6559. /* readonly */
  6560. bool replicated;
  6561. bool temporary;
  6562. /* readonly */
  6563. StringHash type;
  6564. /* readonly */
  6565. String typeName;
  6566. /* readonly */
  6567. int weakRefs;
  6568. };
  6569. class ConstraintMotor2D
  6570. {
  6571. public:
  6572. ConstraintMotor2D();
  6573. // Methods:
  6574. void AllocateNetworkState();
  6575. operator Animatable() const;
  6576. void ApplyAttributes();
  6577. void CleanupConnection(Connection);
  6578. operator Component() const;
  6579. operator Constraint2D() const;
  6580. void CreateJoint();
  6581. void DrawDebugGeometry(DebugRenderer, bool);
  6582. float GetAngularOffset() const;
  6583. bool GetAnimationEnabled() const;
  6584. Constraint2D GetAttachedConstraint() const;
  6585. Variant GetAttribute(const String&) const;
  6586. Variant GetAttribute(uint) const;
  6587. ValueAnimation GetAttributeAnimation(const String&) const;
  6588. float GetAttributeAnimationSpeed(const String&) const;
  6589. float GetAttributeAnimationTime(const String&) const;
  6590. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6591. Variant GetAttributeDefault(const String&) const;
  6592. Variant GetAttributeDefault(uint) const;
  6593. bool GetBlockEvents() const;
  6594. bool GetCollideConnected() const;
  6595. Component GetComponent(StringHash) const;
  6596. float GetCorrectionFactor() const;
  6597. VariantMap& GetEventDataMap() const;
  6598. Object GetEventSender() const;
  6599. uint GetID() const;
  6600. bool GetInterceptNetworkUpdate(const String&) const;
  6601. float GetMaxForce() const;
  6602. float GetMaxTorque() const;
  6603. Node GetNode() const;
  6604. uint GetNumAttributes() const;
  6605. uint GetNumNetworkAttributes() const;
  6606. ObjectAnimation GetObjectAnimation() const;
  6607. ResourceRef GetObjectAnimationAttr() const;
  6608. RigidBody2D GetOtherBody() const;
  6609. RigidBody2D GetOwnerBody() const;
  6610. Scene GetScene() const;
  6611. Object GetSubsystem(StringHash) const;
  6612. StringHash GetType() const;
  6613. bool HasEventHandlers() const;
  6614. bool HasSubscribedToEvent(Object, StringHash) const;
  6615. bool HasSubscribedToEvent(StringHash) const;
  6616. bool IsEnabled() const;
  6617. bool IsEnabledEffective() const;
  6618. bool IsInstanceOf(StringHash) const;
  6619. bool IsReplicated() const;
  6620. bool IsTemporary() const;
  6621. bool Load(Deserializer&);
  6622. bool LoadJSON(const JSONValue&);
  6623. bool LoadXML(const XMLElement&);
  6624. void MarkNetworkUpdate();
  6625. operator Object() const;
  6626. void OnEvent(Object, StringHash, VariantMap&);
  6627. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6628. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6629. void OnSetEnabled();
  6630. void PrepareNetworkUpdate();
  6631. bool ReadDeltaUpdate(Deserializer&);
  6632. bool ReadLatestDataUpdate(Deserializer&);
  6633. operator RefCounted() const;
  6634. int Refs() const;
  6635. void ReleaseJoint();
  6636. void Remove();
  6637. void RemoveAttributeAnimation(const String&);
  6638. void RemoveInstanceDefault();
  6639. void RemoveObjectAnimation();
  6640. void ResetToDefault();
  6641. bool Save(Serializer&) const;
  6642. bool SaveDefaultAttributes() const;
  6643. bool SaveJSON(JSONValue&) const;
  6644. bool SaveXML(XMLElement&) const;
  6645. void SendEvent(StringHash);
  6646. void SendEvent(StringHash, VariantMap&);
  6647. operator Serializable() const;
  6648. void SetAngularOffset(float);
  6649. void SetAnimationEnabled(bool);
  6650. void SetAnimationTime(float);
  6651. void SetAttachedConstraint(Constraint2D);
  6652. bool SetAttribute(const String&, const Variant&);
  6653. bool SetAttribute(uint, const Variant&);
  6654. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6655. void SetAttributeAnimationSpeed(const String&, float);
  6656. void SetAttributeAnimationTime(const String&, float);
  6657. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6658. void SetBlockEvents(bool);
  6659. void SetCollideConnected(bool);
  6660. void SetCorrectionFactor(float);
  6661. void SetEnabled(bool);
  6662. void SetGlobalVar(StringHash, const Variant&);
  6663. void SetInstanceDefault(bool);
  6664. void SetInterceptNetworkUpdate(const String&, bool);
  6665. void SetLinearOffset(const Vector2&);
  6666. void SetMaxForce(float);
  6667. void SetMaxTorque(float);
  6668. void SetObjectAnimation(ObjectAnimation);
  6669. void SetObjectAnimationAttr(const ResourceRef&);
  6670. void SetOtherBody(RigidBody2D);
  6671. void SetTemporary(bool);
  6672. const String& GetCategory() const;
  6673. const String& GetTypeName() const;
  6674. void UnsubscribeFromAllEvents();
  6675. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6676. void UnsubscribeFromEvent(Object, StringHash);
  6677. void UnsubscribeFromEvent(StringHash);
  6678. void UnsubscribeFromEvents(Object);
  6679. const Variant& GetGlobalVar(StringHash) const;
  6680. const VariantMap& GetGlobalVars() const;
  6681. const Vector2& GetLinearOffset() const;
  6682. int WeakRefs() const;
  6683. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6684. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6685. void WriteLatestDataUpdate(Serializer&, uint8);
  6686. operator const Animatable() const;
  6687. operator const Component() const;
  6688. operator const Constraint2D() const;
  6689. operator const Object() const;
  6690. operator const RefCounted() const;
  6691. operator const Serializable() const;
  6692. // Properties:
  6693. float angularOffset;
  6694. bool animationEnabled;
  6695. /* readonly */
  6696. Array<Variant> attributeDefaults;
  6697. /* readonly */
  6698. Array<AttributeInfo> attributeInfos;
  6699. Array<Variant> attributes;
  6700. /* readonly */
  6701. String category;
  6702. bool collideConnected;
  6703. float correctionFactor;
  6704. bool enabled;
  6705. /* readonly */
  6706. bool enabledEffective;
  6707. Array<Variant> globalVar;
  6708. /* readonly */
  6709. VariantMap globalVars;
  6710. /* readonly */
  6711. uint id;
  6712. Vector2 linearOffset;
  6713. float maxForce;
  6714. float maxTorque;
  6715. /* readonly */
  6716. Node node;
  6717. /* readonly */
  6718. uint numAttributes;
  6719. ObjectAnimation objectAnimation;
  6720. RigidBody2D otherBody;
  6721. /* readonly */
  6722. RigidBody2D ownerBody;
  6723. /* readonly */
  6724. int refs;
  6725. /* readonly */
  6726. bool replicated;
  6727. bool temporary;
  6728. /* readonly */
  6729. StringHash type;
  6730. /* readonly */
  6731. String typeName;
  6732. /* readonly */
  6733. int weakRefs;
  6734. };
  6735. class ConstraintMouse2D
  6736. {
  6737. public:
  6738. ConstraintMouse2D();
  6739. // Methods:
  6740. void AllocateNetworkState();
  6741. operator Animatable() const;
  6742. void ApplyAttributes();
  6743. void CleanupConnection(Connection);
  6744. operator Component() const;
  6745. operator Constraint2D() const;
  6746. void CreateJoint();
  6747. void DrawDebugGeometry(DebugRenderer, bool);
  6748. bool GetAnimationEnabled() const;
  6749. Constraint2D GetAttachedConstraint() const;
  6750. Variant GetAttribute(const String&) const;
  6751. Variant GetAttribute(uint) const;
  6752. ValueAnimation GetAttributeAnimation(const String&) const;
  6753. float GetAttributeAnimationSpeed(const String&) const;
  6754. float GetAttributeAnimationTime(const String&) const;
  6755. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6756. Variant GetAttributeDefault(const String&) const;
  6757. Variant GetAttributeDefault(uint) const;
  6758. bool GetBlockEvents() const;
  6759. bool GetCollideConnected() const;
  6760. Component GetComponent(StringHash) const;
  6761. float GetDamping() const;
  6762. VariantMap& GetEventDataMap() const;
  6763. Object GetEventSender() const;
  6764. uint GetID() const;
  6765. bool GetInterceptNetworkUpdate(const String&) const;
  6766. float GetMaxForce() const;
  6767. Node GetNode() const;
  6768. uint GetNumAttributes() const;
  6769. uint GetNumNetworkAttributes() const;
  6770. ObjectAnimation GetObjectAnimation() const;
  6771. ResourceRef GetObjectAnimationAttr() const;
  6772. RigidBody2D GetOtherBody() const;
  6773. RigidBody2D GetOwnerBody() const;
  6774. Scene GetScene() const;
  6775. float GetStiffness() const;
  6776. Object GetSubsystem(StringHash) const;
  6777. StringHash GetType() const;
  6778. bool HasEventHandlers() const;
  6779. bool HasSubscribedToEvent(Object, StringHash) const;
  6780. bool HasSubscribedToEvent(StringHash) const;
  6781. bool IsEnabled() const;
  6782. bool IsEnabledEffective() const;
  6783. bool IsInstanceOf(StringHash) const;
  6784. bool IsReplicated() const;
  6785. bool IsTemporary() const;
  6786. bool Load(Deserializer&);
  6787. bool LoadJSON(const JSONValue&);
  6788. bool LoadXML(const XMLElement&);
  6789. void MarkNetworkUpdate();
  6790. operator Object() const;
  6791. void OnEvent(Object, StringHash, VariantMap&);
  6792. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6793. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6794. void OnSetEnabled();
  6795. void PrepareNetworkUpdate();
  6796. bool ReadDeltaUpdate(Deserializer&);
  6797. bool ReadLatestDataUpdate(Deserializer&);
  6798. operator RefCounted() const;
  6799. int Refs() const;
  6800. void ReleaseJoint();
  6801. void Remove();
  6802. void RemoveAttributeAnimation(const String&);
  6803. void RemoveInstanceDefault();
  6804. void RemoveObjectAnimation();
  6805. void ResetToDefault();
  6806. bool Save(Serializer&) const;
  6807. bool SaveDefaultAttributes() const;
  6808. bool SaveJSON(JSONValue&) const;
  6809. bool SaveXML(XMLElement&) const;
  6810. void SendEvent(StringHash);
  6811. void SendEvent(StringHash, VariantMap&);
  6812. operator Serializable() const;
  6813. void SetAnimationEnabled(bool);
  6814. void SetAnimationTime(float);
  6815. void SetAttachedConstraint(Constraint2D);
  6816. bool SetAttribute(const String&, const Variant&);
  6817. bool SetAttribute(uint, const Variant&);
  6818. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6819. void SetAttributeAnimationSpeed(const String&, float);
  6820. void SetAttributeAnimationTime(const String&, float);
  6821. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6822. void SetBlockEvents(bool);
  6823. void SetCollideConnected(bool);
  6824. void SetDamping(float);
  6825. void SetEnabled(bool);
  6826. void SetGlobalVar(StringHash, const Variant&);
  6827. void SetInstanceDefault(bool);
  6828. void SetInterceptNetworkUpdate(const String&, bool);
  6829. bool SetLinearStiffness(float, float);
  6830. void SetMaxForce(float);
  6831. void SetObjectAnimation(ObjectAnimation);
  6832. void SetObjectAnimationAttr(const ResourceRef&);
  6833. void SetOtherBody(RigidBody2D);
  6834. void SetStiffness(float);
  6835. void SetTarget(const Vector2&);
  6836. void SetTemporary(bool);
  6837. const String& GetCategory() const;
  6838. const String& GetTypeName() const;
  6839. void UnsubscribeFromAllEvents();
  6840. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6841. void UnsubscribeFromEvent(Object, StringHash);
  6842. void UnsubscribeFromEvent(StringHash);
  6843. void UnsubscribeFromEvents(Object);
  6844. const Variant& GetGlobalVar(StringHash) const;
  6845. const VariantMap& GetGlobalVars() const;
  6846. const Vector2& GetTarget() const;
  6847. int WeakRefs() const;
  6848. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6849. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6850. void WriteLatestDataUpdate(Serializer&, uint8);
  6851. operator const Animatable() const;
  6852. operator const Component() const;
  6853. operator const Constraint2D() const;
  6854. operator const Object() const;
  6855. operator const RefCounted() const;
  6856. operator const Serializable() const;
  6857. // Properties:
  6858. bool animationEnabled;
  6859. /* readonly */
  6860. Array<Variant> attributeDefaults;
  6861. /* readonly */
  6862. Array<AttributeInfo> attributeInfos;
  6863. Array<Variant> attributes;
  6864. /* readonly */
  6865. String category;
  6866. bool collideConnected;
  6867. float damping;
  6868. bool enabled;
  6869. /* readonly */
  6870. bool enabledEffective;
  6871. Array<Variant> globalVar;
  6872. /* readonly */
  6873. VariantMap globalVars;
  6874. /* readonly */
  6875. uint id;
  6876. float maxForce;
  6877. /* readonly */
  6878. Node node;
  6879. /* readonly */
  6880. uint numAttributes;
  6881. ObjectAnimation objectAnimation;
  6882. RigidBody2D otherBody;
  6883. /* readonly */
  6884. RigidBody2D ownerBody;
  6885. /* readonly */
  6886. int refs;
  6887. /* readonly */
  6888. bool replicated;
  6889. float stiffness;
  6890. Vector2 target;
  6891. bool temporary;
  6892. /* readonly */
  6893. StringHash type;
  6894. /* readonly */
  6895. String typeName;
  6896. /* readonly */
  6897. int weakRefs;
  6898. };
  6899. class ConstraintPrismatic2D
  6900. {
  6901. public:
  6902. ConstraintPrismatic2D();
  6903. // Methods:
  6904. void AllocateNetworkState();
  6905. operator Animatable() const;
  6906. void ApplyAttributes();
  6907. void CleanupConnection(Connection);
  6908. operator Component() const;
  6909. operator Constraint2D() const;
  6910. void CreateJoint();
  6911. void DrawDebugGeometry(DebugRenderer, bool);
  6912. bool GetAnimationEnabled() const;
  6913. Constraint2D GetAttachedConstraint() const;
  6914. Variant GetAttribute(const String&) const;
  6915. Variant GetAttribute(uint) const;
  6916. ValueAnimation GetAttributeAnimation(const String&) const;
  6917. float GetAttributeAnimationSpeed(const String&) const;
  6918. float GetAttributeAnimationTime(const String&) const;
  6919. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6920. Variant GetAttributeDefault(const String&) const;
  6921. Variant GetAttributeDefault(uint) const;
  6922. bool GetBlockEvents() const;
  6923. bool GetCollideConnected() const;
  6924. Component GetComponent(StringHash) const;
  6925. bool GetEnableLimit() const;
  6926. bool GetEnableMotor() const;
  6927. VariantMap& GetEventDataMap() const;
  6928. Object GetEventSender() const;
  6929. uint GetID() const;
  6930. bool GetInterceptNetworkUpdate(const String&) const;
  6931. float GetLowerTranslation() const;
  6932. float GetMaxMotorForce() const;
  6933. float GetMotorSpeed() const;
  6934. Node GetNode() const;
  6935. uint GetNumAttributes() const;
  6936. uint GetNumNetworkAttributes() const;
  6937. ObjectAnimation GetObjectAnimation() const;
  6938. ResourceRef GetObjectAnimationAttr() const;
  6939. RigidBody2D GetOtherBody() const;
  6940. RigidBody2D GetOwnerBody() const;
  6941. Scene GetScene() const;
  6942. Object GetSubsystem(StringHash) const;
  6943. StringHash GetType() const;
  6944. float GetUpperTranslation() const;
  6945. bool HasEventHandlers() const;
  6946. bool HasSubscribedToEvent(Object, StringHash) const;
  6947. bool HasSubscribedToEvent(StringHash) const;
  6948. bool IsEnabled() const;
  6949. bool IsEnabledEffective() const;
  6950. bool IsInstanceOf(StringHash) const;
  6951. bool IsReplicated() const;
  6952. bool IsTemporary() const;
  6953. bool Load(Deserializer&);
  6954. bool LoadJSON(const JSONValue&);
  6955. bool LoadXML(const XMLElement&);
  6956. void MarkNetworkUpdate();
  6957. operator Object() const;
  6958. void OnEvent(Object, StringHash, VariantMap&);
  6959. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6960. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6961. void OnSetEnabled();
  6962. void PrepareNetworkUpdate();
  6963. bool ReadDeltaUpdate(Deserializer&);
  6964. bool ReadLatestDataUpdate(Deserializer&);
  6965. operator RefCounted() const;
  6966. int Refs() const;
  6967. void ReleaseJoint();
  6968. void Remove();
  6969. void RemoveAttributeAnimation(const String&);
  6970. void RemoveInstanceDefault();
  6971. void RemoveObjectAnimation();
  6972. void ResetToDefault();
  6973. bool Save(Serializer&) const;
  6974. bool SaveDefaultAttributes() const;
  6975. bool SaveJSON(JSONValue&) const;
  6976. bool SaveXML(XMLElement&) const;
  6977. void SendEvent(StringHash);
  6978. void SendEvent(StringHash, VariantMap&);
  6979. operator Serializable() const;
  6980. void SetAnchor(const Vector2&);
  6981. void SetAnimationEnabled(bool);
  6982. void SetAnimationTime(float);
  6983. void SetAttachedConstraint(Constraint2D);
  6984. bool SetAttribute(const String&, const Variant&);
  6985. bool SetAttribute(uint, const Variant&);
  6986. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6987. void SetAttributeAnimationSpeed(const String&, float);
  6988. void SetAttributeAnimationTime(const String&, float);
  6989. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6990. void SetAxis(const Vector2&);
  6991. void SetBlockEvents(bool);
  6992. void SetCollideConnected(bool);
  6993. void SetEnableLimit(bool);
  6994. void SetEnableMotor(bool);
  6995. void SetEnabled(bool);
  6996. void SetGlobalVar(StringHash, const Variant&);
  6997. void SetInstanceDefault(bool);
  6998. void SetInterceptNetworkUpdate(const String&, bool);
  6999. void SetLowerTranslation(float);
  7000. void SetMaxMotorForce(float);
  7001. void SetMotorSpeed(float);
  7002. void SetObjectAnimation(ObjectAnimation);
  7003. void SetObjectAnimationAttr(const ResourceRef&);
  7004. void SetOtherBody(RigidBody2D);
  7005. void SetTemporary(bool);
  7006. void SetUpperTranslation(float);
  7007. const String& GetCategory() const;
  7008. const String& GetTypeName() const;
  7009. void UnsubscribeFromAllEvents();
  7010. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7011. void UnsubscribeFromEvent(Object, StringHash);
  7012. void UnsubscribeFromEvent(StringHash);
  7013. void UnsubscribeFromEvents(Object);
  7014. const Variant& GetGlobalVar(StringHash) const;
  7015. const VariantMap& GetGlobalVars() const;
  7016. const Vector2& GetAnchor() const;
  7017. const Vector2& GetAxis() const;
  7018. int WeakRefs() const;
  7019. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7020. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7021. void WriteLatestDataUpdate(Serializer&, uint8);
  7022. operator const Animatable() const;
  7023. operator const Component() const;
  7024. operator const Constraint2D() const;
  7025. operator const Object() const;
  7026. operator const RefCounted() const;
  7027. operator const Serializable() const;
  7028. // Properties:
  7029. Vector2 anchor;
  7030. bool animationEnabled;
  7031. /* readonly */
  7032. Array<Variant> attributeDefaults;
  7033. /* readonly */
  7034. Array<AttributeInfo> attributeInfos;
  7035. Array<Variant> attributes;
  7036. Vector2 axis;
  7037. /* readonly */
  7038. String category;
  7039. bool collideConnected;
  7040. bool enableLimit;
  7041. bool enableMotor;
  7042. bool enabled;
  7043. /* readonly */
  7044. bool enabledEffective;
  7045. Array<Variant> globalVar;
  7046. /* readonly */
  7047. VariantMap globalVars;
  7048. /* readonly */
  7049. uint id;
  7050. float lowerTranslation;
  7051. float maxMotorForce;
  7052. float motorSpeed;
  7053. /* readonly */
  7054. Node node;
  7055. /* readonly */
  7056. uint numAttributes;
  7057. ObjectAnimation objectAnimation;
  7058. RigidBody2D otherBody;
  7059. /* readonly */
  7060. RigidBody2D ownerBody;
  7061. /* readonly */
  7062. int refs;
  7063. /* readonly */
  7064. bool replicated;
  7065. bool temporary;
  7066. /* readonly */
  7067. StringHash type;
  7068. /* readonly */
  7069. String typeName;
  7070. float upperTranslation;
  7071. /* readonly */
  7072. int weakRefs;
  7073. };
  7074. class ConstraintPulley2D
  7075. {
  7076. public:
  7077. ConstraintPulley2D();
  7078. // Methods:
  7079. void AllocateNetworkState();
  7080. operator Animatable() const;
  7081. void ApplyAttributes();
  7082. void CleanupConnection(Connection);
  7083. operator Component() const;
  7084. operator Constraint2D() const;
  7085. void CreateJoint();
  7086. void DrawDebugGeometry(DebugRenderer, bool);
  7087. bool GetAnimationEnabled() const;
  7088. Constraint2D GetAttachedConstraint() const;
  7089. Variant GetAttribute(const String&) const;
  7090. Variant GetAttribute(uint) const;
  7091. ValueAnimation GetAttributeAnimation(const String&) const;
  7092. float GetAttributeAnimationSpeed(const String&) const;
  7093. float GetAttributeAnimationTime(const String&) const;
  7094. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7095. Variant GetAttributeDefault(const String&) const;
  7096. Variant GetAttributeDefault(uint) const;
  7097. bool GetBlockEvents() const;
  7098. bool GetCollideConnected() const;
  7099. Component GetComponent(StringHash) const;
  7100. VariantMap& GetEventDataMap() const;
  7101. Object GetEventSender() const;
  7102. uint GetID() const;
  7103. bool GetInterceptNetworkUpdate(const String&) const;
  7104. Node GetNode() const;
  7105. uint GetNumAttributes() const;
  7106. uint GetNumNetworkAttributes() const;
  7107. ObjectAnimation GetObjectAnimation() const;
  7108. ResourceRef GetObjectAnimationAttr() const;
  7109. RigidBody2D GetOtherBody() const;
  7110. RigidBody2D GetOwnerBody() const;
  7111. float GetRatio() const;
  7112. Scene GetScene() const;
  7113. Object GetSubsystem(StringHash) const;
  7114. StringHash GetType() const;
  7115. bool HasEventHandlers() const;
  7116. bool HasSubscribedToEvent(Object, StringHash) const;
  7117. bool HasSubscribedToEvent(StringHash) const;
  7118. bool IsEnabled() const;
  7119. bool IsEnabledEffective() const;
  7120. bool IsInstanceOf(StringHash) const;
  7121. bool IsReplicated() const;
  7122. bool IsTemporary() const;
  7123. bool Load(Deserializer&);
  7124. bool LoadJSON(const JSONValue&);
  7125. bool LoadXML(const XMLElement&);
  7126. void MarkNetworkUpdate();
  7127. operator Object() const;
  7128. void OnEvent(Object, StringHash, VariantMap&);
  7129. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7130. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7131. void OnSetEnabled();
  7132. void PrepareNetworkUpdate();
  7133. bool ReadDeltaUpdate(Deserializer&);
  7134. bool ReadLatestDataUpdate(Deserializer&);
  7135. operator RefCounted() const;
  7136. int Refs() const;
  7137. void ReleaseJoint();
  7138. void Remove();
  7139. void RemoveAttributeAnimation(const String&);
  7140. void RemoveInstanceDefault();
  7141. void RemoveObjectAnimation();
  7142. void ResetToDefault();
  7143. bool Save(Serializer&) const;
  7144. bool SaveDefaultAttributes() const;
  7145. bool SaveJSON(JSONValue&) const;
  7146. bool SaveXML(XMLElement&) const;
  7147. void SendEvent(StringHash);
  7148. void SendEvent(StringHash, VariantMap&);
  7149. operator Serializable() const;
  7150. void SetAnimationEnabled(bool);
  7151. void SetAnimationTime(float);
  7152. void SetAttachedConstraint(Constraint2D);
  7153. bool SetAttribute(const String&, const Variant&);
  7154. bool SetAttribute(uint, const Variant&);
  7155. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7156. void SetAttributeAnimationSpeed(const String&, float);
  7157. void SetAttributeAnimationTime(const String&, float);
  7158. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7159. void SetBlockEvents(bool);
  7160. void SetCollideConnected(bool);
  7161. void SetEnabled(bool);
  7162. void SetGlobalVar(StringHash, const Variant&);
  7163. void SetInstanceDefault(bool);
  7164. void SetInterceptNetworkUpdate(const String&, bool);
  7165. void SetObjectAnimation(ObjectAnimation);
  7166. void SetObjectAnimationAttr(const ResourceRef&);
  7167. void SetOtherBody(RigidBody2D);
  7168. void SetOtherBodyAnchor(const Vector2&);
  7169. void SetOtherBodyGroundAnchor(const Vector2&);
  7170. void SetOwnerBodyAnchor(const Vector2&);
  7171. void SetOwnerBodyGroundAnchor(const Vector2&);
  7172. void SetRatio(float);
  7173. void SetTemporary(bool);
  7174. const String& GetCategory() const;
  7175. const String& GetTypeName() const;
  7176. void UnsubscribeFromAllEvents();
  7177. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7178. void UnsubscribeFromEvent(Object, StringHash);
  7179. void UnsubscribeFromEvent(StringHash);
  7180. void UnsubscribeFromEvents(Object);
  7181. const Variant& GetGlobalVar(StringHash) const;
  7182. const VariantMap& GetGlobalVars() const;
  7183. const Vector2& GetOtherBodyAnchor() const;
  7184. const Vector2& GetOtherBodyGroundAnchor() const;
  7185. const Vector2& GetOwnerBodyAnchor() const;
  7186. const Vector2& GetOwnerBodyGroundAnchor() const;
  7187. int WeakRefs() const;
  7188. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7189. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7190. void WriteLatestDataUpdate(Serializer&, uint8);
  7191. operator const Animatable() const;
  7192. operator const Component() const;
  7193. operator const Constraint2D() const;
  7194. operator const Object() const;
  7195. operator const RefCounted() const;
  7196. operator const Serializable() const;
  7197. // Properties:
  7198. bool animationEnabled;
  7199. /* readonly */
  7200. Array<Variant> attributeDefaults;
  7201. /* readonly */
  7202. Array<AttributeInfo> attributeInfos;
  7203. Array<Variant> attributes;
  7204. /* readonly */
  7205. String category;
  7206. bool collideConnected;
  7207. bool enabled;
  7208. /* readonly */
  7209. bool enabledEffective;
  7210. Array<Variant> globalVar;
  7211. /* readonly */
  7212. VariantMap globalVars;
  7213. /* readonly */
  7214. uint id;
  7215. /* readonly */
  7216. Node node;
  7217. /* readonly */
  7218. uint numAttributes;
  7219. ObjectAnimation objectAnimation;
  7220. RigidBody2D otherBody;
  7221. Vector2 otherBodyAnchor;
  7222. Vector2 otherBodyGroundAnchor;
  7223. /* readonly */
  7224. RigidBody2D ownerBody;
  7225. Vector2 ownerBodyAnchor;
  7226. Vector2 ownerBodyGroundAnchor;
  7227. float ratio;
  7228. /* readonly */
  7229. int refs;
  7230. /* readonly */
  7231. bool replicated;
  7232. bool temporary;
  7233. /* readonly */
  7234. StringHash type;
  7235. /* readonly */
  7236. String typeName;
  7237. /* readonly */
  7238. int weakRefs;
  7239. };
  7240. class ConstraintRevolute2D
  7241. {
  7242. public:
  7243. ConstraintRevolute2D();
  7244. // Methods:
  7245. void AllocateNetworkState();
  7246. operator Animatable() const;
  7247. void ApplyAttributes();
  7248. void CleanupConnection(Connection);
  7249. operator Component() const;
  7250. operator Constraint2D() const;
  7251. void CreateJoint();
  7252. void DrawDebugGeometry(DebugRenderer, bool);
  7253. bool GetAnimationEnabled() const;
  7254. Constraint2D GetAttachedConstraint() const;
  7255. Variant GetAttribute(const String&) const;
  7256. Variant GetAttribute(uint) const;
  7257. ValueAnimation GetAttributeAnimation(const String&) const;
  7258. float GetAttributeAnimationSpeed(const String&) const;
  7259. float GetAttributeAnimationTime(const String&) const;
  7260. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7261. Variant GetAttributeDefault(const String&) const;
  7262. Variant GetAttributeDefault(uint) const;
  7263. bool GetBlockEvents() const;
  7264. bool GetCollideConnected() const;
  7265. Component GetComponent(StringHash) const;
  7266. bool GetEnableLimit() const;
  7267. bool GetEnableMotor() const;
  7268. VariantMap& GetEventDataMap() const;
  7269. Object GetEventSender() const;
  7270. uint GetID() const;
  7271. bool GetInterceptNetworkUpdate(const String&) const;
  7272. float GetLowerAngle() const;
  7273. float GetMaxMotorTorque() const;
  7274. float GetMotorSpeed() const;
  7275. Node GetNode() const;
  7276. uint GetNumAttributes() const;
  7277. uint GetNumNetworkAttributes() const;
  7278. ObjectAnimation GetObjectAnimation() const;
  7279. ResourceRef GetObjectAnimationAttr() const;
  7280. RigidBody2D GetOtherBody() const;
  7281. RigidBody2D GetOwnerBody() const;
  7282. Scene GetScene() const;
  7283. Object GetSubsystem(StringHash) const;
  7284. StringHash GetType() const;
  7285. float GetUpperAngle() const;
  7286. bool HasEventHandlers() const;
  7287. bool HasSubscribedToEvent(Object, StringHash) const;
  7288. bool HasSubscribedToEvent(StringHash) const;
  7289. bool IsEnabled() const;
  7290. bool IsEnabledEffective() const;
  7291. bool IsInstanceOf(StringHash) const;
  7292. bool IsReplicated() const;
  7293. bool IsTemporary() const;
  7294. bool Load(Deserializer&);
  7295. bool LoadJSON(const JSONValue&);
  7296. bool LoadXML(const XMLElement&);
  7297. void MarkNetworkUpdate();
  7298. operator Object() const;
  7299. void OnEvent(Object, StringHash, VariantMap&);
  7300. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7301. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7302. void OnSetEnabled();
  7303. void PrepareNetworkUpdate();
  7304. bool ReadDeltaUpdate(Deserializer&);
  7305. bool ReadLatestDataUpdate(Deserializer&);
  7306. operator RefCounted() const;
  7307. int Refs() const;
  7308. void ReleaseJoint();
  7309. void Remove();
  7310. void RemoveAttributeAnimation(const String&);
  7311. void RemoveInstanceDefault();
  7312. void RemoveObjectAnimation();
  7313. void ResetToDefault();
  7314. bool Save(Serializer&) const;
  7315. bool SaveDefaultAttributes() const;
  7316. bool SaveJSON(JSONValue&) const;
  7317. bool SaveXML(XMLElement&) const;
  7318. void SendEvent(StringHash);
  7319. void SendEvent(StringHash, VariantMap&);
  7320. operator Serializable() const;
  7321. void SetAnchor(const Vector2&);
  7322. void SetAnimationEnabled(bool);
  7323. void SetAnimationTime(float);
  7324. void SetAttachedConstraint(Constraint2D);
  7325. bool SetAttribute(const String&, const Variant&);
  7326. bool SetAttribute(uint, const Variant&);
  7327. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7328. void SetAttributeAnimationSpeed(const String&, float);
  7329. void SetAttributeAnimationTime(const String&, float);
  7330. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7331. void SetBlockEvents(bool);
  7332. void SetCollideConnected(bool);
  7333. void SetEnableLimit(bool);
  7334. void SetEnableMotor(bool);
  7335. void SetEnabled(bool);
  7336. void SetGlobalVar(StringHash, const Variant&);
  7337. void SetInstanceDefault(bool);
  7338. void SetInterceptNetworkUpdate(const String&, bool);
  7339. void SetLowerAngle(float);
  7340. void SetMaxMotorTorque(float);
  7341. void SetMotorSpeed(float);
  7342. void SetObjectAnimation(ObjectAnimation);
  7343. void SetObjectAnimationAttr(const ResourceRef&);
  7344. void SetOtherBody(RigidBody2D);
  7345. void SetTemporary(bool);
  7346. void SetUpperAngle(float);
  7347. const String& GetCategory() const;
  7348. const String& GetTypeName() const;
  7349. void UnsubscribeFromAllEvents();
  7350. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7351. void UnsubscribeFromEvent(Object, StringHash);
  7352. void UnsubscribeFromEvent(StringHash);
  7353. void UnsubscribeFromEvents(Object);
  7354. const Variant& GetGlobalVar(StringHash) const;
  7355. const VariantMap& GetGlobalVars() const;
  7356. const Vector2& GetAnchor() const;
  7357. int WeakRefs() const;
  7358. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7359. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7360. void WriteLatestDataUpdate(Serializer&, uint8);
  7361. operator const Animatable() const;
  7362. operator const Component() const;
  7363. operator const Constraint2D() const;
  7364. operator const Object() const;
  7365. operator const RefCounted() const;
  7366. operator const Serializable() const;
  7367. // Properties:
  7368. Vector2 anchor;
  7369. bool animationEnabled;
  7370. /* readonly */
  7371. Array<Variant> attributeDefaults;
  7372. /* readonly */
  7373. Array<AttributeInfo> attributeInfos;
  7374. Array<Variant> attributes;
  7375. /* readonly */
  7376. String category;
  7377. bool collideConnected;
  7378. bool enableLimit;
  7379. bool enableMotor;
  7380. bool enabled;
  7381. /* readonly */
  7382. bool enabledEffective;
  7383. Array<Variant> globalVar;
  7384. /* readonly */
  7385. VariantMap globalVars;
  7386. /* readonly */
  7387. uint id;
  7388. float lowerAngle;
  7389. float maxMotorTorque;
  7390. float motorSpeed;
  7391. /* readonly */
  7392. Node node;
  7393. /* readonly */
  7394. uint numAttributes;
  7395. ObjectAnimation objectAnimation;
  7396. RigidBody2D otherBody;
  7397. /* readonly */
  7398. RigidBody2D ownerBody;
  7399. /* readonly */
  7400. int refs;
  7401. /* readonly */
  7402. bool replicated;
  7403. bool temporary;
  7404. /* readonly */
  7405. StringHash type;
  7406. /* readonly */
  7407. String typeName;
  7408. float upperAngle;
  7409. /* readonly */
  7410. int weakRefs;
  7411. };
  7412. class ConstraintWeld2D
  7413. {
  7414. public:
  7415. ConstraintWeld2D();
  7416. // Methods:
  7417. void AllocateNetworkState();
  7418. operator Animatable() const;
  7419. void ApplyAttributes();
  7420. void CleanupConnection(Connection);
  7421. operator Component() const;
  7422. operator Constraint2D() const;
  7423. void CreateJoint();
  7424. void DrawDebugGeometry(DebugRenderer, bool);
  7425. bool GetAnimationEnabled() const;
  7426. Constraint2D GetAttachedConstraint() const;
  7427. Variant GetAttribute(const String&) const;
  7428. Variant GetAttribute(uint) const;
  7429. ValueAnimation GetAttributeAnimation(const String&) const;
  7430. float GetAttributeAnimationSpeed(const String&) const;
  7431. float GetAttributeAnimationTime(const String&) const;
  7432. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7433. Variant GetAttributeDefault(const String&) const;
  7434. Variant GetAttributeDefault(uint) const;
  7435. bool GetBlockEvents() const;
  7436. bool GetCollideConnected() const;
  7437. Component GetComponent(StringHash) const;
  7438. float GetDamping() const;
  7439. VariantMap& GetEventDataMap() const;
  7440. Object GetEventSender() const;
  7441. uint GetID() const;
  7442. bool GetInterceptNetworkUpdate(const String&) const;
  7443. Node GetNode() const;
  7444. uint GetNumAttributes() const;
  7445. uint GetNumNetworkAttributes() const;
  7446. ObjectAnimation GetObjectAnimation() const;
  7447. ResourceRef GetObjectAnimationAttr() const;
  7448. RigidBody2D GetOtherBody() const;
  7449. RigidBody2D GetOwnerBody() const;
  7450. Scene GetScene() const;
  7451. float GetStiffness() const;
  7452. Object GetSubsystem(StringHash) const;
  7453. StringHash GetType() const;
  7454. bool HasEventHandlers() const;
  7455. bool HasSubscribedToEvent(Object, StringHash) const;
  7456. bool HasSubscribedToEvent(StringHash) const;
  7457. bool IsEnabled() const;
  7458. bool IsEnabledEffective() const;
  7459. bool IsInstanceOf(StringHash) const;
  7460. bool IsReplicated() const;
  7461. bool IsTemporary() const;
  7462. bool Load(Deserializer&);
  7463. bool LoadJSON(const JSONValue&);
  7464. bool LoadXML(const XMLElement&);
  7465. void MarkNetworkUpdate();
  7466. operator Object() const;
  7467. void OnEvent(Object, StringHash, VariantMap&);
  7468. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7469. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7470. void OnSetEnabled();
  7471. void PrepareNetworkUpdate();
  7472. bool ReadDeltaUpdate(Deserializer&);
  7473. bool ReadLatestDataUpdate(Deserializer&);
  7474. operator RefCounted() const;
  7475. int Refs() const;
  7476. void ReleaseJoint();
  7477. void Remove();
  7478. void RemoveAttributeAnimation(const String&);
  7479. void RemoveInstanceDefault();
  7480. void RemoveObjectAnimation();
  7481. void ResetToDefault();
  7482. bool Save(Serializer&) const;
  7483. bool SaveDefaultAttributes() const;
  7484. bool SaveJSON(JSONValue&) const;
  7485. bool SaveXML(XMLElement&) const;
  7486. void SendEvent(StringHash);
  7487. void SendEvent(StringHash, VariantMap&);
  7488. operator Serializable() const;
  7489. void SetAnchor(const Vector2&);
  7490. bool SetAngularStiffness(float, float);
  7491. void SetAnimationEnabled(bool);
  7492. void SetAnimationTime(float);
  7493. void SetAttachedConstraint(Constraint2D);
  7494. bool SetAttribute(const String&, const Variant&);
  7495. bool SetAttribute(uint, const Variant&);
  7496. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7497. void SetAttributeAnimationSpeed(const String&, float);
  7498. void SetAttributeAnimationTime(const String&, float);
  7499. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7500. void SetBlockEvents(bool);
  7501. void SetCollideConnected(bool);
  7502. void SetDamping(float);
  7503. void SetEnabled(bool);
  7504. void SetGlobalVar(StringHash, const Variant&);
  7505. void SetInstanceDefault(bool);
  7506. void SetInterceptNetworkUpdate(const String&, bool);
  7507. void SetObjectAnimation(ObjectAnimation);
  7508. void SetObjectAnimationAttr(const ResourceRef&);
  7509. void SetOtherBody(RigidBody2D);
  7510. void SetStiffness(float);
  7511. void SetTemporary(bool);
  7512. const String& GetCategory() const;
  7513. const String& GetTypeName() const;
  7514. void UnsubscribeFromAllEvents();
  7515. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7516. void UnsubscribeFromEvent(Object, StringHash);
  7517. void UnsubscribeFromEvent(StringHash);
  7518. void UnsubscribeFromEvents(Object);
  7519. const Variant& GetGlobalVar(StringHash) const;
  7520. const VariantMap& GetGlobalVars() const;
  7521. const Vector2& GetAnchor() const;
  7522. int WeakRefs() const;
  7523. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7524. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7525. void WriteLatestDataUpdate(Serializer&, uint8);
  7526. operator const Animatable() const;
  7527. operator const Component() const;
  7528. operator const Constraint2D() const;
  7529. operator const Object() const;
  7530. operator const RefCounted() const;
  7531. operator const Serializable() const;
  7532. // Properties:
  7533. Vector2 anchor;
  7534. bool animationEnabled;
  7535. /* readonly */
  7536. Array<Variant> attributeDefaults;
  7537. /* readonly */
  7538. Array<AttributeInfo> attributeInfos;
  7539. Array<Variant> attributes;
  7540. /* readonly */
  7541. String category;
  7542. bool collideConnected;
  7543. float damping;
  7544. bool enabled;
  7545. /* readonly */
  7546. bool enabledEffective;
  7547. Array<Variant> globalVar;
  7548. /* readonly */
  7549. VariantMap globalVars;
  7550. /* readonly */
  7551. uint id;
  7552. /* readonly */
  7553. Node node;
  7554. /* readonly */
  7555. uint numAttributes;
  7556. ObjectAnimation objectAnimation;
  7557. RigidBody2D otherBody;
  7558. /* readonly */
  7559. RigidBody2D ownerBody;
  7560. /* readonly */
  7561. int refs;
  7562. /* readonly */
  7563. bool replicated;
  7564. float stiffness;
  7565. bool temporary;
  7566. /* readonly */
  7567. StringHash type;
  7568. /* readonly */
  7569. String typeName;
  7570. /* readonly */
  7571. int weakRefs;
  7572. };
  7573. class ConstraintWheel2D
  7574. {
  7575. public:
  7576. ConstraintWheel2D();
  7577. // Methods:
  7578. void AllocateNetworkState();
  7579. operator Animatable() const;
  7580. void ApplyAttributes();
  7581. void CleanupConnection(Connection);
  7582. operator Component() const;
  7583. operator Constraint2D() const;
  7584. void CreateJoint();
  7585. void DrawDebugGeometry(DebugRenderer, bool);
  7586. bool GetAnimationEnabled() const;
  7587. Constraint2D GetAttachedConstraint() const;
  7588. Variant GetAttribute(const String&) const;
  7589. Variant GetAttribute(uint) const;
  7590. ValueAnimation GetAttributeAnimation(const String&) const;
  7591. float GetAttributeAnimationSpeed(const String&) const;
  7592. float GetAttributeAnimationTime(const String&) const;
  7593. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7594. Variant GetAttributeDefault(const String&) const;
  7595. Variant GetAttributeDefault(uint) const;
  7596. bool GetBlockEvents() const;
  7597. bool GetCollideConnected() const;
  7598. Component GetComponent(StringHash) const;
  7599. float GetDamping() const;
  7600. bool GetEnableLimit() const;
  7601. bool GetEnableMotor() const;
  7602. VariantMap& GetEventDataMap() const;
  7603. Object GetEventSender() const;
  7604. uint GetID() const;
  7605. bool GetInterceptNetworkUpdate(const String&) const;
  7606. float GetLowerTranslation() const;
  7607. float GetMaxMotorTorque() const;
  7608. float GetMotorSpeed() const;
  7609. Node GetNode() const;
  7610. uint GetNumAttributes() const;
  7611. uint GetNumNetworkAttributes() const;
  7612. ObjectAnimation GetObjectAnimation() const;
  7613. ResourceRef GetObjectAnimationAttr() const;
  7614. RigidBody2D GetOtherBody() const;
  7615. RigidBody2D GetOwnerBody() const;
  7616. Scene GetScene() const;
  7617. float GetStiffness() const;
  7618. Object GetSubsystem(StringHash) const;
  7619. StringHash GetType() const;
  7620. float GetUpperTranslation() const;
  7621. bool HasEventHandlers() const;
  7622. bool HasSubscribedToEvent(Object, StringHash) const;
  7623. bool HasSubscribedToEvent(StringHash) const;
  7624. bool IsEnabled() const;
  7625. bool IsEnabledEffective() const;
  7626. bool IsInstanceOf(StringHash) const;
  7627. bool IsReplicated() const;
  7628. bool IsTemporary() const;
  7629. bool Load(Deserializer&);
  7630. bool LoadJSON(const JSONValue&);
  7631. bool LoadXML(const XMLElement&);
  7632. void MarkNetworkUpdate();
  7633. operator Object() const;
  7634. void OnEvent(Object, StringHash, VariantMap&);
  7635. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7636. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7637. void OnSetEnabled();
  7638. void PrepareNetworkUpdate();
  7639. bool ReadDeltaUpdate(Deserializer&);
  7640. bool ReadLatestDataUpdate(Deserializer&);
  7641. operator RefCounted() const;
  7642. int Refs() const;
  7643. void ReleaseJoint();
  7644. void Remove();
  7645. void RemoveAttributeAnimation(const String&);
  7646. void RemoveInstanceDefault();
  7647. void RemoveObjectAnimation();
  7648. void ResetToDefault();
  7649. bool Save(Serializer&) const;
  7650. bool SaveDefaultAttributes() const;
  7651. bool SaveJSON(JSONValue&) const;
  7652. bool SaveXML(XMLElement&) const;
  7653. void SendEvent(StringHash);
  7654. void SendEvent(StringHash, VariantMap&);
  7655. operator Serializable() const;
  7656. void SetAnchor(const Vector2&);
  7657. void SetAnimationEnabled(bool);
  7658. void SetAnimationTime(float);
  7659. void SetAttachedConstraint(Constraint2D);
  7660. bool SetAttribute(const String&, const Variant&);
  7661. bool SetAttribute(uint, const Variant&);
  7662. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7663. void SetAttributeAnimationSpeed(const String&, float);
  7664. void SetAttributeAnimationTime(const String&, float);
  7665. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7666. void SetAxis(const Vector2&);
  7667. void SetBlockEvents(bool);
  7668. void SetCollideConnected(bool);
  7669. void SetDamping(float);
  7670. void SetEnableLimit(bool);
  7671. void SetEnableMotor(bool);
  7672. void SetEnabled(bool);
  7673. void SetGlobalVar(StringHash, const Variant&);
  7674. void SetInstanceDefault(bool);
  7675. void SetInterceptNetworkUpdate(const String&, bool);
  7676. bool SetLinearStiffness(float, float);
  7677. void SetLowerTranslation(float);
  7678. void SetMaxMotorTorque(float);
  7679. void SetMotorSpeed(float);
  7680. void SetObjectAnimation(ObjectAnimation);
  7681. void SetObjectAnimationAttr(const ResourceRef&);
  7682. void SetOtherBody(RigidBody2D);
  7683. void SetStiffness(float);
  7684. void SetTemporary(bool);
  7685. void SetUpperTranslation(float);
  7686. const String& GetCategory() const;
  7687. const String& GetTypeName() const;
  7688. void UnsubscribeFromAllEvents();
  7689. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7690. void UnsubscribeFromEvent(Object, StringHash);
  7691. void UnsubscribeFromEvent(StringHash);
  7692. void UnsubscribeFromEvents(Object);
  7693. const Variant& GetGlobalVar(StringHash) const;
  7694. const VariantMap& GetGlobalVars() const;
  7695. const Vector2& GetAnchor() const;
  7696. const Vector2& GetAxis() const;
  7697. int WeakRefs() const;
  7698. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7699. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7700. void WriteLatestDataUpdate(Serializer&, uint8);
  7701. operator const Animatable() const;
  7702. operator const Component() const;
  7703. operator const Constraint2D() const;
  7704. operator const Object() const;
  7705. operator const RefCounted() const;
  7706. operator const Serializable() const;
  7707. // Properties:
  7708. Vector2 anchor;
  7709. bool animationEnabled;
  7710. /* readonly */
  7711. Array<Variant> attributeDefaults;
  7712. /* readonly */
  7713. Array<AttributeInfo> attributeInfos;
  7714. Array<Variant> attributes;
  7715. Vector2 axis;
  7716. /* readonly */
  7717. String category;
  7718. bool collideConnected;
  7719. float damping;
  7720. bool enableLimit;
  7721. bool enableMotor;
  7722. bool enabled;
  7723. /* readonly */
  7724. bool enabledEffective;
  7725. Array<Variant> globalVar;
  7726. /* readonly */
  7727. VariantMap globalVars;
  7728. /* readonly */
  7729. uint id;
  7730. float lowerTranslation;
  7731. float maxMotorTorque;
  7732. float motorSpeed;
  7733. /* readonly */
  7734. Node node;
  7735. /* readonly */
  7736. uint numAttributes;
  7737. ObjectAnimation objectAnimation;
  7738. RigidBody2D otherBody;
  7739. /* readonly */
  7740. RigidBody2D ownerBody;
  7741. /* readonly */
  7742. int refs;
  7743. /* readonly */
  7744. bool replicated;
  7745. float stiffness;
  7746. bool temporary;
  7747. /* readonly */
  7748. StringHash type;
  7749. /* readonly */
  7750. String typeName;
  7751. float upperTranslation;
  7752. /* readonly */
  7753. int weakRefs;
  7754. };
  7755. class Context
  7756. {
  7757. public:
  7758. Context();
  7759. // Methods:
  7760. void CopyBaseAttributes(StringHash, StringHash);
  7761. Object CreateObject(StringHash);
  7762. VariantMap& GetEventDataMap();
  7763. EventReceiverGroup GetEventReceivers(Object, StringHash);
  7764. EventReceiverGroup GetEventReceivers(StringHash);
  7765. Object GetEventSender() const;
  7766. Object GetSubsystem(StringHash) const;
  7767. operator RefCounted() const;
  7768. int Refs() const;
  7769. void RegisterFactory(ObjectFactory);
  7770. void RegisterSubsystem(Object);
  7771. void ReleaseSDL();
  7772. void RemoveAllAttributes(StringHash);
  7773. void RemoveSubsystem(StringHash);
  7774. bool RequireSDL(uint);
  7775. void SetGlobalVar(StringHash, const Variant&);
  7776. const String& GetTypeName(StringHash) const;
  7777. const Variant& GetGlobalVar(StringHash) const;
  7778. const VariantMap& GetGlobalVars() const;
  7779. int WeakRefs() const;
  7780. operator const RefCounted() const;
  7781. // Properties:
  7782. /* readonly */
  7783. int refs;
  7784. /* readonly */
  7785. int weakRefs;
  7786. };
  7787. class Controls
  7788. {
  7789. public:
  7790. ~Controls();
  7791. Controls();
  7792. // Methods:
  7793. Controls& operator=(const Controls&);
  7794. bool IsDown(uint) const;
  7795. bool IsPressed(uint, const Controls&) const;
  7796. void Reset();
  7797. void Set(uint, bool = true);
  7798. // Properties:
  7799. uint buttons;
  7800. VariantMap extraData;
  7801. float pitch;
  7802. float yaw;
  7803. };
  7804. class ConvexData
  7805. {
  7806. public:
  7807. ConvexData(Model&, uint);
  7808. ConvexData(CustomGeometry&);
  7809. // Methods:
  7810. void BuildHull(Array<Vector3>);
  7811. operator CollisionGeometryData() const;
  7812. operator RefCounted() const;
  7813. int Refs() const;
  7814. int WeakRefs() const;
  7815. operator const CollisionGeometryData() const;
  7816. operator const RefCounted() const;
  7817. // Properties:
  7818. uint indexCount;
  7819. /* readonly */
  7820. int refs;
  7821. uint vertexCount;
  7822. /* readonly */
  7823. int weakRefs;
  7824. };
  7825. class CrowdAgent
  7826. {
  7827. public:
  7828. CrowdAgent();
  7829. // Methods:
  7830. void AllocateNetworkState();
  7831. operator Animatable() const;
  7832. void ApplyAttributes();
  7833. void CleanupConnection(Connection);
  7834. operator Component() const;
  7835. void DrawDebugGeometry(DebugRenderer, bool);
  7836. void DrawDebugGeometry(bool);
  7837. Vector3 GetActualVelocity() const;
  7838. int GetAgentCrowdId() const;
  7839. CrowdAgentState GetAgentState() const;
  7840. bool GetAnimationEnabled() const;
  7841. Variant GetAttribute(const String&) const;
  7842. Variant GetAttribute(uint) const;
  7843. ValueAnimation GetAttributeAnimation(const String&) const;
  7844. float GetAttributeAnimationSpeed(const String&) const;
  7845. float GetAttributeAnimationTime(const String&) const;
  7846. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7847. Variant GetAttributeDefault(const String&) const;
  7848. Variant GetAttributeDefault(uint) const;
  7849. bool GetBlockEvents() const;
  7850. Component GetComponent(StringHash) const;
  7851. Vector3 GetDesiredVelocity() const;
  7852. VariantMap& GetEventDataMap() const;
  7853. Object GetEventSender() const;
  7854. float GetHeight() const;
  7855. uint GetID() const;
  7856. bool GetInterceptNetworkUpdate(const String&) const;
  7857. float GetMaxAccel() const;
  7858. float GetMaxSpeed() const;
  7859. NavigationPushiness GetNavigationPushiness() const;
  7860. NavigationQuality GetNavigationQuality() const;
  7861. Node GetNode() const;
  7862. uint GetNumAttributes() const;
  7863. uint GetNumNetworkAttributes() const;
  7864. ObjectAnimation GetObjectAnimation() const;
  7865. ResourceRef GetObjectAnimationAttr() const;
  7866. uint GetObstacleAvoidanceType() const;
  7867. Vector3 GetPosition() const;
  7868. uint GetQueryFilterType() const;
  7869. float GetRadius() const;
  7870. CrowdAgentRequestedTarget GetRequestedTargetType() const;
  7871. Scene GetScene() const;
  7872. Object GetSubsystem(StringHash) const;
  7873. CrowdAgentTargetState GetTargetState() const;
  7874. StringHash GetType() const;
  7875. bool GetUpdateNodePosition() const;
  7876. bool HasArrived() const;
  7877. bool HasEventHandlers() const;
  7878. bool HasRequestedTarget() const;
  7879. bool HasSubscribedToEvent(Object, StringHash) const;
  7880. bool HasSubscribedToEvent(StringHash) const;
  7881. bool IsEnabled() const;
  7882. bool IsEnabledEffective() const;
  7883. bool IsInCrowd() const;
  7884. bool IsInstanceOf(StringHash) const;
  7885. bool IsReplicated() const;
  7886. bool IsTemporary() const;
  7887. bool Load(Deserializer&);
  7888. bool LoadJSON(const JSONValue&);
  7889. bool LoadXML(const XMLElement&);
  7890. void MarkNetworkUpdate();
  7891. operator Object() const;
  7892. void OnEvent(Object, StringHash, VariantMap&);
  7893. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7894. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7895. void OnSetEnabled();
  7896. void PrepareNetworkUpdate();
  7897. bool ReadDeltaUpdate(Deserializer&);
  7898. bool ReadLatestDataUpdate(Deserializer&);
  7899. operator RefCounted() const;
  7900. int Refs() const;
  7901. void Remove();
  7902. void RemoveAttributeAnimation(const String&);
  7903. void RemoveInstanceDefault();
  7904. void RemoveObjectAnimation();
  7905. void ResetTarget();
  7906. void ResetToDefault();
  7907. bool Save(Serializer&) const;
  7908. bool SaveDefaultAttributes() const;
  7909. bool SaveJSON(JSONValue&) const;
  7910. bool SaveXML(XMLElement&) const;
  7911. void SendEvent(StringHash);
  7912. void SendEvent(StringHash, VariantMap&);
  7913. operator Serializable() const;
  7914. void SetAnimationEnabled(bool);
  7915. void SetAnimationTime(float);
  7916. bool SetAttribute(const String&, const Variant&);
  7917. bool SetAttribute(uint, const Variant&);
  7918. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7919. void SetAttributeAnimationSpeed(const String&, float);
  7920. void SetAttributeAnimationTime(const String&, float);
  7921. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7922. void SetBlockEvents(bool);
  7923. void SetEnabled(bool);
  7924. void SetGlobalVar(StringHash, const Variant&);
  7925. void SetHeight(float);
  7926. void SetInstanceDefault(bool);
  7927. void SetInterceptNetworkUpdate(const String&, bool);
  7928. void SetMaxAccel(float);
  7929. void SetMaxSpeed(float);
  7930. void SetNavigationPushiness(NavigationPushiness);
  7931. void SetNavigationQuality(NavigationQuality);
  7932. void SetObjectAnimation(ObjectAnimation);
  7933. void SetObjectAnimationAttr(const ResourceRef&);
  7934. void SetObstacleAvoidanceType(uint);
  7935. void SetQueryFilterType(uint);
  7936. void SetRadius(float);
  7937. void SetTargetPosition(const Vector3&);
  7938. void SetTargetVelocity(const Vector3&);
  7939. void SetTemporary(bool);
  7940. void SetUpdateNodePosition(bool);
  7941. const String& GetCategory() const;
  7942. const String& GetTypeName() const;
  7943. void UnsubscribeFromAllEvents();
  7944. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7945. void UnsubscribeFromEvent(Object, StringHash);
  7946. void UnsubscribeFromEvent(StringHash);
  7947. void UnsubscribeFromEvents(Object);
  7948. const Variant& GetGlobalVar(StringHash) const;
  7949. const VariantMap& GetGlobalVars() const;
  7950. const Vector3& GetTargetPosition() const;
  7951. const Vector3& GetTargetVelocity() const;
  7952. int WeakRefs() const;
  7953. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7954. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7955. void WriteLatestDataUpdate(Serializer&, uint8);
  7956. operator const Animatable() const;
  7957. operator const Component() const;
  7958. operator const Object() const;
  7959. operator const RefCounted() const;
  7960. operator const Serializable() const;
  7961. // Properties:
  7962. /* readonly */
  7963. Vector3 actualVelocity;
  7964. /* readonly */
  7965. CrowdAgentState agentState;
  7966. bool animationEnabled;
  7967. /* readonly */
  7968. bool arrived;
  7969. /* readonly */
  7970. Array<Variant> attributeDefaults;
  7971. /* readonly */
  7972. Array<AttributeInfo> attributeInfos;
  7973. Array<Variant> attributes;
  7974. /* readonly */
  7975. String category;
  7976. /* readonly */
  7977. Vector3 desiredVelocity;
  7978. bool enabled;
  7979. /* readonly */
  7980. bool enabledEffective;
  7981. Array<Variant> globalVar;
  7982. /* readonly */
  7983. VariantMap globalVars;
  7984. float height;
  7985. /* readonly */
  7986. uint id;
  7987. /* readonly */
  7988. bool inCrowd;
  7989. float maxAccel;
  7990. float maxSpeed;
  7991. NavigationPushiness navigationPushiness;
  7992. NavigationQuality navigationQuality;
  7993. /* readonly */
  7994. Node node;
  7995. /* readonly */
  7996. uint numAttributes;
  7997. ObjectAnimation objectAnimation;
  7998. uint obstacleAvoidanceType;
  7999. /* readonly */
  8000. Vector3 position;
  8001. uint queryFilterType;
  8002. float radius;
  8003. /* readonly */
  8004. int refs;
  8005. /* readonly */
  8006. bool replicated;
  8007. /* readonly */
  8008. bool requestedTarget;
  8009. /* readonly */
  8010. CrowdAgentRequestedTarget requestedTargetType;
  8011. Vector3 targetPosition;
  8012. /* readonly */
  8013. CrowdAgentTargetState targetState;
  8014. Vector3 targetVelocity;
  8015. bool temporary;
  8016. /* readonly */
  8017. StringHash type;
  8018. /* readonly */
  8019. String typeName;
  8020. bool updateNodePosition;
  8021. /* readonly */
  8022. int weakRefs;
  8023. };
  8024. class CrowdManager
  8025. {
  8026. public:
  8027. CrowdManager();
  8028. // Methods:
  8029. void AllocateNetworkState();
  8030. operator Animatable() const;
  8031. void ApplyAttributes();
  8032. void CleanupConnection(Connection);
  8033. operator Component() const;
  8034. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint) const;
  8035. void DrawDebugGeometry(DebugRenderer, bool);
  8036. void DrawDebugGeometry(bool);
  8037. Vector3 FindNearestPoint(const Vector3&, int);
  8038. Array<CrowdAgent> GetAgents(Node = null, bool = true) const;
  8039. bool GetAnimationEnabled() const;
  8040. float GetAreaCost(uint, uint) const;
  8041. Variant GetAttribute(const String&) const;
  8042. Variant GetAttribute(uint) const;
  8043. ValueAnimation GetAttributeAnimation(const String&) const;
  8044. float GetAttributeAnimationSpeed(const String&) const;
  8045. float GetAttributeAnimationTime(const String&) const;
  8046. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8047. Variant GetAttributeDefault(const String&) const;
  8048. Variant GetAttributeDefault(uint) const;
  8049. bool GetBlockEvents() const;
  8050. Component GetComponent(StringHash) const;
  8051. float GetDistanceToWall(const Vector3&, float, int);
  8052. VariantMap& GetEventDataMap() const;
  8053. Object GetEventSender() const;
  8054. uint16 GetExcludeFlags(uint) const;
  8055. uint GetID() const;
  8056. uint16 GetIncludeFlags(uint) const;
  8057. bool GetInterceptNetworkUpdate(const String&) const;
  8058. float GetMaxAgentRadius() const;
  8059. uint GetMaxAgents() const;
  8060. NavigationMesh GetNavigationMesh() const;
  8061. Node GetNode() const;
  8062. uint GetNumAreas(uint) const;
  8063. uint GetNumAttributes() const;
  8064. uint GetNumNetworkAttributes() const;
  8065. uint GetNumObstacleAvoidanceTypes() const;
  8066. uint GetNumQueryFilterTypes() const;
  8067. ObjectAnimation GetObjectAnimation() const;
  8068. ResourceRef GetObjectAnimationAttr() const;
  8069. Vector3 GetRandomPoint(int);
  8070. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  8071. Scene GetScene() const;
  8072. Object GetSubsystem(StringHash) const;
  8073. StringHash GetType() const;
  8074. bool HasEventHandlers() const;
  8075. bool HasSubscribedToEvent(Object, StringHash) const;
  8076. bool HasSubscribedToEvent(StringHash) const;
  8077. bool IsEnabled() const;
  8078. bool IsEnabledEffective() const;
  8079. bool IsInstanceOf(StringHash) const;
  8080. bool IsReplicated() const;
  8081. bool IsTemporary() const;
  8082. bool Load(Deserializer&);
  8083. bool LoadJSON(const JSONValue&);
  8084. bool LoadXML(const XMLElement&);
  8085. void MarkNetworkUpdate();
  8086. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, int = 3);
  8087. operator Object() const;
  8088. void OnEvent(Object, StringHash, VariantMap&);
  8089. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8090. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8091. void OnSetEnabled();
  8092. void PrepareNetworkUpdate();
  8093. Vector3 Raycast(const Vector3&, const Vector3&, int);
  8094. bool ReadDeltaUpdate(Deserializer&);
  8095. bool ReadLatestDataUpdate(Deserializer&);
  8096. operator RefCounted() const;
  8097. int Refs() const;
  8098. void Remove();
  8099. void RemoveAttributeAnimation(const String&);
  8100. void RemoveInstanceDefault();
  8101. void RemoveObjectAnimation();
  8102. void ResetCrowdTarget(Node = null);
  8103. void ResetToDefault();
  8104. bool Save(Serializer&) const;
  8105. bool SaveDefaultAttributes() const;
  8106. bool SaveJSON(JSONValue&) const;
  8107. bool SaveXML(XMLElement&) const;
  8108. void SendEvent(StringHash);
  8109. void SendEvent(StringHash, VariantMap&);
  8110. operator Serializable() const;
  8111. void SetAnimationEnabled(bool);
  8112. void SetAnimationTime(float);
  8113. void SetAreaCost(uint, uint, float);
  8114. bool SetAttribute(const String&, const Variant&);
  8115. bool SetAttribute(uint, const Variant&);
  8116. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8117. void SetAttributeAnimationSpeed(const String&, float);
  8118. void SetAttributeAnimationTime(const String&, float);
  8119. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8120. void SetBlockEvents(bool);
  8121. void SetCrowdTarget(const Vector3&, Node = null);
  8122. void SetCrowdVelocity(const Vector3&, Node = null);
  8123. void SetEnabled(bool);
  8124. void SetExcludeFlags(uint, uint16);
  8125. void SetGlobalVar(StringHash, const Variant&);
  8126. void SetIncludeFlags(uint, uint16);
  8127. void SetInstanceDefault(bool);
  8128. void SetInterceptNetworkUpdate(const String&, bool);
  8129. void SetMaxAgentRadius(float);
  8130. void SetMaxAgents(uint);
  8131. void SetNavigationMesh(NavigationMesh);
  8132. void SetObjectAnimation(ObjectAnimation);
  8133. void SetObjectAnimationAttr(const ResourceRef&);
  8134. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  8135. void SetTemporary(bool);
  8136. const String& GetCategory() const;
  8137. const String& GetTypeName() const;
  8138. void UnsubscribeFromAllEvents();
  8139. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8140. void UnsubscribeFromEvent(Object, StringHash);
  8141. void UnsubscribeFromEvent(StringHash);
  8142. void UnsubscribeFromEvents(Object);
  8143. const Variant& GetGlobalVar(StringHash) const;
  8144. const VariantMap& GetGlobalVars() const;
  8145. int WeakRefs() const;
  8146. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8147. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8148. void WriteLatestDataUpdate(Serializer&, uint8);
  8149. operator const Animatable() const;
  8150. operator const Component() const;
  8151. operator const Object() const;
  8152. operator const RefCounted() const;
  8153. operator const Serializable() const;
  8154. // Properties:
  8155. bool animationEnabled;
  8156. /* readonly */
  8157. Array<Variant> attributeDefaults;
  8158. /* readonly */
  8159. Array<AttributeInfo> attributeInfos;
  8160. Array<Variant> attributes;
  8161. /* readonly */
  8162. String category;
  8163. bool enabled;
  8164. /* readonly */
  8165. bool enabledEffective;
  8166. Array<Variant> globalVar;
  8167. /* readonly */
  8168. VariantMap globalVars;
  8169. /* readonly */
  8170. uint id;
  8171. float maxAgentRadius;
  8172. uint maxAgents;
  8173. NavigationMesh navMesh;
  8174. /* readonly */
  8175. Node node;
  8176. /* readonly */
  8177. Array<uint> numAreas;
  8178. /* readonly */
  8179. uint numAttributes;
  8180. /* readonly */
  8181. uint numObstacleAvoidanceTypes;
  8182. /* readonly */
  8183. uint numQueryFilterTypes;
  8184. ObjectAnimation objectAnimation;
  8185. /* readonly */
  8186. int refs;
  8187. /* readonly */
  8188. bool replicated;
  8189. bool temporary;
  8190. /* readonly */
  8191. StringHash type;
  8192. /* readonly */
  8193. String typeName;
  8194. /* readonly */
  8195. int weakRefs;
  8196. };
  8197. class CrowdObstacleAvoidanceParams
  8198. {
  8199. public:
  8200. // Methods:
  8201. CrowdObstacleAvoidanceParams& operator=(const CrowdObstacleAvoidanceParams&);
  8202. // Properties:
  8203. uint8 adaptiveDepth;
  8204. uint8 adaptiveDivs;
  8205. uint8 adaptiveRings;
  8206. uint8 gridSize;
  8207. float horizTime;
  8208. float velBias;
  8209. float weightCurVel;
  8210. float weightDesVel;
  8211. float weightSide;
  8212. float weightToi;
  8213. };
  8214. class Cursor
  8215. {
  8216. public:
  8217. Cursor();
  8218. Cursor(const String&in);
  8219. // Methods:
  8220. void AddChild(UIElement);
  8221. void AddTag(const String&);
  8222. void AddTags(Array<String>);
  8223. void AddTags(const String&, int8 = ';');
  8224. void AdjustScissor(IntRect&);
  8225. void AllocateNetworkState();
  8226. operator Animatable() const;
  8227. void ApplyAttributes();
  8228. void ApplyOSCursorShape();
  8229. operator BorderImage() const;
  8230. void BringToFront();
  8231. const Color& GetColor(Corner) const;
  8232. const Color& GetColorAttr() const;
  8233. const Color& GetDerivedColor() const;
  8234. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  8235. void DefineShape(CursorShape, Image, const IntRect&, const IntVector2&);
  8236. void DefineShape(const String&, Image, const IntRect&, const IntVector2&);
  8237. void DisableLayoutUpdate();
  8238. IntVector2 ElementToScreen(const IntVector2&);
  8239. void EnableLayoutUpdate();
  8240. bool FilterAttributes(XMLElement&) const;
  8241. uint FindChild(UIElement) const;
  8242. bool GetAnimationEnabled() const;
  8243. Variant GetAttribute(const String&) const;
  8244. Variant GetAttribute(uint) const;
  8245. ValueAnimation GetAttributeAnimation(const String&) const;
  8246. float GetAttributeAnimationSpeed(const String&) const;
  8247. float GetAttributeAnimationTime(const String&) const;
  8248. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8249. Variant GetAttributeDefault(const String&) const;
  8250. Variant GetAttributeDefault(uint) const;
  8251. BlendMode GetBlendMode() const;
  8252. bool GetBlockEvents() const;
  8253. bool GetBringToBack() const;
  8254. bool GetBringToFront() const;
  8255. UIElement GetChild(const String&, bool = false) const;
  8256. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  8257. UIElement GetChild(uint) const;
  8258. Array<UIElement> GetChildren() const;
  8259. Array<UIElement> GetChildren(bool) const;
  8260. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8261. bool GetClipChildren() const;
  8262. IntRect GetCombinedScreenRect();
  8263. XMLFile GetDefaultStyle(bool = true) const;
  8264. float GetDerivedOpacity() const;
  8265. uint GetDragButtonCombo() const;
  8266. uint GetDragButtonCount() const;
  8267. uint GetDragDropMode() const;
  8268. IntVector2 GetEffectiveMinSize() const;
  8269. UIElement GetElementEventSender() const;
  8270. bool GetEnableAnchor() const;
  8271. VariantMap& GetEventDataMap() const;
  8272. Object GetEventSender() const;
  8273. FocusMode GetFocusMode() const;
  8274. int GetHeight() const;
  8275. HorizontalAlignment GetHorizontalAlignment() const;
  8276. int GetIndent() const;
  8277. int GetIndentSpacing() const;
  8278. int GetIndentWidth() const;
  8279. bool GetInterceptNetworkUpdate(const String&) const;
  8280. int GetLayoutElementMaxSize() const;
  8281. LayoutMode GetLayoutMode() const;
  8282. int GetLayoutSpacing() const;
  8283. Material GetMaterial() const;
  8284. ResourceRef GetMaterialAttr() const;
  8285. int GetMaxHeight() const;
  8286. int GetMaxWidth() const;
  8287. int GetMinHeight() const;
  8288. int GetMinWidth() const;
  8289. uint GetNumAttributes() const;
  8290. uint GetNumChildren(bool = false) const;
  8291. uint GetNumNetworkAttributes() const;
  8292. ObjectAnimation GetObjectAnimation() const;
  8293. ResourceRef GetObjectAnimationAttr() const;
  8294. float GetOpacity() const;
  8295. UIElement GetParent() const;
  8296. int GetPriority() const;
  8297. UIElement GetRoot() const;
  8298. bool GetSortChildren() const;
  8299. Object GetSubsystem(StringHash) const;
  8300. Array<String> GetTags() const;
  8301. Texture GetTexture() const;
  8302. ResourceRef GetTextureAttr() const;
  8303. TraversalMode GetTraversalMode() const;
  8304. StringHash GetType() const;
  8305. bool GetUseDerivedOpacity() const;
  8306. bool GetUseSystemShapes() const;
  8307. VerticalAlignment GetVerticalAlignment() const;
  8308. int GetWidth() const;
  8309. bool HasColorGradient() const;
  8310. bool HasEventHandlers() const;
  8311. bool HasFocus() const;
  8312. bool HasSubscribedToEvent(Object, StringHash) const;
  8313. bool HasSubscribedToEvent(StringHash) const;
  8314. bool HasTag(const String&) const;
  8315. void InsertChild(uint, UIElement);
  8316. const IntRect& GetBorder() const;
  8317. const IntRect& GetClipBorder() const;
  8318. const IntRect& GetImageBorder() const;
  8319. const IntRect& GetImageRect() const;
  8320. const IntRect& GetLayoutBorder() const;
  8321. const IntVector2& GetChildOffset() const;
  8322. const IntVector2& GetDisabledOffset() const;
  8323. const IntVector2& GetHoverOffset() const;
  8324. const IntVector2& GetMaxOffset() const;
  8325. const IntVector2& GetMaxSize() const;
  8326. const IntVector2& GetMinOffset() const;
  8327. const IntVector2& GetMinSize() const;
  8328. const IntVector2& GetPosition() const;
  8329. const IntVector2& GetScreenPosition() const;
  8330. const IntVector2& GetSize() const;
  8331. bool IsChildOf(UIElement) const;
  8332. bool IsEditable() const;
  8333. bool IsElementEventSender() const;
  8334. bool IsEnabled() const;
  8335. bool IsEnabledSelf() const;
  8336. bool IsFixedHeight() const;
  8337. bool IsFixedSize() const;
  8338. bool IsFixedWidth() const;
  8339. bool IsHovering() const;
  8340. bool IsInside(IntVector2, bool);
  8341. bool IsInsideCombined(IntVector2, bool);
  8342. bool IsInstanceOf(StringHash) const;
  8343. bool IsInternal() const;
  8344. bool IsSelected() const;
  8345. bool IsTemporary() const;
  8346. bool IsTiled() const;
  8347. bool IsVisible() const;
  8348. bool IsVisibleEffective() const;
  8349. bool IsWheelHandler() const;
  8350. bool IsWithinScissor(const IntRect&);
  8351. bool Load(Deserializer&);
  8352. UIElement LoadChildXML(XMLFile, XMLFile);
  8353. UIElement LoadChildXML(const XMLElement&, XMLFile);
  8354. bool LoadJSON(const JSONValue&);
  8355. bool LoadXML(Deserializer&);
  8356. bool LoadXML(File);
  8357. bool LoadXML(VectorBuffer&);
  8358. bool LoadXML(XMLFile, XMLFile);
  8359. bool LoadXML(const XMLElement&);
  8360. bool LoadXML(const XMLElement&, XMLFile);
  8361. void MarkNetworkUpdate();
  8362. operator Object() const;
  8363. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  8364. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  8365. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  8366. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8367. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8368. bool OnDragDropFinish(UIElement);
  8369. bool OnDragDropTest(UIElement);
  8370. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8371. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8372. void OnEvent(Object, StringHash, VariantMap&);
  8373. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8374. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8375. void OnIndentSet();
  8376. void OnKey(uint, uint, uint);
  8377. void OnPositionSet(const IntVector2&);
  8378. void OnResize(const IntVector2&, const IntVector2&);
  8379. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8380. void OnSetEditable();
  8381. void OnTextInput(const String&);
  8382. void OnWheel(int, uint, uint);
  8383. bool ReadDeltaUpdate(Deserializer&);
  8384. bool ReadLatestDataUpdate(Deserializer&);
  8385. operator RefCounted() const;
  8386. int Refs() const;
  8387. void Remove();
  8388. void RemoveAllChildren();
  8389. void RemoveAllTags();
  8390. void RemoveAttributeAnimation(const String&);
  8391. void RemoveChild(UIElement, uint = 0);
  8392. void RemoveChild(uint);
  8393. void RemoveChildAtIndex(uint);
  8394. void RemoveInstanceDefault();
  8395. void RemoveObjectAnimation();
  8396. bool RemoveTag(const String&);
  8397. void ResetDeepEnabled();
  8398. void ResetToDefault();
  8399. bool Save(Serializer&) const;
  8400. bool SaveDefaultAttributes() const;
  8401. bool SaveJSON(JSONValue&) const;
  8402. bool SaveXML(File, const String& indentation = "\t");
  8403. bool SaveXML(Serializer&, const String& = "\t") const;
  8404. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  8405. bool SaveXML(XMLElement&) const;
  8406. IntVector2 ScreenToElement(const IntVector2&);
  8407. void SendEvent(StringHash);
  8408. void SendEvent(StringHash, VariantMap&);
  8409. operator Serializable() const;
  8410. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8411. void SetAnimationEnabled(bool);
  8412. void SetAnimationTime(float);
  8413. bool SetAttribute(const String&, const Variant&);
  8414. bool SetAttribute(uint, const Variant&);
  8415. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8416. void SetAttributeAnimationSpeed(const String&, float);
  8417. void SetAttributeAnimationTime(const String&, float);
  8418. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8419. void SetBlendMode(BlendMode);
  8420. void SetBlockEvents(bool);
  8421. void SetBorder(const IntRect&);
  8422. void SetBringToBack(bool);
  8423. void SetBringToFront(bool);
  8424. void SetChildOffset(const IntVector2&);
  8425. void SetClipBorder(const IntRect&);
  8426. void SetClipChildren(bool);
  8427. void SetColor(Corner, const Color&);
  8428. void SetColor(const Color&);
  8429. void SetDeepEnabled(bool);
  8430. void SetDefaultStyle(XMLFile);
  8431. void SetDisabledOffset(const IntVector2&);
  8432. void SetDisabledOffset(int, int);
  8433. void SetDragDropMode(uint);
  8434. void SetEditable(bool);
  8435. void SetElementEventSender(bool);
  8436. void SetEnableAnchor(bool);
  8437. void SetEnabled(bool);
  8438. void SetEnabledRecursive(bool);
  8439. void SetFixedHeight(int);
  8440. void SetFixedSize(const IntVector2&);
  8441. void SetFixedSize(int, int);
  8442. void SetFixedWidth(int);
  8443. void SetFocus(bool);
  8444. void SetFocusMode(FocusMode);
  8445. void SetFullImageRect();
  8446. void SetGlobalVar(StringHash, const Variant&);
  8447. void SetHeight(int);
  8448. void SetHorizontalAlignment(HorizontalAlignment);
  8449. void SetHoverOffset(const IntVector2&);
  8450. void SetHoverOffset(int, int);
  8451. void SetHovering(bool);
  8452. void SetImageBorder(const IntRect&);
  8453. void SetImageRect(const IntRect&);
  8454. void SetIndent(int);
  8455. void SetIndentSpacing(int);
  8456. void SetInstanceDefault(bool);
  8457. void SetInterceptNetworkUpdate(const String&, bool);
  8458. void SetInternal(bool);
  8459. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  8460. void SetLayoutBorder(const IntRect&);
  8461. void SetLayoutFlexScale(const Vector2&);
  8462. void SetLayoutMode(LayoutMode);
  8463. void SetLayoutSpacing(int);
  8464. void SetMaterial(Material);
  8465. void SetMaterialAttr(const ResourceRef&);
  8466. void SetMaxAnchor(const Vector2&);
  8467. void SetMaxAnchor(float, float);
  8468. void SetMaxHeight(int);
  8469. void SetMaxOffset(const IntVector2&);
  8470. void SetMaxSize(const IntVector2&);
  8471. void SetMaxSize(int, int);
  8472. void SetMaxWidth(int);
  8473. void SetMinAnchor(const Vector2&);
  8474. void SetMinAnchor(float, float);
  8475. void SetMinHeight(int);
  8476. void SetMinOffset(const IntVector2&);
  8477. void SetMinSize(const IntVector2&);
  8478. void SetMinSize(int, int);
  8479. void SetMinWidth(int);
  8480. void SetName(const String&);
  8481. void SetObjectAnimation(ObjectAnimation);
  8482. void SetObjectAnimationAttr(const ResourceRef&);
  8483. void SetOpacity(float);
  8484. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8485. void SetPivot(const Vector2&);
  8486. void SetPivot(float, float);
  8487. void SetPosition(const IntVector2&);
  8488. void SetPosition(int, int);
  8489. void SetPriority(int);
  8490. void SetRenderTexture(Texture2D);
  8491. void SetSelected(bool);
  8492. void SetShape(CursorShape);
  8493. void SetShape(const String&);
  8494. void SetSize(const IntVector2&);
  8495. void SetSize(int, int);
  8496. void SetSortChildren(bool);
  8497. bool SetStyle(const String&, XMLFile = null);
  8498. bool SetStyle(const XMLElement&);
  8499. bool SetStyleAuto(XMLFile = null);
  8500. void SetTags(Array<String>);
  8501. void SetTemporary(bool);
  8502. void SetTexture(Texture);
  8503. void SetTextureAttr(const ResourceRef&);
  8504. void SetTiled(bool);
  8505. void SetTraversalMode(TraversalMode);
  8506. void SetUseDerivedOpacity(bool);
  8507. void SetUseSystemShapes(bool);
  8508. void SetVar(StringHash, const Variant&);
  8509. void SetVerticalAlignment(VerticalAlignment);
  8510. void SetVisible(bool);
  8511. void SetWidth(int);
  8512. void SortChildren();
  8513. const String& GetAppliedStyle() const;
  8514. const String& GetCategory() const;
  8515. const String& GetName() const;
  8516. const String& GetShape() const;
  8517. const String& GetTypeName() const;
  8518. operator UIElement() const;
  8519. void UnsubscribeFromAllEvents();
  8520. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8521. void UnsubscribeFromEvent(Object, StringHash);
  8522. void UnsubscribeFromEvent(StringHash);
  8523. void UnsubscribeFromEvents(Object);
  8524. void Update(float);
  8525. void UpdateLayout();
  8526. const Variant& GetGlobalVar(StringHash) const;
  8527. const Variant& GetVar(const StringHash&) const;
  8528. const VariantMap& GetGlobalVars() const;
  8529. const VariantMap& GetVars() const;
  8530. const Vector2& GetLayoutFlexScale() const;
  8531. const Vector2& GetMaxAnchor() const;
  8532. const Vector2& GetMinAnchor() const;
  8533. const Vector2& GetPivot() const;
  8534. int WeakRefs() const;
  8535. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8536. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8537. void WriteLatestDataUpdate(Serializer&, uint8);
  8538. operator const Animatable() const;
  8539. operator const BorderImage() const;
  8540. operator const Object() const;
  8541. operator const RefCounted() const;
  8542. operator const Serializable() const;
  8543. operator const UIElement() const;
  8544. // Properties:
  8545. bool animationEnabled;
  8546. /* readonly */
  8547. Array<Variant> attributeDefaults;
  8548. /* readonly */
  8549. Array<AttributeInfo> attributeInfos;
  8550. Array<Variant> attributes;
  8551. BlendMode blendMode;
  8552. IntRect border;
  8553. bool bringToBack;
  8554. bool bringToFront;
  8555. /* readonly */
  8556. String category;
  8557. /* readonly */
  8558. IntVector2 childOffset;
  8559. /* readonly */
  8560. Array<UIElement> children;
  8561. IntRect clipBorder;
  8562. bool clipChildren;
  8563. /* writeonly */
  8564. Color color;
  8565. /* readonly */
  8566. bool colorGradient;
  8567. Array<Color> colors;
  8568. /* readonly */
  8569. IntRect combinedScreenRect;
  8570. XMLFile defaultStyle;
  8571. /* readonly */
  8572. float derivedOpacity;
  8573. IntVector2 disabledOffset;
  8574. /* readonly */
  8575. uint dragButtonCombo;
  8576. /* readonly */
  8577. uint dragButtonCount;
  8578. uint dragDropMode;
  8579. bool editable;
  8580. bool elementEventSender;
  8581. bool enableAnchor;
  8582. bool enabled;
  8583. /* readonly */
  8584. bool enabledSelf;
  8585. /* readonly */
  8586. bool fixedHeight;
  8587. /* readonly */
  8588. bool fixedSize;
  8589. /* readonly */
  8590. bool fixedWidth;
  8591. bool focus;
  8592. FocusMode focusMode;
  8593. Array<Variant> globalVar;
  8594. /* readonly */
  8595. VariantMap globalVars;
  8596. int height;
  8597. HorizontalAlignment horizontalAlignment;
  8598. IntVector2 hoverOffset;
  8599. /* readonly */
  8600. bool hovering;
  8601. IntRect imageBorder;
  8602. IntRect imageRect;
  8603. int indent;
  8604. int indentSpacing;
  8605. /* readonly */
  8606. int indentWidth;
  8607. bool internal;
  8608. IntRect layoutBorder;
  8609. Vector2 layoutFlexScale;
  8610. LayoutMode layoutMode;
  8611. int layoutSpacing;
  8612. Material material;
  8613. Vector2 maxAnchor;
  8614. int maxHeight;
  8615. IntVector2 maxOffset;
  8616. IntVector2 maxSize;
  8617. int maxWidth;
  8618. Vector2 minAnchor;
  8619. int minHeight;
  8620. IntVector2 minOffset;
  8621. IntVector2 minSize;
  8622. int minWidth;
  8623. String name;
  8624. /* readonly */
  8625. uint numAllChildren;
  8626. /* readonly */
  8627. uint numAttributes;
  8628. /* readonly */
  8629. uint numChildren;
  8630. ObjectAnimation objectAnimation;
  8631. float opacity;
  8632. UIElement parent;
  8633. Vector2 pivot;
  8634. IntVector2 position;
  8635. int priority;
  8636. /* readonly */
  8637. int refs;
  8638. /* readonly */
  8639. UIElement root;
  8640. /* readonly */
  8641. IntVector2 screenPosition;
  8642. bool selected;
  8643. String shape;
  8644. IntVector2 size;
  8645. bool sortChildren;
  8646. String style;
  8647. /* readonly */
  8648. Array<String> tags;
  8649. bool temporary;
  8650. Texture texture;
  8651. bool tiled;
  8652. TraversalMode traversalMode;
  8653. /* readonly */
  8654. StringHash type;
  8655. /* readonly */
  8656. String typeName;
  8657. bool useDerivedOpacity;
  8658. bool useSystemShapes;
  8659. /* readonly */
  8660. VariantMap vars;
  8661. VerticalAlignment verticalAlignment;
  8662. bool visible;
  8663. /* readonly */
  8664. bool visibleEffective;
  8665. /* readonly */
  8666. int weakRefs;
  8667. int width;
  8668. };
  8669. class CursorShapeInfo
  8670. {
  8671. public:
  8672. ~CursorShapeInfo();
  8673. CursorShapeInfo();
  8674. CursorShapeInfo(int);
  8675. // Methods:
  8676. CursorShapeInfo& operator=(const CursorShapeInfo&);
  8677. // Properties:
  8678. IntVector2 hotSpot;
  8679. IntRect imageRect;
  8680. int systemCursor;
  8681. bool systemDefined;
  8682. };
  8683. class CustomGeometry
  8684. {
  8685. public:
  8686. CustomGeometry();
  8687. // Methods:
  8688. void AddLight(Light);
  8689. void AddVertexLight(Light);
  8690. void AllocateNetworkState();
  8691. operator Animatable() const;
  8692. void ApplyAttributes();
  8693. void BeginGeometry(uint, PrimitiveType);
  8694. const BoundingBox& GetBoundingBox() const;
  8695. const BoundingBox& GetWorldBoundingBox();
  8696. void CleanupConnection(Connection);
  8697. void Clear();
  8698. void Commit();
  8699. operator Component() const;
  8700. void DefineColor(const Color&);
  8701. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  8702. void DefineNormal(const Vector3&);
  8703. void DefineTangent(const Vector4&);
  8704. void DefineTexCoord(const Vector2&);
  8705. void DefineVertex(const Vector3&);
  8706. void DrawDebugGeometry(DebugRenderer, bool);
  8707. bool DrawOcclusion(OcclusionBuffer);
  8708. operator Drawable() const;
  8709. bool GetAnimationEnabled() const;
  8710. Variant GetAttribute(const String&) const;
  8711. Variant GetAttribute(uint) const;
  8712. ValueAnimation GetAttributeAnimation(const String&) const;
  8713. float GetAttributeAnimationSpeed(const String&) const;
  8714. float GetAttributeAnimationTime(const String&) const;
  8715. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8716. Variant GetAttributeDefault(const String&) const;
  8717. Variant GetAttributeDefault(uint) const;
  8718. bool GetBlockEvents() const;
  8719. bool GetCastShadows() const;
  8720. Component GetComponent(StringHash) const;
  8721. float GetDistance() const;
  8722. float GetDrawDistance() const;
  8723. uint8 GetDrawableFlags() const;
  8724. VariantMap& GetEventDataMap() const;
  8725. Object GetEventSender() const;
  8726. Light GetFirstLight() const;
  8727. uint GetID() const;
  8728. bool GetInterceptNetworkUpdate(const String&) const;
  8729. uint GetLightMask() const;
  8730. Array<Light> GetLights() const;
  8731. float GetLodBias() const;
  8732. float GetLodDistance() const;
  8733. Geometry GetLodGeometry(uint, uint);
  8734. Material GetMaterial(uint = 0) const;
  8735. uint GetMaxLights() const;
  8736. float GetMaxZ() const;
  8737. float GetMinZ() const;
  8738. Node GetNode() const;
  8739. uint GetNumAttributes() const;
  8740. uint GetNumGeometries() const;
  8741. uint GetNumNetworkAttributes() const;
  8742. uint GetNumOccluderTriangles();
  8743. uint GetNumVertices(uint) const;
  8744. ObjectAnimation GetObjectAnimation() const;
  8745. ResourceRef GetObjectAnimationAttr() const;
  8746. Scene GetScene() const;
  8747. float GetShadowDistance() const;
  8748. uint GetShadowMask() const;
  8749. float GetSortValue() const;
  8750. Object GetSubsystem(StringHash) const;
  8751. StringHash GetType() const;
  8752. UpdateGeometryType GetUpdateGeometryType();
  8753. CustomGeometryVertex GetVertex(uint, uint);
  8754. Array<Light> GetVertexLights() const;
  8755. uint GetViewMask() const;
  8756. Zone GetZone() const;
  8757. uint GetZoneMask() const;
  8758. bool HasBasePass(uint) const;
  8759. bool HasEventHandlers() const;
  8760. bool HasSubscribedToEvent(Object, StringHash) const;
  8761. bool HasSubscribedToEvent(StringHash) const;
  8762. bool IsDynamic() const;
  8763. bool IsEnabled() const;
  8764. bool IsEnabledEffective() const;
  8765. bool IsInView() const;
  8766. bool IsInView(Camera) const;
  8767. bool IsInView(const FrameInfo&, bool = false) const;
  8768. bool IsInstanceOf(StringHash) const;
  8769. bool IsOccludee() const;
  8770. bool IsOccluder() const;
  8771. bool IsReplicated() const;
  8772. bool IsTemporary() const;
  8773. bool IsZoneDirty() const;
  8774. void LimitLights();
  8775. void LimitVertexLights(bool);
  8776. bool Load(Deserializer&);
  8777. bool LoadJSON(const JSONValue&);
  8778. bool LoadXML(const XMLElement&);
  8779. void MarkForUpdate();
  8780. void MarkInView(const FrameInfo&);
  8781. void MarkInView(uint);
  8782. void MarkNetworkUpdate();
  8783. operator Object() const;
  8784. void OnEvent(Object, StringHash, VariantMap&);
  8785. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8786. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8787. void OnSetEnabled();
  8788. void PrepareNetworkUpdate();
  8789. bool ReadDeltaUpdate(Deserializer&);
  8790. bool ReadLatestDataUpdate(Deserializer&);
  8791. operator RefCounted() const;
  8792. int Refs() const;
  8793. void Remove();
  8794. void RemoveAttributeAnimation(const String&);
  8795. void RemoveInstanceDefault();
  8796. void RemoveObjectAnimation();
  8797. void ResetToDefault();
  8798. const ResourceRefList& GetMaterialsAttr() const;
  8799. bool Save(Serializer&) const;
  8800. bool SaveDefaultAttributes() const;
  8801. bool SaveJSON(JSONValue&) const;
  8802. bool SaveXML(XMLElement&) const;
  8803. void SendEvent(StringHash);
  8804. void SendEvent(StringHash, VariantMap&);
  8805. operator Serializable() const;
  8806. void SetAnimationEnabled(bool);
  8807. void SetAnimationTime(float);
  8808. bool SetAttribute(const String&, const Variant&);
  8809. bool SetAttribute(uint, const Variant&);
  8810. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8811. void SetAttributeAnimationSpeed(const String&, float);
  8812. void SetAttributeAnimationTime(const String&, float);
  8813. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8814. void SetBasePass(uint);
  8815. void SetBlockEvents(bool);
  8816. void SetCastShadows(bool);
  8817. void SetDrawDistance(float);
  8818. void SetDynamic(bool);
  8819. void SetEnabled(bool);
  8820. void SetGlobalVar(StringHash, const Variant&);
  8821. void SetInstanceDefault(bool);
  8822. void SetInterceptNetworkUpdate(const String&, bool);
  8823. void SetLightMask(uint);
  8824. void SetLodBias(float);
  8825. void SetMaterial(Material);
  8826. bool SetMaterial(uint, Material);
  8827. void SetMaterialsAttr(const ResourceRefList&);
  8828. void SetMaxLights(uint);
  8829. void SetMinMaxZ(float, float);
  8830. void SetNumGeometries(uint);
  8831. void SetObjectAnimation(ObjectAnimation);
  8832. void SetObjectAnimationAttr(const ResourceRef&);
  8833. void SetOccludee(bool);
  8834. void SetOccluder(bool);
  8835. void SetShadowDistance(float);
  8836. void SetShadowMask(uint);
  8837. void SetSortValue(float);
  8838. void SetTemporary(bool);
  8839. void SetViewMask(uint);
  8840. void SetZone(Zone, bool = false);
  8841. void SetZoneMask(uint);
  8842. const String& GetCategory() const;
  8843. const String& GetTypeName() const;
  8844. void UnsubscribeFromAllEvents();
  8845. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8846. void UnsubscribeFromEvent(Object, StringHash);
  8847. void UnsubscribeFromEvent(StringHash);
  8848. void UnsubscribeFromEvents(Object);
  8849. void Update(const FrameInfo&);
  8850. void UpdateBatches(const FrameInfo&);
  8851. void UpdateGeometry(const FrameInfo&);
  8852. const Variant& GetGlobalVar(StringHash) const;
  8853. const VariantMap& GetGlobalVars() const;
  8854. int WeakRefs() const;
  8855. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8856. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8857. void WriteLatestDataUpdate(Serializer&, uint8);
  8858. operator const Animatable() const;
  8859. operator const Component() const;
  8860. operator const Drawable() const;
  8861. operator const Object() const;
  8862. operator const RefCounted() const;
  8863. operator const Serializable() const;
  8864. // Properties:
  8865. bool animationEnabled;
  8866. /* readonly */
  8867. Array<Variant> attributeDefaults;
  8868. /* readonly */
  8869. Array<AttributeInfo> attributeInfos;
  8870. Array<Variant> attributes;
  8871. /* readonly */
  8872. BoundingBox boundingBox;
  8873. bool castShadows;
  8874. /* readonly */
  8875. String category;
  8876. float drawDistance;
  8877. bool dynamic;
  8878. bool enabled;
  8879. /* readonly */
  8880. bool enabledEffective;
  8881. Array<Variant> globalVar;
  8882. /* readonly */
  8883. VariantMap globalVars;
  8884. /* readonly */
  8885. uint id;
  8886. /* readonly */
  8887. bool inView;
  8888. uint lightMask;
  8889. float lodBias;
  8890. /* writeonly */
  8891. Material material;
  8892. Array<Material> materials;
  8893. uint maxLights;
  8894. /* readonly */
  8895. Node node;
  8896. /* readonly */
  8897. uint numAttributes;
  8898. uint numGeometries;
  8899. /* readonly */
  8900. Array<uint> numVertices;
  8901. ObjectAnimation objectAnimation;
  8902. bool occludee;
  8903. bool occluder;
  8904. /* readonly */
  8905. int refs;
  8906. /* readonly */
  8907. bool replicated;
  8908. float shadowDistance;
  8909. uint shadowMask;
  8910. bool temporary;
  8911. /* readonly */
  8912. StringHash type;
  8913. /* readonly */
  8914. String typeName;
  8915. uint viewMask;
  8916. /* readonly */
  8917. int weakRefs;
  8918. /* readonly */
  8919. BoundingBox worldBoundingBox;
  8920. /* readonly */
  8921. Zone zone;
  8922. uint zoneMask;
  8923. };
  8924. class CustomGeometryVertex
  8925. {
  8926. public:
  8927. // Methods:
  8928. CustomGeometryVertex& operator=(const CustomGeometryVertex&);
  8929. // Properties:
  8930. uint color;
  8931. Vector3 normal;
  8932. Vector3 position;
  8933. Vector4 tangent;
  8934. Vector2 texCoord;
  8935. };
  8936. class Database
  8937. {
  8938. public:
  8939. Database();
  8940. // Methods:
  8941. DbConnection Connect(const String&);
  8942. void Disconnect(DbConnection);
  8943. bool GetBlockEvents() const;
  8944. VariantMap& GetEventDataMap() const;
  8945. Object GetEventSender() const;
  8946. uint GetPoolSize() const;
  8947. Object GetSubsystem(StringHash) const;
  8948. StringHash GetType() const;
  8949. bool HasEventHandlers() const;
  8950. bool HasSubscribedToEvent(Object, StringHash) const;
  8951. bool HasSubscribedToEvent(StringHash) const;
  8952. bool IsInstanceOf(StringHash) const;
  8953. bool IsPooling() const;
  8954. operator Object() const;
  8955. void OnEvent(Object, StringHash, VariantMap&);
  8956. operator RefCounted() const;
  8957. int Refs() const;
  8958. void SendEvent(StringHash);
  8959. void SendEvent(StringHash, VariantMap&);
  8960. void SetBlockEvents(bool);
  8961. void SetGlobalVar(StringHash, const Variant&);
  8962. void SetPoolSize(uint);
  8963. const String& GetCategory() const;
  8964. const String& GetTypeName() const;
  8965. void UnsubscribeFromAllEvents();
  8966. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8967. void UnsubscribeFromEvent(Object, StringHash);
  8968. void UnsubscribeFromEvent(StringHash);
  8969. void UnsubscribeFromEvents(Object);
  8970. const Variant& GetGlobalVar(StringHash) const;
  8971. const VariantMap& GetGlobalVars() const;
  8972. int WeakRefs() const;
  8973. operator const Object() const;
  8974. operator const RefCounted() const;
  8975. // Properties:
  8976. /* readonly */
  8977. String category;
  8978. Array<Variant> globalVar;
  8979. /* readonly */
  8980. VariantMap globalVars;
  8981. uint poolSize;
  8982. /* readonly */
  8983. bool pooling;
  8984. /* readonly */
  8985. int refs;
  8986. /* readonly */
  8987. StringHash type;
  8988. /* readonly */
  8989. String typeName;
  8990. /* readonly */
  8991. int weakRefs;
  8992. };
  8993. class DbConnection
  8994. {
  8995. public:
  8996. // Methods:
  8997. DbResult Execute(const String&, bool useCursorEvent = false);
  8998. bool GetBlockEvents() const;
  8999. VariantMap& GetEventDataMap() const;
  9000. Object GetEventSender() const;
  9001. Object GetSubsystem(StringHash) const;
  9002. StringHash GetType() const;
  9003. bool HasEventHandlers() const;
  9004. bool HasSubscribedToEvent(Object, StringHash) const;
  9005. bool HasSubscribedToEvent(StringHash) const;
  9006. bool IsInstanceOf(StringHash) const;
  9007. void OnEvent(Object, StringHash, VariantMap&);
  9008. int Refs() const;
  9009. void SendEvent(StringHash);
  9010. void SendEvent(StringHash, VariantMap&);
  9011. void SetBlockEvents(bool);
  9012. void SetGlobalVar(StringHash, const Variant&);
  9013. const String& GetCategory() const;
  9014. const String& GetTypeName() const;
  9015. void UnsubscribeFromAllEvents();
  9016. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9017. void UnsubscribeFromEvent(Object, StringHash);
  9018. void UnsubscribeFromEvent(StringHash);
  9019. void UnsubscribeFromEvents(Object);
  9020. const Variant& GetGlobalVar(StringHash) const;
  9021. const VariantMap& GetGlobalVars() const;
  9022. int WeakRefs() const;
  9023. // Properties:
  9024. /* readonly */
  9025. String category;
  9026. /* readonly */
  9027. bool connected;
  9028. /* readonly */
  9029. String connectionString;
  9030. Array<Variant> globalVar;
  9031. /* readonly */
  9032. VariantMap globalVars;
  9033. /* readonly */
  9034. int refs;
  9035. /* readonly */
  9036. StringHash type;
  9037. /* readonly */
  9038. String typeName;
  9039. /* readonly */
  9040. int weakRefs;
  9041. };
  9042. class DbResult
  9043. {
  9044. public:
  9045. ~DbResult();
  9046. DbResult();
  9047. DbResult(const DbResult&in);
  9048. // Methods:
  9049. DbResult& operator=(const DbResult&);
  9050. // Properties:
  9051. /* readonly */
  9052. Array<String> columns;
  9053. /* readonly */
  9054. int64 numAffectedRows;
  9055. /* readonly */
  9056. uint numColumns;
  9057. /* readonly */
  9058. uint numRows;
  9059. /* readonly */
  9060. Array<Array<Variant>> row;
  9061. };
  9062. class DebugHud
  9063. {
  9064. public:
  9065. DebugHud();
  9066. // Methods:
  9067. void ClearAppStats();
  9068. bool GetBlockEvents() const;
  9069. XMLFile GetDefaultStyle() const;
  9070. VariantMap& GetEventDataMap() const;
  9071. Object GetEventSender() const;
  9072. Text GetMemoryText() const;
  9073. uint GetMode() const;
  9074. Text GetModeText() const;
  9075. float GetProfilerInterval() const;
  9076. uint GetProfilerMaxDepth() const;
  9077. Text GetProfilerText() const;
  9078. Text GetStatsText() const;
  9079. Object GetSubsystem(StringHash) const;
  9080. StringHash GetType() const;
  9081. bool GetUseRendererStats() const;
  9082. bool HasEventHandlers() const;
  9083. bool HasSubscribedToEvent(Object, StringHash) const;
  9084. bool HasSubscribedToEvent(StringHash) const;
  9085. bool IsInstanceOf(StringHash) const;
  9086. operator Object() const;
  9087. void OnEvent(Object, StringHash, VariantMap&);
  9088. operator RefCounted() const;
  9089. int Refs() const;
  9090. bool ResetAppStats(const String&);
  9091. void SendEvent(StringHash);
  9092. void SendEvent(StringHash, VariantMap&);
  9093. void SetAppStats(const String&, const String&);
  9094. void SetAppStats(const String&, const Variant&);
  9095. void SetBlockEvents(bool);
  9096. void SetDefaultStyle(XMLFile);
  9097. void SetGlobalVar(StringHash, const Variant&);
  9098. void SetMode(uint);
  9099. void SetProfilerInterval(float);
  9100. void SetProfilerMaxDepth(uint);
  9101. void SetUseRendererStats(bool);
  9102. const String& GetCategory() const;
  9103. const String& GetTypeName() const;
  9104. void Toggle(uint);
  9105. void ToggleAll();
  9106. void UnsubscribeFromAllEvents();
  9107. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9108. void UnsubscribeFromEvent(Object, StringHash);
  9109. void UnsubscribeFromEvent(StringHash);
  9110. void UnsubscribeFromEvents(Object);
  9111. void Update();
  9112. const Variant& GetGlobalVar(StringHash) const;
  9113. const VariantMap& GetGlobalVars() const;
  9114. int WeakRefs() const;
  9115. operator const Object() const;
  9116. operator const RefCounted() const;
  9117. // Properties:
  9118. /* readonly */
  9119. String category;
  9120. XMLFile defaultStyle;
  9121. Array<Variant> globalVar;
  9122. /* readonly */
  9123. VariantMap globalVars;
  9124. /* readonly */
  9125. Text memoryText;
  9126. uint mode;
  9127. /* readonly */
  9128. Text modeText;
  9129. float profilerInterval;
  9130. uint profilerMaxDepth;
  9131. /* readonly */
  9132. Text profilerText;
  9133. /* readonly */
  9134. int refs;
  9135. /* readonly */
  9136. Text statsText;
  9137. /* readonly */
  9138. StringHash type;
  9139. /* readonly */
  9140. String typeName;
  9141. bool useRendererStats;
  9142. /* readonly */
  9143. int weakRefs;
  9144. };
  9145. class DebugLine
  9146. {
  9147. public:
  9148. ~DebugLine();
  9149. DebugLine();
  9150. DebugLine(const Vector3&in, const Vector3&in, uint);
  9151. // Methods:
  9152. DebugLine& operator=(const DebugLine&);
  9153. // Properties:
  9154. uint color;
  9155. Vector3 end;
  9156. Vector3 start;
  9157. };
  9158. class DebugRenderer
  9159. {
  9160. public:
  9161. DebugRenderer();
  9162. // Methods:
  9163. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  9164. void AddBoundingBox(const BoundingBox&, const Matrix3x4&, const Color&, bool = true, bool = false);
  9165. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  9166. void AddCross(const Vector3&, float, const Color&, bool = true);
  9167. void AddCylinder(const Vector3&, float, float, const Color&, bool = true);
  9168. void AddFrustum(const Frustum&, const Color&, bool = true);
  9169. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  9170. void AddLine(const Vector3&, const Vector3&, uint, bool = true);
  9171. void AddNode(Node, float = 1.0f, bool = true);
  9172. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  9173. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, uint, bool = true);
  9174. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  9175. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  9176. void AddSkeleton(const Skeleton&, const Color&, bool = true);
  9177. void AddSphere(const Sphere&, const Color&, bool = true);
  9178. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  9179. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  9180. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, uint, bool = true);
  9181. void AllocateNetworkState();
  9182. operator Animatable() const;
  9183. void ApplyAttributes();
  9184. void CleanupConnection(Connection);
  9185. operator Component() const;
  9186. void DrawDebugGeometry(DebugRenderer, bool);
  9187. const Frustum& GetFrustum() const;
  9188. bool GetAnimationEnabled() const;
  9189. Variant GetAttribute(const String&) const;
  9190. Variant GetAttribute(uint) const;
  9191. ValueAnimation GetAttributeAnimation(const String&) const;
  9192. float GetAttributeAnimationSpeed(const String&) const;
  9193. float GetAttributeAnimationTime(const String&) const;
  9194. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9195. Variant GetAttributeDefault(const String&) const;
  9196. Variant GetAttributeDefault(uint) const;
  9197. bool GetBlockEvents() const;
  9198. Component GetComponent(StringHash) const;
  9199. VariantMap& GetEventDataMap() const;
  9200. Object GetEventSender() const;
  9201. uint GetID() const;
  9202. bool GetInterceptNetworkUpdate(const String&) const;
  9203. bool GetLineAntiAlias() const;
  9204. Node GetNode() const;
  9205. uint GetNumAttributes() const;
  9206. uint GetNumNetworkAttributes() const;
  9207. ObjectAnimation GetObjectAnimation() const;
  9208. ResourceRef GetObjectAnimationAttr() const;
  9209. Scene GetScene() const;
  9210. Object GetSubsystem(StringHash) const;
  9211. StringHash GetType() const;
  9212. bool HasContent() const;
  9213. bool HasEventHandlers() const;
  9214. bool HasSubscribedToEvent(Object, StringHash) const;
  9215. bool HasSubscribedToEvent(StringHash) const;
  9216. bool IsEnabled() const;
  9217. bool IsEnabledEffective() const;
  9218. bool IsInside(const BoundingBox&) const;
  9219. bool IsInstanceOf(StringHash) const;
  9220. bool IsReplicated() const;
  9221. bool IsTemporary() const;
  9222. bool Load(Deserializer&);
  9223. bool LoadJSON(const JSONValue&);
  9224. bool LoadXML(const XMLElement&);
  9225. void MarkNetworkUpdate();
  9226. const Matrix3x4& GetView() const;
  9227. const Matrix4& GetProjection() const;
  9228. operator Object() const;
  9229. void OnEvent(Object, StringHash, VariantMap&);
  9230. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9231. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9232. void OnSetEnabled();
  9233. void PrepareNetworkUpdate();
  9234. bool ReadDeltaUpdate(Deserializer&);
  9235. bool ReadLatestDataUpdate(Deserializer&);
  9236. operator RefCounted() const;
  9237. int Refs() const;
  9238. void Remove();
  9239. void RemoveAttributeAnimation(const String&);
  9240. void RemoveInstanceDefault();
  9241. void RemoveObjectAnimation();
  9242. void Render();
  9243. void ResetToDefault();
  9244. bool Save(Serializer&) const;
  9245. bool SaveDefaultAttributes() const;
  9246. bool SaveJSON(JSONValue&) const;
  9247. bool SaveXML(XMLElement&) const;
  9248. void SendEvent(StringHash);
  9249. void SendEvent(StringHash, VariantMap&);
  9250. operator Serializable() const;
  9251. void SetAnimationEnabled(bool);
  9252. void SetAnimationTime(float);
  9253. bool SetAttribute(const String&, const Variant&);
  9254. bool SetAttribute(uint, const Variant&);
  9255. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9256. void SetAttributeAnimationSpeed(const String&, float);
  9257. void SetAttributeAnimationTime(const String&, float);
  9258. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9259. void SetBlockEvents(bool);
  9260. void SetEnabled(bool);
  9261. void SetGlobalVar(StringHash, const Variant&);
  9262. void SetInstanceDefault(bool);
  9263. void SetInterceptNetworkUpdate(const String&, bool);
  9264. void SetLineAntiAlias(bool);
  9265. void SetObjectAnimation(ObjectAnimation);
  9266. void SetObjectAnimationAttr(const ResourceRef&);
  9267. void SetTemporary(bool);
  9268. void SetView(Camera);
  9269. const String& GetCategory() const;
  9270. const String& GetTypeName() const;
  9271. void UnsubscribeFromAllEvents();
  9272. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9273. void UnsubscribeFromEvent(Object, StringHash);
  9274. void UnsubscribeFromEvent(StringHash);
  9275. void UnsubscribeFromEvents(Object);
  9276. const Variant& GetGlobalVar(StringHash) const;
  9277. const VariantMap& GetGlobalVars() const;
  9278. int WeakRefs() const;
  9279. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  9280. void WriteInitialDeltaUpdate(Serializer&, uint8);
  9281. void WriteLatestDataUpdate(Serializer&, uint8);
  9282. operator const Animatable() const;
  9283. operator const Component() const;
  9284. operator const Object() const;
  9285. operator const RefCounted() const;
  9286. operator const Serializable() const;
  9287. // Properties:
  9288. bool animationEnabled;
  9289. /* readonly */
  9290. Array<Variant> attributeDefaults;
  9291. /* readonly */
  9292. Array<AttributeInfo> attributeInfos;
  9293. Array<Variant> attributes;
  9294. /* readonly */
  9295. String category;
  9296. bool enabled;
  9297. /* readonly */
  9298. bool enabledEffective;
  9299. Array<Variant> globalVar;
  9300. /* readonly */
  9301. VariantMap globalVars;
  9302. /* readonly */
  9303. uint id;
  9304. bool lineAntiAlias;
  9305. /* readonly */
  9306. Node node;
  9307. /* readonly */
  9308. uint numAttributes;
  9309. ObjectAnimation objectAnimation;
  9310. /* readonly */
  9311. int refs;
  9312. /* readonly */
  9313. bool replicated;
  9314. bool temporary;
  9315. /* readonly */
  9316. StringHash type;
  9317. /* readonly */
  9318. String typeName;
  9319. /* readonly */
  9320. int weakRefs;
  9321. };
  9322. class DebugTriangle
  9323. {
  9324. public:
  9325. ~DebugTriangle();
  9326. DebugTriangle();
  9327. DebugTriangle(const Vector3&in, const Vector3&in, const Vector3&in, uint);
  9328. // Methods:
  9329. DebugTriangle& operator=(const DebugTriangle&);
  9330. // Properties:
  9331. uint color;
  9332. Vector3 v1;
  9333. Vector3 v2;
  9334. Vector3 v3;
  9335. };
  9336. class Decal
  9337. {
  9338. public:
  9339. ~Decal();
  9340. Decal();
  9341. // Methods:
  9342. Decal& operator=(const Decal&);
  9343. void AddVertex(const DecalVertex&);
  9344. void CalculateBoundingBox();
  9345. // Properties:
  9346. BoundingBox boundingBox;
  9347. float timeToLive;
  9348. float timer;
  9349. };
  9350. class DecalSet
  9351. {
  9352. public:
  9353. DecalSet();
  9354. // Methods:
  9355. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0f, float = 0.1f, uint = M_MAX_UNSIGNED);
  9356. void AddLight(Light);
  9357. void AddVertexLight(Light);
  9358. void AllocateNetworkState();
  9359. operator Animatable() const;
  9360. void ApplyAttributes();
  9361. const BoundingBox& GetBoundingBox() const;
  9362. const BoundingBox& GetWorldBoundingBox();
  9363. void CleanupConnection(Connection);
  9364. operator Component() const;
  9365. void DrawDebugGeometry(DebugRenderer, bool);
  9366. bool DrawOcclusion(OcclusionBuffer);
  9367. operator Drawable() const;
  9368. bool GetAnimationEnabled() const;
  9369. Variant GetAttribute(const String&) const;
  9370. Variant GetAttribute(uint) const;
  9371. ValueAnimation GetAttributeAnimation(const String&) const;
  9372. float GetAttributeAnimationSpeed(const String&) const;
  9373. float GetAttributeAnimationTime(const String&) const;
  9374. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9375. Variant GetAttributeDefault(const String&) const;
  9376. Variant GetAttributeDefault(uint) const;
  9377. bool GetBlockEvents() const;
  9378. bool GetCastShadows() const;
  9379. Component GetComponent(StringHash) const;
  9380. float GetDistance() const;
  9381. float GetDrawDistance() const;
  9382. uint8 GetDrawableFlags() const;
  9383. VariantMap& GetEventDataMap() const;
  9384. Object GetEventSender() const;
  9385. Light GetFirstLight() const;
  9386. uint GetID() const;
  9387. bool GetInterceptNetworkUpdate(const String&) const;
  9388. uint GetLightMask() const;
  9389. Array<Light> GetLights() const;
  9390. float GetLodBias() const;
  9391. float GetLodDistance() const;
  9392. Geometry GetLodGeometry(uint, uint);
  9393. Material GetMaterial() const;
  9394. ResourceRef GetMaterialAttr() const;
  9395. uint GetMaxIndices() const;
  9396. uint GetMaxLights() const;
  9397. uint GetMaxVertices() const;
  9398. float GetMaxZ() const;
  9399. float GetMinZ() const;
  9400. Node GetNode() const;
  9401. uint GetNumAttributes() const;
  9402. uint GetNumDecals() const;
  9403. uint GetNumIndices() const;
  9404. uint GetNumNetworkAttributes() const;
  9405. uint GetNumOccluderTriangles();
  9406. uint GetNumVertices() const;
  9407. ObjectAnimation GetObjectAnimation() const;
  9408. ResourceRef GetObjectAnimationAttr() const;
  9409. bool GetOptimizeBufferSize() const;
  9410. Scene GetScene() const;
  9411. float GetShadowDistance() const;
  9412. uint GetShadowMask() const;
  9413. float GetSortValue() const;
  9414. Object GetSubsystem(StringHash) const;
  9415. StringHash GetType() const;
  9416. UpdateGeometryType GetUpdateGeometryType();
  9417. Array<Light> GetVertexLights() const;
  9418. uint GetViewMask() const;
  9419. Zone GetZone() const;
  9420. uint GetZoneMask() const;
  9421. bool HasBasePass(uint) const;
  9422. bool HasEventHandlers() const;
  9423. bool HasSubscribedToEvent(Object, StringHash) const;
  9424. bool HasSubscribedToEvent(StringHash) const;
  9425. bool IsEnabled() const;
  9426. bool IsEnabledEffective() const;
  9427. bool IsInView() const;
  9428. bool IsInView(Camera) const;
  9429. bool IsInView(const FrameInfo&, bool = false) const;
  9430. bool IsInstanceOf(StringHash) const;
  9431. bool IsOccludee() const;
  9432. bool IsOccluder() const;
  9433. bool IsReplicated() const;
  9434. bool IsTemporary() const;
  9435. bool IsZoneDirty() const;
  9436. void LimitLights();
  9437. void LimitVertexLights(bool);
  9438. bool Load(Deserializer&);
  9439. bool LoadJSON(const JSONValue&);
  9440. bool LoadXML(const XMLElement&);
  9441. void MarkForUpdate();
  9442. void MarkInView(const FrameInfo&);
  9443. void MarkInView(uint);
  9444. void MarkNetworkUpdate();
  9445. operator Object() const;
  9446. void OnEvent(Object, StringHash, VariantMap&);
  9447. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9448. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9449. void OnSetEnabled();
  9450. void PrepareNetworkUpdate();
  9451. bool ReadDeltaUpdate(Deserializer&);
  9452. bool ReadLatestDataUpdate(Deserializer&);
  9453. operator RefCounted() const;
  9454. int Refs() const;
  9455. void Remove();
  9456. void RemoveAllDecals();
  9457. void RemoveAttributeAnimation(const String&);
  9458. void RemoveDecals(uint);
  9459. void RemoveInstanceDefault();
  9460. void RemoveObjectAnimation();
  9461. void ResetToDefault();
  9462. bool Save(Serializer&) const;
  9463. bool SaveDefaultAttributes() const;
  9464. bool SaveJSON(JSONValue&) const;
  9465. bool SaveXML(XMLElement&) const;
  9466. void SendEvent(StringHash);
  9467. void SendEvent(StringHash, VariantMap&);
  9468. operator Serializable() const;
  9469. void SetAnimationEnabled(bool);
  9470. void SetAnimationTime(float);
  9471. bool SetAttribute(const String&, const Variant&);
  9472. bool SetAttribute(uint, const Variant&);
  9473. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9474. void SetAttributeAnimationSpeed(const String&, float);
  9475. void SetAttributeAnimationTime(const String&, float);
  9476. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9477. void SetBasePass(uint);
  9478. void SetBlockEvents(bool);
  9479. void SetCastShadows(bool);
  9480. void SetDrawDistance(float);
  9481. void SetEnabled(bool);
  9482. void SetGlobalVar(StringHash, const Variant&);
  9483. void SetInstanceDefault(bool);
  9484. void SetInterceptNetworkUpdate(const String&, bool);
  9485. void SetLightMask(uint);
  9486. void SetLodBias(float);
  9487. void SetMaterial(Material);
  9488. void SetMaterialAttr(const ResourceRef&);
  9489. void SetMaxIndices(uint);
  9490. void SetMaxLights(uint);
  9491. void SetMaxVertices(uint);
  9492. void SetMinMaxZ(float, float);
  9493. void SetObjectAnimation(ObjectAnimation);
  9494. void SetObjectAnimationAttr(const ResourceRef&);
  9495. void SetOccludee(bool);
  9496. void SetOccluder(bool);
  9497. void SetOptimizeBufferSize(bool);
  9498. void SetShadowDistance(float);
  9499. void SetShadowMask(uint);
  9500. void SetSortValue(float);
  9501. void SetTemporary(bool);
  9502. void SetViewMask(uint);
  9503. void SetZone(Zone, bool = false);
  9504. void SetZoneMask(uint);
  9505. const String& GetCategory() const;
  9506. const String& GetTypeName() const;
  9507. void UnsubscribeFromAllEvents();
  9508. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9509. void UnsubscribeFromEvent(Object, StringHash);
  9510. void UnsubscribeFromEvent(StringHash);
  9511. void UnsubscribeFromEvents(Object);
  9512. void Update(const FrameInfo&);
  9513. void UpdateBatches(const FrameInfo&);
  9514. void UpdateGeometry(const FrameInfo&);
  9515. const Variant& GetGlobalVar(StringHash) const;
  9516. const VariantMap& GetGlobalVars() const;
  9517. int WeakRefs() const;
  9518. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  9519. void WriteInitialDeltaUpdate(Serializer&, uint8);
  9520. void WriteLatestDataUpdate(Serializer&, uint8);
  9521. operator const Animatable() const;
  9522. operator const Component() const;
  9523. operator const Drawable() const;
  9524. operator const Object() const;
  9525. operator const RefCounted() const;
  9526. operator const Serializable() const;
  9527. // Properties:
  9528. bool animationEnabled;
  9529. /* readonly */
  9530. Array<Variant> attributeDefaults;
  9531. /* readonly */
  9532. Array<AttributeInfo> attributeInfos;
  9533. Array<Variant> attributes;
  9534. /* readonly */
  9535. BoundingBox boundingBox;
  9536. bool castShadows;
  9537. /* readonly */
  9538. String category;
  9539. float drawDistance;
  9540. bool enabled;
  9541. /* readonly */
  9542. bool enabledEffective;
  9543. Array<Variant> globalVar;
  9544. /* readonly */
  9545. VariantMap globalVars;
  9546. /* readonly */
  9547. uint id;
  9548. /* readonly */
  9549. bool inView;
  9550. uint lightMask;
  9551. float lodBias;
  9552. Material material;
  9553. uint maxIndices;
  9554. uint maxLights;
  9555. uint maxVertices;
  9556. /* readonly */
  9557. Node node;
  9558. /* readonly */
  9559. uint numAttributes;
  9560. /* readonly */
  9561. uint numDecals;
  9562. /* readonly */
  9563. uint numIndices;
  9564. /* readonly */
  9565. uint numVertices;
  9566. ObjectAnimation objectAnimation;
  9567. bool occludee;
  9568. bool occluder;
  9569. bool optimizeBufferSize;
  9570. /* readonly */
  9571. int refs;
  9572. /* readonly */
  9573. bool replicated;
  9574. float shadowDistance;
  9575. uint shadowMask;
  9576. bool temporary;
  9577. /* readonly */
  9578. StringHash type;
  9579. /* readonly */
  9580. String typeName;
  9581. uint viewMask;
  9582. /* readonly */
  9583. int weakRefs;
  9584. /* readonly */
  9585. BoundingBox worldBoundingBox;
  9586. /* readonly */
  9587. Zone zone;
  9588. uint zoneMask;
  9589. };
  9590. class DecalVertex
  9591. {
  9592. public:
  9593. ~DecalVertex();
  9594. DecalVertex();
  9595. DecalVertex(const Vector3&in, const Vector3&in);
  9596. // Methods:
  9597. DecalVertex& operator=(const DecalVertex&);
  9598. // Properties:
  9599. Vector3 normal;
  9600. Vector3 position;
  9601. Vector4 tangent;
  9602. Vector2 texCoord;
  9603. };
  9604. class DelayedWorldTransform
  9605. {
  9606. public:
  9607. ~DelayedWorldTransform();
  9608. DelayedWorldTransform();
  9609. // Methods:
  9610. DelayedWorldTransform& operator=(const DelayedWorldTransform&);
  9611. // Properties:
  9612. Vector3 worldPosition;
  9613. Quaternion worldRotation;
  9614. };
  9615. class DelayedWorldTransform2D
  9616. {
  9617. public:
  9618. ~DelayedWorldTransform2D();
  9619. DelayedWorldTransform2D();
  9620. // Methods:
  9621. DelayedWorldTransform2D& operator=(const DelayedWorldTransform2D&);
  9622. // Properties:
  9623. Vector3 worldPosition;
  9624. Quaternion worldRotation;
  9625. };
  9626. class DepthValue
  9627. {
  9628. public:
  9629. // Methods:
  9630. DepthValue& operator=(const DepthValue&);
  9631. // Properties:
  9632. int max;
  9633. int min;
  9634. };
  9635. class Deserializer
  9636. {
  9637. public:
  9638. // Methods:
  9639. Deserializer& operator=(const Deserializer&);
  9640. operator File() const;
  9641. uint GetChecksum();
  9642. uint GetPosition() const;
  9643. uint GetSize() const;
  9644. operator HttpRequest() const;
  9645. bool IsEof() const;
  9646. operator NamedPipe() const;
  9647. Array<uint8> Read(uint);
  9648. bool ReadBool();
  9649. BoundingBox ReadBoundingBox();
  9650. int8 ReadByte();
  9651. Color ReadColor();
  9652. double ReadDouble();
  9653. String ReadFileID();
  9654. float ReadFloat();
  9655. int ReadInt();
  9656. int64 ReadInt64();
  9657. IntRect ReadIntRect();
  9658. IntVector2 ReadIntVector2();
  9659. IntVector3 ReadIntVector3();
  9660. String ReadLine();
  9661. Matrix3 ReadMatrix3();
  9662. Matrix3x4 ReadMatrix3x4();
  9663. Matrix4 ReadMatrix4();
  9664. uint ReadNetID();
  9665. Quaternion ReadPackedQuaternion();
  9666. Vector3 ReadPackedVector3(float);
  9667. Quaternion ReadQuaternion();
  9668. Rect ReadRect();
  9669. ResourceRef ReadResourceRef();
  9670. ResourceRefList ReadResourceRefList();
  9671. int16 ReadShort();
  9672. String ReadString();
  9673. StringHash ReadStringHash();
  9674. Array<String> ReadStringVector();
  9675. uint8 ReadUByte();
  9676. uint ReadUInt();
  9677. uint64 ReadUInt64();
  9678. uint16 ReadUShort();
  9679. uint ReadVLE();
  9680. Variant ReadVariant();
  9681. Variant ReadVariant(VariantType);
  9682. VariantMap ReadVariantMap();
  9683. Vector2 ReadVector2();
  9684. Vector3 ReadVector3();
  9685. Vector4 ReadVector4();
  9686. VectorBuffer ReadVectorBuffer(uint);
  9687. uint Seek(uint);
  9688. uint SeekRelative(int);
  9689. const String& GetName() const;
  9690. uint Tell() const;
  9691. operator const File() const;
  9692. operator const HttpRequest() const;
  9693. operator const NamedPipe() const;
  9694. // Properties:
  9695. /* readonly */
  9696. uint checksum;
  9697. /* readonly */
  9698. bool eof;
  9699. /* readonly */
  9700. String name;
  9701. /* readonly */
  9702. uint position;
  9703. /* readonly */
  9704. uint size;
  9705. };
  9706. class Dictionary
  9707. {
  9708. public:
  9709. Dictionary();
  9710. // Methods:
  9711. Dictionary& operator=(const Dictionary&);
  9712. DictionaryValue& operator[](const String&);
  9713. void Clear();
  9714. const DictionaryValue& operator[](const String&) const;
  9715. void Erase(const String&);
  9716. bool Exists(const String&) const;
  9717. bool Get(const String&, void*) const;
  9718. bool Get(const String&, double&) const;
  9719. bool Get(const String&, int64&) const;
  9720. void Set(const String&, const void*);
  9721. void Set(const String&, const double&);
  9722. void Set(const String&, const int64&);
  9723. // Properties:
  9724. /* readonly */
  9725. bool empty;
  9726. /* readonly */
  9727. Array<String> keys;
  9728. /* readonly */
  9729. uint length;
  9730. };
  9731. class DictionaryValue
  9732. {
  9733. public:
  9734. ~DictionaryValue();
  9735. DictionaryValue();
  9736. // Methods:
  9737. DictionaryValue& operator=(const void*);
  9738. DictionaryValue& operator=(double);
  9739. DictionaryValue& operator=(int64);
  9740. };
  9741. class DirtyBits
  9742. {
  9743. public:
  9744. ~DirtyBits();
  9745. DirtyBits();
  9746. DirtyBits(const DirtyBits&in);
  9747. // Methods:
  9748. DirtyBits& operator=(const DirtyBits&);
  9749. void Clear(uint);
  9750. void ClearAll();
  9751. uint Count() const;
  9752. bool IsSet(uint) const;
  9753. void Set(uint);
  9754. // Properties:
  9755. uint8 count;
  9756. };
  9757. class Drawable
  9758. {
  9759. public:
  9760. // Methods:
  9761. void AddLight(Light);
  9762. void AddVertexLight(Light);
  9763. void AllocateNetworkState();
  9764. operator Animatable() const;
  9765. operator AnimatedModel() const;
  9766. operator AnimatedSprite2D() const;
  9767. void ApplyAttributes();
  9768. operator BillboardSet() const;
  9769. const BoundingBox& GetBoundingBox() const;
  9770. const BoundingBox& GetWorldBoundingBox();
  9771. void CleanupConnection(Connection);
  9772. operator Component() const;
  9773. operator CustomGeometry() const;
  9774. operator DecalSet() const;
  9775. void DrawDebugGeometry(DebugRenderer, bool);
  9776. bool DrawOcclusion(OcclusionBuffer);
  9777. operator Drawable2D() const;
  9778. bool GetAnimationEnabled() const;
  9779. Variant GetAttribute(const String&) const;
  9780. Variant GetAttribute(uint) const;
  9781. ValueAnimation GetAttributeAnimation(const String&) const;
  9782. float GetAttributeAnimationSpeed(const String&) const;
  9783. float GetAttributeAnimationTime(const String&) const;
  9784. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9785. Variant GetAttributeDefault(const String&) const;
  9786. Variant GetAttributeDefault(uint) const;
  9787. bool GetBlockEvents() const;
  9788. bool GetCastShadows() const;
  9789. Component GetComponent(StringHash) const;
  9790. float GetDistance() const;
  9791. float GetDrawDistance() const;
  9792. uint8 GetDrawableFlags() const;
  9793. VariantMap& GetEventDataMap() const;
  9794. Object GetEventSender() const;
  9795. Light GetFirstLight() const;
  9796. uint GetID() const;
  9797. bool GetInterceptNetworkUpdate(const String&) const;
  9798. uint GetLightMask() const;
  9799. Array<Light> GetLights() const;
  9800. float GetLodBias() const;
  9801. float GetLodDistance() const;
  9802. Geometry GetLodGeometry(uint, uint);
  9803. uint GetMaxLights() const;
  9804. float GetMaxZ() const;
  9805. float GetMinZ() const;
  9806. Node GetNode() const;
  9807. uint GetNumAttributes() const;
  9808. uint GetNumNetworkAttributes() const;
  9809. uint GetNumOccluderTriangles();
  9810. ObjectAnimation GetObjectAnimation() const;
  9811. ResourceRef GetObjectAnimationAttr() const;
  9812. Scene GetScene() const;
  9813. float GetShadowDistance() const;
  9814. uint GetShadowMask() const;
  9815. float GetSortValue() const;
  9816. Object GetSubsystem(StringHash) const;
  9817. StringHash GetType() const;
  9818. UpdateGeometryType GetUpdateGeometryType();
  9819. Array<Light> GetVertexLights() const;
  9820. uint GetViewMask() const;
  9821. Zone GetZone() const;
  9822. uint GetZoneMask() const;
  9823. bool HasBasePass(uint) const;
  9824. bool HasEventHandlers() const;
  9825. bool HasSubscribedToEvent(Object, StringHash) const;
  9826. bool HasSubscribedToEvent(StringHash) const;
  9827. bool IsEnabled() const;
  9828. bool IsEnabledEffective() const;
  9829. bool IsInView() const;
  9830. bool IsInView(Camera) const;
  9831. bool IsInView(const FrameInfo&, bool = false) const;
  9832. bool IsInstanceOf(StringHash) const;
  9833. bool IsOccludee() const;
  9834. bool IsOccluder() const;
  9835. bool IsReplicated() const;
  9836. bool IsTemporary() const;
  9837. bool IsZoneDirty() const;
  9838. operator Light() const;
  9839. void LimitLights();
  9840. void LimitVertexLights(bool);
  9841. bool Load(Deserializer&);
  9842. bool LoadJSON(const JSONValue&);
  9843. bool LoadXML(const XMLElement&);
  9844. void MarkForUpdate();
  9845. void MarkInView(const FrameInfo&);
  9846. void MarkInView(uint);
  9847. void MarkNetworkUpdate();
  9848. operator Object() const;
  9849. void OnEvent(Object, StringHash, VariantMap&);
  9850. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9851. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9852. void OnSetEnabled();
  9853. operator ParticleEmitter2D() const;
  9854. operator ParticleEmitter() const;
  9855. void PrepareNetworkUpdate();
  9856. bool ReadDeltaUpdate(Deserializer&);
  9857. bool ReadLatestDataUpdate(Deserializer&);
  9858. operator RefCounted() const;
  9859. int Refs() const;
  9860. void Remove();
  9861. void RemoveAttributeAnimation(const String&);
  9862. void RemoveInstanceDefault();
  9863. void RemoveObjectAnimation();
  9864. operator Renderer2D() const;
  9865. void ResetToDefault();
  9866. operator RibbonTrail() const;
  9867. bool Save(Serializer&) const;
  9868. bool SaveDefaultAttributes() const;
  9869. bool SaveJSON(JSONValue&) const;
  9870. bool SaveXML(XMLElement&) const;
  9871. void SendEvent(StringHash);
  9872. void SendEvent(StringHash, VariantMap&);
  9873. operator Serializable() const;
  9874. void SetAnimationEnabled(bool);
  9875. void SetAnimationTime(float);
  9876. bool SetAttribute(const String&, const Variant&);
  9877. bool SetAttribute(uint, const Variant&);
  9878. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9879. void SetAttributeAnimationSpeed(const String&, float);
  9880. void SetAttributeAnimationTime(const String&, float);
  9881. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9882. void SetBasePass(uint);
  9883. void SetBlockEvents(bool);
  9884. void SetCastShadows(bool);
  9885. void SetDrawDistance(float);
  9886. void SetEnabled(bool);
  9887. void SetGlobalVar(StringHash, const Variant&);
  9888. void SetInstanceDefault(bool);
  9889. void SetInterceptNetworkUpdate(const String&, bool);
  9890. void SetLightMask(uint);
  9891. void SetLodBias(float);
  9892. void SetMaxLights(uint);
  9893. void SetMinMaxZ(float, float);
  9894. void SetObjectAnimation(ObjectAnimation);
  9895. void SetObjectAnimationAttr(const ResourceRef&);
  9896. void SetOccludee(bool);
  9897. void SetOccluder(bool);
  9898. void SetShadowDistance(float);
  9899. void SetShadowMask(uint);
  9900. void SetSortValue(float);
  9901. void SetTemporary(bool);
  9902. void SetViewMask(uint);
  9903. void SetZone(Zone, bool = false);
  9904. void SetZoneMask(uint);
  9905. operator Skybox() const;
  9906. operator StaticModel() const;
  9907. operator StaticModelGroup() const;
  9908. operator StaticSprite2D() const;
  9909. operator StretchableSprite2D() const;
  9910. const String& GetCategory() const;
  9911. const String& GetTypeName() const;
  9912. operator TerrainPatch() const;
  9913. operator Text3D() const;
  9914. void UnsubscribeFromAllEvents();
  9915. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9916. void UnsubscribeFromEvent(Object, StringHash);
  9917. void UnsubscribeFromEvent(StringHash);
  9918. void UnsubscribeFromEvents(Object);
  9919. void Update(const FrameInfo&);
  9920. void UpdateBatches(const FrameInfo&);
  9921. void UpdateGeometry(const FrameInfo&);
  9922. const Variant& GetGlobalVar(StringHash) const;
  9923. const VariantMap& GetGlobalVars() const;
  9924. int WeakRefs() const;
  9925. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  9926. void WriteInitialDeltaUpdate(Serializer&, uint8);
  9927. void WriteLatestDataUpdate(Serializer&, uint8);
  9928. operator Zone() const;
  9929. operator const Animatable() const;
  9930. operator const AnimatedModel() const;
  9931. operator const AnimatedSprite2D() const;
  9932. operator const BillboardSet() const;
  9933. operator const Component() const;
  9934. operator const CustomGeometry() const;
  9935. operator const DecalSet() const;
  9936. operator const Drawable2D() const;
  9937. operator const Light() const;
  9938. operator const Object() const;
  9939. operator const ParticleEmitter2D() const;
  9940. operator const ParticleEmitter() const;
  9941. operator const RefCounted() const;
  9942. operator const Renderer2D() const;
  9943. operator const RibbonTrail() const;
  9944. operator const Serializable() const;
  9945. operator const Skybox() const;
  9946. operator const StaticModel() const;
  9947. operator const StaticModelGroup() const;
  9948. operator const StaticSprite2D() const;
  9949. operator const StretchableSprite2D() const;
  9950. operator const TerrainPatch() const;
  9951. operator const Text3D() const;
  9952. operator const Zone() const;
  9953. // Properties:
  9954. bool animationEnabled;
  9955. /* readonly */
  9956. Array<Variant> attributeDefaults;
  9957. /* readonly */
  9958. Array<AttributeInfo> attributeInfos;
  9959. Array<Variant> attributes;
  9960. /* readonly */
  9961. BoundingBox boundingBox;
  9962. bool castShadows;
  9963. /* readonly */
  9964. String category;
  9965. float drawDistance;
  9966. bool enabled;
  9967. /* readonly */
  9968. bool enabledEffective;
  9969. Array<Variant> globalVar;
  9970. /* readonly */
  9971. VariantMap globalVars;
  9972. /* readonly */
  9973. uint id;
  9974. /* readonly */
  9975. bool inView;
  9976. uint lightMask;
  9977. float lodBias;
  9978. uint maxLights;
  9979. /* readonly */
  9980. Node node;
  9981. /* readonly */
  9982. uint numAttributes;
  9983. ObjectAnimation objectAnimation;
  9984. bool occludee;
  9985. bool occluder;
  9986. /* readonly */
  9987. int refs;
  9988. /* readonly */
  9989. bool replicated;
  9990. float shadowDistance;
  9991. uint shadowMask;
  9992. bool temporary;
  9993. /* readonly */
  9994. StringHash type;
  9995. /* readonly */
  9996. String typeName;
  9997. uint viewMask;
  9998. /* readonly */
  9999. int weakRefs;
  10000. /* readonly */
  10001. BoundingBox worldBoundingBox;
  10002. /* readonly */
  10003. Zone zone;
  10004. uint zoneMask;
  10005. };
  10006. class Drawable2D
  10007. {
  10008. public:
  10009. // Methods:
  10010. void AddLight(Light);
  10011. void AddVertexLight(Light);
  10012. void AllocateNetworkState();
  10013. operator Animatable() const;
  10014. operator AnimatedSprite2D() const;
  10015. void ApplyAttributes();
  10016. const BoundingBox& GetBoundingBox() const;
  10017. const BoundingBox& GetWorldBoundingBox();
  10018. void CleanupConnection(Connection);
  10019. operator Component() const;
  10020. void DrawDebugGeometry(DebugRenderer, bool);
  10021. bool DrawOcclusion(OcclusionBuffer);
  10022. operator Drawable() const;
  10023. bool GetAnimationEnabled() const;
  10024. Variant GetAttribute(const String&) const;
  10025. Variant GetAttribute(uint) const;
  10026. ValueAnimation GetAttributeAnimation(const String&) const;
  10027. float GetAttributeAnimationSpeed(const String&) const;
  10028. float GetAttributeAnimationTime(const String&) const;
  10029. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10030. Variant GetAttributeDefault(const String&) const;
  10031. Variant GetAttributeDefault(uint) const;
  10032. bool GetBlockEvents() const;
  10033. bool GetCastShadows() const;
  10034. Component GetComponent(StringHash) const;
  10035. float GetDistance() const;
  10036. float GetDrawDistance() const;
  10037. uint8 GetDrawableFlags() const;
  10038. VariantMap& GetEventDataMap() const;
  10039. Object GetEventSender() const;
  10040. Light GetFirstLight() const;
  10041. uint GetID() const;
  10042. bool GetInterceptNetworkUpdate(const String&) const;
  10043. int GetLayer() const;
  10044. uint GetLightMask() const;
  10045. Array<Light> GetLights() const;
  10046. float GetLodBias() const;
  10047. float GetLodDistance() const;
  10048. Geometry GetLodGeometry(uint, uint);
  10049. uint GetMaxLights() const;
  10050. float GetMaxZ() const;
  10051. float GetMinZ() const;
  10052. Node GetNode() const;
  10053. uint GetNumAttributes() const;
  10054. uint GetNumNetworkAttributes() const;
  10055. uint GetNumOccluderTriangles();
  10056. ObjectAnimation GetObjectAnimation() const;
  10057. ResourceRef GetObjectAnimationAttr() const;
  10058. int GetOrderInLayer() const;
  10059. Scene GetScene() const;
  10060. float GetShadowDistance() const;
  10061. uint GetShadowMask() const;
  10062. float GetSortValue() const;
  10063. Object GetSubsystem(StringHash) const;
  10064. StringHash GetType() const;
  10065. UpdateGeometryType GetUpdateGeometryType();
  10066. Array<Light> GetVertexLights() const;
  10067. uint GetViewMask() const;
  10068. Zone GetZone() const;
  10069. uint GetZoneMask() const;
  10070. bool HasBasePass(uint) const;
  10071. bool HasEventHandlers() const;
  10072. bool HasSubscribedToEvent(Object, StringHash) const;
  10073. bool HasSubscribedToEvent(StringHash) const;
  10074. bool IsEnabled() const;
  10075. bool IsEnabledEffective() const;
  10076. bool IsInView() const;
  10077. bool IsInView(Camera) const;
  10078. bool IsInView(const FrameInfo&, bool = false) const;
  10079. bool IsInstanceOf(StringHash) const;
  10080. bool IsOccludee() const;
  10081. bool IsOccluder() const;
  10082. bool IsReplicated() const;
  10083. bool IsTemporary() const;
  10084. bool IsZoneDirty() const;
  10085. void LimitLights();
  10086. void LimitVertexLights(bool);
  10087. bool Load(Deserializer&);
  10088. bool LoadJSON(const JSONValue&);
  10089. bool LoadXML(const XMLElement&);
  10090. void MarkForUpdate();
  10091. void MarkInView(const FrameInfo&);
  10092. void MarkInView(uint);
  10093. void MarkNetworkUpdate();
  10094. operator Object() const;
  10095. void OnEvent(Object, StringHash, VariantMap&);
  10096. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10097. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10098. void OnSetEnabled();
  10099. operator ParticleEmitter2D() const;
  10100. void PrepareNetworkUpdate();
  10101. bool ReadDeltaUpdate(Deserializer&);
  10102. bool ReadLatestDataUpdate(Deserializer&);
  10103. operator RefCounted() const;
  10104. int Refs() const;
  10105. void Remove();
  10106. void RemoveAttributeAnimation(const String&);
  10107. void RemoveInstanceDefault();
  10108. void RemoveObjectAnimation();
  10109. void ResetToDefault();
  10110. bool Save(Serializer&) const;
  10111. bool SaveDefaultAttributes() const;
  10112. bool SaveJSON(JSONValue&) const;
  10113. bool SaveXML(XMLElement&) const;
  10114. void SendEvent(StringHash);
  10115. void SendEvent(StringHash, VariantMap&);
  10116. operator Serializable() const;
  10117. void SetAnimationEnabled(bool);
  10118. void SetAnimationTime(float);
  10119. bool SetAttribute(const String&, const Variant&);
  10120. bool SetAttribute(uint, const Variant&);
  10121. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10122. void SetAttributeAnimationSpeed(const String&, float);
  10123. void SetAttributeAnimationTime(const String&, float);
  10124. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10125. void SetBasePass(uint);
  10126. void SetBlockEvents(bool);
  10127. void SetCastShadows(bool);
  10128. void SetDrawDistance(float);
  10129. void SetEnabled(bool);
  10130. void SetGlobalVar(StringHash, const Variant&);
  10131. void SetInstanceDefault(bool);
  10132. void SetInterceptNetworkUpdate(const String&, bool);
  10133. void SetLayer(int);
  10134. void SetLightMask(uint);
  10135. void SetLodBias(float);
  10136. void SetMaxLights(uint);
  10137. void SetMinMaxZ(float, float);
  10138. void SetObjectAnimation(ObjectAnimation);
  10139. void SetObjectAnimationAttr(const ResourceRef&);
  10140. void SetOccludee(bool);
  10141. void SetOccluder(bool);
  10142. void SetOrderInLayer(int);
  10143. void SetShadowDistance(float);
  10144. void SetShadowMask(uint);
  10145. void SetSortValue(float);
  10146. void SetTemporary(bool);
  10147. void SetViewMask(uint);
  10148. void SetZone(Zone, bool = false);
  10149. void SetZoneMask(uint);
  10150. operator StaticSprite2D() const;
  10151. operator StretchableSprite2D() const;
  10152. const String& GetCategory() const;
  10153. const String& GetTypeName() const;
  10154. void UnsubscribeFromAllEvents();
  10155. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10156. void UnsubscribeFromEvent(Object, StringHash);
  10157. void UnsubscribeFromEvent(StringHash);
  10158. void UnsubscribeFromEvents(Object);
  10159. void Update(const FrameInfo&);
  10160. void UpdateBatches(const FrameInfo&);
  10161. void UpdateGeometry(const FrameInfo&);
  10162. const Variant& GetGlobalVar(StringHash) const;
  10163. const VariantMap& GetGlobalVars() const;
  10164. int WeakRefs() const;
  10165. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10166. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10167. void WriteLatestDataUpdate(Serializer&, uint8);
  10168. operator const Animatable() const;
  10169. operator const AnimatedSprite2D() const;
  10170. operator const Component() const;
  10171. operator const Drawable() const;
  10172. operator const Object() const;
  10173. operator const ParticleEmitter2D() const;
  10174. operator const RefCounted() const;
  10175. operator const Serializable() const;
  10176. operator const StaticSprite2D() const;
  10177. operator const StretchableSprite2D() const;
  10178. // Properties:
  10179. bool animationEnabled;
  10180. /* readonly */
  10181. Array<Variant> attributeDefaults;
  10182. /* readonly */
  10183. Array<AttributeInfo> attributeInfos;
  10184. Array<Variant> attributes;
  10185. /* readonly */
  10186. BoundingBox boundingBox;
  10187. bool castShadows;
  10188. /* readonly */
  10189. String category;
  10190. float drawDistance;
  10191. bool enabled;
  10192. /* readonly */
  10193. bool enabledEffective;
  10194. Array<Variant> globalVar;
  10195. /* readonly */
  10196. VariantMap globalVars;
  10197. /* readonly */
  10198. uint id;
  10199. /* readonly */
  10200. bool inView;
  10201. int layer;
  10202. uint lightMask;
  10203. float lodBias;
  10204. uint maxLights;
  10205. /* readonly */
  10206. Node node;
  10207. /* readonly */
  10208. uint numAttributes;
  10209. ObjectAnimation objectAnimation;
  10210. bool occludee;
  10211. bool occluder;
  10212. int orderInLayer;
  10213. /* readonly */
  10214. int refs;
  10215. /* readonly */
  10216. bool replicated;
  10217. float shadowDistance;
  10218. uint shadowMask;
  10219. bool temporary;
  10220. /* readonly */
  10221. StringHash type;
  10222. /* readonly */
  10223. String typeName;
  10224. uint viewMask;
  10225. /* readonly */
  10226. int weakRefs;
  10227. /* readonly */
  10228. BoundingBox worldBoundingBox;
  10229. /* readonly */
  10230. Zone zone;
  10231. uint zoneMask;
  10232. };
  10233. class DropDownList
  10234. {
  10235. public:
  10236. DropDownList();
  10237. // Methods:
  10238. void AddChild(UIElement);
  10239. void AddItem(UIElement);
  10240. void AddTag(const String&);
  10241. void AddTags(Array<String>);
  10242. void AddTags(const String&, int8 = ';');
  10243. void AdjustScissor(IntRect&);
  10244. void AllocateNetworkState();
  10245. operator Animatable() const;
  10246. void ApplyAttributes();
  10247. operator BorderImage() const;
  10248. void BringToFront();
  10249. operator Button() const;
  10250. const Color& GetColor(Corner) const;
  10251. const Color& GetColorAttr() const;
  10252. const Color& GetDerivedColor() const;
  10253. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  10254. void DisableLayoutUpdate();
  10255. IntVector2 ElementToScreen(const IntVector2&);
  10256. void EnableLayoutUpdate();
  10257. bool FilterAttributes(XMLElement&) const;
  10258. uint FindChild(UIElement) const;
  10259. int GetAcceleratorKey() const;
  10260. int GetAcceleratorQualifiers() const;
  10261. bool GetAnimationEnabled() const;
  10262. Variant GetAttribute(const String&) const;
  10263. Variant GetAttribute(uint) const;
  10264. ValueAnimation GetAttributeAnimation(const String&) const;
  10265. float GetAttributeAnimationSpeed(const String&) const;
  10266. float GetAttributeAnimationTime(const String&) const;
  10267. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10268. Variant GetAttributeDefault(const String&) const;
  10269. Variant GetAttributeDefault(uint) const;
  10270. BlendMode GetBlendMode() const;
  10271. bool GetBlockEvents() const;
  10272. bool GetBringToBack() const;
  10273. bool GetBringToFront() const;
  10274. UIElement GetChild(const String&, bool = false) const;
  10275. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  10276. UIElement GetChild(uint) const;
  10277. Array<UIElement> GetChildren() const;
  10278. Array<UIElement> GetChildren(bool) const;
  10279. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10280. bool GetClipChildren() const;
  10281. IntRect GetCombinedScreenRect();
  10282. XMLFile GetDefaultStyle(bool = true) const;
  10283. float GetDerivedOpacity() const;
  10284. uint GetDragButtonCombo() const;
  10285. uint GetDragButtonCount() const;
  10286. uint GetDragDropMode() const;
  10287. IntVector2 GetEffectiveMinSize() const;
  10288. UIElement GetElementEventSender() const;
  10289. bool GetEnableAnchor() const;
  10290. VariantMap& GetEventDataMap() const;
  10291. Object GetEventSender() const;
  10292. FocusMode GetFocusMode() const;
  10293. int GetHeight() const;
  10294. HorizontalAlignment GetHorizontalAlignment() const;
  10295. int GetIndent() const;
  10296. int GetIndentSpacing() const;
  10297. int GetIndentWidth() const;
  10298. bool GetInterceptNetworkUpdate(const String&) const;
  10299. UIElement GetItem(uint) const;
  10300. Array<UIElement> GetItems() const;
  10301. int GetLayoutElementMaxSize() const;
  10302. LayoutMode GetLayoutMode() const;
  10303. int GetLayoutSpacing() const;
  10304. ListView GetListView() const;
  10305. Material GetMaterial() const;
  10306. ResourceRef GetMaterialAttr() const;
  10307. int GetMaxHeight() const;
  10308. int GetMaxWidth() const;
  10309. int GetMinHeight() const;
  10310. int GetMinWidth() const;
  10311. uint GetNumAttributes() const;
  10312. uint GetNumChildren(bool = false) const;
  10313. uint GetNumItems() const;
  10314. uint GetNumNetworkAttributes() const;
  10315. ObjectAnimation GetObjectAnimation() const;
  10316. ResourceRef GetObjectAnimationAttr() const;
  10317. float GetOpacity() const;
  10318. UIElement GetParent() const;
  10319. UIElement GetPlaceholder() const;
  10320. UIElement GetPopup() const;
  10321. int GetPriority() const;
  10322. float GetRepeatDelay() const;
  10323. float GetRepeatRate() const;
  10324. bool GetResizePopup() const;
  10325. UIElement GetRoot() const;
  10326. UIElement GetSelectedItem() const;
  10327. uint GetSelection() const;
  10328. bool GetShowPopup() const;
  10329. bool GetSortChildren() const;
  10330. Object GetSubsystem(StringHash) const;
  10331. Array<String> GetTags() const;
  10332. Texture GetTexture() const;
  10333. ResourceRef GetTextureAttr() const;
  10334. TraversalMode GetTraversalMode() const;
  10335. StringHash GetType() const;
  10336. bool GetUseDerivedOpacity() const;
  10337. VerticalAlignment GetVerticalAlignment() const;
  10338. int GetWidth() const;
  10339. bool HasColorGradient() const;
  10340. bool HasEventHandlers() const;
  10341. bool HasFocus() const;
  10342. bool HasSubscribedToEvent(Object, StringHash) const;
  10343. bool HasSubscribedToEvent(StringHash) const;
  10344. bool HasTag(const String&) const;
  10345. void InsertChild(uint, UIElement);
  10346. void InsertItem(uint, UIElement);
  10347. const IntRect& GetBorder() const;
  10348. const IntRect& GetClipBorder() const;
  10349. const IntRect& GetImageBorder() const;
  10350. const IntRect& GetImageRect() const;
  10351. const IntRect& GetLayoutBorder() const;
  10352. const IntVector2& GetChildOffset() const;
  10353. const IntVector2& GetDisabledOffset() const;
  10354. const IntVector2& GetHoverOffset() const;
  10355. const IntVector2& GetMaxOffset() const;
  10356. const IntVector2& GetMaxSize() const;
  10357. const IntVector2& GetMinOffset() const;
  10358. const IntVector2& GetMinSize() const;
  10359. const IntVector2& GetPopupOffset() const;
  10360. const IntVector2& GetPosition() const;
  10361. const IntVector2& GetPressedChildOffset() const;
  10362. const IntVector2& GetPressedOffset() const;
  10363. const IntVector2& GetScreenPosition() const;
  10364. const IntVector2& GetSize() const;
  10365. bool IsChildOf(UIElement) const;
  10366. bool IsEditable() const;
  10367. bool IsElementEventSender() const;
  10368. bool IsEnabled() const;
  10369. bool IsEnabledSelf() const;
  10370. bool IsFixedHeight() const;
  10371. bool IsFixedSize() const;
  10372. bool IsFixedWidth() const;
  10373. bool IsHovering() const;
  10374. bool IsInside(IntVector2, bool);
  10375. bool IsInsideCombined(IntVector2, bool);
  10376. bool IsInstanceOf(StringHash) const;
  10377. bool IsInternal() const;
  10378. bool IsPressed() const;
  10379. bool IsSelected() const;
  10380. bool IsTemporary() const;
  10381. bool IsTiled() const;
  10382. bool IsVisible() const;
  10383. bool IsVisibleEffective() const;
  10384. bool IsWheelHandler() const;
  10385. bool IsWithinScissor(const IntRect&);
  10386. bool Load(Deserializer&);
  10387. UIElement LoadChildXML(XMLFile, XMLFile);
  10388. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10389. bool LoadJSON(const JSONValue&);
  10390. bool LoadXML(Deserializer&);
  10391. bool LoadXML(File);
  10392. bool LoadXML(VectorBuffer&);
  10393. bool LoadXML(XMLFile, XMLFile);
  10394. bool LoadXML(const XMLElement&);
  10395. bool LoadXML(const XMLElement&, XMLFile);
  10396. void MarkNetworkUpdate();
  10397. operator Menu() const;
  10398. operator Object() const;
  10399. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  10400. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  10401. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  10402. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10403. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10404. bool OnDragDropFinish(UIElement);
  10405. bool OnDragDropTest(UIElement);
  10406. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10407. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10408. void OnEvent(Object, StringHash, VariantMap&);
  10409. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10410. void OnHidePopup();
  10411. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10412. void OnIndentSet();
  10413. void OnKey(uint, uint, uint);
  10414. void OnPositionSet(const IntVector2&);
  10415. void OnResize(const IntVector2&, const IntVector2&);
  10416. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10417. void OnSetEditable();
  10418. void OnShowPopup();
  10419. void OnTextInput(const String&);
  10420. void OnWheel(int, uint, uint);
  10421. bool ReadDeltaUpdate(Deserializer&);
  10422. bool ReadLatestDataUpdate(Deserializer&);
  10423. operator RefCounted() const;
  10424. int Refs() const;
  10425. void Remove();
  10426. void RemoveAllChildren();
  10427. void RemoveAllItems();
  10428. void RemoveAllTags();
  10429. void RemoveAttributeAnimation(const String&);
  10430. void RemoveChild(UIElement, uint = 0);
  10431. void RemoveChild(uint);
  10432. void RemoveChildAtIndex(uint);
  10433. void RemoveInstanceDefault();
  10434. void RemoveItem(UIElement);
  10435. void RemoveItem(uint);
  10436. void RemoveObjectAnimation();
  10437. bool RemoveTag(const String&);
  10438. void ResetDeepEnabled();
  10439. void ResetToDefault();
  10440. bool Save(Serializer&) const;
  10441. bool SaveDefaultAttributes() const;
  10442. bool SaveJSON(JSONValue&) const;
  10443. bool SaveXML(File, const String& indentation = "\t");
  10444. bool SaveXML(Serializer&, const String& = "\t") const;
  10445. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  10446. bool SaveXML(XMLElement&) const;
  10447. IntVector2 ScreenToElement(const IntVector2&);
  10448. void SendEvent(StringHash);
  10449. void SendEvent(StringHash, VariantMap&);
  10450. operator Serializable() const;
  10451. void SetAccelerator(int, int);
  10452. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10453. void SetAnimationEnabled(bool);
  10454. void SetAnimationTime(float);
  10455. bool SetAttribute(const String&, const Variant&);
  10456. bool SetAttribute(uint, const Variant&);
  10457. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10458. void SetAttributeAnimationSpeed(const String&, float);
  10459. void SetAttributeAnimationTime(const String&, float);
  10460. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10461. void SetBlendMode(BlendMode);
  10462. void SetBlockEvents(bool);
  10463. void SetBorder(const IntRect&);
  10464. void SetBringToBack(bool);
  10465. void SetBringToFront(bool);
  10466. void SetChildOffset(const IntVector2&);
  10467. void SetClipBorder(const IntRect&);
  10468. void SetClipChildren(bool);
  10469. void SetColor(Corner, const Color&);
  10470. void SetColor(const Color&);
  10471. void SetDeepEnabled(bool);
  10472. void SetDefaultStyle(XMLFile);
  10473. void SetDisabledOffset(const IntVector2&);
  10474. void SetDisabledOffset(int, int);
  10475. void SetDragDropMode(uint);
  10476. void SetEditable(bool);
  10477. void SetElementEventSender(bool);
  10478. void SetEnableAnchor(bool);
  10479. void SetEnabled(bool);
  10480. void SetEnabledRecursive(bool);
  10481. void SetFixedHeight(int);
  10482. void SetFixedSize(const IntVector2&);
  10483. void SetFixedSize(int, int);
  10484. void SetFixedWidth(int);
  10485. void SetFocus(bool);
  10486. void SetFocusMode(FocusMode);
  10487. void SetFullImageRect();
  10488. void SetGlobalVar(StringHash, const Variant&);
  10489. void SetHeight(int);
  10490. void SetHorizontalAlignment(HorizontalAlignment);
  10491. void SetHoverOffset(const IntVector2&);
  10492. void SetHoverOffset(int, int);
  10493. void SetHovering(bool);
  10494. void SetImageBorder(const IntRect&);
  10495. void SetImageRect(const IntRect&);
  10496. void SetIndent(int);
  10497. void SetIndentSpacing(int);
  10498. void SetInstanceDefault(bool);
  10499. void SetInterceptNetworkUpdate(const String&, bool);
  10500. void SetInternal(bool);
  10501. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  10502. void SetLayoutBorder(const IntRect&);
  10503. void SetLayoutFlexScale(const Vector2&);
  10504. void SetLayoutMode(LayoutMode);
  10505. void SetLayoutSpacing(int);
  10506. void SetMaterial(Material);
  10507. void SetMaterialAttr(const ResourceRef&);
  10508. void SetMaxAnchor(const Vector2&);
  10509. void SetMaxAnchor(float, float);
  10510. void SetMaxHeight(int);
  10511. void SetMaxOffset(const IntVector2&);
  10512. void SetMaxSize(const IntVector2&);
  10513. void SetMaxSize(int, int);
  10514. void SetMaxWidth(int);
  10515. void SetMinAnchor(const Vector2&);
  10516. void SetMinAnchor(float, float);
  10517. void SetMinHeight(int);
  10518. void SetMinOffset(const IntVector2&);
  10519. void SetMinSize(const IntVector2&);
  10520. void SetMinSize(int, int);
  10521. void SetMinWidth(int);
  10522. void SetName(const String&);
  10523. void SetObjectAnimation(ObjectAnimation);
  10524. void SetObjectAnimationAttr(const ResourceRef&);
  10525. void SetOpacity(float);
  10526. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10527. void SetPivot(const Vector2&);
  10528. void SetPivot(float, float);
  10529. void SetPlaceholderText(const String&);
  10530. void SetPopup(UIElement);
  10531. void SetPopupOffset(const IntVector2&);
  10532. void SetPopupOffset(int, int);
  10533. void SetPosition(const IntVector2&);
  10534. void SetPosition(int, int);
  10535. void SetPressedChildOffset(const IntVector2&);
  10536. void SetPressedChildOffset(int, int);
  10537. void SetPressedOffset(const IntVector2&);
  10538. void SetPressedOffset(int, int);
  10539. void SetPriority(int);
  10540. void SetRenderTexture(Texture2D);
  10541. void SetRepeat(float, float);
  10542. void SetRepeatDelay(float);
  10543. void SetRepeatRate(float);
  10544. void SetResizePopup(bool);
  10545. void SetSelected(bool);
  10546. void SetSelection(uint);
  10547. void SetSelectionAttr(uint);
  10548. void SetSize(const IntVector2&);
  10549. void SetSize(int, int);
  10550. void SetSortChildren(bool);
  10551. bool SetStyle(const String&, XMLFile = null);
  10552. bool SetStyle(const XMLElement&);
  10553. bool SetStyleAuto(XMLFile = null);
  10554. void SetTags(Array<String>);
  10555. void SetTemporary(bool);
  10556. void SetTexture(Texture);
  10557. void SetTextureAttr(const ResourceRef&);
  10558. void SetTiled(bool);
  10559. void SetTraversalMode(TraversalMode);
  10560. void SetUseDerivedOpacity(bool);
  10561. void SetVar(StringHash, const Variant&);
  10562. void SetVerticalAlignment(VerticalAlignment);
  10563. void SetVisible(bool);
  10564. void SetWidth(int);
  10565. void ShowPopup(bool);
  10566. void SortChildren();
  10567. const String& GetAppliedStyle() const;
  10568. const String& GetCategory() const;
  10569. const String& GetName() const;
  10570. const String& GetPlaceholderText() const;
  10571. const String& GetTypeName() const;
  10572. operator UIElement() const;
  10573. void UnsubscribeFromAllEvents();
  10574. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10575. void UnsubscribeFromEvent(Object, StringHash);
  10576. void UnsubscribeFromEvent(StringHash);
  10577. void UnsubscribeFromEvents(Object);
  10578. void Update(float);
  10579. void UpdateLayout();
  10580. const Variant& GetGlobalVar(StringHash) const;
  10581. const Variant& GetVar(const StringHash&) const;
  10582. const VariantMap& GetGlobalVars() const;
  10583. const VariantMap& GetVars() const;
  10584. const Vector2& GetLayoutFlexScale() const;
  10585. const Vector2& GetMaxAnchor() const;
  10586. const Vector2& GetMinAnchor() const;
  10587. const Vector2& GetPivot() const;
  10588. int WeakRefs() const;
  10589. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10590. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10591. void WriteLatestDataUpdate(Serializer&, uint8);
  10592. operator const Animatable() const;
  10593. operator const BorderImage() const;
  10594. operator const Button() const;
  10595. operator const Menu() const;
  10596. operator const Object() const;
  10597. operator const RefCounted() const;
  10598. operator const Serializable() const;
  10599. operator const UIElement() const;
  10600. // Properties:
  10601. /* readonly */
  10602. int acceleratorKey;
  10603. /* readonly */
  10604. int acceleratorQualifiers;
  10605. bool animationEnabled;
  10606. /* readonly */
  10607. Array<Variant> attributeDefaults;
  10608. /* readonly */
  10609. Array<AttributeInfo> attributeInfos;
  10610. Array<Variant> attributes;
  10611. BlendMode blendMode;
  10612. IntRect border;
  10613. bool bringToBack;
  10614. bool bringToFront;
  10615. /* readonly */
  10616. String category;
  10617. /* readonly */
  10618. IntVector2 childOffset;
  10619. /* readonly */
  10620. Array<UIElement> children;
  10621. IntRect clipBorder;
  10622. bool clipChildren;
  10623. /* writeonly */
  10624. Color color;
  10625. /* readonly */
  10626. bool colorGradient;
  10627. Array<Color> colors;
  10628. /* readonly */
  10629. IntRect combinedScreenRect;
  10630. XMLFile defaultStyle;
  10631. /* readonly */
  10632. float derivedOpacity;
  10633. IntVector2 disabledOffset;
  10634. /* readonly */
  10635. uint dragButtonCombo;
  10636. /* readonly */
  10637. uint dragButtonCount;
  10638. uint dragDropMode;
  10639. bool editable;
  10640. bool elementEventSender;
  10641. bool enableAnchor;
  10642. bool enabled;
  10643. /* readonly */
  10644. bool enabledSelf;
  10645. /* readonly */
  10646. bool fixedHeight;
  10647. /* readonly */
  10648. bool fixedSize;
  10649. /* readonly */
  10650. bool fixedWidth;
  10651. bool focus;
  10652. FocusMode focusMode;
  10653. Array<Variant> globalVar;
  10654. /* readonly */
  10655. VariantMap globalVars;
  10656. int height;
  10657. HorizontalAlignment horizontalAlignment;
  10658. IntVector2 hoverOffset;
  10659. /* readonly */
  10660. bool hovering;
  10661. IntRect imageBorder;
  10662. IntRect imageRect;
  10663. int indent;
  10664. int indentSpacing;
  10665. /* readonly */
  10666. int indentWidth;
  10667. bool internal;
  10668. /* readonly */
  10669. Array<UIElement> items;
  10670. IntRect layoutBorder;
  10671. Vector2 layoutFlexScale;
  10672. LayoutMode layoutMode;
  10673. int layoutSpacing;
  10674. /* readonly */
  10675. ListView listView;
  10676. Material material;
  10677. Vector2 maxAnchor;
  10678. int maxHeight;
  10679. IntVector2 maxOffset;
  10680. IntVector2 maxSize;
  10681. int maxWidth;
  10682. Vector2 minAnchor;
  10683. int minHeight;
  10684. IntVector2 minOffset;
  10685. IntVector2 minSize;
  10686. int minWidth;
  10687. String name;
  10688. /* readonly */
  10689. uint numAllChildren;
  10690. /* readonly */
  10691. uint numAttributes;
  10692. /* readonly */
  10693. uint numChildren;
  10694. /* readonly */
  10695. uint numItems;
  10696. ObjectAnimation objectAnimation;
  10697. float opacity;
  10698. UIElement parent;
  10699. Vector2 pivot;
  10700. /* readonly */
  10701. UIElement placeholder;
  10702. String placeholderText;
  10703. UIElement popup;
  10704. IntVector2 popupOffset;
  10705. IntVector2 position;
  10706. /* readonly */
  10707. bool pressed;
  10708. IntVector2 pressedChildOffset;
  10709. IntVector2 pressedOffset;
  10710. int priority;
  10711. /* readonly */
  10712. int refs;
  10713. float repeatDelay;
  10714. float repeatRate;
  10715. bool resizePopup;
  10716. /* readonly */
  10717. UIElement root;
  10718. /* readonly */
  10719. IntVector2 screenPosition;
  10720. bool selected;
  10721. /* readonly */
  10722. UIElement selectedItem;
  10723. uint selection;
  10724. bool showPopup;
  10725. IntVector2 size;
  10726. bool sortChildren;
  10727. String style;
  10728. /* readonly */
  10729. Array<String> tags;
  10730. bool temporary;
  10731. Texture texture;
  10732. bool tiled;
  10733. TraversalMode traversalMode;
  10734. /* readonly */
  10735. StringHash type;
  10736. /* readonly */
  10737. String typeName;
  10738. bool useDerivedOpacity;
  10739. /* readonly */
  10740. VariantMap vars;
  10741. VerticalAlignment verticalAlignment;
  10742. bool visible;
  10743. /* readonly */
  10744. bool visibleEffective;
  10745. /* readonly */
  10746. int weakRefs;
  10747. int width;
  10748. };
  10749. class DynamicNavigationMesh
  10750. {
  10751. public:
  10752. DynamicNavigationMesh();
  10753. // Methods:
  10754. bool AddTile(const VectorBuffer&) const;
  10755. bool Allocate(const BoundingBox&, uint);
  10756. void AllocateNetworkState();
  10757. operator Animatable() const;
  10758. void ApplyAttributes();
  10759. const BoundingBox& GetBoundingBox() const;
  10760. bool Build();
  10761. bool Build(const BoundingBox&);
  10762. bool Build(const IntVector2&, const IntVector2&);
  10763. void CleanupConnection(Connection);
  10764. operator Component() const;
  10765. void DrawDebugGeometry(DebugRenderer, bool);
  10766. void DrawDebugGeometry(bool);
  10767. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 :: ONE);
  10768. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& extents = Vector3 :: ONE);
  10769. float GetAgentHeight() const;
  10770. float GetAgentMaxClimb() const;
  10771. float GetAgentMaxSlope() const;
  10772. float GetAgentRadius() const;
  10773. bool GetAnimationEnabled() const;
  10774. float GetAreaCost(uint) const;
  10775. Variant GetAttribute(const String&) const;
  10776. Variant GetAttribute(uint) const;
  10777. ValueAnimation GetAttributeAnimation(const String&) const;
  10778. float GetAttributeAnimationSpeed(const String&) const;
  10779. float GetAttributeAnimationTime(const String&) const;
  10780. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10781. Variant GetAttributeDefault(const String&) const;
  10782. Variant GetAttributeDefault(uint) const;
  10783. bool GetBlockEvents() const;
  10784. float GetCellHeight() const;
  10785. float GetCellSize() const;
  10786. Component GetComponent(StringHash) const;
  10787. float GetDetailSampleDistance() const;
  10788. float GetDetailSampleMaxError() const;
  10789. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  10790. bool GetDrawNavAreas() const;
  10791. bool GetDrawObstacles() const;
  10792. bool GetDrawOffMeshConnections() const;
  10793. float GetEdgeMaxError() const;
  10794. float GetEdgeMaxLength() const;
  10795. VariantMap& GetEventDataMap() const;
  10796. Object GetEventSender() const;
  10797. uint GetID() const;
  10798. bool GetInterceptNetworkUpdate(const String&) const;
  10799. uint GetMaxLayers() const;
  10800. uint GetMaxObstacles() const;
  10801. String GetMeshName() const;
  10802. Node GetNode() const;
  10803. uint GetNumAttributes() const;
  10804. uint GetNumNetworkAttributes() const;
  10805. IntVector2 GetNumTiles() const;
  10806. ObjectAnimation GetObjectAnimation() const;
  10807. ResourceRef GetObjectAnimationAttr() const;
  10808. NavmeshPartitionType GetPartitionType() const;
  10809. Vector3 GetRandomPoint();
  10810. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  10811. float GetRegionMergeSize() const;
  10812. float GetRegionMinSize() const;
  10813. Scene GetScene() const;
  10814. Object GetSubsystem(StringHash) const;
  10815. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  10816. VectorBuffer GetTileData(const IntVector2&) const;
  10817. IntVector2 GetTileIndex(const Vector3&) const;
  10818. int GetTileSize() const;
  10819. StringHash GetType() const;
  10820. BoundingBox GetWorldBoundingBox() const;
  10821. bool HasEventHandlers() const;
  10822. bool HasSubscribedToEvent(Object, StringHash) const;
  10823. bool HasSubscribedToEvent(StringHash) const;
  10824. bool HasTile(const IntVector2&) const;
  10825. bool IsEnabled() const;
  10826. bool IsEnabledEffective() const;
  10827. bool IsInitialized() const;
  10828. bool IsInstanceOf(StringHash) const;
  10829. bool IsObstacleInTile(Obstacle, const IntVector2&) const;
  10830. bool IsReplicated() const;
  10831. bool IsTemporary() const;
  10832. bool Load(Deserializer&);
  10833. bool LoadJSON(const JSONValue&);
  10834. bool LoadXML(const XMLElement&);
  10835. void MarkNetworkUpdate();
  10836. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE, int = 3);
  10837. operator NavigationMesh() const;
  10838. operator Object() const;
  10839. void OnEvent(Object, StringHash, VariantMap&);
  10840. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10841. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10842. void OnSetEnabled();
  10843. void PrepareNetworkUpdate();
  10844. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE);
  10845. bool ReadDeltaUpdate(Deserializer&);
  10846. bool ReadLatestDataUpdate(Deserializer&);
  10847. operator RefCounted() const;
  10848. int Refs() const;
  10849. void Remove();
  10850. void RemoveAllTiles();
  10851. void RemoveAttributeAnimation(const String&);
  10852. void RemoveInstanceDefault();
  10853. void RemoveObjectAnimation();
  10854. void RemoveTile(const IntVector2&);
  10855. void ResetToDefault();
  10856. bool Save(Serializer&) const;
  10857. bool SaveDefaultAttributes() const;
  10858. bool SaveJSON(JSONValue&) const;
  10859. bool SaveXML(XMLElement&) const;
  10860. void SendEvent(StringHash);
  10861. void SendEvent(StringHash, VariantMap&);
  10862. operator Serializable() const;
  10863. void SetAgentHeight(float);
  10864. void SetAgentMaxClimb(float);
  10865. void SetAgentMaxSlope(float);
  10866. void SetAgentRadius(float);
  10867. void SetAnimationEnabled(bool);
  10868. void SetAnimationTime(float);
  10869. void SetAreaCost(uint, float);
  10870. bool SetAttribute(const String&, const Variant&);
  10871. bool SetAttribute(uint, const Variant&);
  10872. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10873. void SetAttributeAnimationSpeed(const String&, float);
  10874. void SetAttributeAnimationTime(const String&, float);
  10875. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10876. void SetBlockEvents(bool);
  10877. void SetCellHeight(float);
  10878. void SetCellSize(float);
  10879. void SetDetailSampleDistance(float);
  10880. void SetDetailSampleMaxError(float);
  10881. void SetDrawNavAreas(bool);
  10882. void SetDrawObstacles(bool);
  10883. void SetDrawOffMeshConnections(bool);
  10884. void SetEdgeMaxError(float);
  10885. void SetEdgeMaxLength(float);
  10886. void SetEnabled(bool);
  10887. void SetGlobalVar(StringHash, const Variant&);
  10888. void SetInstanceDefault(bool);
  10889. void SetInterceptNetworkUpdate(const String&, bool);
  10890. void SetMaxLayers(uint);
  10891. void SetMaxObstacles(uint);
  10892. void SetMeshName(const String&);
  10893. void SetObjectAnimation(ObjectAnimation);
  10894. void SetObjectAnimationAttr(const ResourceRef&);
  10895. void SetPadding(const Vector3&);
  10896. void SetPartitionType(NavmeshPartitionType);
  10897. void SetRegionMergeSize(float);
  10898. void SetRegionMinSize(float);
  10899. void SetTemporary(bool);
  10900. void SetTileSize(int);
  10901. const String& GetCategory() const;
  10902. const String& GetTypeName() const;
  10903. void UnsubscribeFromAllEvents();
  10904. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10905. void UnsubscribeFromEvent(Object, StringHash);
  10906. void UnsubscribeFromEvent(StringHash);
  10907. void UnsubscribeFromEvents(Object);
  10908. const Variant& GetGlobalVar(StringHash) const;
  10909. const VariantMap& GetGlobalVars() const;
  10910. const Vector3& GetPadding() const;
  10911. int WeakRefs() const;
  10912. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10913. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10914. void WriteLatestDataUpdate(Serializer&, uint8);
  10915. operator const Animatable() const;
  10916. operator const Component() const;
  10917. operator const NavigationMesh() const;
  10918. operator const Object() const;
  10919. operator const RefCounted() const;
  10920. operator const Serializable() const;
  10921. // Properties:
  10922. float agentHeight;
  10923. float agentMaxClimb;
  10924. float agentMaxSlope;
  10925. float agentRadius;
  10926. bool animationEnabled;
  10927. /* readonly */
  10928. Array<Variant> attributeDefaults;
  10929. /* readonly */
  10930. Array<AttributeInfo> attributeInfos;
  10931. Array<Variant> attributes;
  10932. /* readonly */
  10933. BoundingBox boundingBox;
  10934. /* readonly */
  10935. String category;
  10936. float cellHeight;
  10937. float cellSize;
  10938. float detailSampleDistance;
  10939. float detailSampleMaxError;
  10940. bool drawNavAreas;
  10941. bool drawObstacles;
  10942. bool drawOffMeshConnections;
  10943. float edgeMaxError;
  10944. float edgeMaxLength;
  10945. bool enabled;
  10946. /* readonly */
  10947. bool enabledEffective;
  10948. Array<Variant> globalVar;
  10949. /* readonly */
  10950. VariantMap globalVars;
  10951. /* readonly */
  10952. uint id;
  10953. /* readonly */
  10954. bool initialized;
  10955. uint maxLayers;
  10956. uint maxObstacles;
  10957. /* readonly */
  10958. Node node;
  10959. /* readonly */
  10960. uint numAttributes;
  10961. /* readonly */
  10962. IntVector2 numTiles;
  10963. ObjectAnimation objectAnimation;
  10964. Vector3 padding;
  10965. NavmeshPartitionType partitionType;
  10966. /* readonly */
  10967. int refs;
  10968. float regionMergeSize;
  10969. float regionMinSize;
  10970. /* readonly */
  10971. bool replicated;
  10972. bool temporary;
  10973. int tileSize;
  10974. /* readonly */
  10975. StringHash type;
  10976. /* readonly */
  10977. String typeName;
  10978. /* readonly */
  10979. int weakRefs;
  10980. /* readonly */
  10981. BoundingBox worldBoundingBox;
  10982. };
  10983. class Engine
  10984. {
  10985. public:
  10986. Engine();
  10987. // Methods:
  10988. void ApplyFrameLimit();
  10989. Console CreateConsole();
  10990. DebugHud CreateDebugHud();
  10991. void DumpMemory();
  10992. void DumpProfiler();
  10993. void DumpResources(bool = false);
  10994. void Exit();
  10995. bool GetAutoExit() const;
  10996. bool GetBlockEvents() const;
  10997. VariantMap& GetEventDataMap() const;
  10998. Object GetEventSender() const;
  10999. int GetMaxFps() const;
  11000. int GetMaxInactiveFps() const;
  11001. int GetMinFps() const;
  11002. float GetNextTimeStep() const;
  11003. bool GetPauseMinimized() const;
  11004. Object GetSubsystem(StringHash) const;
  11005. int GetTimeStepSmoothing() const;
  11006. StringHash GetType() const;
  11007. bool HasEventHandlers() const;
  11008. bool HasSubscribedToEvent(Object, StringHash) const;
  11009. bool HasSubscribedToEvent(StringHash) const;
  11010. bool Initialize(const VariantMap&);
  11011. bool InitializeResourceCache(const VariantMap&, bool = true);
  11012. bool IsExiting() const;
  11013. bool IsHeadless() const;
  11014. bool IsInitialized() const;
  11015. bool IsInstanceOf(StringHash) const;
  11016. operator Object() const;
  11017. void OnEvent(Object, StringHash, VariantMap&);
  11018. operator RefCounted() const;
  11019. int Refs() const;
  11020. void Render();
  11021. void RunFrame();
  11022. void SendEvent(StringHash);
  11023. void SendEvent(StringHash, VariantMap&);
  11024. void SetAutoExit(bool);
  11025. void SetBlockEvents(bool);
  11026. void SetGlobalVar(StringHash, const Variant&);
  11027. void SetMaxFps(int);
  11028. void SetMaxInactiveFps(int);
  11029. void SetMinFps(int);
  11030. void SetNextTimeStep(float);
  11031. void SetPauseMinimized(bool);
  11032. void SetTimeStepSmoothing(int);
  11033. const String& GetCategory() const;
  11034. const String& GetTypeName() const;
  11035. void UnsubscribeFromAllEvents();
  11036. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11037. void UnsubscribeFromEvent(Object, StringHash);
  11038. void UnsubscribeFromEvent(StringHash);
  11039. void UnsubscribeFromEvents(Object);
  11040. void Update();
  11041. const Variant& GetGlobalVar(StringHash) const;
  11042. const VariantMap& GetGlobalVars() const;
  11043. int WeakRefs() const;
  11044. operator const Object() const;
  11045. operator const RefCounted() const;
  11046. // Properties:
  11047. bool autoExit;
  11048. /* readonly */
  11049. String category;
  11050. /* readonly */
  11051. bool exiting;
  11052. Array<Variant> globalVar;
  11053. /* readonly */
  11054. VariantMap globalVars;
  11055. /* readonly */
  11056. bool headless;
  11057. /* readonly */
  11058. bool initialized;
  11059. int maxFps;
  11060. int maxInactiveFps;
  11061. int minFps;
  11062. bool pauseMinimized;
  11063. /* readonly */
  11064. int refs;
  11065. int timeStepSmoothing;
  11066. /* readonly */
  11067. StringHash type;
  11068. /* readonly */
  11069. String typeName;
  11070. /* readonly */
  11071. int weakRefs;
  11072. };
  11073. class EventProfiler
  11074. {
  11075. public:
  11076. EventProfiler();
  11077. // Methods:
  11078. void BeginBlock(StringHash);
  11079. void BeginFrame();
  11080. void BeginInterval();
  11081. void EndBlock();
  11082. void EndFrame();
  11083. bool GetBlockEvents() const;
  11084. VariantMap& GetEventDataMap() const;
  11085. Object GetEventSender() const;
  11086. Object GetSubsystem(StringHash) const;
  11087. StringHash GetType() const;
  11088. bool HasEventHandlers() const;
  11089. bool HasSubscribedToEvent(Object, StringHash) const;
  11090. bool HasSubscribedToEvent(StringHash) const;
  11091. bool IsInstanceOf(StringHash) const;
  11092. operator Object() const;
  11093. void OnEvent(Object, StringHash, VariantMap&);
  11094. operator Profiler() const;
  11095. operator RefCounted() const;
  11096. int Refs() const;
  11097. void SendEvent(StringHash);
  11098. void SendEvent(StringHash, VariantMap&);
  11099. void SetBlockEvents(bool);
  11100. void SetGlobalVar(StringHash, const Variant&);
  11101. const String& GetCategory() const;
  11102. const String& GetTypeName() const;
  11103. const String& PrintData(bool = false, bool = false, uint = M_MAX_UNSIGNED) const;
  11104. void UnsubscribeFromAllEvents();
  11105. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11106. void UnsubscribeFromEvent(Object, StringHash);
  11107. void UnsubscribeFromEvent(StringHash);
  11108. void UnsubscribeFromEvents(Object);
  11109. const Variant& GetGlobalVar(StringHash) const;
  11110. const VariantMap& GetGlobalVars() const;
  11111. int WeakRefs() const;
  11112. operator const Object() const;
  11113. operator const Profiler() const;
  11114. operator const RefCounted() const;
  11115. // Properties:
  11116. /* readonly */
  11117. String category;
  11118. Array<Variant> globalVar;
  11119. /* readonly */
  11120. VariantMap globalVars;
  11121. /* readonly */
  11122. int refs;
  11123. /* readonly */
  11124. StringHash type;
  11125. /* readonly */
  11126. String typeName;
  11127. /* readonly */
  11128. int weakRefs;
  11129. };
  11130. class EventReceiverGroup
  11131. {
  11132. public:
  11133. EventReceiverGroup();
  11134. // Methods:
  11135. void Add(Object);
  11136. void BeginSendEvent();
  11137. void EndSendEvent();
  11138. operator RefCounted() const;
  11139. int Refs() const;
  11140. void Remove(Object);
  11141. int WeakRefs() const;
  11142. operator const RefCounted() const;
  11143. // Properties:
  11144. /* readonly */
  11145. int refs;
  11146. /* readonly */
  11147. int weakRefs;
  11148. };
  11149. class File
  11150. {
  11151. public:
  11152. File();
  11153. File(const String&in, FileMode = FILE_READ);
  11154. File(PackageFile&, const String&in);
  11155. // Methods:
  11156. void Close();
  11157. operator Deserializer() const;
  11158. void Flush();
  11159. bool GetBlockEvents() const;
  11160. uint GetChecksum();
  11161. VariantMap& GetEventDataMap() const;
  11162. Object GetEventSender() const;
  11163. FileMode GetMode() const;
  11164. uint GetPosition() const;
  11165. uint GetSize() const;
  11166. Object GetSubsystem(StringHash) const;
  11167. StringHash GetType() const;
  11168. bool HasEventHandlers() const;
  11169. bool HasSubscribedToEvent(Object, StringHash) const;
  11170. bool HasSubscribedToEvent(StringHash) const;
  11171. bool IsEof() const;
  11172. bool IsInstanceOf(StringHash) const;
  11173. bool IsOpen() const;
  11174. bool IsPackaged() const;
  11175. operator Object() const;
  11176. void OnEvent(Object, StringHash, VariantMap&);
  11177. bool Open(PackageFile, const String&);
  11178. bool Open(const String&, FileMode = FILE_READ);
  11179. Array<uint8> Read(uint);
  11180. bool ReadBool();
  11181. BoundingBox ReadBoundingBox();
  11182. int8 ReadByte();
  11183. Color ReadColor();
  11184. double ReadDouble();
  11185. String ReadFileID();
  11186. float ReadFloat();
  11187. int ReadInt();
  11188. int64 ReadInt64();
  11189. IntRect ReadIntRect();
  11190. IntVector2 ReadIntVector2();
  11191. IntVector3 ReadIntVector3();
  11192. String ReadLine();
  11193. Matrix3 ReadMatrix3();
  11194. Matrix3x4 ReadMatrix3x4();
  11195. Matrix4 ReadMatrix4();
  11196. uint ReadNetID();
  11197. Quaternion ReadPackedQuaternion();
  11198. Vector3 ReadPackedVector3(float);
  11199. Quaternion ReadQuaternion();
  11200. Rect ReadRect();
  11201. ResourceRef ReadResourceRef();
  11202. ResourceRefList ReadResourceRefList();
  11203. int16 ReadShort();
  11204. String ReadString();
  11205. StringHash ReadStringHash();
  11206. Array<String> ReadStringVector();
  11207. uint8 ReadUByte();
  11208. uint ReadUInt();
  11209. uint64 ReadUInt64();
  11210. uint16 ReadUShort();
  11211. uint ReadVLE();
  11212. Variant ReadVariant();
  11213. Variant ReadVariant(VariantType);
  11214. VariantMap ReadVariantMap();
  11215. Vector2 ReadVector2();
  11216. Vector3 ReadVector3();
  11217. Vector4 ReadVector4();
  11218. VectorBuffer ReadVectorBuffer(uint);
  11219. operator RefCounted() const;
  11220. int Refs() const;
  11221. uint Seek(uint);
  11222. uint SeekRelative(int);
  11223. void SendEvent(StringHash);
  11224. void SendEvent(StringHash, VariantMap&);
  11225. operator Serializer() const;
  11226. void SetBlockEvents(bool);
  11227. void SetGlobalVar(StringHash, const Variant&);
  11228. void SetName(const String&);
  11229. const String& GetCategory() const;
  11230. const String& GetName() const;
  11231. const String& GetTypeName() const;
  11232. uint Tell() const;
  11233. void UnsubscribeFromAllEvents();
  11234. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11235. void UnsubscribeFromEvent(Object, StringHash);
  11236. void UnsubscribeFromEvent(StringHash);
  11237. void UnsubscribeFromEvents(Object);
  11238. const Variant& GetGlobalVar(StringHash) const;
  11239. const VariantMap& GetGlobalVars() const;
  11240. int WeakRefs() const;
  11241. uint Write(Array<uint8>);
  11242. bool WriteBool(bool);
  11243. bool WriteBoundingBox(const BoundingBox&);
  11244. bool WriteByte(int8);
  11245. bool WriteColor(const Color&);
  11246. bool WriteDouble(double);
  11247. bool WriteFileID(const String&);
  11248. bool WriteFloat(float);
  11249. bool WriteInt(int);
  11250. bool WriteInt64(int64);
  11251. bool WriteIntRect(const IntRect&);
  11252. bool WriteIntVector2(const IntVector2&);
  11253. bool WriteIntVector3(const IntVector3&);
  11254. bool WriteLine(const String&);
  11255. bool WriteMatrix3(const Matrix3&);
  11256. bool WriteMatrix3x4(const Matrix3x4&);
  11257. bool WriteMatrix4(const Matrix4&);
  11258. bool WriteNetID(uint);
  11259. bool WritePackedQuaternion(const Quaternion&);
  11260. bool WritePackedVector3(const Vector3&, float);
  11261. bool WriteQuaternion(const Quaternion&);
  11262. bool WriteRect(const Rect&);
  11263. bool WriteResourceRef(const ResourceRef&);
  11264. bool WriteResourceRefList(const ResourceRefList&);
  11265. bool WriteShort(int16);
  11266. bool WriteString(const String&);
  11267. bool WriteStringHash(const StringHash&);
  11268. bool WriteStringVector(Array<String>);
  11269. bool WriteUByte(uint8);
  11270. bool WriteUInt(uint);
  11271. bool WriteUInt64(uint64);
  11272. bool WriteUShort(uint16);
  11273. bool WriteVLE(uint);
  11274. bool WriteVariant(const Variant&);
  11275. bool WriteVariantData(const Variant&);
  11276. bool WriteVariantMap(const VariantMap&);
  11277. bool WriteVector2(const Vector2&);
  11278. bool WriteVector3(const Vector3&);
  11279. bool WriteVector4(const Vector4&);
  11280. bool WriteVectorBuffer(const VectorBuffer&);
  11281. operator const Deserializer() const;
  11282. operator const Object() const;
  11283. operator const RefCounted() const;
  11284. operator const Serializer() const;
  11285. // Properties:
  11286. /* readonly */
  11287. String category;
  11288. /* readonly */
  11289. uint checksum;
  11290. /* readonly */
  11291. bool eof;
  11292. Array<Variant> globalVar;
  11293. /* readonly */
  11294. VariantMap globalVars;
  11295. /* readonly */
  11296. FileMode mode;
  11297. String name;
  11298. /* readonly */
  11299. bool open;
  11300. /* readonly */
  11301. bool packaged;
  11302. /* readonly */
  11303. uint position;
  11304. /* readonly */
  11305. int refs;
  11306. /* readonly */
  11307. uint size;
  11308. /* readonly */
  11309. StringHash type;
  11310. /* readonly */
  11311. String typeName;
  11312. /* readonly */
  11313. int weakRefs;
  11314. };
  11315. class FileSelector
  11316. {
  11317. public:
  11318. FileSelector();
  11319. // Methods:
  11320. bool GetBlockEvents() const;
  11321. Button GetCancelButton() const;
  11322. Button GetCloseButton() const;
  11323. XMLFile GetDefaultStyle() const;
  11324. bool GetDirectoryMode() const;
  11325. VariantMap& GetEventDataMap() const;
  11326. Object GetEventSender() const;
  11327. ListView GetFileList() const;
  11328. LineEdit GetFileNameEdit() const;
  11329. uint GetFilterIndex() const;
  11330. DropDownList GetFilterList() const;
  11331. Button GetOKButton() const;
  11332. LineEdit GetPathEdit() const;
  11333. Object GetSubsystem(StringHash) const;
  11334. Text GetTitleText() const;
  11335. StringHash GetType() const;
  11336. Window GetWindow() const;
  11337. bool HasEventHandlers() const;
  11338. bool HasSubscribedToEvent(Object, StringHash) const;
  11339. bool HasSubscribedToEvent(StringHash) const;
  11340. bool IsInstanceOf(StringHash) const;
  11341. operator Object() const;
  11342. void OnEvent(Object, StringHash, VariantMap&);
  11343. operator RefCounted() const;
  11344. int Refs() const;
  11345. void SendEvent(StringHash);
  11346. void SendEvent(StringHash, VariantMap&);
  11347. void SetBlockEvents(bool);
  11348. void SetButtonTexts(const String&, const String&);
  11349. void SetDefaultStyle(XMLFile);
  11350. void SetDirectoryMode(bool);
  11351. void SetFileName(const String&);
  11352. void SetFilters(Array<String>, uint);
  11353. void SetGlobalVar(StringHash, const Variant&);
  11354. void SetPath(const String&);
  11355. void SetTitle(const String&);
  11356. const String& GetCategory() const;
  11357. const String& GetFileName() const;
  11358. const String& GetFilter() const;
  11359. const String& GetPath() const;
  11360. const String& GetTitle() const;
  11361. const String& GetTypeName() const;
  11362. void UnsubscribeFromAllEvents();
  11363. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11364. void UnsubscribeFromEvent(Object, StringHash);
  11365. void UnsubscribeFromEvent(StringHash);
  11366. void UnsubscribeFromEvents(Object);
  11367. void UpdateElements();
  11368. const Variant& GetGlobalVar(StringHash) const;
  11369. const VariantMap& GetGlobalVars() const;
  11370. int WeakRefs() const;
  11371. operator const Object() const;
  11372. operator const RefCounted() const;
  11373. // Properties:
  11374. /* readonly */
  11375. Button cancelButton;
  11376. /* readonly */
  11377. String category;
  11378. XMLFile defaultStyle;
  11379. bool directoryMode;
  11380. /* readonly */
  11381. ListView fileList;
  11382. String fileName;
  11383. /* readonly */
  11384. LineEdit fileNameEdit;
  11385. /* readonly */
  11386. String filter;
  11387. /* readonly */
  11388. uint filterIndex;
  11389. /* readonly */
  11390. DropDownList filterList;
  11391. Array<Variant> globalVar;
  11392. /* readonly */
  11393. VariantMap globalVars;
  11394. /* readonly */
  11395. Button okButton;
  11396. String path;
  11397. /* readonly */
  11398. LineEdit pathEdit;
  11399. /* readonly */
  11400. int refs;
  11401. String title;
  11402. /* readonly */
  11403. Text titleText;
  11404. /* readonly */
  11405. StringHash type;
  11406. /* readonly */
  11407. String typeName;
  11408. /* readonly */
  11409. int weakRefs;
  11410. /* readonly */
  11411. Window window;
  11412. };
  11413. class FileSelectorEntry
  11414. {
  11415. public:
  11416. ~FileSelectorEntry();
  11417. FileSelectorEntry();
  11418. // Methods:
  11419. FileSelectorEntry& operator=(const FileSelectorEntry&);
  11420. // Properties:
  11421. bool directory;
  11422. String name;
  11423. };
  11424. class FileSystem
  11425. {
  11426. public:
  11427. FileSystem();
  11428. // Methods:
  11429. bool CheckAccess(const String&) const;
  11430. bool Copy(const String&, const String&);
  11431. bool CreateDir(const String&);
  11432. bool Delete(const String&);
  11433. bool DirExists(const String&) const;
  11434. bool FileExists(const String&) const;
  11435. String GetAppPreferencesDir(const String&, const String&) const;
  11436. bool GetBlockEvents() const;
  11437. String GetCurrentDir() const;
  11438. VariantMap& GetEventDataMap() const;
  11439. Object GetEventSender() const;
  11440. bool GetExecuteConsoleCommands() const;
  11441. uint GetLastModifiedTime(const String&) const;
  11442. String GetProgramDir() const;
  11443. Object GetSubsystem(StringHash) const;
  11444. String GetTemporaryDir() const;
  11445. StringHash GetType() const;
  11446. String GetUserDocumentsDir() const;
  11447. bool HasEventHandlers() const;
  11448. bool HasRegisteredPaths() const;
  11449. bool HasSubscribedToEvent(Object, StringHash) const;
  11450. bool HasSubscribedToEvent(StringHash) const;
  11451. bool IsInstanceOf(StringHash) const;
  11452. operator Object() const;
  11453. void OnEvent(Object, StringHash, VariantMap&);
  11454. operator RefCounted() const;
  11455. int Refs() const;
  11456. void RegisterPath(const String&);
  11457. bool Rename(const String&, const String&);
  11458. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  11459. void SendEvent(StringHash);
  11460. void SendEvent(StringHash, VariantMap&);
  11461. void SetBlockEvents(bool);
  11462. bool SetCurrentDir(const String&);
  11463. void SetExecuteConsoleCommands(bool);
  11464. void SetGlobalVar(StringHash, const Variant&);
  11465. bool SetLastModifiedTime(const String&, uint);
  11466. const String& GetCategory() const;
  11467. const String& GetTypeName() const;
  11468. int SystemCommand(const String&, bool = false);
  11469. uint SystemCommandAsync(const String&);
  11470. bool SystemOpen(const String&, const String& = String :: EMPTY);
  11471. int SystemRun(const String&, Array<String>);
  11472. uint SystemRunAsync(const String&, Array<String>);
  11473. void UnsubscribeFromAllEvents();
  11474. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11475. void UnsubscribeFromEvent(Object, StringHash);
  11476. void UnsubscribeFromEvent(StringHash);
  11477. void UnsubscribeFromEvents(Object);
  11478. const Variant& GetGlobalVar(StringHash) const;
  11479. const VariantMap& GetGlobalVars() const;
  11480. int WeakRefs() const;
  11481. operator const Object() const;
  11482. operator const RefCounted() const;
  11483. // Properties:
  11484. /* readonly */
  11485. String category;
  11486. String currentDir;
  11487. bool executeConsoleCommands;
  11488. Array<Variant> globalVar;
  11489. /* readonly */
  11490. VariantMap globalVars;
  11491. /* readonly */
  11492. String programDir;
  11493. /* readonly */
  11494. int refs;
  11495. /* readonly */
  11496. String temporaryDir;
  11497. /* readonly */
  11498. StringHash type;
  11499. /* readonly */
  11500. String typeName;
  11501. /* readonly */
  11502. String userDocumentsDir;
  11503. /* readonly */
  11504. int weakRefs;
  11505. };
  11506. class FileWatcher
  11507. {
  11508. public:
  11509. FileWatcher();
  11510. // Methods:
  11511. void AddChange(const String&);
  11512. bool GetBlockEvents() const;
  11513. float GetDelay() const;
  11514. VariantMap& GetEventDataMap() const;
  11515. Object GetEventSender() const;
  11516. bool GetNextChange(String&);
  11517. Object GetSubsystem(StringHash) const;
  11518. StringHash GetType() const;
  11519. bool HasEventHandlers() const;
  11520. bool HasSubscribedToEvent(Object, StringHash) const;
  11521. bool HasSubscribedToEvent(StringHash) const;
  11522. bool IsInstanceOf(StringHash) const;
  11523. bool IsStarted() const;
  11524. operator Object() const;
  11525. void OnEvent(Object, StringHash, VariantMap&);
  11526. operator RefCounted() const;
  11527. int Refs() const;
  11528. bool Run();
  11529. void SendEvent(StringHash);
  11530. void SendEvent(StringHash, VariantMap&);
  11531. void SetBlockEvents(bool);
  11532. void SetDelay(float);
  11533. void SetGlobalVar(StringHash, const Variant&);
  11534. void SetPriority(int);
  11535. bool StartWatching(const String&, bool);
  11536. void Stop();
  11537. void StopWatching();
  11538. const String& GetCategory() const;
  11539. const String& GetPath() const;
  11540. const String& GetTypeName() const;
  11541. void ThreadFunction();
  11542. void UnsubscribeFromAllEvents();
  11543. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11544. void UnsubscribeFromEvent(Object, StringHash);
  11545. void UnsubscribeFromEvent(StringHash);
  11546. void UnsubscribeFromEvents(Object);
  11547. const Variant& GetGlobalVar(StringHash) const;
  11548. const VariantMap& GetGlobalVars() const;
  11549. int WeakRefs() const;
  11550. operator const Object() const;
  11551. operator const RefCounted() const;
  11552. // Properties:
  11553. /* readonly */
  11554. String category;
  11555. Array<Variant> globalVar;
  11556. /* readonly */
  11557. VariantMap globalVars;
  11558. /* readonly */
  11559. int refs;
  11560. /* readonly */
  11561. StringHash type;
  11562. /* readonly */
  11563. String typeName;
  11564. /* readonly */
  11565. int weakRefs;
  11566. };
  11567. class FocusParameters
  11568. {
  11569. public:
  11570. FocusParameters();
  11571. FocusParameters(bool, bool, bool, float, float);
  11572. // Methods:
  11573. FocusParameters& operator=(const FocusParameters&);
  11574. void Validate();
  11575. // Properties:
  11576. bool autoSize;
  11577. bool focus;
  11578. float minView;
  11579. bool nonUniform;
  11580. float quantize;
  11581. };
  11582. class Font
  11583. {
  11584. public:
  11585. Font();
  11586. // Methods:
  11587. bool BeginLoad(Deserializer&);
  11588. bool EndLoad();
  11589. AsyncLoadState GetAsyncLoadState() const;
  11590. bool GetBlockEvents() const;
  11591. VariantMap& GetEventDataMap() const;
  11592. Object GetEventSender() const;
  11593. FontFace GetFace(float);
  11594. FontType GetFontType() const;
  11595. uint GetMemoryUse() const;
  11596. StringHash GetNameHash() const;
  11597. Object GetSubsystem(StringHash) const;
  11598. IntVector2 GetTotalGlyphOffset(float) const;
  11599. StringHash GetType() const;
  11600. uint GetUseTimer();
  11601. bool HasEventHandlers() const;
  11602. bool HasSubscribedToEvent(Object, StringHash) const;
  11603. bool HasSubscribedToEvent(StringHash) const;
  11604. const IntVector2& GetAbsoluteGlyphOffset() const;
  11605. bool IsInstanceOf(StringHash) const;
  11606. bool IsSDFFont() const;
  11607. bool Load(Deserializer&);
  11608. bool Load(File);
  11609. bool Load(VectorBuffer&);
  11610. bool Load(const String&);
  11611. bool LoadFile(const String&);
  11612. operator Object() const;
  11613. void OnEvent(Object, StringHash, VariantMap&);
  11614. operator RefCounted() const;
  11615. int Refs() const;
  11616. void ReleaseFaces();
  11617. void ResetUseTimer();
  11618. operator Resource() const;
  11619. bool Save(File) const;
  11620. bool Save(Serializer&) const;
  11621. bool Save(VectorBuffer&) const;
  11622. bool Save(const String&) const;
  11623. bool SaveFile(const String&) const;
  11624. bool SaveXML(File, int, bool usedGlyphs = false, const String& indentation = "\t");
  11625. bool SaveXML(Serializer&, int, bool = false, const String& = "\t");
  11626. bool SaveXML(VectorBuffer&, int, bool usedGlyphs = false, const String& indentation = "\t");
  11627. bool SaveXML(const String&, int, bool usedGlyphs = false, const String& indentation = "\t");
  11628. void SendEvent(StringHash);
  11629. void SendEvent(StringHash, VariantMap&);
  11630. void SetAbsoluteGlyphOffset(const IntVector2&);
  11631. void SetAsyncLoadState(AsyncLoadState);
  11632. void SetBlockEvents(bool);
  11633. void SetGlobalVar(StringHash, const Variant&);
  11634. void SetMemoryUse(uint);
  11635. void SetName(const String&);
  11636. void SetScaledGlyphOffset(const Vector2&);
  11637. const String& GetCategory() const;
  11638. const String& GetName() const;
  11639. const String& GetTypeName() const;
  11640. void UnsubscribeFromAllEvents();
  11641. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11642. void UnsubscribeFromEvent(Object, StringHash);
  11643. void UnsubscribeFromEvent(StringHash);
  11644. void UnsubscribeFromEvents(Object);
  11645. const Variant& GetGlobalVar(StringHash) const;
  11646. const VariantMap& GetGlobalVars() const;
  11647. const Vector2& GetScaledGlyphOffset() const;
  11648. int WeakRefs() const;
  11649. operator const Object() const;
  11650. operator const RefCounted() const;
  11651. operator const Resource() const;
  11652. // Properties:
  11653. IntVector2 absoluteGlyphOffset;
  11654. /* readonly */
  11655. String category;
  11656. /* readonly */
  11657. FontType fontType;
  11658. Array<Variant> globalVar;
  11659. /* readonly */
  11660. VariantMap globalVars;
  11661. /* readonly */
  11662. uint memoryUse;
  11663. String name;
  11664. /* readonly */
  11665. int refs;
  11666. Vector2 scaledGlyphOffset;
  11667. /* readonly */
  11668. StringHash type;
  11669. /* readonly */
  11670. String typeName;
  11671. /* readonly */
  11672. uint useTimer;
  11673. /* readonly */
  11674. int weakRefs;
  11675. };
  11676. class FontFace
  11677. {
  11678. public:
  11679. // Methods:
  11680. operator FontFaceBitmap() const;
  11681. operator FontFaceFreeType() const;
  11682. float GetKerning(uint, uint) const;
  11683. float GetPointSize() const;
  11684. float GetRowHeight() const;
  11685. Array<Texture2D> GetTextures() const;
  11686. bool HasMutableGlyphs() const;
  11687. bool IsDataLost() const;
  11688. operator RefCounted() const;
  11689. int Refs() const;
  11690. int WeakRefs() const;
  11691. operator const FontFaceBitmap() const;
  11692. operator const FontFaceFreeType() const;
  11693. operator const RefCounted() const;
  11694. // Properties:
  11695. /* readonly */
  11696. int refs;
  11697. /* readonly */
  11698. int weakRefs;
  11699. };
  11700. class FontFaceBitmap
  11701. {
  11702. public:
  11703. FontFaceBitmap(Font&);
  11704. // Methods:
  11705. operator FontFace() const;
  11706. float GetKerning(uint, uint) const;
  11707. float GetPointSize() const;
  11708. float GetRowHeight() const;
  11709. Array<Texture2D> GetTextures() const;
  11710. bool HasMutableGlyphs() const;
  11711. bool IsDataLost() const;
  11712. bool Load(FontFace, bool);
  11713. operator RefCounted() const;
  11714. int Refs() const;
  11715. bool Save(Serializer&, int, const String& = "\t");
  11716. int WeakRefs() const;
  11717. operator const FontFace() const;
  11718. operator const RefCounted() const;
  11719. // Properties:
  11720. /* readonly */
  11721. int refs;
  11722. /* readonly */
  11723. int weakRefs;
  11724. };
  11725. class FontFaceFreeType
  11726. {
  11727. public:
  11728. FontFaceFreeType(Font&);
  11729. // Methods:
  11730. operator FontFace() const;
  11731. float GetKerning(uint, uint) const;
  11732. float GetPointSize() const;
  11733. float GetRowHeight() const;
  11734. Array<Texture2D> GetTextures() const;
  11735. bool HasMutableGlyphs() const;
  11736. bool IsDataLost() const;
  11737. operator RefCounted() const;
  11738. int Refs() const;
  11739. int WeakRefs() const;
  11740. operator const FontFace() const;
  11741. operator const RefCounted() const;
  11742. // Properties:
  11743. /* readonly */
  11744. int refs;
  11745. /* readonly */
  11746. int weakRefs;
  11747. };
  11748. class FontGlyph
  11749. {
  11750. public:
  11751. ~FontGlyph();
  11752. FontGlyph();
  11753. // Methods:
  11754. FontGlyph& operator=(const FontGlyph&);
  11755. // Properties:
  11756. float advanceX;
  11757. float height;
  11758. float offsetX;
  11759. float offsetY;
  11760. uint page;
  11761. int16 texHeight;
  11762. int16 texWidth;
  11763. bool used;
  11764. float width;
  11765. int16 x;
  11766. int16 y;
  11767. };
  11768. class FrameInfo
  11769. {
  11770. public:
  11771. ~FrameInfo();
  11772. FrameInfo();
  11773. // Methods:
  11774. FrameInfo& operator=(const FrameInfo&);
  11775. // Properties:
  11776. uint frameNumber;
  11777. float timeStep;
  11778. IntVector2 viewSize;
  11779. };
  11780. class Frustum
  11781. {
  11782. public:
  11783. ~Frustum();
  11784. Frustum();
  11785. Frustum(const Frustum&in);
  11786. // Methods:
  11787. Frustum& operator=(const Frustum&);
  11788. void Define(const BoundingBox&, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11789. void Define(const Matrix4&);
  11790. void Define(const Vector3&, const Vector3&, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11791. void Define(float, float, float, float, float, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11792. void DefineOrtho(float, float, float, float, float, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11793. void DefineSplit(const Matrix4&, float, float);
  11794. float Distance(const Vector3&) const;
  11795. Intersection IsInside(const BoundingBox&) const;
  11796. Intersection IsInside(const Sphere&) const;
  11797. Intersection IsInside(const Vector3&) const;
  11798. Intersection IsInsideFast(const BoundingBox&) const;
  11799. Intersection IsInsideFast(const Sphere&) const;
  11800. Rect Projected(const Matrix4&) const;
  11801. void Transform(const Matrix3&);
  11802. void Transform(const Matrix3x4&);
  11803. Frustum Transformed(const Matrix3&) const;
  11804. Frustum Transformed(const Matrix3x4&) const;
  11805. void UpdatePlanes();
  11806. // Properties:
  11807. /* readonly */
  11808. Array<Vector3> vertices;
  11809. };
  11810. class GImpactMeshData
  11811. {
  11812. public:
  11813. GImpactMeshData(Model&, uint);
  11814. GImpactMeshData(CustomGeometry&);
  11815. // Methods:
  11816. operator CollisionGeometryData() const;
  11817. operator RefCounted() const;
  11818. int Refs() const;
  11819. int WeakRefs() const;
  11820. operator const CollisionGeometryData() const;
  11821. operator const RefCounted() const;
  11822. // Properties:
  11823. /* readonly */
  11824. int refs;
  11825. /* readonly */
  11826. int weakRefs;
  11827. };
  11828. class GPUObject
  11829. {
  11830. public:
  11831. ~GPUObject();
  11832. GPUObject(Graphics@);
  11833. // Methods:
  11834. GPUObject& operator=(const GPUObject&);
  11835. void ClearDataLost();
  11836. uint GetGPUObjectName() const;
  11837. Graphics GetGraphics() const;
  11838. bool HasPendingData() const;
  11839. bool IsDataLost() const;
  11840. void OnDeviceLost();
  11841. void OnDeviceReset();
  11842. void Release();
  11843. // Properties:
  11844. /* readonly */
  11845. bool dataLost;
  11846. };
  11847. class Geometry
  11848. {
  11849. public:
  11850. Geometry();
  11851. // Methods:
  11852. void Draw(Graphics);
  11853. bool GetBlockEvents() const;
  11854. uint16 GetBufferHash() const;
  11855. VariantMap& GetEventDataMap() const;
  11856. Object GetEventSender() const;
  11857. IndexBuffer GetIndexBuffer() const;
  11858. uint GetIndexCount() const;
  11859. uint GetIndexStart() const;
  11860. float GetLodDistance() const;
  11861. uint GetNumVertexBuffers() const;
  11862. PrimitiveType GetPrimitiveType() const;
  11863. Object GetSubsystem(StringHash) const;
  11864. StringHash GetType() const;
  11865. VertexBuffer GetVertexBuffer(uint) const;
  11866. Array<VertexBuffer> GetVertexBuffers() const;
  11867. uint GetVertexCount() const;
  11868. uint GetVertexStart() const;
  11869. bool HasEventHandlers() const;
  11870. bool HasSubscribedToEvent(Object, StringHash) const;
  11871. bool HasSubscribedToEvent(StringHash) const;
  11872. bool IsEmpty() const;
  11873. bool IsInside(const Ray&) const;
  11874. bool IsInstanceOf(StringHash) const;
  11875. operator Object() const;
  11876. void OnEvent(Object, StringHash, VariantMap&);
  11877. operator RefCounted() const;
  11878. int Refs() const;
  11879. void SendEvent(StringHash);
  11880. void SendEvent(StringHash, VariantMap&);
  11881. void SetBlockEvents(bool);
  11882. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  11883. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  11884. void SetGlobalVar(StringHash, const Variant&);
  11885. void SetIndexBuffer(IndexBuffer);
  11886. void SetLodDistance(float);
  11887. bool SetNumVertexBuffers(uint);
  11888. bool SetVertexBuffer(uint, VertexBuffer);
  11889. const String& GetCategory() const;
  11890. const String& GetTypeName() const;
  11891. void UnsubscribeFromAllEvents();
  11892. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11893. void UnsubscribeFromEvent(Object, StringHash);
  11894. void UnsubscribeFromEvent(StringHash);
  11895. void UnsubscribeFromEvents(Object);
  11896. const Variant& GetGlobalVar(StringHash) const;
  11897. const VariantMap& GetGlobalVars() const;
  11898. int WeakRefs() const;
  11899. operator const Object() const;
  11900. operator const RefCounted() const;
  11901. // Properties:
  11902. /* readonly */
  11903. String category;
  11904. /* readonly */
  11905. bool empty;
  11906. Array<Variant> globalVar;
  11907. /* readonly */
  11908. VariantMap globalVars;
  11909. IndexBuffer indexBuffer;
  11910. /* readonly */
  11911. uint indexCount;
  11912. /* readonly */
  11913. uint indexStart;
  11914. float lodDistance;
  11915. uint numVertexBuffers;
  11916. /* readonly */
  11917. PrimitiveType primitiveType;
  11918. /* readonly */
  11919. int refs;
  11920. /* readonly */
  11921. StringHash type;
  11922. /* readonly */
  11923. String typeName;
  11924. /* readonly */
  11925. Array<VertexBuffer> vertexBuffers;
  11926. /* readonly */
  11927. uint vertexCount;
  11928. /* readonly */
  11929. uint vertexStart;
  11930. /* readonly */
  11931. int weakRefs;
  11932. };
  11933. class GeometryDesc
  11934. {
  11935. public:
  11936. ~GeometryDesc();
  11937. GeometryDesc();
  11938. // Methods:
  11939. GeometryDesc& operator=(const GeometryDesc&);
  11940. // Properties:
  11941. uint ibRef;
  11942. uint indexCount;
  11943. uint indexStart;
  11944. PrimitiveType type;
  11945. uint vbRef;
  11946. };
  11947. class Graphics
  11948. {
  11949. public:
  11950. Graphics(GAPI);
  11951. // Methods:
  11952. void BeginDumpShaders(const String&);
  11953. bool BeginFrame();
  11954. void CleanupScratchBuffers();
  11955. void Clear(uint, const Color& = Color ( 0.0f , 0.0f , 0.0f , 0.0f ), float = 1.0f, uint = 0);
  11956. void ClearParameterSource(ShaderParameterGroup);
  11957. void ClearParameterSources();
  11958. void ClearTransformSources();
  11959. void Close();
  11960. void Draw(PrimitiveType, uint, uint);
  11961. void Draw(PrimitiveType, uint, uint, uint, uint);
  11962. void Draw(PrimitiveType, uint, uint, uint, uint, uint);
  11963. void DrawInstanced(PrimitiveType, uint, uint, uint, uint, uint);
  11964. void DrawInstanced(PrimitiveType, uint, uint, uint, uint, uint, uint);
  11965. void EndDumpShaders();
  11966. void EndFrame();
  11967. uint FindBestResolutionIndex(int, int, int, int) const;
  11968. bool GetAlphaToCoverage() const;
  11969. bool GetAnisotropySupport() const;
  11970. BlendMode GetBlendMode() const;
  11971. bool GetBlockEvents() const;
  11972. bool GetBorderless() const;
  11973. bool GetColorWrite() const;
  11974. CullMode GetCullMode() const;
  11975. int GetCurrentMonitor() const;
  11976. uint GetDefaultTextureAnisotropy() const;
  11977. TextureFilterMode GetDefaultTextureFilterMode() const;
  11978. bool GetDeferredSupport() const;
  11979. float GetDepthConstantBias() const;
  11980. float GetDepthSlopeScaledBias() const;
  11981. RenderSurface GetDepthStencil() const;
  11982. CompareMode GetDepthTest() const;
  11983. bool GetDepthWrite() const;
  11984. IntVector2 GetDesktopResolution(int) const;
  11985. Vector3 GetDisplayDPI(int = 0) const;
  11986. bool GetDither() const;
  11987. uint GetDummyColorFormat() const;
  11988. VariantMap& GetEventDataMap() const;
  11989. Object GetEventSender() const;
  11990. FillMode GetFillMode() const;
  11991. bool GetFlushGPU() const;
  11992. bool GetForceGL2() const;
  11993. uint GetFormat(CompressedFormat) const;
  11994. bool GetFullscreen() const;
  11995. bool GetHardwareShadowSupport() const;
  11996. int GetHeight() const;
  11997. bool GetHighDPI() const;
  11998. uint GetHiresShadowMapFormat() const;
  11999. IndexBuffer GetIndexBuffer() const;
  12000. bool GetInstancingSupport() const;
  12001. bool GetLightPrepassSupport() const;
  12002. bool GetLineAntiAlias() const;
  12003. bool GetMaximized() const;
  12004. int GetMonitor() const;
  12005. int GetMonitorCount() const;
  12006. int GetMultiSample() const;
  12007. Array<int> GetMultiSampleLevels() const;
  12008. uint GetNumBatches() const;
  12009. uint GetNumPrimitives() const;
  12010. ShaderVariation GetPixelShader() const;
  12011. bool GetReadableDepthSupport() const;
  12012. int GetRefreshRate() const;
  12013. RenderSurface GetRenderTarget(uint) const;
  12014. IntVector2 GetRenderTargetDimensions() const;
  12015. bool GetResizable() const;
  12016. Array<IntVector3> GetResolutions(int) const;
  12017. bool GetSRGB() const;
  12018. bool GetSRGBSupport() const;
  12019. bool GetSRGBWriteSupport() const;
  12020. bool GetScissorTest() const;
  12021. ShaderVariation GetShader(ShaderType, const String&, const String& = String :: EMPTY) const;
  12022. uint GetShadowMapFormat() const;
  12023. IntVector2 GetSize() const;
  12024. uint GetStencilCompareMask() const;
  12025. StencilOp GetStencilFail() const;
  12026. StencilOp GetStencilPass() const;
  12027. uint GetStencilRef() const;
  12028. bool GetStencilTest() const;
  12029. CompareMode GetStencilTestMode() const;
  12030. uint GetStencilWriteMask() const;
  12031. StencilOp GetStencilZFail() const;
  12032. Object GetSubsystem(StringHash) const;
  12033. Texture GetTexture(uint) const;
  12034. TextureUnit GetTextureUnit(const String&);
  12035. bool GetTripleBuffer() const;
  12036. StringHash GetType() const;
  12037. bool GetUseClipPlane() const;
  12038. bool GetVSync() const;
  12039. VertexBuffer GetVertexBuffer(uint) const;
  12040. ShaderVariation GetVertexShader() const;
  12041. IntRect GetViewport() const;
  12042. int GetWidth() const;
  12043. IntVector2 GetWindowPosition() const;
  12044. bool HasEventHandlers() const;
  12045. bool HasShaderParameter(StringHash);
  12046. bool HasSubscribedToEvent(Object, StringHash) const;
  12047. bool HasSubscribedToEvent(StringHash) const;
  12048. bool HasTextureUnit(TextureUnit);
  12049. const IntRect& GetScissorRect() const;
  12050. bool IsDeviceLost() const;
  12051. bool IsInitialized() const;
  12052. bool IsInstanceOf(StringHash) const;
  12053. void Maximize();
  12054. void Minimize();
  12055. operator Object() const;
  12056. void OnEvent(Object, StringHash, VariantMap&);
  12057. void OnWindowMoved();
  12058. void OnWindowResized();
  12059. void PrecacheShaders(Deserializer&);
  12060. void PrecacheShaders(File);
  12061. void PrecacheShaders(VectorBuffer&);
  12062. void Raise() const;
  12063. operator RefCounted() const;
  12064. int Refs() const;
  12065. void ResetDepthStencil();
  12066. void ResetRenderTarget(uint);
  12067. void ResetRenderTargets();
  12068. bool ResolveToTexture(Texture2D);
  12069. bool ResolveToTexture(Texture2D, const IntRect&);
  12070. bool ResolveToTexture(TextureCube);
  12071. const ScreenModeParams& GetScreenModeParams() const;
  12072. void SendEvent(StringHash);
  12073. void SendEvent(StringHash, VariantMap&);
  12074. void SetBlendMode(BlendMode, bool = false);
  12075. void SetBlockEvents(bool);
  12076. void SetClipPlane(bool, const Plane& = Plane :: UP, const Matrix3x4& = Matrix3x4 :: IDENTITY, const Matrix4& = Matrix4 :: IDENTITY);
  12077. void SetColorWrite(bool);
  12078. void SetCullMode(CullMode);
  12079. void SetDefaultTextureAnisotropy(uint);
  12080. void SetDefaultTextureFilterMode(TextureFilterMode);
  12081. bool SetDefaultWindowModes(int, int, const ScreenModeParams&);
  12082. void SetDepthBias(float, float);
  12083. void SetDepthStencil(RenderSurface);
  12084. void SetDepthStencil(Texture2D);
  12085. void SetDepthTest(CompareMode);
  12086. void SetDepthWrite(bool);
  12087. void SetDither(bool);
  12088. void SetFillMode(FillMode);
  12089. void SetFlushGPU(bool);
  12090. void SetForceGL2(bool);
  12091. void SetGlobalVar(StringHash, const Variant&);
  12092. void SetIndexBuffer(IndexBuffer);
  12093. void SetLineAntiAlias(bool);
  12094. bool SetMode(int, int);
  12095. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  12096. void SetOrientations(const String&);
  12097. void SetRenderTarget(uint, RenderSurface);
  12098. void SetRenderTarget(uint, Texture2D);
  12099. void SetSRGB(bool);
  12100. void SetScissorTest(bool, const IntRect&);
  12101. void SetScissorTest(bool, const Rect& = Rect :: FULL, bool = true);
  12102. bool SetScreenMode(int, int);
  12103. bool SetScreenMode(int, int, const ScreenModeParams&, bool = false);
  12104. void SetShaderCacheDir(const String&);
  12105. void SetShaderParameter(StringHash, bool);
  12106. void SetShaderParameter(StringHash, const Color&);
  12107. void SetShaderParameter(StringHash, const Matrix3&);
  12108. void SetShaderParameter(StringHash, const Matrix3x4&);
  12109. void SetShaderParameter(StringHash, const Matrix4&);
  12110. void SetShaderParameter(StringHash, const Variant&);
  12111. void SetShaderParameter(StringHash, const Vector2&);
  12112. void SetShaderParameter(StringHash, const Vector3&);
  12113. void SetShaderParameter(StringHash, const Vector4&);
  12114. void SetShaderParameter(StringHash, float);
  12115. void SetShaderParameter(StringHash, int);
  12116. void SetShaders(ShaderVariation, ShaderVariation);
  12117. 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);
  12118. void SetTexture(uint, Texture);
  12119. void SetVertexBuffer(VertexBuffer);
  12120. bool SetVertexBuffers(Array<VertexBuffer>, uint = 0);
  12121. void SetViewport(const IntRect&);
  12122. void SetWindowIcon(Image);
  12123. bool SetWindowModes(const WindowModeParams&, const WindowModeParams&, bool = false);
  12124. void SetWindowPosition(const IntVector2&);
  12125. void SetWindowPosition(int, int);
  12126. void SetWindowTitle(const String&);
  12127. const String& GetApiName() const;
  12128. const String& GetCategory() const;
  12129. const String& GetOrientations() const;
  12130. const String& GetShaderCacheDir() const;
  12131. const String& GetTextureUnitName(TextureUnit);
  12132. const String& GetTypeName() const;
  12133. const String& GetWindowTitle() const;
  12134. bool TakeScreenShot(Image&);
  12135. bool ToggleFullscreen();
  12136. void UnsubscribeFromAllEvents();
  12137. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12138. void UnsubscribeFromEvent(Object, StringHash);
  12139. void UnsubscribeFromEvent(StringHash);
  12140. void UnsubscribeFromEvents(Object);
  12141. const Variant& GetGlobalVar(StringHash) const;
  12142. const VariantMap& GetGlobalVars() const;
  12143. int WeakRefs() const;
  12144. operator const Object() const;
  12145. operator const RefCounted() const;
  12146. // Properties:
  12147. /* readonly */
  12148. String apiName;
  12149. /* readonly */
  12150. bool borderless;
  12151. /* readonly */
  12152. String category;
  12153. /* readonly */
  12154. int currentMonitor;
  12155. /* readonly */
  12156. bool deferredSupport;
  12157. /* readonly */
  12158. Array<IntVector2> desktopResolution;
  12159. /* readonly */
  12160. bool deviceLost;
  12161. /* readonly */
  12162. Array<Vector3> displayDPI;
  12163. bool dither;
  12164. bool flushGPU;
  12165. /* readonly */
  12166. bool fullscreen;
  12167. Array<Variant> globalVar;
  12168. /* readonly */
  12169. VariantMap globalVars;
  12170. /* readonly */
  12171. bool hardwareShadowSupport;
  12172. /* readonly */
  12173. int height;
  12174. /* readonly */
  12175. bool initialized;
  12176. /* readonly */
  12177. bool instancingSupport;
  12178. /* readonly */
  12179. bool lightPrepassSupport;
  12180. /* readonly */
  12181. bool maximized;
  12182. /* readonly */
  12183. int monitorCount;
  12184. /* readonly */
  12185. int multiSample;
  12186. /* readonly */
  12187. Array<int> multiSampleLevels;
  12188. /* readonly */
  12189. uint numBatches;
  12190. /* readonly */
  12191. uint numPrimitives;
  12192. String orientations;
  12193. /* readonly */
  12194. bool readableDepthSupport;
  12195. /* readonly */
  12196. int refs;
  12197. /* readonly */
  12198. bool resizable;
  12199. /* readonly */
  12200. Array<Array<IntVector3>> resolutions;
  12201. bool sRGB;
  12202. /* readonly */
  12203. bool sRGBSupport;
  12204. /* readonly */
  12205. bool sRGBWriteSupport;
  12206. String shaderCacheDir;
  12207. /* readonly */
  12208. IntVector2 size;
  12209. /* readonly */
  12210. bool tripleBuffer;
  12211. /* readonly */
  12212. StringHash type;
  12213. /* readonly */
  12214. String typeName;
  12215. /* readonly */
  12216. bool vSync;
  12217. /* readonly */
  12218. int weakRefs;
  12219. /* readonly */
  12220. int width;
  12221. /* writeonly */
  12222. Image windowIcon;
  12223. IntVector2 windowPosition;
  12224. String windowTitle;
  12225. };
  12226. class HashBase
  12227. {
  12228. public:
  12229. ~HashBase();
  12230. HashBase();
  12231. // Methods:
  12232. HashBase& operator=(const HashBase&);
  12233. bool Empty() const;
  12234. uint NumBuckets() const;
  12235. uint Size() const;
  12236. void Swap(HashBase&);
  12237. // Constants:
  12238. static const uint MAX_LOAD_FACTOR;
  12239. static const uint MIN_BUCKETS;
  12240. };
  12241. class HashIteratorBase
  12242. {
  12243. public:
  12244. ~HashIteratorBase();
  12245. HashIteratorBase();
  12246. // Methods:
  12247. HashIteratorBase& operator=(const HashIteratorBase&);
  12248. bool operator==(const HashIteratorBase&) const;
  12249. void GotoNext();
  12250. void GotoPrev();
  12251. };
  12252. class HashNodeBase
  12253. {
  12254. public:
  12255. ~HashNodeBase();
  12256. HashNodeBase();
  12257. // Methods:
  12258. HashNodeBase& operator=(const HashNodeBase&);
  12259. };
  12260. class HeightfieldData
  12261. {
  12262. public:
  12263. HeightfieldData(Terrain&, uint);
  12264. // Methods:
  12265. operator CollisionGeometryData() const;
  12266. operator RefCounted() const;
  12267. int Refs() const;
  12268. int WeakRefs() const;
  12269. operator const CollisionGeometryData() const;
  12270. operator const RefCounted() const;
  12271. // Properties:
  12272. float maxHeight;
  12273. float minHeight;
  12274. /* readonly */
  12275. int refs;
  12276. IntVector2 size;
  12277. Vector3 spacing;
  12278. /* readonly */
  12279. int weakRefs;
  12280. };
  12281. class HiresTimer
  12282. {
  12283. public:
  12284. ~HiresTimer();
  12285. HiresTimer();
  12286. // Methods:
  12287. HiresTimer& operator=(const HiresTimer&);
  12288. int64 GetUSec(bool);
  12289. void Reset();
  12290. };
  12291. class HttpRequest
  12292. {
  12293. public:
  12294. HttpRequest(const String&in, const String&in, String[]&, const String&in);
  12295. // Methods:
  12296. operator Deserializer() const;
  12297. uint GetAvailableSize() const;
  12298. uint GetChecksum();
  12299. String GetError() const;
  12300. uint GetPosition() const;
  12301. uint GetSize() const;
  12302. HttpRequestState GetState() const;
  12303. bool IsEof() const;
  12304. bool IsOpen() const;
  12305. bool IsStarted() const;
  12306. Array<uint8> Read(uint);
  12307. bool ReadBool();
  12308. BoundingBox ReadBoundingBox();
  12309. int8 ReadByte();
  12310. Color ReadColor();
  12311. double ReadDouble();
  12312. String ReadFileID();
  12313. float ReadFloat();
  12314. int ReadInt();
  12315. int64 ReadInt64();
  12316. IntRect ReadIntRect();
  12317. IntVector2 ReadIntVector2();
  12318. IntVector3 ReadIntVector3();
  12319. String ReadLine();
  12320. Matrix3 ReadMatrix3();
  12321. Matrix3x4 ReadMatrix3x4();
  12322. Matrix4 ReadMatrix4();
  12323. uint ReadNetID();
  12324. Quaternion ReadPackedQuaternion();
  12325. Vector3 ReadPackedVector3(float);
  12326. Quaternion ReadQuaternion();
  12327. Rect ReadRect();
  12328. ResourceRef ReadResourceRef();
  12329. ResourceRefList ReadResourceRefList();
  12330. int16 ReadShort();
  12331. String ReadString();
  12332. StringHash ReadStringHash();
  12333. Array<String> ReadStringVector();
  12334. uint8 ReadUByte();
  12335. uint ReadUInt();
  12336. uint64 ReadUInt64();
  12337. uint16 ReadUShort();
  12338. uint ReadVLE();
  12339. Variant ReadVariant();
  12340. Variant ReadVariant(VariantType);
  12341. VariantMap ReadVariantMap();
  12342. Vector2 ReadVector2();
  12343. Vector3 ReadVector3();
  12344. Vector4 ReadVector4();
  12345. VectorBuffer ReadVectorBuffer(uint);
  12346. operator RefCounted() const;
  12347. int Refs() const;
  12348. bool Run();
  12349. uint Seek(uint);
  12350. uint SeekRelative(int);
  12351. void SetPriority(int);
  12352. void Stop();
  12353. const String& GetName() const;
  12354. const String& GetURL() const;
  12355. const String& GetVerb() const;
  12356. uint Tell() const;
  12357. void ThreadFunction();
  12358. int WeakRefs() const;
  12359. operator const Deserializer() const;
  12360. operator const RefCounted() const;
  12361. // Properties:
  12362. /* readonly */
  12363. uint availableSize;
  12364. /* readonly */
  12365. uint checksum;
  12366. /* readonly */
  12367. bool eof;
  12368. /* readonly */
  12369. String error;
  12370. /* readonly */
  12371. String name;
  12372. /* readonly */
  12373. bool open;
  12374. /* readonly */
  12375. uint position;
  12376. /* readonly */
  12377. int refs;
  12378. /* readonly */
  12379. uint size;
  12380. /* readonly */
  12381. HttpRequestState state;
  12382. /* readonly */
  12383. String url;
  12384. /* readonly */
  12385. String verb;
  12386. /* readonly */
  12387. int weakRefs;
  12388. };
  12389. class IKConstraint
  12390. {
  12391. public:
  12392. IKConstraint();
  12393. // Methods:
  12394. void AllocateNetworkState();
  12395. operator Animatable() const;
  12396. void ApplyAttributes();
  12397. void CleanupConnection(Connection);
  12398. operator Component() const;
  12399. void DrawDebugGeometry(DebugRenderer, bool);
  12400. bool GetAnimationEnabled() const;
  12401. Variant GetAttribute(const String&) const;
  12402. Variant GetAttribute(uint) const;
  12403. ValueAnimation GetAttributeAnimation(const String&) const;
  12404. float GetAttributeAnimationSpeed(const String&) const;
  12405. float GetAttributeAnimationTime(const String&) const;
  12406. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12407. Variant GetAttributeDefault(const String&) const;
  12408. Variant GetAttributeDefault(uint) const;
  12409. bool GetBlockEvents() const;
  12410. Component GetComponent(StringHash) const;
  12411. VariantMap& GetEventDataMap() const;
  12412. Object GetEventSender() const;
  12413. uint GetID() const;
  12414. bool GetInterceptNetworkUpdate(const String&) const;
  12415. Node GetNode() const;
  12416. uint GetNumAttributes() const;
  12417. uint GetNumNetworkAttributes() const;
  12418. ObjectAnimation GetObjectAnimation() const;
  12419. ResourceRef GetObjectAnimationAttr() const;
  12420. Scene GetScene() const;
  12421. float GetStiffness() const;
  12422. float GetStretchiness() const;
  12423. Object GetSubsystem(StringHash) const;
  12424. StringHash GetType() const;
  12425. bool HasEventHandlers() const;
  12426. bool HasSubscribedToEvent(Object, StringHash) const;
  12427. bool HasSubscribedToEvent(StringHash) const;
  12428. bool IsEnabled() const;
  12429. bool IsEnabledEffective() const;
  12430. bool IsInstanceOf(StringHash) const;
  12431. bool IsReplicated() const;
  12432. bool IsTemporary() const;
  12433. bool Load(Deserializer&);
  12434. bool LoadJSON(const JSONValue&);
  12435. bool LoadXML(const XMLElement&);
  12436. void MarkNetworkUpdate();
  12437. operator Object() const;
  12438. void OnEvent(Object, StringHash, VariantMap&);
  12439. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12440. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12441. void OnSetEnabled();
  12442. void PrepareNetworkUpdate();
  12443. bool ReadDeltaUpdate(Deserializer&);
  12444. bool ReadLatestDataUpdate(Deserializer&);
  12445. operator RefCounted() const;
  12446. int Refs() const;
  12447. void Remove();
  12448. void RemoveAttributeAnimation(const String&);
  12449. void RemoveInstanceDefault();
  12450. void RemoveObjectAnimation();
  12451. void ResetToDefault();
  12452. bool Save(Serializer&) const;
  12453. bool SaveDefaultAttributes() const;
  12454. bool SaveJSON(JSONValue&) const;
  12455. bool SaveXML(XMLElement&) const;
  12456. void SendEvent(StringHash);
  12457. void SendEvent(StringHash, VariantMap&);
  12458. operator Serializable() const;
  12459. void SetAnimationEnabled(bool);
  12460. void SetAnimationTime(float);
  12461. bool SetAttribute(const String&, const Variant&);
  12462. bool SetAttribute(uint, const Variant&);
  12463. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12464. void SetAttributeAnimationSpeed(const String&, float);
  12465. void SetAttributeAnimationTime(const String&, float);
  12466. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12467. void SetBlockEvents(bool);
  12468. void SetEnabled(bool);
  12469. void SetGlobalVar(StringHash, const Variant&);
  12470. void SetInstanceDefault(bool);
  12471. void SetInterceptNetworkUpdate(const String&, bool);
  12472. void SetLengthConstraints(const Vector2&);
  12473. void SetObjectAnimation(ObjectAnimation);
  12474. void SetObjectAnimationAttr(const ResourceRef&);
  12475. void SetStiffness(float);
  12476. void SetStretchiness(float);
  12477. void SetTemporary(bool);
  12478. const String& GetCategory() const;
  12479. const String& GetTypeName() const;
  12480. void UnsubscribeFromAllEvents();
  12481. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12482. void UnsubscribeFromEvent(Object, StringHash);
  12483. void UnsubscribeFromEvent(StringHash);
  12484. void UnsubscribeFromEvents(Object);
  12485. const Variant& GetGlobalVar(StringHash) const;
  12486. const VariantMap& GetGlobalVars() const;
  12487. const Vector2& GetLengthConstraints() const;
  12488. int WeakRefs() const;
  12489. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12490. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12491. void WriteLatestDataUpdate(Serializer&, uint8);
  12492. operator const Animatable() const;
  12493. operator const Component() const;
  12494. operator const Object() const;
  12495. operator const RefCounted() const;
  12496. operator const Serializable() const;
  12497. // Properties:
  12498. bool animationEnabled;
  12499. /* readonly */
  12500. Array<Variant> attributeDefaults;
  12501. /* readonly */
  12502. Array<AttributeInfo> attributeInfos;
  12503. Array<Variant> attributes;
  12504. /* readonly */
  12505. String category;
  12506. bool enabled;
  12507. /* readonly */
  12508. bool enabledEffective;
  12509. Array<Variant> globalVar;
  12510. /* readonly */
  12511. VariantMap globalVars;
  12512. /* readonly */
  12513. uint id;
  12514. /* readonly */
  12515. Node node;
  12516. /* readonly */
  12517. uint numAttributes;
  12518. ObjectAnimation objectAnimation;
  12519. /* readonly */
  12520. int refs;
  12521. /* readonly */
  12522. bool replicated;
  12523. bool temporary;
  12524. /* readonly */
  12525. StringHash type;
  12526. /* readonly */
  12527. String typeName;
  12528. /* readonly */
  12529. int weakRefs;
  12530. };
  12531. class IKEffector
  12532. {
  12533. public:
  12534. IKEffector();
  12535. // Methods:
  12536. void AllocateNetworkState();
  12537. operator Animatable() const;
  12538. void ApplyAttributes();
  12539. void CleanupConnection(Connection);
  12540. operator Component() const;
  12541. void DrawDebugGeometry(DebugRenderer, bool);
  12542. void DrawDebugGeometry(bool);
  12543. bool GetAnimationEnabled() const;
  12544. Variant GetAttribute(const String&) const;
  12545. Variant GetAttribute(uint) const;
  12546. ValueAnimation GetAttributeAnimation(const String&) const;
  12547. float GetAttributeAnimationSpeed(const String&) const;
  12548. float GetAttributeAnimationTime(const String&) const;
  12549. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12550. Variant GetAttributeDefault(const String&) const;
  12551. Variant GetAttributeDefault(uint) const;
  12552. bool GetBlockEvents() const;
  12553. uint GetChainLength() const;
  12554. Component GetComponent(StringHash) const;
  12555. VariantMap& GetEventDataMap() const;
  12556. Object GetEventSender() const;
  12557. uint GetID() const;
  12558. bool GetINHERIT_PARENT_ROTATION() const;
  12559. bool GetInterceptNetworkUpdate(const String&) const;
  12560. Node GetNode() const;
  12561. uint GetNumAttributes() const;
  12562. uint GetNumNetworkAttributes() const;
  12563. ObjectAnimation GetObjectAnimation() const;
  12564. ResourceRef GetObjectAnimationAttr() const;
  12565. float GetRotationDecay() const;
  12566. float GetRotationWeight() const;
  12567. Scene GetScene() const;
  12568. Object GetSubsystem(StringHash) const;
  12569. Node GetTargetNode() const;
  12570. Vector3 GetTargetRotationEuler() const;
  12571. StringHash GetType() const;
  12572. bool GetWEIGHT_NLERP() const;
  12573. float GetWeight() const;
  12574. bool HasEventHandlers() const;
  12575. bool HasSubscribedToEvent(Object, StringHash) const;
  12576. bool HasSubscribedToEvent(StringHash) const;
  12577. bool IsEnabled() const;
  12578. bool IsEnabledEffective() const;
  12579. bool IsInstanceOf(StringHash) const;
  12580. bool IsReplicated() const;
  12581. bool IsTemporary() const;
  12582. bool Load(Deserializer&);
  12583. bool LoadJSON(const JSONValue&);
  12584. bool LoadXML(const XMLElement&);
  12585. void MarkNetworkUpdate();
  12586. operator Object() const;
  12587. void OnEvent(Object, StringHash, VariantMap&);
  12588. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12589. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12590. void OnSetEnabled();
  12591. void PrepareNetworkUpdate();
  12592. const Quaternion& GetTargetRotation() const;
  12593. bool ReadDeltaUpdate(Deserializer&);
  12594. bool ReadLatestDataUpdate(Deserializer&);
  12595. operator RefCounted() const;
  12596. int Refs() const;
  12597. void Remove();
  12598. void RemoveAttributeAnimation(const String&);
  12599. void RemoveInstanceDefault();
  12600. void RemoveObjectAnimation();
  12601. void ResetToDefault();
  12602. bool Save(Serializer&) const;
  12603. bool SaveDefaultAttributes() const;
  12604. bool SaveJSON(JSONValue&) const;
  12605. bool SaveXML(XMLElement&) const;
  12606. void SendEvent(StringHash);
  12607. void SendEvent(StringHash, VariantMap&);
  12608. operator Serializable() const;
  12609. void SetAnimationEnabled(bool);
  12610. void SetAnimationTime(float);
  12611. bool SetAttribute(const String&, const Variant&);
  12612. bool SetAttribute(uint, const Variant&);
  12613. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12614. void SetAttributeAnimationSpeed(const String&, float);
  12615. void SetAttributeAnimationTime(const String&, float);
  12616. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12617. void SetBlockEvents(bool);
  12618. void SetChainLength(uint);
  12619. void SetEnabled(bool);
  12620. void SetGlobalVar(StringHash, const Variant&);
  12621. void SetINHERIT_PARENT_ROTATION(bool);
  12622. void SetInstanceDefault(bool);
  12623. void SetInterceptNetworkUpdate(const String&, bool);
  12624. void SetObjectAnimation(ObjectAnimation);
  12625. void SetObjectAnimationAttr(const ResourceRef&);
  12626. void SetRotationDecay(float);
  12627. void SetRotationWeight(float);
  12628. void SetTargetName(const String&);
  12629. void SetTargetNode(Node);
  12630. void SetTargetPosition(const Vector3&);
  12631. void SetTargetRotation(const Quaternion&);
  12632. void SetTargetRotationEuler(const Vector3&);
  12633. void SetTemporary(bool);
  12634. void SetWEIGHT_NLERP(bool);
  12635. void SetWeight(float);
  12636. const String& GetCategory() const;
  12637. const String& GetTargetName() const;
  12638. const String& GetTypeName() const;
  12639. void UnsubscribeFromAllEvents();
  12640. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12641. void UnsubscribeFromEvent(Object, StringHash);
  12642. void UnsubscribeFromEvent(StringHash);
  12643. void UnsubscribeFromEvents(Object);
  12644. const Variant& GetGlobalVar(StringHash) const;
  12645. const VariantMap& GetGlobalVars() const;
  12646. const Vector3& GetTargetPosition() const;
  12647. int WeakRefs() const;
  12648. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12649. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12650. void WriteLatestDataUpdate(Serializer&, uint8);
  12651. operator const Animatable() const;
  12652. operator const Component() const;
  12653. operator const Object() const;
  12654. operator const RefCounted() const;
  12655. operator const Serializable() const;
  12656. // Properties:
  12657. bool animationEnabled;
  12658. /* readonly */
  12659. Array<Variant> attributeDefaults;
  12660. /* readonly */
  12661. Array<AttributeInfo> attributeInfos;
  12662. Array<Variant> attributes;
  12663. /* readonly */
  12664. String category;
  12665. uint chainLength;
  12666. bool enabled;
  12667. /* readonly */
  12668. bool enabledEffective;
  12669. Array<Variant> globalVar;
  12670. /* readonly */
  12671. VariantMap globalVars;
  12672. /* readonly */
  12673. uint id;
  12674. /* readonly */
  12675. Node node;
  12676. /* readonly */
  12677. uint numAttributes;
  12678. ObjectAnimation objectAnimation;
  12679. /* readonly */
  12680. int refs;
  12681. /* readonly */
  12682. bool replicated;
  12683. float rotationDecay;
  12684. float rotationWeight;
  12685. String targetName;
  12686. Node targetNode;
  12687. Vector3 targetPosition;
  12688. Quaternion targetRotation;
  12689. bool temporary;
  12690. /* readonly */
  12691. StringHash type;
  12692. /* readonly */
  12693. String typeName;
  12694. /* readonly */
  12695. int weakRefs;
  12696. float weight;
  12697. };
  12698. class IKSolver
  12699. {
  12700. public:
  12701. IKSolver();
  12702. // Methods:
  12703. void AllocateNetworkState();
  12704. operator Animatable() const;
  12705. void ApplyActivePoseToScene();
  12706. void ApplyAttributes();
  12707. void ApplyOriginalPoseToActivePose();
  12708. void ApplyOriginalPoseToScene();
  12709. void ApplySceneToActivePose();
  12710. void ApplySceneToOriginalPose();
  12711. void CalculateJointRotations();
  12712. void CleanupConnection(Connection);
  12713. operator Component() const;
  12714. void DrawDebugGeometry(DebugRenderer, bool);
  12715. void DrawDebugGeometry(bool);
  12716. bool GetAUTO_SOLVE() const;
  12717. bool GetAnimationEnabled() const;
  12718. Variant GetAttribute(const String&) const;
  12719. Variant GetAttribute(uint) const;
  12720. ValueAnimation GetAttributeAnimation(const String&) const;
  12721. float GetAttributeAnimationSpeed(const String&) const;
  12722. float GetAttributeAnimationTime(const String&) const;
  12723. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12724. Variant GetAttributeDefault(const String&) const;
  12725. Variant GetAttributeDefault(uint) const;
  12726. bool GetBlockEvents() const;
  12727. bool GetCONSTRAINTS() const;
  12728. Component GetComponent(StringHash) const;
  12729. VariantMap& GetEventDataMap() const;
  12730. Object GetEventSender() const;
  12731. uint GetID() const;
  12732. bool GetInterceptNetworkUpdate(const String&) const;
  12733. bool GetJOINT_ROTATIONS() const;
  12734. uint GetMaximumIterations() const;
  12735. Node GetNode() const;
  12736. uint GetNumAttributes() const;
  12737. uint GetNumNetworkAttributes() const;
  12738. ObjectAnimation GetObjectAnimation() const;
  12739. ResourceRef GetObjectAnimationAttr() const;
  12740. Scene GetScene() const;
  12741. Object GetSubsystem(StringHash) const;
  12742. bool GetTARGET_ROTATIONS() const;
  12743. float GetTolerance() const;
  12744. StringHash GetType() const;
  12745. bool GetUPDATE_ACTIVE_POSE() const;
  12746. bool GetUPDATE_ORIGINAL_POSE() const;
  12747. bool GetUSE_ORIGINAL_POSE() const;
  12748. bool HasEventHandlers() const;
  12749. bool HasSubscribedToEvent(Object, StringHash) const;
  12750. bool HasSubscribedToEvent(StringHash) const;
  12751. bool IsEnabled() const;
  12752. bool IsEnabledEffective() const;
  12753. bool IsInstanceOf(StringHash) const;
  12754. bool IsReplicated() const;
  12755. bool IsTemporary() const;
  12756. bool Load(Deserializer&);
  12757. bool LoadJSON(const JSONValue&);
  12758. bool LoadXML(const XMLElement&);
  12759. void MarkNetworkUpdate();
  12760. operator Object() const;
  12761. void OnEvent(Object, StringHash, VariantMap&);
  12762. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12763. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12764. void OnSetEnabled();
  12765. void PrepareNetworkUpdate();
  12766. bool ReadDeltaUpdate(Deserializer&);
  12767. bool ReadLatestDataUpdate(Deserializer&);
  12768. void RebuildChainTrees();
  12769. void RecalculateSegmentLengths();
  12770. operator RefCounted() const;
  12771. int Refs() const;
  12772. void Remove();
  12773. void RemoveAttributeAnimation(const String&);
  12774. void RemoveInstanceDefault();
  12775. void RemoveObjectAnimation();
  12776. void ResetToDefault();
  12777. bool Save(Serializer&) const;
  12778. bool SaveDefaultAttributes() const;
  12779. bool SaveJSON(JSONValue&) const;
  12780. bool SaveXML(XMLElement&) const;
  12781. void SendEvent(StringHash);
  12782. void SendEvent(StringHash, VariantMap&);
  12783. operator Serializable() const;
  12784. void SetAUTO_SOLVE(bool);
  12785. void SetAnimationEnabled(bool);
  12786. void SetAnimationTime(float);
  12787. bool SetAttribute(const String&, const Variant&);
  12788. bool SetAttribute(uint, const Variant&);
  12789. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12790. void SetAttributeAnimationSpeed(const String&, float);
  12791. void SetAttributeAnimationTime(const String&, float);
  12792. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12793. void SetBlockEvents(bool);
  12794. void SetCONSTRAINTS(bool);
  12795. void SetEnabled(bool);
  12796. void SetGlobalVar(StringHash, const Variant&);
  12797. void SetInstanceDefault(bool);
  12798. void SetInterceptNetworkUpdate(const String&, bool);
  12799. void SetJOINT_ROTATIONS(bool);
  12800. void SetMaximumIterations(uint);
  12801. void SetObjectAnimation(ObjectAnimation);
  12802. void SetObjectAnimationAttr(const ResourceRef&);
  12803. void SetTARGET_ROTATIONS(bool);
  12804. void SetTemporary(bool);
  12805. void SetTolerance(float);
  12806. void SetUPDATE_ACTIVE_POSE(bool);
  12807. void SetUPDATE_ORIGINAL_POSE(bool);
  12808. void SetUSE_ORIGINAL_POSE(bool);
  12809. void Solve();
  12810. const String& GetCategory() const;
  12811. const String& GetTypeName() const;
  12812. void UnsubscribeFromAllEvents();
  12813. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12814. void UnsubscribeFromEvent(Object, StringHash);
  12815. void UnsubscribeFromEvent(StringHash);
  12816. void UnsubscribeFromEvents(Object);
  12817. const Variant& GetGlobalVar(StringHash) const;
  12818. const VariantMap& GetGlobalVars() const;
  12819. int WeakRefs() const;
  12820. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12821. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12822. void WriteLatestDataUpdate(Serializer&, uint8);
  12823. operator const Animatable() const;
  12824. operator const Component() const;
  12825. operator const Object() const;
  12826. operator const RefCounted() const;
  12827. operator const Serializable() const;
  12828. // Properties:
  12829. bool AUTO_SOLVE;
  12830. bool CONSTRAINTS;
  12831. bool JOINT_ROTATIONS;
  12832. bool TARGET_ROTATIONS;
  12833. bool UPDATE_ACTIVE_POSE;
  12834. bool UPDATE_ORIGINAL_POSE;
  12835. bool USE_ORIGINAL_POSE;
  12836. IKAlgorithm algorithm;
  12837. bool animationEnabled;
  12838. /* readonly */
  12839. Array<Variant> attributeDefaults;
  12840. /* readonly */
  12841. Array<AttributeInfo> attributeInfos;
  12842. Array<Variant> attributes;
  12843. /* readonly */
  12844. String category;
  12845. bool enabled;
  12846. /* readonly */
  12847. bool enabledEffective;
  12848. Array<Variant> globalVar;
  12849. /* readonly */
  12850. VariantMap globalVars;
  12851. /* readonly */
  12852. uint id;
  12853. uint maximumIterations;
  12854. /* readonly */
  12855. Node node;
  12856. /* readonly */
  12857. uint numAttributes;
  12858. ObjectAnimation objectAnimation;
  12859. /* readonly */
  12860. int refs;
  12861. /* readonly */
  12862. bool replicated;
  12863. bool temporary;
  12864. float tolerance;
  12865. /* readonly */
  12866. StringHash type;
  12867. /* readonly */
  12868. String typeName;
  12869. /* readonly */
  12870. int weakRefs;
  12871. };
  12872. class Image
  12873. {
  12874. public:
  12875. Image();
  12876. // Methods:
  12877. bool BeginLoad(Deserializer&);
  12878. void CleanupLevels();
  12879. void Clear(const Color&);
  12880. void ClearInt(uint);
  12881. Image ConvertToRGBA() const;
  12882. bool EndLoad();
  12883. bool FlipHorizontal();
  12884. bool FlipVertical();
  12885. AsyncLoadState GetAsyncLoadState() const;
  12886. bool GetBlockEvents() const;
  12887. uint GetComponents() const;
  12888. CompressedFormat GetCompressedFormat() const;
  12889. CompressedLevel GetCompressedLevel(uint) const;
  12890. Image GetDecompressedImage() const;
  12891. int GetDepth() const;
  12892. VariantMap& GetEventDataMap() const;
  12893. Object GetEventSender() const;
  12894. int GetHeight() const;
  12895. uint GetMemoryUse() const;
  12896. StringHash GetNameHash() const;
  12897. Image GetNextLevel() const;
  12898. Image GetNextSibling() const;
  12899. uint GetNumCompressedLevels() const;
  12900. Color GetPixel(int, int) const;
  12901. Color GetPixel(int, int, int) const;
  12902. Color GetPixelBilinear(float, float) const;
  12903. uint GetPixelInt(int, int) const;
  12904. uint GetPixelInt(int, int, int) const;
  12905. Color GetPixelTrilinear(float, float, float) const;
  12906. Image GetSubimage(const IntRect&) const;
  12907. Object GetSubsystem(StringHash) const;
  12908. StringHash GetType() const;
  12909. uint GetUseTimer();
  12910. int GetWidth() const;
  12911. bool HasAlphaChannel() const;
  12912. bool HasEventHandlers() const;
  12913. bool HasSubscribedToEvent(Object, StringHash) const;
  12914. bool HasSubscribedToEvent(StringHash) const;
  12915. bool IsArray() const;
  12916. bool IsCompressed() const;
  12917. bool IsCubemap() const;
  12918. bool IsInstanceOf(StringHash) const;
  12919. bool IsSRGB() const;
  12920. bool Load(Deserializer&);
  12921. bool Load(File);
  12922. bool Load(VectorBuffer&);
  12923. bool Load(const String&);
  12924. bool LoadColorLUT(Deserializer&);
  12925. bool LoadFile(const String&);
  12926. operator Object() const;
  12927. void OnEvent(Object, StringHash, VariantMap&);
  12928. void PrecalculateLevels();
  12929. operator RefCounted() const;
  12930. int Refs() const;
  12931. void ResetUseTimer();
  12932. bool Resize(int, int);
  12933. operator Resource() const;
  12934. bool Save(File) const;
  12935. bool Save(Serializer&) const;
  12936. bool Save(VectorBuffer&) const;
  12937. bool Save(const String&) const;
  12938. bool SaveBMP(const String&) const;
  12939. bool SaveDDS(const String&) const;
  12940. bool SaveFile(const String&) const;
  12941. bool SaveJPG(const String&, int) const;
  12942. bool SavePNG(const String&) const;
  12943. bool SaveTGA(const String&) const;
  12944. bool SaveWEBP(const String&, float = 0.0f) const;
  12945. void SendEvent(StringHash);
  12946. void SendEvent(StringHash, VariantMap&);
  12947. void SetAsyncLoadState(AsyncLoadState);
  12948. void SetBlockEvents(bool);
  12949. void SetGlobalVar(StringHash, const Variant&);
  12950. void SetMemoryUse(uint);
  12951. void SetName(const String&);
  12952. void SetPixel(int, int, const Color&);
  12953. void SetPixel(int, int, int, const Color&);
  12954. void SetPixelInt(int, int, int, uint);
  12955. void SetPixelInt(int, int, uint);
  12956. bool SetSize(int, int, int, uint);
  12957. bool SetSize(int, int, uint);
  12958. bool SetSubimage(Image, const IntRect&);
  12959. const String& GetCategory() const;
  12960. const String& GetName() const;
  12961. const String& GetTypeName() const;
  12962. void UnsubscribeFromAllEvents();
  12963. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12964. void UnsubscribeFromEvent(Object, StringHash);
  12965. void UnsubscribeFromEvent(StringHash);
  12966. void UnsubscribeFromEvents(Object);
  12967. const Variant& GetGlobalVar(StringHash) const;
  12968. const VariantMap& GetGlobalVars() const;
  12969. int WeakRefs() const;
  12970. operator const Object() const;
  12971. operator const RefCounted() const;
  12972. operator const Resource() const;
  12973. // Properties:
  12974. /* readonly */
  12975. bool array;
  12976. /* readonly */
  12977. String category;
  12978. /* readonly */
  12979. uint components;
  12980. /* readonly */
  12981. bool compressed;
  12982. /* readonly */
  12983. CompressedFormat compressedFormat;
  12984. /* readonly */
  12985. bool cubemap;
  12986. /* readonly */
  12987. int depth;
  12988. Array<Variant> globalVar;
  12989. /* readonly */
  12990. VariantMap globalVars;
  12991. /* readonly */
  12992. bool hasAlphaChannel;
  12993. /* readonly */
  12994. int height;
  12995. /* readonly */
  12996. uint memoryUse;
  12997. String name;
  12998. /* readonly */
  12999. uint numCompressedLevels;
  13000. /* readonly */
  13001. int refs;
  13002. /* readonly */
  13003. bool sRGB;
  13004. /* readonly */
  13005. StringHash type;
  13006. /* readonly */
  13007. String typeName;
  13008. /* readonly */
  13009. uint useTimer;
  13010. /* readonly */
  13011. int weakRefs;
  13012. /* readonly */
  13013. int width;
  13014. };
  13015. class IndexBuffer
  13016. {
  13017. public:
  13018. IndexBuffer(bool = false);
  13019. // Methods:
  13020. void ClearDataLost();
  13021. bool GetBlockEvents() const;
  13022. VectorBuffer GetData();
  13023. VariantMap& GetEventDataMap() const;
  13024. Object GetEventSender() const;
  13025. uint GetGPUObjectName() const;
  13026. Graphics GetGraphics() const;
  13027. uint GetIndexCount() const;
  13028. uint GetIndexSize() const;
  13029. Object GetSubsystem(StringHash) const;
  13030. StringHash GetType() const;
  13031. bool GetUsedVertexRange(uint, uint, uint&, uint&);
  13032. bool HasEventHandlers() const;
  13033. bool HasPendingData() const;
  13034. bool HasSubscribedToEvent(Object, StringHash) const;
  13035. bool HasSubscribedToEvent(StringHash) const;
  13036. bool IsDataLost() const;
  13037. bool IsDynamic() const;
  13038. bool IsInstanceOf(StringHash) const;
  13039. bool IsLocked() const;
  13040. bool IsShadowed() const;
  13041. operator Object() const;
  13042. void OnDeviceLost();
  13043. void OnDeviceReset();
  13044. void OnEvent(Object, StringHash, VariantMap&);
  13045. operator RefCounted() const;
  13046. int Refs() const;
  13047. void Release();
  13048. void SendEvent(StringHash);
  13049. void SendEvent(StringHash, VariantMap&);
  13050. void SetBlockEvents(bool);
  13051. bool SetData(VectorBuffer&);
  13052. bool SetDataRange(VectorBuffer&, uint, uint, bool discard = false);
  13053. void SetGlobalVar(StringHash, const Variant&);
  13054. void SetShadowed(bool);
  13055. bool SetSize(uint, bool, bool = false);
  13056. const String& GetCategory() const;
  13057. const String& GetTypeName() const;
  13058. void Unlock();
  13059. void UnsubscribeFromAllEvents();
  13060. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13061. void UnsubscribeFromEvent(Object, StringHash);
  13062. void UnsubscribeFromEvent(StringHash);
  13063. void UnsubscribeFromEvents(Object);
  13064. const Variant& GetGlobalVar(StringHash) const;
  13065. const VariantMap& GetGlobalVars() const;
  13066. int WeakRefs() const;
  13067. operator const Object() const;
  13068. operator const RefCounted() const;
  13069. // Properties:
  13070. /* readonly */
  13071. String category;
  13072. /* readonly */
  13073. bool dataLost;
  13074. /* readonly */
  13075. bool dynamic;
  13076. Array<Variant> globalVar;
  13077. /* readonly */
  13078. VariantMap globalVars;
  13079. /* readonly */
  13080. uint indexCount;
  13081. /* readonly */
  13082. uint indexSize;
  13083. /* readonly */
  13084. int refs;
  13085. bool shadowed;
  13086. /* readonly */
  13087. StringHash type;
  13088. /* readonly */
  13089. String typeName;
  13090. /* readonly */
  13091. int weakRefs;
  13092. };
  13093. class IndexBufferDesc
  13094. {
  13095. public:
  13096. ~IndexBufferDesc();
  13097. IndexBufferDesc();
  13098. // Methods:
  13099. IndexBufferDesc& operator=(const IndexBufferDesc&);
  13100. // Properties:
  13101. uint dataSize;
  13102. uint indexCount;
  13103. uint indexSize;
  13104. };
  13105. class Input
  13106. {
  13107. public:
  13108. Input();
  13109. // Methods:
  13110. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  13111. void CenterMousePosition();
  13112. bool GetBlockEvents() const;
  13113. VariantMap& GetEventDataMap() const;
  13114. Object GetEventSender() const;
  13115. Vector2 GetInputScale() const;
  13116. JoystickState GetJoystick(int);
  13117. JoystickState GetJoystickByIndex(uint);
  13118. JoystickState GetJoystickByName(const String&);
  13119. bool GetKeyDown(uint) const;
  13120. uint GetKeyFromName(const String&) const;
  13121. uint GetKeyFromScancode(uint) const;
  13122. String GetKeyName(uint) const;
  13123. bool GetKeyPress(uint) const;
  13124. bool GetMouseButtonDown(uint) const;
  13125. bool GetMouseButtonPress(uint) const;
  13126. MouseMode GetMouseMode() const;
  13127. IntVector2 GetMouseMove() const;
  13128. int GetMouseMoveWheel() const;
  13129. int GetMouseMoveX() const;
  13130. int GetMouseMoveY() const;
  13131. IntVector2 GetMousePosition() const;
  13132. uint GetNumJoysticks() const;
  13133. uint GetNumTouches() const;
  13134. bool GetQualifierDown(uint) const;
  13135. bool GetQualifierPress(uint) const;
  13136. uint GetQualifiers() const;
  13137. bool GetScancodeDown(uint) const;
  13138. uint GetScancodeFromKey(uint) const;
  13139. uint GetScancodeFromName(const String&) const;
  13140. String GetScancodeName(uint) const;
  13141. bool GetScancodePress(uint) const;
  13142. bool GetScreenKeyboardSupport() const;
  13143. Object GetSubsystem(StringHash) const;
  13144. bool GetToggleFullscreen() const;
  13145. TouchState GetTouch(uint) const;
  13146. bool GetTouchEmulation() const;
  13147. StringHash GetType() const;
  13148. bool HasEventHandlers() const;
  13149. bool HasFocus();
  13150. bool HasSubscribedToEvent(Object, StringHash) const;
  13151. bool HasSubscribedToEvent(StringHash) const;
  13152. bool IsInstanceOf(StringHash) const;
  13153. bool IsMinimized() const;
  13154. bool IsMouseGrabbed() const;
  13155. bool IsMouseLocked() const;
  13156. bool IsMouseVisible() const;
  13157. bool IsScreenJoystickVisible(int) const;
  13158. bool IsScreenKeyboardVisible() const;
  13159. uint LoadGestures(Deserializer&);
  13160. uint LoadGestures(File);
  13161. uint LoadGestures(VectorBuffer&);
  13162. operator Object() const;
  13163. void OnEvent(Object, StringHash, VariantMap&);
  13164. bool RecordGesture();
  13165. operator RefCounted() const;
  13166. int Refs() const;
  13167. void RemoveAllGestures();
  13168. bool RemoveGesture(uint);
  13169. bool RemoveScreenJoystick(int);
  13170. void ResetMouseGrabbed();
  13171. void ResetMouseMode();
  13172. void ResetMouseVisible();
  13173. bool SaveGesture(File, uint);
  13174. bool SaveGesture(Serializer&, uint);
  13175. bool SaveGesture(VectorBuffer&, uint);
  13176. bool SaveGestures(File);
  13177. bool SaveGestures(Serializer&);
  13178. bool SaveGestures(VectorBuffer&);
  13179. void SendEvent(StringHash);
  13180. void SendEvent(StringHash, VariantMap&);
  13181. void SetBlockEvents(bool);
  13182. void SetGlobalVar(StringHash, const Variant&);
  13183. void SetMouseGrabbed(bool, bool = false);
  13184. void SetMouseMode(MouseMode, bool = false);
  13185. void SetMousePosition(const IntVector2&);
  13186. void SetMouseVisible(bool, bool = false);
  13187. void SetScreenJoystickVisible(int, bool);
  13188. void SetScreenKeyboardVisible(bool);
  13189. void SetToggleFullscreen(bool);
  13190. void SetTouchEmulation(bool);
  13191. const String& GetCategory() const;
  13192. const String& GetTypeName() const;
  13193. void UnsubscribeFromAllEvents();
  13194. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13195. void UnsubscribeFromEvent(Object, StringHash);
  13196. void UnsubscribeFromEvent(StringHash);
  13197. void UnsubscribeFromEvents(Object);
  13198. void Update();
  13199. const Variant& GetGlobalVar(StringHash) const;
  13200. const VariantMap& GetGlobalVars() const;
  13201. int WeakRefs() const;
  13202. operator const Object() const;
  13203. operator const RefCounted() const;
  13204. // Properties:
  13205. /* readonly */
  13206. String category;
  13207. /* readonly */
  13208. bool focus;
  13209. Array<Variant> globalVar;
  13210. /* readonly */
  13211. VariantMap globalVars;
  13212. /* readonly */
  13213. Vector2 inputScale;
  13214. /* readonly */
  13215. Array<JoystickState> joysticks;
  13216. /* readonly */
  13217. Array<JoystickState> joysticksByIndex;
  13218. /* readonly */
  13219. Array<JoystickState> joysticksByName;
  13220. /* readonly */
  13221. Array<bool> keyDown;
  13222. /* readonly */
  13223. Array<bool> keyPress;
  13224. /* readonly */
  13225. bool minimized;
  13226. /* readonly */
  13227. Array<bool> mouseButtonDown;
  13228. /* readonly */
  13229. Array<bool> mouseButtonPress;
  13230. bool mouseGrabbed;
  13231. /* readonly */
  13232. bool mouseLocked;
  13233. MouseMode mouseMode;
  13234. /* readonly */
  13235. IntVector2 mouseMove;
  13236. /* readonly */
  13237. int mouseMoveWheel;
  13238. /* readonly */
  13239. int mouseMoveX;
  13240. /* readonly */
  13241. int mouseMoveY;
  13242. IntVector2 mousePosition;
  13243. bool mouseVisible;
  13244. /* readonly */
  13245. uint numJoysticks;
  13246. /* readonly */
  13247. uint numTouches;
  13248. /* readonly */
  13249. Array<bool> qualifierDown;
  13250. /* readonly */
  13251. Array<bool> qualifierPress;
  13252. /* readonly */
  13253. uint qualifiers;
  13254. /* readonly */
  13255. int refs;
  13256. /* readonly */
  13257. Array<bool> scancodeDown;
  13258. /* readonly */
  13259. Array<bool> scancodePress;
  13260. Array<bool> screenJoystickVisible;
  13261. /* readonly */
  13262. bool screenKeyboardSupport;
  13263. bool screenKeyboardVisible;
  13264. bool toggleFullscreen;
  13265. bool touchEmulation;
  13266. /* readonly */
  13267. Array<TouchState> touches;
  13268. /* readonly */
  13269. StringHash type;
  13270. /* readonly */
  13271. String typeName;
  13272. /* readonly */
  13273. int weakRefs;
  13274. };
  13275. class InstanceData
  13276. {
  13277. public:
  13278. ~InstanceData();
  13279. InstanceData();
  13280. // Methods:
  13281. InstanceData& operator=(const InstanceData&);
  13282. // Properties:
  13283. float distance;
  13284. };
  13285. class IntRect
  13286. {
  13287. public:
  13288. IntRect();
  13289. IntRect(const IntVector2&in, const IntVector2&in);
  13290. IntRect(int, int, int, int);
  13291. IntRect(int[]&inout);
  13292. // Methods:
  13293. IntRect operator+(const IntRect&) const;
  13294. IntRect& operator+=(const IntRect&);
  13295. IntRect& operator=(const IntRect&);
  13296. bool operator==(const IntRect&) const;
  13297. int Bottom() const;
  13298. void Clip(const IntRect&);
  13299. int Height() const;
  13300. Intersection IsInside(const IntRect&) const;
  13301. Intersection IsInside(const IntVector2&) const;
  13302. int Left() const;
  13303. IntVector2 Max() const;
  13304. void Merge(const IntRect&);
  13305. IntVector2 Min() const;
  13306. int Right() const;
  13307. IntVector2 Size() const;
  13308. String ToString() const;
  13309. int Top() const;
  13310. int Width() const;
  13311. // Properties:
  13312. int bottom;
  13313. /* readonly */
  13314. Array<int> data;
  13315. /* readonly */
  13316. int height;
  13317. int left;
  13318. int right;
  13319. /* readonly */
  13320. IntVector2 size;
  13321. int top;
  13322. /* readonly */
  13323. int width;
  13324. // Constants:
  13325. static const IntRect ZERO;
  13326. };
  13327. class IntVector2
  13328. {
  13329. public:
  13330. IntVector2();
  13331. IntVector2(int, int);
  13332. IntVector2(const IntVector2&in);
  13333. IntVector2(int[]&inout);
  13334. // Methods:
  13335. IntVector2 operator+(const IntVector2&) const;
  13336. IntVector2& operator+=(const IntVector2&);
  13337. IntVector2& operator=(const IntVector2&);
  13338. bool operator==(const IntVector2&) const;
  13339. float Length() const;
  13340. uint ToHash() const;
  13341. String ToString() const;
  13342. // Properties:
  13343. /* readonly */
  13344. Array<int> data;
  13345. int x;
  13346. int y;
  13347. // Constants:
  13348. static const IntVector2 DOWN;
  13349. static const IntVector2 LEFT;
  13350. static const IntVector2 ONE;
  13351. static const IntVector2 RIGHT;
  13352. static const IntVector2 UP;
  13353. static const IntVector2 ZERO;
  13354. };
  13355. class IntVector3
  13356. {
  13357. public:
  13358. IntVector3();
  13359. IntVector3(int, int, int);
  13360. IntVector3(const IntVector3&in);
  13361. IntVector3(int[]&inout);
  13362. // Methods:
  13363. IntVector3 operator+(const IntVector3&) const;
  13364. IntVector3& operator+=(const IntVector3&);
  13365. IntVector3& operator=(const IntVector3&);
  13366. bool operator==(const IntVector3&) const;
  13367. float Length() const;
  13368. uint ToHash() const;
  13369. String ToString() const;
  13370. // Properties:
  13371. /* readonly */
  13372. Array<int> data;
  13373. int x;
  13374. int y;
  13375. int z;
  13376. // Constants:
  13377. static const IntVector3 BACK;
  13378. static const IntVector3 DOWN;
  13379. static const IntVector3 FORWARD;
  13380. static const IntVector3 LEFT;
  13381. static const IntVector3 ONE;
  13382. static const IntVector3 RIGHT;
  13383. static const IntVector3 UP;
  13384. static const IntVector3 ZERO;
  13385. };
  13386. class JSONFile
  13387. {
  13388. public:
  13389. JSONFile();
  13390. // Methods:
  13391. bool BeginLoad(Deserializer&);
  13392. bool EndLoad();
  13393. bool FromString(const String&);
  13394. AsyncLoadState GetAsyncLoadState() const;
  13395. bool GetBlockEvents() const;
  13396. VariantMap& GetEventDataMap() const;
  13397. Object GetEventSender() const;
  13398. uint GetMemoryUse() const;
  13399. StringHash GetNameHash() const;
  13400. JSONValue& GetRoot();
  13401. Object GetSubsystem(StringHash) const;
  13402. StringHash GetType() const;
  13403. uint GetUseTimer();
  13404. bool HasEventHandlers() const;
  13405. bool HasSubscribedToEvent(Object, StringHash) const;
  13406. bool HasSubscribedToEvent(StringHash) const;
  13407. bool IsInstanceOf(StringHash) const;
  13408. const JSONValue& GetRoot() const;
  13409. bool Load(Deserializer&);
  13410. bool Load(File);
  13411. bool Load(VectorBuffer&);
  13412. bool Load(const String&);
  13413. bool LoadFile(const String&);
  13414. operator Object() const;
  13415. void OnEvent(Object, StringHash, VariantMap&);
  13416. operator RefCounted() const;
  13417. int Refs() const;
  13418. void ResetUseTimer();
  13419. operator Resource() const;
  13420. bool Save(File) const;
  13421. bool Save(Serializer&) const;
  13422. bool Save(Serializer&, const String&) const;
  13423. bool Save(VectorBuffer&) const;
  13424. bool Save(const String&) const;
  13425. bool SaveFile(const String&) const;
  13426. void SendEvent(StringHash);
  13427. void SendEvent(StringHash, VariantMap&);
  13428. void SetAsyncLoadState(AsyncLoadState);
  13429. void SetBlockEvents(bool);
  13430. void SetGlobalVar(StringHash, const Variant&);
  13431. void SetMemoryUse(uint);
  13432. void SetName(const String&);
  13433. const String& GetCategory() const;
  13434. const String& GetName() const;
  13435. const String& GetTypeName() const;
  13436. String ToString(const String& = "\t") const;
  13437. void UnsubscribeFromAllEvents();
  13438. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13439. void UnsubscribeFromEvent(Object, StringHash);
  13440. void UnsubscribeFromEvent(StringHash);
  13441. void UnsubscribeFromEvents(Object);
  13442. const Variant& GetGlobalVar(StringHash) const;
  13443. const VariantMap& GetGlobalVars() const;
  13444. int WeakRefs() const;
  13445. operator const Object() const;
  13446. operator const RefCounted() const;
  13447. operator const Resource() const;
  13448. // Properties:
  13449. /* readonly */
  13450. String category;
  13451. Array<Variant> globalVar;
  13452. /* readonly */
  13453. VariantMap globalVars;
  13454. /* readonly */
  13455. uint memoryUse;
  13456. String name;
  13457. /* readonly */
  13458. int refs;
  13459. /* readonly */
  13460. JSONValue root;
  13461. /* readonly */
  13462. StringHash type;
  13463. /* readonly */
  13464. String typeName;
  13465. /* readonly */
  13466. uint useTimer;
  13467. /* readonly */
  13468. int weakRefs;
  13469. };
  13470. class JSONValue
  13471. {
  13472. public:
  13473. ~JSONValue();
  13474. JSONValue();
  13475. JSONValue(bool);
  13476. JSONValue(int);
  13477. JSONValue(uint);
  13478. JSONValue(float);
  13479. JSONValue(double);
  13480. JSONValue(const String&in);
  13481. JSONValue(const JSONValue&in);
  13482. // Methods:
  13483. JSONValue& operator=(bool);
  13484. JSONValue& operator=(const JSONValue&);
  13485. JSONValue& operator=(const String&);
  13486. JSONValue& operator=(double);
  13487. JSONValue& operator=(float);
  13488. JSONValue& operator=(int);
  13489. JSONValue& operator=(uint);
  13490. JSONValue& operator[](const String&);
  13491. JSONValue& operator[](uint);
  13492. void Clear();
  13493. bool Contains(const String&) const;
  13494. bool Erase(const String&);
  13495. void Erase(uint, uint = 1);
  13496. bool GetBool(bool = false) const;
  13497. double GetDouble(double = 0.0) const;
  13498. float GetFloat(float = 0.0f) const;
  13499. int GetInt(int = 0) const;
  13500. JSONNumberType GetNumberType() const;
  13501. String GetNumberTypeName() const;
  13502. uint GetUInt(uint = 0) const;
  13503. JSONValueType GetValueType() const;
  13504. String GetValueTypeName() const;
  13505. Variant GetVariant() const;
  13506. VariantMap GetVariantMap() const;
  13507. Variant GetVariantValue(VariantType) const;
  13508. void Insert(uint, const JSONValue&);
  13509. bool IsArray() const;
  13510. bool IsBool() const;
  13511. bool IsNull() const;
  13512. bool IsNumber() const;
  13513. bool IsObject() const;
  13514. bool IsString() const;
  13515. const JSONValue& operator[](const String&) const;
  13516. const JSONValue& operator[](uint) const;
  13517. const JSONValue& Get(const String&) const;
  13518. void Pop();
  13519. void Push(const JSONValue&);
  13520. void Resize(uint);
  13521. void Set(const String&, const JSONValue&);
  13522. void SetType(JSONValueType, JSONNumberType = JSONNT_NAN);
  13523. void SetVariant(const Variant&);
  13524. void SetVariantMap(const VariantMap&);
  13525. void SetVariantValue(const Variant&);
  13526. uint Size() const;
  13527. const String& GetString(const String& = String :: EMPTY) const;
  13528. // Properties:
  13529. /* readonly */
  13530. bool isArray;
  13531. /* readonly */
  13532. bool isBool;
  13533. /* readonly */
  13534. bool isNull;
  13535. /* readonly */
  13536. bool isNumber;
  13537. /* readonly */
  13538. bool isObject;
  13539. /* readonly */
  13540. bool isString;
  13541. /* readonly */
  13542. Array<String> keys;
  13543. /* readonly */
  13544. JSONNumberType numberType;
  13545. /* readonly */
  13546. String numberTypeName;
  13547. /* readonly */
  13548. uint size;
  13549. /* readonly */
  13550. JSONValueType valueType;
  13551. /* readonly */
  13552. String valueTypeName;
  13553. /* readonly */
  13554. Array<JSONValue> values;
  13555. // Constants:
  13556. static const JSONValue EMPTY;
  13557. };
  13558. class JoystickState
  13559. {
  13560. public:
  13561. // Methods:
  13562. JoystickState& operator=(const JoystickState&);
  13563. float GetAxisPosition(uint) const;
  13564. bool GetButtonDown(uint) const;
  13565. bool GetButtonPress(uint) const;
  13566. int GetHatPosition(uint) const;
  13567. uint GetNumAxes() const;
  13568. uint GetNumButtons() const;
  13569. uint GetNumHats() const;
  13570. void Initialize(uint, uint, uint);
  13571. bool IsController() const;
  13572. void Reset();
  13573. // Properties:
  13574. /* readonly */
  13575. Array<float> axisPosition;
  13576. /* readonly */
  13577. Array<bool> buttonDown;
  13578. /* readonly */
  13579. Array<bool> buttonPress;
  13580. /* readonly */
  13581. bool controller;
  13582. /* readonly */
  13583. Array<int> hatPosition;
  13584. int joystickID;
  13585. String name;
  13586. /* readonly */
  13587. uint numAxes;
  13588. /* readonly */
  13589. uint numButtons;
  13590. /* readonly */
  13591. uint numHats;
  13592. };
  13593. class Light
  13594. {
  13595. public:
  13596. Light();
  13597. // Methods:
  13598. void AddLight(Light);
  13599. void AddVertexLight(Light);
  13600. void AllocateNetworkState();
  13601. operator Animatable() const;
  13602. void ApplyAttributes();
  13603. const BiasParameters& GetShadowBias() const;
  13604. const BoundingBox& GetBoundingBox() const;
  13605. const BoundingBox& GetWorldBoundingBox();
  13606. const CascadeParameters& GetShadowCascade() const;
  13607. void CleanupConnection(Connection);
  13608. const Color& GetColor() const;
  13609. operator Component() const;
  13610. void DrawDebugGeometry(DebugRenderer, bool);
  13611. bool DrawOcclusion(OcclusionBuffer);
  13612. operator Drawable() const;
  13613. const FocusParameters& GetShadowFocus() const;
  13614. bool GetAnimationEnabled() const;
  13615. float GetAspectRatio() const;
  13616. Variant GetAttribute(const String&) const;
  13617. Variant GetAttribute(uint) const;
  13618. ValueAnimation GetAttributeAnimation(const String&) const;
  13619. float GetAttributeAnimationSpeed(const String&) const;
  13620. float GetAttributeAnimationTime(const String&) const;
  13621. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13622. Variant GetAttributeDefault(const String&) const;
  13623. Variant GetAttributeDefault(uint) const;
  13624. bool GetBlockEvents() const;
  13625. float GetBrightness() const;
  13626. bool GetCastShadows() const;
  13627. Color GetColorFromTemperature() const;
  13628. Component GetComponent(StringHash) const;
  13629. float GetDistance() const;
  13630. float GetDrawDistance() const;
  13631. uint8 GetDrawableFlags() const;
  13632. Color GetEffectiveColor() const;
  13633. float GetEffectiveSpecularIntensity() const;
  13634. VariantMap& GetEventDataMap() const;
  13635. Object GetEventSender() const;
  13636. float GetFadeDistance() const;
  13637. Light GetFirstLight() const;
  13638. float GetFov() const;
  13639. Frustum GetFrustum() const;
  13640. uint GetID() const;
  13641. float GetIntensityDivisor(float = 1.0f) const;
  13642. bool GetInterceptNetworkUpdate(const String&) const;
  13643. float GetLength() const;
  13644. uint GetLightMask() const;
  13645. LightType GetLightType() const;
  13646. Array<Light> GetLights() const;
  13647. float GetLodBias() const;
  13648. float GetLodDistance() const;
  13649. Geometry GetLodGeometry(uint, uint);
  13650. uint GetMaxLights() const;
  13651. float GetMaxZ() const;
  13652. float GetMinZ() const;
  13653. Node GetNode() const;
  13654. uint GetNumAttributes() const;
  13655. uint GetNumNetworkAttributes() const;
  13656. uint GetNumOccluderTriangles();
  13657. int GetNumShadowSplits() const;
  13658. ObjectAnimation GetObjectAnimation() const;
  13659. ResourceRef GetObjectAnimationAttr() const;
  13660. bool GetPerVertex() const;
  13661. float GetRadius() const;
  13662. Texture GetRampTexture() const;
  13663. ResourceRef GetRampTextureAttr() const;
  13664. float GetRange() const;
  13665. Scene GetScene() const;
  13666. float GetShadowDistance() const;
  13667. float GetShadowFadeDistance() const;
  13668. float GetShadowIntensity() const;
  13669. uint GetShadowMask() const;
  13670. float GetShadowMaxExtrusion() const;
  13671. float GetShadowNearFarRatio() const;
  13672. float GetShadowResolution() const;
  13673. Texture GetShapeTexture() const;
  13674. ResourceRef GetShapeTextureAttr() const;
  13675. float GetSortValue() const;
  13676. float GetSpecularIntensity() const;
  13677. Object GetSubsystem(StringHash) const;
  13678. float GetTemperature() const;
  13679. StringHash GetType() const;
  13680. UpdateGeometryType GetUpdateGeometryType();
  13681. bool GetUsePhysicalValues() const;
  13682. Array<Light> GetVertexLights() const;
  13683. uint GetViewMask() const;
  13684. Frustum GetViewSpaceFrustum(const Matrix3x4&) const;
  13685. Zone GetZone() const;
  13686. uint GetZoneMask() const;
  13687. bool HasBasePass(uint) const;
  13688. bool HasEventHandlers() const;
  13689. bool HasSubscribedToEvent(Object, StringHash) const;
  13690. bool HasSubscribedToEvent(StringHash) const;
  13691. bool IsEnabled() const;
  13692. bool IsEnabledEffective() const;
  13693. bool IsInView() const;
  13694. bool IsInView(Camera) const;
  13695. bool IsInView(const FrameInfo&, bool = false) const;
  13696. bool IsInstanceOf(StringHash) const;
  13697. bool IsNegative() const;
  13698. bool IsOccludee() const;
  13699. bool IsOccluder() const;
  13700. bool IsReplicated() const;
  13701. bool IsTemporary() const;
  13702. bool IsZoneDirty() const;
  13703. void LimitLights();
  13704. void LimitVertexLights(bool);
  13705. bool Load(Deserializer&);
  13706. bool LoadJSON(const JSONValue&);
  13707. bool LoadXML(const XMLElement&);
  13708. void MarkForUpdate();
  13709. void MarkInView(const FrameInfo&);
  13710. void MarkInView(uint);
  13711. void MarkNetworkUpdate();
  13712. const Matrix3x4& GetVolumeTransform(Camera);
  13713. operator Object() const;
  13714. void OnEvent(Object, StringHash, VariantMap&);
  13715. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  13716. void OnSetAttribute(const AttributeInfo&, const Variant&);
  13717. void OnSetEnabled();
  13718. void PrepareNetworkUpdate();
  13719. bool ReadDeltaUpdate(Deserializer&);
  13720. bool ReadLatestDataUpdate(Deserializer&);
  13721. operator RefCounted() const;
  13722. int Refs() const;
  13723. void Remove();
  13724. void RemoveAttributeAnimation(const String&);
  13725. void RemoveInstanceDefault();
  13726. void RemoveObjectAnimation();
  13727. void ResetToDefault();
  13728. bool Save(Serializer&) const;
  13729. bool SaveDefaultAttributes() const;
  13730. bool SaveJSON(JSONValue&) const;
  13731. bool SaveXML(XMLElement&) const;
  13732. void SendEvent(StringHash);
  13733. void SendEvent(StringHash, VariantMap&);
  13734. operator Serializable() const;
  13735. void SetAnimationEnabled(bool);
  13736. void SetAnimationTime(float);
  13737. void SetAspectRatio(float);
  13738. bool SetAttribute(const String&, const Variant&);
  13739. bool SetAttribute(uint, const Variant&);
  13740. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13741. void SetAttributeAnimationSpeed(const String&, float);
  13742. void SetAttributeAnimationTime(const String&, float);
  13743. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13744. void SetBasePass(uint);
  13745. void SetBlockEvents(bool);
  13746. void SetBrightness(float);
  13747. void SetCastShadows(bool);
  13748. void SetColor(const Color&);
  13749. void SetDrawDistance(float);
  13750. void SetEnabled(bool);
  13751. void SetFadeDistance(float);
  13752. void SetFov(float);
  13753. void SetGlobalVar(StringHash, const Variant&);
  13754. void SetInstanceDefault(bool);
  13755. void SetIntensitySortValue(const BoundingBox&);
  13756. void SetIntensitySortValue(float);
  13757. void SetInterceptNetworkUpdate(const String&, bool);
  13758. void SetLength(float);
  13759. void SetLightMask(uint);
  13760. void SetLightType(LightType);
  13761. void SetLodBias(float);
  13762. void SetMaxLights(uint);
  13763. void SetMinMaxZ(float, float);
  13764. void SetObjectAnimation(ObjectAnimation);
  13765. void SetObjectAnimationAttr(const ResourceRef&);
  13766. void SetOccludee(bool);
  13767. void SetOccluder(bool);
  13768. void SetPerVertex(bool);
  13769. void SetRadius(float);
  13770. void SetRampTexture(Texture);
  13771. void SetRampTextureAttr(const ResourceRef&);
  13772. void SetRange(float);
  13773. void SetShadowBias(const BiasParameters&);
  13774. void SetShadowCascade(const CascadeParameters&);
  13775. void SetShadowDistance(float);
  13776. void SetShadowFadeDistance(float);
  13777. void SetShadowFocus(const FocusParameters&);
  13778. void SetShadowIntensity(float);
  13779. void SetShadowMask(uint);
  13780. void SetShadowMaxExtrusion(float);
  13781. void SetShadowNearFarRatio(float);
  13782. void SetShadowResolution(float);
  13783. void SetShapeTexture(Texture);
  13784. void SetShapeTextureAttr(const ResourceRef&);
  13785. void SetSortValue(float);
  13786. void SetSpecularIntensity(float);
  13787. void SetTemperature(float);
  13788. void SetTemporary(bool);
  13789. void SetUsePhysicalValues(bool);
  13790. void SetViewMask(uint);
  13791. void SetZone(Zone, bool = false);
  13792. void SetZoneMask(uint);
  13793. const String& GetCategory() const;
  13794. const String& GetTypeName() const;
  13795. void UnsubscribeFromAllEvents();
  13796. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13797. void UnsubscribeFromEvent(Object, StringHash);
  13798. void UnsubscribeFromEvent(StringHash);
  13799. void UnsubscribeFromEvents(Object);
  13800. void Update(const FrameInfo&);
  13801. void UpdateBatches(const FrameInfo&);
  13802. void UpdateGeometry(const FrameInfo&);
  13803. const Variant& GetGlobalVar(StringHash) const;
  13804. const VariantMap& GetGlobalVars() const;
  13805. int WeakRefs() const;
  13806. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  13807. void WriteInitialDeltaUpdate(Serializer&, uint8);
  13808. void WriteLatestDataUpdate(Serializer&, uint8);
  13809. operator const Animatable() const;
  13810. operator const Component() const;
  13811. operator const Drawable() const;
  13812. operator const Object() const;
  13813. operator const RefCounted() const;
  13814. operator const Serializable() const;
  13815. // Properties:
  13816. bool animationEnabled;
  13817. float aspectRatio;
  13818. /* readonly */
  13819. Array<Variant> attributeDefaults;
  13820. /* readonly */
  13821. Array<AttributeInfo> attributeInfos;
  13822. Array<Variant> attributes;
  13823. /* readonly */
  13824. BoundingBox boundingBox;
  13825. float brightness;
  13826. bool castShadows;
  13827. /* readonly */
  13828. String category;
  13829. Color color;
  13830. /* readonly */
  13831. Color colorFromTemperature;
  13832. float drawDistance;
  13833. /* readonly */
  13834. Color effectiveColor;
  13835. /* readonly */
  13836. float effectiveSpecularIntensity;
  13837. bool enabled;
  13838. /* readonly */
  13839. bool enabledEffective;
  13840. float fadeDistance;
  13841. float fov;
  13842. /* readonly */
  13843. Frustum frustum;
  13844. Array<Variant> globalVar;
  13845. /* readonly */
  13846. VariantMap globalVars;
  13847. /* readonly */
  13848. uint id;
  13849. /* readonly */
  13850. bool inView;
  13851. float length;
  13852. uint lightMask;
  13853. LightType lightType;
  13854. float lodBias;
  13855. uint maxLights;
  13856. /* readonly */
  13857. bool negative;
  13858. /* readonly */
  13859. Node node;
  13860. /* readonly */
  13861. uint numAttributes;
  13862. /* readonly */
  13863. int numShadowSplits;
  13864. ObjectAnimation objectAnimation;
  13865. bool occludee;
  13866. bool occluder;
  13867. bool perVertex;
  13868. float radius;
  13869. Texture rampTexture;
  13870. float range;
  13871. /* readonly */
  13872. int refs;
  13873. /* readonly */
  13874. bool replicated;
  13875. BiasParameters shadowBias;
  13876. CascadeParameters shadowCascade;
  13877. float shadowDistance;
  13878. float shadowFadeDistance;
  13879. FocusParameters shadowFocus;
  13880. float shadowIntensity;
  13881. uint shadowMask;
  13882. float shadowMaxExtrusion;
  13883. float shadowNearFarRatio;
  13884. float shadowResolution;
  13885. Texture shapeTexture;
  13886. float specularIntensity;
  13887. float temperature;
  13888. bool temporary;
  13889. /* readonly */
  13890. StringHash type;
  13891. /* readonly */
  13892. String typeName;
  13893. bool usePhysicalValues;
  13894. uint viewMask;
  13895. /* readonly */
  13896. int weakRefs;
  13897. /* readonly */
  13898. BoundingBox worldBoundingBox;
  13899. /* readonly */
  13900. Zone zone;
  13901. uint zoneMask;
  13902. };
  13903. class LightBatchQueue
  13904. {
  13905. public:
  13906. ~LightBatchQueue();
  13907. LightBatchQueue();
  13908. // Methods:
  13909. LightBatchQueue& operator=(const LightBatchQueue&);
  13910. // Properties:
  13911. BatchQueue litBaseBatches;
  13912. BatchQueue litBatches;
  13913. bool negative;
  13914. };
  13915. class LightQueryResult
  13916. {
  13917. public:
  13918. ~LightQueryResult();
  13919. LightQueryResult();
  13920. // Methods:
  13921. LightQueryResult& operator=(const LightQueryResult&);
  13922. // Properties:
  13923. uint numSplits;
  13924. };
  13925. class LineEdit
  13926. {
  13927. public:
  13928. LineEdit();
  13929. // Methods:
  13930. void AddChild(UIElement);
  13931. void AddTag(const String&);
  13932. void AddTags(Array<String>);
  13933. void AddTags(const String&, int8 = ';');
  13934. void AdjustScissor(IntRect&);
  13935. void AllocateNetworkState();
  13936. operator Animatable() const;
  13937. void ApplyAttributes();
  13938. operator BorderImage() const;
  13939. void BringToFront();
  13940. const Color& GetColor(Corner) const;
  13941. const Color& GetColorAttr() const;
  13942. const Color& GetDerivedColor() const;
  13943. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  13944. void DisableLayoutUpdate();
  13945. IntVector2 ElementToScreen(const IntVector2&);
  13946. void EnableLayoutUpdate();
  13947. bool FilterAttributes(XMLElement&) const;
  13948. uint FindChild(UIElement) const;
  13949. bool GetAnimationEnabled() const;
  13950. Variant GetAttribute(const String&) const;
  13951. Variant GetAttribute(uint) const;
  13952. ValueAnimation GetAttributeAnimation(const String&) const;
  13953. float GetAttributeAnimationSpeed(const String&) const;
  13954. float GetAttributeAnimationTime(const String&) const;
  13955. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13956. Variant GetAttributeDefault(const String&) const;
  13957. Variant GetAttributeDefault(uint) const;
  13958. BlendMode GetBlendMode() const;
  13959. bool GetBlockEvents() const;
  13960. bool GetBringToBack() const;
  13961. bool GetBringToFront() const;
  13962. UIElement GetChild(const String&, bool = false) const;
  13963. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  13964. UIElement GetChild(uint) const;
  13965. Array<UIElement> GetChildren() const;
  13966. Array<UIElement> GetChildren(bool) const;
  13967. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13968. bool GetClipChildren() const;
  13969. IntRect GetCombinedScreenRect();
  13970. BorderImage GetCursor() const;
  13971. float GetCursorBlinkRate() const;
  13972. uint GetCursorPosition() const;
  13973. XMLFile GetDefaultStyle(bool = true) const;
  13974. float GetDerivedOpacity() const;
  13975. uint GetDragButtonCombo() const;
  13976. uint GetDragButtonCount() const;
  13977. uint GetDragDropMode() const;
  13978. uint GetEchoCharacter() const;
  13979. IntVector2 GetEffectiveMinSize() const;
  13980. UIElement GetElementEventSender() const;
  13981. bool GetEnableAnchor() const;
  13982. VariantMap& GetEventDataMap() const;
  13983. Object GetEventSender() const;
  13984. FocusMode GetFocusMode() const;
  13985. int GetHeight() const;
  13986. HorizontalAlignment GetHorizontalAlignment() const;
  13987. int GetIndent() const;
  13988. int GetIndentSpacing() const;
  13989. int GetIndentWidth() const;
  13990. bool GetInterceptNetworkUpdate(const String&) const;
  13991. int GetLayoutElementMaxSize() const;
  13992. LayoutMode GetLayoutMode() const;
  13993. int GetLayoutSpacing() const;
  13994. Material GetMaterial() const;
  13995. ResourceRef GetMaterialAttr() const;
  13996. int GetMaxHeight() const;
  13997. uint GetMaxLength() const;
  13998. int GetMaxWidth() const;
  13999. int GetMinHeight() const;
  14000. int GetMinWidth() const;
  14001. uint GetNumAttributes() const;
  14002. uint GetNumChildren(bool = false) const;
  14003. uint GetNumNetworkAttributes() const;
  14004. ObjectAnimation GetObjectAnimation() const;
  14005. ResourceRef GetObjectAnimationAttr() const;
  14006. float GetOpacity() const;
  14007. UIElement GetParent() const;
  14008. int GetPriority() const;
  14009. UIElement GetRoot() const;
  14010. bool GetSortChildren() const;
  14011. Object GetSubsystem(StringHash) const;
  14012. Array<String> GetTags() const;
  14013. Text GetTextElement() const;
  14014. Texture GetTexture() const;
  14015. ResourceRef GetTextureAttr() const;
  14016. TraversalMode GetTraversalMode() const;
  14017. StringHash GetType() const;
  14018. bool GetUseDerivedOpacity() const;
  14019. VerticalAlignment GetVerticalAlignment() const;
  14020. int GetWidth() const;
  14021. bool HasColorGradient() const;
  14022. bool HasEventHandlers() const;
  14023. bool HasFocus() const;
  14024. bool HasSubscribedToEvent(Object, StringHash) const;
  14025. bool HasSubscribedToEvent(StringHash) const;
  14026. bool HasTag(const String&) const;
  14027. void InsertChild(uint, UIElement);
  14028. const IntRect& GetBorder() const;
  14029. const IntRect& GetClipBorder() const;
  14030. const IntRect& GetImageBorder() const;
  14031. const IntRect& GetImageRect() const;
  14032. const IntRect& GetLayoutBorder() const;
  14033. const IntVector2& GetChildOffset() const;
  14034. const IntVector2& GetDisabledOffset() const;
  14035. const IntVector2& GetHoverOffset() const;
  14036. const IntVector2& GetMaxOffset() const;
  14037. const IntVector2& GetMaxSize() const;
  14038. const IntVector2& GetMinOffset() const;
  14039. const IntVector2& GetMinSize() const;
  14040. const IntVector2& GetPosition() const;
  14041. const IntVector2& GetScreenPosition() const;
  14042. const IntVector2& GetSize() const;
  14043. bool IsChildOf(UIElement) const;
  14044. bool IsCursorMovable() const;
  14045. bool IsEditable() const;
  14046. bool IsElementEventSender() const;
  14047. bool IsEnabled() const;
  14048. bool IsEnabledSelf() const;
  14049. bool IsFixedHeight() const;
  14050. bool IsFixedSize() const;
  14051. bool IsFixedWidth() const;
  14052. bool IsHovering() const;
  14053. bool IsInside(IntVector2, bool);
  14054. bool IsInsideCombined(IntVector2, bool);
  14055. bool IsInstanceOf(StringHash) const;
  14056. bool IsInternal() const;
  14057. bool IsSelected() const;
  14058. bool IsTemporary() const;
  14059. bool IsTextCopyable() const;
  14060. bool IsTextSelectable() const;
  14061. bool IsTiled() const;
  14062. bool IsVisible() const;
  14063. bool IsVisibleEffective() const;
  14064. bool IsWheelHandler() const;
  14065. bool IsWithinScissor(const IntRect&);
  14066. bool Load(Deserializer&);
  14067. UIElement LoadChildXML(XMLFile, XMLFile);
  14068. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14069. bool LoadJSON(const JSONValue&);
  14070. bool LoadXML(Deserializer&);
  14071. bool LoadXML(File);
  14072. bool LoadXML(VectorBuffer&);
  14073. bool LoadXML(XMLFile, XMLFile);
  14074. bool LoadXML(const XMLElement&);
  14075. bool LoadXML(const XMLElement&, XMLFile);
  14076. void MarkNetworkUpdate();
  14077. operator Object() const;
  14078. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14079. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  14080. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14081. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14082. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14083. bool OnDragDropFinish(UIElement);
  14084. bool OnDragDropTest(UIElement);
  14085. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14086. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14087. void OnEvent(Object, StringHash, VariantMap&);
  14088. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  14089. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14090. void OnIndentSet();
  14091. void OnKey(uint, uint, uint);
  14092. void OnPositionSet(const IntVector2&);
  14093. void OnResize(const IntVector2&, const IntVector2&);
  14094. void OnSetAttribute(const AttributeInfo&, const Variant&);
  14095. void OnSetEditable();
  14096. void OnTextInput(const String&);
  14097. void OnWheel(int, uint, uint);
  14098. bool ReadDeltaUpdate(Deserializer&);
  14099. bool ReadLatestDataUpdate(Deserializer&);
  14100. operator RefCounted() const;
  14101. int Refs() const;
  14102. void Remove();
  14103. void RemoveAllChildren();
  14104. void RemoveAllTags();
  14105. void RemoveAttributeAnimation(const String&);
  14106. void RemoveChild(UIElement, uint = 0);
  14107. void RemoveChild(uint);
  14108. void RemoveChildAtIndex(uint);
  14109. void RemoveInstanceDefault();
  14110. void RemoveObjectAnimation();
  14111. bool RemoveTag(const String&);
  14112. void ResetDeepEnabled();
  14113. void ResetToDefault();
  14114. bool Save(Serializer&) const;
  14115. bool SaveDefaultAttributes() const;
  14116. bool SaveJSON(JSONValue&) const;
  14117. bool SaveXML(File, const String& indentation = "\t");
  14118. bool SaveXML(Serializer&, const String& = "\t") const;
  14119. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  14120. bool SaveXML(XMLElement&) const;
  14121. IntVector2 ScreenToElement(const IntVector2&);
  14122. void SendEvent(StringHash);
  14123. void SendEvent(StringHash, VariantMap&);
  14124. operator Serializable() const;
  14125. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14126. void SetAnimationEnabled(bool);
  14127. void SetAnimationTime(float);
  14128. bool SetAttribute(const String&, const Variant&);
  14129. bool SetAttribute(uint, const Variant&);
  14130. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14131. void SetAttributeAnimationSpeed(const String&, float);
  14132. void SetAttributeAnimationTime(const String&, float);
  14133. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14134. void SetBlendMode(BlendMode);
  14135. void SetBlockEvents(bool);
  14136. void SetBorder(const IntRect&);
  14137. void SetBringToBack(bool);
  14138. void SetBringToFront(bool);
  14139. void SetChildOffset(const IntVector2&);
  14140. void SetClipBorder(const IntRect&);
  14141. void SetClipChildren(bool);
  14142. void SetColor(Corner, const Color&);
  14143. void SetColor(const Color&);
  14144. void SetCursorBlinkRate(float);
  14145. void SetCursorMovable(bool);
  14146. void SetCursorPosition(uint);
  14147. void SetDeepEnabled(bool);
  14148. void SetDefaultStyle(XMLFile);
  14149. void SetDisabledOffset(const IntVector2&);
  14150. void SetDisabledOffset(int, int);
  14151. void SetDragDropMode(uint);
  14152. void SetEchoCharacter(uint);
  14153. void SetEditable(bool);
  14154. void SetElementEventSender(bool);
  14155. void SetEnableAnchor(bool);
  14156. void SetEnabled(bool);
  14157. void SetEnabledRecursive(bool);
  14158. void SetFixedHeight(int);
  14159. void SetFixedSize(const IntVector2&);
  14160. void SetFixedSize(int, int);
  14161. void SetFixedWidth(int);
  14162. void SetFocus(bool);
  14163. void SetFocusMode(FocusMode);
  14164. void SetFullImageRect();
  14165. void SetGlobalVar(StringHash, const Variant&);
  14166. void SetHeight(int);
  14167. void SetHorizontalAlignment(HorizontalAlignment);
  14168. void SetHoverOffset(const IntVector2&);
  14169. void SetHoverOffset(int, int);
  14170. void SetHovering(bool);
  14171. void SetImageBorder(const IntRect&);
  14172. void SetImageRect(const IntRect&);
  14173. void SetIndent(int);
  14174. void SetIndentSpacing(int);
  14175. void SetInstanceDefault(bool);
  14176. void SetInterceptNetworkUpdate(const String&, bool);
  14177. void SetInternal(bool);
  14178. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  14179. void SetLayoutBorder(const IntRect&);
  14180. void SetLayoutFlexScale(const Vector2&);
  14181. void SetLayoutMode(LayoutMode);
  14182. void SetLayoutSpacing(int);
  14183. void SetMaterial(Material);
  14184. void SetMaterialAttr(const ResourceRef&);
  14185. void SetMaxAnchor(const Vector2&);
  14186. void SetMaxAnchor(float, float);
  14187. void SetMaxHeight(int);
  14188. void SetMaxLength(uint);
  14189. void SetMaxOffset(const IntVector2&);
  14190. void SetMaxSize(const IntVector2&);
  14191. void SetMaxSize(int, int);
  14192. void SetMaxWidth(int);
  14193. void SetMinAnchor(const Vector2&);
  14194. void SetMinAnchor(float, float);
  14195. void SetMinHeight(int);
  14196. void SetMinOffset(const IntVector2&);
  14197. void SetMinSize(const IntVector2&);
  14198. void SetMinSize(int, int);
  14199. void SetMinWidth(int);
  14200. void SetName(const String&);
  14201. void SetObjectAnimation(ObjectAnimation);
  14202. void SetObjectAnimationAttr(const ResourceRef&);
  14203. void SetOpacity(float);
  14204. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14205. void SetPivot(const Vector2&);
  14206. void SetPivot(float, float);
  14207. void SetPosition(const IntVector2&);
  14208. void SetPosition(int, int);
  14209. void SetPriority(int);
  14210. void SetRenderTexture(Texture2D);
  14211. void SetSelected(bool);
  14212. void SetSize(const IntVector2&);
  14213. void SetSize(int, int);
  14214. void SetSortChildren(bool);
  14215. bool SetStyle(const String&, XMLFile = null);
  14216. bool SetStyle(const XMLElement&);
  14217. bool SetStyleAuto(XMLFile = null);
  14218. void SetTags(Array<String>);
  14219. void SetTemporary(bool);
  14220. void SetText(const String&);
  14221. void SetTextCopyable(bool);
  14222. void SetTextSelectable(bool);
  14223. void SetTexture(Texture);
  14224. void SetTextureAttr(const ResourceRef&);
  14225. void SetTiled(bool);
  14226. void SetTraversalMode(TraversalMode);
  14227. void SetUseDerivedOpacity(bool);
  14228. void SetVar(StringHash, const Variant&);
  14229. void SetVerticalAlignment(VerticalAlignment);
  14230. void SetVisible(bool);
  14231. void SetWidth(int);
  14232. void SortChildren();
  14233. const String& GetAppliedStyle() const;
  14234. const String& GetCategory() const;
  14235. const String& GetName() const;
  14236. const String& GetText() const;
  14237. const String& GetTypeName() const;
  14238. operator UIElement() const;
  14239. void UnsubscribeFromAllEvents();
  14240. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  14241. void UnsubscribeFromEvent(Object, StringHash);
  14242. void UnsubscribeFromEvent(StringHash);
  14243. void UnsubscribeFromEvents(Object);
  14244. void Update(float);
  14245. void UpdateLayout();
  14246. const Variant& GetGlobalVar(StringHash) const;
  14247. const Variant& GetVar(const StringHash&) const;
  14248. const VariantMap& GetGlobalVars() const;
  14249. const VariantMap& GetVars() const;
  14250. const Vector2& GetLayoutFlexScale() const;
  14251. const Vector2& GetMaxAnchor() const;
  14252. const Vector2& GetMinAnchor() const;
  14253. const Vector2& GetPivot() const;
  14254. int WeakRefs() const;
  14255. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  14256. void WriteInitialDeltaUpdate(Serializer&, uint8);
  14257. void WriteLatestDataUpdate(Serializer&, uint8);
  14258. operator const Animatable() const;
  14259. operator const BorderImage() const;
  14260. operator const Object() const;
  14261. operator const RefCounted() const;
  14262. operator const Serializable() const;
  14263. operator const UIElement() const;
  14264. // Properties:
  14265. bool animationEnabled;
  14266. /* readonly */
  14267. Array<Variant> attributeDefaults;
  14268. /* readonly */
  14269. Array<AttributeInfo> attributeInfos;
  14270. Array<Variant> attributes;
  14271. BlendMode blendMode;
  14272. IntRect border;
  14273. bool bringToBack;
  14274. bool bringToFront;
  14275. /* readonly */
  14276. String category;
  14277. /* readonly */
  14278. IntVector2 childOffset;
  14279. /* readonly */
  14280. Array<UIElement> children;
  14281. IntRect clipBorder;
  14282. bool clipChildren;
  14283. /* writeonly */
  14284. Color color;
  14285. /* readonly */
  14286. bool colorGradient;
  14287. Array<Color> colors;
  14288. /* readonly */
  14289. IntRect combinedScreenRect;
  14290. /* readonly */
  14291. BorderImage cursor;
  14292. float cursorBlinkRate;
  14293. bool cursorMovable;
  14294. uint cursorPosition;
  14295. XMLFile defaultStyle;
  14296. /* readonly */
  14297. float derivedOpacity;
  14298. IntVector2 disabledOffset;
  14299. /* readonly */
  14300. uint dragButtonCombo;
  14301. /* readonly */
  14302. uint dragButtonCount;
  14303. uint dragDropMode;
  14304. uint echoCharacter;
  14305. bool editable;
  14306. bool elementEventSender;
  14307. bool enableAnchor;
  14308. bool enabled;
  14309. /* readonly */
  14310. bool enabledSelf;
  14311. /* readonly */
  14312. bool fixedHeight;
  14313. /* readonly */
  14314. bool fixedSize;
  14315. /* readonly */
  14316. bool fixedWidth;
  14317. bool focus;
  14318. FocusMode focusMode;
  14319. Array<Variant> globalVar;
  14320. /* readonly */
  14321. VariantMap globalVars;
  14322. int height;
  14323. HorizontalAlignment horizontalAlignment;
  14324. IntVector2 hoverOffset;
  14325. /* readonly */
  14326. bool hovering;
  14327. IntRect imageBorder;
  14328. IntRect imageRect;
  14329. int indent;
  14330. int indentSpacing;
  14331. /* readonly */
  14332. int indentWidth;
  14333. bool internal;
  14334. IntRect layoutBorder;
  14335. Vector2 layoutFlexScale;
  14336. LayoutMode layoutMode;
  14337. int layoutSpacing;
  14338. Material material;
  14339. Vector2 maxAnchor;
  14340. int maxHeight;
  14341. uint maxLength;
  14342. IntVector2 maxOffset;
  14343. IntVector2 maxSize;
  14344. int maxWidth;
  14345. Vector2 minAnchor;
  14346. int minHeight;
  14347. IntVector2 minOffset;
  14348. IntVector2 minSize;
  14349. int minWidth;
  14350. String name;
  14351. /* readonly */
  14352. uint numAllChildren;
  14353. /* readonly */
  14354. uint numAttributes;
  14355. /* readonly */
  14356. uint numChildren;
  14357. ObjectAnimation objectAnimation;
  14358. float opacity;
  14359. UIElement parent;
  14360. Vector2 pivot;
  14361. IntVector2 position;
  14362. int priority;
  14363. /* readonly */
  14364. int refs;
  14365. /* readonly */
  14366. UIElement root;
  14367. /* readonly */
  14368. IntVector2 screenPosition;
  14369. bool selected;
  14370. IntVector2 size;
  14371. bool sortChildren;
  14372. String style;
  14373. /* readonly */
  14374. Array<String> tags;
  14375. bool temporary;
  14376. String text;
  14377. bool textCopyable;
  14378. /* readonly */
  14379. Text textElement;
  14380. bool textSelectable;
  14381. Texture texture;
  14382. bool tiled;
  14383. TraversalMode traversalMode;
  14384. /* readonly */
  14385. StringHash type;
  14386. /* readonly */
  14387. String typeName;
  14388. bool useDerivedOpacity;
  14389. /* readonly */
  14390. VariantMap vars;
  14391. VerticalAlignment verticalAlignment;
  14392. bool visible;
  14393. /* readonly */
  14394. bool visibleEffective;
  14395. /* readonly */
  14396. int weakRefs;
  14397. int width;
  14398. };
  14399. class LinkedListNode
  14400. {
  14401. public:
  14402. ~LinkedListNode();
  14403. LinkedListNode();
  14404. // Methods:
  14405. LinkedListNode& operator=(const LinkedListNode&);
  14406. };
  14407. class ListBase
  14408. {
  14409. public:
  14410. ~ListBase();
  14411. ListBase();
  14412. // Methods:
  14413. ListBase& operator=(const ListBase&);
  14414. void Swap(ListBase&);
  14415. };
  14416. class ListIteratorBase
  14417. {
  14418. public:
  14419. ~ListIteratorBase();
  14420. ListIteratorBase();
  14421. // Methods:
  14422. ListIteratorBase& operator=(const ListIteratorBase&);
  14423. bool operator==(const ListIteratorBase&) const;
  14424. void GotoNext();
  14425. void GotoPrev();
  14426. };
  14427. class ListNodeBase
  14428. {
  14429. public:
  14430. ~ListNodeBase();
  14431. ListNodeBase();
  14432. // Methods:
  14433. ListNodeBase& operator=(const ListNodeBase&);
  14434. };
  14435. class ListView
  14436. {
  14437. public:
  14438. ListView();
  14439. // Methods:
  14440. void AddChild(UIElement);
  14441. void AddItem(UIElement);
  14442. void AddSelection(uint);
  14443. void AddTag(const String&);
  14444. void AddTags(Array<String>);
  14445. void AddTags(const String&, int8 = ';');
  14446. void AdjustScissor(IntRect&);
  14447. void AllocateNetworkState();
  14448. operator Animatable() const;
  14449. void ApplyAttributes();
  14450. void BringToFront();
  14451. void ChangeSelection(int, bool = false);
  14452. void ClearSelection();
  14453. const Color& GetColor(Corner) const;
  14454. const Color& GetColorAttr() const;
  14455. const Color& GetDerivedColor() const;
  14456. void CopySelectedItemsToClipboard() const;
  14457. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  14458. void DisableInternalLayoutUpdate();
  14459. void DisableLayoutUpdate();
  14460. IntVector2 ElementToScreen(const IntVector2&);
  14461. void EnableInternalLayoutUpdate();
  14462. void EnableLayoutUpdate();
  14463. void EnsureItemVisibility(UIElement);
  14464. void EnsureItemVisibility(uint);
  14465. void Expand(uint, bool, bool = false);
  14466. bool FilterAttributes(XMLElement&) const;
  14467. uint FindChild(UIElement) const;
  14468. uint FindItem(UIElement) const;
  14469. bool GetAnimationEnabled() const;
  14470. Variant GetAttribute(const String&) const;
  14471. Variant GetAttribute(uint) const;
  14472. ValueAnimation GetAttributeAnimation(const String&) const;
  14473. float GetAttributeAnimationSpeed(const String&) const;
  14474. float GetAttributeAnimationTime(const String&) const;
  14475. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14476. Variant GetAttributeDefault(const String&) const;
  14477. Variant GetAttributeDefault(uint) const;
  14478. bool GetAutoDisableChildren() const;
  14479. float GetAutoDisableThreshold() const;
  14480. int GetBaseIndent() const;
  14481. bool GetBlockEvents() const;
  14482. bool GetBringToBack() const;
  14483. bool GetBringToFront() const;
  14484. UIElement GetChild(const String&, bool = false) const;
  14485. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  14486. UIElement GetChild(uint) const;
  14487. Array<UIElement> GetChildren() const;
  14488. Array<UIElement> GetChildren(bool) const;
  14489. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14490. bool GetClearSelectionOnDefocus() const;
  14491. bool GetClipChildren() const;
  14492. IntRect GetCombinedScreenRect();
  14493. UIElement GetContentElement() const;
  14494. XMLFile GetDefaultStyle(bool = true) const;
  14495. float GetDerivedOpacity() const;
  14496. uint GetDragButtonCombo() const;
  14497. uint GetDragButtonCount() const;
  14498. uint GetDragDropMode() const;
  14499. IntVector2 GetEffectiveMinSize() const;
  14500. UIElement GetElementEventSender() const;
  14501. bool GetEnableAnchor() const;
  14502. VariantMap& GetEventDataMap() const;
  14503. Object GetEventSender() const;
  14504. FocusMode GetFocusMode() const;
  14505. int GetHeight() const;
  14506. bool GetHierarchyMode() const;
  14507. HighlightMode GetHighlightMode() const;
  14508. HorizontalAlignment GetHorizontalAlignment() const;
  14509. ScrollBar GetHorizontalScrollBar() const;
  14510. bool GetHorizontalScrollBarVisible() const;
  14511. int GetIndent() const;
  14512. int GetIndentSpacing() const;
  14513. int GetIndentWidth() const;
  14514. bool GetInterceptNetworkUpdate(const String&) const;
  14515. UIElement GetItem(uint) const;
  14516. Array<UIElement> GetItems() const;
  14517. int GetLayoutElementMaxSize() const;
  14518. LayoutMode GetLayoutMode() const;
  14519. int GetLayoutSpacing() const;
  14520. int GetMaxHeight() const;
  14521. int GetMaxWidth() const;
  14522. int GetMinHeight() const;
  14523. int GetMinWidth() const;
  14524. bool GetMultiselect() const;
  14525. uint GetNumAttributes() const;
  14526. uint GetNumChildren(bool = false) const;
  14527. uint GetNumItems() const;
  14528. uint GetNumNetworkAttributes() const;
  14529. ObjectAnimation GetObjectAnimation() const;
  14530. ResourceRef GetObjectAnimationAttr() const;
  14531. float GetOpacity() const;
  14532. float GetPageStep() const;
  14533. UIElement GetParent() const;
  14534. int GetPriority() const;
  14535. UIElement GetRoot() const;
  14536. bool GetScrollBarsAutoVisible() const;
  14537. float GetScrollDeceleration() const;
  14538. BorderImage GetScrollPanel() const;
  14539. float GetScrollSnapEpsilon() const;
  14540. float GetScrollStep() const;
  14541. bool GetSelectOnClickEnd() const;
  14542. UIElement GetSelectedItem() const;
  14543. Array<UIElement> GetSelectedItems() const;
  14544. uint GetSelection() const;
  14545. Array<uint> GetSelections() const;
  14546. bool GetSortChildren() const;
  14547. Object GetSubsystem(StringHash) const;
  14548. Array<String> GetTags() const;
  14549. TraversalMode GetTraversalMode() const;
  14550. StringHash GetType() const;
  14551. bool GetUseDerivedOpacity() const;
  14552. VerticalAlignment GetVerticalAlignment() const;
  14553. ScrollBar GetVerticalScrollBar() const;
  14554. bool GetVerticalScrollBarVisible() const;
  14555. int GetWidth() const;
  14556. bool HasColorGradient() const;
  14557. bool HasEventHandlers() const;
  14558. bool HasFocus() const;
  14559. bool HasSubscribedToEvent(Object, StringHash) const;
  14560. bool HasSubscribedToEvent(StringHash) const;
  14561. bool HasTag(const String&) const;
  14562. void InsertChild(uint, UIElement);
  14563. void InsertItem(uint, UIElement, UIElement = null);
  14564. const IntRect& GetClipBorder() const;
  14565. const IntRect& GetLayoutBorder() const;
  14566. const IntVector2& GetChildOffset() const;
  14567. const IntVector2& GetMaxOffset() const;
  14568. const IntVector2& GetMaxSize() const;
  14569. const IntVector2& GetMinOffset() const;
  14570. const IntVector2& GetMinSize() const;
  14571. const IntVector2& GetPosition() const;
  14572. const IntVector2& GetScreenPosition() const;
  14573. const IntVector2& GetSize() const;
  14574. const IntVector2& GetViewPosition() const;
  14575. bool IsChildOf(UIElement) const;
  14576. bool IsEditable() const;
  14577. bool IsElementEventSender() const;
  14578. bool IsEnabled() const;
  14579. bool IsEnabledSelf() const;
  14580. bool IsExpanded(uint) const;
  14581. bool IsFixedHeight() const;
  14582. bool IsFixedSize() const;
  14583. bool IsFixedWidth() const;
  14584. bool IsHovering() const;
  14585. bool IsInside(IntVector2, bool);
  14586. bool IsInsideCombined(IntVector2, bool);
  14587. bool IsInstanceOf(StringHash) const;
  14588. bool IsInternal() const;
  14589. bool IsSelected(uint) const;
  14590. bool IsTemporary() const;
  14591. bool IsVisible() const;
  14592. bool IsVisibleEffective() const;
  14593. bool IsWheelHandler() const;
  14594. bool IsWithinScissor(const IntRect&);
  14595. bool Load(Deserializer&);
  14596. UIElement LoadChildXML(XMLFile, XMLFile);
  14597. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14598. bool LoadJSON(const JSONValue&);
  14599. bool LoadXML(Deserializer&);
  14600. bool LoadXML(File);
  14601. bool LoadXML(VectorBuffer&);
  14602. bool LoadXML(XMLFile, XMLFile);
  14603. bool LoadXML(const XMLElement&);
  14604. bool LoadXML(const XMLElement&, XMLFile);
  14605. void MarkNetworkUpdate();
  14606. operator Object() const;
  14607. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14608. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  14609. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14610. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14611. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14612. bool OnDragDropFinish(UIElement);
  14613. bool OnDragDropTest(UIElement);
  14614. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14615. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14616. void OnEvent(Object, StringHash, VariantMap&);
  14617. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  14618. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14619. void OnIndentSet();
  14620. void OnKey(uint, uint, uint);
  14621. void OnPositionSet(const IntVector2&);
  14622. void OnResize(const IntVector2&, const IntVector2&);
  14623. void OnSetAttribute(const AttributeInfo&, const Variant&);
  14624. void OnSetEditable();
  14625. void OnTextInput(const String&);
  14626. void OnWheel(int, uint, uint);
  14627. bool ReadDeltaUpdate(Deserializer&);
  14628. bool ReadLatestDataUpdate(Deserializer&);
  14629. operator RefCounted() const;
  14630. int Refs() const;
  14631. void Remove();
  14632. void RemoveAllChildren();
  14633. void RemoveAllItems();
  14634. void RemoveAllTags();
  14635. void RemoveAttributeAnimation(const String&);
  14636. void RemoveChild(UIElement, uint = 0);
  14637. void RemoveChild(uint);
  14638. void RemoveChildAtIndex(uint);
  14639. void RemoveInstanceDefault();
  14640. void RemoveItem(UIElement, uint = 0);
  14641. void RemoveItem(uint);
  14642. void RemoveObjectAnimation();
  14643. void RemoveSelection(uint);
  14644. bool RemoveTag(const String&);
  14645. void ResetDeepEnabled();
  14646. void ResetToDefault();
  14647. bool Save(Serializer&) const;
  14648. bool SaveDefaultAttributes() const;
  14649. bool SaveJSON(JSONValue&) const;
  14650. bool SaveXML(File, const String& indentation = "\t");
  14651. bool SaveXML(Serializer&, const String& = "\t") const;
  14652. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  14653. bool SaveXML(XMLElement&) const;
  14654. IntVector2 ScreenToElement(const IntVector2&);
  14655. operator ScrollView() const;
  14656. void SendEvent(StringHash);
  14657. void SendEvent(StringHash, VariantMap&);
  14658. operator Serializable() const;
  14659. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14660. void SetAnimationEnabled(bool);
  14661. void SetAnimationTime(float);
  14662. bool SetAttribute(const String&, const Variant&);
  14663. bool SetAttribute(uint, const Variant&);
  14664. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14665. void SetAttributeAnimationSpeed(const String&, float);
  14666. void SetAttributeAnimationTime(const String&, float);
  14667. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14668. void SetAutoDisableChildren(bool);
  14669. void SetAutoDisableThreshold(float);
  14670. void SetBaseIndent(int);
  14671. void SetBlockEvents(bool);
  14672. void SetBringToBack(bool);
  14673. void SetBringToFront(bool);
  14674. void SetChildOffset(const IntVector2&);
  14675. void SetClearSelectionOnDefocus(bool);
  14676. void SetClipBorder(const IntRect&);
  14677. void SetClipChildren(bool);
  14678. void SetColor(Corner, const Color&);
  14679. void SetColor(const Color&);
  14680. void SetContentElement(UIElement);
  14681. void SetDeepEnabled(bool);
  14682. void SetDefaultStyle(XMLFile);
  14683. void SetDragDropMode(uint);
  14684. void SetEditable(bool);
  14685. void SetElementEventSender(bool);
  14686. void SetEnableAnchor(bool);
  14687. void SetEnabled(bool);
  14688. void SetEnabledRecursive(bool);
  14689. void SetFixedHeight(int);
  14690. void SetFixedSize(const IntVector2&);
  14691. void SetFixedSize(int, int);
  14692. void SetFixedWidth(int);
  14693. void SetFocus(bool);
  14694. void SetFocusMode(FocusMode);
  14695. void SetGlobalVar(StringHash, const Variant&);
  14696. void SetHeight(int);
  14697. void SetHierarchyMode(bool);
  14698. void SetHighlightMode(HighlightMode);
  14699. void SetHorizontalAlignment(HorizontalAlignment);
  14700. void SetHorizontalScrollBarVisible(bool);
  14701. void SetHovering(bool);
  14702. void SetIndent(int);
  14703. void SetIndentSpacing(int);
  14704. void SetInstanceDefault(bool);
  14705. void SetInterceptNetworkUpdate(const String&, bool);
  14706. void SetInternal(bool);
  14707. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  14708. void SetLayoutBorder(const IntRect&);
  14709. void SetLayoutFlexScale(const Vector2&);
  14710. void SetLayoutMode(LayoutMode);
  14711. void SetLayoutSpacing(int);
  14712. void SetMaxAnchor(const Vector2&);
  14713. void SetMaxAnchor(float, float);
  14714. void SetMaxHeight(int);
  14715. void SetMaxOffset(const IntVector2&);
  14716. void SetMaxSize(const IntVector2&);
  14717. void SetMaxSize(int, int);
  14718. void SetMaxWidth(int);
  14719. void SetMinAnchor(const Vector2&);
  14720. void SetMinAnchor(float, float);
  14721. void SetMinHeight(int);
  14722. void SetMinOffset(const IntVector2&);
  14723. void SetMinSize(const IntVector2&);
  14724. void SetMinSize(int, int);
  14725. void SetMinWidth(int);
  14726. void SetMultiselect(bool);
  14727. void SetName(const String&);
  14728. void SetObjectAnimation(ObjectAnimation);
  14729. void SetObjectAnimationAttr(const ResourceRef&);
  14730. void SetOpacity(float);
  14731. void SetPageStep(float);
  14732. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14733. void SetPivot(const Vector2&);
  14734. void SetPivot(float, float);
  14735. void SetPosition(const IntVector2&);
  14736. void SetPosition(int, int);
  14737. void SetPriority(int);
  14738. void SetRenderTexture(Texture2D);
  14739. void SetScrollBarsAutoVisible(bool);
  14740. void SetScrollBarsVisible(bool, bool);
  14741. void SetScrollDeceleration(float);
  14742. void SetScrollSnapEpsilon(float);
  14743. void SetScrollStep(float);
  14744. void SetSelectOnClickEnd(bool);
  14745. void SetSelected(bool);
  14746. void SetSelection(uint);
  14747. void SetSelections(Array<uint>);
  14748. void SetSize(const IntVector2&);
  14749. void SetSize(int, int);
  14750. void SetSortChildren(bool);
  14751. bool SetStyle(const String&, XMLFile = null);
  14752. bool SetStyle(const XMLElement&);
  14753. bool SetStyleAuto(XMLFile = null);
  14754. void SetTags(Array<String>);
  14755. void SetTemporary(bool);
  14756. void SetTraversalMode(TraversalMode);
  14757. void SetUseDerivedOpacity(bool);
  14758. void SetVar(StringHash, const Variant&);
  14759. void SetVerticalAlignment(VerticalAlignment);
  14760. void SetVerticalScrollBarVisible(bool);
  14761. void SetViewPosition(const IntVector2&);
  14762. void SetViewPosition(int, int);
  14763. void SetViewPositionAttr(const IntVector2&);
  14764. void SetVisible(bool);
  14765. void SetWidth(int);
  14766. void SortChildren();
  14767. const String& GetAppliedStyle() const;
  14768. const String& GetCategory() const;
  14769. const String& GetName() const;
  14770. const String& GetTypeName() const;
  14771. void ToggleExpand(uint, bool = false);
  14772. void ToggleSelection(uint);
  14773. operator UIElement() const;
  14774. void UnsubscribeFromAllEvents();
  14775. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  14776. void UnsubscribeFromEvent(Object, StringHash);
  14777. void UnsubscribeFromEvent(StringHash);
  14778. void UnsubscribeFromEvents(Object);
  14779. void Update(float);
  14780. void UpdateInternalLayout();
  14781. void UpdateLayout();
  14782. const Variant& GetGlobalVar(StringHash) const;
  14783. const Variant& GetVar(const StringHash&) const;
  14784. const VariantMap& GetGlobalVars() const;
  14785. const VariantMap& GetVars() const;
  14786. const Vector2& GetLayoutFlexScale() const;
  14787. const Vector2& GetMaxAnchor() const;
  14788. const Vector2& GetMinAnchor() const;
  14789. const Vector2& GetPivot() const;
  14790. int WeakRefs() const;
  14791. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  14792. void WriteInitialDeltaUpdate(Serializer&, uint8);
  14793. void WriteLatestDataUpdate(Serializer&, uint8);
  14794. operator const Animatable() const;
  14795. operator const Object() const;
  14796. operator const RefCounted() const;
  14797. operator const ScrollView() const;
  14798. operator const Serializable() const;
  14799. operator const UIElement() const;
  14800. // Properties:
  14801. bool animationEnabled;
  14802. /* readonly */
  14803. Array<Variant> attributeDefaults;
  14804. /* readonly */
  14805. Array<AttributeInfo> attributeInfos;
  14806. Array<Variant> attributes;
  14807. bool autoDisableChildren;
  14808. float autoDisableThreshold;
  14809. int baseIndent;
  14810. bool bringToBack;
  14811. bool bringToFront;
  14812. /* readonly */
  14813. String category;
  14814. /* readonly */
  14815. IntVector2 childOffset;
  14816. /* readonly */
  14817. Array<UIElement> children;
  14818. bool clearSelectionOnDefocus;
  14819. IntRect clipBorder;
  14820. bool clipChildren;
  14821. /* writeonly */
  14822. Color color;
  14823. /* readonly */
  14824. bool colorGradient;
  14825. Array<Color> colors;
  14826. /* readonly */
  14827. IntRect combinedScreenRect;
  14828. UIElement contentElement;
  14829. XMLFile defaultStyle;
  14830. /* readonly */
  14831. float derivedOpacity;
  14832. /* readonly */
  14833. uint dragButtonCombo;
  14834. /* readonly */
  14835. uint dragButtonCount;
  14836. uint dragDropMode;
  14837. bool editable;
  14838. bool elementEventSender;
  14839. bool enableAnchor;
  14840. bool enabled;
  14841. /* readonly */
  14842. bool enabledSelf;
  14843. /* readonly */
  14844. bool fixedHeight;
  14845. /* readonly */
  14846. bool fixedSize;
  14847. /* readonly */
  14848. bool fixedWidth;
  14849. bool focus;
  14850. FocusMode focusMode;
  14851. Array<Variant> globalVar;
  14852. /* readonly */
  14853. VariantMap globalVars;
  14854. int height;
  14855. bool hierarchyMode;
  14856. HighlightMode highlightMode;
  14857. HorizontalAlignment horizontalAlignment;
  14858. /* readonly */
  14859. ScrollBar horizontalScrollBar;
  14860. bool horizontalScrollBarVisible;
  14861. /* readonly */
  14862. bool hovering;
  14863. int indent;
  14864. int indentSpacing;
  14865. /* readonly */
  14866. int indentWidth;
  14867. bool internal;
  14868. /* readonly */
  14869. Array<UIElement> items;
  14870. IntRect layoutBorder;
  14871. Vector2 layoutFlexScale;
  14872. LayoutMode layoutMode;
  14873. int layoutSpacing;
  14874. Vector2 maxAnchor;
  14875. int maxHeight;
  14876. IntVector2 maxOffset;
  14877. IntVector2 maxSize;
  14878. int maxWidth;
  14879. Vector2 minAnchor;
  14880. int minHeight;
  14881. IntVector2 minOffset;
  14882. IntVector2 minSize;
  14883. int minWidth;
  14884. bool multiselect;
  14885. String name;
  14886. /* readonly */
  14887. uint numAllChildren;
  14888. /* readonly */
  14889. uint numAttributes;
  14890. /* readonly */
  14891. uint numChildren;
  14892. /* readonly */
  14893. uint numItems;
  14894. ObjectAnimation objectAnimation;
  14895. float opacity;
  14896. float pageStep;
  14897. UIElement parent;
  14898. Vector2 pivot;
  14899. IntVector2 position;
  14900. int priority;
  14901. /* readonly */
  14902. int refs;
  14903. /* readonly */
  14904. UIElement root;
  14905. /* readonly */
  14906. IntVector2 screenPosition;
  14907. bool scrollBarsAutoVisible;
  14908. float scrollDeceleration;
  14909. /* readonly */
  14910. BorderImage scrollPanel;
  14911. float scrollSnapEpsilon;
  14912. float scrollStep;
  14913. bool selectOnClickEnd;
  14914. /* writeonly */
  14915. bool selected;
  14916. /* readonly */
  14917. UIElement selectedItem;
  14918. /* readonly */
  14919. Array<UIElement> selectedItems;
  14920. uint selection;
  14921. /* readonly */
  14922. Array<uint> selections;
  14923. IntVector2 size;
  14924. bool sortChildren;
  14925. String style;
  14926. /* readonly */
  14927. Array<String> tags;
  14928. bool temporary;
  14929. TraversalMode traversalMode;
  14930. /* readonly */
  14931. StringHash type;
  14932. /* readonly */
  14933. String typeName;
  14934. bool useDerivedOpacity;
  14935. /* readonly */
  14936. VariantMap vars;
  14937. VerticalAlignment verticalAlignment;
  14938. /* readonly */
  14939. ScrollBar verticalScrollBar;
  14940. bool verticalScrollBarVisible;
  14941. IntVector2 viewPosition;
  14942. bool visible;
  14943. /* readonly */
  14944. bool visibleEffective;
  14945. /* readonly */
  14946. int weakRefs;
  14947. int width;
  14948. };
  14949. class Localization
  14950. {
  14951. public:
  14952. Localization();
  14953. // Methods:
  14954. String Get(const String&);
  14955. bool GetBlockEvents() const;
  14956. VariantMap& GetEventDataMap() const;
  14957. Object GetEventSender() const;
  14958. String GetLanguage();
  14959. String GetLanguage(int);
  14960. int GetLanguageIndex() const;
  14961. int GetLanguageIndex(const String&);
  14962. int GetNumLanguages() const;
  14963. Object GetSubsystem(StringHash) const;
  14964. StringHash GetType() const;
  14965. bool HasEventHandlers() const;
  14966. bool HasSubscribedToEvent(Object, StringHash) const;
  14967. bool HasSubscribedToEvent(StringHash) const;
  14968. bool IsInstanceOf(StringHash) const;
  14969. void LoadJSONFile(const String&, const String& = String :: EMPTY);
  14970. void LoadMultipleLanguageJSON(const JSONValue&);
  14971. void LoadSingleLanguageJSON(const JSONValue&, const String& = String :: EMPTY);
  14972. operator Object() const;
  14973. void OnEvent(Object, StringHash, VariantMap&);
  14974. operator RefCounted() const;
  14975. int Refs() const;
  14976. void Reset();
  14977. void SendEvent(StringHash);
  14978. void SendEvent(StringHash, VariantMap&);
  14979. void SetBlockEvents(bool);
  14980. void SetGlobalVar(StringHash, const Variant&);
  14981. void SetLanguage(const String&);
  14982. void SetLanguage(int);
  14983. const String& GetCategory() const;
  14984. const String& GetTypeName() const;
  14985. void UnsubscribeFromAllEvents();
  14986. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  14987. void UnsubscribeFromEvent(Object, StringHash);
  14988. void UnsubscribeFromEvent(StringHash);
  14989. void UnsubscribeFromEvents(Object);
  14990. const Variant& GetGlobalVar(StringHash) const;
  14991. const VariantMap& GetGlobalVars() const;
  14992. int WeakRefs() const;
  14993. operator const Object() const;
  14994. operator const RefCounted() const;
  14995. // Properties:
  14996. /* readonly */
  14997. String category;
  14998. Array<Variant> globalVar;
  14999. /* readonly */
  15000. VariantMap globalVars;
  15001. /* readonly */
  15002. String language;
  15003. /* readonly */
  15004. int languageIndex;
  15005. /* readonly */
  15006. int numLanguages;
  15007. /* readonly */
  15008. int refs;
  15009. /* readonly */
  15010. StringHash type;
  15011. /* readonly */
  15012. String typeName;
  15013. /* readonly */
  15014. int weakRefs;
  15015. };
  15016. class Log
  15017. {
  15018. public:
  15019. Log();
  15020. // Methods:
  15021. void Close();
  15022. void Debug(const String&);
  15023. void Error(const String&);
  15024. bool GetBlockEvents() const;
  15025. VariantMap& GetEventDataMap() const;
  15026. Object GetEventSender() const;
  15027. String GetLastMessage() const;
  15028. int GetLevel() const;
  15029. Object GetSubsystem(StringHash) const;
  15030. bool GetTimeStamp() const;
  15031. StringHash GetType() const;
  15032. bool HasEventHandlers() const;
  15033. bool HasSubscribedToEvent(Object, StringHash) const;
  15034. bool HasSubscribedToEvent(StringHash) const;
  15035. void Info(const String&);
  15036. bool IsInstanceOf(StringHash) const;
  15037. bool IsQuiet() const;
  15038. operator Object() const;
  15039. void OnEvent(Object, StringHash, VariantMap&);
  15040. void Open(const String&);
  15041. operator RefCounted() const;
  15042. int Refs() const;
  15043. void SendEvent(StringHash);
  15044. void SendEvent(StringHash, VariantMap&);
  15045. void SetBlockEvents(bool);
  15046. void SetGlobalVar(StringHash, const Variant&);
  15047. void SetLevel(int);
  15048. void SetQuiet(bool);
  15049. void SetTimeStamp(bool);
  15050. const String& GetCategory() const;
  15051. const String& GetTypeName() const;
  15052. void Trace(const String&);
  15053. void UnsubscribeFromAllEvents();
  15054. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15055. void UnsubscribeFromEvent(Object, StringHash);
  15056. void UnsubscribeFromEvent(StringHash);
  15057. void UnsubscribeFromEvents(Object);
  15058. const Variant& GetGlobalVar(StringHash) const;
  15059. const VariantMap& GetGlobalVars() const;
  15060. void Warning(const String&);
  15061. int WeakRefs() const;
  15062. void Write(const String&, bool error = false);
  15063. operator const Object() const;
  15064. operator const RefCounted() const;
  15065. // Properties:
  15066. /* readonly */
  15067. String category;
  15068. Array<Variant> globalVar;
  15069. /* readonly */
  15070. VariantMap globalVars;
  15071. /* readonly */
  15072. String lastMessage;
  15073. int level;
  15074. bool quiet;
  15075. /* readonly */
  15076. int refs;
  15077. bool timeStamp;
  15078. /* readonly */
  15079. StringHash type;
  15080. /* readonly */
  15081. String typeName;
  15082. /* readonly */
  15083. int weakRefs;
  15084. };
  15085. class LogicComponent
  15086. {
  15087. public:
  15088. LogicComponent();
  15089. // Methods:
  15090. void AllocateNetworkState();
  15091. operator Animatable() const;
  15092. void ApplyAttributes();
  15093. void CleanupConnection(Connection);
  15094. operator Component() const;
  15095. void DelayedStart();
  15096. void DrawDebugGeometry(DebugRenderer, bool);
  15097. void FixedPostUpdate(float);
  15098. void FixedUpdate(float);
  15099. bool GetAnimationEnabled() const;
  15100. Variant GetAttribute(const String&) const;
  15101. Variant GetAttribute(uint) const;
  15102. ValueAnimation GetAttributeAnimation(const String&) const;
  15103. float GetAttributeAnimationSpeed(const String&) const;
  15104. float GetAttributeAnimationTime(const String&) const;
  15105. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15106. Variant GetAttributeDefault(const String&) const;
  15107. Variant GetAttributeDefault(uint) const;
  15108. bool GetBlockEvents() const;
  15109. Component GetComponent(StringHash) const;
  15110. VariantMap& GetEventDataMap() const;
  15111. Object GetEventSender() const;
  15112. uint GetID() const;
  15113. bool GetInterceptNetworkUpdate(const String&) const;
  15114. Node GetNode() const;
  15115. uint GetNumAttributes() const;
  15116. uint GetNumNetworkAttributes() const;
  15117. ObjectAnimation GetObjectAnimation() const;
  15118. ResourceRef GetObjectAnimationAttr() const;
  15119. Scene GetScene() const;
  15120. Object GetSubsystem(StringHash) const;
  15121. StringHash GetType() const;
  15122. uint GetUpdateEventMask() const;
  15123. bool HasEventHandlers() const;
  15124. bool HasSubscribedToEvent(Object, StringHash) const;
  15125. bool HasSubscribedToEvent(StringHash) const;
  15126. bool IsDelayedStartCalled() const;
  15127. bool IsEnabled() const;
  15128. bool IsEnabledEffective() const;
  15129. bool IsInstanceOf(StringHash) const;
  15130. bool IsReplicated() const;
  15131. bool IsTemporary() const;
  15132. bool Load(Deserializer&);
  15133. bool LoadJSON(const JSONValue&);
  15134. bool LoadXML(const XMLElement&);
  15135. void MarkNetworkUpdate();
  15136. operator Object() const;
  15137. void OnEvent(Object, StringHash, VariantMap&);
  15138. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  15139. void OnSetAttribute(const AttributeInfo&, const Variant&);
  15140. void OnSetEnabled();
  15141. void PostUpdate(float);
  15142. void PrepareNetworkUpdate();
  15143. operator RaycastVehicle() const;
  15144. bool ReadDeltaUpdate(Deserializer&);
  15145. bool ReadLatestDataUpdate(Deserializer&);
  15146. operator RefCounted() const;
  15147. int Refs() const;
  15148. void Remove();
  15149. void RemoveAttributeAnimation(const String&);
  15150. void RemoveInstanceDefault();
  15151. void RemoveObjectAnimation();
  15152. void ResetToDefault();
  15153. bool Save(Serializer&) const;
  15154. bool SaveDefaultAttributes() const;
  15155. bool SaveJSON(JSONValue&) const;
  15156. bool SaveXML(XMLElement&) const;
  15157. void SendEvent(StringHash);
  15158. void SendEvent(StringHash, VariantMap&);
  15159. operator Serializable() const;
  15160. void SetAnimationEnabled(bool);
  15161. void SetAnimationTime(float);
  15162. bool SetAttribute(const String&, const Variant&);
  15163. bool SetAttribute(uint, const Variant&);
  15164. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15165. void SetAttributeAnimationSpeed(const String&, float);
  15166. void SetAttributeAnimationTime(const String&, float);
  15167. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15168. void SetBlockEvents(bool);
  15169. void SetEnabled(bool);
  15170. void SetGlobalVar(StringHash, const Variant&);
  15171. void SetInstanceDefault(bool);
  15172. void SetInterceptNetworkUpdate(const String&, bool);
  15173. void SetObjectAnimation(ObjectAnimation);
  15174. void SetObjectAnimationAttr(const ResourceRef&);
  15175. void SetTemporary(bool);
  15176. void SetUpdateEventMask(uint);
  15177. void Start();
  15178. void Stop();
  15179. const String& GetCategory() const;
  15180. const String& GetTypeName() const;
  15181. void UnsubscribeFromAllEvents();
  15182. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15183. void UnsubscribeFromEvent(Object, StringHash);
  15184. void UnsubscribeFromEvent(StringHash);
  15185. void UnsubscribeFromEvents(Object);
  15186. void Update(float);
  15187. const Variant& GetGlobalVar(StringHash) const;
  15188. const VariantMap& GetGlobalVars() const;
  15189. int WeakRefs() const;
  15190. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  15191. void WriteInitialDeltaUpdate(Serializer&, uint8);
  15192. void WriteLatestDataUpdate(Serializer&, uint8);
  15193. operator const Animatable() const;
  15194. operator const Component() const;
  15195. operator const Object() const;
  15196. operator const RaycastVehicle() const;
  15197. operator const RefCounted() const;
  15198. operator const Serializable() const;
  15199. // Properties:
  15200. bool animationEnabled;
  15201. /* readonly */
  15202. Array<Variant> attributeDefaults;
  15203. /* readonly */
  15204. Array<AttributeInfo> attributeInfos;
  15205. Array<Variant> attributes;
  15206. /* readonly */
  15207. String category;
  15208. bool enabled;
  15209. /* readonly */
  15210. bool enabledEffective;
  15211. Array<Variant> globalVar;
  15212. /* readonly */
  15213. VariantMap globalVars;
  15214. /* readonly */
  15215. uint id;
  15216. /* readonly */
  15217. Node node;
  15218. /* readonly */
  15219. uint numAttributes;
  15220. ObjectAnimation objectAnimation;
  15221. /* readonly */
  15222. int refs;
  15223. /* readonly */
  15224. bool replicated;
  15225. bool temporary;
  15226. /* readonly */
  15227. StringHash type;
  15228. /* readonly */
  15229. String typeName;
  15230. /* readonly */
  15231. int weakRefs;
  15232. };
  15233. class ManifoldPair
  15234. {
  15235. public:
  15236. ~ManifoldPair();
  15237. ManifoldPair();
  15238. // Methods:
  15239. ManifoldPair& operator=(const ManifoldPair&);
  15240. };
  15241. class Material
  15242. {
  15243. public:
  15244. Material();
  15245. // Methods:
  15246. bool BeginLoad(Deserializer&);
  15247. const BiasParameters& GetDepthBias() const;
  15248. Material Clone(const String& = String :: EMPTY) const;
  15249. bool EndLoad();
  15250. bool GetAlphaToCoverage() const;
  15251. AsyncLoadState GetAsyncLoadState() const;
  15252. uint GetAuxViewFrameNumber() const;
  15253. bool GetBlockEvents() const;
  15254. CullMode GetCullMode() const;
  15255. VariantMap& GetEventDataMap() const;
  15256. Object GetEventSender() const;
  15257. FillMode GetFillMode() const;
  15258. bool GetLineAntiAlias() const;
  15259. uint GetMemoryUse() const;
  15260. StringHash GetNameHash() const;
  15261. uint GetNumTechniques() const;
  15262. bool GetOcclusion() const;
  15263. Pass GetPass(uint, const String&) const;
  15264. uint8 GetRenderOrder() const;
  15265. Scene GetScene() const;
  15266. ValueAnimation GetShaderParameterAnimation(const String&) const;
  15267. float GetShaderParameterAnimationSpeed(const String&) const;
  15268. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  15269. uint GetShaderParameterHash() const;
  15270. CullMode GetShadowCullMode() const;
  15271. bool GetSpecular() const;
  15272. Object GetSubsystem(StringHash) const;
  15273. Technique GetTechnique(uint) const;
  15274. Texture GetTexture(TextureUnit) const;
  15275. StringHash GetType() const;
  15276. uint GetUseTimer();
  15277. bool HasEventHandlers() const;
  15278. bool HasSubscribedToEvent(Object, StringHash) const;
  15279. bool HasSubscribedToEvent(StringHash) const;
  15280. bool IsInstanceOf(StringHash) const;
  15281. bool Load(Deserializer&);
  15282. bool Load(File);
  15283. bool Load(VectorBuffer&);
  15284. bool Load(const JSONValue&);
  15285. bool Load(const String&);
  15286. bool Load(const XMLElement&);
  15287. bool LoadFile(const String&);
  15288. void MarkForAuxView(uint);
  15289. operator Object() const;
  15290. void OnEvent(Object, StringHash, VariantMap&);
  15291. operator RefCounted() const;
  15292. int Refs() const;
  15293. void ReleaseShaders();
  15294. void RemoveShaderParameter(const String&);
  15295. void ResetUseTimer();
  15296. operator Resource() const;
  15297. bool Save(File) const;
  15298. bool Save(JSONValue&) const;
  15299. bool Save(Serializer&) const;
  15300. bool Save(VectorBuffer&) const;
  15301. bool Save(XMLElement&) const;
  15302. bool Save(const String&) const;
  15303. bool SaveFile(const String&) const;
  15304. void SendEvent(StringHash);
  15305. void SendEvent(StringHash, VariantMap&);
  15306. void SetAlphaToCoverage(bool);
  15307. void SetAsyncLoadState(AsyncLoadState);
  15308. void SetBlockEvents(bool);
  15309. void SetCullMode(CullMode);
  15310. void SetDepthBias(const BiasParameters&);
  15311. void SetFillMode(FillMode);
  15312. void SetGlobalVar(StringHash, const Variant&);
  15313. void SetLineAntiAlias(bool);
  15314. void SetMemoryUse(uint);
  15315. void SetName(const String&);
  15316. void SetNumTechniques(uint);
  15317. void SetOcclusion(bool);
  15318. void SetPixelShaderDefines(const String&);
  15319. void SetRenderOrder(uint8);
  15320. void SetScene(Scene);
  15321. void SetShaderParameter(const String&, const Variant&);
  15322. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15323. void SetShaderParameterAnimationSpeed(const String&, float);
  15324. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  15325. void SetShadowCullMode(CullMode);
  15326. void SetTechnique(uint, Technique, uint = QUALITY_LOW, float = 0.0f);
  15327. void SetTexture(TextureUnit, Texture);
  15328. void SetUVTransform(const Vector2&, float, const Vector2&);
  15329. void SetUVTransform(const Vector2&, float, float);
  15330. void SetVertexShaderDefines(const String&);
  15331. void SortTechniques();
  15332. const String& GetCategory() const;
  15333. const String& GetName() const;
  15334. const String& GetPixelShaderDefines() const;
  15335. const String& GetTypeName() const;
  15336. const String& GetVertexShaderDefines() const;
  15337. const TechniqueEntry& GetTechniqueEntry(uint) const;
  15338. void UnsubscribeFromAllEvents();
  15339. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15340. void UnsubscribeFromEvent(Object, StringHash);
  15341. void UnsubscribeFromEvent(StringHash);
  15342. void UnsubscribeFromEvents(Object);
  15343. const Variant& GetGlobalVar(StringHash) const;
  15344. const Variant& GetShaderParameter(const String&) const;
  15345. const VariantMap& GetGlobalVars() const;
  15346. int WeakRefs() const;
  15347. operator const Object() const;
  15348. operator const RefCounted() const;
  15349. operator const Resource() const;
  15350. // Properties:
  15351. bool alphaToCoverage;
  15352. /* readonly */
  15353. String category;
  15354. CullMode cullMode;
  15355. BiasParameters depthBias;
  15356. FillMode fillMode;
  15357. Array<Variant> globalVar;
  15358. /* readonly */
  15359. VariantMap globalVars;
  15360. bool lineAntiAlias;
  15361. /* readonly */
  15362. uint memoryUse;
  15363. String name;
  15364. uint numTechniques;
  15365. bool occlusion;
  15366. String pixelShaderDefines;
  15367. /* readonly */
  15368. int refs;
  15369. uint8 renderOrder;
  15370. Scene scene;
  15371. /* readonly */
  15372. Array<String> shaderParameterNames;
  15373. Array<Variant> shaderParameters;
  15374. CullMode shadowCullMode;
  15375. /* readonly */
  15376. Array<TechniqueEntry> techniqueEntries;
  15377. /* readonly */
  15378. Array<Technique> techniques;
  15379. Array<Texture> textures;
  15380. /* readonly */
  15381. StringHash type;
  15382. /* readonly */
  15383. String typeName;
  15384. /* readonly */
  15385. uint useTimer;
  15386. String vertexShaderDefines;
  15387. /* readonly */
  15388. int weakRefs;
  15389. };
  15390. class MaterialShaderParameter
  15391. {
  15392. public:
  15393. ~MaterialShaderParameter();
  15394. MaterialShaderParameter();
  15395. // Methods:
  15396. MaterialShaderParameter& operator=(const MaterialShaderParameter&);
  15397. // Properties:
  15398. String name;
  15399. Variant value;
  15400. };
  15401. class Matrix2
  15402. {
  15403. public:
  15404. Matrix2();
  15405. Matrix2(const Matrix2&in);
  15406. Matrix2(float, float, float, float);
  15407. // Methods:
  15408. Matrix2 operator+(const Matrix2&) const;
  15409. Matrix2& operator=(const Matrix2&);
  15410. bool operator==(const Matrix2&) const;
  15411. bool Equals(const Matrix2&) const;
  15412. Matrix2 Inverse() const;
  15413. bool IsInf() const;
  15414. bool IsNaN() const;
  15415. Vector2 Scale() const;
  15416. Matrix2 Scaled(const Vector2&) const;
  15417. void SetScale(const Vector2&);
  15418. void SetScale(float);
  15419. String ToString() const;
  15420. Matrix2 Transpose() const;
  15421. // Properties:
  15422. float m00;
  15423. float m01;
  15424. float m10;
  15425. float m11;
  15426. // Constants:
  15427. static const Matrix2 IDENTITY;
  15428. static const Matrix2 ZERO;
  15429. };
  15430. class Matrix3
  15431. {
  15432. public:
  15433. Matrix3();
  15434. Matrix3(const Matrix3&in);
  15435. Matrix3(float, float, float, float, float, float, float, float, float);
  15436. // Methods:
  15437. Matrix3 operator+(const Matrix3&) const;
  15438. Matrix3& operator=(const Matrix3&);
  15439. bool operator==(const Matrix3&) const;
  15440. Vector3 Column(uint) const;
  15441. float Element(uint, uint) const;
  15442. bool Equals(const Matrix3&) const;
  15443. Matrix3 Inverse() const;
  15444. bool IsInf() const;
  15445. bool IsNaN() const;
  15446. Vector3 Row(uint) const;
  15447. Vector3 Scale() const;
  15448. Matrix3 Scaled(const Vector3&) const;
  15449. void SetScale(const Vector3&);
  15450. void SetScale(float);
  15451. Vector3 SignedScale(const Matrix3&) const;
  15452. String ToString() const;
  15453. Matrix3 Transpose() const;
  15454. // Properties:
  15455. float m00;
  15456. float m01;
  15457. float m02;
  15458. float m10;
  15459. float m11;
  15460. float m12;
  15461. float m20;
  15462. float m21;
  15463. float m22;
  15464. // Constants:
  15465. static const Matrix3 IDENTITY;
  15466. static const Matrix3 ZERO;
  15467. };
  15468. class Matrix3x4
  15469. {
  15470. public:
  15471. Matrix3x4();
  15472. Matrix3x4(const Matrix3x4&in);
  15473. Matrix3x4(const Matrix3&in);
  15474. Matrix3x4(const Matrix4&in);
  15475. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  15476. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  15477. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  15478. // Methods:
  15479. Matrix3x4 operator+(const Matrix3x4&) const;
  15480. Matrix3x4& operator=(const Matrix3&);
  15481. Matrix3x4& operator=(const Matrix3x4&);
  15482. Matrix3x4& operator=(const Matrix4&);
  15483. bool operator==(const Matrix3x4&) const;
  15484. Vector3 Column(uint) const;
  15485. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  15486. float Element(uint, uint) const;
  15487. bool Equals(const Matrix3x4&) const;
  15488. Matrix3x4 Inverse() const;
  15489. bool IsInf() const;
  15490. bool IsNaN() const;
  15491. Quaternion Rotation() const;
  15492. Matrix3 RotationMatrix() const;
  15493. Vector4 Row(uint) const;
  15494. Vector3 Scale() const;
  15495. void SetRotation(const Matrix3&);
  15496. void SetScale(const Vector3&);
  15497. void SetScale(float);
  15498. void SetTranslation(const Vector3&);
  15499. Vector3 SignedScale(const Matrix3&) const;
  15500. Matrix3 ToMatrix3() const;
  15501. Matrix4 ToMatrix4() const;
  15502. String ToString() const;
  15503. Vector3 Translation() const;
  15504. // Properties:
  15505. float m00;
  15506. float m01;
  15507. float m02;
  15508. float m03;
  15509. float m10;
  15510. float m11;
  15511. float m12;
  15512. float m13;
  15513. float m20;
  15514. float m21;
  15515. float m22;
  15516. float m23;
  15517. // Constants:
  15518. static const Matrix3x4 IDENTITY;
  15519. static const Matrix3x4 ZERO;
  15520. };
  15521. class Matrix4
  15522. {
  15523. public:
  15524. Matrix4();
  15525. Matrix4(const Matrix4&in);
  15526. Matrix4(const Matrix3&in);
  15527. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  15528. // Methods:
  15529. Matrix4 operator+(const Matrix4&) const;
  15530. Matrix4& operator=(const Matrix3&);
  15531. Matrix4& operator=(const Matrix4&);
  15532. bool operator==(const Matrix4&) const;
  15533. Vector4 Column(uint) const;
  15534. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  15535. float Element(uint, uint) const;
  15536. bool Equals(const Matrix4&) const;
  15537. Matrix4 Inverse() const;
  15538. bool IsInf() const;
  15539. bool IsNaN() const;
  15540. Quaternion Rotation() const;
  15541. Matrix3 RotationMatrix() const;
  15542. Vector4 Row(uint) const;
  15543. Vector3 Scale() const;
  15544. void SetRotation(const Matrix3&);
  15545. void SetScale(const Vector3&);
  15546. void SetScale(float);
  15547. void SetTranslation(const Vector3&);
  15548. Vector3 SignedScale(const Matrix3&) const;
  15549. Matrix3 ToMatrix3() const;
  15550. String ToString() const;
  15551. Vector3 Translation() const;
  15552. Matrix4 Transpose() const;
  15553. // Properties:
  15554. float m00;
  15555. float m01;
  15556. float m02;
  15557. float m03;
  15558. float m10;
  15559. float m11;
  15560. float m12;
  15561. float m13;
  15562. float m20;
  15563. float m21;
  15564. float m22;
  15565. float m23;
  15566. float m30;
  15567. float m31;
  15568. float m32;
  15569. float m33;
  15570. // Constants:
  15571. static const Matrix4 IDENTITY;
  15572. static const Matrix4 ZERO;
  15573. };
  15574. class Menu
  15575. {
  15576. public:
  15577. Menu();
  15578. Menu(const String&in);
  15579. // Methods:
  15580. void AddChild(UIElement);
  15581. void AddTag(const String&);
  15582. void AddTags(Array<String>);
  15583. void AddTags(const String&, int8 = ';');
  15584. void AdjustScissor(IntRect&);
  15585. void AllocateNetworkState();
  15586. operator Animatable() const;
  15587. void ApplyAttributes();
  15588. operator BorderImage() const;
  15589. void BringToFront();
  15590. operator Button() const;
  15591. const Color& GetColor(Corner) const;
  15592. const Color& GetColorAttr() const;
  15593. const Color& GetDerivedColor() const;
  15594. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  15595. void DisableLayoutUpdate();
  15596. operator DropDownList() const;
  15597. IntVector2 ElementToScreen(const IntVector2&);
  15598. void EnableLayoutUpdate();
  15599. bool FilterAttributes(XMLElement&) const;
  15600. uint FindChild(UIElement) const;
  15601. int GetAcceleratorKey() const;
  15602. int GetAcceleratorQualifiers() const;
  15603. bool GetAnimationEnabled() const;
  15604. Variant GetAttribute(const String&) const;
  15605. Variant GetAttribute(uint) const;
  15606. ValueAnimation GetAttributeAnimation(const String&) const;
  15607. float GetAttributeAnimationSpeed(const String&) const;
  15608. float GetAttributeAnimationTime(const String&) const;
  15609. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15610. Variant GetAttributeDefault(const String&) const;
  15611. Variant GetAttributeDefault(uint) const;
  15612. BlendMode GetBlendMode() const;
  15613. bool GetBlockEvents() const;
  15614. bool GetBringToBack() const;
  15615. bool GetBringToFront() const;
  15616. UIElement GetChild(const String&, bool = false) const;
  15617. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  15618. UIElement GetChild(uint) const;
  15619. Array<UIElement> GetChildren() const;
  15620. Array<UIElement> GetChildren(bool) const;
  15621. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  15622. bool GetClipChildren() const;
  15623. IntRect GetCombinedScreenRect();
  15624. XMLFile GetDefaultStyle(bool = true) const;
  15625. float GetDerivedOpacity() const;
  15626. uint GetDragButtonCombo() const;
  15627. uint GetDragButtonCount() const;
  15628. uint GetDragDropMode() const;
  15629. IntVector2 GetEffectiveMinSize() const;
  15630. UIElement GetElementEventSender() const;
  15631. bool GetEnableAnchor() const;
  15632. VariantMap& GetEventDataMap() const;
  15633. Object GetEventSender() const;
  15634. FocusMode GetFocusMode() const;
  15635. int GetHeight() const;
  15636. HorizontalAlignment GetHorizontalAlignment() const;
  15637. int GetIndent() const;
  15638. int GetIndentSpacing() const;
  15639. int GetIndentWidth() const;
  15640. bool GetInterceptNetworkUpdate(const String&) const;
  15641. int GetLayoutElementMaxSize() const;
  15642. LayoutMode GetLayoutMode() const;
  15643. int GetLayoutSpacing() const;
  15644. Material GetMaterial() const;
  15645. ResourceRef GetMaterialAttr() const;
  15646. int GetMaxHeight() const;
  15647. int GetMaxWidth() const;
  15648. int GetMinHeight() const;
  15649. int GetMinWidth() const;
  15650. uint GetNumAttributes() const;
  15651. uint GetNumChildren(bool = false) const;
  15652. uint GetNumNetworkAttributes() const;
  15653. ObjectAnimation GetObjectAnimation() const;
  15654. ResourceRef GetObjectAnimationAttr() const;
  15655. float GetOpacity() const;
  15656. UIElement GetParent() const;
  15657. UIElement GetPopup() const;
  15658. int GetPriority() const;
  15659. float GetRepeatDelay() const;
  15660. float GetRepeatRate() const;
  15661. UIElement GetRoot() const;
  15662. bool GetShowPopup() const;
  15663. bool GetSortChildren() const;
  15664. Object GetSubsystem(StringHash) const;
  15665. Array<String> GetTags() const;
  15666. Texture GetTexture() const;
  15667. ResourceRef GetTextureAttr() const;
  15668. TraversalMode GetTraversalMode() const;
  15669. StringHash GetType() const;
  15670. bool GetUseDerivedOpacity() const;
  15671. VerticalAlignment GetVerticalAlignment() const;
  15672. int GetWidth() const;
  15673. bool HasColorGradient() const;
  15674. bool HasEventHandlers() const;
  15675. bool HasFocus() const;
  15676. bool HasSubscribedToEvent(Object, StringHash) const;
  15677. bool HasSubscribedToEvent(StringHash) const;
  15678. bool HasTag(const String&) const;
  15679. void InsertChild(uint, UIElement);
  15680. const IntRect& GetBorder() const;
  15681. const IntRect& GetClipBorder() const;
  15682. const IntRect& GetImageBorder() const;
  15683. const IntRect& GetImageRect() const;
  15684. const IntRect& GetLayoutBorder() const;
  15685. const IntVector2& GetChildOffset() const;
  15686. const IntVector2& GetDisabledOffset() const;
  15687. const IntVector2& GetHoverOffset() const;
  15688. const IntVector2& GetMaxOffset() const;
  15689. const IntVector2& GetMaxSize() const;
  15690. const IntVector2& GetMinOffset() const;
  15691. const IntVector2& GetMinSize() const;
  15692. const IntVector2& GetPopupOffset() const;
  15693. const IntVector2& GetPosition() const;
  15694. const IntVector2& GetPressedChildOffset() const;
  15695. const IntVector2& GetPressedOffset() const;
  15696. const IntVector2& GetScreenPosition() const;
  15697. const IntVector2& GetSize() const;
  15698. bool IsChildOf(UIElement) const;
  15699. bool IsEditable() const;
  15700. bool IsElementEventSender() const;
  15701. bool IsEnabled() const;
  15702. bool IsEnabledSelf() const;
  15703. bool IsFixedHeight() const;
  15704. bool IsFixedSize() const;
  15705. bool IsFixedWidth() const;
  15706. bool IsHovering() const;
  15707. bool IsInside(IntVector2, bool);
  15708. bool IsInsideCombined(IntVector2, bool);
  15709. bool IsInstanceOf(StringHash) const;
  15710. bool IsInternal() const;
  15711. bool IsPressed() const;
  15712. bool IsSelected() const;
  15713. bool IsTemporary() const;
  15714. bool IsTiled() const;
  15715. bool IsVisible() const;
  15716. bool IsVisibleEffective() const;
  15717. bool IsWheelHandler() const;
  15718. bool IsWithinScissor(const IntRect&);
  15719. bool Load(Deserializer&);
  15720. UIElement LoadChildXML(XMLFile, XMLFile);
  15721. UIElement LoadChildXML(const XMLElement&, XMLFile);
  15722. bool LoadJSON(const JSONValue&);
  15723. bool LoadXML(Deserializer&);
  15724. bool LoadXML(File);
  15725. bool LoadXML(VectorBuffer&);
  15726. bool LoadXML(XMLFile, XMLFile);
  15727. bool LoadXML(const XMLElement&);
  15728. bool LoadXML(const XMLElement&, XMLFile);
  15729. void MarkNetworkUpdate();
  15730. operator Object() const;
  15731. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  15732. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  15733. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  15734. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15735. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15736. bool OnDragDropFinish(UIElement);
  15737. bool OnDragDropTest(UIElement);
  15738. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15739. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15740. void OnEvent(Object, StringHash, VariantMap&);
  15741. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  15742. void OnHidePopup();
  15743. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15744. void OnIndentSet();
  15745. void OnKey(uint, uint, uint);
  15746. void OnPositionSet(const IntVector2&);
  15747. void OnResize(const IntVector2&, const IntVector2&);
  15748. void OnSetAttribute(const AttributeInfo&, const Variant&);
  15749. void OnSetEditable();
  15750. void OnShowPopup();
  15751. void OnTextInput(const String&);
  15752. void OnWheel(int, uint, uint);
  15753. bool ReadDeltaUpdate(Deserializer&);
  15754. bool ReadLatestDataUpdate(Deserializer&);
  15755. operator RefCounted() const;
  15756. int Refs() const;
  15757. void Remove();
  15758. void RemoveAllChildren();
  15759. void RemoveAllTags();
  15760. void RemoveAttributeAnimation(const String&);
  15761. void RemoveChild(UIElement, uint = 0);
  15762. void RemoveChild(uint);
  15763. void RemoveChildAtIndex(uint);
  15764. void RemoveInstanceDefault();
  15765. void RemoveObjectAnimation();
  15766. bool RemoveTag(const String&);
  15767. void ResetDeepEnabled();
  15768. void ResetToDefault();
  15769. bool Save(Serializer&) const;
  15770. bool SaveDefaultAttributes() const;
  15771. bool SaveJSON(JSONValue&) const;
  15772. bool SaveXML(File, const String& indentation = "\t");
  15773. bool SaveXML(Serializer&, const String& = "\t") const;
  15774. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  15775. bool SaveXML(XMLElement&) const;
  15776. IntVector2 ScreenToElement(const IntVector2&);
  15777. void SendEvent(StringHash);
  15778. void SendEvent(StringHash, VariantMap&);
  15779. operator Serializable() const;
  15780. void SetAccelerator(int, int);
  15781. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  15782. void SetAnimationEnabled(bool);
  15783. void SetAnimationTime(float);
  15784. bool SetAttribute(const String&, const Variant&);
  15785. bool SetAttribute(uint, const Variant&);
  15786. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15787. void SetAttributeAnimationSpeed(const String&, float);
  15788. void SetAttributeAnimationTime(const String&, float);
  15789. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15790. void SetBlendMode(BlendMode);
  15791. void SetBlockEvents(bool);
  15792. void SetBorder(const IntRect&);
  15793. void SetBringToBack(bool);
  15794. void SetBringToFront(bool);
  15795. void SetChildOffset(const IntVector2&);
  15796. void SetClipBorder(const IntRect&);
  15797. void SetClipChildren(bool);
  15798. void SetColor(Corner, const Color&);
  15799. void SetColor(const Color&);
  15800. void SetDeepEnabled(bool);
  15801. void SetDefaultStyle(XMLFile);
  15802. void SetDisabledOffset(const IntVector2&);
  15803. void SetDisabledOffset(int, int);
  15804. void SetDragDropMode(uint);
  15805. void SetEditable(bool);
  15806. void SetElementEventSender(bool);
  15807. void SetEnableAnchor(bool);
  15808. void SetEnabled(bool);
  15809. void SetEnabledRecursive(bool);
  15810. void SetFixedHeight(int);
  15811. void SetFixedSize(const IntVector2&);
  15812. void SetFixedSize(int, int);
  15813. void SetFixedWidth(int);
  15814. void SetFocus(bool);
  15815. void SetFocusMode(FocusMode);
  15816. void SetFullImageRect();
  15817. void SetGlobalVar(StringHash, const Variant&);
  15818. void SetHeight(int);
  15819. void SetHorizontalAlignment(HorizontalAlignment);
  15820. void SetHoverOffset(const IntVector2&);
  15821. void SetHoverOffset(int, int);
  15822. void SetHovering(bool);
  15823. void SetImageBorder(const IntRect&);
  15824. void SetImageRect(const IntRect&);
  15825. void SetIndent(int);
  15826. void SetIndentSpacing(int);
  15827. void SetInstanceDefault(bool);
  15828. void SetInterceptNetworkUpdate(const String&, bool);
  15829. void SetInternal(bool);
  15830. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  15831. void SetLayoutBorder(const IntRect&);
  15832. void SetLayoutFlexScale(const Vector2&);
  15833. void SetLayoutMode(LayoutMode);
  15834. void SetLayoutSpacing(int);
  15835. void SetMaterial(Material);
  15836. void SetMaterialAttr(const ResourceRef&);
  15837. void SetMaxAnchor(const Vector2&);
  15838. void SetMaxAnchor(float, float);
  15839. void SetMaxHeight(int);
  15840. void SetMaxOffset(const IntVector2&);
  15841. void SetMaxSize(const IntVector2&);
  15842. void SetMaxSize(int, int);
  15843. void SetMaxWidth(int);
  15844. void SetMinAnchor(const Vector2&);
  15845. void SetMinAnchor(float, float);
  15846. void SetMinHeight(int);
  15847. void SetMinOffset(const IntVector2&);
  15848. void SetMinSize(const IntVector2&);
  15849. void SetMinSize(int, int);
  15850. void SetMinWidth(int);
  15851. void SetName(const String&);
  15852. void SetObjectAnimation(ObjectAnimation);
  15853. void SetObjectAnimationAttr(const ResourceRef&);
  15854. void SetOpacity(float);
  15855. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  15856. void SetPivot(const Vector2&);
  15857. void SetPivot(float, float);
  15858. void SetPopup(UIElement);
  15859. void SetPopupOffset(const IntVector2&);
  15860. void SetPopupOffset(int, int);
  15861. void SetPosition(const IntVector2&);
  15862. void SetPosition(int, int);
  15863. void SetPressedChildOffset(const IntVector2&);
  15864. void SetPressedChildOffset(int, int);
  15865. void SetPressedOffset(const IntVector2&);
  15866. void SetPressedOffset(int, int);
  15867. void SetPriority(int);
  15868. void SetRenderTexture(Texture2D);
  15869. void SetRepeat(float, float);
  15870. void SetRepeatDelay(float);
  15871. void SetRepeatRate(float);
  15872. void SetSelected(bool);
  15873. void SetSize(const IntVector2&);
  15874. void SetSize(int, int);
  15875. void SetSortChildren(bool);
  15876. bool SetStyle(const String&, XMLFile = null);
  15877. bool SetStyle(const XMLElement&);
  15878. bool SetStyleAuto(XMLFile = null);
  15879. void SetTags(Array<String>);
  15880. void SetTemporary(bool);
  15881. void SetTexture(Texture);
  15882. void SetTextureAttr(const ResourceRef&);
  15883. void SetTiled(bool);
  15884. void SetTraversalMode(TraversalMode);
  15885. void SetUseDerivedOpacity(bool);
  15886. void SetVar(StringHash, const Variant&);
  15887. void SetVerticalAlignment(VerticalAlignment);
  15888. void SetVisible(bool);
  15889. void SetWidth(int);
  15890. void ShowPopup(bool);
  15891. void SortChildren();
  15892. const String& GetAppliedStyle() const;
  15893. const String& GetCategory() const;
  15894. const String& GetName() const;
  15895. const String& GetTypeName() const;
  15896. operator UIElement() const;
  15897. void UnsubscribeFromAllEvents();
  15898. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15899. void UnsubscribeFromEvent(Object, StringHash);
  15900. void UnsubscribeFromEvent(StringHash);
  15901. void UnsubscribeFromEvents(Object);
  15902. void Update(float);
  15903. void UpdateLayout();
  15904. const Variant& GetGlobalVar(StringHash) const;
  15905. const Variant& GetVar(const StringHash&) const;
  15906. const VariantMap& GetGlobalVars() const;
  15907. const VariantMap& GetVars() const;
  15908. const Vector2& GetLayoutFlexScale() const;
  15909. const Vector2& GetMaxAnchor() const;
  15910. const Vector2& GetMinAnchor() const;
  15911. const Vector2& GetPivot() const;
  15912. int WeakRefs() const;
  15913. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  15914. void WriteInitialDeltaUpdate(Serializer&, uint8);
  15915. void WriteLatestDataUpdate(Serializer&, uint8);
  15916. operator const Animatable() const;
  15917. operator const BorderImage() const;
  15918. operator const Button() const;
  15919. operator const DropDownList() const;
  15920. operator const Object() const;
  15921. operator const RefCounted() const;
  15922. operator const Serializable() const;
  15923. operator const UIElement() const;
  15924. // Properties:
  15925. /* readonly */
  15926. int acceleratorKey;
  15927. /* readonly */
  15928. int acceleratorQualifiers;
  15929. bool animationEnabled;
  15930. /* readonly */
  15931. Array<Variant> attributeDefaults;
  15932. /* readonly */
  15933. Array<AttributeInfo> attributeInfos;
  15934. Array<Variant> attributes;
  15935. BlendMode blendMode;
  15936. IntRect border;
  15937. bool bringToBack;
  15938. bool bringToFront;
  15939. /* readonly */
  15940. String category;
  15941. /* readonly */
  15942. IntVector2 childOffset;
  15943. /* readonly */
  15944. Array<UIElement> children;
  15945. IntRect clipBorder;
  15946. bool clipChildren;
  15947. /* writeonly */
  15948. Color color;
  15949. /* readonly */
  15950. bool colorGradient;
  15951. Array<Color> colors;
  15952. /* readonly */
  15953. IntRect combinedScreenRect;
  15954. XMLFile defaultStyle;
  15955. /* readonly */
  15956. float derivedOpacity;
  15957. IntVector2 disabledOffset;
  15958. /* readonly */
  15959. uint dragButtonCombo;
  15960. /* readonly */
  15961. uint dragButtonCount;
  15962. uint dragDropMode;
  15963. bool editable;
  15964. bool elementEventSender;
  15965. bool enableAnchor;
  15966. bool enabled;
  15967. /* readonly */
  15968. bool enabledSelf;
  15969. /* readonly */
  15970. bool fixedHeight;
  15971. /* readonly */
  15972. bool fixedSize;
  15973. /* readonly */
  15974. bool fixedWidth;
  15975. bool focus;
  15976. FocusMode focusMode;
  15977. Array<Variant> globalVar;
  15978. /* readonly */
  15979. VariantMap globalVars;
  15980. int height;
  15981. HorizontalAlignment horizontalAlignment;
  15982. IntVector2 hoverOffset;
  15983. /* readonly */
  15984. bool hovering;
  15985. IntRect imageBorder;
  15986. IntRect imageRect;
  15987. int indent;
  15988. int indentSpacing;
  15989. /* readonly */
  15990. int indentWidth;
  15991. bool internal;
  15992. IntRect layoutBorder;
  15993. Vector2 layoutFlexScale;
  15994. LayoutMode layoutMode;
  15995. int layoutSpacing;
  15996. Material material;
  15997. Vector2 maxAnchor;
  15998. int maxHeight;
  15999. IntVector2 maxOffset;
  16000. IntVector2 maxSize;
  16001. int maxWidth;
  16002. Vector2 minAnchor;
  16003. int minHeight;
  16004. IntVector2 minOffset;
  16005. IntVector2 minSize;
  16006. int minWidth;
  16007. String name;
  16008. /* readonly */
  16009. uint numAllChildren;
  16010. /* readonly */
  16011. uint numAttributes;
  16012. /* readonly */
  16013. uint numChildren;
  16014. ObjectAnimation objectAnimation;
  16015. float opacity;
  16016. UIElement parent;
  16017. Vector2 pivot;
  16018. UIElement popup;
  16019. IntVector2 popupOffset;
  16020. IntVector2 position;
  16021. /* readonly */
  16022. bool pressed;
  16023. IntVector2 pressedChildOffset;
  16024. IntVector2 pressedOffset;
  16025. int priority;
  16026. /* readonly */
  16027. int refs;
  16028. float repeatDelay;
  16029. float repeatRate;
  16030. /* readonly */
  16031. UIElement root;
  16032. /* readonly */
  16033. IntVector2 screenPosition;
  16034. bool selected;
  16035. bool showPopup;
  16036. IntVector2 size;
  16037. bool sortChildren;
  16038. String style;
  16039. /* readonly */
  16040. Array<String> tags;
  16041. bool temporary;
  16042. Texture texture;
  16043. bool tiled;
  16044. TraversalMode traversalMode;
  16045. /* readonly */
  16046. StringHash type;
  16047. /* readonly */
  16048. String typeName;
  16049. bool useDerivedOpacity;
  16050. /* readonly */
  16051. VariantMap vars;
  16052. VerticalAlignment verticalAlignment;
  16053. bool visible;
  16054. /* readonly */
  16055. bool visibleEffective;
  16056. /* readonly */
  16057. int weakRefs;
  16058. int width;
  16059. };
  16060. class MessageBox
  16061. {
  16062. public:
  16063. MessageBox(const String&in = String :: EMPTY, const String&in = String :: EMPTY, XMLFile& = null, XMLFile& = null);
  16064. // Methods:
  16065. bool GetBlockEvents() const;
  16066. VariantMap& GetEventDataMap() const;
  16067. Object GetEventSender() const;
  16068. Object GetSubsystem(StringHash) const;
  16069. StringHash GetType() const;
  16070. UIElement GetWindow() const;
  16071. bool HasEventHandlers() const;
  16072. bool HasSubscribedToEvent(Object, StringHash) const;
  16073. bool HasSubscribedToEvent(StringHash) const;
  16074. bool IsInstanceOf(StringHash) const;
  16075. operator Object() const;
  16076. void OnEvent(Object, StringHash, VariantMap&);
  16077. operator RefCounted() const;
  16078. int Refs() const;
  16079. void SendEvent(StringHash);
  16080. void SendEvent(StringHash, VariantMap&);
  16081. void SetBlockEvents(bool);
  16082. void SetGlobalVar(StringHash, const Variant&);
  16083. void SetMessage(const String&);
  16084. void SetTitle(const String&);
  16085. const String& GetCategory() const;
  16086. const String& GetMessage() const;
  16087. const String& GetTitle() const;
  16088. const String& GetTypeName() const;
  16089. void UnsubscribeFromAllEvents();
  16090. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16091. void UnsubscribeFromEvent(Object, StringHash);
  16092. void UnsubscribeFromEvent(StringHash);
  16093. void UnsubscribeFromEvents(Object);
  16094. const Variant& GetGlobalVar(StringHash) const;
  16095. const VariantMap& GetGlobalVars() const;
  16096. int WeakRefs() const;
  16097. operator const Object() const;
  16098. operator const RefCounted() const;
  16099. // Properties:
  16100. /* readonly */
  16101. String category;
  16102. Array<Variant> globalVar;
  16103. /* readonly */
  16104. VariantMap globalVars;
  16105. String message;
  16106. /* readonly */
  16107. int refs;
  16108. String title;
  16109. /* readonly */
  16110. StringHash type;
  16111. /* readonly */
  16112. String typeName;
  16113. /* readonly */
  16114. int weakRefs;
  16115. /* readonly */
  16116. UIElement window;
  16117. };
  16118. class Model
  16119. {
  16120. public:
  16121. Model();
  16122. // Methods:
  16123. void AddMetadata(const String&, const Variant&);
  16124. bool BeginLoad(Deserializer&);
  16125. const BoundingBox& GetBoundingBox() const;
  16126. Model Clone(const String& = String :: EMPTY) const;
  16127. bool EndLoad();
  16128. AsyncLoadState GetAsyncLoadState() const;
  16129. bool GetBlockEvents() const;
  16130. VariantMap& GetEventDataMap() const;
  16131. Object GetEventSender() const;
  16132. Geometry GetGeometry(uint, uint) const;
  16133. Array<Vector3> GetGeometryCenters() const;
  16134. Array<IndexBuffer> GetIndexBuffers() const;
  16135. uint GetMemoryUse() const;
  16136. uint GetMorphRangeCount(uint) const;
  16137. uint GetMorphRangeStart(uint) const;
  16138. StringHash GetNameHash() const;
  16139. uint GetNumGeometries() const;
  16140. uint GetNumGeometryLodLevels(uint) const;
  16141. uint GetNumMorphs() const;
  16142. Skeleton& GetSkeleton();
  16143. Object GetSubsystem(StringHash) const;
  16144. StringHash GetType() const;
  16145. uint GetUseTimer();
  16146. Array<VertexBuffer> GetVertexBuffers() const;
  16147. bool HasEventHandlers() const;
  16148. bool HasMetadata() const;
  16149. bool HasSubscribedToEvent(Object, StringHash) const;
  16150. bool HasSubscribedToEvent(StringHash) const;
  16151. bool IsInstanceOf(StringHash) const;
  16152. bool Load(Deserializer&);
  16153. bool Load(File);
  16154. bool Load(VectorBuffer&);
  16155. bool Load(const String&);
  16156. bool LoadFile(const String&);
  16157. operator Object() const;
  16158. void OnEvent(Object, StringHash, VariantMap&);
  16159. operator RefCounted() const;
  16160. int Refs() const;
  16161. void RemoveAllMetadata();
  16162. void RemoveMetadata(const String&);
  16163. void ResetUseTimer();
  16164. operator Resource() const;
  16165. operator ResourceWithMetadata() const;
  16166. bool Save(File) const;
  16167. bool Save(Serializer&) const;
  16168. bool Save(VectorBuffer&) const;
  16169. bool Save(const String&) const;
  16170. bool SaveFile(const String&) const;
  16171. void SendEvent(StringHash);
  16172. void SendEvent(StringHash, VariantMap&);
  16173. void SetAsyncLoadState(AsyncLoadState);
  16174. void SetBlockEvents(bool);
  16175. void SetBoundingBox(const BoundingBox&);
  16176. bool SetGeometry(uint, uint, Geometry);
  16177. bool SetGeometryCenter(uint, const Vector3&);
  16178. void SetGlobalVar(StringHash, const Variant&);
  16179. bool SetIndexBuffers(Array<IndexBuffer>);
  16180. void SetMemoryUse(uint);
  16181. void SetName(const String&);
  16182. void SetNumGeometries(uint);
  16183. bool SetNumGeometryLodLevels(uint, uint);
  16184. void SetSkeleton(const Skeleton&);
  16185. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  16186. const String& GetCategory() const;
  16187. const String& GetName() const;
  16188. const String& GetTypeName() const;
  16189. void UnsubscribeFromAllEvents();
  16190. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16191. void UnsubscribeFromEvent(Object, StringHash);
  16192. void UnsubscribeFromEvent(StringHash);
  16193. void UnsubscribeFromEvents(Object);
  16194. const Variant& GetGlobalVar(StringHash) const;
  16195. const Variant& GetMetadata(const String&) const;
  16196. const VariantMap& GetGlobalVars() const;
  16197. const Vector3& GetGeometryCenter(uint) const;
  16198. int WeakRefs() const;
  16199. operator const Object() const;
  16200. operator const RefCounted() const;
  16201. operator const Resource() const;
  16202. operator const ResourceWithMetadata() const;
  16203. // Properties:
  16204. BoundingBox boundingBox;
  16205. /* readonly */
  16206. String category;
  16207. Array<Vector3> geometryCenters;
  16208. Array<Variant> globalVar;
  16209. /* readonly */
  16210. VariantMap globalVars;
  16211. /* readonly */
  16212. bool hasMetadata;
  16213. /* readonly */
  16214. uint memoryUse;
  16215. Array<Variant> metadata;
  16216. String name;
  16217. uint numGeometries;
  16218. Array<uint> numGeometryLodLevels;
  16219. /* readonly */
  16220. uint numMorphs;
  16221. /* readonly */
  16222. int refs;
  16223. /* readonly */
  16224. Skeleton skeleton;
  16225. /* readonly */
  16226. StringHash type;
  16227. /* readonly */
  16228. String typeName;
  16229. /* readonly */
  16230. uint useTimer;
  16231. /* readonly */
  16232. int weakRefs;
  16233. };
  16234. class ModelMorph
  16235. {
  16236. public:
  16237. ~ModelMorph();
  16238. ModelMorph();
  16239. // Methods:
  16240. ModelMorph& operator=(const ModelMorph&);
  16241. // Properties:
  16242. String name;
  16243. StringHash nameHash;
  16244. float weight;
  16245. };
  16246. class Mutex
  16247. {
  16248. public:
  16249. ~Mutex();
  16250. Mutex();
  16251. // Methods:
  16252. Mutex& operator=(const Mutex&);
  16253. void Acquire();
  16254. void Release();
  16255. bool TryAcquire();
  16256. };
  16257. class MutexLock
  16258. {
  16259. public:
  16260. ~MutexLock();
  16261. MutexLock(Mutex&inout);
  16262. };
  16263. class NamedPipe
  16264. {
  16265. public:
  16266. NamedPipe();
  16267. NamedPipe(const String&in, bool);
  16268. // Methods:
  16269. void Close();
  16270. operator Deserializer() const;
  16271. bool GetBlockEvents() const;
  16272. uint GetChecksum();
  16273. VariantMap& GetEventDataMap() const;
  16274. Object GetEventSender() const;
  16275. uint GetPosition() const;
  16276. uint GetSize() const;
  16277. Object GetSubsystem(StringHash) const;
  16278. StringHash GetType() const;
  16279. bool HasEventHandlers() const;
  16280. bool HasSubscribedToEvent(Object, StringHash) const;
  16281. bool HasSubscribedToEvent(StringHash) const;
  16282. bool IsEof() const;
  16283. bool IsInstanceOf(StringHash) const;
  16284. bool IsOpen() const;
  16285. bool IsServer() const;
  16286. operator Object() const;
  16287. void OnEvent(Object, StringHash, VariantMap&);
  16288. bool Open(const String&, bool);
  16289. Array<uint8> Read(uint);
  16290. bool ReadBool();
  16291. BoundingBox ReadBoundingBox();
  16292. int8 ReadByte();
  16293. Color ReadColor();
  16294. double ReadDouble();
  16295. String ReadFileID();
  16296. float ReadFloat();
  16297. int ReadInt();
  16298. int64 ReadInt64();
  16299. IntRect ReadIntRect();
  16300. IntVector2 ReadIntVector2();
  16301. IntVector3 ReadIntVector3();
  16302. String ReadLine();
  16303. Matrix3 ReadMatrix3();
  16304. Matrix3x4 ReadMatrix3x4();
  16305. Matrix4 ReadMatrix4();
  16306. uint ReadNetID();
  16307. Quaternion ReadPackedQuaternion();
  16308. Vector3 ReadPackedVector3(float);
  16309. Quaternion ReadQuaternion();
  16310. Rect ReadRect();
  16311. ResourceRef ReadResourceRef();
  16312. ResourceRefList ReadResourceRefList();
  16313. int16 ReadShort();
  16314. String ReadString();
  16315. StringHash ReadStringHash();
  16316. Array<String> ReadStringVector();
  16317. uint8 ReadUByte();
  16318. uint ReadUInt();
  16319. uint64 ReadUInt64();
  16320. uint16 ReadUShort();
  16321. uint ReadVLE();
  16322. Variant ReadVariant();
  16323. Variant ReadVariant(VariantType);
  16324. VariantMap ReadVariantMap();
  16325. Vector2 ReadVector2();
  16326. Vector3 ReadVector3();
  16327. Vector4 ReadVector4();
  16328. VectorBuffer ReadVectorBuffer(uint);
  16329. operator RefCounted() const;
  16330. int Refs() const;
  16331. uint Seek(uint);
  16332. uint SeekRelative(int);
  16333. void SendEvent(StringHash);
  16334. void SendEvent(StringHash, VariantMap&);
  16335. operator Serializer() const;
  16336. void SetBlockEvents(bool);
  16337. void SetGlobalVar(StringHash, const Variant&);
  16338. void SetName(const String&);
  16339. const String& GetCategory() const;
  16340. const String& GetName() const;
  16341. const String& GetTypeName() const;
  16342. uint Tell() const;
  16343. void UnsubscribeFromAllEvents();
  16344. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16345. void UnsubscribeFromEvent(Object, StringHash);
  16346. void UnsubscribeFromEvent(StringHash);
  16347. void UnsubscribeFromEvents(Object);
  16348. const Variant& GetGlobalVar(StringHash) const;
  16349. const VariantMap& GetGlobalVars() const;
  16350. int WeakRefs() const;
  16351. uint Write(Array<uint8>);
  16352. bool WriteBool(bool);
  16353. bool WriteBoundingBox(const BoundingBox&);
  16354. bool WriteByte(int8);
  16355. bool WriteColor(const Color&);
  16356. bool WriteDouble(double);
  16357. bool WriteFileID(const String&);
  16358. bool WriteFloat(float);
  16359. bool WriteInt(int);
  16360. bool WriteInt64(int64);
  16361. bool WriteIntRect(const IntRect&);
  16362. bool WriteIntVector2(const IntVector2&);
  16363. bool WriteIntVector3(const IntVector3&);
  16364. bool WriteLine(const String&);
  16365. bool WriteMatrix3(const Matrix3&);
  16366. bool WriteMatrix3x4(const Matrix3x4&);
  16367. bool WriteMatrix4(const Matrix4&);
  16368. bool WriteNetID(uint);
  16369. bool WritePackedQuaternion(const Quaternion&);
  16370. bool WritePackedVector3(const Vector3&, float);
  16371. bool WriteQuaternion(const Quaternion&);
  16372. bool WriteRect(const Rect&);
  16373. bool WriteResourceRef(const ResourceRef&);
  16374. bool WriteResourceRefList(const ResourceRefList&);
  16375. bool WriteShort(int16);
  16376. bool WriteString(const String&);
  16377. bool WriteStringHash(const StringHash&);
  16378. bool WriteStringVector(Array<String>);
  16379. bool WriteUByte(uint8);
  16380. bool WriteUInt(uint);
  16381. bool WriteUInt64(uint64);
  16382. bool WriteUShort(uint16);
  16383. bool WriteVLE(uint);
  16384. bool WriteVariant(const Variant&);
  16385. bool WriteVariantData(const Variant&);
  16386. bool WriteVariantMap(const VariantMap&);
  16387. bool WriteVector2(const Vector2&);
  16388. bool WriteVector3(const Vector3&);
  16389. bool WriteVector4(const Vector4&);
  16390. bool WriteVectorBuffer(const VectorBuffer&);
  16391. operator const Deserializer() const;
  16392. operator const Object() const;
  16393. operator const RefCounted() const;
  16394. operator const Serializer() const;
  16395. // Properties:
  16396. /* readonly */
  16397. String category;
  16398. /* readonly */
  16399. uint checksum;
  16400. /* readonly */
  16401. bool eof;
  16402. Array<Variant> globalVar;
  16403. /* readonly */
  16404. VariantMap globalVars;
  16405. String name;
  16406. /* readonly */
  16407. bool open;
  16408. /* readonly */
  16409. uint position;
  16410. /* readonly */
  16411. int refs;
  16412. /* readonly */
  16413. bool server;
  16414. /* readonly */
  16415. uint size;
  16416. /* readonly */
  16417. StringHash type;
  16418. /* readonly */
  16419. String typeName;
  16420. /* readonly */
  16421. int weakRefs;
  16422. };
  16423. class NavArea
  16424. {
  16425. public:
  16426. NavArea();
  16427. // Methods:
  16428. void AllocateNetworkState();
  16429. operator Animatable() const;
  16430. void ApplyAttributes();
  16431. void CleanupConnection(Connection);
  16432. operator Component() const;
  16433. void DrawDebugGeometry(DebugRenderer, bool);
  16434. bool GetAnimationEnabled() const;
  16435. uint GetAreaID() const;
  16436. Variant GetAttribute(const String&) const;
  16437. Variant GetAttribute(uint) const;
  16438. ValueAnimation GetAttributeAnimation(const String&) const;
  16439. float GetAttributeAnimationSpeed(const String&) const;
  16440. float GetAttributeAnimationTime(const String&) const;
  16441. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16442. Variant GetAttributeDefault(const String&) const;
  16443. Variant GetAttributeDefault(uint) const;
  16444. bool GetBlockEvents() const;
  16445. BoundingBox GetBoundingBox() const;
  16446. Component GetComponent(StringHash) const;
  16447. VariantMap& GetEventDataMap() const;
  16448. Object GetEventSender() const;
  16449. uint GetID() const;
  16450. bool GetInterceptNetworkUpdate(const String&) const;
  16451. Node GetNode() const;
  16452. uint GetNumAttributes() const;
  16453. uint GetNumNetworkAttributes() const;
  16454. ObjectAnimation GetObjectAnimation() const;
  16455. ResourceRef GetObjectAnimationAttr() const;
  16456. Scene GetScene() const;
  16457. Object GetSubsystem(StringHash) const;
  16458. StringHash GetType() const;
  16459. BoundingBox GetWorldBoundingBox() const;
  16460. bool HasEventHandlers() const;
  16461. bool HasSubscribedToEvent(Object, StringHash) const;
  16462. bool HasSubscribedToEvent(StringHash) const;
  16463. bool IsEnabled() const;
  16464. bool IsEnabledEffective() const;
  16465. bool IsInstanceOf(StringHash) const;
  16466. bool IsReplicated() const;
  16467. bool IsTemporary() const;
  16468. bool Load(Deserializer&);
  16469. bool LoadJSON(const JSONValue&);
  16470. bool LoadXML(const XMLElement&);
  16471. void MarkNetworkUpdate();
  16472. operator Object() const;
  16473. void OnEvent(Object, StringHash, VariantMap&);
  16474. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16475. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16476. void OnSetEnabled();
  16477. void PrepareNetworkUpdate();
  16478. bool ReadDeltaUpdate(Deserializer&);
  16479. bool ReadLatestDataUpdate(Deserializer&);
  16480. operator RefCounted() const;
  16481. int Refs() const;
  16482. void Remove();
  16483. void RemoveAttributeAnimation(const String&);
  16484. void RemoveInstanceDefault();
  16485. void RemoveObjectAnimation();
  16486. void ResetToDefault();
  16487. bool Save(Serializer&) const;
  16488. bool SaveDefaultAttributes() const;
  16489. bool SaveJSON(JSONValue&) const;
  16490. bool SaveXML(XMLElement&) const;
  16491. void SendEvent(StringHash);
  16492. void SendEvent(StringHash, VariantMap&);
  16493. operator Serializable() const;
  16494. void SetAnimationEnabled(bool);
  16495. void SetAnimationTime(float);
  16496. void SetAreaID(uint);
  16497. bool SetAttribute(const String&, const Variant&);
  16498. bool SetAttribute(uint, const Variant&);
  16499. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16500. void SetAttributeAnimationSpeed(const String&, float);
  16501. void SetAttributeAnimationTime(const String&, float);
  16502. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16503. void SetBlockEvents(bool);
  16504. void SetBoundingBox(const BoundingBox&);
  16505. void SetEnabled(bool);
  16506. void SetGlobalVar(StringHash, const Variant&);
  16507. void SetInstanceDefault(bool);
  16508. void SetInterceptNetworkUpdate(const String&, bool);
  16509. void SetObjectAnimation(ObjectAnimation);
  16510. void SetObjectAnimationAttr(const ResourceRef&);
  16511. void SetTemporary(bool);
  16512. const String& GetCategory() const;
  16513. const String& GetTypeName() const;
  16514. void UnsubscribeFromAllEvents();
  16515. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16516. void UnsubscribeFromEvent(Object, StringHash);
  16517. void UnsubscribeFromEvent(StringHash);
  16518. void UnsubscribeFromEvents(Object);
  16519. const Variant& GetGlobalVar(StringHash) const;
  16520. const VariantMap& GetGlobalVars() const;
  16521. int WeakRefs() const;
  16522. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16523. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16524. void WriteLatestDataUpdate(Serializer&, uint8);
  16525. operator const Animatable() const;
  16526. operator const Component() const;
  16527. operator const Object() const;
  16528. operator const RefCounted() const;
  16529. operator const Serializable() const;
  16530. // Properties:
  16531. bool animationEnabled;
  16532. uint areaID;
  16533. /* readonly */
  16534. Array<Variant> attributeDefaults;
  16535. /* readonly */
  16536. Array<AttributeInfo> attributeInfos;
  16537. Array<Variant> attributes;
  16538. BoundingBox boundingBox;
  16539. /* readonly */
  16540. String category;
  16541. bool enabled;
  16542. /* readonly */
  16543. bool enabledEffective;
  16544. Array<Variant> globalVar;
  16545. /* readonly */
  16546. VariantMap globalVars;
  16547. /* readonly */
  16548. uint id;
  16549. /* readonly */
  16550. Node node;
  16551. /* readonly */
  16552. uint numAttributes;
  16553. ObjectAnimation objectAnimation;
  16554. /* readonly */
  16555. int refs;
  16556. /* readonly */
  16557. bool replicated;
  16558. bool temporary;
  16559. /* readonly */
  16560. StringHash type;
  16561. /* readonly */
  16562. String typeName;
  16563. /* readonly */
  16564. int weakRefs;
  16565. /* readonly */
  16566. BoundingBox worldBoundingBox;
  16567. };
  16568. class NavAreaStub
  16569. {
  16570. public:
  16571. ~NavAreaStub();
  16572. NavAreaStub();
  16573. // Methods:
  16574. NavAreaStub& operator=(const NavAreaStub&);
  16575. // Properties:
  16576. uint8 areaID;
  16577. BoundingBox bounds;
  16578. };
  16579. class NavBuildData
  16580. {
  16581. public:
  16582. ~NavBuildData();
  16583. NavBuildData();
  16584. // Methods:
  16585. NavBuildData& operator=(const NavBuildData&);
  16586. // Properties:
  16587. BoundingBox worldBoundingBox;
  16588. };
  16589. class Navigable
  16590. {
  16591. public:
  16592. Navigable();
  16593. // Methods:
  16594. void AllocateNetworkState();
  16595. operator Animatable() const;
  16596. void ApplyAttributes();
  16597. void CleanupConnection(Connection);
  16598. operator Component() const;
  16599. void DrawDebugGeometry(DebugRenderer, bool);
  16600. bool GetAnimationEnabled() const;
  16601. Variant GetAttribute(const String&) const;
  16602. Variant GetAttribute(uint) const;
  16603. ValueAnimation GetAttributeAnimation(const String&) const;
  16604. float GetAttributeAnimationSpeed(const String&) const;
  16605. float GetAttributeAnimationTime(const String&) const;
  16606. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16607. Variant GetAttributeDefault(const String&) const;
  16608. Variant GetAttributeDefault(uint) const;
  16609. bool GetBlockEvents() const;
  16610. Component GetComponent(StringHash) const;
  16611. VariantMap& GetEventDataMap() const;
  16612. Object GetEventSender() const;
  16613. uint GetID() const;
  16614. bool GetInterceptNetworkUpdate(const String&) const;
  16615. Node GetNode() const;
  16616. uint GetNumAttributes() const;
  16617. uint GetNumNetworkAttributes() const;
  16618. ObjectAnimation GetObjectAnimation() const;
  16619. ResourceRef GetObjectAnimationAttr() const;
  16620. Scene GetScene() const;
  16621. Object GetSubsystem(StringHash) const;
  16622. StringHash GetType() const;
  16623. bool HasEventHandlers() const;
  16624. bool HasSubscribedToEvent(Object, StringHash) const;
  16625. bool HasSubscribedToEvent(StringHash) const;
  16626. bool IsEnabled() const;
  16627. bool IsEnabledEffective() const;
  16628. bool IsInstanceOf(StringHash) const;
  16629. bool IsRecursive() const;
  16630. bool IsReplicated() const;
  16631. bool IsTemporary() const;
  16632. bool Load(Deserializer&);
  16633. bool LoadJSON(const JSONValue&);
  16634. bool LoadXML(const XMLElement&);
  16635. void MarkNetworkUpdate();
  16636. operator Object() const;
  16637. void OnEvent(Object, StringHash, VariantMap&);
  16638. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16639. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16640. void OnSetEnabled();
  16641. void PrepareNetworkUpdate();
  16642. bool ReadDeltaUpdate(Deserializer&);
  16643. bool ReadLatestDataUpdate(Deserializer&);
  16644. operator RefCounted() const;
  16645. int Refs() const;
  16646. void Remove();
  16647. void RemoveAttributeAnimation(const String&);
  16648. void RemoveInstanceDefault();
  16649. void RemoveObjectAnimation();
  16650. void ResetToDefault();
  16651. bool Save(Serializer&) const;
  16652. bool SaveDefaultAttributes() const;
  16653. bool SaveJSON(JSONValue&) const;
  16654. bool SaveXML(XMLElement&) const;
  16655. void SendEvent(StringHash);
  16656. void SendEvent(StringHash, VariantMap&);
  16657. operator Serializable() const;
  16658. void SetAnimationEnabled(bool);
  16659. void SetAnimationTime(float);
  16660. bool SetAttribute(const String&, const Variant&);
  16661. bool SetAttribute(uint, const Variant&);
  16662. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16663. void SetAttributeAnimationSpeed(const String&, float);
  16664. void SetAttributeAnimationTime(const String&, float);
  16665. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16666. void SetBlockEvents(bool);
  16667. void SetEnabled(bool);
  16668. void SetGlobalVar(StringHash, const Variant&);
  16669. void SetInstanceDefault(bool);
  16670. void SetInterceptNetworkUpdate(const String&, bool);
  16671. void SetObjectAnimation(ObjectAnimation);
  16672. void SetObjectAnimationAttr(const ResourceRef&);
  16673. void SetRecursive(bool);
  16674. void SetTemporary(bool);
  16675. const String& GetCategory() const;
  16676. const String& GetTypeName() const;
  16677. void UnsubscribeFromAllEvents();
  16678. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16679. void UnsubscribeFromEvent(Object, StringHash);
  16680. void UnsubscribeFromEvent(StringHash);
  16681. void UnsubscribeFromEvents(Object);
  16682. const Variant& GetGlobalVar(StringHash) const;
  16683. const VariantMap& GetGlobalVars() const;
  16684. int WeakRefs() const;
  16685. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16686. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16687. void WriteLatestDataUpdate(Serializer&, uint8);
  16688. operator const Animatable() const;
  16689. operator const Component() const;
  16690. operator const Object() const;
  16691. operator const RefCounted() const;
  16692. operator const Serializable() const;
  16693. // Properties:
  16694. bool animationEnabled;
  16695. /* readonly */
  16696. Array<Variant> attributeDefaults;
  16697. /* readonly */
  16698. Array<AttributeInfo> attributeInfos;
  16699. Array<Variant> attributes;
  16700. /* readonly */
  16701. String category;
  16702. bool enabled;
  16703. /* readonly */
  16704. bool enabledEffective;
  16705. Array<Variant> globalVar;
  16706. /* readonly */
  16707. VariantMap globalVars;
  16708. /* readonly */
  16709. uint id;
  16710. /* readonly */
  16711. Node node;
  16712. /* readonly */
  16713. uint numAttributes;
  16714. ObjectAnimation objectAnimation;
  16715. bool recursive;
  16716. /* readonly */
  16717. int refs;
  16718. /* readonly */
  16719. bool replicated;
  16720. bool temporary;
  16721. /* readonly */
  16722. StringHash type;
  16723. /* readonly */
  16724. String typeName;
  16725. /* readonly */
  16726. int weakRefs;
  16727. };
  16728. class NavigationGeometryInfo
  16729. {
  16730. public:
  16731. ~NavigationGeometryInfo();
  16732. NavigationGeometryInfo();
  16733. // Methods:
  16734. NavigationGeometryInfo& operator=(const NavigationGeometryInfo&);
  16735. // Properties:
  16736. BoundingBox boundingBox;
  16737. uint lodLevel;
  16738. Matrix3x4 transform;
  16739. };
  16740. class NavigationMesh
  16741. {
  16742. public:
  16743. NavigationMesh();
  16744. // Methods:
  16745. bool AddTile(const VectorBuffer&) const;
  16746. bool Allocate(const BoundingBox&, uint);
  16747. void AllocateNetworkState();
  16748. operator Animatable() const;
  16749. void ApplyAttributes();
  16750. const BoundingBox& GetBoundingBox() const;
  16751. bool Build();
  16752. bool Build(const BoundingBox&);
  16753. bool Build(const IntVector2&, const IntVector2&);
  16754. void CleanupConnection(Connection);
  16755. operator Component() const;
  16756. void DrawDebugGeometry(DebugRenderer, bool);
  16757. void DrawDebugGeometry(bool);
  16758. operator DynamicNavigationMesh() const;
  16759. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 :: ONE);
  16760. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& extents = Vector3 :: ONE);
  16761. float GetAgentHeight() const;
  16762. float GetAgentMaxClimb() const;
  16763. float GetAgentMaxSlope() const;
  16764. float GetAgentRadius() const;
  16765. bool GetAnimationEnabled() const;
  16766. float GetAreaCost(uint) const;
  16767. Variant GetAttribute(const String&) const;
  16768. Variant GetAttribute(uint) const;
  16769. ValueAnimation GetAttributeAnimation(const String&) const;
  16770. float GetAttributeAnimationSpeed(const String&) const;
  16771. float GetAttributeAnimationTime(const String&) const;
  16772. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16773. Variant GetAttributeDefault(const String&) const;
  16774. Variant GetAttributeDefault(uint) const;
  16775. bool GetBlockEvents() const;
  16776. float GetCellHeight() const;
  16777. float GetCellSize() const;
  16778. Component GetComponent(StringHash) const;
  16779. float GetDetailSampleDistance() const;
  16780. float GetDetailSampleMaxError() const;
  16781. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  16782. bool GetDrawNavAreas() const;
  16783. bool GetDrawOffMeshConnections() const;
  16784. float GetEdgeMaxError() const;
  16785. float GetEdgeMaxLength() const;
  16786. VariantMap& GetEventDataMap() const;
  16787. Object GetEventSender() const;
  16788. uint GetID() const;
  16789. bool GetInterceptNetworkUpdate(const String&) const;
  16790. String GetMeshName() const;
  16791. Node GetNode() const;
  16792. uint GetNumAttributes() const;
  16793. uint GetNumNetworkAttributes() const;
  16794. IntVector2 GetNumTiles() const;
  16795. ObjectAnimation GetObjectAnimation() const;
  16796. ResourceRef GetObjectAnimationAttr() const;
  16797. NavmeshPartitionType GetPartitionType() const;
  16798. Vector3 GetRandomPoint();
  16799. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  16800. float GetRegionMergeSize() const;
  16801. float GetRegionMinSize() const;
  16802. Scene GetScene() const;
  16803. Object GetSubsystem(StringHash) const;
  16804. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  16805. VectorBuffer GetTileData(const IntVector2&) const;
  16806. IntVector2 GetTileIndex(const Vector3&) const;
  16807. int GetTileSize() const;
  16808. StringHash GetType() const;
  16809. BoundingBox GetWorldBoundingBox() const;
  16810. bool HasEventHandlers() const;
  16811. bool HasSubscribedToEvent(Object, StringHash) const;
  16812. bool HasSubscribedToEvent(StringHash) const;
  16813. bool HasTile(const IntVector2&) const;
  16814. bool IsEnabled() const;
  16815. bool IsEnabledEffective() const;
  16816. bool IsInitialized() const;
  16817. bool IsInstanceOf(StringHash) const;
  16818. bool IsReplicated() const;
  16819. bool IsTemporary() const;
  16820. bool Load(Deserializer&);
  16821. bool LoadJSON(const JSONValue&);
  16822. bool LoadXML(const XMLElement&);
  16823. void MarkNetworkUpdate();
  16824. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE, int = 3);
  16825. operator Object() const;
  16826. void OnEvent(Object, StringHash, VariantMap&);
  16827. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16828. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16829. void OnSetEnabled();
  16830. void PrepareNetworkUpdate();
  16831. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE);
  16832. bool ReadDeltaUpdate(Deserializer&);
  16833. bool ReadLatestDataUpdate(Deserializer&);
  16834. operator RefCounted() const;
  16835. int Refs() const;
  16836. void Remove();
  16837. void RemoveAllTiles();
  16838. void RemoveAttributeAnimation(const String&);
  16839. void RemoveInstanceDefault();
  16840. void RemoveObjectAnimation();
  16841. void RemoveTile(const IntVector2&);
  16842. void ResetToDefault();
  16843. bool Save(Serializer&) const;
  16844. bool SaveDefaultAttributes() const;
  16845. bool SaveJSON(JSONValue&) const;
  16846. bool SaveXML(XMLElement&) const;
  16847. void SendEvent(StringHash);
  16848. void SendEvent(StringHash, VariantMap&);
  16849. operator Serializable() const;
  16850. void SetAgentHeight(float);
  16851. void SetAgentMaxClimb(float);
  16852. void SetAgentMaxSlope(float);
  16853. void SetAgentRadius(float);
  16854. void SetAnimationEnabled(bool);
  16855. void SetAnimationTime(float);
  16856. void SetAreaCost(uint, float);
  16857. bool SetAttribute(const String&, const Variant&);
  16858. bool SetAttribute(uint, const Variant&);
  16859. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16860. void SetAttributeAnimationSpeed(const String&, float);
  16861. void SetAttributeAnimationTime(const String&, float);
  16862. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16863. void SetBlockEvents(bool);
  16864. void SetCellHeight(float);
  16865. void SetCellSize(float);
  16866. void SetDetailSampleDistance(float);
  16867. void SetDetailSampleMaxError(float);
  16868. void SetDrawNavAreas(bool);
  16869. void SetDrawOffMeshConnections(bool);
  16870. void SetEdgeMaxError(float);
  16871. void SetEdgeMaxLength(float);
  16872. void SetEnabled(bool);
  16873. void SetGlobalVar(StringHash, const Variant&);
  16874. void SetInstanceDefault(bool);
  16875. void SetInterceptNetworkUpdate(const String&, bool);
  16876. void SetMeshName(const String&);
  16877. void SetObjectAnimation(ObjectAnimation);
  16878. void SetObjectAnimationAttr(const ResourceRef&);
  16879. void SetPadding(const Vector3&);
  16880. void SetPartitionType(NavmeshPartitionType);
  16881. void SetRegionMergeSize(float);
  16882. void SetRegionMinSize(float);
  16883. void SetTemporary(bool);
  16884. void SetTileSize(int);
  16885. const String& GetCategory() const;
  16886. const String& GetTypeName() const;
  16887. void UnsubscribeFromAllEvents();
  16888. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16889. void UnsubscribeFromEvent(Object, StringHash);
  16890. void UnsubscribeFromEvent(StringHash);
  16891. void UnsubscribeFromEvents(Object);
  16892. const Variant& GetGlobalVar(StringHash) const;
  16893. const VariantMap& GetGlobalVars() const;
  16894. const Vector3& GetPadding() const;
  16895. int WeakRefs() const;
  16896. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16897. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16898. void WriteLatestDataUpdate(Serializer&, uint8);
  16899. operator const Animatable() const;
  16900. operator const Component() const;
  16901. operator const DynamicNavigationMesh() const;
  16902. operator const Object() const;
  16903. operator const RefCounted() const;
  16904. operator const Serializable() const;
  16905. // Properties:
  16906. float agentHeight;
  16907. float agentMaxClimb;
  16908. float agentMaxSlope;
  16909. float agentRadius;
  16910. bool animationEnabled;
  16911. /* readonly */
  16912. Array<Variant> attributeDefaults;
  16913. /* readonly */
  16914. Array<AttributeInfo> attributeInfos;
  16915. Array<Variant> attributes;
  16916. /* readonly */
  16917. BoundingBox boundingBox;
  16918. /* readonly */
  16919. String category;
  16920. float cellHeight;
  16921. float cellSize;
  16922. float detailSampleDistance;
  16923. float detailSampleMaxError;
  16924. bool drawNavAreas;
  16925. bool drawOffMeshConnections;
  16926. float edgeMaxError;
  16927. float edgeMaxLength;
  16928. bool enabled;
  16929. /* readonly */
  16930. bool enabledEffective;
  16931. Array<Variant> globalVar;
  16932. /* readonly */
  16933. VariantMap globalVars;
  16934. /* readonly */
  16935. uint id;
  16936. /* readonly */
  16937. bool initialized;
  16938. /* readonly */
  16939. Node node;
  16940. /* readonly */
  16941. uint numAttributes;
  16942. /* readonly */
  16943. IntVector2 numTiles;
  16944. ObjectAnimation objectAnimation;
  16945. Vector3 padding;
  16946. NavmeshPartitionType partitionType;
  16947. /* readonly */
  16948. int refs;
  16949. float regionMergeSize;
  16950. float regionMinSize;
  16951. /* readonly */
  16952. bool replicated;
  16953. bool temporary;
  16954. int tileSize;
  16955. /* readonly */
  16956. StringHash type;
  16957. /* readonly */
  16958. String typeName;
  16959. /* readonly */
  16960. int weakRefs;
  16961. /* readonly */
  16962. BoundingBox worldBoundingBox;
  16963. };
  16964. class NavigationPathPoint
  16965. {
  16966. public:
  16967. ~NavigationPathPoint();
  16968. NavigationPathPoint();
  16969. // Methods:
  16970. NavigationPathPoint& operator=(const NavigationPathPoint&);
  16971. // Properties:
  16972. uint8 areaID;
  16973. NavigationPathPointFlag flag;
  16974. Vector3 position;
  16975. };
  16976. class Network
  16977. {
  16978. public:
  16979. Network();
  16980. // Methods:
  16981. void AttemptNATPunchtrough(const String&, Scene, const VariantMap& = VariantMap ( ));
  16982. void BanAddress(const String&);
  16983. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  16984. void BroadcastRemoteEvent(Node, StringHash, bool, const VariantMap& = VariantMap ( ));
  16985. void BroadcastRemoteEvent(Scene, StringHash, bool, const VariantMap& = VariantMap ( ));
  16986. void BroadcastRemoteEvent(StringHash, bool, const VariantMap& = VariantMap ( ));
  16987. bool CheckRemoteEvent(StringHash) const;
  16988. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  16989. void Disconnect(int = 0);
  16990. void DiscoverHosts(uint);
  16991. bool GetBlockEvents() const;
  16992. Array<Connection> GetClientConnections() const;
  16993. VariantMap& GetEventDataMap() const;
  16994. Object GetEventSender() const;
  16995. Connection GetServerConnection() const;
  16996. int GetSimulatedLatency() const;
  16997. float GetSimulatedPacketLoss() const;
  16998. Object GetSubsystem(StringHash) const;
  16999. StringHash GetType() const;
  17000. int GetUpdateFps() const;
  17001. bool HasEventHandlers() const;
  17002. bool HasSubscribedToEvent(Object, StringHash) const;
  17003. bool HasSubscribedToEvent(StringHash) const;
  17004. bool IsInstanceOf(StringHash) const;
  17005. bool IsServerRunning() const;
  17006. HttpRequest MakeHttpRequest(const String&, const String& = String :: EMPTY, Array<String> = null, const String& = String :: EMPTY);
  17007. operator Object() const;
  17008. void OnEvent(Object, StringHash, VariantMap&);
  17009. void PostUpdate(float);
  17010. operator RefCounted() const;
  17011. int Refs() const;
  17012. void RegisterRemoteEvent(StringHash);
  17013. void SendEvent(StringHash);
  17014. void SendEvent(StringHash, VariantMap&);
  17015. void SendPackageToClients(Scene, PackageFile);
  17016. void SetBlockEvents(bool);
  17017. void SetDiscoveryBeacon(const VariantMap&);
  17018. void SetGlobalVar(StringHash, const Variant&);
  17019. void SetNATServerInfo(const String&, uint16);
  17020. void SetPackageCacheDir(const String&);
  17021. void SetPassword(const String&);
  17022. void SetSimulatedLatency(int);
  17023. void SetSimulatedPacketLoss(float);
  17024. void SetUpdateFps(int);
  17025. void StartNATClient();
  17026. bool StartServer(uint16, uint = 128);
  17027. void StopServer();
  17028. const String& GetCategory() const;
  17029. const String& GetGUID() const;
  17030. const String& GetPackageCacheDir() const;
  17031. const String& GetTypeName() const;
  17032. void UnregisterAllRemoteEvents();
  17033. void UnregisterRemoteEvent(StringHash);
  17034. void UnsubscribeFromAllEvents();
  17035. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17036. void UnsubscribeFromEvent(Object, StringHash);
  17037. void UnsubscribeFromEvent(StringHash);
  17038. void UnsubscribeFromEvents(Object);
  17039. void Update(float);
  17040. const Variant& GetGlobalVar(StringHash) const;
  17041. const VariantMap& GetGlobalVars() const;
  17042. int WeakRefs() const;
  17043. operator const Object() const;
  17044. operator const RefCounted() const;
  17045. // Properties:
  17046. /* readonly */
  17047. String category;
  17048. /* readonly */
  17049. Array<Connection> clientConnections;
  17050. Array<Variant> globalVar;
  17051. /* readonly */
  17052. VariantMap globalVars;
  17053. /* readonly */
  17054. String guid;
  17055. String packageCacheDir;
  17056. /* readonly */
  17057. int refs;
  17058. /* readonly */
  17059. Connection serverConnection;
  17060. /* readonly */
  17061. bool serverRunning;
  17062. int simulatedLatency;
  17063. float simulatedPacketLoss;
  17064. /* readonly */
  17065. StringHash type;
  17066. /* readonly */
  17067. String typeName;
  17068. int updateFps;
  17069. /* readonly */
  17070. int weakRefs;
  17071. };
  17072. class NetworkPriority
  17073. {
  17074. public:
  17075. NetworkPriority();
  17076. // Methods:
  17077. void AllocateNetworkState();
  17078. operator Animatable() const;
  17079. void ApplyAttributes();
  17080. bool CheckUpdate(float, float&);
  17081. void CleanupConnection(Connection);
  17082. operator Component() const;
  17083. void DrawDebugGeometry(DebugRenderer, bool);
  17084. bool GetAlwaysUpdateOwner() const;
  17085. bool GetAnimationEnabled() const;
  17086. Variant GetAttribute(const String&) const;
  17087. Variant GetAttribute(uint) const;
  17088. ValueAnimation GetAttributeAnimation(const String&) const;
  17089. float GetAttributeAnimationSpeed(const String&) const;
  17090. float GetAttributeAnimationTime(const String&) const;
  17091. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  17092. Variant GetAttributeDefault(const String&) const;
  17093. Variant GetAttributeDefault(uint) const;
  17094. float GetBasePriority() const;
  17095. bool GetBlockEvents() const;
  17096. Component GetComponent(StringHash) const;
  17097. float GetDistanceFactor() const;
  17098. VariantMap& GetEventDataMap() const;
  17099. Object GetEventSender() const;
  17100. uint GetID() const;
  17101. bool GetInterceptNetworkUpdate(const String&) const;
  17102. float GetMinPriority() const;
  17103. Node GetNode() const;
  17104. uint GetNumAttributes() const;
  17105. uint GetNumNetworkAttributes() const;
  17106. ObjectAnimation GetObjectAnimation() const;
  17107. ResourceRef GetObjectAnimationAttr() const;
  17108. Scene GetScene() const;
  17109. Object GetSubsystem(StringHash) const;
  17110. StringHash GetType() const;
  17111. bool HasEventHandlers() const;
  17112. bool HasSubscribedToEvent(Object, StringHash) const;
  17113. bool HasSubscribedToEvent(StringHash) const;
  17114. bool IsEnabled() const;
  17115. bool IsEnabledEffective() const;
  17116. bool IsInstanceOf(StringHash) const;
  17117. bool IsReplicated() const;
  17118. bool IsTemporary() const;
  17119. bool Load(Deserializer&);
  17120. bool LoadJSON(const JSONValue&);
  17121. bool LoadXML(const XMLElement&);
  17122. void MarkNetworkUpdate();
  17123. operator Object() const;
  17124. void OnEvent(Object, StringHash, VariantMap&);
  17125. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  17126. void OnSetAttribute(const AttributeInfo&, const Variant&);
  17127. void OnSetEnabled();
  17128. void PrepareNetworkUpdate();
  17129. bool ReadDeltaUpdate(Deserializer&);
  17130. bool ReadLatestDataUpdate(Deserializer&);
  17131. operator RefCounted() const;
  17132. int Refs() const;
  17133. void Remove();
  17134. void RemoveAttributeAnimation(const String&);
  17135. void RemoveInstanceDefault();
  17136. void RemoveObjectAnimation();
  17137. void ResetToDefault();
  17138. bool Save(Serializer&) const;
  17139. bool SaveDefaultAttributes() const;
  17140. bool SaveJSON(JSONValue&) const;
  17141. bool SaveXML(XMLElement&) const;
  17142. void SendEvent(StringHash);
  17143. void SendEvent(StringHash, VariantMap&);
  17144. operator Serializable() const;
  17145. void SetAlwaysUpdateOwner(bool);
  17146. void SetAnimationEnabled(bool);
  17147. void SetAnimationTime(float);
  17148. bool SetAttribute(const String&, const Variant&);
  17149. bool SetAttribute(uint, const Variant&);
  17150. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  17151. void SetAttributeAnimationSpeed(const String&, float);
  17152. void SetAttributeAnimationTime(const String&, float);
  17153. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  17154. void SetBasePriority(float);
  17155. void SetBlockEvents(bool);
  17156. void SetDistanceFactor(float);
  17157. void SetEnabled(bool);
  17158. void SetGlobalVar(StringHash, const Variant&);
  17159. void SetInstanceDefault(bool);
  17160. void SetInterceptNetworkUpdate(const String&, bool);
  17161. void SetMinPriority(float);
  17162. void SetObjectAnimation(ObjectAnimation);
  17163. void SetObjectAnimationAttr(const ResourceRef&);
  17164. void SetTemporary(bool);
  17165. const String& GetCategory() const;
  17166. const String& GetTypeName() const;
  17167. void UnsubscribeFromAllEvents();
  17168. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17169. void UnsubscribeFromEvent(Object, StringHash);
  17170. void UnsubscribeFromEvent(StringHash);
  17171. void UnsubscribeFromEvents(Object);
  17172. const Variant& GetGlobalVar(StringHash) const;
  17173. const VariantMap& GetGlobalVars() const;
  17174. int WeakRefs() const;
  17175. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  17176. void WriteInitialDeltaUpdate(Serializer&, uint8);
  17177. void WriteLatestDataUpdate(Serializer&, uint8);
  17178. operator const Animatable() const;
  17179. operator const Component() const;
  17180. operator const Object() const;
  17181. operator const RefCounted() const;
  17182. operator const Serializable() const;
  17183. // Properties:
  17184. bool alwaysUpdateOwner;
  17185. bool animationEnabled;
  17186. /* readonly */
  17187. Array<Variant> attributeDefaults;
  17188. /* readonly */
  17189. Array<AttributeInfo> attributeInfos;
  17190. Array<Variant> attributes;
  17191. float basePriority;
  17192. /* readonly */
  17193. String category;
  17194. float distanceFactor;
  17195. bool enabled;
  17196. /* readonly */
  17197. bool enabledEffective;
  17198. Array<Variant> globalVar;
  17199. /* readonly */
  17200. VariantMap globalVars;
  17201. /* readonly */
  17202. uint id;
  17203. float minPriority;
  17204. /* readonly */
  17205. Node node;
  17206. /* readonly */
  17207. uint numAttributes;
  17208. ObjectAnimation objectAnimation;
  17209. /* readonly */
  17210. int refs;
  17211. /* readonly */
  17212. bool replicated;
  17213. bool temporary;
  17214. /* readonly */
  17215. StringHash type;
  17216. /* readonly */
  17217. String typeName;
  17218. /* readonly */
  17219. int weakRefs;
  17220. };
  17221. class NetworkState
  17222. {
  17223. public:
  17224. ~NetworkState();
  17225. NetworkState();
  17226. // Methods:
  17227. NetworkState& operator=(const NetworkState&);
  17228. // Properties:
  17229. uint64 interceptMask;
  17230. VariantMap previousVars;
  17231. };
  17232. class Node
  17233. {
  17234. public:
  17235. Node();
  17236. Node(const String&in);
  17237. // Methods:
  17238. void AddChild(Node, uint = M_MAX_UNSIGNED);
  17239. void AddComponent(Component, uint, CreateMode);
  17240. void AddListener(Component);
  17241. void AddTag(const String&);
  17242. void AddTags(Array<String>);
  17243. void AddTags(const String&, int8 = ';');
  17244. void AllocateNetworkState();
  17245. operator Animatable() const;
  17246. void ApplyAttributes();
  17247. void CleanupConnection(Connection);
  17248. Node Clone(CreateMode = REPLICATED);
  17249. Component CloneComponent(Component, CreateMode, uint = 0);
  17250. Component CloneComponent(Component, uint = 0);
  17251. Node CreateChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0, bool = false);
  17252. Node CreateChild(uint, CreateMode, bool = false);
  17253. Component CreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  17254. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode mode = REPLICATED);
  17255. ScriptObject CreateScriptObject(const String&, const String&, CreateMode mode = REPLICATED);
  17256. Node CreateTemporaryChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0);
  17257. bool GetAnimationEnabled() const;
  17258. Variant GetAttribute(const String&) const;
  17259. Variant GetAttribute(uint) const;
  17260. ValueAnimation GetAttributeAnimation(const String&) const;
  17261. float GetAttributeAnimationSpeed(const String&) const;
  17262. float GetAttributeAnimationTime(const String&) const;
  17263. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  17264. Variant GetAttributeDefault(const String&) const;
  17265. Variant GetAttributeDefault(uint) const;
  17266. bool GetBlockEvents() const;
  17267. Node GetChild(StringHash, bool = false) const;
  17268. Node GetChild(const String&, bool = false) const;
  17269. Node GetChild(uint) const;
  17270. Array<Node> GetChildren() const;
  17271. Array<Node> GetChildren(bool) const;
  17272. Array<Node> GetChildrenWithComponent(StringHash, bool = false) const;
  17273. Array<Node> GetChildrenWithScript(bool = false) const;
  17274. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  17275. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  17276. Component GetComponent(StringHash, bool = false) const;
  17277. Array<Component> GetComponents() const;
  17278. Array<Component> GetComponents(const String&, bool = false) const;
  17279. Array<Node> GetDependencyNodes() const;
  17280. Vector3 GetDirection() const;
  17281. VariantMap& GetEventDataMap() const;
  17282. Object GetEventSender() const;
  17283. uint GetID() const;
  17284. bool GetInterceptNetworkUpdate(const String&) const;
  17285. StringHash GetNameHash() const;
  17286. uint GetNumAttributes() const;
  17287. uint GetNumChildren(bool = false) const;
  17288. uint GetNumComponents() const;
  17289. uint GetNumNetworkAttributes() const;
  17290. uint GetNumNetworkComponents() const;
  17291. uint GetNumPersistentChildren() const;
  17292. uint GetNumPersistentComponents() const;
  17293. ObjectAnimation GetObjectAnimation() const;
  17294. ResourceRef GetObjectAnimationAttr() const;
  17295. Component GetOrCreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  17296. Connection GetOwner() const;
  17297. Node GetParent() const;
  17298. Component GetParentComponent(StringHash, bool = false) const;
  17299. Vector2 GetPosition2D() const;
  17300. Vector3 GetRight() const;
  17301. float GetRotation2D() const;
  17302. Vector2 GetScale2D() const;
  17303. Scene GetScene() const;
  17304. ScriptObject GetScriptObject() const;
  17305. ScriptObject GetScriptObject(const String&) const;
  17306. Vector3 GetSignedWorldScale() const;
  17307. Object GetSubsystem(StringHash) const;
  17308. Array<String> GetTags() const;
  17309. Matrix3x4 GetTransform() const;
  17310. StringHash GetType() const;
  17311. Vector3 GetUp() const;
  17312. Vector3 GetWorldDirection() const;
  17313. Vector3 GetWorldPosition() const;
  17314. Vector2 GetWorldPosition2D() const;
  17315. Vector3 GetWorldRight() const;
  17316. Quaternion GetWorldRotation() const;
  17317. float GetWorldRotation2D() const;
  17318. Vector3 GetWorldScale() const;
  17319. Vector2 GetWorldScale2D() const;
  17320. Vector3 GetWorldUp() const;
  17321. bool HasComponent(StringHash) const;
  17322. bool HasEventHandlers() const;
  17323. bool HasSubscribedToEvent(Object, StringHash) const;
  17324. bool HasSubscribedToEvent(StringHash) const;
  17325. bool HasTag(const String&) const;
  17326. bool IsChildOf(Node) const;
  17327. bool IsDirty() const;
  17328. bool IsEnabled() const;
  17329. bool IsEnabledSelf() const;
  17330. bool IsInstanceOf(StringHash) const;
  17331. bool IsReplicated() const;
  17332. bool IsTemporary() const;
  17333. bool Load(Deserializer&);
  17334. bool Load(Deserializer&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17335. bool LoadJSON(const JSONValue&);
  17336. bool LoadJSON(const JSONValue&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17337. bool LoadXML(const XMLElement&);
  17338. bool LoadXML(const XMLElement&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17339. Vector3 LocalToWorld(const Vector3&) const;
  17340. Vector3 LocalToWorld(const Vector4&) const;
  17341. Vector2 LocalToWorld2D(const Vector2&) const;
  17342. bool LookAt(const Vector3&, const Vector3& = Vector3 :: UP, TransformSpace = TS_WORLD);
  17343. void MarkDirty();
  17344. void MarkNetworkUpdate();
  17345. void MarkReplicationDirty();
  17346. const Matrix3x4& GetWorldTransform() const;
  17347. operator Object() const;
  17348. void OnEvent(Object, StringHash, VariantMap&);
  17349. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  17350. void OnSetAttribute(const AttributeInfo&, const Variant&);
  17351. void Pitch(float, TransformSpace = TS_LOCAL);
  17352. void PrepareNetworkUpdate();
  17353. const Quaternion& GetRotation() const;
  17354. bool ReadDeltaUpdate(Deserializer&);
  17355. bool ReadLatestDataUpdate(Deserializer&);
  17356. operator RefCounted() const;
  17357. int Refs() const;
  17358. void Remove();
  17359. void RemoveAllChildren();
  17360. void RemoveAllComponents();
  17361. void RemoveAllTags();
  17362. void RemoveAttributeAnimation(const String&);
  17363. void RemoveChild(Node);
  17364. void RemoveChildren(bool, bool, bool);
  17365. void RemoveComponent(Component);
  17366. void RemoveComponent(StringHash);
  17367. void RemoveComponents(StringHash);
  17368. void RemoveComponents(bool, bool);
  17369. void RemoveInstanceDefault();
  17370. void RemoveListener(Component);
  17371. void RemoveObjectAnimation();
  17372. bool RemoveTag(const String&);
  17373. void ReorderComponent(Component, uint);
  17374. void ResetDeepEnabled();
  17375. void ResetScene();
  17376. void ResetToDefault();
  17377. void Roll(float, TransformSpace = TS_LOCAL);
  17378. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  17379. void Rotate2D(float, TransformSpace = TS_LOCAL);
  17380. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  17381. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  17382. bool Save(Serializer&) const;
  17383. bool SaveDefaultAttributes() const;
  17384. bool SaveJSON(File);
  17385. bool SaveJSON(JSONValue&) const;
  17386. bool SaveJSON(Serializer&, const String& = "\t") const;
  17387. bool SaveJSON(VectorBuffer&);
  17388. bool SaveXML(File, const String& = "\t");
  17389. bool SaveXML(Serializer&, const String& = "\t") const;
  17390. bool SaveXML(VectorBuffer&, const String& = "\t");
  17391. bool SaveXML(XMLElement&) const;
  17392. void Scale(const Vector3&);
  17393. void Scale(float);
  17394. void Scale2D(const Vector2&);
  17395. operator Scene() const;
  17396. void SendEvent(StringHash);
  17397. void SendEvent(StringHash, VariantMap&);
  17398. operator Serializable() const;
  17399. void SetAnimationEnabled(bool);
  17400. void SetAnimationTime(float);
  17401. bool SetAttribute(const String&, const Variant&);
  17402. bool SetAttribute(uint, const Variant&);
  17403. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  17404. void SetAttributeAnimationSpeed(const String&, float);
  17405. void SetAttributeAnimationTime(const String&, float);
  17406. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  17407. void SetBlockEvents(bool);
  17408. void SetDeepEnabled(bool);
  17409. void SetDirection(const Vector3&);
  17410. void SetEnabled(bool);
  17411. void SetEnabledRecursive(bool);
  17412. void SetGlobalVar(StringHash, const Variant&);
  17413. void SetID(uint);
  17414. void SetInstanceDefault(bool);
  17415. void SetInterceptNetworkUpdate(const String&, bool);
  17416. void SetName(const String&);
  17417. void SetNetPositionAttr(const Vector3&);
  17418. void SetObjectAnimation(ObjectAnimation);
  17419. void SetObjectAnimationAttr(const ResourceRef&);
  17420. void SetOwner(Connection);
  17421. void SetParent(Node);
  17422. void SetPosition(const Vector3&);
  17423. void SetPosition2D(const Vector2&);
  17424. void SetPosition2D(float, float);
  17425. void SetPositionSilent(const Vector3&);
  17426. void SetRotation(const Quaternion&);
  17427. void SetRotation2D(float);
  17428. void SetRotationSilent(const Quaternion&);
  17429. void SetScale(const Vector3&);
  17430. void SetScale(float);
  17431. void SetScale2D(const Vector2&);
  17432. void SetScale2D(float, float);
  17433. void SetScaleSilent(const Vector3&);
  17434. void SetScene(Scene);
  17435. void SetTags(Array<String>);
  17436. void SetTemporary(bool);
  17437. void SetTransform(const Matrix3x4&);
  17438. void SetTransform(const Vector3&, const Quaternion&);
  17439. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  17440. void SetTransform(const Vector3&, const Quaternion&, float);
  17441. void SetTransform2D(const Vector2&, float);
  17442. void SetTransform2D(const Vector2&, float, const Vector2&);
  17443. void SetTransform2D(const Vector2&, float, float);
  17444. void SetTransformSilent(const Vector3&, const Quaternion&, const Vector3&);
  17445. void SetVar(StringHash, const Variant&);
  17446. void SetWorldDirection(const Vector3&);
  17447. void SetWorldPosition(const Vector3&);
  17448. void SetWorldPosition2D(const Vector2&);
  17449. void SetWorldPosition2D(float, float);
  17450. void SetWorldRotation(const Quaternion&);
  17451. void SetWorldRotation2D(float);
  17452. void SetWorldScale(const Vector3&);
  17453. void SetWorldScale(float);
  17454. void SetWorldScale2D(const Vector2&);
  17455. void SetWorldScale2D(float, float);
  17456. void SetWorldTransform(const Matrix3x4&);
  17457. void SetWorldTransform(const Vector3&, const Quaternion&);
  17458. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  17459. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  17460. void SetWorldTransform2D(const Vector2&, float);
  17461. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  17462. void SetWorldTransform2D(const Vector2&, float, float);
  17463. const String& GetCategory() const;
  17464. const String& GetName() const;
  17465. const String& GetTypeName() const;
  17466. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  17467. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  17468. void UnsubscribeFromAllEvents();
  17469. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17470. void UnsubscribeFromEvent(Object, StringHash);
  17471. void UnsubscribeFromEvent(StringHash);
  17472. void UnsubscribeFromEvents(Object);
  17473. const Variant& GetGlobalVar(StringHash) const;
  17474. const Variant& GetVar(StringHash) const;
  17475. const VariantMap& GetGlobalVars() const;
  17476. const VariantMap& GetVars() const;
  17477. const Vector3& GetNetPositionAttr() const;
  17478. const Vector3& GetPosition() const;
  17479. const Vector3& GetScale() const;
  17480. int WeakRefs() const;
  17481. Vector3 WorldToLocal(const Vector3&) const;
  17482. Vector3 WorldToLocal(const Vector4&) const;
  17483. Vector2 WorldToLocal2D(const Vector2&) const;
  17484. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  17485. void WriteInitialDeltaUpdate(Serializer&, uint8);
  17486. void WriteLatestDataUpdate(Serializer&, uint8);
  17487. void Yaw(float, TransformSpace = TS_LOCAL);
  17488. operator const Animatable() const;
  17489. operator const Object() const;
  17490. operator const RefCounted() const;
  17491. operator const Scene() const;
  17492. operator const Serializable() const;
  17493. // Properties:
  17494. /* readonly */
  17495. Array<Node> allChildrenByName;
  17496. bool animationEnabled;
  17497. /* readonly */
  17498. Array<Variant> attributeDefaults;
  17499. /* readonly */
  17500. Array<AttributeInfo> attributeInfos;
  17501. Array<Variant> attributes;
  17502. /* readonly */
  17503. String category;
  17504. /* readonly */
  17505. Array<Node> children;
  17506. /* readonly */
  17507. Array<Node> childrenByName;
  17508. /* readonly */
  17509. Array<Component> components;
  17510. Vector3 direction;
  17511. bool enabled;
  17512. /* readonly */
  17513. bool enabledSelf;
  17514. Array<Variant> globalVar;
  17515. /* readonly */
  17516. VariantMap globalVars;
  17517. uint id;
  17518. String name;
  17519. /* readonly */
  17520. uint numAllChildren;
  17521. /* readonly */
  17522. uint numAttributes;
  17523. /* readonly */
  17524. uint numChildren;
  17525. /* readonly */
  17526. uint numComponents;
  17527. ObjectAnimation objectAnimation;
  17528. Connection owner;
  17529. Node parent;
  17530. Vector3 position;
  17531. Vector2 position2D;
  17532. /* readonly */
  17533. int refs;
  17534. /* readonly */
  17535. bool replicated;
  17536. /* readonly */
  17537. Vector3 right;
  17538. Quaternion rotation;
  17539. float rotation2D;
  17540. Vector3 scale;
  17541. Vector2 scale2D;
  17542. /* readonly */
  17543. Scene scene;
  17544. /* readonly */
  17545. ScriptObject scriptObject;
  17546. /* readonly */
  17547. Vector3 signedWorldScale;
  17548. /* readonly */
  17549. Array<String> tags;
  17550. bool temporary;
  17551. /* readonly */
  17552. Matrix3x4 transform;
  17553. /* readonly */
  17554. StringHash type;
  17555. /* readonly */
  17556. String typeName;
  17557. /* readonly */
  17558. Vector3 up;
  17559. /* readonly */
  17560. VariantMap vars;
  17561. /* readonly */
  17562. int weakRefs;
  17563. Vector3 worldDirection;
  17564. Vector3 worldPosition;
  17565. Vector2 worldPosition2D;
  17566. /* readonly */
  17567. Vector3 worldRight;
  17568. Quaternion worldRotation;
  17569. float worldRotation2D;
  17570. Vector3 worldScale;
  17571. Vector2 worldScale2D;
  17572. /* readonly */
  17573. Matrix3x4 worldTransform;
  17574. /* readonly */
  17575. Vector3 worldUp;
  17576. };
  17577. class NodeImpl
  17578. {
  17579. public:
  17580. ~NodeImpl();
  17581. NodeImpl();
  17582. // Methods:
  17583. NodeImpl& operator=(const NodeImpl&);
  17584. // Properties:
  17585. VectorBuffer attrBuffer;
  17586. String name;
  17587. StringHash nameHash;
  17588. };
  17589. class NodeReplicationState
  17590. {
  17591. public:
  17592. ~NodeReplicationState();
  17593. NodeReplicationState();
  17594. // Methods:
  17595. NodeReplicationState& operator=(const NodeReplicationState&);
  17596. // Properties:
  17597. DirtyBits dirtyAttributes;
  17598. bool markedDirty;
  17599. float priorityAcc;
  17600. };
  17601. class Object
  17602. {
  17603. public:
  17604. // Methods:
  17605. operator Animatable() const;
  17606. operator AnimatedModel() const;
  17607. operator AnimatedSprite2D() const;
  17608. operator Animation() const;
  17609. operator AnimationController() const;
  17610. operator AnimationSet2D() const;
  17611. operator Audio() const;
  17612. operator BillboardSet() const;
  17613. operator BorderImage() const;
  17614. operator Button() const;
  17615. operator Camera() const;
  17616. operator CheckBox() const;
  17617. operator CollisionBox2D() const;
  17618. operator CollisionChain2D() const;
  17619. operator CollisionCircle2D() const;
  17620. operator CollisionEdge2D() const;
  17621. operator CollisionPolygon2D() const;
  17622. operator CollisionShape2D() const;
  17623. operator CollisionShape() const;
  17624. operator Component() const;
  17625. operator Connection() const;
  17626. operator Console() const;
  17627. operator ConstantBuffer() const;
  17628. operator Constraint2D() const;
  17629. operator Constraint() const;
  17630. operator ConstraintDistance2D() const;
  17631. operator ConstraintFriction2D() const;
  17632. operator ConstraintGear2D() const;
  17633. operator ConstraintMotor2D() const;
  17634. operator ConstraintMouse2D() const;
  17635. operator ConstraintPrismatic2D() const;
  17636. operator ConstraintPulley2D() const;
  17637. operator ConstraintRevolute2D() const;
  17638. operator ConstraintWeld2D() const;
  17639. operator ConstraintWheel2D() const;
  17640. operator CrowdAgent() const;
  17641. operator CrowdManager() const;
  17642. operator Cursor() const;
  17643. operator CustomGeometry() const;
  17644. operator Database() const;
  17645. operator DebugHud() const;
  17646. operator DebugRenderer() const;
  17647. operator DecalSet() const;
  17648. operator Drawable2D() const;
  17649. operator Drawable() const;
  17650. operator DropDownList() const;
  17651. operator DynamicNavigationMesh() const;
  17652. operator Engine() const;
  17653. operator EventProfiler() const;
  17654. operator File() const;
  17655. operator FileSelector() const;
  17656. operator FileSystem() const;
  17657. operator FileWatcher() const;
  17658. operator Font() const;
  17659. operator Geometry() const;
  17660. bool GetBlockEvents() const;
  17661. VariantMap& GetEventDataMap() const;
  17662. Object GetEventSender() const;
  17663. Object GetSubsystem(StringHash) const;
  17664. StringHash GetType() const;
  17665. operator Graphics() const;
  17666. bool HasEventHandlers() const;
  17667. bool HasSubscribedToEvent(Object, StringHash) const;
  17668. bool HasSubscribedToEvent(StringHash) const;
  17669. operator IKConstraint() const;
  17670. operator IKEffector() const;
  17671. operator IKSolver() const;
  17672. operator Image() const;
  17673. operator IndexBuffer() const;
  17674. operator Input() const;
  17675. bool IsInstanceOf(StringHash) const;
  17676. operator JSONFile() const;
  17677. operator Light() const;
  17678. operator LineEdit() const;
  17679. operator ListView() const;
  17680. operator Localization() const;
  17681. operator Log() const;
  17682. operator LogicComponent() const;
  17683. operator Material() const;
  17684. operator Menu() const;
  17685. operator MessageBox() const;
  17686. operator Model() const;
  17687. operator NamedPipe() const;
  17688. operator NavArea() const;
  17689. operator Navigable() const;
  17690. operator NavigationMesh() const;
  17691. operator Network() const;
  17692. operator NetworkPriority() const;
  17693. operator Node() const;
  17694. operator ObjectAnimation() const;
  17695. operator Obstacle() const;
  17696. operator OcclusionBuffer() const;
  17697. operator Octree() const;
  17698. operator OffMeshConnection() const;
  17699. void OnEvent(Object, StringHash, VariantMap&);
  17700. operator PackageFile() const;
  17701. operator ParticleEffect2D() const;
  17702. operator ParticleEffect() const;
  17703. operator ParticleEmitter2D() const;
  17704. operator ParticleEmitter() const;
  17705. operator PhysicsWorld2D() const;
  17706. operator PhysicsWorld() const;
  17707. operator Profiler() const;
  17708. operator ProgressBar() const;
  17709. operator RaycastVehicle() const;
  17710. operator RefCounted() const;
  17711. int Refs() const;
  17712. operator Renderer2D() const;
  17713. operator Renderer() const;
  17714. operator Resource() const;
  17715. operator ResourceCache() const;
  17716. operator ResourceWithMetadata() const;
  17717. operator RibbonTrail() const;
  17718. operator RigidBody2D() const;
  17719. operator RigidBody() const;
  17720. operator Scene() const;
  17721. operator ScriptInstance() const;
  17722. operator ScrollBar() const;
  17723. operator ScrollView() const;
  17724. void SendEvent(StringHash);
  17725. void SendEvent(StringHash, VariantMap&);
  17726. operator Serializable() const;
  17727. void SetBlockEvents(bool);
  17728. void SetGlobalVar(StringHash, const Variant&);
  17729. operator Shader() const;
  17730. operator ShaderPrecache() const;
  17731. operator Skybox() const;
  17732. operator Slider() const;
  17733. operator SmoothedTransform() const;
  17734. operator Sound() const;
  17735. operator SoundListener() const;
  17736. operator SoundSource3D() const;
  17737. operator SoundSource() const;
  17738. operator SplinePath() const;
  17739. operator Sprite2D() const;
  17740. operator Sprite() const;
  17741. operator SpriteSheet2D() const;
  17742. operator StaticModel() const;
  17743. operator StaticModelGroup() const;
  17744. operator StaticSprite2D() const;
  17745. operator StretchableSprite2D() const;
  17746. const String& GetCategory() const;
  17747. const String& GetTypeName() const;
  17748. operator Technique() const;
  17749. operator Terrain() const;
  17750. operator TerrainPatch() const;
  17751. operator Text3D() const;
  17752. operator Text() const;
  17753. operator Texture2D() const;
  17754. operator Texture2DArray() const;
  17755. operator Texture3D() const;
  17756. operator Texture() const;
  17757. operator TextureCube() const;
  17758. operator TileMap2D() const;
  17759. operator TileMapLayer2D() const;
  17760. operator Time() const;
  17761. operator TmxFile2D() const;
  17762. operator ToolTip() const;
  17763. operator UI() const;
  17764. operator UIComponent() const;
  17765. operator UIElement() const;
  17766. operator UISelectable() const;
  17767. operator UnknownComponent() const;
  17768. void UnsubscribeFromAllEvents();
  17769. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17770. void UnsubscribeFromEvent(Object, StringHash);
  17771. void UnsubscribeFromEvent(StringHash);
  17772. void UnsubscribeFromEvents(Object);
  17773. operator ValueAnimation() const;
  17774. const Variant& GetGlobalVar(StringHash) const;
  17775. const VariantMap& GetGlobalVars() const;
  17776. operator VertexBuffer() const;
  17777. operator View3D() const;
  17778. operator View() const;
  17779. operator Viewport() const;
  17780. int WeakRefs() const;
  17781. operator Window() const;
  17782. operator WorkQueue() const;
  17783. operator XMLFile() const;
  17784. operator Zone() const;
  17785. operator const Animatable() const;
  17786. operator const AnimatedModel() const;
  17787. operator const AnimatedSprite2D() const;
  17788. operator const Animation() const;
  17789. operator const AnimationController() const;
  17790. operator const AnimationSet2D() const;
  17791. operator const Audio() const;
  17792. operator const BillboardSet() const;
  17793. operator const BorderImage() const;
  17794. operator const Button() const;
  17795. operator const Camera() const;
  17796. operator const CheckBox() const;
  17797. operator const CollisionBox2D() const;
  17798. operator const CollisionChain2D() const;
  17799. operator const CollisionCircle2D() const;
  17800. operator const CollisionEdge2D() const;
  17801. operator const CollisionPolygon2D() const;
  17802. operator const CollisionShape2D() const;
  17803. operator const CollisionShape() const;
  17804. operator const Component() const;
  17805. operator const Connection() const;
  17806. operator const Console() const;
  17807. operator const ConstantBuffer() const;
  17808. operator const Constraint2D() const;
  17809. operator const Constraint() const;
  17810. operator const ConstraintDistance2D() const;
  17811. operator const ConstraintFriction2D() const;
  17812. operator const ConstraintGear2D() const;
  17813. operator const ConstraintMotor2D() const;
  17814. operator const ConstraintMouse2D() const;
  17815. operator const ConstraintPrismatic2D() const;
  17816. operator const ConstraintPulley2D() const;
  17817. operator const ConstraintRevolute2D() const;
  17818. operator const ConstraintWeld2D() const;
  17819. operator const ConstraintWheel2D() const;
  17820. operator const CrowdAgent() const;
  17821. operator const CrowdManager() const;
  17822. operator const Cursor() const;
  17823. operator const CustomGeometry() const;
  17824. operator const Database() const;
  17825. operator const DebugHud() const;
  17826. operator const DebugRenderer() const;
  17827. operator const DecalSet() const;
  17828. operator const Drawable2D() const;
  17829. operator const Drawable() const;
  17830. operator const DropDownList() const;
  17831. operator const DynamicNavigationMesh() const;
  17832. operator const Engine() const;
  17833. operator const EventProfiler() const;
  17834. operator const File() const;
  17835. operator const FileSelector() const;
  17836. operator const FileSystem() const;
  17837. operator const FileWatcher() const;
  17838. operator const Font() const;
  17839. operator const Geometry() const;
  17840. operator const Graphics() const;
  17841. operator const IKConstraint() const;
  17842. operator const IKEffector() const;
  17843. operator const IKSolver() const;
  17844. operator const Image() const;
  17845. operator const IndexBuffer() const;
  17846. operator const Input() const;
  17847. operator const JSONFile() const;
  17848. operator const Light() const;
  17849. operator const LineEdit() const;
  17850. operator const ListView() const;
  17851. operator const Localization() const;
  17852. operator const Log() const;
  17853. operator const LogicComponent() const;
  17854. operator const Material() const;
  17855. operator const Menu() const;
  17856. operator const MessageBox() const;
  17857. operator const Model() const;
  17858. operator const NamedPipe() const;
  17859. operator const NavArea() const;
  17860. operator const Navigable() const;
  17861. operator const NavigationMesh() const;
  17862. operator const Network() const;
  17863. operator const NetworkPriority() const;
  17864. operator const Node() const;
  17865. operator const ObjectAnimation() const;
  17866. operator const Obstacle() const;
  17867. operator const OcclusionBuffer() const;
  17868. operator const Octree() const;
  17869. operator const OffMeshConnection() const;
  17870. operator const PackageFile() const;
  17871. operator const ParticleEffect2D() const;
  17872. operator const ParticleEffect() const;
  17873. operator const ParticleEmitter2D() const;
  17874. operator const ParticleEmitter() const;
  17875. operator const PhysicsWorld2D() const;
  17876. operator const PhysicsWorld() const;
  17877. operator const Profiler() const;
  17878. operator const ProgressBar() const;
  17879. operator const RaycastVehicle() const;
  17880. operator const RefCounted() const;
  17881. operator const Renderer2D() const;
  17882. operator const Renderer() const;
  17883. operator const Resource() const;
  17884. operator const ResourceCache() const;
  17885. operator const ResourceWithMetadata() const;
  17886. operator const RibbonTrail() const;
  17887. operator const RigidBody2D() const;
  17888. operator const RigidBody() const;
  17889. operator const Scene() const;
  17890. operator const ScriptInstance() const;
  17891. operator const ScrollBar() const;
  17892. operator const ScrollView() const;
  17893. operator const Serializable() const;
  17894. operator const Shader() const;
  17895. operator const ShaderPrecache() const;
  17896. operator const Skybox() const;
  17897. operator const Slider() const;
  17898. operator const SmoothedTransform() const;
  17899. operator const Sound() const;
  17900. operator const SoundListener() const;
  17901. operator const SoundSource3D() const;
  17902. operator const SoundSource() const;
  17903. operator const SplinePath() const;
  17904. operator const Sprite2D() const;
  17905. operator const Sprite() const;
  17906. operator const SpriteSheet2D() const;
  17907. operator const StaticModel() const;
  17908. operator const StaticModelGroup() const;
  17909. operator const StaticSprite2D() const;
  17910. operator const StretchableSprite2D() const;
  17911. operator const Technique() const;
  17912. operator const Terrain() const;
  17913. operator const TerrainPatch() const;
  17914. operator const Text3D() const;
  17915. operator const Text() const;
  17916. operator const Texture2D() const;
  17917. operator const Texture2DArray() const;
  17918. operator const Texture3D() const;
  17919. operator const Texture() const;
  17920. operator const TextureCube() const;
  17921. operator const TileMap2D() const;
  17922. operator const TileMapLayer2D() const;
  17923. operator const Time() const;
  17924. operator const TmxFile2D() const;
  17925. operator const ToolTip() const;
  17926. operator const UI() const;
  17927. operator const UIComponent() const;
  17928. operator const UIElement() const;
  17929. operator const UISelectable() const;
  17930. operator const UnknownComponent() const;
  17931. operator const ValueAnimation() const;
  17932. operator const VertexBuffer() const;
  17933. operator const View3D() const;
  17934. operator const View() const;
  17935. operator const Viewport() const;
  17936. operator const Window() const;
  17937. operator const WorkQueue() const;
  17938. operator const XMLFile() const;
  17939. operator const Zone() const;
  17940. // Properties:
  17941. /* readonly */
  17942. String category;
  17943. Array<Variant> globalVar;
  17944. /* readonly */
  17945. VariantMap globalVars;
  17946. /* readonly */
  17947. int refs;
  17948. /* readonly */
  17949. StringHash type;
  17950. /* readonly */
  17951. String typeName;
  17952. /* readonly */
  17953. int weakRefs;
  17954. };
  17955. class ObjectAnimation
  17956. {
  17957. public:
  17958. ObjectAnimation();
  17959. // Methods:
  17960. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  17961. bool BeginLoad(Deserializer&);
  17962. bool EndLoad();
  17963. AsyncLoadState GetAsyncLoadState() const;
  17964. ValueAnimation GetAttributeAnimation(const String&) const;
  17965. ValueAnimationInfo GetAttributeAnimationInfo(const String&) const;
  17966. float GetAttributeAnimationSpeed(const String&) const;
  17967. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  17968. bool GetBlockEvents() const;
  17969. VariantMap& GetEventDataMap() const;
  17970. Object GetEventSender() const;
  17971. uint GetMemoryUse() const;
  17972. StringHash GetNameHash() const;
  17973. Object GetSubsystem(StringHash) const;
  17974. StringHash GetType() const;
  17975. uint GetUseTimer();
  17976. bool HasEventHandlers() const;
  17977. bool HasSubscribedToEvent(Object, StringHash) const;
  17978. bool HasSubscribedToEvent(StringHash) const;
  17979. bool IsInstanceOf(StringHash) const;
  17980. bool Load(Deserializer&);
  17981. bool Load(File);
  17982. bool Load(VectorBuffer&);
  17983. bool Load(const String&);
  17984. bool LoadFile(const String&);
  17985. bool LoadJSON(const JSONValue&);
  17986. bool LoadXML(const XMLElement&);
  17987. operator Object() const;
  17988. void OnEvent(Object, StringHash, VariantMap&);
  17989. operator RefCounted() const;
  17990. int Refs() const;
  17991. void RemoveAttributeAnimation(ValueAnimation);
  17992. void RemoveAttributeAnimation(const String&);
  17993. void ResetUseTimer();
  17994. operator Resource() const;
  17995. bool Save(File) const;
  17996. bool Save(Serializer&) const;
  17997. bool Save(VectorBuffer&) const;
  17998. bool Save(const String&) const;
  17999. bool SaveFile(const String&) const;
  18000. bool SaveJSON(JSONValue&) const;
  18001. bool SaveXML(XMLElement&) const;
  18002. void SendEvent(StringHash);
  18003. void SendEvent(StringHash, VariantMap&);
  18004. void SetAsyncLoadState(AsyncLoadState);
  18005. void SetBlockEvents(bool);
  18006. void SetGlobalVar(StringHash, const Variant&);
  18007. void SetMemoryUse(uint);
  18008. void SetName(const String&);
  18009. const String& GetCategory() const;
  18010. const String& GetName() const;
  18011. const String& GetTypeName() const;
  18012. void UnsubscribeFromAllEvents();
  18013. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18014. void UnsubscribeFromEvent(Object, StringHash);
  18015. void UnsubscribeFromEvent(StringHash);
  18016. void UnsubscribeFromEvents(Object);
  18017. const Variant& GetGlobalVar(StringHash) const;
  18018. const VariantMap& GetGlobalVars() const;
  18019. int WeakRefs() const;
  18020. operator const Object() const;
  18021. operator const RefCounted() const;
  18022. operator const Resource() const;
  18023. // Properties:
  18024. /* readonly */
  18025. Array<ValueAnimation> attributeAnimations;
  18026. /* readonly */
  18027. String category;
  18028. Array<Variant> globalVar;
  18029. /* readonly */
  18030. VariantMap globalVars;
  18031. /* readonly */
  18032. uint memoryUse;
  18033. String name;
  18034. /* readonly */
  18035. int refs;
  18036. /* readonly */
  18037. Array<float> speeds;
  18038. /* readonly */
  18039. StringHash type;
  18040. /* readonly */
  18041. String typeName;
  18042. /* readonly */
  18043. uint useTimer;
  18044. /* readonly */
  18045. int weakRefs;
  18046. /* readonly */
  18047. Array<WrapMode> wrapModes;
  18048. };
  18049. class ObjectFactory
  18050. {
  18051. public:
  18052. // Methods:
  18053. Object CreateObject();
  18054. StringHash GetType() const;
  18055. operator RefCounted() const;
  18056. int Refs() const;
  18057. const String& GetTypeName() const;
  18058. int WeakRefs() const;
  18059. operator const RefCounted() const;
  18060. // Properties:
  18061. /* readonly */
  18062. int refs;
  18063. /* readonly */
  18064. int weakRefs;
  18065. };
  18066. class Obstacle
  18067. {
  18068. public:
  18069. Obstacle();
  18070. // Methods:
  18071. void AllocateNetworkState();
  18072. operator Animatable() const;
  18073. void ApplyAttributes();
  18074. void CleanupConnection(Connection);
  18075. operator Component() const;
  18076. void DrawDebugGeometry(DebugRenderer, bool);
  18077. void DrawDebugGeometry(bool);
  18078. bool GetAnimationEnabled() const;
  18079. Variant GetAttribute(const String&) const;
  18080. Variant GetAttribute(uint) const;
  18081. ValueAnimation GetAttributeAnimation(const String&) const;
  18082. float GetAttributeAnimationSpeed(const String&) const;
  18083. float GetAttributeAnimationTime(const String&) const;
  18084. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18085. Variant GetAttributeDefault(const String&) const;
  18086. Variant GetAttributeDefault(uint) const;
  18087. bool GetBlockEvents() const;
  18088. Component GetComponent(StringHash) const;
  18089. VariantMap& GetEventDataMap() const;
  18090. Object GetEventSender() const;
  18091. float GetHeight() const;
  18092. uint GetID() const;
  18093. bool GetInterceptNetworkUpdate(const String&) const;
  18094. Node GetNode() const;
  18095. uint GetNumAttributes() const;
  18096. uint GetNumNetworkAttributes() const;
  18097. ObjectAnimation GetObjectAnimation() const;
  18098. ResourceRef GetObjectAnimationAttr() const;
  18099. uint GetObstacleID() const;
  18100. float GetRadius() const;
  18101. Scene GetScene() const;
  18102. Object GetSubsystem(StringHash) const;
  18103. StringHash GetType() const;
  18104. bool HasEventHandlers() const;
  18105. bool HasSubscribedToEvent(Object, StringHash) const;
  18106. bool HasSubscribedToEvent(StringHash) const;
  18107. bool IsEnabled() const;
  18108. bool IsEnabledEffective() const;
  18109. bool IsInstanceOf(StringHash) const;
  18110. bool IsReplicated() const;
  18111. bool IsTemporary() const;
  18112. bool Load(Deserializer&);
  18113. bool LoadJSON(const JSONValue&);
  18114. bool LoadXML(const XMLElement&);
  18115. void MarkNetworkUpdate();
  18116. operator Object() const;
  18117. void OnEvent(Object, StringHash, VariantMap&);
  18118. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18119. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18120. void OnSetEnabled();
  18121. void PrepareNetworkUpdate();
  18122. bool ReadDeltaUpdate(Deserializer&);
  18123. bool ReadLatestDataUpdate(Deserializer&);
  18124. operator RefCounted() const;
  18125. int Refs() const;
  18126. void Remove();
  18127. void RemoveAttributeAnimation(const String&);
  18128. void RemoveInstanceDefault();
  18129. void RemoveObjectAnimation();
  18130. void ResetToDefault();
  18131. bool Save(Serializer&) const;
  18132. bool SaveDefaultAttributes() const;
  18133. bool SaveJSON(JSONValue&) const;
  18134. bool SaveXML(XMLElement&) const;
  18135. void SendEvent(StringHash);
  18136. void SendEvent(StringHash, VariantMap&);
  18137. operator Serializable() const;
  18138. void SetAnimationEnabled(bool);
  18139. void SetAnimationTime(float);
  18140. bool SetAttribute(const String&, const Variant&);
  18141. bool SetAttribute(uint, const Variant&);
  18142. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18143. void SetAttributeAnimationSpeed(const String&, float);
  18144. void SetAttributeAnimationTime(const String&, float);
  18145. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18146. void SetBlockEvents(bool);
  18147. void SetEnabled(bool);
  18148. void SetGlobalVar(StringHash, const Variant&);
  18149. void SetHeight(float);
  18150. void SetInstanceDefault(bool);
  18151. void SetInterceptNetworkUpdate(const String&, bool);
  18152. void SetObjectAnimation(ObjectAnimation);
  18153. void SetObjectAnimationAttr(const ResourceRef&);
  18154. void SetRadius(float);
  18155. void SetTemporary(bool);
  18156. const String& GetCategory() const;
  18157. const String& GetTypeName() const;
  18158. void UnsubscribeFromAllEvents();
  18159. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18160. void UnsubscribeFromEvent(Object, StringHash);
  18161. void UnsubscribeFromEvent(StringHash);
  18162. void UnsubscribeFromEvents(Object);
  18163. const Variant& GetGlobalVar(StringHash) const;
  18164. const VariantMap& GetGlobalVars() const;
  18165. int WeakRefs() const;
  18166. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18167. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18168. void WriteLatestDataUpdate(Serializer&, uint8);
  18169. operator const Animatable() const;
  18170. operator const Component() const;
  18171. operator const Object() const;
  18172. operator const RefCounted() const;
  18173. operator const Serializable() const;
  18174. // Properties:
  18175. bool animationEnabled;
  18176. /* readonly */
  18177. Array<Variant> attributeDefaults;
  18178. /* readonly */
  18179. Array<AttributeInfo> attributeInfos;
  18180. Array<Variant> attributes;
  18181. /* readonly */
  18182. String category;
  18183. bool enabled;
  18184. /* readonly */
  18185. bool enabledEffective;
  18186. Array<Variant> globalVar;
  18187. /* readonly */
  18188. VariantMap globalVars;
  18189. float height;
  18190. /* readonly */
  18191. uint id;
  18192. /* readonly */
  18193. Node node;
  18194. /* readonly */
  18195. uint numAttributes;
  18196. ObjectAnimation objectAnimation;
  18197. /* readonly */
  18198. uint obstacleId;
  18199. float radius;
  18200. /* readonly */
  18201. int refs;
  18202. /* readonly */
  18203. bool replicated;
  18204. bool temporary;
  18205. /* readonly */
  18206. StringHash type;
  18207. /* readonly */
  18208. String typeName;
  18209. /* readonly */
  18210. int weakRefs;
  18211. };
  18212. class OcclusionBatch
  18213. {
  18214. public:
  18215. ~OcclusionBatch();
  18216. OcclusionBatch();
  18217. // Methods:
  18218. OcclusionBatch& operator=(const OcclusionBatch&);
  18219. // Properties:
  18220. uint drawCount;
  18221. uint drawStart;
  18222. uint indexSize;
  18223. Matrix3x4 model;
  18224. uint vertexSize;
  18225. };
  18226. class OcclusionBuffer
  18227. {
  18228. public:
  18229. OcclusionBuffer();
  18230. // Methods:
  18231. void BuildDepthHierarchy();
  18232. void Clear();
  18233. void DrawBatch(const OcclusionBatch&, uint);
  18234. void DrawTriangles();
  18235. bool GetBlockEvents() const;
  18236. CullMode GetCullMode() const;
  18237. VariantMap& GetEventDataMap() const;
  18238. Object GetEventSender() const;
  18239. int GetHeight() const;
  18240. uint GetMaxTriangles() const;
  18241. uint GetNumTriangles() const;
  18242. Object GetSubsystem(StringHash) const;
  18243. StringHash GetType() const;
  18244. uint GetUseTimer();
  18245. int GetWidth() const;
  18246. bool HasEventHandlers() const;
  18247. bool HasSubscribedToEvent(Object, StringHash) const;
  18248. bool HasSubscribedToEvent(StringHash) const;
  18249. bool IsInstanceOf(StringHash) const;
  18250. bool IsThreaded() const;
  18251. bool IsVisible(const BoundingBox&) const;
  18252. const Matrix3x4& GetView() const;
  18253. const Matrix4& GetProjection() const;
  18254. operator Object() const;
  18255. void OnEvent(Object, StringHash, VariantMap&);
  18256. operator RefCounted() const;
  18257. int Refs() const;
  18258. void Reset();
  18259. void ResetUseTimer();
  18260. void SendEvent(StringHash);
  18261. void SendEvent(StringHash, VariantMap&);
  18262. void SetBlockEvents(bool);
  18263. void SetCullMode(CullMode);
  18264. void SetGlobalVar(StringHash, const Variant&);
  18265. void SetMaxTriangles(uint);
  18266. bool SetSize(int, int, bool);
  18267. void SetView(Camera);
  18268. const String& GetCategory() const;
  18269. const String& GetTypeName() const;
  18270. void UnsubscribeFromAllEvents();
  18271. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18272. void UnsubscribeFromEvent(Object, StringHash);
  18273. void UnsubscribeFromEvent(StringHash);
  18274. void UnsubscribeFromEvents(Object);
  18275. const Variant& GetGlobalVar(StringHash) const;
  18276. const VariantMap& GetGlobalVars() const;
  18277. int WeakRefs() const;
  18278. operator const Object() const;
  18279. operator const RefCounted() const;
  18280. // Properties:
  18281. /* readonly */
  18282. String category;
  18283. Array<Variant> globalVar;
  18284. /* readonly */
  18285. VariantMap globalVars;
  18286. /* readonly */
  18287. int refs;
  18288. /* readonly */
  18289. StringHash type;
  18290. /* readonly */
  18291. String typeName;
  18292. /* readonly */
  18293. int weakRefs;
  18294. };
  18295. class OcclusionBufferData
  18296. {
  18297. public:
  18298. ~OcclusionBufferData();
  18299. OcclusionBufferData();
  18300. // Methods:
  18301. OcclusionBufferData& operator=(const OcclusionBufferData&);
  18302. // Properties:
  18303. bool used;
  18304. };
  18305. class Octree
  18306. {
  18307. public:
  18308. Octree();
  18309. // Methods:
  18310. void AddDrawable(Drawable);
  18311. void AddManualDrawable(Drawable);
  18312. void AllocateNetworkState();
  18313. operator Animatable() const;
  18314. void ApplyAttributes();
  18315. const BoundingBox& GetCullingBox() const;
  18316. const BoundingBox& GetWorldBoundingBox() const;
  18317. void CancelUpdate(Drawable);
  18318. bool CheckDrawableFit(const BoundingBox&) const;
  18319. void CleanupConnection(Connection);
  18320. operator Component() const;
  18321. void DeleteChild(uint);
  18322. void DrawDebugGeometry(DebugRenderer, bool);
  18323. void DrawDebugGeometry(bool);
  18324. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18325. bool GetAnimationEnabled() const;
  18326. Variant GetAttribute(const String&) const;
  18327. Variant GetAttribute(uint) const;
  18328. ValueAnimation GetAttributeAnimation(const String&) const;
  18329. float GetAttributeAnimationSpeed(const String&) const;
  18330. float GetAttributeAnimationTime(const String&) const;
  18331. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18332. Variant GetAttributeDefault(const String&) const;
  18333. Variant GetAttributeDefault(uint) const;
  18334. bool GetBlockEvents() const;
  18335. Component GetComponent(StringHash) const;
  18336. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18337. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18338. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18339. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18340. VariantMap& GetEventDataMap() const;
  18341. Object GetEventSender() const;
  18342. uint GetID() const;
  18343. bool GetInterceptNetworkUpdate(const String&) const;
  18344. uint GetLevel() const;
  18345. Node GetNode() const;
  18346. uint GetNumAttributes() const;
  18347. uint GetNumDrawables() const;
  18348. uint GetNumLevels() const;
  18349. uint GetNumNetworkAttributes() const;
  18350. ObjectAnimation GetObjectAnimation() const;
  18351. ResourceRef GetObjectAnimationAttr() const;
  18352. Octree GetRoot() const;
  18353. Scene GetScene() const;
  18354. Object GetSubsystem(StringHash) const;
  18355. StringHash GetType() const;
  18356. bool HasEventHandlers() const;
  18357. bool HasSubscribedToEvent(Object, StringHash) const;
  18358. bool HasSubscribedToEvent(StringHash) const;
  18359. void InsertDrawable(Drawable);
  18360. bool IsEmpty();
  18361. bool IsEnabled() const;
  18362. bool IsEnabledEffective() const;
  18363. bool IsInstanceOf(StringHash) const;
  18364. bool IsReplicated() const;
  18365. bool IsTemporary() const;
  18366. bool Load(Deserializer&);
  18367. bool LoadJSON(const JSONValue&);
  18368. bool LoadXML(const XMLElement&);
  18369. void MarkNetworkUpdate();
  18370. operator Object() const;
  18371. void OnEvent(Object, StringHash, VariantMap&);
  18372. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18373. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18374. void OnSetEnabled();
  18375. void PrepareNetworkUpdate();
  18376. void QueueUpdate(Drawable);
  18377. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  18378. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  18379. bool ReadDeltaUpdate(Deserializer&);
  18380. bool ReadLatestDataUpdate(Deserializer&);
  18381. operator RefCounted() const;
  18382. int Refs() const;
  18383. void Remove();
  18384. void RemoveAttributeAnimation(const String&);
  18385. void RemoveDrawable(Drawable, bool = true);
  18386. void RemoveInstanceDefault();
  18387. void RemoveManualDrawable(Drawable);
  18388. void RemoveObjectAnimation();
  18389. void ResetRoot();
  18390. void ResetToDefault();
  18391. bool Save(Serializer&) const;
  18392. bool SaveDefaultAttributes() const;
  18393. bool SaveJSON(JSONValue&) const;
  18394. bool SaveXML(XMLElement&) const;
  18395. void SendEvent(StringHash);
  18396. void SendEvent(StringHash, VariantMap&);
  18397. operator Serializable() const;
  18398. void SetAnimationEnabled(bool);
  18399. void SetAnimationTime(float);
  18400. bool SetAttribute(const String&, const Variant&);
  18401. bool SetAttribute(uint, const Variant&);
  18402. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18403. void SetAttributeAnimationSpeed(const String&, float);
  18404. void SetAttributeAnimationTime(const String&, float);
  18405. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18406. void SetBlockEvents(bool);
  18407. void SetEnabled(bool);
  18408. void SetGlobalVar(StringHash, const Variant&);
  18409. void SetInstanceDefault(bool);
  18410. void SetInterceptNetworkUpdate(const String&, bool);
  18411. void SetObjectAnimation(ObjectAnimation);
  18412. void SetObjectAnimationAttr(const ResourceRef&);
  18413. void SetSize(const BoundingBox&, uint);
  18414. void SetTemporary(bool);
  18415. const String& GetCategory() const;
  18416. const String& GetTypeName() const;
  18417. void UnsubscribeFromAllEvents();
  18418. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18419. void UnsubscribeFromEvent(Object, StringHash);
  18420. void UnsubscribeFromEvent(StringHash);
  18421. void UnsubscribeFromEvents(Object);
  18422. void Update(const FrameInfo&);
  18423. const Variant& GetGlobalVar(StringHash) const;
  18424. const VariantMap& GetGlobalVars() const;
  18425. int WeakRefs() const;
  18426. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18427. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18428. void WriteLatestDataUpdate(Serializer&, uint8);
  18429. operator const Animatable() const;
  18430. operator const Component() const;
  18431. operator const Object() const;
  18432. operator const RefCounted() const;
  18433. operator const Serializable() const;
  18434. // Properties:
  18435. bool animationEnabled;
  18436. /* readonly */
  18437. Array<Variant> attributeDefaults;
  18438. /* readonly */
  18439. Array<AttributeInfo> attributeInfos;
  18440. Array<Variant> attributes;
  18441. /* readonly */
  18442. String category;
  18443. bool enabled;
  18444. /* readonly */
  18445. bool enabledEffective;
  18446. Array<Variant> globalVar;
  18447. /* readonly */
  18448. VariantMap globalVars;
  18449. /* readonly */
  18450. uint id;
  18451. /* readonly */
  18452. Node node;
  18453. /* readonly */
  18454. uint numAttributes;
  18455. /* readonly */
  18456. uint numLevels;
  18457. ObjectAnimation objectAnimation;
  18458. /* readonly */
  18459. int refs;
  18460. /* readonly */
  18461. bool replicated;
  18462. bool temporary;
  18463. /* readonly */
  18464. StringHash type;
  18465. /* readonly */
  18466. String typeName;
  18467. /* readonly */
  18468. int weakRefs;
  18469. /* readonly */
  18470. BoundingBox worldBoundingBox;
  18471. };
  18472. class OctreeQueryResult
  18473. {
  18474. public:
  18475. ~OctreeQueryResult();
  18476. OctreeQueryResult();
  18477. // Methods:
  18478. OctreeQueryResult& operator=(const OctreeQueryResult&);
  18479. };
  18480. class OffMeshConnection
  18481. {
  18482. public:
  18483. OffMeshConnection();
  18484. // Methods:
  18485. void AllocateNetworkState();
  18486. operator Animatable() const;
  18487. void ApplyAttributes();
  18488. void CleanupConnection(Connection);
  18489. operator Component() const;
  18490. void DrawDebugGeometry(DebugRenderer, bool);
  18491. bool GetAnimationEnabled() const;
  18492. uint GetAreaID() const;
  18493. Variant GetAttribute(const String&) const;
  18494. Variant GetAttribute(uint) const;
  18495. ValueAnimation GetAttributeAnimation(const String&) const;
  18496. float GetAttributeAnimationSpeed(const String&) const;
  18497. float GetAttributeAnimationTime(const String&) const;
  18498. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18499. Variant GetAttributeDefault(const String&) const;
  18500. Variant GetAttributeDefault(uint) const;
  18501. bool GetBlockEvents() const;
  18502. Component GetComponent(StringHash) const;
  18503. Node GetEndPoint() const;
  18504. VariantMap& GetEventDataMap() const;
  18505. Object GetEventSender() const;
  18506. uint GetID() const;
  18507. bool GetInterceptNetworkUpdate(const String&) const;
  18508. uint GetMask() const;
  18509. Node GetNode() const;
  18510. uint GetNumAttributes() const;
  18511. uint GetNumNetworkAttributes() const;
  18512. ObjectAnimation GetObjectAnimation() const;
  18513. ResourceRef GetObjectAnimationAttr() const;
  18514. float GetRadius() const;
  18515. Scene GetScene() const;
  18516. Object GetSubsystem(StringHash) const;
  18517. StringHash GetType() const;
  18518. bool HasEventHandlers() const;
  18519. bool HasSubscribedToEvent(Object, StringHash) const;
  18520. bool HasSubscribedToEvent(StringHash) const;
  18521. bool IsBidirectional() const;
  18522. bool IsEnabled() const;
  18523. bool IsEnabledEffective() const;
  18524. bool IsInstanceOf(StringHash) const;
  18525. bool IsReplicated() const;
  18526. bool IsTemporary() const;
  18527. bool Load(Deserializer&);
  18528. bool LoadJSON(const JSONValue&);
  18529. bool LoadXML(const XMLElement&);
  18530. void MarkNetworkUpdate();
  18531. operator Object() const;
  18532. void OnEvent(Object, StringHash, VariantMap&);
  18533. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18534. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18535. void OnSetEnabled();
  18536. void PrepareNetworkUpdate();
  18537. bool ReadDeltaUpdate(Deserializer&);
  18538. bool ReadLatestDataUpdate(Deserializer&);
  18539. operator RefCounted() const;
  18540. int Refs() const;
  18541. void Remove();
  18542. void RemoveAttributeAnimation(const String&);
  18543. void RemoveInstanceDefault();
  18544. void RemoveObjectAnimation();
  18545. void ResetToDefault();
  18546. bool Save(Serializer&) const;
  18547. bool SaveDefaultAttributes() const;
  18548. bool SaveJSON(JSONValue&) const;
  18549. bool SaveXML(XMLElement&) const;
  18550. void SendEvent(StringHash);
  18551. void SendEvent(StringHash, VariantMap&);
  18552. operator Serializable() const;
  18553. void SetAnimationEnabled(bool);
  18554. void SetAnimationTime(float);
  18555. void SetAreaID(uint);
  18556. bool SetAttribute(const String&, const Variant&);
  18557. bool SetAttribute(uint, const Variant&);
  18558. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18559. void SetAttributeAnimationSpeed(const String&, float);
  18560. void SetAttributeAnimationTime(const String&, float);
  18561. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18562. void SetBidirectional(bool);
  18563. void SetBlockEvents(bool);
  18564. void SetEnabled(bool);
  18565. void SetEndPoint(Node);
  18566. void SetGlobalVar(StringHash, const Variant&);
  18567. void SetInstanceDefault(bool);
  18568. void SetInterceptNetworkUpdate(const String&, bool);
  18569. void SetMask(uint);
  18570. void SetObjectAnimation(ObjectAnimation);
  18571. void SetObjectAnimationAttr(const ResourceRef&);
  18572. void SetRadius(float);
  18573. void SetTemporary(bool);
  18574. const String& GetCategory() const;
  18575. const String& GetTypeName() const;
  18576. void UnsubscribeFromAllEvents();
  18577. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18578. void UnsubscribeFromEvent(Object, StringHash);
  18579. void UnsubscribeFromEvent(StringHash);
  18580. void UnsubscribeFromEvents(Object);
  18581. const Variant& GetGlobalVar(StringHash) const;
  18582. const VariantMap& GetGlobalVars() const;
  18583. int WeakRefs() const;
  18584. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18585. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18586. void WriteLatestDataUpdate(Serializer&, uint8);
  18587. operator const Animatable() const;
  18588. operator const Component() const;
  18589. operator const Object() const;
  18590. operator const RefCounted() const;
  18591. operator const Serializable() const;
  18592. // Properties:
  18593. bool animationEnabled;
  18594. uint areaID;
  18595. /* readonly */
  18596. Array<Variant> attributeDefaults;
  18597. /* readonly */
  18598. Array<AttributeInfo> attributeInfos;
  18599. Array<Variant> attributes;
  18600. bool bidirectional;
  18601. /* readonly */
  18602. String category;
  18603. bool enabled;
  18604. /* readonly */
  18605. bool enabledEffective;
  18606. Node endPoint;
  18607. Array<Variant> globalVar;
  18608. /* readonly */
  18609. VariantMap globalVars;
  18610. /* readonly */
  18611. uint id;
  18612. uint mask;
  18613. /* readonly */
  18614. Node node;
  18615. /* readonly */
  18616. uint numAttributes;
  18617. ObjectAnimation objectAnimation;
  18618. float radius;
  18619. /* readonly */
  18620. int refs;
  18621. /* readonly */
  18622. bool replicated;
  18623. bool temporary;
  18624. /* readonly */
  18625. StringHash type;
  18626. /* readonly */
  18627. String typeName;
  18628. /* readonly */
  18629. int weakRefs;
  18630. };
  18631. class OggVorbisSoundStream
  18632. {
  18633. public:
  18634. OggVorbisSoundStream(Sound&);
  18635. // Methods:
  18636. float GetFrequency() const;
  18637. uint GetIntFrequency() const;
  18638. uint GetSampleSize() const;
  18639. bool GetStopAtEnd() const;
  18640. bool IsSixteenBit() const;
  18641. bool IsStereo() const;
  18642. operator RefCounted() const;
  18643. int Refs() const;
  18644. bool Seek(uint);
  18645. void SetFormat(uint, bool, bool);
  18646. void SetStopAtEnd(bool);
  18647. operator SoundStream() const;
  18648. int WeakRefs() const;
  18649. operator const RefCounted() const;
  18650. operator const SoundStream() const;
  18651. // Properties:
  18652. /* readonly */
  18653. int refs;
  18654. /* readonly */
  18655. int weakRefs;
  18656. };
  18657. class PackageDownload
  18658. {
  18659. public:
  18660. ~PackageDownload();
  18661. PackageDownload();
  18662. // Methods:
  18663. PackageDownload& operator=(const PackageDownload&);
  18664. // Properties:
  18665. uint checksum;
  18666. bool initiated;
  18667. String name;
  18668. uint totalFragments;
  18669. };
  18670. class PackageEntry
  18671. {
  18672. public:
  18673. // Methods:
  18674. PackageEntry& operator=(const PackageEntry&);
  18675. // Properties:
  18676. uint checksum;
  18677. uint offset;
  18678. uint size;
  18679. };
  18680. class PackageFile
  18681. {
  18682. public:
  18683. PackageFile();
  18684. PackageFile(const String&in, uint = 0);
  18685. // Methods:
  18686. bool Exists(const String&) const;
  18687. bool GetBlockEvents() const;
  18688. uint GetChecksum() const;
  18689. Array<String> GetEntryNames() const;
  18690. VariantMap& GetEventDataMap() const;
  18691. Object GetEventSender() const;
  18692. StringHash GetNameHash() const;
  18693. uint GetNumFiles() const;
  18694. Object GetSubsystem(StringHash) const;
  18695. uint GetTotalDataSize() const;
  18696. uint GetTotalSize() const;
  18697. StringHash GetType() const;
  18698. bool HasEventHandlers() const;
  18699. bool HasSubscribedToEvent(Object, StringHash) const;
  18700. bool HasSubscribedToEvent(StringHash) const;
  18701. bool IsCompressed() const;
  18702. bool IsInstanceOf(StringHash) const;
  18703. operator Object() const;
  18704. void OnEvent(Object, StringHash, VariantMap&);
  18705. bool Open(const String&, uint = 0);
  18706. operator RefCounted() const;
  18707. int Refs() const;
  18708. void SendEvent(StringHash);
  18709. void SendEvent(StringHash, VariantMap&);
  18710. void SetBlockEvents(bool);
  18711. void SetGlobalVar(StringHash, const Variant&);
  18712. const String& GetCategory() const;
  18713. const String& GetName() const;
  18714. const String& GetTypeName() const;
  18715. void UnsubscribeFromAllEvents();
  18716. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18717. void UnsubscribeFromEvent(Object, StringHash);
  18718. void UnsubscribeFromEvent(StringHash);
  18719. void UnsubscribeFromEvents(Object);
  18720. const Variant& GetGlobalVar(StringHash) const;
  18721. const VariantMap& GetGlobalVars() const;
  18722. int WeakRefs() const;
  18723. operator const Object() const;
  18724. operator const RefCounted() const;
  18725. // Properties:
  18726. /* readonly */
  18727. String category;
  18728. /* readonly */
  18729. uint checksum;
  18730. /* readonly */
  18731. bool compressed;
  18732. Array<Variant> globalVar;
  18733. /* readonly */
  18734. VariantMap globalVars;
  18735. /* readonly */
  18736. String name;
  18737. /* readonly */
  18738. uint numFiles;
  18739. /* readonly */
  18740. int refs;
  18741. /* readonly */
  18742. uint totalDataSize;
  18743. /* readonly */
  18744. uint totalSize;
  18745. /* readonly */
  18746. StringHash type;
  18747. /* readonly */
  18748. String typeName;
  18749. /* readonly */
  18750. int weakRefs;
  18751. };
  18752. class PackageUpload
  18753. {
  18754. public:
  18755. ~PackageUpload();
  18756. PackageUpload();
  18757. // Methods:
  18758. PackageUpload& operator=(const PackageUpload&);
  18759. // Properties:
  18760. uint fragment;
  18761. uint totalFragments;
  18762. };
  18763. class Particle
  18764. {
  18765. public:
  18766. ~Particle();
  18767. Particle();
  18768. // Methods:
  18769. Particle& operator=(const Particle&);
  18770. // Properties:
  18771. uint colorIndex;
  18772. float rotationSpeed;
  18773. float scale;
  18774. Vector2 size;
  18775. uint texIndex;
  18776. float timeToLive;
  18777. float timer;
  18778. Vector3 velocity;
  18779. };
  18780. class Particle2D
  18781. {
  18782. public:
  18783. ~Particle2D();
  18784. Particle2D();
  18785. // Methods:
  18786. Particle2D& operator=(const Particle2D&);
  18787. // Properties:
  18788. Color color;
  18789. Color colorDelta;
  18790. float emitRadius;
  18791. float emitRadiusDelta;
  18792. float emitRotation;
  18793. float emitRotationDelta;
  18794. Vector3 position;
  18795. float radialAcceleration;
  18796. float rotation;
  18797. float rotationDelta;
  18798. float size;
  18799. float sizeDelta;
  18800. Vector2 startPos;
  18801. float tangentialAcceleration;
  18802. float timeToLive;
  18803. Vector2 velocity;
  18804. };
  18805. class ParticleEffect
  18806. {
  18807. public:
  18808. ParticleEffect();
  18809. // Methods:
  18810. void AddColorFrame(const ColorFrame&);
  18811. void AddColorTime(const Color&, float);
  18812. void AddTextureFrame(const TextureFrame&);
  18813. void AddTextureTime(const Rect&, float);
  18814. bool BeginLoad(Deserializer&);
  18815. ParticleEffect Clone(const String& = String :: EMPTY) const;
  18816. bool EndLoad();
  18817. float GetActiveTime() const;
  18818. float GetAnimationLodBias() const;
  18819. AsyncLoadState GetAsyncLoadState() const;
  18820. bool GetBlockEvents() const;
  18821. ColorFrame GetColorFrame(uint) const;
  18822. float GetDampingForce() const;
  18823. EmitterType GetEmitterType() const;
  18824. VariantMap& GetEventDataMap() const;
  18825. Object GetEventSender() const;
  18826. FaceCameraMode GetFaceCameraMode() const;
  18827. float GetInactiveTime() const;
  18828. Material GetMaterial() const;
  18829. float GetMaxEmissionRate() const;
  18830. float GetMaxRotation() const;
  18831. float GetMaxRotationSpeed() const;
  18832. float GetMaxTimeToLive() const;
  18833. float GetMaxVelocity() const;
  18834. uint GetMemoryUse() const;
  18835. float GetMinEmissionRate() const;
  18836. float GetMinRotation() const;
  18837. float GetMinRotationSpeed() const;
  18838. float GetMinTimeToLive() const;
  18839. float GetMinVelocity() const;
  18840. StringHash GetNameHash() const;
  18841. uint GetNumColorFrames() const;
  18842. uint GetNumParticles() const;
  18843. uint GetNumTextureFrames() const;
  18844. Vector3 GetRandomDirection() const;
  18845. float GetRandomRotation() const;
  18846. float GetRandomRotationSpeed() const;
  18847. Vector2 GetRandomSize() const;
  18848. float GetRandomTimeToLive() const;
  18849. float GetRandomVelocity() const;
  18850. float GetSizeAdd() const;
  18851. float GetSizeMul() const;
  18852. Object GetSubsystem(StringHash) const;
  18853. TextureFrame GetTextureFrame(uint) const;
  18854. StringHash GetType() const;
  18855. bool GetUpdateInvisible() const;
  18856. uint GetUseTimer();
  18857. bool HasEventHandlers() const;
  18858. bool HasSubscribedToEvent(Object, StringHash) const;
  18859. bool HasSubscribedToEvent(StringHash) const;
  18860. bool IsFixedScreenSize() const;
  18861. bool IsInstanceOf(StringHash) const;
  18862. bool IsRelative() const;
  18863. bool IsScaled() const;
  18864. bool IsSorted() const;
  18865. bool Load(Deserializer&);
  18866. bool Load(File);
  18867. bool Load(VectorBuffer&);
  18868. bool Load(const String&);
  18869. bool Load(const XMLElement&);
  18870. bool LoadFile(const String&);
  18871. operator Object() const;
  18872. void OnEvent(Object, StringHash, VariantMap&);
  18873. operator RefCounted() const;
  18874. int Refs() const;
  18875. void RemoveColorFrame(uint);
  18876. void RemoveTextureFrame(uint);
  18877. void ResetUseTimer();
  18878. operator Resource() const;
  18879. bool Save(File) const;
  18880. bool Save(Serializer&) const;
  18881. bool Save(VectorBuffer&) const;
  18882. bool Save(XMLElement&) const;
  18883. bool Save(const String&) const;
  18884. bool SaveFile(const String&) const;
  18885. void SendEvent(StringHash);
  18886. void SendEvent(StringHash, VariantMap&);
  18887. void SetActiveTime(float);
  18888. void SetAnimationLodBias(float);
  18889. void SetAsyncLoadState(AsyncLoadState);
  18890. void SetBlockEvents(bool);
  18891. void SetColorFrame(uint, const ColorFrame&);
  18892. void SetConstantForce(const Vector3&);
  18893. void SetDampingForce(float);
  18894. void SetEmitterSize(const Vector3&);
  18895. void SetEmitterType(EmitterType);
  18896. void SetFaceCameraMode(FaceCameraMode);
  18897. void SetFixedScreenSize(bool);
  18898. void SetGlobalVar(StringHash, const Variant&);
  18899. void SetInactiveTime(float);
  18900. void SetMaterial(Material);
  18901. void SetMaxDirection(const Vector3&);
  18902. void SetMaxEmissionRate(float);
  18903. void SetMaxParticleSize(const Vector2&);
  18904. void SetMaxRotation(float);
  18905. void SetMaxRotationSpeed(float);
  18906. void SetMaxTimeToLive(float);
  18907. void SetMaxVelocity(float);
  18908. void SetMemoryUse(uint);
  18909. void SetMinDirection(const Vector3&);
  18910. void SetMinEmissionRate(float);
  18911. void SetMinParticleSize(const Vector2&);
  18912. void SetMinRotation(float);
  18913. void SetMinRotationSpeed(float);
  18914. void SetMinTimeToLive(float);
  18915. void SetMinVelocity(float);
  18916. void SetName(const String&);
  18917. void SetNumColorFrames(uint);
  18918. void SetNumParticles(uint);
  18919. void SetNumTextureFrames(uint);
  18920. void SetRelative(bool);
  18921. void SetScaled(bool);
  18922. void SetSizeAdd(float);
  18923. void SetSizeMul(float);
  18924. void SetSorted(bool);
  18925. void SetTextureFrame(uint, const TextureFrame&);
  18926. void SetUpdateInvisible(bool);
  18927. void SortColorFrames();
  18928. void SortTextureFrames();
  18929. const String& GetCategory() const;
  18930. const String& GetName() const;
  18931. const String& GetTypeName() const;
  18932. void UnsubscribeFromAllEvents();
  18933. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18934. void UnsubscribeFromEvent(Object, StringHash);
  18935. void UnsubscribeFromEvent(StringHash);
  18936. void UnsubscribeFromEvents(Object);
  18937. const Variant& GetGlobalVar(StringHash) const;
  18938. const VariantMap& GetGlobalVars() const;
  18939. const Vector2& GetMaxParticleSize() const;
  18940. const Vector2& GetMinParticleSize() const;
  18941. const Vector3& GetConstantForce() const;
  18942. const Vector3& GetEmitterSize() const;
  18943. const Vector3& GetMaxDirection() const;
  18944. const Vector3& GetMinDirection() const;
  18945. int WeakRefs() const;
  18946. operator const Object() const;
  18947. operator const RefCounted() const;
  18948. operator const Resource() const;
  18949. // Properties:
  18950. float activeTime;
  18951. float animationLodBias;
  18952. /* readonly */
  18953. String category;
  18954. Vector3 constantForce;
  18955. float dampingForce;
  18956. Vector3 emitterSize;
  18957. EmitterType emitterType;
  18958. FaceCameraMode faceCameraMode;
  18959. bool fixedScreenSize;
  18960. Array<Variant> globalVar;
  18961. /* readonly */
  18962. VariantMap globalVars;
  18963. float inactiveTime;
  18964. Material material;
  18965. Vector3 maxDirection;
  18966. float maxEmissionRate;
  18967. Vector2 maxParticleSize;
  18968. float maxRotation;
  18969. float maxRotationSpeed;
  18970. float maxTimeToLive;
  18971. float maxVelocity;
  18972. /* readonly */
  18973. uint memoryUse;
  18974. Vector3 minDirection;
  18975. float minEmissionRate;
  18976. Vector2 minParticleSize;
  18977. float minRotation;
  18978. float minRotationSpeed;
  18979. float minTimeToLive;
  18980. float minVelocity;
  18981. String name;
  18982. uint numColorFrames;
  18983. uint numParticles;
  18984. uint numTextureFrames;
  18985. /* readonly */
  18986. int refs;
  18987. bool relative;
  18988. bool scaled;
  18989. float sizeAdd;
  18990. float sizeMul;
  18991. bool sorted;
  18992. /* readonly */
  18993. StringHash type;
  18994. /* readonly */
  18995. String typeName;
  18996. bool updateInvisible;
  18997. /* readonly */
  18998. uint useTimer;
  18999. /* readonly */
  19000. int weakRefs;
  19001. };
  19002. class ParticleEffect2D
  19003. {
  19004. public:
  19005. ParticleEffect2D();
  19006. // Methods:
  19007. bool BeginLoad(Deserializer&);
  19008. ParticleEffect2D Clone(const String& = String :: EMPTY) const;
  19009. const Color& GetFinishColor() const;
  19010. const Color& GetFinishColorVariance() const;
  19011. const Color& GetStartColor() const;
  19012. const Color& GetStartColorVariance() const;
  19013. bool EndLoad();
  19014. float GetAngle() const;
  19015. float GetAngleVariance() const;
  19016. AsyncLoadState GetAsyncLoadState() const;
  19017. BlendMode GetBlendMode() const;
  19018. bool GetBlockEvents() const;
  19019. float GetDuration() const;
  19020. EmitterType2D GetEmitterType() const;
  19021. VariantMap& GetEventDataMap() const;
  19022. Object GetEventSender() const;
  19023. float GetFinishParticleSize() const;
  19024. float GetFinishParticleSizeVariance() const;
  19025. int GetMaxParticles() const;
  19026. float GetMaxRadius() const;
  19027. float GetMaxRadiusVariance() const;
  19028. uint GetMemoryUse() const;
  19029. float GetMinRadius() const;
  19030. float GetMinRadiusVariance() const;
  19031. StringHash GetNameHash() const;
  19032. float GetParticleLifeSpan() const;
  19033. float GetParticleLifespanVariance() const;
  19034. float GetRadialAccelVariance() const;
  19035. float GetRadialAcceleration() const;
  19036. float GetRotatePerSecond() const;
  19037. float GetRotatePerSecondVariance() const;
  19038. float GetRotationEnd() const;
  19039. float GetRotationEndVariance() const;
  19040. float GetRotationStart() const;
  19041. float GetRotationStartVariance() const;
  19042. float GetSpeed() const;
  19043. float GetSpeedVariance() const;
  19044. Sprite2D GetSprite() const;
  19045. float GetStartParticleSize() const;
  19046. float GetStartParticleSizeVariance() const;
  19047. Object GetSubsystem(StringHash) const;
  19048. float GetTangentialAccelVariance() const;
  19049. float GetTangentialAcceleration() const;
  19050. StringHash GetType() const;
  19051. uint GetUseTimer();
  19052. bool HasEventHandlers() const;
  19053. bool HasSubscribedToEvent(Object, StringHash) const;
  19054. bool HasSubscribedToEvent(StringHash) const;
  19055. bool IsInstanceOf(StringHash) const;
  19056. bool Load(Deserializer&);
  19057. bool Load(File);
  19058. bool Load(VectorBuffer&);
  19059. bool Load(const String&);
  19060. bool LoadFile(const String&);
  19061. operator Object() const;
  19062. void OnEvent(Object, StringHash, VariantMap&);
  19063. operator RefCounted() const;
  19064. int Refs() const;
  19065. void ResetUseTimer();
  19066. operator Resource() const;
  19067. bool Save(File) const;
  19068. bool Save(Serializer&) const;
  19069. bool Save(VectorBuffer&) const;
  19070. bool Save(const String&) const;
  19071. bool SaveFile(const String&) const;
  19072. void SendEvent(StringHash);
  19073. void SendEvent(StringHash, VariantMap&);
  19074. void SetAngle(float);
  19075. void SetAngleVariance(float);
  19076. void SetAsyncLoadState(AsyncLoadState);
  19077. void SetBlendMode(BlendMode);
  19078. void SetBlockEvents(bool);
  19079. void SetDuration(float);
  19080. void SetEmitterType(EmitterType2D);
  19081. void SetFinishColor(const Color&);
  19082. void SetFinishColorVariance(const Color&);
  19083. void SetFinishParticleSize(float);
  19084. void SetFinishParticleSizeVariance(float);
  19085. void SetGlobalVar(StringHash, const Variant&);
  19086. void SetGravity(const Vector2&);
  19087. void SetMaxParticles(int);
  19088. void SetMaxRadius(float);
  19089. void SetMaxRadiusVariance(float);
  19090. void SetMemoryUse(uint);
  19091. void SetMinRadius(float);
  19092. void SetMinRadiusVariance(float);
  19093. void SetName(const String&);
  19094. void SetParticleLifeSpan(float);
  19095. void SetParticleLifespanVariance(float);
  19096. void SetRadialAccelVariance(float);
  19097. void SetRadialAcceleration(float);
  19098. void SetRotatePerSecond(float);
  19099. void SetRotatePerSecondVariance(float);
  19100. void SetRotationEnd(float);
  19101. void SetRotationEndVariance(float);
  19102. void SetRotationStart(float);
  19103. void SetRotationStartVariance(float);
  19104. void SetSourcePositionVariance(const Vector2&);
  19105. void SetSpeed(float);
  19106. void SetSpeedVariance(float);
  19107. void SetSprite(Sprite2D);
  19108. void SetStartColor(const Color&);
  19109. void SetStartColorVariance(const Color&);
  19110. void SetStartParticleSize(float);
  19111. void SetStartParticleSizeVariance(float);
  19112. void SetTangentialAccelVariance(float);
  19113. void SetTangentialAcceleration(float);
  19114. const String& GetCategory() const;
  19115. const String& GetName() const;
  19116. const String& GetTypeName() const;
  19117. void UnsubscribeFromAllEvents();
  19118. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19119. void UnsubscribeFromEvent(Object, StringHash);
  19120. void UnsubscribeFromEvent(StringHash);
  19121. void UnsubscribeFromEvents(Object);
  19122. const Variant& GetGlobalVar(StringHash) const;
  19123. const VariantMap& GetGlobalVars() const;
  19124. const Vector2& GetGravity() const;
  19125. const Vector2& GetSourcePositionVariance() const;
  19126. int WeakRefs() const;
  19127. operator const Object() const;
  19128. operator const RefCounted() const;
  19129. operator const Resource() const;
  19130. // Properties:
  19131. /* readonly */
  19132. String category;
  19133. Array<Variant> globalVar;
  19134. /* readonly */
  19135. VariantMap globalVars;
  19136. /* readonly */
  19137. uint memoryUse;
  19138. String name;
  19139. /* readonly */
  19140. int refs;
  19141. /* readonly */
  19142. StringHash type;
  19143. /* readonly */
  19144. String typeName;
  19145. /* readonly */
  19146. uint useTimer;
  19147. /* readonly */
  19148. int weakRefs;
  19149. };
  19150. class ParticleEmitter
  19151. {
  19152. public:
  19153. ParticleEmitter();
  19154. // Methods:
  19155. void AddLight(Light);
  19156. void AddVertexLight(Light);
  19157. void AllocateNetworkState();
  19158. operator Animatable() const;
  19159. void ApplyAttributes();
  19160. void ApplyEffect();
  19161. operator BillboardSet() const;
  19162. const BoundingBox& GetBoundingBox() const;
  19163. const BoundingBox& GetWorldBoundingBox();
  19164. void CleanupConnection(Connection);
  19165. void Commit();
  19166. operator Component() const;
  19167. void DrawDebugGeometry(DebugRenderer, bool);
  19168. bool DrawOcclusion(OcclusionBuffer);
  19169. operator Drawable() const;
  19170. bool GetAnimationEnabled() const;
  19171. float GetAnimationLodBias() const;
  19172. Variant GetAttribute(const String&) const;
  19173. Variant GetAttribute(uint) const;
  19174. ValueAnimation GetAttributeAnimation(const String&) const;
  19175. float GetAttributeAnimationSpeed(const String&) const;
  19176. float GetAttributeAnimationTime(const String&) const;
  19177. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19178. Variant GetAttributeDefault(const String&) const;
  19179. Variant GetAttributeDefault(uint) const;
  19180. AutoRemoveMode GetAutoRemoveMode() const;
  19181. Billboard GetBillboard(uint);
  19182. bool GetBlockEvents() const;
  19183. bool GetCastShadows() const;
  19184. Component GetComponent(StringHash) const;
  19185. float GetDistance() const;
  19186. float GetDrawDistance() const;
  19187. uint8 GetDrawableFlags() const;
  19188. ParticleEffect GetEffect() const;
  19189. ResourceRef GetEffectAttr() const;
  19190. VariantMap& GetEventDataMap() const;
  19191. Object GetEventSender() const;
  19192. FaceCameraMode GetFaceCameraMode() const;
  19193. Light GetFirstLight() const;
  19194. uint GetID() const;
  19195. bool GetInterceptNetworkUpdate(const String&) const;
  19196. uint GetLightMask() const;
  19197. Array<Light> GetLights() const;
  19198. float GetLodBias() const;
  19199. float GetLodDistance() const;
  19200. Geometry GetLodGeometry(uint, uint);
  19201. Material GetMaterial() const;
  19202. ResourceRef GetMaterialAttr() const;
  19203. uint GetMaxLights() const;
  19204. float GetMaxZ() const;
  19205. float GetMinAngle() const;
  19206. float GetMinZ() const;
  19207. Node GetNode() const;
  19208. uint GetNumAttributes() const;
  19209. uint GetNumBillboards() const;
  19210. uint GetNumNetworkAttributes() const;
  19211. uint GetNumOccluderTriangles();
  19212. uint GetNumParticles() const;
  19213. ObjectAnimation GetObjectAnimation() const;
  19214. ResourceRef GetObjectAnimationAttr() const;
  19215. Scene GetScene() const;
  19216. bool GetSerializeParticles() const;
  19217. float GetShadowDistance() const;
  19218. uint GetShadowMask() const;
  19219. float GetSortValue() const;
  19220. Object GetSubsystem(StringHash) const;
  19221. StringHash GetType() const;
  19222. UpdateGeometryType GetUpdateGeometryType();
  19223. Array<Light> GetVertexLights() const;
  19224. uint GetViewMask() const;
  19225. Zone GetZone() const;
  19226. uint GetZoneMask() const;
  19227. bool HasBasePass(uint) const;
  19228. bool HasEventHandlers() const;
  19229. bool HasSubscribedToEvent(Object, StringHash) const;
  19230. bool HasSubscribedToEvent(StringHash) const;
  19231. bool IsEmitting() const;
  19232. bool IsEnabled() const;
  19233. bool IsEnabledEffective() const;
  19234. bool IsFixedScreenSize() const;
  19235. bool IsInView() const;
  19236. bool IsInView(Camera) const;
  19237. bool IsInView(const FrameInfo&, bool = false) const;
  19238. bool IsInstanceOf(StringHash) const;
  19239. bool IsOccludee() const;
  19240. bool IsOccluder() const;
  19241. bool IsRelative() const;
  19242. bool IsReplicated() const;
  19243. bool IsScaled() const;
  19244. bool IsSorted() const;
  19245. bool IsTemporary() const;
  19246. bool IsZoneDirty() const;
  19247. void LimitLights();
  19248. void LimitVertexLights(bool);
  19249. bool Load(Deserializer&);
  19250. bool LoadJSON(const JSONValue&);
  19251. bool LoadXML(const XMLElement&);
  19252. void MarkForUpdate();
  19253. void MarkInView(const FrameInfo&);
  19254. void MarkInView(uint);
  19255. void MarkNetworkUpdate();
  19256. operator Object() const;
  19257. void OnEvent(Object, StringHash, VariantMap&);
  19258. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19259. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19260. void OnSetEnabled();
  19261. void PrepareNetworkUpdate();
  19262. bool ReadDeltaUpdate(Deserializer&);
  19263. bool ReadLatestDataUpdate(Deserializer&);
  19264. operator RefCounted() const;
  19265. int Refs() const;
  19266. void Remove();
  19267. void RemoveAllParticles();
  19268. void RemoveAttributeAnimation(const String&);
  19269. void RemoveInstanceDefault();
  19270. void RemoveObjectAnimation();
  19271. void Reset();
  19272. void ResetEmissionTimer();
  19273. void ResetToDefault();
  19274. bool Save(Serializer&) const;
  19275. bool SaveDefaultAttributes() const;
  19276. bool SaveJSON(JSONValue&) const;
  19277. bool SaveXML(XMLElement&) const;
  19278. void SendEvent(StringHash);
  19279. void SendEvent(StringHash, VariantMap&);
  19280. operator Serializable() const;
  19281. void SetAnimationEnabled(bool);
  19282. void SetAnimationLodBias(float);
  19283. void SetAnimationTime(float);
  19284. bool SetAttribute(const String&, const Variant&);
  19285. bool SetAttribute(uint, const Variant&);
  19286. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19287. void SetAttributeAnimationSpeed(const String&, float);
  19288. void SetAttributeAnimationTime(const String&, float);
  19289. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19290. void SetAutoRemoveMode(AutoRemoveMode);
  19291. void SetBasePass(uint);
  19292. void SetBlockEvents(bool);
  19293. void SetCastShadows(bool);
  19294. void SetDrawDistance(float);
  19295. void SetEffect(ParticleEffect);
  19296. void SetEffectAttr(const ResourceRef&);
  19297. void SetEmitting(bool);
  19298. void SetEnabled(bool);
  19299. void SetFaceCameraMode(FaceCameraMode);
  19300. void SetFixedScreenSize(bool);
  19301. void SetGlobalVar(StringHash, const Variant&);
  19302. void SetInstanceDefault(bool);
  19303. void SetInterceptNetworkUpdate(const String&, bool);
  19304. void SetLightMask(uint);
  19305. void SetLodBias(float);
  19306. void SetMaterial(Material);
  19307. void SetMaterialAttr(const ResourceRef&);
  19308. void SetMaxLights(uint);
  19309. void SetMinAngle(float);
  19310. void SetMinMaxZ(float, float);
  19311. void SetNumBillboards(uint);
  19312. void SetNumParticles(uint);
  19313. void SetObjectAnimation(ObjectAnimation);
  19314. void SetObjectAnimationAttr(const ResourceRef&);
  19315. void SetOccludee(bool);
  19316. void SetOccluder(bool);
  19317. void SetRelative(bool);
  19318. void SetScaled(bool);
  19319. void SetSerializeParticles(bool);
  19320. void SetShadowDistance(float);
  19321. void SetShadowMask(uint);
  19322. void SetSortValue(float);
  19323. void SetSorted(bool);
  19324. void SetTemporary(bool);
  19325. void SetViewMask(uint);
  19326. void SetZone(Zone, bool = false);
  19327. void SetZoneMask(uint);
  19328. const String& GetCategory() const;
  19329. const String& GetTypeName() const;
  19330. void UnsubscribeFromAllEvents();
  19331. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19332. void UnsubscribeFromEvent(Object, StringHash);
  19333. void UnsubscribeFromEvent(StringHash);
  19334. void UnsubscribeFromEvents(Object);
  19335. void Update(const FrameInfo&);
  19336. void UpdateBatches(const FrameInfo&);
  19337. void UpdateGeometry(const FrameInfo&);
  19338. const Variant& GetGlobalVar(StringHash) const;
  19339. const VariantMap& GetGlobalVars() const;
  19340. int WeakRefs() const;
  19341. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  19342. void WriteInitialDeltaUpdate(Serializer&, uint8);
  19343. void WriteLatestDataUpdate(Serializer&, uint8);
  19344. operator const Animatable() const;
  19345. operator const BillboardSet() const;
  19346. operator const Component() const;
  19347. operator const Drawable() const;
  19348. operator const Object() const;
  19349. operator const RefCounted() const;
  19350. operator const Serializable() const;
  19351. // Properties:
  19352. bool animationEnabled;
  19353. float animationLodBias;
  19354. /* readonly */
  19355. Array<Variant> attributeDefaults;
  19356. /* readonly */
  19357. Array<AttributeInfo> attributeInfos;
  19358. Array<Variant> attributes;
  19359. AutoRemoveMode autoRemoveMode;
  19360. /* readonly */
  19361. Array<Billboard> billboards;
  19362. /* readonly */
  19363. BoundingBox boundingBox;
  19364. bool castShadows;
  19365. /* readonly */
  19366. String category;
  19367. float drawDistance;
  19368. ParticleEffect effect;
  19369. bool emitting;
  19370. bool enabled;
  19371. /* readonly */
  19372. bool enabledEffective;
  19373. FaceCameraMode faceCameraMode;
  19374. bool fixedScreenSize;
  19375. Array<Variant> globalVar;
  19376. /* readonly */
  19377. VariantMap globalVars;
  19378. /* readonly */
  19379. uint id;
  19380. /* readonly */
  19381. bool inView;
  19382. uint lightMask;
  19383. float lodBias;
  19384. Material material;
  19385. uint maxLights;
  19386. float minAngle;
  19387. /* readonly */
  19388. Node node;
  19389. /* readonly */
  19390. uint numAttributes;
  19391. uint numBillboards;
  19392. uint numParticles;
  19393. ObjectAnimation objectAnimation;
  19394. bool occludee;
  19395. bool occluder;
  19396. /* readonly */
  19397. int refs;
  19398. bool relative;
  19399. /* readonly */
  19400. bool replicated;
  19401. bool scaled;
  19402. bool serializeParticles;
  19403. float shadowDistance;
  19404. uint shadowMask;
  19405. bool sorted;
  19406. bool temporary;
  19407. /* readonly */
  19408. StringHash type;
  19409. /* readonly */
  19410. String typeName;
  19411. uint viewMask;
  19412. /* readonly */
  19413. int weakRefs;
  19414. /* readonly */
  19415. BoundingBox worldBoundingBox;
  19416. /* readonly */
  19417. Zone zone;
  19418. uint zoneMask;
  19419. };
  19420. class ParticleEmitter2D
  19421. {
  19422. public:
  19423. ParticleEmitter2D();
  19424. // Methods:
  19425. void AddLight(Light);
  19426. void AddVertexLight(Light);
  19427. void AllocateNetworkState();
  19428. operator Animatable() const;
  19429. void ApplyAttributes();
  19430. const BoundingBox& GetBoundingBox() const;
  19431. const BoundingBox& GetWorldBoundingBox();
  19432. void CleanupConnection(Connection);
  19433. operator Component() const;
  19434. void DrawDebugGeometry(DebugRenderer, bool);
  19435. bool DrawOcclusion(OcclusionBuffer);
  19436. operator Drawable2D() const;
  19437. operator Drawable() const;
  19438. bool GetAnimationEnabled() const;
  19439. Variant GetAttribute(const String&) const;
  19440. Variant GetAttribute(uint) const;
  19441. ValueAnimation GetAttributeAnimation(const String&) const;
  19442. float GetAttributeAnimationSpeed(const String&) const;
  19443. float GetAttributeAnimationTime(const String&) const;
  19444. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19445. Variant GetAttributeDefault(const String&) const;
  19446. Variant GetAttributeDefault(uint) const;
  19447. BlendMode GetBlendMode() const;
  19448. bool GetBlockEvents() const;
  19449. bool GetCastShadows() const;
  19450. Component GetComponent(StringHash) const;
  19451. float GetDistance() const;
  19452. float GetDrawDistance() const;
  19453. uint8 GetDrawableFlags() const;
  19454. ParticleEffect2D GetEffect() const;
  19455. VariantMap& GetEventDataMap() const;
  19456. Object GetEventSender() const;
  19457. Light GetFirstLight() const;
  19458. uint GetID() const;
  19459. bool GetInterceptNetworkUpdate(const String&) const;
  19460. int GetLayer() const;
  19461. uint GetLightMask() const;
  19462. Array<Light> GetLights() const;
  19463. float GetLodBias() const;
  19464. float GetLodDistance() const;
  19465. Geometry GetLodGeometry(uint, uint);
  19466. uint GetMaxLights() const;
  19467. uint GetMaxParticles() const;
  19468. float GetMaxZ() const;
  19469. float GetMinZ() const;
  19470. Node GetNode() const;
  19471. uint GetNumAttributes() const;
  19472. uint GetNumNetworkAttributes() const;
  19473. uint GetNumOccluderTriangles();
  19474. ObjectAnimation GetObjectAnimation() const;
  19475. ResourceRef GetObjectAnimationAttr() const;
  19476. int GetOrderInLayer() const;
  19477. ResourceRef GetParticleEffectAttr() const;
  19478. Scene GetScene() const;
  19479. float GetShadowDistance() const;
  19480. uint GetShadowMask() const;
  19481. float GetSortValue() const;
  19482. Sprite2D GetSprite() const;
  19483. ResourceRef GetSpriteAttr() const;
  19484. Object GetSubsystem(StringHash) const;
  19485. StringHash GetType() const;
  19486. UpdateGeometryType GetUpdateGeometryType();
  19487. Array<Light> GetVertexLights() const;
  19488. uint GetViewMask() const;
  19489. Zone GetZone() const;
  19490. uint GetZoneMask() const;
  19491. bool HasBasePass(uint) const;
  19492. bool HasEventHandlers() const;
  19493. bool HasSubscribedToEvent(Object, StringHash) const;
  19494. bool HasSubscribedToEvent(StringHash) const;
  19495. bool IsEmitting() const;
  19496. bool IsEnabled() const;
  19497. bool IsEnabledEffective() const;
  19498. bool IsInView() const;
  19499. bool IsInView(Camera) const;
  19500. bool IsInView(const FrameInfo&, bool = false) const;
  19501. bool IsInstanceOf(StringHash) const;
  19502. bool IsOccludee() const;
  19503. bool IsOccluder() const;
  19504. bool IsReplicated() const;
  19505. bool IsTemporary() const;
  19506. bool IsZoneDirty() const;
  19507. void LimitLights();
  19508. void LimitVertexLights(bool);
  19509. bool Load(Deserializer&);
  19510. bool LoadJSON(const JSONValue&);
  19511. bool LoadXML(const XMLElement&);
  19512. void MarkForUpdate();
  19513. void MarkInView(const FrameInfo&);
  19514. void MarkInView(uint);
  19515. void MarkNetworkUpdate();
  19516. operator Object() const;
  19517. void OnEvent(Object, StringHash, VariantMap&);
  19518. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19519. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19520. void OnSetEnabled();
  19521. void PrepareNetworkUpdate();
  19522. bool ReadDeltaUpdate(Deserializer&);
  19523. bool ReadLatestDataUpdate(Deserializer&);
  19524. operator RefCounted() const;
  19525. int Refs() const;
  19526. void Remove();
  19527. void RemoveAttributeAnimation(const String&);
  19528. void RemoveInstanceDefault();
  19529. void RemoveObjectAnimation();
  19530. void ResetToDefault();
  19531. bool Save(Serializer&) const;
  19532. bool SaveDefaultAttributes() const;
  19533. bool SaveJSON(JSONValue&) const;
  19534. bool SaveXML(XMLElement&) const;
  19535. void SendEvent(StringHash);
  19536. void SendEvent(StringHash, VariantMap&);
  19537. operator Serializable() const;
  19538. void SetAnimationEnabled(bool);
  19539. void SetAnimationTime(float);
  19540. bool SetAttribute(const String&, const Variant&);
  19541. bool SetAttribute(uint, const Variant&);
  19542. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19543. void SetAttributeAnimationSpeed(const String&, float);
  19544. void SetAttributeAnimationTime(const String&, float);
  19545. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19546. void SetBasePass(uint);
  19547. void SetBlendMode(BlendMode);
  19548. void SetBlockEvents(bool);
  19549. void SetCastShadows(bool);
  19550. void SetDrawDistance(float);
  19551. void SetEffect(ParticleEffect2D);
  19552. void SetEmitting(bool);
  19553. void SetEnabled(bool);
  19554. void SetGlobalVar(StringHash, const Variant&);
  19555. void SetInstanceDefault(bool);
  19556. void SetInterceptNetworkUpdate(const String&, bool);
  19557. void SetLayer(int);
  19558. void SetLightMask(uint);
  19559. void SetLodBias(float);
  19560. void SetMaxLights(uint);
  19561. void SetMaxParticles(uint);
  19562. void SetMinMaxZ(float, float);
  19563. void SetObjectAnimation(ObjectAnimation);
  19564. void SetObjectAnimationAttr(const ResourceRef&);
  19565. void SetOccludee(bool);
  19566. void SetOccluder(bool);
  19567. void SetOrderInLayer(int);
  19568. void SetParticleEffectAttr(const ResourceRef&);
  19569. void SetShadowDistance(float);
  19570. void SetShadowMask(uint);
  19571. void SetSortValue(float);
  19572. void SetSprite(Sprite2D);
  19573. void SetSpriteAttr(const ResourceRef&);
  19574. void SetTemporary(bool);
  19575. void SetViewMask(uint);
  19576. void SetZone(Zone, bool = false);
  19577. void SetZoneMask(uint);
  19578. const String& GetCategory() const;
  19579. const String& GetTypeName() const;
  19580. void UnsubscribeFromAllEvents();
  19581. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19582. void UnsubscribeFromEvent(Object, StringHash);
  19583. void UnsubscribeFromEvent(StringHash);
  19584. void UnsubscribeFromEvents(Object);
  19585. void UpdateBatches(const FrameInfo&);
  19586. void UpdateGeometry(const FrameInfo&);
  19587. const Variant& GetGlobalVar(StringHash) const;
  19588. const VariantMap& GetGlobalVars() const;
  19589. int WeakRefs() const;
  19590. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  19591. void WriteInitialDeltaUpdate(Serializer&, uint8);
  19592. void WriteLatestDataUpdate(Serializer&, uint8);
  19593. operator const Animatable() const;
  19594. operator const Component() const;
  19595. operator const Drawable2D() const;
  19596. operator const Drawable() const;
  19597. operator const Object() const;
  19598. operator const RefCounted() const;
  19599. operator const Serializable() const;
  19600. // Properties:
  19601. bool animationEnabled;
  19602. /* readonly */
  19603. Array<Variant> attributeDefaults;
  19604. /* readonly */
  19605. Array<AttributeInfo> attributeInfos;
  19606. Array<Variant> attributes;
  19607. BlendMode blendMode;
  19608. /* readonly */
  19609. BoundingBox boundingBox;
  19610. bool castShadows;
  19611. /* readonly */
  19612. String category;
  19613. float drawDistance;
  19614. ParticleEffect2D effect;
  19615. bool emitting;
  19616. bool enabled;
  19617. /* readonly */
  19618. bool enabledEffective;
  19619. Array<Variant> globalVar;
  19620. /* readonly */
  19621. VariantMap globalVars;
  19622. /* readonly */
  19623. uint id;
  19624. /* readonly */
  19625. bool inView;
  19626. int layer;
  19627. uint lightMask;
  19628. float lodBias;
  19629. uint maxLights;
  19630. /* readonly */
  19631. Node node;
  19632. /* readonly */
  19633. uint numAttributes;
  19634. ObjectAnimation objectAnimation;
  19635. bool occludee;
  19636. bool occluder;
  19637. int orderInLayer;
  19638. /* readonly */
  19639. int refs;
  19640. /* readonly */
  19641. bool replicated;
  19642. float shadowDistance;
  19643. uint shadowMask;
  19644. Sprite2D sprite;
  19645. bool temporary;
  19646. /* readonly */
  19647. StringHash type;
  19648. /* readonly */
  19649. String typeName;
  19650. uint viewMask;
  19651. /* readonly */
  19652. int weakRefs;
  19653. /* readonly */
  19654. BoundingBox worldBoundingBox;
  19655. /* readonly */
  19656. Zone zone;
  19657. uint zoneMask;
  19658. };
  19659. class Pass
  19660. {
  19661. public:
  19662. Pass(const String&in);
  19663. // Methods:
  19664. bool GetAlphaToCoverage() const;
  19665. BlendMode GetBlendMode() const;
  19666. CullMode GetCullMode() const;
  19667. CompareMode GetDepthTestMode() const;
  19668. bool GetDepthWrite() const;
  19669. String GetEffectivePixelShaderDefines() const;
  19670. String GetEffectiveVertexShaderDefines() const;
  19671. uint GetIndex() const;
  19672. PassLightingMode GetLightingMode() const;
  19673. Array<ShaderVariation> GetPixelShaders();
  19674. Array<ShaderVariation> GetPixelShaders(const StringHash&);
  19675. uint GetShadersLoadedFrameNumber() const;
  19676. Array<ShaderVariation> GetVertexShaders();
  19677. Array<ShaderVariation> GetVertexShaders(const StringHash&);
  19678. bool IsDesktop() const;
  19679. void MarkShadersLoaded(uint);
  19680. operator RefCounted() const;
  19681. int Refs() const;
  19682. void ReleaseShaders();
  19683. void SetAlphaToCoverage(bool);
  19684. void SetBlendMode(BlendMode);
  19685. void SetCullMode(CullMode);
  19686. void SetDepthTestMode(CompareMode);
  19687. void SetDepthWrite(bool);
  19688. void SetIsDesktop(bool);
  19689. void SetLightingMode(PassLightingMode);
  19690. void SetPixelShader(const String&);
  19691. void SetPixelShaderDefineExcludes(const String&);
  19692. void SetPixelShaderDefines(const String&);
  19693. void SetVertexShader(const String&);
  19694. void SetVertexShaderDefineExcludes(const String&);
  19695. void SetVertexShaderDefines(const String&);
  19696. const String& GetName() const;
  19697. const String& GetPixelShader() const;
  19698. const String& GetPixelShaderDefineExcludes() const;
  19699. const String& GetPixelShaderDefines() const;
  19700. const String& GetVertexShader() const;
  19701. const String& GetVertexShaderDefineExcludes() const;
  19702. const String& GetVertexShaderDefines() const;
  19703. int WeakRefs() const;
  19704. operator const RefCounted() const;
  19705. // Properties:
  19706. bool alphaToCoverage;
  19707. BlendMode blendMode;
  19708. CullMode cullMode;
  19709. CompareMode depthTestMode;
  19710. bool depthWrite;
  19711. bool desktop;
  19712. PassLightingMode lightingMode;
  19713. String pixelShader;
  19714. String pixelShaderDefineExcludes;
  19715. String pixelShaderDefines;
  19716. /* readonly */
  19717. int refs;
  19718. String vertexShader;
  19719. String vertexShaderDefineExcludes;
  19720. String vertexShaderDefines;
  19721. /* readonly */
  19722. int weakRefs;
  19723. };
  19724. class PerThreadSceneResult
  19725. {
  19726. public:
  19727. ~PerThreadSceneResult();
  19728. PerThreadSceneResult();
  19729. // Methods:
  19730. PerThreadSceneResult& operator=(const PerThreadSceneResult&);
  19731. // Properties:
  19732. float maxZ;
  19733. float minZ;
  19734. };
  19735. class PhysicsRaycastResult
  19736. {
  19737. public:
  19738. ~PhysicsRaycastResult();
  19739. PhysicsRaycastResult();
  19740. // Methods:
  19741. PhysicsRaycastResult& operator=(const PhysicsRaycastResult&);
  19742. // Properties:
  19743. /* readonly */
  19744. RigidBody body;
  19745. float distance;
  19746. float hitFraction;
  19747. Vector3 normal;
  19748. Vector3 position;
  19749. };
  19750. class PhysicsRaycastResult2D
  19751. {
  19752. public:
  19753. ~PhysicsRaycastResult2D();
  19754. PhysicsRaycastResult2D();
  19755. // Methods:
  19756. PhysicsRaycastResult2D& operator=(const PhysicsRaycastResult2D&);
  19757. // Properties:
  19758. /* readonly */
  19759. RigidBody2D body;
  19760. float distance;
  19761. Vector2 normal;
  19762. Vector2 position;
  19763. };
  19764. class PhysicsWorld
  19765. {
  19766. public:
  19767. PhysicsWorld();
  19768. // Methods:
  19769. void AddCollisionShape(CollisionShape);
  19770. void AddConstraint(Constraint);
  19771. void AddDelayedWorldTransform(const DelayedWorldTransform&);
  19772. void AddRigidBody(RigidBody);
  19773. void AllocateNetworkState();
  19774. operator Animatable() const;
  19775. void ApplyAttributes();
  19776. void CleanupConnection(Connection);
  19777. void CleanupGeometryCache();
  19778. operator Component() const;
  19779. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  19780. void ConvexCast(PhysicsRaycastResult&, CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = M_MAX_UNSIGNED);
  19781. void DrawDebugGeometry(DebugRenderer, bool);
  19782. void DrawDebugGeometry(bool);
  19783. bool GetAnimationEnabled() const;
  19784. Variant GetAttribute(const String&) const;
  19785. Variant GetAttribute(uint) const;
  19786. ValueAnimation GetAttributeAnimation(const String&) const;
  19787. float GetAttributeAnimationSpeed(const String&) const;
  19788. float GetAttributeAnimationTime(const String&) const;
  19789. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19790. Variant GetAttributeDefault(const String&) const;
  19791. Variant GetAttributeDefault(uint) const;
  19792. bool GetBlockEvents() const;
  19793. Array<RigidBody> GetCollidingBodies(RigidBody);
  19794. Component GetComponent(StringHash) const;
  19795. VariantMap& GetEventDataMap() const;
  19796. Object GetEventSender() const;
  19797. int GetFps() const;
  19798. Vector3 GetGravity() const;
  19799. uint GetID() const;
  19800. bool GetInterceptNetworkUpdate(const String&) const;
  19801. bool GetInternalEdge() const;
  19802. bool GetInterpolation() const;
  19803. float GetMaxNetworkAngularVelocity() const;
  19804. int GetMaxSubSteps() const;
  19805. Node GetNode() const;
  19806. uint GetNumAttributes() const;
  19807. int GetNumIterations() const;
  19808. uint GetNumNetworkAttributes() const;
  19809. ObjectAnimation GetObjectAnimation() const;
  19810. ResourceRef GetObjectAnimationAttr() const;
  19811. Array<RigidBody> GetRigidBodies(RigidBody);
  19812. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint collisionMask = 0xffff);
  19813. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  19814. Scene GetScene() const;
  19815. bool GetSplitImpulse() const;
  19816. Object GetSubsystem(StringHash) const;
  19817. StringHash GetType() const;
  19818. bool HasEventHandlers() const;
  19819. bool HasSubscribedToEvent(Object, StringHash) const;
  19820. bool HasSubscribedToEvent(StringHash) const;
  19821. bool IsApplyingTransforms() const;
  19822. bool IsEnabled() const;
  19823. bool IsEnabledEffective() const;
  19824. bool IsInstanceOf(StringHash) const;
  19825. bool IsReplicated() const;
  19826. bool IsSimulating() const;
  19827. bool IsTemporary() const;
  19828. bool IsUpdateEnabled() const;
  19829. bool Load(Deserializer&);
  19830. bool LoadJSON(const JSONValue&);
  19831. bool LoadXML(const XMLElement&);
  19832. void MarkNetworkUpdate();
  19833. operator Object() const;
  19834. void OnEvent(Object, StringHash, VariantMap&);
  19835. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19836. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19837. void OnSetEnabled();
  19838. void PrepareNetworkUpdate();
  19839. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  19840. void RaycastSingle(PhysicsRaycastResult&, const Ray&, float, uint = M_MAX_UNSIGNED);
  19841. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  19842. void RaycastSingleSegmented(PhysicsRaycastResult&, const Ray&, float, float, uint = M_MAX_UNSIGNED, float = 0.1f);
  19843. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint collisionMask = 0xffff, float overlapDistance = 0.1f);
  19844. bool ReadDeltaUpdate(Deserializer&);
  19845. bool ReadLatestDataUpdate(Deserializer&);
  19846. operator RefCounted() const;
  19847. int Refs() const;
  19848. void Remove();
  19849. void RemoveAttributeAnimation(const String&);
  19850. void RemoveCachedGeometry(Model);
  19851. void RemoveCollisionShape(CollisionShape);
  19852. void RemoveConstraint(Constraint);
  19853. void RemoveInstanceDefault();
  19854. void RemoveObjectAnimation();
  19855. void RemoveRigidBody(RigidBody);
  19856. void ResetToDefault();
  19857. bool Save(Serializer&) const;
  19858. bool SaveDefaultAttributes() const;
  19859. bool SaveJSON(JSONValue&) const;
  19860. bool SaveXML(XMLElement&) const;
  19861. void SendEvent(StringHash);
  19862. void SendEvent(StringHash, VariantMap&);
  19863. operator Serializable() const;
  19864. void SetAnimationEnabled(bool);
  19865. void SetAnimationTime(float);
  19866. void SetApplyingTransforms(bool);
  19867. bool SetAttribute(const String&, const Variant&);
  19868. bool SetAttribute(uint, const Variant&);
  19869. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19870. void SetAttributeAnimationSpeed(const String&, float);
  19871. void SetAttributeAnimationTime(const String&, float);
  19872. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19873. void SetBlockEvents(bool);
  19874. void SetDebugDepthTest(bool);
  19875. void SetDebugRenderer(DebugRenderer);
  19876. void SetEnabled(bool);
  19877. void SetFps(int);
  19878. void SetGlobalVar(StringHash, const Variant&);
  19879. void SetGravity(const Vector3&);
  19880. void SetInstanceDefault(bool);
  19881. void SetInterceptNetworkUpdate(const String&, bool);
  19882. void SetInternalEdge(bool);
  19883. void SetInterpolation(bool);
  19884. void SetMaxNetworkAngularVelocity(float);
  19885. void SetMaxSubSteps(int);
  19886. void SetNumIterations(int);
  19887. void SetObjectAnimation(ObjectAnimation);
  19888. void SetObjectAnimationAttr(const ResourceRef&);
  19889. void SetSplitImpulse(bool);
  19890. void SetTemporary(bool);
  19891. void SetUpdateEnabled(bool);
  19892. void SphereCast(PhysicsRaycastResult&, const Ray&, float, float, uint = M_MAX_UNSIGNED);
  19893. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint collisionMask = 0xffff);
  19894. const String& GetCategory() const;
  19895. const String& GetTypeName() const;
  19896. void UnsubscribeFromAllEvents();
  19897. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19898. void UnsubscribeFromEvent(Object, StringHash);
  19899. void UnsubscribeFromEvent(StringHash);
  19900. void UnsubscribeFromEvents(Object);
  19901. void Update(float);
  19902. void UpdateCollisions();
  19903. const Variant& GetGlobalVar(StringHash) const;
  19904. const VariantMap& GetGlobalVars() const;
  19905. int WeakRefs() const;
  19906. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  19907. void WriteInitialDeltaUpdate(Serializer&, uint8);
  19908. void WriteLatestDataUpdate(Serializer&, uint8);
  19909. operator const Animatable() const;
  19910. operator const Component() const;
  19911. operator const Object() const;
  19912. operator const RefCounted() const;
  19913. operator const Serializable() const;
  19914. int getDebugMode() const;
  19915. void setDebugMode(int);
  19916. // Properties:
  19917. bool animationEnabled;
  19918. /* readonly */
  19919. Array<Variant> attributeDefaults;
  19920. /* readonly */
  19921. Array<AttributeInfo> attributeInfos;
  19922. Array<Variant> attributes;
  19923. /* readonly */
  19924. String category;
  19925. bool enabled;
  19926. /* readonly */
  19927. bool enabledEffective;
  19928. int fps;
  19929. Array<Variant> globalVar;
  19930. /* readonly */
  19931. VariantMap globalVars;
  19932. Vector3 gravity;
  19933. /* readonly */
  19934. uint id;
  19935. bool internalEdge;
  19936. bool interpolation;
  19937. int maxSubSteps;
  19938. /* readonly */
  19939. Node node;
  19940. /* readonly */
  19941. uint numAttributes;
  19942. int numIterations;
  19943. ObjectAnimation objectAnimation;
  19944. /* readonly */
  19945. int refs;
  19946. /* readonly */
  19947. bool replicated;
  19948. bool splitImpulse;
  19949. bool temporary;
  19950. /* readonly */
  19951. StringHash type;
  19952. /* readonly */
  19953. String typeName;
  19954. bool updateEnabled;
  19955. /* readonly */
  19956. int weakRefs;
  19957. };
  19958. class PhysicsWorld2D
  19959. {
  19960. public:
  19961. PhysicsWorld2D();
  19962. // Methods:
  19963. void AddDelayedWorldTransform(const DelayedWorldTransform2D&);
  19964. void AddRigidBody(RigidBody2D);
  19965. void AllocateNetworkState();
  19966. operator Animatable() const;
  19967. void ApplyAttributes();
  19968. void CleanupConnection(Connection);
  19969. operator Component() const;
  19970. void DrawDebugGeometry();
  19971. void DrawDebugGeometry(DebugRenderer, bool);
  19972. bool GetAllowSleeping() const;
  19973. bool GetAnimationEnabled() const;
  19974. Variant GetAttribute(const String&) const;
  19975. Variant GetAttribute(uint) const;
  19976. ValueAnimation GetAttributeAnimation(const String&) const;
  19977. float GetAttributeAnimationSpeed(const String&) const;
  19978. float GetAttributeAnimationTime(const String&) const;
  19979. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19980. Variant GetAttributeDefault(const String&) const;
  19981. Variant GetAttributeDefault(uint) const;
  19982. bool GetAutoClearForces() const;
  19983. bool GetBlockEvents() const;
  19984. Component GetComponent(StringHash) const;
  19985. bool GetContinuousPhysics() const;
  19986. bool GetDrawAabb() const;
  19987. bool GetDrawCenterOfMass() const;
  19988. bool GetDrawJoint() const;
  19989. bool GetDrawPair() const;
  19990. bool GetDrawShape() const;
  19991. VariantMap& GetEventDataMap() const;
  19992. Object GetEventSender() const;
  19993. uint GetID() const;
  19994. bool GetInterceptNetworkUpdate(const String&) const;
  19995. Node GetNode() const;
  19996. uint GetNumAttributes() const;
  19997. uint GetNumNetworkAttributes() const;
  19998. ObjectAnimation GetObjectAnimation() const;
  19999. ResourceRef GetObjectAnimationAttr() const;
  20000. int GetPositionIterations() const;
  20001. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  20002. RigidBody2D GetRigidBody(const Vector2&, uint = M_MAX_UNSIGNED);
  20003. RigidBody2D GetRigidBody(int, int, uint = M_MAX_UNSIGNED);
  20004. Scene GetScene() const;
  20005. bool GetSubStepping() const;
  20006. Object GetSubsystem(StringHash) const;
  20007. StringHash GetType() const;
  20008. int GetVelocityIterations() const;
  20009. bool GetWarmStarting() const;
  20010. bool HasEventHandlers() const;
  20011. bool HasSubscribedToEvent(Object, StringHash) const;
  20012. bool HasSubscribedToEvent(StringHash) const;
  20013. bool IsApplyingTransforms() const;
  20014. bool IsEnabled() const;
  20015. bool IsEnabledEffective() const;
  20016. bool IsInstanceOf(StringHash) const;
  20017. bool IsReplicated() const;
  20018. bool IsTemporary() const;
  20019. bool IsUpdateEnabled() const;
  20020. bool Load(Deserializer&);
  20021. bool LoadJSON(const JSONValue&);
  20022. bool LoadXML(const XMLElement&);
  20023. void MarkNetworkUpdate();
  20024. operator Object() const;
  20025. void OnEvent(Object, StringHash, VariantMap&);
  20026. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  20027. void OnSetAttribute(const AttributeInfo&, const Variant&);
  20028. void OnSetEnabled();
  20029. void PrepareNetworkUpdate();
  20030. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  20031. void RaycastSingle(PhysicsRaycastResult2D&, const Vector2&, const Vector2&, uint = M_MAX_UNSIGNED);
  20032. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  20033. bool ReadDeltaUpdate(Deserializer&);
  20034. bool ReadLatestDataUpdate(Deserializer&);
  20035. operator RefCounted() const;
  20036. int Refs() const;
  20037. void Remove();
  20038. void RemoveAttributeAnimation(const String&);
  20039. void RemoveInstanceDefault();
  20040. void RemoveObjectAnimation();
  20041. void RemoveRigidBody(RigidBody2D);
  20042. void ResetToDefault();
  20043. bool Save(Serializer&) const;
  20044. bool SaveDefaultAttributes() const;
  20045. bool SaveJSON(JSONValue&) const;
  20046. bool SaveXML(XMLElement&) const;
  20047. void SendEvent(StringHash);
  20048. void SendEvent(StringHash, VariantMap&);
  20049. operator Serializable() const;
  20050. void SetAllowSleeping(bool);
  20051. void SetAnimationEnabled(bool);
  20052. void SetAnimationTime(float);
  20053. void SetApplyingTransforms(bool);
  20054. bool SetAttribute(const String&, const Variant&);
  20055. bool SetAttribute(uint, const Variant&);
  20056. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  20057. void SetAttributeAnimationSpeed(const String&, float);
  20058. void SetAttributeAnimationTime(const String&, float);
  20059. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  20060. void SetAutoClearForces(bool);
  20061. void SetBlockEvents(bool);
  20062. void SetContinuousPhysics(bool);
  20063. void SetDrawAabb(bool);
  20064. void SetDrawCenterOfMass(bool);
  20065. void SetDrawJoint(bool);
  20066. void SetDrawPair(bool);
  20067. void SetDrawShape(bool);
  20068. void SetEnabled(bool);
  20069. void SetGlobalVar(StringHash, const Variant&);
  20070. void SetGravity(const Vector2&);
  20071. void SetInstanceDefault(bool);
  20072. void SetInterceptNetworkUpdate(const String&, bool);
  20073. void SetObjectAnimation(ObjectAnimation);
  20074. void SetObjectAnimationAttr(const ResourceRef&);
  20075. void SetPositionIterations(int);
  20076. void SetSubStepping(bool);
  20077. void SetTemporary(bool);
  20078. void SetUpdateEnabled(bool);
  20079. void SetVelocityIterations(int);
  20080. void SetWarmStarting(bool);
  20081. const String& GetCategory() const;
  20082. const String& GetTypeName() const;
  20083. void UnsubscribeFromAllEvents();
  20084. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20085. void UnsubscribeFromEvent(Object, StringHash);
  20086. void UnsubscribeFromEvent(StringHash);
  20087. void UnsubscribeFromEvents(Object);
  20088. void Update(float);
  20089. const Variant& GetGlobalVar(StringHash) const;
  20090. const VariantMap& GetGlobalVars() const;
  20091. const Vector2& GetGravity() const;
  20092. int WeakRefs() const;
  20093. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  20094. void WriteInitialDeltaUpdate(Serializer&, uint8);
  20095. void WriteLatestDataUpdate(Serializer&, uint8);
  20096. operator const Animatable() const;
  20097. operator const Component() const;
  20098. operator const Object() const;
  20099. operator const RefCounted() const;
  20100. operator const Serializable() const;
  20101. // Properties:
  20102. bool allowSleeping;
  20103. bool animationEnabled;
  20104. /* readonly */
  20105. Array<Variant> attributeDefaults;
  20106. /* readonly */
  20107. Array<AttributeInfo> attributeInfos;
  20108. Array<Variant> attributes;
  20109. bool autoClearForces;
  20110. /* readonly */
  20111. String category;
  20112. bool continuousPhysics;
  20113. bool drawAabb;
  20114. bool drawCenterOfMass;
  20115. bool drawJoint;
  20116. bool drawPair;
  20117. bool drawShape;
  20118. bool enabled;
  20119. /* readonly */
  20120. bool enabledEffective;
  20121. Array<Variant> globalVar;
  20122. /* readonly */
  20123. VariantMap globalVars;
  20124. Vector2 gravity;
  20125. /* readonly */
  20126. uint id;
  20127. /* readonly */
  20128. Node node;
  20129. /* readonly */
  20130. uint numAttributes;
  20131. ObjectAnimation objectAnimation;
  20132. int positionIterations;
  20133. /* readonly */
  20134. int refs;
  20135. /* readonly */
  20136. bool replicated;
  20137. bool subStepping;
  20138. bool temporary;
  20139. /* readonly */
  20140. StringHash type;
  20141. /* readonly */
  20142. String typeName;
  20143. bool updateEnabled;
  20144. int velocityIterations;
  20145. bool warmStarting;
  20146. /* readonly */
  20147. int weakRefs;
  20148. };
  20149. class PhysicsWorldConfig
  20150. {
  20151. public:
  20152. ~PhysicsWorldConfig();
  20153. PhysicsWorldConfig();
  20154. // Methods:
  20155. PhysicsWorldConfig& operator=(const PhysicsWorldConfig&);
  20156. };
  20157. class Plane
  20158. {
  20159. public:
  20160. Plane();
  20161. Plane(const Plane&in);
  20162. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  20163. Plane(const Vector3&in, const Vector3&in);
  20164. Plane(const Vector4&in);
  20165. // Methods:
  20166. Plane& operator=(const Plane&);
  20167. void Define(const Vector3&, const Vector3&);
  20168. void Define(const Vector3&, const Vector3&, const Vector3&);
  20169. void Define(const Vector4&);
  20170. float Distance(const Vector3&) const;
  20171. Vector3 Project(const Vector3&) const;
  20172. Vector3 Reflect(const Vector3&) const;
  20173. Matrix3x4 ReflectionMatrix() const;
  20174. Vector4 ToVector4() const;
  20175. void Transform(const Matrix3&);
  20176. void Transform(const Matrix3x4&);
  20177. void Transform(const Matrix4&);
  20178. Plane Transformed(const Matrix3&) const;
  20179. Plane Transformed(const Matrix3x4&) const;
  20180. Plane Transformed(const Matrix4&) const;
  20181. // Properties:
  20182. Vector3 absNormal;
  20183. float d;
  20184. Vector3 normal;
  20185. /* readonly */
  20186. Matrix3x4 reflectionMatrix;
  20187. // Constants:
  20188. static const Plane UP;
  20189. };
  20190. class Polyhedron
  20191. {
  20192. public:
  20193. ~Polyhedron();
  20194. Polyhedron();
  20195. Polyhedron(const Polyhedron&in);
  20196. Polyhedron(const BoundingBox&in);
  20197. Polyhedron(const Frustum&in);
  20198. // Methods:
  20199. Polyhedron& operator=(const Polyhedron&);
  20200. void AddFace(Array<Vector3>);
  20201. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  20202. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  20203. void Clear();
  20204. void Clip(const BoundingBox&);
  20205. void Clip(const Frustum&);
  20206. void Clip(const Plane&);
  20207. void Define(const BoundingBox&);
  20208. void Define(const Frustum&);
  20209. bool Empty() const;
  20210. void Transform(const Matrix3&);
  20211. void Transform(const Matrix3x4&);
  20212. Polyhedron Transformed(const Matrix3&) const;
  20213. Polyhedron Transformed(const Matrix3x4&) const;
  20214. // Properties:
  20215. /* readonly */
  20216. Array<Array<Vector3>> face;
  20217. /* readonly */
  20218. uint numFaces;
  20219. };
  20220. class Profiler
  20221. {
  20222. public:
  20223. Profiler();
  20224. // Methods:
  20225. void BeginFrame();
  20226. void BeginInterval();
  20227. void EndBlock();
  20228. void EndFrame();
  20229. operator EventProfiler() const;
  20230. bool GetBlockEvents() const;
  20231. VariantMap& GetEventDataMap() const;
  20232. Object GetEventSender() const;
  20233. Object GetSubsystem(StringHash) const;
  20234. StringHash GetType() const;
  20235. bool HasEventHandlers() const;
  20236. bool HasSubscribedToEvent(Object, StringHash) const;
  20237. bool HasSubscribedToEvent(StringHash) const;
  20238. bool IsInstanceOf(StringHash) const;
  20239. operator Object() const;
  20240. void OnEvent(Object, StringHash, VariantMap&);
  20241. operator RefCounted() const;
  20242. int Refs() const;
  20243. void SendEvent(StringHash);
  20244. void SendEvent(StringHash, VariantMap&);
  20245. void SetBlockEvents(bool);
  20246. void SetGlobalVar(StringHash, const Variant&);
  20247. const String& GetCategory() const;
  20248. const String& GetTypeName() const;
  20249. const String& PrintData(bool = false, bool = false, uint = M_MAX_UNSIGNED) const;
  20250. void UnsubscribeFromAllEvents();
  20251. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20252. void UnsubscribeFromEvent(Object, StringHash);
  20253. void UnsubscribeFromEvent(StringHash);
  20254. void UnsubscribeFromEvents(Object);
  20255. const Variant& GetGlobalVar(StringHash) const;
  20256. const VariantMap& GetGlobalVars() const;
  20257. int WeakRefs() const;
  20258. operator const EventProfiler() const;
  20259. operator const Object() const;
  20260. operator const RefCounted() const;
  20261. // Properties:
  20262. /* readonly */
  20263. String category;
  20264. Array<Variant> globalVar;
  20265. /* readonly */
  20266. VariantMap globalVars;
  20267. /* readonly */
  20268. int refs;
  20269. /* readonly */
  20270. StringHash type;
  20271. /* readonly */
  20272. String typeName;
  20273. /* readonly */
  20274. int weakRefs;
  20275. };
  20276. class ProgressBar
  20277. {
  20278. public:
  20279. ProgressBar();
  20280. // Methods:
  20281. void AddChild(UIElement);
  20282. void AddTag(const String&);
  20283. void AddTags(Array<String>);
  20284. void AddTags(const String&, int8 = ';');
  20285. void AdjustScissor(IntRect&);
  20286. void AllocateNetworkState();
  20287. operator Animatable() const;
  20288. void ApplyAttributes();
  20289. operator BorderImage() const;
  20290. void BringToFront();
  20291. void ChangeValue(float);
  20292. const Color& GetColor(Corner) const;
  20293. const Color& GetColorAttr() const;
  20294. const Color& GetDerivedColor() const;
  20295. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  20296. void DisableLayoutUpdate();
  20297. IntVector2 ElementToScreen(const IntVector2&);
  20298. void EnableLayoutUpdate();
  20299. bool FilterAttributes(XMLElement&) const;
  20300. uint FindChild(UIElement) const;
  20301. bool GetAnimationEnabled() const;
  20302. Variant GetAttribute(const String&) const;
  20303. Variant GetAttribute(uint) const;
  20304. ValueAnimation GetAttributeAnimation(const String&) const;
  20305. float GetAttributeAnimationSpeed(const String&) const;
  20306. float GetAttributeAnimationTime(const String&) const;
  20307. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  20308. Variant GetAttributeDefault(const String&) const;
  20309. Variant GetAttributeDefault(uint) const;
  20310. BlendMode GetBlendMode() const;
  20311. bool GetBlockEvents() const;
  20312. bool GetBringToBack() const;
  20313. bool GetBringToFront() const;
  20314. UIElement GetChild(const String&, bool = false) const;
  20315. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  20316. UIElement GetChild(uint) const;
  20317. Array<UIElement> GetChildren() const;
  20318. Array<UIElement> GetChildren(bool) const;
  20319. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  20320. bool GetClipChildren() const;
  20321. IntRect GetCombinedScreenRect();
  20322. XMLFile GetDefaultStyle(bool = true) const;
  20323. float GetDerivedOpacity() const;
  20324. uint GetDragButtonCombo() const;
  20325. uint GetDragButtonCount() const;
  20326. uint GetDragDropMode() const;
  20327. IntVector2 GetEffectiveMinSize() const;
  20328. UIElement GetElementEventSender() const;
  20329. bool GetEnableAnchor() const;
  20330. VariantMap& GetEventDataMap() const;
  20331. Object GetEventSender() const;
  20332. FocusMode GetFocusMode() const;
  20333. int GetHeight() const;
  20334. HorizontalAlignment GetHorizontalAlignment() const;
  20335. int GetIndent() const;
  20336. int GetIndentSpacing() const;
  20337. int GetIndentWidth() const;
  20338. bool GetInterceptNetworkUpdate(const String&) const;
  20339. BorderImage GetKnob() const;
  20340. int GetLayoutElementMaxSize() const;
  20341. LayoutMode GetLayoutMode() const;
  20342. int GetLayoutSpacing() const;
  20343. Material GetMaterial() const;
  20344. ResourceRef GetMaterialAttr() const;
  20345. int GetMaxHeight() const;
  20346. int GetMaxWidth() const;
  20347. int GetMinHeight() const;
  20348. int GetMinWidth() const;
  20349. uint GetNumAttributes() const;
  20350. uint GetNumChildren(bool = false) const;
  20351. uint GetNumNetworkAttributes() const;
  20352. ObjectAnimation GetObjectAnimation() const;
  20353. ResourceRef GetObjectAnimationAttr() const;
  20354. float GetOpacity() const;
  20355. Orientation GetOrientation() const;
  20356. UIElement GetParent() const;
  20357. int GetPriority() const;
  20358. float GetRange() const;
  20359. UIElement GetRoot() const;
  20360. bool GetShowPercentText() const;
  20361. bool GetSortChildren() const;
  20362. Object GetSubsystem(StringHash) const;
  20363. Array<String> GetTags() const;
  20364. Texture GetTexture() const;
  20365. ResourceRef GetTextureAttr() const;
  20366. TraversalMode GetTraversalMode() const;
  20367. StringHash GetType() const;
  20368. bool GetUseDerivedOpacity() const;
  20369. float GetValue() const;
  20370. VerticalAlignment GetVerticalAlignment() const;
  20371. int GetWidth() const;
  20372. bool HasColorGradient() const;
  20373. bool HasEventHandlers() const;
  20374. bool HasFocus() const;
  20375. bool HasSubscribedToEvent(Object, StringHash) const;
  20376. bool HasSubscribedToEvent(StringHash) const;
  20377. bool HasTag(const String&) const;
  20378. void InsertChild(uint, UIElement);
  20379. const IntRect& GetBorder() const;
  20380. const IntRect& GetClipBorder() const;
  20381. const IntRect& GetImageBorder() const;
  20382. const IntRect& GetImageRect() const;
  20383. const IntRect& GetLayoutBorder() const;
  20384. const IntVector2& GetChildOffset() const;
  20385. const IntVector2& GetDisabledOffset() const;
  20386. const IntVector2& GetHoverOffset() const;
  20387. const IntVector2& GetMaxOffset() const;
  20388. const IntVector2& GetMaxSize() const;
  20389. const IntVector2& GetMinOffset() const;
  20390. const IntVector2& GetMinSize() const;
  20391. const IntVector2& GetPosition() const;
  20392. const IntVector2& GetScreenPosition() const;
  20393. const IntVector2& GetSize() const;
  20394. bool IsChildOf(UIElement) const;
  20395. bool IsEditable() const;
  20396. bool IsElementEventSender() const;
  20397. bool IsEnabled() const;
  20398. bool IsEnabledSelf() const;
  20399. bool IsFixedHeight() const;
  20400. bool IsFixedSize() const;
  20401. bool IsFixedWidth() const;
  20402. bool IsHovering() const;
  20403. bool IsInside(IntVector2, bool);
  20404. bool IsInsideCombined(IntVector2, bool);
  20405. bool IsInstanceOf(StringHash) const;
  20406. bool IsInternal() const;
  20407. bool IsSelected() const;
  20408. bool IsTemporary() const;
  20409. bool IsTiled() const;
  20410. bool IsVisible() const;
  20411. bool IsVisibleEffective() const;
  20412. bool IsWheelHandler() const;
  20413. bool IsWithinScissor(const IntRect&);
  20414. bool Load(Deserializer&);
  20415. UIElement LoadChildXML(XMLFile, XMLFile);
  20416. UIElement LoadChildXML(const XMLElement&, XMLFile);
  20417. bool LoadJSON(const JSONValue&);
  20418. bool LoadXML(Deserializer&);
  20419. bool LoadXML(File);
  20420. bool LoadXML(VectorBuffer&);
  20421. bool LoadXML(XMLFile, XMLFile);
  20422. bool LoadXML(const XMLElement&);
  20423. bool LoadXML(const XMLElement&, XMLFile);
  20424. void MarkNetworkUpdate();
  20425. operator Object() const;
  20426. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  20427. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  20428. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  20429. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20430. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20431. bool OnDragDropFinish(UIElement);
  20432. bool OnDragDropTest(UIElement);
  20433. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20434. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20435. void OnEvent(Object, StringHash, VariantMap&);
  20436. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  20437. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20438. void OnIndentSet();
  20439. void OnKey(uint, uint, uint);
  20440. void OnPositionSet(const IntVector2&);
  20441. void OnResize(const IntVector2&, const IntVector2&);
  20442. void OnSetAttribute(const AttributeInfo&, const Variant&);
  20443. void OnSetEditable();
  20444. void OnTextInput(const String&);
  20445. void OnWheel(int, uint, uint);
  20446. bool ReadDeltaUpdate(Deserializer&);
  20447. bool ReadLatestDataUpdate(Deserializer&);
  20448. operator RefCounted() const;
  20449. int Refs() const;
  20450. void Remove();
  20451. void RemoveAllChildren();
  20452. void RemoveAllTags();
  20453. void RemoveAttributeAnimation(const String&);
  20454. void RemoveChild(UIElement, uint = 0);
  20455. void RemoveChild(uint);
  20456. void RemoveChildAtIndex(uint);
  20457. void RemoveInstanceDefault();
  20458. void RemoveObjectAnimation();
  20459. bool RemoveTag(const String&);
  20460. void ResetDeepEnabled();
  20461. void ResetToDefault();
  20462. bool Save(Serializer&) const;
  20463. bool SaveDefaultAttributes() const;
  20464. bool SaveJSON(JSONValue&) const;
  20465. bool SaveXML(File, const String& indentation = "\t");
  20466. bool SaveXML(Serializer&, const String& = "\t") const;
  20467. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  20468. bool SaveXML(XMLElement&) const;
  20469. IntVector2 ScreenToElement(const IntVector2&);
  20470. void SendEvent(StringHash);
  20471. void SendEvent(StringHash, VariantMap&);
  20472. operator Serializable() const;
  20473. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  20474. void SetAnimationEnabled(bool);
  20475. void SetAnimationTime(float);
  20476. bool SetAttribute(const String&, const Variant&);
  20477. bool SetAttribute(uint, const Variant&);
  20478. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  20479. void SetAttributeAnimationSpeed(const String&, float);
  20480. void SetAttributeAnimationTime(const String&, float);
  20481. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  20482. void SetBlendMode(BlendMode);
  20483. void SetBlockEvents(bool);
  20484. void SetBorder(const IntRect&);
  20485. void SetBringToBack(bool);
  20486. void SetBringToFront(bool);
  20487. void SetChildOffset(const IntVector2&);
  20488. void SetClipBorder(const IntRect&);
  20489. void SetClipChildren(bool);
  20490. void SetColor(Corner, const Color&);
  20491. void SetColor(const Color&);
  20492. void SetDeepEnabled(bool);
  20493. void SetDefaultStyle(XMLFile);
  20494. void SetDisabledOffset(const IntVector2&);
  20495. void SetDisabledOffset(int, int);
  20496. void SetDragDropMode(uint);
  20497. void SetEditable(bool);
  20498. void SetElementEventSender(bool);
  20499. void SetEnableAnchor(bool);
  20500. void SetEnabled(bool);
  20501. void SetEnabledRecursive(bool);
  20502. void SetFixedHeight(int);
  20503. void SetFixedSize(const IntVector2&);
  20504. void SetFixedSize(int, int);
  20505. void SetFixedWidth(int);
  20506. void SetFocus(bool);
  20507. void SetFocusMode(FocusMode);
  20508. void SetFullImageRect();
  20509. void SetGlobalVar(StringHash, const Variant&);
  20510. void SetHeight(int);
  20511. void SetHorizontalAlignment(HorizontalAlignment);
  20512. void SetHoverOffset(const IntVector2&);
  20513. void SetHoverOffset(int, int);
  20514. void SetHovering(bool);
  20515. void SetImageBorder(const IntRect&);
  20516. void SetImageRect(const IntRect&);
  20517. void SetIndent(int);
  20518. void SetIndentSpacing(int);
  20519. void SetInstanceDefault(bool);
  20520. void SetInterceptNetworkUpdate(const String&, bool);
  20521. void SetInternal(bool);
  20522. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  20523. void SetLayoutBorder(const IntRect&);
  20524. void SetLayoutFlexScale(const Vector2&);
  20525. void SetLayoutMode(LayoutMode);
  20526. void SetLayoutSpacing(int);
  20527. void SetLoadingPercentStyle(const String&);
  20528. void SetMaterial(Material);
  20529. void SetMaterialAttr(const ResourceRef&);
  20530. void SetMaxAnchor(const Vector2&);
  20531. void SetMaxAnchor(float, float);
  20532. void SetMaxHeight(int);
  20533. void SetMaxOffset(const IntVector2&);
  20534. void SetMaxSize(const IntVector2&);
  20535. void SetMaxSize(int, int);
  20536. void SetMaxWidth(int);
  20537. void SetMinAnchor(const Vector2&);
  20538. void SetMinAnchor(float, float);
  20539. void SetMinHeight(int);
  20540. void SetMinOffset(const IntVector2&);
  20541. void SetMinSize(const IntVector2&);
  20542. void SetMinSize(int, int);
  20543. void SetMinWidth(int);
  20544. void SetName(const String&);
  20545. void SetObjectAnimation(ObjectAnimation);
  20546. void SetObjectAnimationAttr(const ResourceRef&);
  20547. void SetOpacity(float);
  20548. void SetOrientation(Orientation);
  20549. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  20550. void SetPivot(const Vector2&);
  20551. void SetPivot(float, float);
  20552. void SetPosition(const IntVector2&);
  20553. void SetPosition(int, int);
  20554. void SetPriority(int);
  20555. void SetRange(float);
  20556. void SetRenderTexture(Texture2D);
  20557. void SetSelected(bool);
  20558. void SetShowPercentText(bool);
  20559. void SetSize(const IntVector2&);
  20560. void SetSize(int, int);
  20561. void SetSortChildren(bool);
  20562. bool SetStyle(const String&, XMLFile = null);
  20563. bool SetStyle(const XMLElement&);
  20564. bool SetStyleAuto(XMLFile = null);
  20565. void SetTags(Array<String>);
  20566. void SetTemporary(bool);
  20567. void SetTexture(Texture);
  20568. void SetTextureAttr(const ResourceRef&);
  20569. void SetTiled(bool);
  20570. void SetTraversalMode(TraversalMode);
  20571. void SetUseDerivedOpacity(bool);
  20572. void SetValue(float);
  20573. void SetVar(StringHash, const Variant&);
  20574. void SetVerticalAlignment(VerticalAlignment);
  20575. void SetVisible(bool);
  20576. void SetWidth(int);
  20577. void SortChildren();
  20578. const String& GetAppliedStyle() const;
  20579. const String& GetCategory() const;
  20580. const String& GetLoadingPercentStyle() const;
  20581. const String& GetName() const;
  20582. const String& GetTypeName() const;
  20583. operator UIElement() const;
  20584. void UnsubscribeFromAllEvents();
  20585. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20586. void UnsubscribeFromEvent(Object, StringHash);
  20587. void UnsubscribeFromEvent(StringHash);
  20588. void UnsubscribeFromEvents(Object);
  20589. void Update(float);
  20590. void UpdateLayout();
  20591. const Variant& GetGlobalVar(StringHash) const;
  20592. const Variant& GetVar(const StringHash&) const;
  20593. const VariantMap& GetGlobalVars() const;
  20594. const VariantMap& GetVars() const;
  20595. const Vector2& GetLayoutFlexScale() const;
  20596. const Vector2& GetMaxAnchor() const;
  20597. const Vector2& GetMinAnchor() const;
  20598. const Vector2& GetPivot() const;
  20599. int WeakRefs() const;
  20600. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  20601. void WriteInitialDeltaUpdate(Serializer&, uint8);
  20602. void WriteLatestDataUpdate(Serializer&, uint8);
  20603. operator const Animatable() const;
  20604. operator const BorderImage() const;
  20605. operator const Object() const;
  20606. operator const RefCounted() const;
  20607. operator const Serializable() const;
  20608. operator const UIElement() const;
  20609. // Properties:
  20610. bool animationEnabled;
  20611. /* readonly */
  20612. Array<Variant> attributeDefaults;
  20613. /* readonly */
  20614. Array<AttributeInfo> attributeInfos;
  20615. Array<Variant> attributes;
  20616. BlendMode blendMode;
  20617. IntRect border;
  20618. bool bringToBack;
  20619. bool bringToFront;
  20620. /* readonly */
  20621. String category;
  20622. /* readonly */
  20623. IntVector2 childOffset;
  20624. /* readonly */
  20625. Array<UIElement> children;
  20626. IntRect clipBorder;
  20627. bool clipChildren;
  20628. /* writeonly */
  20629. Color color;
  20630. /* readonly */
  20631. bool colorGradient;
  20632. Array<Color> colors;
  20633. /* readonly */
  20634. IntRect combinedScreenRect;
  20635. XMLFile defaultStyle;
  20636. /* readonly */
  20637. float derivedOpacity;
  20638. IntVector2 disabledOffset;
  20639. /* readonly */
  20640. uint dragButtonCombo;
  20641. /* readonly */
  20642. uint dragButtonCount;
  20643. uint dragDropMode;
  20644. bool editable;
  20645. bool elementEventSender;
  20646. bool enableAnchor;
  20647. bool enabled;
  20648. /* readonly */
  20649. bool enabledSelf;
  20650. /* readonly */
  20651. bool fixedHeight;
  20652. /* readonly */
  20653. bool fixedSize;
  20654. /* readonly */
  20655. bool fixedWidth;
  20656. bool focus;
  20657. FocusMode focusMode;
  20658. Array<Variant> globalVar;
  20659. /* readonly */
  20660. VariantMap globalVars;
  20661. int height;
  20662. HorizontalAlignment horizontalAlignment;
  20663. IntVector2 hoverOffset;
  20664. /* readonly */
  20665. bool hovering;
  20666. IntRect imageBorder;
  20667. IntRect imageRect;
  20668. int indent;
  20669. int indentSpacing;
  20670. /* readonly */
  20671. int indentWidth;
  20672. bool internal;
  20673. /* readonly */
  20674. BorderImage knob;
  20675. IntRect layoutBorder;
  20676. Vector2 layoutFlexScale;
  20677. LayoutMode layoutMode;
  20678. int layoutSpacing;
  20679. Material material;
  20680. Vector2 maxAnchor;
  20681. int maxHeight;
  20682. IntVector2 maxOffset;
  20683. IntVector2 maxSize;
  20684. int maxWidth;
  20685. Vector2 minAnchor;
  20686. int minHeight;
  20687. IntVector2 minOffset;
  20688. IntVector2 minSize;
  20689. int minWidth;
  20690. String name;
  20691. /* readonly */
  20692. uint numAllChildren;
  20693. /* readonly */
  20694. uint numAttributes;
  20695. /* readonly */
  20696. uint numChildren;
  20697. ObjectAnimation objectAnimation;
  20698. float opacity;
  20699. Orientation orientation;
  20700. UIElement parent;
  20701. Vector2 pivot;
  20702. IntVector2 position;
  20703. int priority;
  20704. float range;
  20705. /* readonly */
  20706. int refs;
  20707. /* readonly */
  20708. UIElement root;
  20709. /* readonly */
  20710. IntVector2 screenPosition;
  20711. bool selected;
  20712. bool showPercentText;
  20713. IntVector2 size;
  20714. bool sortChildren;
  20715. String style;
  20716. /* readonly */
  20717. Array<String> tags;
  20718. bool temporary;
  20719. Texture texture;
  20720. bool tiled;
  20721. TraversalMode traversalMode;
  20722. /* readonly */
  20723. StringHash type;
  20724. /* readonly */
  20725. String typeName;
  20726. bool useDerivedOpacity;
  20727. float value;
  20728. /* readonly */
  20729. VariantMap vars;
  20730. VerticalAlignment verticalAlignment;
  20731. bool visible;
  20732. /* readonly */
  20733. bool visibleEffective;
  20734. /* readonly */
  20735. int weakRefs;
  20736. int width;
  20737. };
  20738. class PropertySet2D
  20739. {
  20740. public:
  20741. PropertySet2D();
  20742. // Methods:
  20743. bool HasProperty(const String&) const;
  20744. void Load(const XMLElement&);
  20745. operator RefCounted() const;
  20746. int Refs() const;
  20747. const String& GetProperty(const String&) const;
  20748. int WeakRefs() const;
  20749. operator const RefCounted() const;
  20750. // Properties:
  20751. /* readonly */
  20752. int refs;
  20753. /* readonly */
  20754. int weakRefs;
  20755. };
  20756. class Quaternion
  20757. {
  20758. public:
  20759. Quaternion();
  20760. Quaternion(const Quaternion&in);
  20761. Quaternion(float, float, float, float);
  20762. Quaternion(float, const Vector3&in);
  20763. Quaternion(float);
  20764. Quaternion(float, float, float);
  20765. Quaternion(const Vector3&in);
  20766. Quaternion(const Vector3&in, const Vector3&in);
  20767. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  20768. Quaternion(const Matrix3&in);
  20769. // Methods:
  20770. Quaternion operator+(const Quaternion&) const;
  20771. Quaternion& operator+=(const Quaternion&);
  20772. Quaternion& operator=(const Quaternion&);
  20773. bool operator==(const Quaternion&) const;
  20774. float Angle() const;
  20775. Vector3 Axis() const;
  20776. Quaternion Conjugate() const;
  20777. float DotProduct(const Quaternion&) const;
  20778. bool Equals(const Quaternion&) const;
  20779. Vector3 EulerAngles() const;
  20780. void FromAngleAxis(float, const Vector3&);
  20781. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  20782. void FromEulerAngles(float, float, float);
  20783. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 :: UP);
  20784. void FromRotationMatrix(const Matrix3&);
  20785. void FromRotationTo(const Vector3&, const Vector3&);
  20786. Quaternion Inverse() const;
  20787. bool IsInf() const;
  20788. bool IsNaN() const;
  20789. float LengthSquared() const;
  20790. Quaternion Nlerp(const Quaternion&, float, bool = false) const;
  20791. void Normalize();
  20792. Quaternion Normalized() const;
  20793. float PitchAngle() const;
  20794. float RollAngle() const;
  20795. Matrix3 RotationMatrix() const;
  20796. Quaternion Slerp(const Quaternion&, float) const;
  20797. String ToString() const;
  20798. float YawAngle() const;
  20799. // Properties:
  20800. /* readonly */
  20801. float angle;
  20802. /* readonly */
  20803. Vector3 axis;
  20804. /* readonly */
  20805. Vector3 eulerAngles;
  20806. /* readonly */
  20807. float pitch;
  20808. /* readonly */
  20809. float roll;
  20810. /* readonly */
  20811. Matrix3 rotationMatrix;
  20812. float w;
  20813. float x;
  20814. float y;
  20815. /* readonly */
  20816. float yaw;
  20817. float z;
  20818. // Constants:
  20819. static const Quaternion IDENTITY;
  20820. };
  20821. class Ray
  20822. {
  20823. public:
  20824. Ray();
  20825. Ray(const Vector3&in, const Vector3&in);
  20826. Ray(const Ray&in);
  20827. // Methods:
  20828. Ray& operator=(const Ray&);
  20829. bool operator==(const Ray&) const;
  20830. Vector3 ClosestPoint(const Ray&) const;
  20831. void Define(const Vector3&, const Vector3&);
  20832. float Distance(const Vector3&) const;
  20833. float HitDistance(const BoundingBox&) const;
  20834. float HitDistance(const Frustum&, bool = true) const;
  20835. float HitDistance(const Plane&) const;
  20836. float HitDistance(const Sphere&) const;
  20837. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  20838. Vector3 Project(const Vector3&) const;
  20839. Ray Transformed(const Matrix3x4&) const;
  20840. // Properties:
  20841. Vector3 direction;
  20842. Vector3 origin;
  20843. };
  20844. class RayQueryResult
  20845. {
  20846. public:
  20847. ~RayQueryResult();
  20848. RayQueryResult();
  20849. // Methods:
  20850. RayQueryResult& operator=(const RayQueryResult&);
  20851. // Properties:
  20852. float distance;
  20853. /* readonly */
  20854. Drawable drawable;
  20855. /* readonly */
  20856. Node node;
  20857. Vector3 normal;
  20858. Vector3 position;
  20859. uint subObject;
  20860. Vector2 textureUV;
  20861. };
  20862. class RaycastVehicle
  20863. {
  20864. public:
  20865. // Methods:
  20866. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  20867. void AllocateNetworkState();
  20868. operator Animatable() const;
  20869. void ApplyAttributes();
  20870. void CleanupConnection(Connection);
  20871. operator Component() const;
  20872. void DelayedStart();
  20873. void DrawDebugGeometry(DebugRenderer, bool);
  20874. void FixedPostUpdate(float);
  20875. void FixedUpdate(float);
  20876. bool GetAnimationEnabled() const;
  20877. Variant GetAttribute(const String&) const;
  20878. Variant GetAttribute(uint) const;
  20879. ValueAnimation GetAttributeAnimation(const String&) const;
  20880. float GetAttributeAnimationSpeed(const String&) const;
  20881. float GetAttributeAnimationTime(const String&) const;
  20882. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  20883. Variant GetAttributeDefault(const String&) const;
  20884. Variant GetAttributeDefault(uint) const;
  20885. bool GetBlockEvents() const;
  20886. float GetBrake(int) const;
  20887. Component GetComponent(StringHash) const;
  20888. Vector3 GetContactNormal(int) const;
  20889. Vector3 GetContactPosition(int) const;
  20890. IntVector3 GetCoordinateSystem() const;
  20891. float GetEngineForce(int) const;
  20892. VariantMap& GetEventDataMap() const;
  20893. Object GetEventSender() const;
  20894. uint GetID() const;
  20895. float GetInAirRPM() const;
  20896. bool GetInterceptNetworkUpdate(const String&) const;
  20897. float GetMaxSideSlipSpeed() const;
  20898. float GetMaxSuspensionTravel(int);
  20899. Node GetNode() const;
  20900. uint GetNumAttributes() const;
  20901. uint GetNumNetworkAttributes() const;
  20902. int GetNumWheels() const;
  20903. ObjectAnimation GetObjectAnimation() const;
  20904. ResourceRef GetObjectAnimationAttr() const;
  20905. Scene GetScene() const;
  20906. float GetSteeringValue(int) const;
  20907. Object GetSubsystem(StringHash) const;
  20908. StringHash GetType() const;
  20909. uint GetUpdateEventMask() const;
  20910. Vector3 GetWheelAxle(int) const;
  20911. Vector3 GetWheelConnectionPoint(int) const;
  20912. float GetWheelDampingCompression(int) const;
  20913. float GetWheelDampingRelaxation(int) const;
  20914. Vector3 GetWheelDirection(int) const;
  20915. float GetWheelFrictionSlip(int) const;
  20916. float GetWheelMaxSuspensionForce(int) const;
  20917. Node GetWheelNode(int) const;
  20918. Vector3 GetWheelPosition(int);
  20919. float GetWheelRadius(int) const;
  20920. float GetWheelRestLength(int) const;
  20921. float GetWheelRollInfluence(int) const;
  20922. Quaternion GetWheelRotation(int);
  20923. float GetWheelSideSlipSpeed(int) const;
  20924. float GetWheelSkidInfo(int) const;
  20925. float GetWheelSkidInfoCumulative(int) const;
  20926. float GetWheelSuspensionStiffness(int) const;
  20927. bool HasEventHandlers() const;
  20928. bool HasSubscribedToEvent(Object, StringHash) const;
  20929. bool HasSubscribedToEvent(StringHash) const;
  20930. void Init();
  20931. bool IsDelayedStartCalled() const;
  20932. bool IsEnabled() const;
  20933. bool IsEnabledEffective() const;
  20934. bool IsFrontWheel(int) const;
  20935. bool IsInstanceOf(StringHash) const;
  20936. bool IsReplicated() const;
  20937. bool IsTemporary() const;
  20938. bool Load(Deserializer&);
  20939. bool LoadJSON(const JSONValue&);
  20940. bool LoadXML(const XMLElement&);
  20941. operator LogicComponent() const;
  20942. void MarkNetworkUpdate();
  20943. operator Object() const;
  20944. void OnEvent(Object, StringHash, VariantMap&);
  20945. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  20946. void OnSetAttribute(const AttributeInfo&, const Variant&);
  20947. void OnSetEnabled();
  20948. void PostUpdate(float);
  20949. void PrepareNetworkUpdate();
  20950. bool ReadDeltaUpdate(Deserializer&);
  20951. bool ReadLatestDataUpdate(Deserializer&);
  20952. operator RefCounted() const;
  20953. int Refs() const;
  20954. void Remove();
  20955. void RemoveAttributeAnimation(const String&);
  20956. void RemoveInstanceDefault();
  20957. void RemoveObjectAnimation();
  20958. void ResetSuspension();
  20959. void ResetToDefault();
  20960. void ResetWheels();
  20961. bool Save(Serializer&) const;
  20962. bool SaveDefaultAttributes() const;
  20963. bool SaveJSON(JSONValue&) const;
  20964. bool SaveXML(XMLElement&) const;
  20965. void SendEvent(StringHash);
  20966. void SendEvent(StringHash, VariantMap&);
  20967. operator Serializable() const;
  20968. void SetAnimationEnabled(bool);
  20969. void SetAnimationTime(float);
  20970. bool SetAttribute(const String&, const Variant&);
  20971. bool SetAttribute(uint, const Variant&);
  20972. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  20973. void SetAttributeAnimationSpeed(const String&, float);
  20974. void SetAttributeAnimationTime(const String&, float);
  20975. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  20976. void SetBlockEvents(bool);
  20977. void SetBrake(int, float);
  20978. void SetCoordinateSystem(const IntVector3& = RIGHT_FORWARD_UP);
  20979. void SetEnabled(bool);
  20980. void SetEngineForce(int, float);
  20981. void SetGlobalVar(StringHash, const Variant&);
  20982. void SetInAirRPM(float);
  20983. void SetInstanceDefault(bool);
  20984. void SetInterceptNetworkUpdate(const String&, bool);
  20985. void SetMaxSideSlipSpeed(float);
  20986. void SetMaxSuspensionTravel(int, float);
  20987. void SetObjectAnimation(ObjectAnimation);
  20988. void SetObjectAnimationAttr(const ResourceRef&);
  20989. void SetSteeringValue(int, float);
  20990. void SetTemporary(bool);
  20991. void SetUpdateEventMask(uint);
  20992. void SetWheelAxle(int, Vector3);
  20993. void SetWheelDampingCompression(int, float);
  20994. void SetWheelDampingRelaxation(int, float);
  20995. void SetWheelDirection(int, Vector3);
  20996. void SetWheelFrictionSlip(int, float);
  20997. void SetWheelMaxSuspensionForce(int, float);
  20998. void SetWheelRadius(int, float);
  20999. void SetWheelRestLength(int, float);
  21000. void SetWheelRollInfluence(int, float);
  21001. void SetWheelSkidInfo(int, float);
  21002. void SetWheelSkidInfoCumulative(int, float);
  21003. void SetWheelSuspensionStiffness(int, float);
  21004. void Start();
  21005. void Stop();
  21006. const String& GetCategory() const;
  21007. const String& GetTypeName() const;
  21008. void UnsubscribeFromAllEvents();
  21009. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  21010. void UnsubscribeFromEvent(Object, StringHash);
  21011. void UnsubscribeFromEvent(StringHash);
  21012. void UnsubscribeFromEvents(Object);
  21013. void Update(float);
  21014. void UpdateWheelTransform(int, bool);
  21015. const Variant& GetGlobalVar(StringHash) const;
  21016. const VariantMap& GetGlobalVars() const;
  21017. int WeakRefs() const;
  21018. bool WheelIsGrounded(int) const;
  21019. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  21020. void WriteInitialDeltaUpdate(Serializer&, uint8);
  21021. void WriteLatestDataUpdate(Serializer&, uint8);
  21022. operator const Animatable() const;
  21023. operator const Component() const;
  21024. operator const LogicComponent() const;
  21025. operator const Object() const;
  21026. operator const RefCounted() const;
  21027. operator const Serializable() const;
  21028. // Properties:
  21029. bool animationEnabled;
  21030. /* readonly */
  21031. Array<Variant> attributeDefaults;
  21032. /* readonly */
  21033. Array<AttributeInfo> attributeInfos;
  21034. Array<Variant> attributes;
  21035. /* readonly */
  21036. String category;
  21037. IntVector3 coordinateSystem;
  21038. bool enabled;
  21039. /* readonly */
  21040. bool enabledEffective;
  21041. Array<Variant> globalVar;
  21042. /* readonly */
  21043. VariantMap globalVars;
  21044. /* readonly */
  21045. uint id;
  21046. float inAirRPM;
  21047. float maxSideSlipSpeed;
  21048. /* readonly */
  21049. Node node;
  21050. /* readonly */
  21051. uint numAttributes;
  21052. /* readonly */
  21053. int numWheels;
  21054. ObjectAnimation objectAnimation;
  21055. /* readonly */
  21056. int refs;
  21057. /* readonly */
  21058. bool replicated;
  21059. bool temporary;
  21060. /* readonly */
  21061. StringHash type;
  21062. /* readonly */
  21063. String typeName;
  21064. /* readonly */
  21065. int weakRefs;
  21066. // Constants:
  21067. static const IntVector3 FORWARD_RIGHT_UP;
  21068. static const IntVector3 FORWARD_UP_RIGHT;
  21069. static const IntVector3 RIGHT_FORWARD_UP;
  21070. static const IntVector3 RIGHT_UP_FORWARD;
  21071. static const IntVector3 UP_FORWARD_RIGHT;
  21072. static const IntVector3 UP_RIGHT_FORWARD;
  21073. };
  21074. class Rect
  21075. {
  21076. public:
  21077. Rect();
  21078. Rect(const Vector2&in, const Vector2&in);
  21079. Rect(float, float, float, float);
  21080. Rect(const Vector4&in);
  21081. Rect(const Rect&in);
  21082. // Methods:
  21083. Rect operator+(const Rect&) const;
  21084. Rect& operator+=(const Rect&);
  21085. Rect& operator=(const Rect&);
  21086. bool operator==(const Rect&) const;
  21087. float Bottom() const;
  21088. Vector2 Center() const;
  21089. void Clear();
  21090. void Clip(const Rect&);
  21091. void Define(const Rect&);
  21092. void Define(const Vector2&);
  21093. void Define(const Vector2&, const Vector2&);
  21094. bool Defined() const;
  21095. bool Equals(const Rect&) const;
  21096. Vector2 HalfSize() const;
  21097. Intersection IsInside(const Rect&) const;
  21098. Intersection IsInside(const Vector2&) const;
  21099. float Left() const;
  21100. Vector2 Max() const;
  21101. void Merge(const Rect&);
  21102. void Merge(const Vector2&);
  21103. Vector2 Min() const;
  21104. float Right() const;
  21105. Vector2 Size() const;
  21106. String ToString() const;
  21107. Vector4 ToVector4() const;
  21108. float Top() const;
  21109. // Properties:
  21110. /* readonly */
  21111. float bottom;
  21112. /* readonly */
  21113. Vector2 center;
  21114. /* readonly */
  21115. Vector2 halfSize;
  21116. /* readonly */
  21117. float left;
  21118. Vector2 max;
  21119. Vector2 min;
  21120. /* readonly */
  21121. float right;
  21122. /* readonly */
  21123. Vector2 size;
  21124. /* readonly */
  21125. float top;
  21126. // Constants:
  21127. static const Rect FULL;
  21128. static const Rect POSITIVE;
  21129. static const Rect ZERO;
  21130. };
  21131. class RefCount
  21132. {
  21133. public:
  21134. ~RefCount();
  21135. RefCount();
  21136. // Methods:
  21137. RefCount& operator=(const RefCount&);
  21138. // Properties:
  21139. int refs;
  21140. int weakRefs;
  21141. };
  21142. class RefCounted
  21143. {
  21144. public:
  21145. RefCounted();
  21146. // Methods:
  21147. operator Animatable() const;
  21148. operator AnimatedModel() const;
  21149. operator AnimatedSprite2D() const;
  21150. operator Animation() const;
  21151. operator AnimationController() const;
  21152. operator AnimationSet2D() const;
  21153. operator AnimationState() const;
  21154. operator AttributeAccessor() const;
  21155. operator AttributeAnimationInfo() const;
  21156. operator Audio() const;
  21157. operator BillboardSet() const;
  21158. operator BorderImage() const;
  21159. operator BufferedSoundStream() const;
  21160. operator Button() const;
  21161. operator Camera() const;
  21162. operator CheckBox() const;
  21163. operator CollisionBox2D() const;
  21164. operator CollisionChain2D() const;
  21165. operator CollisionCircle2D() const;
  21166. operator CollisionEdge2D() const;
  21167. operator CollisionGeometryData() const;
  21168. operator CollisionPolygon2D() const;
  21169. operator CollisionShape2D() const;
  21170. operator CollisionShape() const;
  21171. operator Component() const;
  21172. operator Connection() const;
  21173. operator Console() const;
  21174. operator ConstantBuffer() const;
  21175. operator Constraint2D() const;
  21176. operator Constraint() const;
  21177. operator ConstraintDistance2D() const;
  21178. operator ConstraintFriction2D() const;
  21179. operator ConstraintGear2D() const;
  21180. operator ConstraintMotor2D() const;
  21181. operator ConstraintMouse2D() const;
  21182. operator ConstraintPrismatic2D() const;
  21183. operator ConstraintPulley2D() const;
  21184. operator ConstraintRevolute2D() const;
  21185. operator ConstraintWeld2D() const;
  21186. operator ConstraintWheel2D() const;
  21187. operator Context() const;
  21188. operator ConvexData() const;
  21189. operator CrowdAgent() const;
  21190. operator CrowdManager() const;
  21191. operator Cursor() const;
  21192. operator CustomGeometry() const;
  21193. operator Database() const;
  21194. operator DebugHud() const;
  21195. operator DebugRenderer() const;
  21196. operator DecalSet() const;
  21197. operator Drawable2D() const;
  21198. operator Drawable() const;
  21199. operator DropDownList() const;
  21200. operator DynamicNavigationMesh() const;
  21201. operator Engine() const;
  21202. operator EventProfiler() const;
  21203. operator EventReceiverGroup() const;
  21204. operator File() const;
  21205. operator FileSelector() const;
  21206. operator FileSystem() const;
  21207. operator FileWatcher() const;
  21208. operator Font() const;
  21209. operator FontFace() const;
  21210. operator FontFaceBitmap() const;
  21211. operator FontFaceFreeType() const;
  21212. operator GImpactMeshData() const;
  21213. operator Geometry() const;
  21214. operator Graphics() const;
  21215. operator HeightfieldData() const;
  21216. operator HttpRequest() const;
  21217. operator IKConstraint() const;
  21218. operator IKEffector() const;
  21219. operator IKSolver() const;
  21220. operator Image() const;
  21221. operator IndexBuffer() const;
  21222. operator Input() const;
  21223. operator JSONFile() const;
  21224. operator Light() const;
  21225. operator LineEdit() const;
  21226. operator ListView() const;
  21227. operator Localization() const;
  21228. operator Log() const;
  21229. operator LogicComponent() const;
  21230. operator Material() const;
  21231. operator Menu() const;
  21232. operator MessageBox() const;
  21233. operator Model() const;
  21234. operator NamedPipe() const;
  21235. operator NavArea() const;
  21236. operator Navigable() const;
  21237. operator NavigationMesh() const;
  21238. operator Network() const;
  21239. operator NetworkPriority() const;
  21240. operator Node() const;
  21241. operator Object() const;
  21242. operator ObjectAnimation() const;
  21243. operator ObjectFactory() const;
  21244. operator Obstacle() const;
  21245. operator OcclusionBuffer() const;
  21246. operator Octree() const;
  21247. operator OffMeshConnection() const;
  21248. operator OggVorbisSoundStream() const;
  21249. operator PackageFile() const;
  21250. operator ParticleEffect2D() const;
  21251. operator ParticleEffect() const;
  21252. operator ParticleEmitter2D() const;
  21253. operator ParticleEmitter() const;
  21254. operator Pass() const;
  21255. operator PhysicsWorld2D() const;
  21256. operator PhysicsWorld() const;
  21257. operator Profiler() const;
  21258. operator ProgressBar() const;
  21259. operator PropertySet2D() const;
  21260. operator RaycastVehicle() const;
  21261. int Refs() const;
  21262. operator RenderPath() const;
  21263. operator RenderSurface() const;
  21264. operator Renderer2D() const;
  21265. operator Renderer() const;
  21266. operator Resource() const;
  21267. operator ResourceCache() const;
  21268. operator ResourceWithMetadata() const;
  21269. operator RibbonTrail() const;
  21270. operator RigidBody2D() const;
  21271. operator RigidBody() const;
  21272. operator Scene() const;
  21273. operator ScriptInstance() const;
  21274. operator ScrollBar() const;
  21275. operator ScrollView() const;
  21276. operator Serializable() const;
  21277. operator Shader() const;
  21278. operator ShaderParameterAnimationInfo() const;
  21279. operator ShaderPrecache() const;
  21280. operator ShaderVariation() const;
  21281. operator Skybox() const;
  21282. operator Slider() const;
  21283. operator SmoothedTransform() const;
  21284. operator Sound() const;
  21285. operator SoundListener() const;
  21286. operator SoundSource3D() const;
  21287. operator SoundSource() const;
  21288. operator SoundStream() const;
  21289. operator SplinePath() const;
  21290. operator Sprite2D() const;
  21291. operator Sprite() const;
  21292. operator SpriteSheet2D() const;
  21293. operator StaticModel() const;
  21294. operator StaticModelGroup() const;
  21295. operator StaticSprite2D() const;
  21296. operator StretchableSprite2D() const;
  21297. operator Technique() const;
  21298. operator Terrain() const;
  21299. operator TerrainPatch() const;
  21300. operator Text3D() const;
  21301. operator Text() const;
  21302. operator Texture2D() const;
  21303. operator Texture2DArray() const;
  21304. operator Texture3D() const;
  21305. operator Texture() const;
  21306. operator TextureCube() const;
  21307. operator Tile2D() const;
  21308. operator TileMap2D() const;
  21309. operator TileMapLayer2D() const;
  21310. operator TileMapObject2D() const;
  21311. operator Time() const;
  21312. operator TmxFile2D() const;
  21313. operator TmxImageLayer2D() const;
  21314. operator TmxLayer2D() const;
  21315. operator TmxObjectGroup2D() const;
  21316. operator TmxTileLayer2D() const;
  21317. operator ToolTip() const;
  21318. operator TriangleMeshData() const;
  21319. operator UI() const;
  21320. operator UIComponent() const;
  21321. operator UIElement() const;
  21322. operator UISelectable() const;
  21323. operator UnknownComponent() const;
  21324. operator ValueAnimation() const;
  21325. operator ValueAnimationInfo() const;
  21326. operator VertexBuffer() const;
  21327. operator View3D() const;
  21328. operator View() const;
  21329. operator Viewport() const;
  21330. int WeakRefs() const;
  21331. operator Window() const;
  21332. operator WorkQueue() const;
  21333. operator XMLFile() const;
  21334. operator Zone() const;
  21335. operator const Animatable() const;
  21336. operator const AnimatedModel() const;
  21337. operator const AnimatedSprite2D() const;
  21338. operator const Animation() const;
  21339. operator const AnimationController() const;
  21340. operator const AnimationSet2D() const;
  21341. operator const AnimationState() const;
  21342. operator const AttributeAccessor() const;
  21343. operator const AttributeAnimationInfo() const;
  21344. operator const Audio() const;
  21345. operator const BillboardSet() const;
  21346. operator const BorderImage() const;
  21347. operator const BufferedSoundStream() const;
  21348. operator const Button() const;
  21349. operator const Camera() const;
  21350. operator const CheckBox() const;
  21351. operator const CollisionBox2D() const;
  21352. operator const CollisionChain2D() const;
  21353. operator const CollisionCircle2D() const;
  21354. operator const CollisionEdge2D() const;
  21355. operator const CollisionGeometryData() const;
  21356. operator const CollisionPolygon2D() const;
  21357. operator const CollisionShape2D() const;
  21358. operator const CollisionShape() const;
  21359. operator const Component() const;
  21360. operator const Connection() const;
  21361. operator const Console() const;
  21362. operator const ConstantBuffer() const;
  21363. operator const Constraint2D() const;
  21364. operator const Constraint() const;
  21365. operator const ConstraintDistance2D() const;
  21366. operator const ConstraintFriction2D() const;
  21367. operator const ConstraintGear2D() const;
  21368. operator const ConstraintMotor2D() const;
  21369. operator const ConstraintMouse2D() const;
  21370. operator const ConstraintPrismatic2D() const;
  21371. operator const ConstraintPulley2D() const;
  21372. operator const ConstraintRevolute2D() const;
  21373. operator const ConstraintWeld2D() const;
  21374. operator const ConstraintWheel2D() const;
  21375. operator const Context() const;
  21376. operator const ConvexData() const;
  21377. operator const CrowdAgent() const;
  21378. operator const CrowdManager() const;
  21379. operator const Cursor() const;
  21380. operator const CustomGeometry() const;
  21381. operator const Database() const;
  21382. operator const DebugHud() const;
  21383. operator const DebugRenderer() const;
  21384. operator const DecalSet() const;
  21385. operator const Drawable2D() const;
  21386. operator const Drawable() const;
  21387. operator const DropDownList() const;
  21388. operator const DynamicNavigationMesh() const;
  21389. operator const Engine() const;
  21390. operator const EventProfiler() const;
  21391. operator const EventReceiverGroup() const;
  21392. operator const File() const;
  21393. operator const FileSelector() const;
  21394. operator const FileSystem() const;
  21395. operator const FileWatcher() const;
  21396. operator const Font() const;
  21397. operator const FontFace() const;
  21398. operator const FontFaceBitmap() const;
  21399. operator const FontFaceFreeType() const;
  21400. operator const GImpactMeshData() const;
  21401. operator const Geometry() const;
  21402. operator const Graphics() const;
  21403. operator const HeightfieldData() const;
  21404. operator const HttpRequest() const;
  21405. operator const IKConstraint() const;
  21406. operator const IKEffector() const;
  21407. operator const IKSolver() const;
  21408. operator const Image() const;
  21409. operator const IndexBuffer() const;
  21410. operator const Input() const;
  21411. operator const JSONFile() const;
  21412. operator const Light() const;
  21413. operator const LineEdit() const;
  21414. operator const ListView() const;
  21415. operator const Localization() const;
  21416. operator const Log() const;
  21417. operator const LogicComponent() const;
  21418. operator const Material() const;
  21419. operator const Menu() const;
  21420. operator const MessageBox() const;
  21421. operator const Model() const;
  21422. operator const NamedPipe() const;
  21423. operator const NavArea() const;
  21424. operator const Navigable() const;
  21425. operator const NavigationMesh() const;
  21426. operator const Network() const;
  21427. operator const NetworkPriority() const;
  21428. operator const Node() const;
  21429. operator const Object() const;
  21430. operator const ObjectAnimation() const;
  21431. operator const ObjectFactory() const;
  21432. operator const Obstacle() const;
  21433. operator const OcclusionBuffer() const;
  21434. operator const Octree() const;
  21435. operator const OffMeshConnection() const;
  21436. operator const OggVorbisSoundStream() const;
  21437. operator const PackageFile() const;
  21438. operator const ParticleEffect2D() const;
  21439. operator const ParticleEffect() const;
  21440. operator const ParticleEmitter2D() const;
  21441. operator const ParticleEmitter() const;
  21442. operator const Pass() const;
  21443. operator const PhysicsWorld2D() const;
  21444. operator const PhysicsWorld() const;
  21445. operator const Profiler() const;
  21446. operator const ProgressBar() const;
  21447. operator const PropertySet2D() const;
  21448. operator const RaycastVehicle() const;
  21449. operator const RenderPath() const;
  21450. operator const RenderSurface() const;
  21451. operator const Renderer2D() const;
  21452. operator const Renderer() const;
  21453. operator const Resource() const;
  21454. operator const ResourceCache() const;
  21455. operator const ResourceWithMetadata() const;
  21456. operator const RibbonTrail() const;
  21457. operator const RigidBody2D() const;
  21458. operator const RigidBody() const;
  21459. operator const Scene() const;
  21460. operator const ScriptInstance() const;
  21461. operator const ScrollBar() const;
  21462. operator const ScrollView() const;
  21463. operator const Serializable() const;
  21464. operator const Shader() const;
  21465. operator const ShaderParameterAnimationInfo() const;
  21466. operator const ShaderPrecache() const;
  21467. operator const ShaderVariation() const;
  21468. operator const Skybox() const;
  21469. operator const Slider() const;
  21470. operator const SmoothedTransform() const;
  21471. operator const Sound() const;
  21472. operator const SoundListener() const;
  21473. operator const SoundSource3D() const;
  21474. operator const SoundSource() const;
  21475. operator const SoundStream() const;
  21476. operator const SplinePath() const;
  21477. operator const Sprite2D() const;
  21478. operator const Sprite() const;
  21479. operator const SpriteSheet2D() const;
  21480. operator const StaticModel() const;
  21481. operator const StaticModelGroup() const;
  21482. operator const StaticSprite2D() const;
  21483. operator const StretchableSprite2D() const;
  21484. operator const Technique() const;
  21485. operator const Terrain() const;
  21486. operator const TerrainPatch() const;
  21487. operator const Text3D() const;
  21488. operator const Text() const;
  21489. operator const Texture2D() const;
  21490. operator const Texture2DArray() const;
  21491. operator const Texture3D() const;
  21492. operator const Texture() const;
  21493. operator const TextureCube() const;
  21494. operator const Tile2D() const;
  21495. operator const TileMap2D() const;
  21496. operator const TileMapLayer2D() const;
  21497. operator const TileMapObject2D() const;
  21498. operator const Time() const;
  21499. operator const TmxFile2D() const;
  21500. operator const TmxImageLayer2D() const;
  21501. operator const TmxLayer2D() const;
  21502. operator const TmxObjectGroup2D() const;
  21503. operator const TmxTileLayer2D() const;
  21504. operator const ToolTip() const;
  21505. operator const TriangleMeshData() const;
  21506. operator const UI() const;
  21507. operator const UIComponent() const;
  21508. operator const UIElement() const;
  21509. operator const UISelectable() const;
  21510. operator const UnknownComponent() const;
  21511. operator const ValueAnimation() const;
  21512. operator const ValueAnimationInfo() const;
  21513. operator const VertexBuffer() const;
  21514. operator const View3D() const;
  21515. operator const View() const;
  21516. operator const Viewport() const;
  21517. operator const Window() const;
  21518. operator const WorkQueue() const;
  21519. operator const XMLFile() const;
  21520. operator const Zone() const;
  21521. // Properties:
  21522. /* readonly */
  21523. int refs;
  21524. /* readonly */
  21525. int weakRefs;
  21526. };
  21527. class RemoteEvent
  21528. {
  21529. public:
  21530. ~RemoteEvent();
  21531. RemoteEvent();
  21532. // Methods:
  21533. RemoteEvent& operator=(const RemoteEvent&);
  21534. // Properties:
  21535. VariantMap eventData;
  21536. StringHash eventType;
  21537. bool inOrder;
  21538. uint senderID;
  21539. };
  21540. class RenderPath
  21541. {
  21542. public:
  21543. RenderPath();
  21544. // Methods:
  21545. void AddCommand(const RenderPathCommand&);
  21546. void AddRenderTarget(const RenderTargetInfo&);
  21547. bool Append(XMLFile);
  21548. RenderPath Clone();
  21549. uint GetNumCommands() const;
  21550. uint GetNumRenderTargets() const;
  21551. void InsertCommand(uint, const RenderPathCommand&);
  21552. bool IsAdded(const String&) const;
  21553. bool IsEnabled(const String&) const;
  21554. bool Load(XMLFile);
  21555. operator RefCounted() const;
  21556. int Refs() const;
  21557. void RemoveCommand(uint);
  21558. void RemoveCommands(const String&);
  21559. void RemoveRenderTarget(const String&);
  21560. void RemoveRenderTarget(uint);
  21561. void RemoveRenderTargets(const String&);
  21562. void SetCommand(uint, const RenderPathCommand&);
  21563. void SetEnabled(const String&, bool);
  21564. void SetRenderTarget(uint, const RenderTargetInfo&);
  21565. void SetShaderParameter(const String&, const Variant&);
  21566. void ToggleEnabled(const String&);
  21567. const Variant& GetShaderParameter(const String&) const;
  21568. int WeakRefs() const;
  21569. operator const RefCounted() const;
  21570. // Properties:
  21571. /* readonly */
  21572. Array<bool> added;
  21573. Array<RenderPathCommand> commands;
  21574. /* readonly */
  21575. Array<bool> enabled;
  21576. /* readonly */
  21577. uint numCommands;
  21578. /* readonly */
  21579. uint numRenderTargets;
  21580. /* readonly */
  21581. int refs;
  21582. Array<RenderTargetInfo> renderTargets;
  21583. Array<Variant> shaderParameters;
  21584. /* readonly */
  21585. int weakRefs;
  21586. };
  21587. class RenderPathCommand
  21588. {
  21589. public:
  21590. ~RenderPathCommand();
  21591. RenderPathCommand();
  21592. // Methods:
  21593. RenderPathCommand& operator=(const RenderPathCommand&);
  21594. uint GetNumOutputs() const;
  21595. CubeMapFace GetOutputFace(uint) const;
  21596. void Load(const XMLElement&);
  21597. void RemoveShaderParameter(const String&);
  21598. void SetDepthStencilName(const String&);
  21599. void SetNumOutputs(uint);
  21600. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  21601. void SetOutputFace(uint, CubeMapFace);
  21602. void SetOutputName(uint, const String&);
  21603. void SetShaderParameter(const String&, const Variant&);
  21604. void SetTextureName(TextureUnit, const String&);
  21605. const String& GetDepthStencilName() const;
  21606. const String& GetOutputName(uint) const;
  21607. const String& GetTextureName(TextureUnit) const;
  21608. const Variant& GetShaderParameter(const String&) const;
  21609. // Properties:
  21610. BlendMode blendMode;
  21611. Color clearColor;
  21612. float clearDepth;
  21613. uint clearFlags;
  21614. uint clearStencil;
  21615. String depthStencilName;
  21616. String depthStencilName;
  21617. bool enabled;
  21618. String eventName;
  21619. bool markToStencil;
  21620. String metadata;
  21621. uint numOutputs;
  21622. Array<CubeMapFace> outputFaces;
  21623. Array<String> outputNames;
  21624. String pass;
  21625. uint passIndex;
  21626. String pixelShaderDefines;
  21627. String pixelShaderName;
  21628. Array<Variant> shaderParameters;
  21629. RenderCommandSortMode sortMode;
  21630. String tag;
  21631. Array<String> textureNames;
  21632. RenderCommandType type;
  21633. bool useFogColor;
  21634. bool useLitBase;
  21635. bool vertexLights;
  21636. String vertexShaderDefines;
  21637. String vertexShaderName;
  21638. };
  21639. class RenderSurface
  21640. {
  21641. public:
  21642. RenderSurface(Texture&);
  21643. // Methods:
  21644. bool CreateRenderBuffer(uint, uint, uint, int);
  21645. bool GetAutoResolve() const;
  21646. int GetHeight() const;
  21647. RenderSurface GetLinkedDepthStencil() const;
  21648. RenderSurface GetLinkedRenderTarget() const;
  21649. int GetMultiSample() const;
  21650. uint GetNumViewports() const;
  21651. Texture GetParentTexture() const;
  21652. uint GetRenderBuffer() const;
  21653. uint GetTarget() const;
  21654. RenderSurfaceUpdateMode GetUpdateMode() const;
  21655. TextureUsage GetUsage() const;
  21656. Viewport GetViewport(uint) const;
  21657. int GetWidth() const;
  21658. bool IsResolveDirty() const;
  21659. bool IsUpdateQueued() const;
  21660. void OnDeviceLost();
  21661. void QueueUpdate();
  21662. operator RefCounted() const;
  21663. int Refs() const;
  21664. void Release();
  21665. void ResetUpdateQueued();
  21666. void SetLinkedDepthStencil(RenderSurface);
  21667. void SetLinkedRenderTarget(RenderSurface);
  21668. void SetNumViewports(uint);
  21669. void SetResolveDirty(bool);
  21670. void SetUpdateMode(RenderSurfaceUpdateMode);
  21671. void SetViewport(uint, Viewport);
  21672. int WeakRefs() const;
  21673. operator const RefCounted() const;
  21674. // Properties:
  21675. /* readonly */
  21676. int height;
  21677. RenderSurface linkedDepthStencil;
  21678. RenderSurface linkedRenderTarget;
  21679. uint numViewports;
  21680. /* readonly */
  21681. Texture parentTexture;
  21682. /* readonly */
  21683. int refs;
  21684. /* readonly */
  21685. bool resolveDirty;
  21686. RenderSurfaceUpdateMode updateMode;
  21687. /* readonly */
  21688. TextureUsage usage;
  21689. Array<Viewport> viewports;
  21690. /* readonly */
  21691. int weakRefs;
  21692. /* readonly */
  21693. int width;
  21694. };
  21695. class RenderTargetInfo
  21696. {
  21697. public:
  21698. ~RenderTargetInfo();
  21699. RenderTargetInfo();
  21700. // Methods:
  21701. RenderTargetInfo& operator=(const RenderTargetInfo&);
  21702. void Load(const XMLElement&);
  21703. // Properties:
  21704. bool autoResolve;
  21705. bool cubemap;
  21706. bool enabled;
  21707. bool filtered;
  21708. uint format;
  21709. int multiSample;
  21710. String name;
  21711. bool persistent;
  21712. bool sRGB;
  21713. Vector2 size;
  21714. RenderTargetSizeMode sizeMode;
  21715. String tag;
  21716. };
  21717. class Renderer
  21718. {
  21719. public:
  21720. Renderer();
  21721. // Methods:
  21722. void ApplyShadowMapFilter(View, Texture2D, float);
  21723. void DrawDebugGeometry(bool);
  21724. const FrameInfo& GetFrameInfo() const;
  21725. bool GetBlockEvents() const;
  21726. Texture2D GetDefaultLightRamp() const;
  21727. Texture2D GetDefaultLightSpot() const;
  21728. Material GetDefaultMaterial() const;
  21729. RenderPath GetDefaultRenderPath() const;
  21730. Technique GetDefaultTechnique() const;
  21731. Zone GetDefaultZone() const;
  21732. RenderSurface GetDepthStencil(int, int, int, bool);
  21733. bool GetDrawShadows() const;
  21734. bool GetDynamicInstancing() const;
  21735. VariantMap& GetEventDataMap() const;
  21736. Object GetEventSender() const;
  21737. TextureCube GetFaceSelectCubeMap() const;
  21738. bool GetHDRRendering() const;
  21739. TextureCube GetIndirectionCubeMap() const;
  21740. VertexBuffer GetInstancingBuffer() const;
  21741. Geometry GetLightGeometry(Light);
  21742. uint GetMaterialQuality() const;
  21743. int GetMaxOccluderTriangles() const;
  21744. int GetMaxShadowMaps() const;
  21745. int GetMaxSortedInstances() const;
  21746. int GetMinInstances() const;
  21747. float GetMobileNormalOffsetMul() const;
  21748. float GetMobileShadowBiasAdd() const;
  21749. float GetMobileShadowBiasMul() const;
  21750. uint GetNumBatches() const;
  21751. int GetNumExtraInstancingBufferElements() const;
  21752. uint GetNumGeometries(bool = false) const;
  21753. uint GetNumLights(bool = false) const;
  21754. uint GetNumOccluders(bool = false) const;
  21755. uint GetNumPrimitives() const;
  21756. uint GetNumShadowMaps(bool = false) const;
  21757. uint GetNumViewports() const;
  21758. uint GetNumViews() const;
  21759. float GetOccluderSizeThreshold() const;
  21760. OcclusionBuffer GetOcclusionBuffer(Camera);
  21761. int GetOcclusionBufferSize() const;
  21762. View GetPreparedView(Camera);
  21763. Geometry GetQuadGeometry();
  21764. bool GetReuseShadowMaps() const;
  21765. Texture GetScreenBuffer(int, int, uint, int, bool, bool, bool, bool, uint = 0);
  21766. Camera GetShadowCamera();
  21767. Texture2D GetShadowMap(Light, Camera, uint, uint);
  21768. int GetShadowMapSize() const;
  21769. ShadowQuality GetShadowQuality() const;
  21770. float GetShadowSoftness() const;
  21771. bool GetSpecularLighting() const;
  21772. Object GetSubsystem(StringHash) const;
  21773. int GetTextureAnisotropy() const;
  21774. TextureFilterMode GetTextureFilterMode() const;
  21775. uint GetTextureQuality() const;
  21776. bool GetThreadedOcclusion() const;
  21777. StringHash GetType() const;
  21778. int GetVSMMultiSample() const;
  21779. Vector2 GetVSMShadowParameters() const;
  21780. Viewport GetViewport(uint) const;
  21781. Viewport GetViewportForScene(Scene, uint) const;
  21782. bool HasEventHandlers() const;
  21783. bool HasSubscribedToEvent(Object, StringHash) const;
  21784. bool HasSubscribedToEvent(StringHash) const;
  21785. bool IsInstanceOf(StringHash) const;
  21786. operator Object() const;
  21787. void OnEvent(Object, StringHash, VariantMap&);
  21788. void OptimizeLightByScissor(Light, Camera);
  21789. void OptimizeLightByStencil(Light, Camera);
  21790. void QueueRenderSurface(RenderSurface);
  21791. void QueueViewport(RenderSurface, Viewport);
  21792. const Rect& GetLightScissor(Light, Camera);
  21793. operator RefCounted() const;
  21794. int Refs() const;
  21795. void ReloadShaders();
  21796. void Render();
  21797. bool ResizeInstancingBuffer(uint);
  21798. void SendEvent(StringHash);
  21799. void SendEvent(StringHash, VariantMap&);
  21800. void SetBatchShaders(Batch&, Technique, bool, const BatchQueue&);
  21801. void SetBlockEvents(bool);
  21802. void SetCullMode(CullMode, Camera);
  21803. void SetDefaultRenderPath(RenderPath);
  21804. void SetDefaultRenderPath(XMLFile);
  21805. void SetDefaultTechnique(Technique);
  21806. void SetDrawShadows(bool);
  21807. void SetDynamicInstancing(bool);
  21808. void SetGlobalVar(StringHash, const Variant&);
  21809. void SetHDRRendering(bool);
  21810. void SetLightVolumeBatchShaders(Batch&, Camera, const String&, const String&, const String&, const String&);
  21811. void SetMaterialQuality(uint);
  21812. void SetMaxOccluderTriangles(int);
  21813. void SetMaxShadowMaps(int);
  21814. void SetMaxSortedInstances(int);
  21815. void SetMinInstances(int);
  21816. void SetMobileNormalOffsetMul(float);
  21817. void SetMobileShadowBiasAdd(float);
  21818. void SetMobileShadowBiasMul(float);
  21819. void SetNumExtraInstancingBufferElements(int);
  21820. void SetNumViewports(uint);
  21821. void SetOccluderSizeThreshold(float);
  21822. void SetOcclusionBufferSize(int);
  21823. void SetReuseShadowMaps(bool);
  21824. void SetShadowMapSize(int);
  21825. void SetShadowQuality(ShadowQuality);
  21826. void SetShadowSoftness(float);
  21827. void SetSpecularLighting(bool);
  21828. void SetTextureAnisotropy(int);
  21829. void SetTextureFilterMode(TextureFilterMode);
  21830. void SetTextureQuality(uint);
  21831. void SetThreadedOcclusion(bool);
  21832. void SetVSMMultiSample(int);
  21833. void SetVSMShadowParameters(float, float);
  21834. void SetViewport(uint, Viewport);
  21835. void StorePreparedView(View, Camera);
  21836. const String& GetCategory() const;
  21837. const String& GetTypeName() const;
  21838. void UnsubscribeFromAllEvents();
  21839. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  21840. void UnsubscribeFromEvent(Object, StringHash);
  21841. void UnsubscribeFromEvent(StringHash);
  21842. void UnsubscribeFromEvents(Object);
  21843. void Update(float);
  21844. const Variant& GetGlobalVar(StringHash) const;
  21845. const VariantMap& GetGlobalVars() const;
  21846. int WeakRefs() const;
  21847. operator const Object() const;
  21848. operator const RefCounted() const;
  21849. // Properties:
  21850. /* readonly */
  21851. String category;
  21852. /* readonly */
  21853. Texture2D defaultLightRamp;
  21854. /* readonly */
  21855. Texture2D defaultLightSpot;
  21856. /* readonly */
  21857. Material defaultMaterial;
  21858. RenderPath defaultRenderPath;
  21859. Technique defaultTechnique;
  21860. /* readonly */
  21861. Zone defaultZone;
  21862. bool drawShadows;
  21863. bool dynamicInstancing;
  21864. Array<Variant> globalVar;
  21865. /* readonly */
  21866. VariantMap globalVars;
  21867. bool hdrRendering;
  21868. uint materialQuality;
  21869. int maxOccluderTriangles;
  21870. int maxShadowMaps;
  21871. int maxSortedInstances;
  21872. int minInstances;
  21873. float mobileNormalOffsetMul;
  21874. float mobileShadowBiasAdd;
  21875. float mobileShadowBiasMul;
  21876. /* readonly */
  21877. uint numBatches;
  21878. int numExtraInstancingBufferElements;
  21879. /* readonly */
  21880. Array<uint> numGeometries;
  21881. /* readonly */
  21882. Array<uint> numLights;
  21883. /* readonly */
  21884. Array<uint> numOccluders;
  21885. /* readonly */
  21886. uint numPrimitives;
  21887. /* readonly */
  21888. Array<uint> numShadowMaps;
  21889. uint numViewports;
  21890. /* readonly */
  21891. uint numViews;
  21892. float occluderSizeThreshold;
  21893. int occlusionBufferSize;
  21894. /* readonly */
  21895. int refs;
  21896. bool reuseShadowMaps;
  21897. int shadowMapSize;
  21898. ShadowQuality shadowQuality;
  21899. float shadowSoftness;
  21900. bool specularLighting;
  21901. int textureAnisotropy;
  21902. TextureFilterMode textureFilterMode;
  21903. uint textureQuality;
  21904. bool threadedOcclusion;
  21905. /* readonly */
  21906. StringHash type;
  21907. /* readonly */
  21908. String typeName;
  21909. Array<Viewport> viewports;
  21910. int vsmMultiSample;
  21911. Vector2 vsmShadowParameters;
  21912. /* readonly */
  21913. int weakRefs;
  21914. };
  21915. class Renderer2D
  21916. {
  21917. public:
  21918. Renderer2D();
  21919. // Methods:
  21920. void AddDrawable(Drawable2D);
  21921. void AddLight(Light);
  21922. void AddVertexLight(Light);
  21923. void AllocateNetworkState();
  21924. operator Animatable() const;
  21925. void ApplyAttributes();
  21926. const BoundingBox& GetBoundingBox() const;
  21927. const BoundingBox& GetWorldBoundingBox();
  21928. bool CheckVisibility(Drawable2D) const;
  21929. void CleanupConnection(Connection);
  21930. operator Component() const;
  21931. void DrawDebugGeometry(DebugRenderer, bool);
  21932. bool DrawOcclusion(OcclusionBuffer);
  21933. operator Drawable() const;
  21934. bool GetAnimationEnabled() const;
  21935. Variant GetAttribute(const String&) const;
  21936. Variant GetAttribute(uint) const;
  21937. ValueAnimation GetAttributeAnimation(const String&) const;
  21938. float GetAttributeAnimationSpeed(const String&) const;
  21939. float GetAttributeAnimationTime(const String&) const;
  21940. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  21941. Variant GetAttributeDefault(const String&) const;
  21942. Variant GetAttributeDefault(uint) const;
  21943. bool GetBlockEvents() const;
  21944. bool GetCastShadows() const;
  21945. Component GetComponent(StringHash) const;
  21946. float GetDistance() const;
  21947. float GetDrawDistance() const;
  21948. uint8 GetDrawableFlags() const;
  21949. VariantMap& GetEventDataMap() const;
  21950. Object GetEventSender() const;
  21951. Light GetFirstLight() const;
  21952. uint GetID() const;
  21953. bool GetInterceptNetworkUpdate(const String&) const;
  21954. uint GetLightMask() const;
  21955. Array<Light> GetLights() const;
  21956. float GetLodBias() const;
  21957. float GetLodDistance() const;
  21958. Geometry GetLodGeometry(uint, uint);
  21959. Material GetMaterial(Texture2D, BlendMode);
  21960. uint GetMaxLights() const;
  21961. float GetMaxZ() const;
  21962. float GetMinZ() const;
  21963. Node GetNode() const;
  21964. uint GetNumAttributes() const;
  21965. uint GetNumNetworkAttributes() const;
  21966. uint GetNumOccluderTriangles();
  21967. ObjectAnimation GetObjectAnimation() const;
  21968. ResourceRef GetObjectAnimationAttr() const;
  21969. Scene GetScene() const;
  21970. float GetShadowDistance() const;
  21971. uint GetShadowMask() const;
  21972. float GetSortValue() const;
  21973. Object GetSubsystem(StringHash) const;
  21974. StringHash GetType() const;
  21975. UpdateGeometryType GetUpdateGeometryType();
  21976. Array<Light> GetVertexLights() const;
  21977. uint GetViewMask() const;
  21978. Zone GetZone() const;
  21979. uint GetZoneMask() const;
  21980. bool HasBasePass(uint) const;
  21981. bool HasEventHandlers() const;
  21982. bool HasSubscribedToEvent(Object, StringHash) const;
  21983. bool HasSubscribedToEvent(StringHash) const;
  21984. bool IsEnabled() const;
  21985. bool IsEnabledEffective() const;
  21986. bool IsInView() const;
  21987. bool IsInView(Camera) const;
  21988. bool IsInView(const FrameInfo&, bool = false) const;
  21989. bool IsInstanceOf(StringHash) const;
  21990. bool IsOccludee() const;
  21991. bool IsOccluder() const;
  21992. bool IsReplicated() const;
  21993. bool IsTemporary() const;
  21994. bool IsZoneDirty() const;
  21995. void LimitLights();
  21996. void LimitVertexLights(bool);
  21997. bool Load(Deserializer&);
  21998. bool LoadJSON(const JSONValue&);
  21999. bool LoadXML(const XMLElement&);
  22000. void MarkForUpdate();
  22001. void MarkInView(const FrameInfo&);
  22002. void MarkInView(uint);
  22003. void MarkNetworkUpdate();
  22004. operator Object() const;
  22005. void OnEvent(Object, StringHash, VariantMap&);
  22006. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  22007. void OnSetAttribute(const AttributeInfo&, const Variant&);
  22008. void OnSetEnabled();
  22009. void PrepareNetworkUpdate();
  22010. bool ReadDeltaUpdate(Deserializer&);
  22011. bool ReadLatestDataUpdate(Deserializer&);
  22012. operator RefCounted() const;
  22013. int Refs() const;
  22014. void Remove();
  22015. void RemoveAttributeAnimation(const String&);
  22016. void RemoveDrawable(Drawable2D);
  22017. void RemoveInstanceDefault();
  22018. void RemoveObjectAnimation();
  22019. void ResetToDefault();
  22020. bool Save(Serializer&) const;
  22021. bool SaveDefaultAttributes() const;
  22022. bool SaveJSON(JSONValue&) const;
  22023. bool SaveXML(XMLElement&) const;
  22024. void SendEvent(StringHash);
  22025. void SendEvent(StringHash, VariantMap&);
  22026. operator Serializable() const;
  22027. void SetAnimationEnabled(bool);
  22028. void SetAnimationTime(float);
  22029. bool SetAttribute(const String&, const Variant&);
  22030. bool SetAttribute(uint, const Variant&);
  22031. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  22032. void SetAttributeAnimationSpeed(const String&, float);
  22033. void SetAttributeAnimationTime(const String&, float);
  22034. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  22035. void SetBasePass(uint);
  22036. void SetBlockEvents(bool);
  22037. void SetCastShadows(bool);
  22038. void SetDrawDistance(float);
  22039. void SetEnabled(bool);
  22040. void SetGlobalVar(StringHash, const Variant&);
  22041. void SetInstanceDefault(bool);
  22042. void SetInterceptNetworkUpdate(const String&, bool);
  22043. void SetLightMask(uint);
  22044. void SetLodBias(float);
  22045. void SetMaxLights(uint);
  22046. void SetMinMaxZ(float, float);
  22047. void SetObjectAnimation(ObjectAnimation);
  22048. void SetObjectAnimationAttr(const ResourceRef&);
  22049. void SetOccludee(bool);
  22050. void SetOccluder(bool);
  22051. void SetShadowDistance(float);
  22052. void SetShadowMask(uint);
  22053. void SetSortValue(float);
  22054. void SetTemporary(bool);
  22055. void SetViewMask(uint);
  22056. void SetZone(Zone, bool = false);
  22057. void SetZoneMask(uint);
  22058. const String& GetCategory() const;
  22059. const String& GetTypeName() const;
  22060. void UnsubscribeFromAllEvents();
  22061. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22062. void UnsubscribeFromEvent(Object, StringHash);
  22063. void UnsubscribeFromEvent(StringHash);
  22064. void UnsubscribeFromEvents(Object);
  22065. void Update(const FrameInfo&);
  22066. void UpdateBatches(const FrameInfo&);
  22067. void UpdateGeometry(const FrameInfo&);
  22068. const Variant& GetGlobalVar(StringHash) const;
  22069. const VariantMap& GetGlobalVars() const;
  22070. int WeakRefs() const;
  22071. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  22072. void WriteInitialDeltaUpdate(Serializer&, uint8);
  22073. void WriteLatestDataUpdate(Serializer&, uint8);
  22074. operator const Animatable() const;
  22075. operator const Component() const;
  22076. operator const Drawable() const;
  22077. operator const Object() const;
  22078. operator const RefCounted() const;
  22079. operator const Serializable() const;
  22080. // Properties:
  22081. bool animationEnabled;
  22082. /* readonly */
  22083. Array<Variant> attributeDefaults;
  22084. /* readonly */
  22085. Array<AttributeInfo> attributeInfos;
  22086. Array<Variant> attributes;
  22087. /* readonly */
  22088. BoundingBox boundingBox;
  22089. bool castShadows;
  22090. /* readonly */
  22091. String category;
  22092. float drawDistance;
  22093. bool enabled;
  22094. /* readonly */
  22095. bool enabledEffective;
  22096. Array<Variant> globalVar;
  22097. /* readonly */
  22098. VariantMap globalVars;
  22099. /* readonly */
  22100. uint id;
  22101. /* readonly */
  22102. bool inView;
  22103. uint lightMask;
  22104. float lodBias;
  22105. uint maxLights;
  22106. /* readonly */
  22107. Node node;
  22108. /* readonly */
  22109. uint numAttributes;
  22110. ObjectAnimation objectAnimation;
  22111. bool occludee;
  22112. bool occluder;
  22113. /* readonly */
  22114. int refs;
  22115. /* readonly */
  22116. bool replicated;
  22117. float shadowDistance;
  22118. uint shadowMask;
  22119. bool temporary;
  22120. /* readonly */
  22121. StringHash type;
  22122. /* readonly */
  22123. String typeName;
  22124. uint viewMask;
  22125. /* readonly */
  22126. int weakRefs;
  22127. /* readonly */
  22128. BoundingBox worldBoundingBox;
  22129. /* readonly */
  22130. Zone zone;
  22131. uint zoneMask;
  22132. };
  22133. class ReplicationState
  22134. {
  22135. public:
  22136. ~ReplicationState();
  22137. ReplicationState();
  22138. // Methods:
  22139. ReplicationState& operator=(const ReplicationState&);
  22140. };
  22141. class Resource
  22142. {
  22143. public:
  22144. Resource();
  22145. // Methods:
  22146. operator Animation() const;
  22147. operator AnimationSet2D() const;
  22148. bool BeginLoad(Deserializer&);
  22149. bool EndLoad();
  22150. operator Font() const;
  22151. AsyncLoadState GetAsyncLoadState() const;
  22152. bool GetBlockEvents() const;
  22153. VariantMap& GetEventDataMap() const;
  22154. Object GetEventSender() const;
  22155. uint GetMemoryUse() const;
  22156. StringHash GetNameHash() const;
  22157. Object GetSubsystem(StringHash) const;
  22158. StringHash GetType() const;
  22159. uint GetUseTimer();
  22160. bool HasEventHandlers() const;
  22161. bool HasSubscribedToEvent(Object, StringHash) const;
  22162. bool HasSubscribedToEvent(StringHash) const;
  22163. operator Image() const;
  22164. bool IsInstanceOf(StringHash) const;
  22165. operator JSONFile() const;
  22166. bool Load(Deserializer&);
  22167. bool Load(File);
  22168. bool Load(VectorBuffer&);
  22169. bool Load(const String&);
  22170. bool LoadFile(const String&);
  22171. operator Material() const;
  22172. operator Model() const;
  22173. operator Object() const;
  22174. operator ObjectAnimation() const;
  22175. void OnEvent(Object, StringHash, VariantMap&);
  22176. operator ParticleEffect2D() const;
  22177. operator ParticleEffect() const;
  22178. operator RefCounted() const;
  22179. int Refs() const;
  22180. void ResetUseTimer();
  22181. operator ResourceWithMetadata() const;
  22182. bool Save(File) const;
  22183. bool Save(Serializer&) const;
  22184. bool Save(VectorBuffer&) const;
  22185. bool Save(const String&) const;
  22186. bool SaveFile(const String&) const;
  22187. void SendEvent(StringHash);
  22188. void SendEvent(StringHash, VariantMap&);
  22189. void SetAsyncLoadState(AsyncLoadState);
  22190. void SetBlockEvents(bool);
  22191. void SetGlobalVar(StringHash, const Variant&);
  22192. void SetMemoryUse(uint);
  22193. void SetName(const String&);
  22194. operator Shader() const;
  22195. operator Sound() const;
  22196. operator Sprite2D() const;
  22197. operator SpriteSheet2D() const;
  22198. const String& GetCategory() const;
  22199. const String& GetName() const;
  22200. const String& GetTypeName() const;
  22201. operator Technique() const;
  22202. operator Texture2D() const;
  22203. operator Texture2DArray() const;
  22204. operator Texture3D() const;
  22205. operator Texture() const;
  22206. operator TextureCube() const;
  22207. operator TmxFile2D() const;
  22208. void UnsubscribeFromAllEvents();
  22209. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22210. void UnsubscribeFromEvent(Object, StringHash);
  22211. void UnsubscribeFromEvent(StringHash);
  22212. void UnsubscribeFromEvents(Object);
  22213. operator ValueAnimation() const;
  22214. const Variant& GetGlobalVar(StringHash) const;
  22215. const VariantMap& GetGlobalVars() const;
  22216. int WeakRefs() const;
  22217. operator XMLFile() const;
  22218. operator const Animation() const;
  22219. operator const AnimationSet2D() const;
  22220. operator const Font() const;
  22221. operator const Image() const;
  22222. operator const JSONFile() const;
  22223. operator const Material() const;
  22224. operator const Model() const;
  22225. operator const Object() const;
  22226. operator const ObjectAnimation() const;
  22227. operator const ParticleEffect2D() const;
  22228. operator const ParticleEffect() const;
  22229. operator const RefCounted() const;
  22230. operator const ResourceWithMetadata() const;
  22231. operator const Shader() const;
  22232. operator const Sound() const;
  22233. operator const Sprite2D() const;
  22234. operator const SpriteSheet2D() const;
  22235. operator const Technique() const;
  22236. operator const Texture2D() const;
  22237. operator const Texture2DArray() const;
  22238. operator const Texture3D() const;
  22239. operator const Texture() const;
  22240. operator const TextureCube() const;
  22241. operator const TmxFile2D() const;
  22242. operator const ValueAnimation() const;
  22243. operator const XMLFile() const;
  22244. // Properties:
  22245. /* readonly */
  22246. String category;
  22247. Array<Variant> globalVar;
  22248. /* readonly */
  22249. VariantMap globalVars;
  22250. /* readonly */
  22251. uint memoryUse;
  22252. String name;
  22253. /* readonly */
  22254. int refs;
  22255. /* readonly */
  22256. StringHash type;
  22257. /* readonly */
  22258. String typeName;
  22259. /* readonly */
  22260. uint useTimer;
  22261. /* readonly */
  22262. int weakRefs;
  22263. };
  22264. class ResourceCache
  22265. {
  22266. public:
  22267. ResourceCache();
  22268. // Methods:
  22269. bool AddManualResource(Resource);
  22270. bool AddPackageFile(PackageFile, uint = PRIORITY_LAST);
  22271. bool AddPackageFile(const String&, uint = PRIORITY_LAST);
  22272. bool AddResourceDir(const String&, uint = PRIORITY_LAST);
  22273. bool BackgroundLoadResource(StringHash, const String&, bool = true, Resource = null);
  22274. bool Exists(const String&) const;
  22275. bool GetAutoReloadResources() const;
  22276. bool GetBlockEvents() const;
  22277. VariantMap& GetEventDataMap() const;
  22278. Object GetEventSender() const;
  22279. Resource GetExistingResource(StringHash, const String&);
  22280. File GetFile(const String&, bool = true);
  22281. int GetFinishBackgroundResourcesMs() const;
  22282. uint64 GetMemoryBudget(StringHash) const;
  22283. uint64 GetMemoryUse(StringHash) const;
  22284. uint GetNumBackgroundLoadResources() const;
  22285. Array<PackageFile> GetPackageFiles() const;
  22286. String GetPreferredResourceDir(const String&) const;
  22287. Resource GetResource(StringHash, const String&, bool = true);
  22288. Array<String> GetResourceDirs() const;
  22289. String GetResourceFileName(const String&) const;
  22290. Array<Resource> GetResources(StringHash);
  22291. bool GetReturnFailedResources() const;
  22292. bool GetSearchPackagesFirst() const;
  22293. Object GetSubsystem(StringHash) const;
  22294. Resource GetTempResource(StringHash, const String&, bool = true);
  22295. uint64 GetTotalMemoryUse() const;
  22296. StringHash GetType() const;
  22297. bool HasEventHandlers() const;
  22298. bool HasSubscribedToEvent(Object, StringHash) const;
  22299. bool HasSubscribedToEvent(StringHash) const;
  22300. bool IsInstanceOf(StringHash) const;
  22301. operator Object() const;
  22302. void OnEvent(Object, StringHash, VariantMap&);
  22303. String PrintMemoryUsage() const;
  22304. operator RefCounted() const;
  22305. int Refs() const;
  22306. void ReleaseAllResources(bool = false);
  22307. void ReleaseResource(StringHash, const String&, bool = false);
  22308. void ReleaseResources(StringHash, bool = false);
  22309. void ReleaseResources(StringHash, const String&, bool = false);
  22310. void ReleaseResources(const String&, bool = false);
  22311. bool ReloadResource(Resource);
  22312. void ReloadResourceWithDependencies(const String&);
  22313. void RemovePackageFile(PackageFile, bool = true, bool = false);
  22314. void RemovePackageFile(const String&, bool = true, bool = false);
  22315. void RemoveResourceDir(const String&);
  22316. void ResetDependencies(Resource);
  22317. String SanitateResourceDirName(const String&) const;
  22318. String SanitateResourceName(const String&) const;
  22319. void SendEvent(StringHash);
  22320. void SendEvent(StringHash, VariantMap&);
  22321. void SetAutoReloadResources(bool);
  22322. void SetBlockEvents(bool);
  22323. void SetFinishBackgroundResourcesMs(int);
  22324. void SetGlobalVar(StringHash, const Variant&);
  22325. void SetMemoryBudget(StringHash, uint64);
  22326. void SetReturnFailedResources(bool);
  22327. void SetSearchPackagesFirst(bool);
  22328. void StoreResourceDependency(Resource, const String&);
  22329. const String& GetCategory() const;
  22330. const String& GetTypeName() const;
  22331. void UnsubscribeFromAllEvents();
  22332. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22333. void UnsubscribeFromEvent(Object, StringHash);
  22334. void UnsubscribeFromEvent(StringHash);
  22335. void UnsubscribeFromEvents(Object);
  22336. const Variant& GetGlobalVar(StringHash) const;
  22337. const VariantMap& GetGlobalVars() const;
  22338. int WeakRefs() const;
  22339. operator const Object() const;
  22340. operator const RefCounted() const;
  22341. // Properties:
  22342. bool autoReloadResources;
  22343. /* readonly */
  22344. String category;
  22345. int finishBackgroundResourcesMs;
  22346. Array<Variant> globalVar;
  22347. /* readonly */
  22348. VariantMap globalVars;
  22349. Array<uint64> memoryBudget;
  22350. /* readonly */
  22351. Array<uint64> memoryUse;
  22352. /* readonly */
  22353. uint numBackgroundLoadResources;
  22354. /* readonly */
  22355. Array<PackageFile> packageFiles;
  22356. /* readonly */
  22357. int refs;
  22358. /* readonly */
  22359. Array<String> resourceDirs;
  22360. bool returnFailedResources;
  22361. bool searchPackagesFirst;
  22362. /* readonly */
  22363. uint64 totalMemoryUse;
  22364. /* readonly */
  22365. StringHash type;
  22366. /* readonly */
  22367. String typeName;
  22368. /* readonly */
  22369. int weakRefs;
  22370. };
  22371. class ResourceGroup
  22372. {
  22373. public:
  22374. ~ResourceGroup();
  22375. ResourceGroup();
  22376. // Methods:
  22377. ResourceGroup& operator=(const ResourceGroup&);
  22378. // Properties:
  22379. uint64 memoryBudget;
  22380. uint64 memoryUse;
  22381. };
  22382. class ResourceRef
  22383. {
  22384. public:
  22385. ~ResourceRef();
  22386. ResourceRef();
  22387. ResourceRef(StringHash);
  22388. ResourceRef(StringHash, const String&in);
  22389. ResourceRef(const String&in, const String&in);
  22390. ResourceRef(const ResourceRef&in);
  22391. // Methods:
  22392. ResourceRef& operator=(const ResourceRef&);
  22393. bool operator==(const ResourceRef&) const;
  22394. // Properties:
  22395. String name;
  22396. StringHash type;
  22397. };
  22398. class ResourceRefList
  22399. {
  22400. public:
  22401. ~ResourceRefList();
  22402. ResourceRefList();
  22403. ResourceRefList(StringHash);
  22404. ResourceRefList(StringHash, String[]@);
  22405. // Methods:
  22406. ResourceRefList& operator=(const ResourceRefList&);
  22407. bool operator==(const ResourceRefList&) const;
  22408. void Resize(uint);
  22409. // Properties:
  22410. /* readonly */
  22411. bool empty;
  22412. /* readonly */
  22413. uint length;
  22414. Array<String> names;
  22415. StringHash type;
  22416. };
  22417. class ResourceWithMetadata
  22418. {
  22419. public:
  22420. ResourceWithMetadata();
  22421. // Methods:
  22422. void AddMetadata(const String&, const Variant&);
  22423. operator Animation() const;
  22424. bool BeginLoad(Deserializer&);
  22425. bool EndLoad();
  22426. AsyncLoadState GetAsyncLoadState() const;
  22427. bool GetBlockEvents() const;
  22428. VariantMap& GetEventDataMap() const;
  22429. Object GetEventSender() const;
  22430. uint GetMemoryUse() const;
  22431. StringHash GetNameHash() const;
  22432. Object GetSubsystem(StringHash) const;
  22433. StringHash GetType() const;
  22434. uint GetUseTimer();
  22435. bool HasEventHandlers() const;
  22436. bool HasMetadata() const;
  22437. bool HasSubscribedToEvent(Object, StringHash) const;
  22438. bool HasSubscribedToEvent(StringHash) const;
  22439. bool IsInstanceOf(StringHash) const;
  22440. bool Load(Deserializer&);
  22441. bool Load(File);
  22442. bool Load(VectorBuffer&);
  22443. bool Load(const String&);
  22444. bool LoadFile(const String&);
  22445. operator Model() const;
  22446. operator Object() const;
  22447. void OnEvent(Object, StringHash, VariantMap&);
  22448. operator RefCounted() const;
  22449. int Refs() const;
  22450. void RemoveAllMetadata();
  22451. void RemoveMetadata(const String&);
  22452. void ResetUseTimer();
  22453. operator Resource() const;
  22454. bool Save(File) const;
  22455. bool Save(Serializer&) const;
  22456. bool Save(VectorBuffer&) const;
  22457. bool Save(const String&) const;
  22458. bool SaveFile(const String&) const;
  22459. void SendEvent(StringHash);
  22460. void SendEvent(StringHash, VariantMap&);
  22461. void SetAsyncLoadState(AsyncLoadState);
  22462. void SetBlockEvents(bool);
  22463. void SetGlobalVar(StringHash, const Variant&);
  22464. void SetMemoryUse(uint);
  22465. void SetName(const String&);
  22466. operator Sound() const;
  22467. const String& GetCategory() const;
  22468. const String& GetName() const;
  22469. const String& GetTypeName() const;
  22470. operator Texture2D() const;
  22471. operator Texture2DArray() const;
  22472. operator Texture3D() const;
  22473. operator Texture() const;
  22474. operator TextureCube() const;
  22475. void UnsubscribeFromAllEvents();
  22476. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22477. void UnsubscribeFromEvent(Object, StringHash);
  22478. void UnsubscribeFromEvent(StringHash);
  22479. void UnsubscribeFromEvents(Object);
  22480. const Variant& GetGlobalVar(StringHash) const;
  22481. const Variant& GetMetadata(const String&) const;
  22482. const VariantMap& GetGlobalVars() const;
  22483. int WeakRefs() const;
  22484. operator const Animation() const;
  22485. operator const Model() const;
  22486. operator const Object() const;
  22487. operator const RefCounted() const;
  22488. operator const Resource() const;
  22489. operator const Sound() const;
  22490. operator const Texture2D() const;
  22491. operator const Texture2DArray() const;
  22492. operator const Texture3D() const;
  22493. operator const Texture() const;
  22494. operator const TextureCube() const;
  22495. // Properties:
  22496. /* readonly */
  22497. String category;
  22498. Array<Variant> globalVar;
  22499. /* readonly */
  22500. VariantMap globalVars;
  22501. /* readonly */
  22502. bool hasMetadata;
  22503. /* readonly */
  22504. uint memoryUse;
  22505. Array<Variant> metadata;
  22506. String name;
  22507. /* readonly */
  22508. int refs;
  22509. /* readonly */
  22510. StringHash type;
  22511. /* readonly */
  22512. String typeName;
  22513. /* readonly */
  22514. uint useTimer;
  22515. /* readonly */
  22516. int weakRefs;
  22517. };
  22518. class RibbonTrail
  22519. {
  22520. public:
  22521. RibbonTrail();
  22522. // Methods:
  22523. void AddLight(Light);
  22524. void AddVertexLight(Light);
  22525. void AllocateNetworkState();
  22526. operator Animatable() const;
  22527. void ApplyAttributes();
  22528. const BoundingBox& GetBoundingBox() const;
  22529. const BoundingBox& GetWorldBoundingBox();
  22530. void CleanupConnection(Connection);
  22531. const Color& GetEndColor() const;
  22532. const Color& GetStartColor() const;
  22533. void Commit();
  22534. operator Component() const;
  22535. void DrawDebugGeometry(DebugRenderer, bool);
  22536. bool DrawOcclusion(OcclusionBuffer);
  22537. operator Drawable() const;
  22538. bool GetAnimationEnabled() const;
  22539. float GetAnimationLodBias() const;
  22540. Variant GetAttribute(const String&) const;
  22541. Variant GetAttribute(uint) const;
  22542. ValueAnimation GetAttributeAnimation(const String&) const;
  22543. float GetAttributeAnimationSpeed(const String&) const;
  22544. float GetAttributeAnimationTime(const String&) const;
  22545. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  22546. Variant GetAttributeDefault(const String&) const;
  22547. Variant GetAttributeDefault(uint) const;
  22548. bool GetBlockEvents() const;
  22549. bool GetCastShadows() const;
  22550. Component GetComponent(StringHash) const;
  22551. float GetDistance() const;
  22552. float GetDrawDistance() const;
  22553. uint8 GetDrawableFlags() const;
  22554. float GetEndScale() const;
  22555. VariantMap& GetEventDataMap() const;
  22556. Object GetEventSender() const;
  22557. Light GetFirstLight() const;
  22558. uint GetID() const;
  22559. bool GetInterceptNetworkUpdate(const String&) const;
  22560. float GetLifetime() const;
  22561. uint GetLightMask() const;
  22562. Array<Light> GetLights() const;
  22563. float GetLodBias() const;
  22564. float GetLodDistance() const;
  22565. Geometry GetLodGeometry(uint, uint);
  22566. Material GetMaterial() const;
  22567. ResourceRef GetMaterialAttr() const;
  22568. uint GetMaxLights() const;
  22569. float GetMaxZ() const;
  22570. float GetMinZ() const;
  22571. Node GetNode() const;
  22572. uint GetNumAttributes() const;
  22573. uint GetNumNetworkAttributes() const;
  22574. uint GetNumOccluderTriangles();
  22575. ObjectAnimation GetObjectAnimation() const;
  22576. ResourceRef GetObjectAnimationAttr() const;
  22577. Scene GetScene() const;
  22578. float GetShadowDistance() const;
  22579. uint GetShadowMask() const;
  22580. float GetSortValue() const;
  22581. float GetStartScale() const;
  22582. Object GetSubsystem(StringHash) const;
  22583. uint GetTailColumn() const;
  22584. TrailType GetTrailType() const;
  22585. StringHash GetType() const;
  22586. UpdateGeometryType GetUpdateGeometryType();
  22587. bool GetUpdateInvisible() const;
  22588. float GetVertexDistance() const;
  22589. Array<Light> GetVertexLights() const;
  22590. uint GetViewMask() const;
  22591. float GetWidth() const;
  22592. Zone GetZone() const;
  22593. uint GetZoneMask() const;
  22594. bool HasBasePass(uint) const;
  22595. bool HasEventHandlers() const;
  22596. bool HasSubscribedToEvent(Object, StringHash) const;
  22597. bool HasSubscribedToEvent(StringHash) const;
  22598. bool IsEmitting() const;
  22599. bool IsEnabled() const;
  22600. bool IsEnabledEffective() const;
  22601. bool IsInView() const;
  22602. bool IsInView(Camera) const;
  22603. bool IsInView(const FrameInfo&, bool = false) const;
  22604. bool IsInstanceOf(StringHash) const;
  22605. bool IsOccludee() const;
  22606. bool IsOccluder() const;
  22607. bool IsReplicated() const;
  22608. bool IsSorted() const;
  22609. bool IsTemporary() const;
  22610. bool IsZoneDirty() const;
  22611. void LimitLights();
  22612. void LimitVertexLights(bool);
  22613. bool Load(Deserializer&);
  22614. bool LoadJSON(const JSONValue&);
  22615. bool LoadXML(const XMLElement&);
  22616. void MarkForUpdate();
  22617. void MarkInView(const FrameInfo&);
  22618. void MarkInView(uint);
  22619. void MarkNetworkUpdate();
  22620. operator Object() const;
  22621. void OnEvent(Object, StringHash, VariantMap&);
  22622. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  22623. void OnSetAttribute(const AttributeInfo&, const Variant&);
  22624. void OnSetEnabled();
  22625. void PrepareNetworkUpdate();
  22626. bool ReadDeltaUpdate(Deserializer&);
  22627. bool ReadLatestDataUpdate(Deserializer&);
  22628. operator RefCounted() const;
  22629. int Refs() const;
  22630. void Remove();
  22631. void RemoveAttributeAnimation(const String&);
  22632. void RemoveInstanceDefault();
  22633. void RemoveObjectAnimation();
  22634. void ResetToDefault();
  22635. bool Save(Serializer&) const;
  22636. bool SaveDefaultAttributes() const;
  22637. bool SaveJSON(JSONValue&) const;
  22638. bool SaveXML(XMLElement&) const;
  22639. void SendEvent(StringHash);
  22640. void SendEvent(StringHash, VariantMap&);
  22641. operator Serializable() const;
  22642. void SetAnimationEnabled(bool);
  22643. void SetAnimationLodBias(float);
  22644. void SetAnimationTime(float);
  22645. bool SetAttribute(const String&, const Variant&);
  22646. bool SetAttribute(uint, const Variant&);
  22647. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  22648. void SetAttributeAnimationSpeed(const String&, float);
  22649. void SetAttributeAnimationTime(const String&, float);
  22650. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  22651. void SetBasePass(uint);
  22652. void SetBaseVelocity(const Vector3&);
  22653. void SetBlockEvents(bool);
  22654. void SetCastShadows(bool);
  22655. void SetDrawDistance(float);
  22656. void SetEmitting(bool);
  22657. void SetEnabled(bool);
  22658. void SetEndColor(const Color&);
  22659. void SetEndScale(float);
  22660. void SetGlobalVar(StringHash, const Variant&);
  22661. void SetInstanceDefault(bool);
  22662. void SetInterceptNetworkUpdate(const String&, bool);
  22663. void SetLifetime(float);
  22664. void SetLightMask(uint);
  22665. void SetLodBias(float);
  22666. void SetMaterial(Material);
  22667. void SetMaterialAttr(const ResourceRef&);
  22668. void SetMaxLights(uint);
  22669. void SetMinMaxZ(float, float);
  22670. void SetObjectAnimation(ObjectAnimation);
  22671. void SetObjectAnimationAttr(const ResourceRef&);
  22672. void SetOccludee(bool);
  22673. void SetOccluder(bool);
  22674. void SetShadowDistance(float);
  22675. void SetShadowMask(uint);
  22676. void SetSortValue(float);
  22677. void SetSorted(bool);
  22678. void SetStartColor(const Color&);
  22679. void SetStartScale(float);
  22680. void SetTailColumn(uint);
  22681. void SetTemporary(bool);
  22682. void SetTrailType(TrailType);
  22683. void SetUpdateInvisible(bool);
  22684. void SetVertexDistance(float);
  22685. void SetViewMask(uint);
  22686. void SetWidth(float);
  22687. void SetZone(Zone, bool = false);
  22688. void SetZoneMask(uint);
  22689. const String& GetCategory() const;
  22690. const String& GetTypeName() const;
  22691. void UnsubscribeFromAllEvents();
  22692. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22693. void UnsubscribeFromEvent(Object, StringHash);
  22694. void UnsubscribeFromEvent(StringHash);
  22695. void UnsubscribeFromEvents(Object);
  22696. void Update(const FrameInfo&);
  22697. void UpdateBatches(const FrameInfo&);
  22698. void UpdateGeometry(const FrameInfo&);
  22699. const Variant& GetGlobalVar(StringHash) const;
  22700. const VariantMap& GetGlobalVars() const;
  22701. const Vector3& GetBaseVelocity() const;
  22702. int WeakRefs() const;
  22703. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  22704. void WriteInitialDeltaUpdate(Serializer&, uint8);
  22705. void WriteLatestDataUpdate(Serializer&, uint8);
  22706. operator const Animatable() const;
  22707. operator const Component() const;
  22708. operator const Drawable() const;
  22709. operator const Object() const;
  22710. operator const RefCounted() const;
  22711. operator const Serializable() const;
  22712. // Properties:
  22713. bool animationEnabled;
  22714. float animationLodBias;
  22715. /* readonly */
  22716. Array<Variant> attributeDefaults;
  22717. /* readonly */
  22718. Array<AttributeInfo> attributeInfos;
  22719. Array<Variant> attributes;
  22720. Vector3 baseVelocity;
  22721. /* readonly */
  22722. BoundingBox boundingBox;
  22723. bool castShadows;
  22724. /* readonly */
  22725. String category;
  22726. float drawDistance;
  22727. bool emitting;
  22728. bool enabled;
  22729. /* readonly */
  22730. bool enabledEffective;
  22731. Color endColor;
  22732. float endScale;
  22733. Array<Variant> globalVar;
  22734. /* readonly */
  22735. VariantMap globalVars;
  22736. /* readonly */
  22737. uint id;
  22738. /* readonly */
  22739. bool inView;
  22740. float lifetime;
  22741. uint lightMask;
  22742. float lodBias;
  22743. Material material;
  22744. uint maxLights;
  22745. /* readonly */
  22746. Node node;
  22747. /* readonly */
  22748. uint numAttributes;
  22749. ObjectAnimation objectAnimation;
  22750. bool occludee;
  22751. bool occluder;
  22752. /* readonly */
  22753. int refs;
  22754. /* readonly */
  22755. bool replicated;
  22756. float shadowDistance;
  22757. uint shadowMask;
  22758. bool sorted;
  22759. Color startColor;
  22760. float startScale;
  22761. uint tailColumn;
  22762. bool temporary;
  22763. TrailType trailType;
  22764. /* readonly */
  22765. StringHash type;
  22766. /* readonly */
  22767. String typeName;
  22768. bool updateInvisible;
  22769. float vertexDistance;
  22770. uint viewMask;
  22771. /* readonly */
  22772. int weakRefs;
  22773. float width;
  22774. /* readonly */
  22775. BoundingBox worldBoundingBox;
  22776. /* readonly */
  22777. Zone zone;
  22778. uint zoneMask;
  22779. };
  22780. class RigidBody
  22781. {
  22782. public:
  22783. RigidBody();
  22784. // Methods:
  22785. void Activate();
  22786. void AddConstraint(Constraint);
  22787. void AllocateNetworkState();
  22788. operator Animatable() const;
  22789. void ApplyAttributes();
  22790. void ApplyForce(const Vector3&);
  22791. void ApplyForce(const Vector3&, const Vector3&);
  22792. void ApplyImpulse(const Vector3&);
  22793. void ApplyImpulse(const Vector3&, const Vector3&);
  22794. void ApplyTorque(const Vector3&);
  22795. void ApplyTorqueImpulse(const Vector3&);
  22796. void ApplyWorldTransform(const Vector3&, const Quaternion&);
  22797. void CleanupConnection(Connection);
  22798. operator Component() const;
  22799. void DisableMassUpdate();
  22800. void DrawDebugGeometry(DebugRenderer, bool);
  22801. void EnableMassUpdate();
  22802. float GetAngularDamping() const;
  22803. Vector3 GetAngularFactor() const;
  22804. float GetAngularRestThreshold() const;
  22805. Vector3 GetAngularVelocity() const;
  22806. bool GetAnimationEnabled() const;
  22807. Vector3 GetAnisotropicFriction() const;
  22808. Variant GetAttribute(const String&) const;
  22809. Variant GetAttribute(uint) const;
  22810. ValueAnimation GetAttributeAnimation(const String&) const;
  22811. float GetAttributeAnimationSpeed(const String&) const;
  22812. float GetAttributeAnimationTime(const String&) const;
  22813. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  22814. Variant GetAttributeDefault(const String&) const;
  22815. Variant GetAttributeDefault(uint) const;
  22816. bool GetBlockEvents() const;
  22817. float GetCcdMotionThreshold() const;
  22818. float GetCcdRadius() const;
  22819. CollisionEventMode GetCollisionEventMode() const;
  22820. uint GetCollisionLayer() const;
  22821. uint GetCollisionMask() const;
  22822. Component GetComponent(StringHash) const;
  22823. float GetContactProcessingThreshold() const;
  22824. VariantMap& GetEventDataMap() const;
  22825. Object GetEventSender() const;
  22826. float GetFriction() const;
  22827. uint GetID() const;
  22828. bool GetInterceptNetworkUpdate(const String&) const;
  22829. float GetLinearDamping() const;
  22830. Vector3 GetLinearFactor() const;
  22831. float GetLinearRestThreshold() const;
  22832. Vector3 GetLinearVelocity() const;
  22833. float GetMass() const;
  22834. Node GetNode() const;
  22835. uint GetNumAttributes() const;
  22836. uint GetNumNetworkAttributes() const;
  22837. ObjectAnimation GetObjectAnimation() const;
  22838. ResourceRef GetObjectAnimationAttr() const;
  22839. PhysicsWorld GetPhysicsWorld() const;
  22840. Vector3 GetPosition() const;
  22841. float GetRestitution() const;
  22842. float GetRollingFriction() const;
  22843. Quaternion GetRotation() const;
  22844. Scene GetScene() const;
  22845. Object GetSubsystem(StringHash) const;
  22846. StringHash GetType() const;
  22847. bool GetUseGravity() const;
  22848. Vector3 GetVelocityAtPoint(const Vector3&) const;
  22849. bool HasEventHandlers() const;
  22850. bool HasSubscribedToEvent(Object, StringHash) const;
  22851. bool HasSubscribedToEvent(StringHash) const;
  22852. bool IsActive() const;
  22853. bool IsEnabled() const;
  22854. bool IsEnabledEffective() const;
  22855. bool IsInstanceOf(StringHash) const;
  22856. bool IsKinematic() const;
  22857. bool IsReplicated() const;
  22858. bool IsTemporary() const;
  22859. bool IsTrigger() const;
  22860. bool Load(Deserializer&);
  22861. bool LoadJSON(const JSONValue&);
  22862. bool LoadXML(const XMLElement&);
  22863. void MarkNetworkUpdate();
  22864. operator Object() const;
  22865. void OnEvent(Object, StringHash, VariantMap&);
  22866. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  22867. void OnSetAttribute(const AttributeInfo&, const Variant&);
  22868. void OnSetEnabled();
  22869. void PrepareNetworkUpdate();
  22870. void ReAddBodyToWorld();
  22871. bool ReadDeltaUpdate(Deserializer&);
  22872. bool ReadLatestDataUpdate(Deserializer&);
  22873. operator RefCounted() const;
  22874. int Refs() const;
  22875. void ReleaseBody();
  22876. void Remove();
  22877. void RemoveAttributeAnimation(const String&);
  22878. void RemoveConstraint(Constraint);
  22879. void RemoveInstanceDefault();
  22880. void RemoveObjectAnimation();
  22881. void ResetForces();
  22882. void ResetToDefault();
  22883. bool Save(Serializer&) const;
  22884. bool SaveDefaultAttributes() const;
  22885. bool SaveJSON(JSONValue&) const;
  22886. bool SaveXML(XMLElement&) const;
  22887. void SendEvent(StringHash);
  22888. void SendEvent(StringHash, VariantMap&);
  22889. operator Serializable() const;
  22890. void SetAngularDamping(float);
  22891. void SetAngularFactor(const Vector3&);
  22892. void SetAngularRestThreshold(float);
  22893. void SetAngularVelocity(const Vector3&);
  22894. void SetAnimationEnabled(bool);
  22895. void SetAnimationTime(float);
  22896. void SetAnisotropicFriction(const Vector3&);
  22897. bool SetAttribute(const String&, const Variant&);
  22898. bool SetAttribute(uint, const Variant&);
  22899. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  22900. void SetAttributeAnimationSpeed(const String&, float);
  22901. void SetAttributeAnimationTime(const String&, float);
  22902. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  22903. void SetBlockEvents(bool);
  22904. void SetCcdMotionThreshold(float);
  22905. void SetCcdRadius(float);
  22906. void SetCollisionEventMode(CollisionEventMode);
  22907. void SetCollisionLayer(uint);
  22908. void SetCollisionLayerAndMask(uint, uint);
  22909. void SetCollisionMask(uint);
  22910. void SetContactProcessingThreshold(float);
  22911. void SetEnabled(bool);
  22912. void SetFriction(float);
  22913. void SetGlobalVar(StringHash, const Variant&);
  22914. void SetGravityOverride(const Vector3&);
  22915. void SetInstanceDefault(bool);
  22916. void SetInterceptNetworkUpdate(const String&, bool);
  22917. void SetKinematic(bool);
  22918. void SetLinearDamping(float);
  22919. void SetLinearFactor(const Vector3&);
  22920. void SetLinearRestThreshold(float);
  22921. void SetLinearVelocity(const Vector3&);
  22922. void SetMass(float);
  22923. void SetObjectAnimation(ObjectAnimation);
  22924. void SetObjectAnimationAttr(const ResourceRef&);
  22925. void SetPosition(const Vector3&);
  22926. void SetRestitution(float);
  22927. void SetRollingFriction(float);
  22928. void SetRotation(const Quaternion&);
  22929. void SetTemporary(bool);
  22930. void SetTransform(const Vector3&, const Quaternion&);
  22931. void SetTrigger(bool);
  22932. void SetUseGravity(bool);
  22933. const String& GetCategory() const;
  22934. const String& GetTypeName() const;
  22935. void UnsubscribeFromAllEvents();
  22936. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22937. void UnsubscribeFromEvent(Object, StringHash);
  22938. void UnsubscribeFromEvent(StringHash);
  22939. void UnsubscribeFromEvents(Object);
  22940. void UpdateGravity();
  22941. void UpdateMass();
  22942. const Variant& GetGlobalVar(StringHash) const;
  22943. const VariantMap& GetGlobalVars() const;
  22944. const Vector3& GetCenterOfMass() const;
  22945. const Vector3& GetGravityOverride() const;
  22946. int WeakRefs() const;
  22947. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  22948. void WriteInitialDeltaUpdate(Serializer&, uint8);
  22949. void WriteLatestDataUpdate(Serializer&, uint8);
  22950. operator const Animatable() const;
  22951. operator const Component() const;
  22952. operator const Object() const;
  22953. operator const RefCounted() const;
  22954. operator const Serializable() const;
  22955. // Properties:
  22956. /* readonly */
  22957. bool active;
  22958. float angularDamping;
  22959. Vector3 angularFactor;
  22960. float angularRestThreshold;
  22961. Vector3 angularVelocity;
  22962. bool animationEnabled;
  22963. Vector3 anisotropicFriction;
  22964. /* readonly */
  22965. Array<Variant> attributeDefaults;
  22966. /* readonly */
  22967. Array<AttributeInfo> attributeInfos;
  22968. Array<Variant> attributes;
  22969. /* readonly */
  22970. String category;
  22971. float ccdMotionThreshold;
  22972. float ccdRadius;
  22973. /* readonly */
  22974. Vector3 centerOfMass;
  22975. /* readonly */
  22976. Array<RigidBody> collidingBodies;
  22977. CollisionEventMode collisionEventMode;
  22978. uint collisionLayer;
  22979. uint collisionMask;
  22980. float contactProcessingThreshold;
  22981. bool enabled;
  22982. /* readonly */
  22983. bool enabledEffective;
  22984. float friction;
  22985. Array<Variant> globalVar;
  22986. /* readonly */
  22987. VariantMap globalVars;
  22988. Vector3 gravityOverride;
  22989. /* readonly */
  22990. uint id;
  22991. bool kinematic;
  22992. float linearDamping;
  22993. Vector3 linearFactor;
  22994. float linearRestThreshold;
  22995. Vector3 linearVelocity;
  22996. float mass;
  22997. /* readonly */
  22998. Node node;
  22999. /* readonly */
  23000. uint numAttributes;
  23001. ObjectAnimation objectAnimation;
  23002. Vector3 position;
  23003. /* readonly */
  23004. int refs;
  23005. /* readonly */
  23006. bool replicated;
  23007. float restitution;
  23008. float rollingFriction;
  23009. Quaternion rotation;
  23010. bool temporary;
  23011. bool trigger;
  23012. /* readonly */
  23013. StringHash type;
  23014. /* readonly */
  23015. String typeName;
  23016. bool useGravity;
  23017. /* readonly */
  23018. int weakRefs;
  23019. };
  23020. class RigidBody2D
  23021. {
  23022. public:
  23023. RigidBody2D();
  23024. // Methods:
  23025. void AddCollisionShape2D(CollisionShape2D);
  23026. void AddConstraint2D(Constraint2D);
  23027. void AllocateNetworkState();
  23028. operator Animatable() const;
  23029. void ApplyAngularImpulse(float, bool);
  23030. void ApplyAttributes();
  23031. void ApplyForce(const Vector2&, const Vector2&, bool);
  23032. void ApplyForceToCenter(const Vector2&, bool);
  23033. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  23034. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  23035. void ApplyTorque(float, bool);
  23036. void ApplyWorldTransform();
  23037. void ApplyWorldTransform(const Vector3&, const Quaternion&);
  23038. void CleanupConnection(Connection);
  23039. operator Component() const;
  23040. void CreateBody();
  23041. void DrawDebugGeometry(DebugRenderer, bool);
  23042. float GetAngularDamping() const;
  23043. float GetAngularVelocity() const;
  23044. bool GetAnimationEnabled() const;
  23045. Variant GetAttribute(const String&) const;
  23046. Variant GetAttribute(uint) const;
  23047. ValueAnimation GetAttributeAnimation(const String&) const;
  23048. float GetAttributeAnimationSpeed(const String&) const;
  23049. float GetAttributeAnimationTime(const String&) const;
  23050. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23051. Variant GetAttributeDefault(const String&) const;
  23052. Variant GetAttributeDefault(uint) const;
  23053. bool GetBlockEvents() const;
  23054. BodyType2D GetBodyType() const;
  23055. Component GetComponent(StringHash) const;
  23056. VariantMap& GetEventDataMap() const;
  23057. Object GetEventSender() const;
  23058. float GetGravityScale() const;
  23059. uint GetID() const;
  23060. float GetInertia() const;
  23061. bool GetInterceptNetworkUpdate(const String&) const;
  23062. float GetLinearDamping() const;
  23063. Vector2 GetLinearVelocity() const;
  23064. float GetMass() const;
  23065. Vector2 GetMassCenter() const;
  23066. Node GetNode() const;
  23067. uint GetNumAttributes() const;
  23068. uint GetNumNetworkAttributes() const;
  23069. ObjectAnimation GetObjectAnimation() const;
  23070. ResourceRef GetObjectAnimationAttr() const;
  23071. Scene GetScene() const;
  23072. Object GetSubsystem(StringHash) const;
  23073. StringHash GetType() const;
  23074. bool GetUseFixtureMass() const;
  23075. bool HasEventHandlers() const;
  23076. bool HasSubscribedToEvent(Object, StringHash) const;
  23077. bool HasSubscribedToEvent(StringHash) const;
  23078. bool IsAllowSleep() const;
  23079. bool IsAwake() const;
  23080. bool IsBullet() const;
  23081. bool IsEnabled() const;
  23082. bool IsEnabledEffective() const;
  23083. bool IsFixedRotation() const;
  23084. bool IsInstanceOf(StringHash) const;
  23085. bool IsReplicated() const;
  23086. bool IsTemporary() const;
  23087. bool Load(Deserializer&);
  23088. bool LoadJSON(const JSONValue&);
  23089. bool LoadXML(const XMLElement&);
  23090. void MarkNetworkUpdate();
  23091. operator Object() const;
  23092. void OnEvent(Object, StringHash, VariantMap&);
  23093. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  23094. void OnSetAttribute(const AttributeInfo&, const Variant&);
  23095. void OnSetEnabled();
  23096. void PrepareNetworkUpdate();
  23097. bool ReadDeltaUpdate(Deserializer&);
  23098. bool ReadLatestDataUpdate(Deserializer&);
  23099. operator RefCounted() const;
  23100. int Refs() const;
  23101. void ReleaseBody();
  23102. void Remove();
  23103. void RemoveAttributeAnimation(const String&);
  23104. void RemoveCollisionShape2D(CollisionShape2D);
  23105. void RemoveConstraint2D(Constraint2D);
  23106. void RemoveInstanceDefault();
  23107. void RemoveObjectAnimation();
  23108. void ResetToDefault();
  23109. bool Save(Serializer&) const;
  23110. bool SaveDefaultAttributes() const;
  23111. bool SaveJSON(JSONValue&) const;
  23112. bool SaveXML(XMLElement&) const;
  23113. void SendEvent(StringHash);
  23114. void SendEvent(StringHash, VariantMap&);
  23115. operator Serializable() const;
  23116. void SetAllowSleep(bool);
  23117. void SetAngularDamping(float);
  23118. void SetAngularVelocity(float);
  23119. void SetAnimationEnabled(bool);
  23120. void SetAnimationTime(float);
  23121. bool SetAttribute(const String&, const Variant&);
  23122. bool SetAttribute(uint, const Variant&);
  23123. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23124. void SetAttributeAnimationSpeed(const String&, float);
  23125. void SetAttributeAnimationTime(const String&, float);
  23126. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23127. void SetAwake(bool);
  23128. void SetBlockEvents(bool);
  23129. void SetBodyType(BodyType2D);
  23130. void SetBullet(bool);
  23131. void SetEnabled(bool);
  23132. void SetFixedRotation(bool);
  23133. void SetGlobalVar(StringHash, const Variant&);
  23134. void SetGravityScale(float);
  23135. void SetInertia(float);
  23136. void SetInstanceDefault(bool);
  23137. void SetInterceptNetworkUpdate(const String&, bool);
  23138. void SetLinearDamping(float);
  23139. void SetLinearVelocity(const Vector2&);
  23140. void SetMass(float);
  23141. void SetMassCenter(const Vector2&);
  23142. void SetObjectAnimation(ObjectAnimation);
  23143. void SetObjectAnimationAttr(const ResourceRef&);
  23144. void SetTemporary(bool);
  23145. void SetUseFixtureMass(bool);
  23146. const String& GetCategory() const;
  23147. const String& GetTypeName() const;
  23148. void UnsubscribeFromAllEvents();
  23149. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23150. void UnsubscribeFromEvent(Object, StringHash);
  23151. void UnsubscribeFromEvent(StringHash);
  23152. void UnsubscribeFromEvents(Object);
  23153. const Variant& GetGlobalVar(StringHash) const;
  23154. const VariantMap& GetGlobalVars() const;
  23155. int WeakRefs() const;
  23156. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23157. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23158. void WriteLatestDataUpdate(Serializer&, uint8);
  23159. operator const Animatable() const;
  23160. operator const Component() const;
  23161. operator const Object() const;
  23162. operator const RefCounted() const;
  23163. operator const Serializable() const;
  23164. // Properties:
  23165. bool allowSleep;
  23166. float angularDamping;
  23167. bool animationEnabled;
  23168. /* readonly */
  23169. Array<Variant> attributeDefaults;
  23170. /* readonly */
  23171. Array<AttributeInfo> attributeInfos;
  23172. Array<Variant> attributes;
  23173. bool awake;
  23174. BodyType2D bodyType;
  23175. bool bullet;
  23176. /* readonly */
  23177. String category;
  23178. bool enabled;
  23179. /* readonly */
  23180. bool enabledEffective;
  23181. bool fixedRotation;
  23182. Array<Variant> globalVar;
  23183. /* readonly */
  23184. VariantMap globalVars;
  23185. float gravityScale;
  23186. /* readonly */
  23187. uint id;
  23188. float inertia;
  23189. float linearDamping;
  23190. Vector2 linearVelocity;
  23191. float mass;
  23192. Vector2 massCenter;
  23193. /* readonly */
  23194. Node node;
  23195. /* readonly */
  23196. uint numAttributes;
  23197. ObjectAnimation objectAnimation;
  23198. /* readonly */
  23199. int refs;
  23200. /* readonly */
  23201. bool replicated;
  23202. bool temporary;
  23203. /* readonly */
  23204. StringHash type;
  23205. /* readonly */
  23206. String typeName;
  23207. bool useFixtureMass;
  23208. /* readonly */
  23209. int weakRefs;
  23210. };
  23211. class Scene
  23212. {
  23213. public:
  23214. Scene();
  23215. Scene(const String&in);
  23216. // Methods:
  23217. void AddChild(Node, uint = M_MAX_UNSIGNED);
  23218. void AddComponent(Component, uint, CreateMode);
  23219. void AddListener(Component);
  23220. void AddRequiredPackageFile(PackageFile);
  23221. void AddTag(const String&);
  23222. void AddTags(Array<String>);
  23223. void AddTags(const String&, int8 = ';');
  23224. void AllocateNetworkState();
  23225. operator Animatable() const;
  23226. void ApplyAttributes();
  23227. void BeginThreadedUpdate();
  23228. void CleanupConnection(Connection);
  23229. void Clear(bool = true, bool = true);
  23230. void ClearRequiredPackageFiles();
  23231. Node Clone(CreateMode = REPLICATED);
  23232. Component CloneComponent(Component, CreateMode, uint = 0);
  23233. Component CloneComponent(Component, uint = 0);
  23234. void ComponentAdded(Component);
  23235. void ComponentRemoved(Component);
  23236. Node CreateChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0, bool = false);
  23237. Node CreateChild(uint, CreateMode, bool = false);
  23238. Component CreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  23239. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode mode = REPLICATED);
  23240. ScriptObject CreateScriptObject(const String&, const String&, CreateMode mode = REPLICATED);
  23241. Node CreateTemporaryChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0);
  23242. void DelayedMarkedDirty(Component);
  23243. void EndThreadedUpdate();
  23244. bool GetAnimationEnabled() const;
  23245. LoadMode GetAsyncLoadMode() const;
  23246. int GetAsyncLoadingMs() const;
  23247. float GetAsyncProgress() const;
  23248. Variant GetAttribute(const String&) const;
  23249. Variant GetAttribute(uint) const;
  23250. ValueAnimation GetAttributeAnimation(const String&) const;
  23251. float GetAttributeAnimationSpeed(const String&) const;
  23252. float GetAttributeAnimationTime(const String&) const;
  23253. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23254. Variant GetAttributeDefault(const String&) const;
  23255. Variant GetAttributeDefault(uint) const;
  23256. bool GetBlockEvents() const;
  23257. uint GetChecksum() const;
  23258. Node GetChild(StringHash, bool = false) const;
  23259. Node GetChild(const String&, bool = false) const;
  23260. Node GetChild(uint) const;
  23261. Array<Node> GetChildren() const;
  23262. Array<Node> GetChildren(bool) const;
  23263. Array<Node> GetChildrenWithComponent(StringHash, bool = false) const;
  23264. Array<Node> GetChildrenWithScript(bool = false) const;
  23265. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  23266. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  23267. Component GetComponent(StringHash, bool = false) const;
  23268. Component GetComponent(uint) const;
  23269. Array<Component> GetComponents() const;
  23270. Array<Component> GetComponents(const String&, bool = false) const;
  23271. Array<Node> GetDependencyNodes() const;
  23272. Vector3 GetDirection() const;
  23273. float GetElapsedTime() const;
  23274. VariantMap& GetEventDataMap() const;
  23275. Object GetEventSender() const;
  23276. uint GetFreeComponentID(CreateMode);
  23277. uint GetFreeNodeID(CreateMode);
  23278. uint GetID() const;
  23279. bool GetInterceptNetworkUpdate(const String&) const;
  23280. StringHash GetNameHash() const;
  23281. Node GetNode(uint) const;
  23282. Array<Node> GetNodesWithTag(const String&) const;
  23283. uint GetNumAttributes() const;
  23284. uint GetNumChildren(bool = false) const;
  23285. uint GetNumComponents() const;
  23286. uint GetNumNetworkAttributes() const;
  23287. uint GetNumNetworkComponents() const;
  23288. uint GetNumPersistentChildren() const;
  23289. uint GetNumPersistentComponents() const;
  23290. ObjectAnimation GetObjectAnimation() const;
  23291. ResourceRef GetObjectAnimationAttr() const;
  23292. Component GetOrCreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  23293. Connection GetOwner() const;
  23294. Node GetParent() const;
  23295. Component GetParentComponent(StringHash, bool = false) const;
  23296. Vector2 GetPosition2D() const;
  23297. Array<PackageFile> GetRequiredPackageFiles() const;
  23298. Vector3 GetRight() const;
  23299. float GetRotation2D() const;
  23300. Vector2 GetScale2D() const;
  23301. Scene GetScene() const;
  23302. ScriptObject GetScriptObject() const;
  23303. ScriptObject GetScriptObject(const String&) const;
  23304. Vector3 GetSignedWorldScale() const;
  23305. float GetSmoothingConstant() const;
  23306. float GetSnapThreshold() const;
  23307. Object GetSubsystem(StringHash) const;
  23308. Array<String> GetTags() const;
  23309. float GetTimeScale() const;
  23310. Matrix3x4 GetTransform() const;
  23311. StringHash GetType() const;
  23312. Vector3 GetUp() const;
  23313. String GetVarNamesAttr() const;
  23314. Vector3 GetWorldDirection() const;
  23315. Vector3 GetWorldPosition() const;
  23316. Vector2 GetWorldPosition2D() const;
  23317. Vector3 GetWorldRight() const;
  23318. Quaternion GetWorldRotation() const;
  23319. float GetWorldRotation2D() const;
  23320. Vector3 GetWorldScale() const;
  23321. Vector2 GetWorldScale2D() const;
  23322. Vector3 GetWorldUp() const;
  23323. bool HasComponent(StringHash) const;
  23324. bool HasEventHandlers() const;
  23325. bool HasSubscribedToEvent(Object, StringHash) const;
  23326. bool HasSubscribedToEvent(StringHash) const;
  23327. bool HasTag(const String&) const;
  23328. Node Instantiate(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23329. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23330. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23331. Node InstantiateJSON(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23332. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23333. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23334. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23335. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23336. Node InstantiateXML(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23337. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23338. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23339. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23340. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23341. bool IsAsyncLoading() const;
  23342. bool IsChildOf(Node) const;
  23343. bool IsDirty() const;
  23344. bool IsEnabled() const;
  23345. bool IsEnabledSelf() const;
  23346. bool IsInstanceOf(StringHash) const;
  23347. bool IsReplicated() const;
  23348. bool IsTemporary() const;
  23349. bool IsThreadedUpdate() const;
  23350. bool IsUpdateEnabled() const;
  23351. bool Load(Deserializer&);
  23352. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23353. bool LoadAsyncJSON(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23354. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23355. bool LoadJSON(Deserializer&);
  23356. bool LoadJSON(File);
  23357. bool LoadJSON(VectorBuffer&);
  23358. bool LoadJSON(const JSONValue&);
  23359. bool LoadXML(Deserializer&);
  23360. bool LoadXML(File);
  23361. bool LoadXML(VectorBuffer&);
  23362. bool LoadXML(const XMLElement&);
  23363. Vector3 LocalToWorld(const Vector3&) const;
  23364. Vector3 LocalToWorld(const Vector4&) const;
  23365. Vector2 LocalToWorld2D(const Vector2&) const;
  23366. bool LookAt(const Vector3&, const Vector3& = Vector3 :: UP, TransformSpace = TS_WORLD);
  23367. void MarkDirty();
  23368. void MarkNetworkUpdate();
  23369. void MarkNetworkUpdate(Component);
  23370. void MarkNetworkUpdate(Node);
  23371. void MarkReplicationDirty(Node);
  23372. const Matrix3x4& GetWorldTransform() const;
  23373. operator Node() const;
  23374. void NodeAdded(Node);
  23375. void NodeRemoved(Node);
  23376. void NodeTagAdded(Node, const String&);
  23377. void NodeTagRemoved(Node, const String&);
  23378. operator Object() const;
  23379. void OnEvent(Object, StringHash, VariantMap&);
  23380. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  23381. void OnSetAttribute(const AttributeInfo&, const Variant&);
  23382. void Pitch(float, TransformSpace = TS_LOCAL);
  23383. void PrepareNetworkUpdate();
  23384. const Quaternion& GetRotation() const;
  23385. bool ReadDeltaUpdate(Deserializer&);
  23386. bool ReadLatestDataUpdate(Deserializer&);
  23387. operator RefCounted() const;
  23388. int Refs() const;
  23389. void RegisterVar(const String&);
  23390. void Remove();
  23391. void RemoveAllChildren();
  23392. void RemoveAllComponents();
  23393. void RemoveAllTags();
  23394. void RemoveAttributeAnimation(const String&);
  23395. void RemoveChild(Node);
  23396. void RemoveChildren(bool, bool, bool);
  23397. void RemoveComponent(Component);
  23398. void RemoveComponent(StringHash);
  23399. void RemoveComponents(StringHash);
  23400. void RemoveComponents(bool, bool);
  23401. void RemoveInstanceDefault();
  23402. void RemoveListener(Component);
  23403. void RemoveObjectAnimation();
  23404. bool RemoveTag(const String&);
  23405. void ReorderComponent(Component, uint);
  23406. void ResetDeepEnabled();
  23407. void ResetScene();
  23408. void ResetToDefault();
  23409. void Roll(float, TransformSpace = TS_LOCAL);
  23410. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  23411. void Rotate2D(float, TransformSpace = TS_LOCAL);
  23412. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  23413. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  23414. bool Save(Serializer&) const;
  23415. bool SaveDefaultAttributes() const;
  23416. bool SaveJSON(File);
  23417. bool SaveJSON(JSONValue&) const;
  23418. bool SaveJSON(Serializer&, const String& = "\t") const;
  23419. bool SaveJSON(VectorBuffer&);
  23420. bool SaveXML(File, const String& = "\t");
  23421. bool SaveXML(Serializer&, const String& = "\t") const;
  23422. bool SaveXML(VectorBuffer&, const String& = "\t");
  23423. bool SaveXML(XMLElement&) const;
  23424. void Scale(const Vector3&);
  23425. void Scale(float);
  23426. void Scale2D(const Vector2&);
  23427. void SendEvent(StringHash);
  23428. void SendEvent(StringHash, VariantMap&);
  23429. operator Serializable() const;
  23430. void SetAnimationEnabled(bool);
  23431. void SetAnimationTime(float);
  23432. void SetAsyncLoadingMs(int);
  23433. bool SetAttribute(const String&, const Variant&);
  23434. bool SetAttribute(uint, const Variant&);
  23435. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23436. void SetAttributeAnimationSpeed(const String&, float);
  23437. void SetAttributeAnimationTime(const String&, float);
  23438. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23439. void SetBlockEvents(bool);
  23440. void SetDeepEnabled(bool);
  23441. void SetDirection(const Vector3&);
  23442. void SetElapsedTime(float);
  23443. void SetEnabled(bool);
  23444. void SetEnabledRecursive(bool);
  23445. void SetGlobalVar(StringHash, const Variant&);
  23446. void SetID(uint);
  23447. void SetInstanceDefault(bool);
  23448. void SetInterceptNetworkUpdate(const String&, bool);
  23449. void SetName(const String&);
  23450. void SetNetPositionAttr(const Vector3&);
  23451. void SetObjectAnimation(ObjectAnimation);
  23452. void SetObjectAnimationAttr(const ResourceRef&);
  23453. void SetOwner(Connection);
  23454. void SetParent(Node);
  23455. void SetPosition(const Vector3&);
  23456. void SetPosition2D(const Vector2&);
  23457. void SetPosition2D(float, float);
  23458. void SetPositionSilent(const Vector3&);
  23459. void SetRotation(const Quaternion&);
  23460. void SetRotation2D(float);
  23461. void SetRotationSilent(const Quaternion&);
  23462. void SetScale(const Vector3&);
  23463. void SetScale(float);
  23464. void SetScale2D(const Vector2&);
  23465. void SetScale2D(float, float);
  23466. void SetScaleSilent(const Vector3&);
  23467. void SetScene(Scene);
  23468. void SetSmoothingConstant(float);
  23469. void SetSnapThreshold(float);
  23470. void SetTags(Array<String>);
  23471. void SetTemporary(bool);
  23472. void SetTimeScale(float);
  23473. void SetTransform(const Matrix3x4&);
  23474. void SetTransform(const Vector3&, const Quaternion&);
  23475. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  23476. void SetTransform(const Vector3&, const Quaternion&, float);
  23477. void SetTransform2D(const Vector2&, float);
  23478. void SetTransform2D(const Vector2&, float, const Vector2&);
  23479. void SetTransform2D(const Vector2&, float, float);
  23480. void SetTransformSilent(const Vector3&, const Quaternion&, const Vector3&);
  23481. void SetUpdateEnabled(bool);
  23482. void SetVar(StringHash, const Variant&);
  23483. void SetVarNamesAttr(const String&);
  23484. void SetWorldDirection(const Vector3&);
  23485. void SetWorldPosition(const Vector3&);
  23486. void SetWorldPosition2D(const Vector2&);
  23487. void SetWorldPosition2D(float, float);
  23488. void SetWorldRotation(const Quaternion&);
  23489. void SetWorldRotation2D(float);
  23490. void SetWorldScale(const Vector3&);
  23491. void SetWorldScale(float);
  23492. void SetWorldScale2D(const Vector2&);
  23493. void SetWorldScale2D(float, float);
  23494. void SetWorldTransform(const Matrix3x4&);
  23495. void SetWorldTransform(const Vector3&, const Quaternion&);
  23496. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  23497. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  23498. void SetWorldTransform2D(const Vector2&, float);
  23499. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  23500. void SetWorldTransform2D(const Vector2&, float, float);
  23501. void StopAsyncLoading();
  23502. const String& GetCategory() const;
  23503. const String& GetFileName() const;
  23504. const String& GetName() const;
  23505. const String& GetTypeName() const;
  23506. const String& GetVarName(StringHash) const;
  23507. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  23508. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  23509. void UnregisterAllVars();
  23510. void UnregisterVar(const String&);
  23511. void UnsubscribeFromAllEvents();
  23512. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23513. void UnsubscribeFromEvent(Object, StringHash);
  23514. void UnsubscribeFromEvent(StringHash);
  23515. void UnsubscribeFromEvents(Object);
  23516. void Update(float);
  23517. const Variant& GetGlobalVar(StringHash) const;
  23518. const Variant& GetVar(StringHash) const;
  23519. const VariantMap& GetGlobalVars() const;
  23520. const VariantMap& GetVars() const;
  23521. const Vector3& GetNetPositionAttr() const;
  23522. const Vector3& GetPosition() const;
  23523. const Vector3& GetScale() const;
  23524. int WeakRefs() const;
  23525. Vector3 WorldToLocal(const Vector3&) const;
  23526. Vector3 WorldToLocal(const Vector4&) const;
  23527. Vector2 WorldToLocal2D(const Vector2&) const;
  23528. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23529. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23530. void WriteLatestDataUpdate(Serializer&, uint8);
  23531. void Yaw(float, TransformSpace = TS_LOCAL);
  23532. operator const Animatable() const;
  23533. operator const Node() const;
  23534. operator const Object() const;
  23535. operator const RefCounted() const;
  23536. operator const Serializable() const;
  23537. // Properties:
  23538. /* readonly */
  23539. Array<Node> allChildrenByName;
  23540. bool animationEnabled;
  23541. /* readonly */
  23542. LoadMode asyncLoadMode;
  23543. /* readonly */
  23544. bool asyncLoading;
  23545. int asyncLoadingMs;
  23546. /* readonly */
  23547. float asyncProgress;
  23548. /* readonly */
  23549. Array<Variant> attributeDefaults;
  23550. /* readonly */
  23551. Array<AttributeInfo> attributeInfos;
  23552. Array<Variant> attributes;
  23553. /* readonly */
  23554. String category;
  23555. /* readonly */
  23556. uint checksum;
  23557. /* readonly */
  23558. Array<Node> children;
  23559. /* readonly */
  23560. Array<Node> childrenByName;
  23561. /* readonly */
  23562. Array<Component> components;
  23563. /* readonly */
  23564. DebugRenderer debugRenderer;
  23565. Vector3 direction;
  23566. float elapsedTime;
  23567. bool enabled;
  23568. /* readonly */
  23569. bool enabledSelf;
  23570. /* readonly */
  23571. String fileName;
  23572. Array<Variant> globalVar;
  23573. /* readonly */
  23574. VariantMap globalVars;
  23575. uint id;
  23576. String name;
  23577. /* readonly */
  23578. uint numAllChildren;
  23579. /* readonly */
  23580. uint numAttributes;
  23581. /* readonly */
  23582. uint numChildren;
  23583. /* readonly */
  23584. uint numComponents;
  23585. ObjectAnimation objectAnimation;
  23586. /* readonly */
  23587. Octree octree;
  23588. Connection owner;
  23589. Node parent;
  23590. /* readonly */
  23591. PhysicsWorld physicsWorld;
  23592. /* readonly */
  23593. PhysicsWorld2D physicsWorld2D;
  23594. Vector3 position;
  23595. Vector2 position2D;
  23596. /* readonly */
  23597. int refs;
  23598. /* readonly */
  23599. bool replicated;
  23600. /* readonly */
  23601. Array<PackageFile> requiredPackageFiles;
  23602. /* readonly */
  23603. Vector3 right;
  23604. Quaternion rotation;
  23605. float rotation2D;
  23606. Vector3 scale;
  23607. Vector2 scale2D;
  23608. /* readonly */
  23609. Scene scene;
  23610. /* readonly */
  23611. ScriptObject scriptObject;
  23612. /* readonly */
  23613. Vector3 signedWorldScale;
  23614. float smoothingConstant;
  23615. float snapThreshold;
  23616. /* readonly */
  23617. Array<String> tags;
  23618. bool temporary;
  23619. float timeScale;
  23620. /* readonly */
  23621. Matrix3x4 transform;
  23622. /* readonly */
  23623. StringHash type;
  23624. /* readonly */
  23625. String typeName;
  23626. /* readonly */
  23627. Vector3 up;
  23628. bool updateEnabled;
  23629. /* readonly */
  23630. VariantMap vars;
  23631. /* readonly */
  23632. int weakRefs;
  23633. Vector3 worldDirection;
  23634. Vector3 worldPosition;
  23635. Vector2 worldPosition2D;
  23636. /* readonly */
  23637. Vector3 worldRight;
  23638. Quaternion worldRotation;
  23639. float worldRotation2D;
  23640. Vector3 worldScale;
  23641. Vector2 worldScale2D;
  23642. /* readonly */
  23643. Matrix3x4 worldTransform;
  23644. /* readonly */
  23645. Vector3 worldUp;
  23646. };
  23647. class ScenePassInfo
  23648. {
  23649. public:
  23650. ~ScenePassInfo();
  23651. ScenePassInfo();
  23652. // Methods:
  23653. ScenePassInfo& operator=(const ScenePassInfo&);
  23654. // Properties:
  23655. bool allowInstancing;
  23656. bool markToStencil;
  23657. uint passIndex;
  23658. bool vertexLights;
  23659. };
  23660. class SceneReplicationState
  23661. {
  23662. public:
  23663. ~SceneReplicationState();
  23664. SceneReplicationState();
  23665. // Methods:
  23666. SceneReplicationState& operator=(const SceneReplicationState&);
  23667. void Clear();
  23668. };
  23669. class SceneResolver
  23670. {
  23671. public:
  23672. ~SceneResolver();
  23673. SceneResolver();
  23674. // Methods:
  23675. SceneResolver& operator=(const SceneResolver&);
  23676. void AddComponent(uint, Component);
  23677. void AddNode(uint, Node);
  23678. void Reset();
  23679. void Resolve();
  23680. };
  23681. class ScratchBuffer
  23682. {
  23683. public:
  23684. ~ScratchBuffer();
  23685. ScratchBuffer();
  23686. // Methods:
  23687. ScratchBuffer& operator=(const ScratchBuffer&);
  23688. // Properties:
  23689. bool reserved;
  23690. uint size;
  23691. };
  23692. class ScreenModeParams
  23693. {
  23694. public:
  23695. ~ScreenModeParams();
  23696. ScreenModeParams();
  23697. // Methods:
  23698. ScreenModeParams& operator=(const ScreenModeParams&);
  23699. bool operator==(const ScreenModeParams&) const;
  23700. bool EqualsExceptVSync(const ScreenModeParams&) const;
  23701. // Properties:
  23702. bool borderless;
  23703. bool fullscreen;
  23704. bool highDPI;
  23705. int monitor;
  23706. int multiSample;
  23707. int refreshRate;
  23708. bool resizable;
  23709. bool tripleBuffer;
  23710. bool vsync;
  23711. };
  23712. class Script
  23713. {
  23714. public:
  23715. Script();
  23716. // Methods:
  23717. void DumpAPI(DumpMode mode = DOXYGEN, const String& sourceTree = String ( ));
  23718. bool Execute(const String&);
  23719. bool GetBlockEvents() const;
  23720. VariantMap& GetEventDataMap() const;
  23721. Object GetEventSender() const;
  23722. Object GetSubsystem(StringHash) const;
  23723. StringHash GetType() const;
  23724. bool HasEventHandlers() const;
  23725. bool HasSubscribedToEvent(Object, StringHash) const;
  23726. bool HasSubscribedToEvent(StringHash) const;
  23727. bool IsInstanceOf(StringHash) const;
  23728. void OnEvent(Object, StringHash, VariantMap&);
  23729. int Refs() const;
  23730. void SendEvent(StringHash);
  23731. void SendEvent(StringHash, VariantMap&);
  23732. void SetBlockEvents(bool);
  23733. void SetGlobalVar(StringHash, const Variant&);
  23734. const String& GetCategory() const;
  23735. const String& GetTypeName() const;
  23736. void UnsubscribeFromAllEvents();
  23737. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23738. void UnsubscribeFromEvent(Object, StringHash);
  23739. void UnsubscribeFromEvent(StringHash);
  23740. void UnsubscribeFromEvents(Object);
  23741. const Variant& GetGlobalVar(StringHash) const;
  23742. const VariantMap& GetGlobalVars() const;
  23743. int WeakRefs() const;
  23744. // Properties:
  23745. /* readonly */
  23746. String category;
  23747. Scene defaultScene;
  23748. ScriptFile defaultScriptFile;
  23749. bool executeConsoleCommands;
  23750. Array<Variant> globalVar;
  23751. /* readonly */
  23752. VariantMap globalVars;
  23753. /* readonly */
  23754. int refs;
  23755. /* readonly */
  23756. StringHash type;
  23757. /* readonly */
  23758. String typeName;
  23759. /* readonly */
  23760. int weakRefs;
  23761. };
  23762. class ScriptFile
  23763. {
  23764. public:
  23765. ScriptFile();
  23766. // Methods:
  23767. bool BeginLoad(Deserializer&);
  23768. void ClearDelayedExecute(const String& declaration = String ( ));
  23769. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  23770. bool EndLoad();
  23771. bool Execute(const String&, const Array<Variant> params = null);
  23772. AsyncLoadState GetAsyncLoadState() const;
  23773. bool GetBlockEvents() const;
  23774. VariantMap& GetEventDataMap() const;
  23775. Object GetEventSender() const;
  23776. uint GetMemoryUse() const;
  23777. StringHash GetNameHash() const;
  23778. Object GetSubsystem(StringHash) const;
  23779. StringHash GetType() const;
  23780. uint GetUseTimer();
  23781. bool HasEventHandlers() const;
  23782. bool HasSubscribedToEvent(Object, StringHash) const;
  23783. bool HasSubscribedToEvent(StringHash) const;
  23784. bool IsInstanceOf(StringHash) const;
  23785. bool Load(Deserializer&);
  23786. bool Load(File);
  23787. bool Load(VectorBuffer&);
  23788. bool Load(const String&);
  23789. bool LoadFile(const String&);
  23790. void OnEvent(Object, StringHash, VariantMap&);
  23791. int Refs() const;
  23792. void ResetUseTimer();
  23793. bool Save(File) const;
  23794. bool Save(Serializer&) const;
  23795. bool Save(VectorBuffer&) const;
  23796. bool Save(const String&) const;
  23797. bool SaveFile(const String&) const;
  23798. void SendEvent(StringHash);
  23799. void SendEvent(StringHash, VariantMap&);
  23800. void SetAsyncLoadState(AsyncLoadState);
  23801. void SetBlockEvents(bool);
  23802. void SetGlobalVar(StringHash, const Variant&);
  23803. void SetMemoryUse(uint);
  23804. void SetName(const String&);
  23805. const String& GetCategory() const;
  23806. const String& GetName() const;
  23807. const String& GetTypeName() const;
  23808. void UnsubscribeFromAllEvents();
  23809. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23810. void UnsubscribeFromEvent(Object, StringHash);
  23811. void UnsubscribeFromEvent(StringHash);
  23812. void UnsubscribeFromEvents(Object);
  23813. const Variant& GetGlobalVar(StringHash) const;
  23814. const VariantMap& GetGlobalVars() const;
  23815. int WeakRefs() const;
  23816. // Properties:
  23817. /* readonly */
  23818. String category;
  23819. /* readonly */
  23820. bool compiled;
  23821. Array<Variant> globalVar;
  23822. /* readonly */
  23823. VariantMap globalVars;
  23824. /* readonly */
  23825. uint memoryUse;
  23826. String name;
  23827. /* readonly */
  23828. int refs;
  23829. /* readonly */
  23830. StringHash type;
  23831. /* readonly */
  23832. String typeName;
  23833. /* readonly */
  23834. uint useTimer;
  23835. /* readonly */
  23836. int weakRefs;
  23837. };
  23838. class ScriptInstance
  23839. {
  23840. public:
  23841. ScriptInstance();
  23842. // Methods:
  23843. void AllocateNetworkState();
  23844. operator Animatable() const;
  23845. void ApplyAttributes();
  23846. void CleanupConnection(Connection);
  23847. void ClearDelayedExecute(const String& declaration = String ( ));
  23848. operator Component() const;
  23849. bool CreateObject(ScriptFile, const String&);
  23850. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  23851. bool Execute(const String&, const Array<Variant> params = null);
  23852. bool GetAnimationEnabled() const;
  23853. Variant GetAttribute(const String&) const;
  23854. Variant GetAttribute(uint) const;
  23855. ValueAnimation GetAttributeAnimation(const String&) const;
  23856. float GetAttributeAnimationSpeed(const String&) const;
  23857. float GetAttributeAnimationTime(const String&) const;
  23858. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23859. Variant GetAttributeDefault(const String&) const;
  23860. Variant GetAttributeDefault(uint) const;
  23861. bool GetBlockEvents() const;
  23862. Component GetComponent(StringHash) const;
  23863. VariantMap& GetEventDataMap() const;
  23864. Object GetEventSender() const;
  23865. uint GetID() const;
  23866. bool GetInterceptNetworkUpdate(const String&) const;
  23867. Node GetNode() const;
  23868. uint GetNumAttributes() const;
  23869. uint GetNumNetworkAttributes() const;
  23870. ObjectAnimation GetObjectAnimation() const;
  23871. ResourceRef GetObjectAnimationAttr() const;
  23872. Scene GetScene() const;
  23873. Object GetSubsystem(StringHash) const;
  23874. StringHash GetType() const;
  23875. bool HasEventHandlers() const;
  23876. bool HasMethod(const String& declaration) const;
  23877. bool HasSubscribedToEvent(Object, StringHash) const;
  23878. bool HasSubscribedToEvent(StringHash) const;
  23879. bool IsA(const String& declaration) const;
  23880. bool IsEnabled() const;
  23881. bool IsEnabledEffective() const;
  23882. bool IsInstanceOf(StringHash) const;
  23883. bool IsReplicated() const;
  23884. bool IsTemporary() const;
  23885. bool Load(Deserializer&);
  23886. bool LoadJSON(const JSONValue&);
  23887. bool LoadXML(const XMLElement&);
  23888. void MarkNetworkUpdate();
  23889. operator Object() const;
  23890. void OnEvent(Object, StringHash, VariantMap&);
  23891. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  23892. void OnSetAttribute(const AttributeInfo&, const Variant&);
  23893. void OnSetEnabled();
  23894. void PrepareNetworkUpdate();
  23895. bool ReadDeltaUpdate(Deserializer&);
  23896. bool ReadLatestDataUpdate(Deserializer&);
  23897. operator RefCounted() const;
  23898. int Refs() const;
  23899. void Remove();
  23900. void RemoveAttributeAnimation(const String&);
  23901. void RemoveInstanceDefault();
  23902. void RemoveObjectAnimation();
  23903. void ResetToDefault();
  23904. bool Save(Serializer&) const;
  23905. bool SaveDefaultAttributes() const;
  23906. bool SaveJSON(JSONValue&) const;
  23907. bool SaveXML(XMLElement&) const;
  23908. void SendEvent(StringHash);
  23909. void SendEvent(StringHash, VariantMap&);
  23910. operator Serializable() const;
  23911. void SetAnimationEnabled(bool);
  23912. void SetAnimationTime(float);
  23913. bool SetAttribute(const String&, const Variant&);
  23914. bool SetAttribute(uint, const Variant&);
  23915. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23916. void SetAttributeAnimationSpeed(const String&, float);
  23917. void SetAttributeAnimationTime(const String&, float);
  23918. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23919. void SetBlockEvents(bool);
  23920. void SetEnabled(bool);
  23921. void SetGlobalVar(StringHash, const Variant&);
  23922. void SetInstanceDefault(bool);
  23923. void SetInterceptNetworkUpdate(const String&, bool);
  23924. void SetObjectAnimation(ObjectAnimation);
  23925. void SetObjectAnimationAttr(const ResourceRef&);
  23926. void SetTemporary(bool);
  23927. const String& GetCategory() const;
  23928. const String& GetTypeName() const;
  23929. void UnsubscribeFromAllEvents();
  23930. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23931. void UnsubscribeFromEvent(Object, StringHash);
  23932. void UnsubscribeFromEvent(StringHash);
  23933. void UnsubscribeFromEvents(Object);
  23934. const Variant& GetGlobalVar(StringHash) const;
  23935. const VariantMap& GetGlobalVars() const;
  23936. int WeakRefs() const;
  23937. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23938. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23939. void WriteLatestDataUpdate(Serializer&, uint8);
  23940. operator const Animatable() const;
  23941. operator const Component() const;
  23942. operator const Object() const;
  23943. operator const RefCounted() const;
  23944. operator const Serializable() const;
  23945. // Properties:
  23946. bool animationEnabled;
  23947. /* readonly */
  23948. Array<Variant> attributeDefaults;
  23949. /* readonly */
  23950. Array<AttributeInfo> attributeInfos;
  23951. Array<Variant> attributes;
  23952. /* readonly */
  23953. String category;
  23954. String className;
  23955. bool enabled;
  23956. /* readonly */
  23957. bool enabledEffective;
  23958. Array<Variant> globalVar;
  23959. /* readonly */
  23960. VariantMap globalVars;
  23961. /* readonly */
  23962. uint id;
  23963. /* readonly */
  23964. Node node;
  23965. /* readonly */
  23966. uint numAttributes;
  23967. ObjectAnimation objectAnimation;
  23968. /* readonly */
  23969. int refs;
  23970. /* readonly */
  23971. bool replicated;
  23972. ScriptFile scriptFile;
  23973. /* readonly */
  23974. ScriptObject scriptObject;
  23975. bool temporary;
  23976. /* readonly */
  23977. StringHash type;
  23978. /* readonly */
  23979. String typeName;
  23980. /* readonly */
  23981. int weakRefs;
  23982. };
  23983. class ScriptObject
  23984. {
  23985. public:
  23986. };
  23987. class ScrollBar
  23988. {
  23989. public:
  23990. ScrollBar();
  23991. // Methods:
  23992. void AddChild(UIElement);
  23993. void AddTag(const String&);
  23994. void AddTags(Array<String>);
  23995. void AddTags(const String&, int8 = ';');
  23996. void AdjustScissor(IntRect&);
  23997. void AllocateNetworkState();
  23998. operator Animatable() const;
  23999. void ApplyAttributes();
  24000. operator BorderImage() const;
  24001. void BringToFront();
  24002. void ChangeValue(float);
  24003. const Color& GetColor(Corner) const;
  24004. const Color& GetColorAttr() const;
  24005. const Color& GetDerivedColor() const;
  24006. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  24007. void DisableLayoutUpdate();
  24008. IntVector2 ElementToScreen(const IntVector2&);
  24009. void EnableLayoutUpdate();
  24010. bool FilterAttributes(XMLElement&) const;
  24011. uint FindChild(UIElement) const;
  24012. bool GetAnimationEnabled() const;
  24013. Variant GetAttribute(const String&) const;
  24014. Variant GetAttribute(uint) const;
  24015. ValueAnimation GetAttributeAnimation(const String&) const;
  24016. float GetAttributeAnimationSpeed(const String&) const;
  24017. float GetAttributeAnimationTime(const String&) const;
  24018. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  24019. Variant GetAttributeDefault(const String&) const;
  24020. Variant GetAttributeDefault(uint) const;
  24021. Button GetBackButton() const;
  24022. BlendMode GetBlendMode() const;
  24023. bool GetBlockEvents() const;
  24024. bool GetBringToBack() const;
  24025. bool GetBringToFront() const;
  24026. UIElement GetChild(const String&, bool = false) const;
  24027. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  24028. UIElement GetChild(uint) const;
  24029. Array<UIElement> GetChildren() const;
  24030. Array<UIElement> GetChildren(bool) const;
  24031. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  24032. bool GetClipChildren() const;
  24033. IntRect GetCombinedScreenRect();
  24034. XMLFile GetDefaultStyle(bool = true) const;
  24035. float GetDerivedOpacity() const;
  24036. uint GetDragButtonCombo() const;
  24037. uint GetDragButtonCount() const;
  24038. uint GetDragDropMode() const;
  24039. IntVector2 GetEffectiveMinSize() const;
  24040. float GetEffectiveScrollStep() const;
  24041. UIElement GetElementEventSender() const;
  24042. bool GetEnableAnchor() const;
  24043. VariantMap& GetEventDataMap() const;
  24044. Object GetEventSender() const;
  24045. FocusMode GetFocusMode() const;
  24046. Button GetForwardButton() const;
  24047. int GetHeight() const;
  24048. HorizontalAlignment GetHorizontalAlignment() const;
  24049. int GetIndent() const;
  24050. int GetIndentSpacing() const;
  24051. int GetIndentWidth() const;
  24052. bool GetInterceptNetworkUpdate(const String&) const;
  24053. int GetLayoutElementMaxSize() const;
  24054. LayoutMode GetLayoutMode() const;
  24055. int GetLayoutSpacing() const;
  24056. Material GetMaterial() const;
  24057. ResourceRef GetMaterialAttr() const;
  24058. int GetMaxHeight() const;
  24059. int GetMaxWidth() const;
  24060. int GetMinHeight() const;
  24061. int GetMinWidth() const;
  24062. uint GetNumAttributes() const;
  24063. uint GetNumChildren(bool = false) const;
  24064. uint GetNumNetworkAttributes() const;
  24065. ObjectAnimation GetObjectAnimation() const;
  24066. ResourceRef GetObjectAnimationAttr() const;
  24067. float GetOpacity() const;
  24068. Orientation GetOrientation() const;
  24069. UIElement GetParent() const;
  24070. int GetPriority() const;
  24071. float GetRange() const;
  24072. UIElement GetRoot() const;
  24073. float GetScrollStep() const;
  24074. Slider GetSlider() const;
  24075. bool GetSortChildren() const;
  24076. float GetStepFactor() const;
  24077. Object GetSubsystem(StringHash) const;
  24078. Array<String> GetTags() const;
  24079. Texture GetTexture() const;
  24080. ResourceRef GetTextureAttr() const;
  24081. TraversalMode GetTraversalMode() const;
  24082. StringHash GetType() const;
  24083. bool GetUseDerivedOpacity() const;
  24084. float GetValue() const;
  24085. VerticalAlignment GetVerticalAlignment() const;
  24086. int GetWidth() const;
  24087. bool HasColorGradient() const;
  24088. bool HasEventHandlers() const;
  24089. bool HasFocus() const;
  24090. bool HasSubscribedToEvent(Object, StringHash) const;
  24091. bool HasSubscribedToEvent(StringHash) const;
  24092. bool HasTag(const String&) const;
  24093. void InsertChild(uint, UIElement);
  24094. const IntRect& GetBorder() const;
  24095. const IntRect& GetClipBorder() const;
  24096. const IntRect& GetImageBorder() const;
  24097. const IntRect& GetImageRect() const;
  24098. const IntRect& GetLayoutBorder() const;
  24099. const IntVector2& GetChildOffset() const;
  24100. const IntVector2& GetDisabledOffset() const;
  24101. const IntVector2& GetHoverOffset() const;
  24102. const IntVector2& GetMaxOffset() const;
  24103. const IntVector2& GetMaxSize() const;
  24104. const IntVector2& GetMinOffset() const;
  24105. const IntVector2& GetMinSize() const;
  24106. const IntVector2& GetPosition() const;
  24107. const IntVector2& GetScreenPosition() const;
  24108. const IntVector2& GetSize() const;
  24109. bool IsChildOf(UIElement) const;
  24110. bool IsEditable() const;
  24111. bool IsElementEventSender() const;
  24112. bool IsEnabled() const;
  24113. bool IsEnabledSelf() const;
  24114. bool IsFixedHeight() const;
  24115. bool IsFixedSize() const;
  24116. bool IsFixedWidth() const;
  24117. bool IsHovering() const;
  24118. bool IsInside(IntVector2, bool);
  24119. bool IsInsideCombined(IntVector2, bool);
  24120. bool IsInstanceOf(StringHash) const;
  24121. bool IsInternal() const;
  24122. bool IsSelected() const;
  24123. bool IsTemporary() const;
  24124. bool IsTiled() const;
  24125. bool IsVisible() const;
  24126. bool IsVisibleEffective() const;
  24127. bool IsWheelHandler() const;
  24128. bool IsWithinScissor(const IntRect&);
  24129. bool Load(Deserializer&);
  24130. UIElement LoadChildXML(XMLFile, XMLFile);
  24131. UIElement LoadChildXML(const XMLElement&, XMLFile);
  24132. bool LoadJSON(const JSONValue&);
  24133. bool LoadXML(Deserializer&);
  24134. bool LoadXML(File);
  24135. bool LoadXML(VectorBuffer&);
  24136. bool LoadXML(XMLFile, XMLFile);
  24137. bool LoadXML(const XMLElement&);
  24138. bool LoadXML(const XMLElement&, XMLFile);
  24139. void MarkNetworkUpdate();
  24140. operator Object() const;
  24141. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24142. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  24143. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24144. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24145. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24146. bool OnDragDropFinish(UIElement);
  24147. bool OnDragDropTest(UIElement);
  24148. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24149. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24150. void OnEvent(Object, StringHash, VariantMap&);
  24151. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  24152. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24153. void OnIndentSet();
  24154. void OnKey(uint, uint, uint);
  24155. void OnPositionSet(const IntVector2&);
  24156. void OnResize(const IntVector2&, const IntVector2&);
  24157. void OnSetAttribute(const AttributeInfo&, const Variant&);
  24158. void OnSetEditable();
  24159. void OnTextInput(const String&);
  24160. void OnWheel(int, uint, uint);
  24161. bool ReadDeltaUpdate(Deserializer&);
  24162. bool ReadLatestDataUpdate(Deserializer&);
  24163. operator RefCounted() const;
  24164. int Refs() const;
  24165. void Remove();
  24166. void RemoveAllChildren();
  24167. void RemoveAllTags();
  24168. void RemoveAttributeAnimation(const String&);
  24169. void RemoveChild(UIElement, uint = 0);
  24170. void RemoveChild(uint);
  24171. void RemoveChildAtIndex(uint);
  24172. void RemoveInstanceDefault();
  24173. void RemoveObjectAnimation();
  24174. bool RemoveTag(const String&);
  24175. void ResetDeepEnabled();
  24176. void ResetToDefault();
  24177. bool Save(Serializer&) const;
  24178. bool SaveDefaultAttributes() const;
  24179. bool SaveJSON(JSONValue&) const;
  24180. bool SaveXML(File, const String& indentation = "\t");
  24181. bool SaveXML(Serializer&, const String& = "\t") const;
  24182. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  24183. bool SaveXML(XMLElement&) const;
  24184. IntVector2 ScreenToElement(const IntVector2&);
  24185. void SendEvent(StringHash);
  24186. void SendEvent(StringHash, VariantMap&);
  24187. operator Serializable() const;
  24188. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  24189. void SetAnimationEnabled(bool);
  24190. void SetAnimationTime(float);
  24191. bool SetAttribute(const String&, const Variant&);
  24192. bool SetAttribute(uint, const Variant&);
  24193. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  24194. void SetAttributeAnimationSpeed(const String&, float);
  24195. void SetAttributeAnimationTime(const String&, float);
  24196. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  24197. void SetBlendMode(BlendMode);
  24198. void SetBlockEvents(bool);
  24199. void SetBorder(const IntRect&);
  24200. void SetBringToBack(bool);
  24201. void SetBringToFront(bool);
  24202. void SetChildOffset(const IntVector2&);
  24203. void SetClipBorder(const IntRect&);
  24204. void SetClipChildren(bool);
  24205. void SetColor(Corner, const Color&);
  24206. void SetColor(const Color&);
  24207. void SetDeepEnabled(bool);
  24208. void SetDefaultStyle(XMLFile);
  24209. void SetDisabledOffset(const IntVector2&);
  24210. void SetDisabledOffset(int, int);
  24211. void SetDragDropMode(uint);
  24212. void SetEditable(bool);
  24213. void SetElementEventSender(bool);
  24214. void SetEnableAnchor(bool);
  24215. void SetEnabled(bool);
  24216. void SetEnabledRecursive(bool);
  24217. void SetFixedHeight(int);
  24218. void SetFixedSize(const IntVector2&);
  24219. void SetFixedSize(int, int);
  24220. void SetFixedWidth(int);
  24221. void SetFocus(bool);
  24222. void SetFocusMode(FocusMode);
  24223. void SetFullImageRect();
  24224. void SetGlobalVar(StringHash, const Variant&);
  24225. void SetHeight(int);
  24226. void SetHorizontalAlignment(HorizontalAlignment);
  24227. void SetHoverOffset(const IntVector2&);
  24228. void SetHoverOffset(int, int);
  24229. void SetHovering(bool);
  24230. void SetImageBorder(const IntRect&);
  24231. void SetImageRect(const IntRect&);
  24232. void SetIndent(int);
  24233. void SetIndentSpacing(int);
  24234. void SetInstanceDefault(bool);
  24235. void SetInterceptNetworkUpdate(const String&, bool);
  24236. void SetInternal(bool);
  24237. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  24238. void SetLayoutBorder(const IntRect&);
  24239. void SetLayoutFlexScale(const Vector2&);
  24240. void SetLayoutMode(LayoutMode);
  24241. void SetLayoutSpacing(int);
  24242. void SetMaterial(Material);
  24243. void SetMaterialAttr(const ResourceRef&);
  24244. void SetMaxAnchor(const Vector2&);
  24245. void SetMaxAnchor(float, float);
  24246. void SetMaxHeight(int);
  24247. void SetMaxOffset(const IntVector2&);
  24248. void SetMaxSize(const IntVector2&);
  24249. void SetMaxSize(int, int);
  24250. void SetMaxWidth(int);
  24251. void SetMinAnchor(const Vector2&);
  24252. void SetMinAnchor(float, float);
  24253. void SetMinHeight(int);
  24254. void SetMinOffset(const IntVector2&);
  24255. void SetMinSize(const IntVector2&);
  24256. void SetMinSize(int, int);
  24257. void SetMinWidth(int);
  24258. void SetName(const String&);
  24259. void SetObjectAnimation(ObjectAnimation);
  24260. void SetObjectAnimationAttr(const ResourceRef&);
  24261. void SetOpacity(float);
  24262. void SetOrientation(Orientation);
  24263. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  24264. void SetPivot(const Vector2&);
  24265. void SetPivot(float, float);
  24266. void SetPosition(const IntVector2&);
  24267. void SetPosition(int, int);
  24268. void SetPriority(int);
  24269. void SetRange(float);
  24270. void SetRenderTexture(Texture2D);
  24271. void SetScrollStep(float);
  24272. void SetSelected(bool);
  24273. void SetSize(const IntVector2&);
  24274. void SetSize(int, int);
  24275. void SetSortChildren(bool);
  24276. void SetStepFactor(float);
  24277. bool SetStyle(const String&, XMLFile = null);
  24278. bool SetStyle(const XMLElement&);
  24279. bool SetStyleAuto(XMLFile = null);
  24280. void SetTags(Array<String>);
  24281. void SetTemporary(bool);
  24282. void SetTexture(Texture);
  24283. void SetTextureAttr(const ResourceRef&);
  24284. void SetTiled(bool);
  24285. void SetTraversalMode(TraversalMode);
  24286. void SetUseDerivedOpacity(bool);
  24287. void SetValue(float);
  24288. void SetVar(StringHash, const Variant&);
  24289. void SetVerticalAlignment(VerticalAlignment);
  24290. void SetVisible(bool);
  24291. void SetWidth(int);
  24292. void SortChildren();
  24293. void StepBack();
  24294. void StepForward();
  24295. const String& GetAppliedStyle() const;
  24296. const String& GetCategory() const;
  24297. const String& GetName() const;
  24298. const String& GetTypeName() const;
  24299. operator UIElement() const;
  24300. void UnsubscribeFromAllEvents();
  24301. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  24302. void UnsubscribeFromEvent(Object, StringHash);
  24303. void UnsubscribeFromEvent(StringHash);
  24304. void UnsubscribeFromEvents(Object);
  24305. void Update(float);
  24306. void UpdateLayout();
  24307. const Variant& GetGlobalVar(StringHash) const;
  24308. const Variant& GetVar(const StringHash&) const;
  24309. const VariantMap& GetGlobalVars() const;
  24310. const VariantMap& GetVars() const;
  24311. const Vector2& GetLayoutFlexScale() const;
  24312. const Vector2& GetMaxAnchor() const;
  24313. const Vector2& GetMinAnchor() const;
  24314. const Vector2& GetPivot() const;
  24315. int WeakRefs() const;
  24316. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  24317. void WriteInitialDeltaUpdate(Serializer&, uint8);
  24318. void WriteLatestDataUpdate(Serializer&, uint8);
  24319. operator const Animatable() const;
  24320. operator const BorderImage() const;
  24321. operator const Object() const;
  24322. operator const RefCounted() const;
  24323. operator const Serializable() const;
  24324. operator const UIElement() const;
  24325. // Properties:
  24326. bool animationEnabled;
  24327. /* readonly */
  24328. Array<Variant> attributeDefaults;
  24329. /* readonly */
  24330. Array<AttributeInfo> attributeInfos;
  24331. Array<Variant> attributes;
  24332. /* readonly */
  24333. Button backButton;
  24334. BlendMode blendMode;
  24335. IntRect border;
  24336. bool bringToBack;
  24337. bool bringToFront;
  24338. /* readonly */
  24339. String category;
  24340. /* readonly */
  24341. IntVector2 childOffset;
  24342. /* readonly */
  24343. Array<UIElement> children;
  24344. IntRect clipBorder;
  24345. bool clipChildren;
  24346. /* writeonly */
  24347. Color color;
  24348. /* readonly */
  24349. bool colorGradient;
  24350. Array<Color> colors;
  24351. /* readonly */
  24352. IntRect combinedScreenRect;
  24353. XMLFile defaultStyle;
  24354. /* readonly */
  24355. float derivedOpacity;
  24356. IntVector2 disabledOffset;
  24357. /* readonly */
  24358. uint dragButtonCombo;
  24359. /* readonly */
  24360. uint dragButtonCount;
  24361. uint dragDropMode;
  24362. bool editable;
  24363. /* readonly */
  24364. float effectiveScrollStep;
  24365. bool elementEventSender;
  24366. bool enableAnchor;
  24367. bool enabled;
  24368. /* readonly */
  24369. bool enabledSelf;
  24370. /* readonly */
  24371. bool fixedHeight;
  24372. /* readonly */
  24373. bool fixedSize;
  24374. /* readonly */
  24375. bool fixedWidth;
  24376. bool focus;
  24377. FocusMode focusMode;
  24378. /* readonly */
  24379. Button forwardButton;
  24380. Array<Variant> globalVar;
  24381. /* readonly */
  24382. VariantMap globalVars;
  24383. int height;
  24384. HorizontalAlignment horizontalAlignment;
  24385. IntVector2 hoverOffset;
  24386. /* readonly */
  24387. bool hovering;
  24388. IntRect imageBorder;
  24389. IntRect imageRect;
  24390. int indent;
  24391. int indentSpacing;
  24392. /* readonly */
  24393. int indentWidth;
  24394. bool internal;
  24395. IntRect layoutBorder;
  24396. Vector2 layoutFlexScale;
  24397. LayoutMode layoutMode;
  24398. int layoutSpacing;
  24399. Material material;
  24400. Vector2 maxAnchor;
  24401. int maxHeight;
  24402. IntVector2 maxOffset;
  24403. IntVector2 maxSize;
  24404. int maxWidth;
  24405. Vector2 minAnchor;
  24406. int minHeight;
  24407. IntVector2 minOffset;
  24408. IntVector2 minSize;
  24409. int minWidth;
  24410. String name;
  24411. /* readonly */
  24412. uint numAllChildren;
  24413. /* readonly */
  24414. uint numAttributes;
  24415. /* readonly */
  24416. uint numChildren;
  24417. ObjectAnimation objectAnimation;
  24418. float opacity;
  24419. Orientation orientation;
  24420. UIElement parent;
  24421. Vector2 pivot;
  24422. IntVector2 position;
  24423. int priority;
  24424. float range;
  24425. /* readonly */
  24426. int refs;
  24427. /* readonly */
  24428. UIElement root;
  24429. /* readonly */
  24430. IntVector2 screenPosition;
  24431. float scrollStep;
  24432. bool selected;
  24433. IntVector2 size;
  24434. /* readonly */
  24435. Slider slider;
  24436. bool sortChildren;
  24437. float stepFactor;
  24438. String style;
  24439. /* readonly */
  24440. Array<String> tags;
  24441. bool temporary;
  24442. Texture texture;
  24443. bool tiled;
  24444. TraversalMode traversalMode;
  24445. /* readonly */
  24446. StringHash type;
  24447. /* readonly */
  24448. String typeName;
  24449. bool useDerivedOpacity;
  24450. float value;
  24451. /* readonly */
  24452. VariantMap vars;
  24453. VerticalAlignment verticalAlignment;
  24454. bool visible;
  24455. /* readonly */
  24456. bool visibleEffective;
  24457. /* readonly */
  24458. int weakRefs;
  24459. int width;
  24460. };
  24461. class ScrollView
  24462. {
  24463. public:
  24464. ScrollView();
  24465. // Methods:
  24466. void AddChild(UIElement);
  24467. void AddTag(const String&);
  24468. void AddTags(Array<String>);
  24469. void AddTags(const String&, int8 = ';');
  24470. void AdjustScissor(IntRect&);
  24471. void AllocateNetworkState();
  24472. operator Animatable() const;
  24473. void ApplyAttributes();
  24474. void BringToFront();
  24475. const Color& GetColor(Corner) const;
  24476. const Color& GetColorAttr() const;
  24477. const Color& GetDerivedColor() const;
  24478. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  24479. void DisableLayoutUpdate();
  24480. IntVector2 ElementToScreen(const IntVector2&);
  24481. void EnableLayoutUpdate();
  24482. bool FilterAttributes(XMLElement&) const;
  24483. uint FindChild(UIElement) const;
  24484. bool GetAnimationEnabled() const;
  24485. Variant GetAttribute(const String&) const;
  24486. Variant GetAttribute(uint) const;
  24487. ValueAnimation GetAttributeAnimation(const String&) const;
  24488. float GetAttributeAnimationSpeed(const String&) const;
  24489. float GetAttributeAnimationTime(const String&) const;
  24490. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  24491. Variant GetAttributeDefault(const String&) const;
  24492. Variant GetAttributeDefault(uint) const;
  24493. bool GetAutoDisableChildren() const;
  24494. float GetAutoDisableThreshold() const;
  24495. bool GetBlockEvents() const;
  24496. bool GetBringToBack() const;
  24497. bool GetBringToFront() const;
  24498. UIElement GetChild(const String&, bool = false) const;
  24499. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  24500. UIElement GetChild(uint) const;
  24501. Array<UIElement> GetChildren() const;
  24502. Array<UIElement> GetChildren(bool) const;
  24503. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  24504. bool GetClipChildren() const;
  24505. IntRect GetCombinedScreenRect();
  24506. UIElement GetContentElement() const;
  24507. XMLFile GetDefaultStyle(bool = true) const;
  24508. float GetDerivedOpacity() const;
  24509. uint GetDragButtonCombo() const;
  24510. uint GetDragButtonCount() const;
  24511. uint GetDragDropMode() const;
  24512. IntVector2 GetEffectiveMinSize() const;
  24513. UIElement GetElementEventSender() const;
  24514. bool GetEnableAnchor() const;
  24515. VariantMap& GetEventDataMap() const;
  24516. Object GetEventSender() const;
  24517. FocusMode GetFocusMode() const;
  24518. int GetHeight() const;
  24519. HorizontalAlignment GetHorizontalAlignment() const;
  24520. ScrollBar GetHorizontalScrollBar() const;
  24521. bool GetHorizontalScrollBarVisible() const;
  24522. int GetIndent() const;
  24523. int GetIndentSpacing() const;
  24524. int GetIndentWidth() const;
  24525. bool GetInterceptNetworkUpdate(const String&) const;
  24526. int GetLayoutElementMaxSize() const;
  24527. LayoutMode GetLayoutMode() const;
  24528. int GetLayoutSpacing() const;
  24529. int GetMaxHeight() const;
  24530. int GetMaxWidth() const;
  24531. int GetMinHeight() const;
  24532. int GetMinWidth() const;
  24533. uint GetNumAttributes() const;
  24534. uint GetNumChildren(bool = false) const;
  24535. uint GetNumNetworkAttributes() const;
  24536. ObjectAnimation GetObjectAnimation() const;
  24537. ResourceRef GetObjectAnimationAttr() const;
  24538. float GetOpacity() const;
  24539. float GetPageStep() const;
  24540. UIElement GetParent() const;
  24541. int GetPriority() const;
  24542. UIElement GetRoot() const;
  24543. bool GetScrollBarsAutoVisible() const;
  24544. float GetScrollDeceleration() const;
  24545. BorderImage GetScrollPanel() const;
  24546. float GetScrollSnapEpsilon() const;
  24547. float GetScrollStep() const;
  24548. bool GetSortChildren() const;
  24549. Object GetSubsystem(StringHash) const;
  24550. Array<String> GetTags() const;
  24551. TraversalMode GetTraversalMode() const;
  24552. StringHash GetType() const;
  24553. bool GetUseDerivedOpacity() const;
  24554. VerticalAlignment GetVerticalAlignment() const;
  24555. ScrollBar GetVerticalScrollBar() const;
  24556. bool GetVerticalScrollBarVisible() const;
  24557. int GetWidth() const;
  24558. bool HasColorGradient() const;
  24559. bool HasEventHandlers() const;
  24560. bool HasFocus() const;
  24561. bool HasSubscribedToEvent(Object, StringHash) const;
  24562. bool HasSubscribedToEvent(StringHash) const;
  24563. bool HasTag(const String&) const;
  24564. void InsertChild(uint, UIElement);
  24565. const IntRect& GetClipBorder() const;
  24566. const IntRect& GetLayoutBorder() const;
  24567. const IntVector2& GetChildOffset() const;
  24568. const IntVector2& GetMaxOffset() const;
  24569. const IntVector2& GetMaxSize() const;
  24570. const IntVector2& GetMinOffset() const;
  24571. const IntVector2& GetMinSize() const;
  24572. const IntVector2& GetPosition() const;
  24573. const IntVector2& GetScreenPosition() const;
  24574. const IntVector2& GetSize() const;
  24575. const IntVector2& GetViewPosition() const;
  24576. bool IsChildOf(UIElement) const;
  24577. bool IsEditable() const;
  24578. bool IsElementEventSender() const;
  24579. bool IsEnabled() const;
  24580. bool IsEnabledSelf() const;
  24581. bool IsFixedHeight() const;
  24582. bool IsFixedSize() const;
  24583. bool IsFixedWidth() const;
  24584. bool IsHovering() const;
  24585. bool IsInside(IntVector2, bool);
  24586. bool IsInsideCombined(IntVector2, bool);
  24587. bool IsInstanceOf(StringHash) const;
  24588. bool IsInternal() const;
  24589. bool IsSelected() const;
  24590. bool IsTemporary() const;
  24591. bool IsVisible() const;
  24592. bool IsVisibleEffective() const;
  24593. bool IsWheelHandler() const;
  24594. bool IsWithinScissor(const IntRect&);
  24595. operator ListView() const;
  24596. bool Load(Deserializer&);
  24597. UIElement LoadChildXML(XMLFile, XMLFile);
  24598. UIElement LoadChildXML(const XMLElement&, XMLFile);
  24599. bool LoadJSON(const JSONValue&);
  24600. bool LoadXML(Deserializer&);
  24601. bool LoadXML(File);
  24602. bool LoadXML(VectorBuffer&);
  24603. bool LoadXML(XMLFile, XMLFile);
  24604. bool LoadXML(const XMLElement&);
  24605. bool LoadXML(const XMLElement&, XMLFile);
  24606. void MarkNetworkUpdate();
  24607. operator Object() const;
  24608. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24609. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  24610. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24611. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24612. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24613. bool OnDragDropFinish(UIElement);
  24614. bool OnDragDropTest(UIElement);
  24615. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24616. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24617. void OnEvent(Object, StringHash, VariantMap&);
  24618. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  24619. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24620. void OnIndentSet();
  24621. void OnKey(uint, uint, uint);
  24622. void OnPositionSet(const IntVector2&);
  24623. void OnResize(const IntVector2&, const IntVector2&);
  24624. void OnSetAttribute(const AttributeInfo&, const Variant&);
  24625. void OnSetEditable();
  24626. void OnTextInput(const String&);
  24627. void OnWheel(int, uint, uint);
  24628. bool ReadDeltaUpdate(Deserializer&);
  24629. bool ReadLatestDataUpdate(Deserializer&);
  24630. operator RefCounted() const;
  24631. int Refs() const;
  24632. void Remove();
  24633. void RemoveAllChildren();
  24634. void RemoveAllTags();
  24635. void RemoveAttributeAnimation(const String&);
  24636. void RemoveChild(UIElement, uint = 0);
  24637. void RemoveChild(uint);
  24638. void RemoveChildAtIndex(uint);
  24639. void RemoveInstanceDefault();
  24640. void RemoveObjectAnimation();
  24641. bool RemoveTag(const String&);
  24642. void ResetDeepEnabled();
  24643. void ResetToDefault();
  24644. bool Save(Serializer&) const;
  24645. bool SaveDefaultAttributes() const;
  24646. bool SaveJSON(JSONValue&) const;
  24647. bool SaveXML(File, const String& indentation = "\t");
  24648. bool SaveXML(Serializer&, const String& = "\t") const;
  24649. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  24650. bool SaveXML(XMLElement&) const;
  24651. IntVector2 ScreenToElement(const IntVector2&);
  24652. void SendEvent(StringHash);
  24653. void SendEvent(StringHash, VariantMap&);
  24654. operator Serializable() const;
  24655. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  24656. void SetAnimationEnabled(bool);
  24657. void SetAnimationTime(float);
  24658. bool SetAttribute(const String&, const Variant&);
  24659. bool SetAttribute(uint, const Variant&);
  24660. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  24661. void SetAttributeAnimationSpeed(const String&, float);
  24662. void SetAttributeAnimationTime(const String&, float);
  24663. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  24664. void SetAutoDisableChildren(bool);
  24665. void SetAutoDisableThreshold(float);
  24666. void SetBlockEvents(bool);
  24667. void SetBringToBack(bool);
  24668. void SetBringToFront(bool);
  24669. void SetChildOffset(const IntVector2&);
  24670. void SetClipBorder(const IntRect&);
  24671. void SetClipChildren(bool);
  24672. void SetColor(Corner, const Color&);
  24673. void SetColor(const Color&);
  24674. void SetContentElement(UIElement);
  24675. void SetDeepEnabled(bool);
  24676. void SetDefaultStyle(XMLFile);
  24677. void SetDragDropMode(uint);
  24678. void SetEditable(bool);
  24679. void SetElementEventSender(bool);
  24680. void SetEnableAnchor(bool);
  24681. void SetEnabled(bool);
  24682. void SetEnabledRecursive(bool);
  24683. void SetFixedHeight(int);
  24684. void SetFixedSize(const IntVector2&);
  24685. void SetFixedSize(int, int);
  24686. void SetFixedWidth(int);
  24687. void SetFocus(bool);
  24688. void SetFocusMode(FocusMode);
  24689. void SetGlobalVar(StringHash, const Variant&);
  24690. void SetHeight(int);
  24691. void SetHorizontalAlignment(HorizontalAlignment);
  24692. void SetHorizontalScrollBarVisible(bool);
  24693. void SetHovering(bool);
  24694. void SetIndent(int);
  24695. void SetIndentSpacing(int);
  24696. void SetInstanceDefault(bool);
  24697. void SetInterceptNetworkUpdate(const String&, bool);
  24698. void SetInternal(bool);
  24699. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  24700. void SetLayoutBorder(const IntRect&);
  24701. void SetLayoutFlexScale(const Vector2&);
  24702. void SetLayoutMode(LayoutMode);
  24703. void SetLayoutSpacing(int);
  24704. void SetMaxAnchor(const Vector2&);
  24705. void SetMaxAnchor(float, float);
  24706. void SetMaxHeight(int);
  24707. void SetMaxOffset(const IntVector2&);
  24708. void SetMaxSize(const IntVector2&);
  24709. void SetMaxSize(int, int);
  24710. void SetMaxWidth(int);
  24711. void SetMinAnchor(const Vector2&);
  24712. void SetMinAnchor(float, float);
  24713. void SetMinHeight(int);
  24714. void SetMinOffset(const IntVector2&);
  24715. void SetMinSize(const IntVector2&);
  24716. void SetMinSize(int, int);
  24717. void SetMinWidth(int);
  24718. void SetName(const String&);
  24719. void SetObjectAnimation(ObjectAnimation);
  24720. void SetObjectAnimationAttr(const ResourceRef&);
  24721. void SetOpacity(float);
  24722. void SetPageStep(float);
  24723. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  24724. void SetPivot(const Vector2&);
  24725. void SetPivot(float, float);
  24726. void SetPosition(const IntVector2&);
  24727. void SetPosition(int, int);
  24728. void SetPriority(int);
  24729. void SetRenderTexture(Texture2D);
  24730. void SetScrollBarsAutoVisible(bool);
  24731. void SetScrollBarsVisible(bool, bool);
  24732. void SetScrollDeceleration(float);
  24733. void SetScrollSnapEpsilon(float);
  24734. void SetScrollStep(float);
  24735. void SetSelected(bool);
  24736. void SetSize(const IntVector2&);
  24737. void SetSize(int, int);
  24738. void SetSortChildren(bool);
  24739. bool SetStyle(const String&, XMLFile = null);
  24740. bool SetStyle(const XMLElement&);
  24741. bool SetStyleAuto(XMLFile = null);
  24742. void SetTags(Array<String>);
  24743. void SetTemporary(bool);
  24744. void SetTraversalMode(TraversalMode);
  24745. void SetUseDerivedOpacity(bool);
  24746. void SetVar(StringHash, const Variant&);
  24747. void SetVerticalAlignment(VerticalAlignment);
  24748. void SetVerticalScrollBarVisible(bool);
  24749. void SetViewPosition(const IntVector2&);
  24750. void SetViewPosition(int, int);
  24751. void SetViewPositionAttr(const IntVector2&);
  24752. void SetVisible(bool);
  24753. void SetWidth(int);
  24754. void SortChildren();
  24755. const String& GetAppliedStyle() const;
  24756. const String& GetCategory() const;
  24757. const String& GetName() const;
  24758. const String& GetTypeName() const;
  24759. operator UIElement() const;
  24760. void UnsubscribeFromAllEvents();
  24761. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  24762. void UnsubscribeFromEvent(Object, StringHash);
  24763. void UnsubscribeFromEvent(StringHash);
  24764. void UnsubscribeFromEvents(Object);
  24765. void Update(float);
  24766. void UpdateLayout();
  24767. const Variant& GetGlobalVar(StringHash) const;
  24768. const Variant& GetVar(const StringHash&) const;
  24769. const VariantMap& GetGlobalVars() const;
  24770. const VariantMap& GetVars() const;
  24771. const Vector2& GetLayoutFlexScale() const;
  24772. const Vector2& GetMaxAnchor() const;
  24773. const Vector2& GetMinAnchor() const;
  24774. const Vector2& GetPivot() const;
  24775. int WeakRefs() const;
  24776. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  24777. void WriteInitialDeltaUpdate(Serializer&, uint8);
  24778. void WriteLatestDataUpdate(Serializer&, uint8);
  24779. operator const Animatable() const;
  24780. operator const ListView() const;
  24781. operator const Object() const;
  24782. operator const RefCounted() const;
  24783. operator const Serializable() const;
  24784. operator const UIElement() const;
  24785. // Properties:
  24786. bool animationEnabled;
  24787. /* readonly */
  24788. Array<Variant> attributeDefaults;
  24789. /* readonly */
  24790. Array<AttributeInfo> attributeInfos;
  24791. Array<Variant> attributes;
  24792. bool autoDisableChildren;
  24793. float autoDisableThreshold;
  24794. bool bringToBack;
  24795. bool bringToFront;
  24796. /* readonly */
  24797. String category;
  24798. /* readonly */
  24799. IntVector2 childOffset;
  24800. /* readonly */
  24801. Array<UIElement> children;
  24802. IntRect clipBorder;
  24803. bool clipChildren;
  24804. /* writeonly */
  24805. Color color;
  24806. /* readonly */
  24807. bool colorGradient;
  24808. Array<Color> colors;
  24809. /* readonly */
  24810. IntRect combinedScreenRect;
  24811. UIElement contentElement;
  24812. XMLFile defaultStyle;
  24813. /* readonly */
  24814. float derivedOpacity;
  24815. /* readonly */
  24816. uint dragButtonCombo;
  24817. /* readonly */
  24818. uint dragButtonCount;
  24819. uint dragDropMode;
  24820. bool editable;
  24821. bool elementEventSender;
  24822. bool enableAnchor;
  24823. bool enabled;
  24824. /* readonly */
  24825. bool enabledSelf;
  24826. /* readonly */
  24827. bool fixedHeight;
  24828. /* readonly */
  24829. bool fixedSize;
  24830. /* readonly */
  24831. bool fixedWidth;
  24832. bool focus;
  24833. FocusMode focusMode;
  24834. Array<Variant> globalVar;
  24835. /* readonly */
  24836. VariantMap globalVars;
  24837. int height;
  24838. HorizontalAlignment horizontalAlignment;
  24839. /* readonly */
  24840. ScrollBar horizontalScrollBar;
  24841. bool horizontalScrollBarVisible;
  24842. /* readonly */
  24843. bool hovering;
  24844. int indent;
  24845. int indentSpacing;
  24846. /* readonly */
  24847. int indentWidth;
  24848. bool internal;
  24849. IntRect layoutBorder;
  24850. Vector2 layoutFlexScale;
  24851. LayoutMode layoutMode;
  24852. int layoutSpacing;
  24853. Vector2 maxAnchor;
  24854. int maxHeight;
  24855. IntVector2 maxOffset;
  24856. IntVector2 maxSize;
  24857. int maxWidth;
  24858. Vector2 minAnchor;
  24859. int minHeight;
  24860. IntVector2 minOffset;
  24861. IntVector2 minSize;
  24862. int minWidth;
  24863. String name;
  24864. /* readonly */
  24865. uint numAllChildren;
  24866. /* readonly */
  24867. uint numAttributes;
  24868. /* readonly */
  24869. uint numChildren;
  24870. ObjectAnimation objectAnimation;
  24871. float opacity;
  24872. float pageStep;
  24873. UIElement parent;
  24874. Vector2 pivot;
  24875. IntVector2 position;
  24876. int priority;
  24877. /* readonly */
  24878. int refs;
  24879. /* readonly */
  24880. UIElement root;
  24881. /* readonly */
  24882. IntVector2 screenPosition;
  24883. bool scrollBarsAutoVisible;
  24884. float scrollDeceleration;
  24885. /* readonly */
  24886. BorderImage scrollPanel;
  24887. float scrollSnapEpsilon;
  24888. float scrollStep;
  24889. bool selected;
  24890. IntVector2 size;
  24891. bool sortChildren;
  24892. String style;
  24893. /* readonly */
  24894. Array<String> tags;
  24895. bool temporary;
  24896. TraversalMode traversalMode;
  24897. /* readonly */
  24898. StringHash type;
  24899. /* readonly */
  24900. String typeName;
  24901. bool useDerivedOpacity;
  24902. /* readonly */
  24903. VariantMap vars;
  24904. VerticalAlignment verticalAlignment;
  24905. /* readonly */
  24906. ScrollBar verticalScrollBar;
  24907. bool verticalScrollBarVisible;
  24908. IntVector2 viewPosition;
  24909. bool visible;
  24910. /* readonly */
  24911. bool visibleEffective;
  24912. /* readonly */
  24913. int weakRefs;
  24914. int width;
  24915. };
  24916. class Serializable
  24917. {
  24918. public:
  24919. Serializable();
  24920. // Methods:
  24921. void AllocateNetworkState();
  24922. operator Animatable() const;
  24923. operator AnimatedModel() const;
  24924. operator AnimatedSprite2D() const;
  24925. operator AnimationController() const;
  24926. void ApplyAttributes();
  24927. operator BillboardSet() const;
  24928. operator BorderImage() const;
  24929. operator Button() const;
  24930. operator Camera() const;
  24931. operator CheckBox() const;
  24932. operator CollisionBox2D() const;
  24933. operator CollisionChain2D() const;
  24934. operator CollisionCircle2D() const;
  24935. operator CollisionEdge2D() const;
  24936. operator CollisionPolygon2D() const;
  24937. operator CollisionShape2D() const;
  24938. operator CollisionShape() const;
  24939. operator Component() const;
  24940. operator Constraint2D() const;
  24941. operator Constraint() const;
  24942. operator ConstraintDistance2D() const;
  24943. operator ConstraintFriction2D() const;
  24944. operator ConstraintGear2D() const;
  24945. operator ConstraintMotor2D() const;
  24946. operator ConstraintMouse2D() const;
  24947. operator ConstraintPrismatic2D() const;
  24948. operator ConstraintPulley2D() const;
  24949. operator ConstraintRevolute2D() const;
  24950. operator ConstraintWeld2D() const;
  24951. operator ConstraintWheel2D() const;
  24952. operator CrowdAgent() const;
  24953. operator CrowdManager() const;
  24954. operator Cursor() const;
  24955. operator CustomGeometry() const;
  24956. operator DebugRenderer() const;
  24957. operator DecalSet() const;
  24958. operator Drawable2D() const;
  24959. operator Drawable() const;
  24960. operator DropDownList() const;
  24961. operator DynamicNavigationMesh() const;
  24962. Variant GetAttribute(const String&) const;
  24963. Variant GetAttribute(uint) const;
  24964. Variant GetAttributeDefault(const String&) const;
  24965. Variant GetAttributeDefault(uint) const;
  24966. bool GetBlockEvents() const;
  24967. VariantMap& GetEventDataMap() const;
  24968. Object GetEventSender() const;
  24969. bool GetInterceptNetworkUpdate(const String&) const;
  24970. uint GetNumAttributes() const;
  24971. uint GetNumNetworkAttributes() const;
  24972. Object GetSubsystem(StringHash) const;
  24973. StringHash GetType() const;
  24974. bool HasEventHandlers() const;
  24975. bool HasSubscribedToEvent(Object, StringHash) const;
  24976. bool HasSubscribedToEvent(StringHash) const;
  24977. operator IKConstraint() const;
  24978. operator IKEffector() const;
  24979. operator IKSolver() const;
  24980. bool IsInstanceOf(StringHash) const;
  24981. bool IsTemporary() const;
  24982. operator Light() const;
  24983. operator LineEdit() const;
  24984. operator ListView() const;
  24985. bool Load(Deserializer&);
  24986. bool LoadJSON(const JSONValue&);
  24987. bool LoadXML(const XMLElement&);
  24988. operator LogicComponent() const;
  24989. void MarkNetworkUpdate();
  24990. operator Menu() const;
  24991. operator NavArea() const;
  24992. operator Navigable() const;
  24993. operator NavigationMesh() const;
  24994. operator NetworkPriority() const;
  24995. operator Node() const;
  24996. operator Object() const;
  24997. operator Obstacle() const;
  24998. operator Octree() const;
  24999. operator OffMeshConnection() const;
  25000. void OnEvent(Object, StringHash, VariantMap&);
  25001. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  25002. void OnSetAttribute(const AttributeInfo&, const Variant&);
  25003. operator ParticleEmitter2D() const;
  25004. operator ParticleEmitter() const;
  25005. operator PhysicsWorld2D() const;
  25006. operator PhysicsWorld() const;
  25007. operator ProgressBar() const;
  25008. operator RaycastVehicle() const;
  25009. bool ReadDeltaUpdate(Deserializer&);
  25010. bool ReadLatestDataUpdate(Deserializer&);
  25011. operator RefCounted() const;
  25012. int Refs() const;
  25013. void RemoveInstanceDefault();
  25014. operator Renderer2D() const;
  25015. void ResetToDefault();
  25016. operator RibbonTrail() const;
  25017. operator RigidBody2D() const;
  25018. operator RigidBody() const;
  25019. bool Save(Serializer&) const;
  25020. bool SaveDefaultAttributes() const;
  25021. bool SaveJSON(JSONValue&) const;
  25022. bool SaveXML(XMLElement&) const;
  25023. operator Scene() const;
  25024. operator ScriptInstance() const;
  25025. operator ScrollBar() const;
  25026. operator ScrollView() const;
  25027. void SendEvent(StringHash);
  25028. void SendEvent(StringHash, VariantMap&);
  25029. bool SetAttribute(const String&, const Variant&);
  25030. bool SetAttribute(uint, const Variant&);
  25031. void SetBlockEvents(bool);
  25032. void SetGlobalVar(StringHash, const Variant&);
  25033. void SetInstanceDefault(bool);
  25034. void SetInterceptNetworkUpdate(const String&, bool);
  25035. void SetTemporary(bool);
  25036. operator Skybox() const;
  25037. operator Slider() const;
  25038. operator SmoothedTransform() const;
  25039. operator SoundListener() const;
  25040. operator SoundSource3D() const;
  25041. operator SoundSource() const;
  25042. operator SplinePath() const;
  25043. operator Sprite() const;
  25044. operator StaticModel() const;
  25045. operator StaticModelGroup() const;
  25046. operator StaticSprite2D() const;
  25047. operator StretchableSprite2D() const;
  25048. const String& GetCategory() const;
  25049. const String& GetTypeName() const;
  25050. operator Terrain() const;
  25051. operator TerrainPatch() const;
  25052. operator Text3D() const;
  25053. operator Text() const;
  25054. operator TileMap2D() const;
  25055. operator TileMapLayer2D() const;
  25056. operator ToolTip() const;
  25057. operator UIComponent() const;
  25058. operator UIElement() const;
  25059. operator UISelectable() const;
  25060. operator UnknownComponent() const;
  25061. void UnsubscribeFromAllEvents();
  25062. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25063. void UnsubscribeFromEvent(Object, StringHash);
  25064. void UnsubscribeFromEvent(StringHash);
  25065. void UnsubscribeFromEvents(Object);
  25066. const Variant& GetGlobalVar(StringHash) const;
  25067. const VariantMap& GetGlobalVars() const;
  25068. operator View3D() const;
  25069. int WeakRefs() const;
  25070. operator Window() const;
  25071. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  25072. void WriteInitialDeltaUpdate(Serializer&, uint8);
  25073. void WriteLatestDataUpdate(Serializer&, uint8);
  25074. operator Zone() const;
  25075. operator const Animatable() const;
  25076. operator const AnimatedModel() const;
  25077. operator const AnimatedSprite2D() const;
  25078. operator const AnimationController() const;
  25079. operator const BillboardSet() const;
  25080. operator const BorderImage() const;
  25081. operator const Button() const;
  25082. operator const Camera() const;
  25083. operator const CheckBox() const;
  25084. operator const CollisionBox2D() const;
  25085. operator const CollisionChain2D() const;
  25086. operator const CollisionCircle2D() const;
  25087. operator const CollisionEdge2D() const;
  25088. operator const CollisionPolygon2D() const;
  25089. operator const CollisionShape2D() const;
  25090. operator const CollisionShape() const;
  25091. operator const Component() const;
  25092. operator const Constraint2D() const;
  25093. operator const Constraint() const;
  25094. operator const ConstraintDistance2D() const;
  25095. operator const ConstraintFriction2D() const;
  25096. operator const ConstraintGear2D() const;
  25097. operator const ConstraintMotor2D() const;
  25098. operator const ConstraintMouse2D() const;
  25099. operator const ConstraintPrismatic2D() const;
  25100. operator const ConstraintPulley2D() const;
  25101. operator const ConstraintRevolute2D() const;
  25102. operator const ConstraintWeld2D() const;
  25103. operator const ConstraintWheel2D() const;
  25104. operator const CrowdAgent() const;
  25105. operator const CrowdManager() const;
  25106. operator const Cursor() const;
  25107. operator const CustomGeometry() const;
  25108. operator const DebugRenderer() const;
  25109. operator const DecalSet() const;
  25110. operator const Drawable2D() const;
  25111. operator const Drawable() const;
  25112. operator const DropDownList() const;
  25113. operator const DynamicNavigationMesh() const;
  25114. operator const IKConstraint() const;
  25115. operator const IKEffector() const;
  25116. operator const IKSolver() const;
  25117. operator const Light() const;
  25118. operator const LineEdit() const;
  25119. operator const ListView() const;
  25120. operator const LogicComponent() const;
  25121. operator const Menu() const;
  25122. operator const NavArea() const;
  25123. operator const Navigable() const;
  25124. operator const NavigationMesh() const;
  25125. operator const NetworkPriority() const;
  25126. operator const Node() const;
  25127. operator const Object() const;
  25128. operator const Obstacle() const;
  25129. operator const Octree() const;
  25130. operator const OffMeshConnection() const;
  25131. operator const ParticleEmitter2D() const;
  25132. operator const ParticleEmitter() const;
  25133. operator const PhysicsWorld2D() const;
  25134. operator const PhysicsWorld() const;
  25135. operator const ProgressBar() const;
  25136. operator const RaycastVehicle() const;
  25137. operator const RefCounted() const;
  25138. operator const Renderer2D() const;
  25139. operator const RibbonTrail() const;
  25140. operator const RigidBody2D() const;
  25141. operator const RigidBody() const;
  25142. operator const Scene() const;
  25143. operator const ScriptInstance() const;
  25144. operator const ScrollBar() const;
  25145. operator const ScrollView() const;
  25146. operator const Skybox() const;
  25147. operator const Slider() const;
  25148. operator const SmoothedTransform() const;
  25149. operator const SoundListener() const;
  25150. operator const SoundSource3D() const;
  25151. operator const SoundSource() const;
  25152. operator const SplinePath() const;
  25153. operator const Sprite() const;
  25154. operator const StaticModel() const;
  25155. operator const StaticModelGroup() const;
  25156. operator const StaticSprite2D() const;
  25157. operator const StretchableSprite2D() const;
  25158. operator const Terrain() const;
  25159. operator const TerrainPatch() const;
  25160. operator const Text3D() const;
  25161. operator const Text() const;
  25162. operator const TileMap2D() const;
  25163. operator const TileMapLayer2D() const;
  25164. operator const ToolTip() const;
  25165. operator const UIComponent() const;
  25166. operator const UIElement() const;
  25167. operator const UISelectable() const;
  25168. operator const UnknownComponent() const;
  25169. operator const View3D() const;
  25170. operator const Window() const;
  25171. operator const Zone() const;
  25172. // Properties:
  25173. /* readonly */
  25174. Array<Variant> attributeDefaults;
  25175. /* readonly */
  25176. Array<AttributeInfo> attributeInfos;
  25177. Array<Variant> attributes;
  25178. /* readonly */
  25179. String category;
  25180. Array<Variant> globalVar;
  25181. /* readonly */
  25182. VariantMap globalVars;
  25183. /* readonly */
  25184. uint numAttributes;
  25185. /* readonly */
  25186. int refs;
  25187. bool temporary;
  25188. /* readonly */
  25189. StringHash type;
  25190. /* readonly */
  25191. String typeName;
  25192. /* readonly */
  25193. int weakRefs;
  25194. };
  25195. class Serializer
  25196. {
  25197. public:
  25198. // Methods:
  25199. Serializer& operator=(const Serializer&);
  25200. operator File() const;
  25201. operator NamedPipe() const;
  25202. uint Write(Array<uint8>);
  25203. bool WriteBool(bool);
  25204. bool WriteBoundingBox(const BoundingBox&);
  25205. bool WriteByte(int8);
  25206. bool WriteColor(const Color&);
  25207. bool WriteDouble(double);
  25208. bool WriteFileID(const String&);
  25209. bool WriteFloat(float);
  25210. bool WriteInt(int);
  25211. bool WriteInt64(int64);
  25212. bool WriteIntRect(const IntRect&);
  25213. bool WriteIntVector2(const IntVector2&);
  25214. bool WriteIntVector3(const IntVector3&);
  25215. bool WriteLine(const String&);
  25216. bool WriteMatrix3(const Matrix3&);
  25217. bool WriteMatrix3x4(const Matrix3x4&);
  25218. bool WriteMatrix4(const Matrix4&);
  25219. bool WriteNetID(uint);
  25220. bool WritePackedQuaternion(const Quaternion&);
  25221. bool WritePackedVector3(const Vector3&, float);
  25222. bool WriteQuaternion(const Quaternion&);
  25223. bool WriteRect(const Rect&);
  25224. bool WriteResourceRef(const ResourceRef&);
  25225. bool WriteResourceRefList(const ResourceRefList&);
  25226. bool WriteShort(int16);
  25227. bool WriteString(const String&);
  25228. bool WriteStringHash(const StringHash&);
  25229. bool WriteStringVector(Array<String>);
  25230. bool WriteUByte(uint8);
  25231. bool WriteUInt(uint);
  25232. bool WriteUInt64(uint64);
  25233. bool WriteUShort(uint16);
  25234. bool WriteVLE(uint);
  25235. bool WriteVariant(const Variant&);
  25236. bool WriteVariantData(const Variant&);
  25237. bool WriteVariantMap(const VariantMap&);
  25238. bool WriteVector2(const Vector2&);
  25239. bool WriteVector3(const Vector3&);
  25240. bool WriteVector4(const Vector4&);
  25241. bool WriteVectorBuffer(const VectorBuffer&);
  25242. operator const File() const;
  25243. operator const NamedPipe() const;
  25244. };
  25245. class Shader
  25246. {
  25247. public:
  25248. Shader();
  25249. // Methods:
  25250. bool BeginLoad(Deserializer&);
  25251. bool EndLoad();
  25252. AsyncLoadState GetAsyncLoadState() const;
  25253. bool GetBlockEvents() const;
  25254. VariantMap& GetEventDataMap() const;
  25255. Object GetEventSender() const;
  25256. uint GetMemoryUse() const;
  25257. StringHash GetNameHash() const;
  25258. Object GetSubsystem(StringHash) const;
  25259. uint GetTimeStamp() const;
  25260. StringHash GetType() const;
  25261. uint GetUseTimer();
  25262. ShaderVariation GetVariation(ShaderType, const String&);
  25263. bool HasEventHandlers() const;
  25264. bool HasSubscribedToEvent(Object, StringHash) const;
  25265. bool HasSubscribedToEvent(StringHash) const;
  25266. bool IsInstanceOf(StringHash) const;
  25267. bool Load(Deserializer&);
  25268. bool Load(File);
  25269. bool Load(VectorBuffer&);
  25270. bool Load(const String&);
  25271. bool LoadFile(const String&);
  25272. operator Object() const;
  25273. void OnEvent(Object, StringHash, VariantMap&);
  25274. operator RefCounted() const;
  25275. int Refs() const;
  25276. void ResetUseTimer();
  25277. operator Resource() const;
  25278. bool Save(File) const;
  25279. bool Save(Serializer&) const;
  25280. bool Save(VectorBuffer&) const;
  25281. bool Save(const String&) const;
  25282. bool SaveFile(const String&) const;
  25283. void SendEvent(StringHash);
  25284. void SendEvent(StringHash, VariantMap&);
  25285. void SetAsyncLoadState(AsyncLoadState);
  25286. void SetBlockEvents(bool);
  25287. void SetGlobalVar(StringHash, const Variant&);
  25288. void SetMemoryUse(uint);
  25289. void SetName(const String&);
  25290. const String& GetCategory() const;
  25291. const String& GetName() const;
  25292. const String& GetSourceCode(ShaderType) const;
  25293. const String& GetTypeName() const;
  25294. void UnsubscribeFromAllEvents();
  25295. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25296. void UnsubscribeFromEvent(Object, StringHash);
  25297. void UnsubscribeFromEvent(StringHash);
  25298. void UnsubscribeFromEvents(Object);
  25299. const Variant& GetGlobalVar(StringHash) const;
  25300. const VariantMap& GetGlobalVars() const;
  25301. int WeakRefs() const;
  25302. operator const Object() const;
  25303. operator const RefCounted() const;
  25304. operator const Resource() const;
  25305. // Properties:
  25306. /* readonly */
  25307. String category;
  25308. Array<Variant> globalVar;
  25309. /* readonly */
  25310. VariantMap globalVars;
  25311. /* readonly */
  25312. uint memoryUse;
  25313. String name;
  25314. /* readonly */
  25315. int refs;
  25316. /* readonly */
  25317. StringHash type;
  25318. /* readonly */
  25319. String typeName;
  25320. /* readonly */
  25321. uint useTimer;
  25322. /* readonly */
  25323. int weakRefs;
  25324. };
  25325. class ShaderParameter
  25326. {
  25327. public:
  25328. ~ShaderParameter();
  25329. ShaderParameter();
  25330. ShaderParameter(const String&in, uint, int);
  25331. ShaderParameter(ShaderType, const String&in, uint, uint, uint);
  25332. ShaderParameter(ShaderType, const String&in, uint, uint);
  25333. // Methods:
  25334. ShaderParameter& operator=(const ShaderParameter&);
  25335. // Properties:
  25336. uint buffer;
  25337. uint glType;
  25338. int location;
  25339. String name;
  25340. uint offset;
  25341. uint regCount;
  25342. uint register;
  25343. uint size;
  25344. ShaderType type;
  25345. };
  25346. class ShaderParameterAnimationInfo
  25347. {
  25348. public:
  25349. ShaderParameterAnimationInfo(Material&, const String&in, ValueAnimation&, WrapMode, float);
  25350. ShaderParameterAnimationInfo(const ShaderParameterAnimationInfo&in);
  25351. // Methods:
  25352. ValueAnimation GetAnimation() const;
  25353. float GetSpeed() const;
  25354. Object GetTarget() const;
  25355. float GetTime() const;
  25356. WrapMode GetWrapMode() const;
  25357. operator RefCounted() const;
  25358. int Refs() const;
  25359. void SetSpeed(float);
  25360. bool SetTime(float);
  25361. void SetWrapMode(WrapMode);
  25362. const String& GetName() const;
  25363. bool Update(float);
  25364. operator ValueAnimationInfo() const;
  25365. int WeakRefs() const;
  25366. operator const RefCounted() const;
  25367. operator const ValueAnimationInfo() const;
  25368. // Properties:
  25369. /* readonly */
  25370. int refs;
  25371. /* readonly */
  25372. int weakRefs;
  25373. };
  25374. class ShaderPrecache
  25375. {
  25376. public:
  25377. ShaderPrecache(const String&in);
  25378. // Methods:
  25379. bool GetBlockEvents() const;
  25380. VariantMap& GetEventDataMap() const;
  25381. Object GetEventSender() const;
  25382. Object GetSubsystem(StringHash) const;
  25383. StringHash GetType() const;
  25384. bool HasEventHandlers() const;
  25385. bool HasSubscribedToEvent(Object, StringHash) const;
  25386. bool HasSubscribedToEvent(StringHash) const;
  25387. bool IsInstanceOf(StringHash) const;
  25388. operator Object() const;
  25389. void OnEvent(Object, StringHash, VariantMap&);
  25390. operator RefCounted() const;
  25391. int Refs() const;
  25392. void SendEvent(StringHash);
  25393. void SendEvent(StringHash, VariantMap&);
  25394. void SetBlockEvents(bool);
  25395. void SetGlobalVar(StringHash, const Variant&);
  25396. void StoreShaders(ShaderVariation, ShaderVariation);
  25397. const String& GetCategory() const;
  25398. const String& GetTypeName() const;
  25399. void UnsubscribeFromAllEvents();
  25400. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25401. void UnsubscribeFromEvent(Object, StringHash);
  25402. void UnsubscribeFromEvent(StringHash);
  25403. void UnsubscribeFromEvents(Object);
  25404. const Variant& GetGlobalVar(StringHash) const;
  25405. const VariantMap& GetGlobalVars() const;
  25406. int WeakRefs() const;
  25407. operator const Object() const;
  25408. operator const RefCounted() const;
  25409. // Properties:
  25410. /* readonly */
  25411. String category;
  25412. Array<Variant> globalVar;
  25413. /* readonly */
  25414. VariantMap globalVars;
  25415. /* readonly */
  25416. int refs;
  25417. /* readonly */
  25418. StringHash type;
  25419. /* readonly */
  25420. String typeName;
  25421. /* readonly */
  25422. int weakRefs;
  25423. };
  25424. class ShaderVariation
  25425. {
  25426. public:
  25427. ShaderVariation(Shader&, ShaderType);
  25428. // Methods:
  25429. void ClearDataLost();
  25430. bool Create();
  25431. uint64 GetElementHash() const;
  25432. String GetFullName() const;
  25433. uint GetGPUObjectName() const;
  25434. Graphics GetGraphics() const;
  25435. Shader GetOwner() const;
  25436. ShaderType GetShaderType() const;
  25437. bool HasParameter(StringHash) const;
  25438. bool HasPendingData() const;
  25439. bool HasTextureUnit(TextureUnit) const;
  25440. bool IsDataLost() const;
  25441. void OnDeviceLost();
  25442. void OnDeviceReset();
  25443. operator RefCounted() const;
  25444. int Refs() const;
  25445. void Release();
  25446. void SetDefines(const String&);
  25447. void SetName(const String&);
  25448. const String& GetCompilerOutput() const;
  25449. const String& GetDefines() const;
  25450. const String& GetDefinesClipPlane();
  25451. const String& GetName() const;
  25452. int WeakRefs() const;
  25453. operator const RefCounted() const;
  25454. // Properties:
  25455. /* readonly */
  25456. bool dataLost;
  25457. /* readonly */
  25458. int refs;
  25459. /* readonly */
  25460. int weakRefs;
  25461. };
  25462. class ShadowBatchQueue
  25463. {
  25464. public:
  25465. ~ShadowBatchQueue();
  25466. ShadowBatchQueue();
  25467. // Methods:
  25468. ShadowBatchQueue& operator=(const ShadowBatchQueue&);
  25469. // Properties:
  25470. float farSplit;
  25471. float nearSplit;
  25472. BatchQueue shadowBatches;
  25473. IntRect shadowViewport;
  25474. };
  25475. class SimpleNavBuildData
  25476. {
  25477. public:
  25478. ~SimpleNavBuildData();
  25479. SimpleNavBuildData();
  25480. // Methods:
  25481. SimpleNavBuildData& operator=(const SimpleNavBuildData&);
  25482. // Properties:
  25483. BoundingBox worldBoundingBox;
  25484. };
  25485. class Skeleton
  25486. {
  25487. public:
  25488. // Methods:
  25489. Skeleton& operator=(const Skeleton&);
  25490. void ClearBones();
  25491. void Define(const Skeleton&);
  25492. Bone GetBone(const String&);
  25493. Bone GetBone(const StringHash&);
  25494. Bone GetBone(uint);
  25495. uint GetBoneIndex(Bone) const;
  25496. uint GetBoneIndex(const String&) const;
  25497. uint GetBoneIndex(const StringHash&) const;
  25498. Bone GetBoneParent(Bone);
  25499. uint GetNumBones() const;
  25500. Bone GetRootBone();
  25501. bool Load(Deserializer&);
  25502. void Reset();
  25503. void ResetSilent();
  25504. bool Save(Serializer&) const;
  25505. void SetRootBoneIndex(uint);
  25506. // Properties:
  25507. /* readonly */
  25508. Array<Bone> bones;
  25509. /* readonly */
  25510. uint numBones;
  25511. /* readonly */
  25512. Bone rootBone;
  25513. };
  25514. class Skybox
  25515. {
  25516. public:
  25517. Skybox();
  25518. // Methods:
  25519. void AddLight(Light);
  25520. void AddVertexLight(Light);
  25521. void AllocateNetworkState();
  25522. operator Animatable() const;
  25523. void ApplyAttributes();
  25524. void ApplyMaterialList(const String& = String :: EMPTY);
  25525. const BoundingBox& GetBoundingBox() const;
  25526. const BoundingBox& GetWorldBoundingBox();
  25527. void CleanupConnection(Connection);
  25528. operator Component() const;
  25529. void DrawDebugGeometry(DebugRenderer, bool);
  25530. bool DrawOcclusion(OcclusionBuffer);
  25531. operator Drawable() const;
  25532. bool GetAnimationEnabled() const;
  25533. Variant GetAttribute(const String&) const;
  25534. Variant GetAttribute(uint) const;
  25535. ValueAnimation GetAttributeAnimation(const String&) const;
  25536. float GetAttributeAnimationSpeed(const String&) const;
  25537. float GetAttributeAnimationTime(const String&) const;
  25538. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  25539. Variant GetAttributeDefault(const String&) const;
  25540. Variant GetAttributeDefault(uint) const;
  25541. bool GetBlockEvents() const;
  25542. bool GetCastShadows() const;
  25543. Component GetComponent(StringHash) const;
  25544. float GetDistance() const;
  25545. float GetDrawDistance() const;
  25546. uint8 GetDrawableFlags() const;
  25547. VariantMap& GetEventDataMap() const;
  25548. Object GetEventSender() const;
  25549. Light GetFirstLight() const;
  25550. uint GetID() const;
  25551. bool GetInterceptNetworkUpdate(const String&) const;
  25552. uint GetLightMask() const;
  25553. Array<Light> GetLights() const;
  25554. float GetLodBias() const;
  25555. float GetLodDistance() const;
  25556. Geometry GetLodGeometry(uint, uint);
  25557. Material GetMaterial() const;
  25558. Material GetMaterial(uint) const;
  25559. uint GetMaxLights() const;
  25560. float GetMaxZ() const;
  25561. float GetMinZ() const;
  25562. Model GetModel() const;
  25563. ResourceRef GetModelAttr() const;
  25564. Node GetNode() const;
  25565. uint GetNumAttributes() const;
  25566. uint GetNumGeometries() const;
  25567. uint GetNumNetworkAttributes() const;
  25568. uint GetNumOccluderTriangles();
  25569. ObjectAnimation GetObjectAnimation() const;
  25570. ResourceRef GetObjectAnimationAttr() const;
  25571. uint GetOcclusionLodLevel() const;
  25572. Scene GetScene() const;
  25573. float GetShadowDistance() const;
  25574. uint GetShadowMask() const;
  25575. float GetSortValue() const;
  25576. Object GetSubsystem(StringHash) const;
  25577. StringHash GetType() const;
  25578. UpdateGeometryType GetUpdateGeometryType();
  25579. Array<Light> GetVertexLights() const;
  25580. uint GetViewMask() const;
  25581. Zone GetZone() const;
  25582. uint GetZoneMask() const;
  25583. bool HasBasePass(uint) const;
  25584. bool HasEventHandlers() const;
  25585. bool HasSubscribedToEvent(Object, StringHash) const;
  25586. bool HasSubscribedToEvent(StringHash) const;
  25587. bool IsEnabled() const;
  25588. bool IsEnabledEffective() const;
  25589. bool IsInView() const;
  25590. bool IsInView(Camera) const;
  25591. bool IsInView(const FrameInfo&, bool = false) const;
  25592. bool IsInside(const Vector3&) const;
  25593. bool IsInsideLocal(const Vector3&) const;
  25594. bool IsInstanceOf(StringHash) const;
  25595. bool IsOccludee() const;
  25596. bool IsOccluder() const;
  25597. bool IsReplicated() const;
  25598. bool IsTemporary() const;
  25599. bool IsZoneDirty() const;
  25600. void LimitLights();
  25601. void LimitVertexLights(bool);
  25602. bool Load(Deserializer&);
  25603. bool LoadJSON(const JSONValue&);
  25604. bool LoadXML(const XMLElement&);
  25605. void MarkForUpdate();
  25606. void MarkInView(const FrameInfo&);
  25607. void MarkInView(uint);
  25608. void MarkNetworkUpdate();
  25609. operator Object() const;
  25610. void OnEvent(Object, StringHash, VariantMap&);
  25611. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  25612. void OnSetAttribute(const AttributeInfo&, const Variant&);
  25613. void OnSetEnabled();
  25614. void PrepareNetworkUpdate();
  25615. bool ReadDeltaUpdate(Deserializer&);
  25616. bool ReadLatestDataUpdate(Deserializer&);
  25617. operator RefCounted() const;
  25618. int Refs() const;
  25619. void Remove();
  25620. void RemoveAttributeAnimation(const String&);
  25621. void RemoveInstanceDefault();
  25622. void RemoveObjectAnimation();
  25623. void ResetToDefault();
  25624. const ResourceRefList& GetMaterialsAttr() const;
  25625. bool Save(Serializer&) const;
  25626. bool SaveDefaultAttributes() const;
  25627. bool SaveJSON(JSONValue&) const;
  25628. bool SaveXML(XMLElement&) const;
  25629. void SendEvent(StringHash);
  25630. void SendEvent(StringHash, VariantMap&);
  25631. operator Serializable() const;
  25632. void SetAnimationEnabled(bool);
  25633. void SetAnimationTime(float);
  25634. bool SetAttribute(const String&, const Variant&);
  25635. bool SetAttribute(uint, const Variant&);
  25636. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  25637. void SetAttributeAnimationSpeed(const String&, float);
  25638. void SetAttributeAnimationTime(const String&, float);
  25639. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  25640. void SetBasePass(uint);
  25641. void SetBlockEvents(bool);
  25642. void SetCastShadows(bool);
  25643. void SetDrawDistance(float);
  25644. void SetEnabled(bool);
  25645. void SetGlobalVar(StringHash, const Variant&);
  25646. void SetInstanceDefault(bool);
  25647. void SetInterceptNetworkUpdate(const String&, bool);
  25648. void SetLightMask(uint);
  25649. void SetLodBias(float);
  25650. void SetMaterial(Material);
  25651. bool SetMaterial(uint, Material);
  25652. void SetMaterialsAttr(const ResourceRefList&);
  25653. void SetMaxLights(uint);
  25654. void SetMinMaxZ(float, float);
  25655. void SetModel(Model);
  25656. void SetModelAttr(const ResourceRef&);
  25657. void SetObjectAnimation(ObjectAnimation);
  25658. void SetObjectAnimationAttr(const ResourceRef&);
  25659. void SetOccludee(bool);
  25660. void SetOccluder(bool);
  25661. void SetOcclusionLodLevel(uint);
  25662. void SetShadowDistance(float);
  25663. void SetShadowMask(uint);
  25664. void SetSortValue(float);
  25665. void SetTemporary(bool);
  25666. void SetViewMask(uint);
  25667. void SetZone(Zone, bool = false);
  25668. void SetZoneMask(uint);
  25669. operator StaticModel() const;
  25670. const String& GetCategory() const;
  25671. const String& GetTypeName() const;
  25672. void UnsubscribeFromAllEvents();
  25673. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25674. void UnsubscribeFromEvent(Object, StringHash);
  25675. void UnsubscribeFromEvent(StringHash);
  25676. void UnsubscribeFromEvents(Object);
  25677. void Update(const FrameInfo&);
  25678. void UpdateBatches(const FrameInfo&);
  25679. void UpdateGeometry(const FrameInfo&);
  25680. const Variant& GetGlobalVar(StringHash) const;
  25681. const VariantMap& GetGlobalVars() const;
  25682. int WeakRefs() const;
  25683. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  25684. void WriteInitialDeltaUpdate(Serializer&, uint8);
  25685. void WriteLatestDataUpdate(Serializer&, uint8);
  25686. operator const Animatable() const;
  25687. operator const Component() const;
  25688. operator const Drawable() const;
  25689. operator const Object() const;
  25690. operator const RefCounted() const;
  25691. operator const Serializable() const;
  25692. operator const StaticModel() const;
  25693. // Properties:
  25694. bool animationEnabled;
  25695. /* readonly */
  25696. Array<Variant> attributeDefaults;
  25697. /* readonly */
  25698. Array<AttributeInfo> attributeInfos;
  25699. Array<Variant> attributes;
  25700. /* readonly */
  25701. BoundingBox boundingBox;
  25702. bool castShadows;
  25703. /* readonly */
  25704. String category;
  25705. float drawDistance;
  25706. bool enabled;
  25707. /* readonly */
  25708. bool enabledEffective;
  25709. Array<Variant> globalVar;
  25710. /* readonly */
  25711. VariantMap globalVars;
  25712. /* readonly */
  25713. uint id;
  25714. /* readonly */
  25715. bool inView;
  25716. uint lightMask;
  25717. float lodBias;
  25718. Material material;
  25719. Array<Material> materials;
  25720. uint maxLights;
  25721. Model model;
  25722. /* readonly */
  25723. Node node;
  25724. /* readonly */
  25725. uint numAttributes;
  25726. /* readonly */
  25727. uint numGeometries;
  25728. ObjectAnimation objectAnimation;
  25729. bool occludee;
  25730. bool occluder;
  25731. uint occlusionLodLevel;
  25732. /* readonly */
  25733. int refs;
  25734. /* readonly */
  25735. bool replicated;
  25736. float shadowDistance;
  25737. uint shadowMask;
  25738. bool temporary;
  25739. /* readonly */
  25740. StringHash type;
  25741. /* readonly */
  25742. String typeName;
  25743. uint viewMask;
  25744. /* readonly */
  25745. int weakRefs;
  25746. /* readonly */
  25747. BoundingBox worldBoundingBox;
  25748. /* readonly */
  25749. Zone zone;
  25750. uint zoneMask;
  25751. };
  25752. class Slider
  25753. {
  25754. public:
  25755. Slider();
  25756. // Methods:
  25757. void AddChild(UIElement);
  25758. void AddTag(const String&);
  25759. void AddTags(Array<String>);
  25760. void AddTags(const String&, int8 = ';');
  25761. void AdjustScissor(IntRect&);
  25762. void AllocateNetworkState();
  25763. operator Animatable() const;
  25764. void ApplyAttributes();
  25765. operator BorderImage() const;
  25766. void BringToFront();
  25767. void ChangeValue(float);
  25768. const Color& GetColor(Corner) const;
  25769. const Color& GetColorAttr() const;
  25770. const Color& GetDerivedColor() const;
  25771. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  25772. void DisableLayoutUpdate();
  25773. IntVector2 ElementToScreen(const IntVector2&);
  25774. void EnableLayoutUpdate();
  25775. bool FilterAttributes(XMLElement&) const;
  25776. uint FindChild(UIElement) const;
  25777. bool GetAnimationEnabled() const;
  25778. Variant GetAttribute(const String&) const;
  25779. Variant GetAttribute(uint) const;
  25780. ValueAnimation GetAttributeAnimation(const String&) const;
  25781. float GetAttributeAnimationSpeed(const String&) const;
  25782. float GetAttributeAnimationTime(const String&) const;
  25783. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  25784. Variant GetAttributeDefault(const String&) const;
  25785. Variant GetAttributeDefault(uint) const;
  25786. BlendMode GetBlendMode() const;
  25787. bool GetBlockEvents() const;
  25788. bool GetBringToBack() const;
  25789. bool GetBringToFront() const;
  25790. UIElement GetChild(const String&, bool = false) const;
  25791. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  25792. UIElement GetChild(uint) const;
  25793. Array<UIElement> GetChildren() const;
  25794. Array<UIElement> GetChildren(bool) const;
  25795. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  25796. bool GetClipChildren() const;
  25797. IntRect GetCombinedScreenRect();
  25798. XMLFile GetDefaultStyle(bool = true) const;
  25799. float GetDerivedOpacity() const;
  25800. uint GetDragButtonCombo() const;
  25801. uint GetDragButtonCount() const;
  25802. uint GetDragDropMode() const;
  25803. IntVector2 GetEffectiveMinSize() const;
  25804. UIElement GetElementEventSender() const;
  25805. bool GetEnableAnchor() const;
  25806. VariantMap& GetEventDataMap() const;
  25807. Object GetEventSender() const;
  25808. FocusMode GetFocusMode() const;
  25809. int GetHeight() const;
  25810. HorizontalAlignment GetHorizontalAlignment() const;
  25811. int GetIndent() const;
  25812. int GetIndentSpacing() const;
  25813. int GetIndentWidth() const;
  25814. bool GetInterceptNetworkUpdate(const String&) const;
  25815. BorderImage GetKnob() const;
  25816. int GetLayoutElementMaxSize() const;
  25817. LayoutMode GetLayoutMode() const;
  25818. int GetLayoutSpacing() const;
  25819. Material GetMaterial() const;
  25820. ResourceRef GetMaterialAttr() const;
  25821. int GetMaxHeight() const;
  25822. int GetMaxWidth() const;
  25823. int GetMinHeight() const;
  25824. int GetMinWidth() const;
  25825. uint GetNumAttributes() const;
  25826. uint GetNumChildren(bool = false) const;
  25827. uint GetNumNetworkAttributes() const;
  25828. ObjectAnimation GetObjectAnimation() const;
  25829. ResourceRef GetObjectAnimationAttr() const;
  25830. float GetOpacity() const;
  25831. Orientation GetOrientation() const;
  25832. UIElement GetParent() const;
  25833. int GetPriority() const;
  25834. float GetRange() const;
  25835. float GetRepeatRate() const;
  25836. UIElement GetRoot() const;
  25837. bool GetSortChildren() const;
  25838. Object GetSubsystem(StringHash) const;
  25839. Array<String> GetTags() const;
  25840. Texture GetTexture() const;
  25841. ResourceRef GetTextureAttr() const;
  25842. TraversalMode GetTraversalMode() const;
  25843. StringHash GetType() const;
  25844. bool GetUseDerivedOpacity() const;
  25845. float GetValue() const;
  25846. VerticalAlignment GetVerticalAlignment() const;
  25847. int GetWidth() const;
  25848. bool HasColorGradient() const;
  25849. bool HasEventHandlers() const;
  25850. bool HasFocus() const;
  25851. bool HasSubscribedToEvent(Object, StringHash) const;
  25852. bool HasSubscribedToEvent(StringHash) const;
  25853. bool HasTag(const String&) const;
  25854. void InsertChild(uint, UIElement);
  25855. const IntRect& GetBorder() const;
  25856. const IntRect& GetClipBorder() const;
  25857. const IntRect& GetImageBorder() const;
  25858. const IntRect& GetImageRect() const;
  25859. const IntRect& GetLayoutBorder() const;
  25860. const IntVector2& GetChildOffset() const;
  25861. const IntVector2& GetDisabledOffset() const;
  25862. const IntVector2& GetHoverOffset() const;
  25863. const IntVector2& GetMaxOffset() const;
  25864. const IntVector2& GetMaxSize() const;
  25865. const IntVector2& GetMinOffset() const;
  25866. const IntVector2& GetMinSize() const;
  25867. const IntVector2& GetPosition() const;
  25868. const IntVector2& GetScreenPosition() const;
  25869. const IntVector2& GetSize() const;
  25870. bool IsChildOf(UIElement) const;
  25871. bool IsEditable() const;
  25872. bool IsElementEventSender() const;
  25873. bool IsEnabled() const;
  25874. bool IsEnabledSelf() const;
  25875. bool IsFixedHeight() const;
  25876. bool IsFixedSize() const;
  25877. bool IsFixedWidth() const;
  25878. bool IsHovering() const;
  25879. bool IsInside(IntVector2, bool);
  25880. bool IsInsideCombined(IntVector2, bool);
  25881. bool IsInstanceOf(StringHash) const;
  25882. bool IsInternal() const;
  25883. bool IsSelected() const;
  25884. bool IsTemporary() const;
  25885. bool IsTiled() const;
  25886. bool IsVisible() const;
  25887. bool IsVisibleEffective() const;
  25888. bool IsWheelHandler() const;
  25889. bool IsWithinScissor(const IntRect&);
  25890. bool Load(Deserializer&);
  25891. UIElement LoadChildXML(XMLFile, XMLFile);
  25892. UIElement LoadChildXML(const XMLElement&, XMLFile);
  25893. bool LoadJSON(const JSONValue&);
  25894. bool LoadXML(Deserializer&);
  25895. bool LoadXML(File);
  25896. bool LoadXML(VectorBuffer&);
  25897. bool LoadXML(XMLFile, XMLFile);
  25898. bool LoadXML(const XMLElement&);
  25899. bool LoadXML(const XMLElement&, XMLFile);
  25900. void MarkNetworkUpdate();
  25901. operator Object() const;
  25902. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  25903. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  25904. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  25905. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25906. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25907. bool OnDragDropFinish(UIElement);
  25908. bool OnDragDropTest(UIElement);
  25909. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25910. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25911. void OnEvent(Object, StringHash, VariantMap&);
  25912. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  25913. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25914. void OnIndentSet();
  25915. void OnKey(uint, uint, uint);
  25916. void OnPositionSet(const IntVector2&);
  25917. void OnResize(const IntVector2&, const IntVector2&);
  25918. void OnSetAttribute(const AttributeInfo&, const Variant&);
  25919. void OnSetEditable();
  25920. void OnTextInput(const String&);
  25921. void OnWheel(int, uint, uint);
  25922. bool ReadDeltaUpdate(Deserializer&);
  25923. bool ReadLatestDataUpdate(Deserializer&);
  25924. operator RefCounted() const;
  25925. int Refs() const;
  25926. void Remove();
  25927. void RemoveAllChildren();
  25928. void RemoveAllTags();
  25929. void RemoveAttributeAnimation(const String&);
  25930. void RemoveChild(UIElement, uint = 0);
  25931. void RemoveChild(uint);
  25932. void RemoveChildAtIndex(uint);
  25933. void RemoveInstanceDefault();
  25934. void RemoveObjectAnimation();
  25935. bool RemoveTag(const String&);
  25936. void ResetDeepEnabled();
  25937. void ResetToDefault();
  25938. bool Save(Serializer&) const;
  25939. bool SaveDefaultAttributes() const;
  25940. bool SaveJSON(JSONValue&) const;
  25941. bool SaveXML(File, const String& indentation = "\t");
  25942. bool SaveXML(Serializer&, const String& = "\t") const;
  25943. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  25944. bool SaveXML(XMLElement&) const;
  25945. IntVector2 ScreenToElement(const IntVector2&);
  25946. void SendEvent(StringHash);
  25947. void SendEvent(StringHash, VariantMap&);
  25948. operator Serializable() const;
  25949. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  25950. void SetAnimationEnabled(bool);
  25951. void SetAnimationTime(float);
  25952. bool SetAttribute(const String&, const Variant&);
  25953. bool SetAttribute(uint, const Variant&);
  25954. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  25955. void SetAttributeAnimationSpeed(const String&, float);
  25956. void SetAttributeAnimationTime(const String&, float);
  25957. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  25958. void SetBlendMode(BlendMode);
  25959. void SetBlockEvents(bool);
  25960. void SetBorder(const IntRect&);
  25961. void SetBringToBack(bool);
  25962. void SetBringToFront(bool);
  25963. void SetChildOffset(const IntVector2&);
  25964. void SetClipBorder(const IntRect&);
  25965. void SetClipChildren(bool);
  25966. void SetColor(Corner, const Color&);
  25967. void SetColor(const Color&);
  25968. void SetDeepEnabled(bool);
  25969. void SetDefaultStyle(XMLFile);
  25970. void SetDisabledOffset(const IntVector2&);
  25971. void SetDisabledOffset(int, int);
  25972. void SetDragDropMode(uint);
  25973. void SetEditable(bool);
  25974. void SetElementEventSender(bool);
  25975. void SetEnableAnchor(bool);
  25976. void SetEnabled(bool);
  25977. void SetEnabledRecursive(bool);
  25978. void SetFixedHeight(int);
  25979. void SetFixedSize(const IntVector2&);
  25980. void SetFixedSize(int, int);
  25981. void SetFixedWidth(int);
  25982. void SetFocus(bool);
  25983. void SetFocusMode(FocusMode);
  25984. void SetFullImageRect();
  25985. void SetGlobalVar(StringHash, const Variant&);
  25986. void SetHeight(int);
  25987. void SetHorizontalAlignment(HorizontalAlignment);
  25988. void SetHoverOffset(const IntVector2&);
  25989. void SetHoverOffset(int, int);
  25990. void SetHovering(bool);
  25991. void SetImageBorder(const IntRect&);
  25992. void SetImageRect(const IntRect&);
  25993. void SetIndent(int);
  25994. void SetIndentSpacing(int);
  25995. void SetInstanceDefault(bool);
  25996. void SetInterceptNetworkUpdate(const String&, bool);
  25997. void SetInternal(bool);
  25998. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  25999. void SetLayoutBorder(const IntRect&);
  26000. void SetLayoutFlexScale(const Vector2&);
  26001. void SetLayoutMode(LayoutMode);
  26002. void SetLayoutSpacing(int);
  26003. void SetMaterial(Material);
  26004. void SetMaterialAttr(const ResourceRef&);
  26005. void SetMaxAnchor(const Vector2&);
  26006. void SetMaxAnchor(float, float);
  26007. void SetMaxHeight(int);
  26008. void SetMaxOffset(const IntVector2&);
  26009. void SetMaxSize(const IntVector2&);
  26010. void SetMaxSize(int, int);
  26011. void SetMaxWidth(int);
  26012. void SetMinAnchor(const Vector2&);
  26013. void SetMinAnchor(float, float);
  26014. void SetMinHeight(int);
  26015. void SetMinOffset(const IntVector2&);
  26016. void SetMinSize(const IntVector2&);
  26017. void SetMinSize(int, int);
  26018. void SetMinWidth(int);
  26019. void SetName(const String&);
  26020. void SetObjectAnimation(ObjectAnimation);
  26021. void SetObjectAnimationAttr(const ResourceRef&);
  26022. void SetOpacity(float);
  26023. void SetOrientation(Orientation);
  26024. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  26025. void SetPivot(const Vector2&);
  26026. void SetPivot(float, float);
  26027. void SetPosition(const IntVector2&);
  26028. void SetPosition(int, int);
  26029. void SetPriority(int);
  26030. void SetRange(float);
  26031. void SetRenderTexture(Texture2D);
  26032. void SetRepeatRate(float);
  26033. void SetSelected(bool);
  26034. void SetSize(const IntVector2&);
  26035. void SetSize(int, int);
  26036. void SetSortChildren(bool);
  26037. bool SetStyle(const String&, XMLFile = null);
  26038. bool SetStyle(const XMLElement&);
  26039. bool SetStyleAuto(XMLFile = null);
  26040. void SetTags(Array<String>);
  26041. void SetTemporary(bool);
  26042. void SetTexture(Texture);
  26043. void SetTextureAttr(const ResourceRef&);
  26044. void SetTiled(bool);
  26045. void SetTraversalMode(TraversalMode);
  26046. void SetUseDerivedOpacity(bool);
  26047. void SetValue(float);
  26048. void SetVar(StringHash, const Variant&);
  26049. void SetVerticalAlignment(VerticalAlignment);
  26050. void SetVisible(bool);
  26051. void SetWidth(int);
  26052. void SortChildren();
  26053. const String& GetAppliedStyle() const;
  26054. const String& GetCategory() const;
  26055. const String& GetName() const;
  26056. const String& GetTypeName() const;
  26057. operator UIElement() const;
  26058. void UnsubscribeFromAllEvents();
  26059. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26060. void UnsubscribeFromEvent(Object, StringHash);
  26061. void UnsubscribeFromEvent(StringHash);
  26062. void UnsubscribeFromEvents(Object);
  26063. void Update(float);
  26064. void UpdateLayout();
  26065. const Variant& GetGlobalVar(StringHash) const;
  26066. const Variant& GetVar(const StringHash&) const;
  26067. const VariantMap& GetGlobalVars() const;
  26068. const VariantMap& GetVars() const;
  26069. const Vector2& GetLayoutFlexScale() const;
  26070. const Vector2& GetMaxAnchor() const;
  26071. const Vector2& GetMinAnchor() const;
  26072. const Vector2& GetPivot() const;
  26073. int WeakRefs() const;
  26074. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26075. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26076. void WriteLatestDataUpdate(Serializer&, uint8);
  26077. operator const Animatable() const;
  26078. operator const BorderImage() const;
  26079. operator const Object() const;
  26080. operator const RefCounted() const;
  26081. operator const Serializable() const;
  26082. operator const UIElement() const;
  26083. // Properties:
  26084. bool animationEnabled;
  26085. /* readonly */
  26086. Array<Variant> attributeDefaults;
  26087. /* readonly */
  26088. Array<AttributeInfo> attributeInfos;
  26089. Array<Variant> attributes;
  26090. BlendMode blendMode;
  26091. IntRect border;
  26092. bool bringToBack;
  26093. bool bringToFront;
  26094. /* readonly */
  26095. String category;
  26096. /* readonly */
  26097. IntVector2 childOffset;
  26098. /* readonly */
  26099. Array<UIElement> children;
  26100. IntRect clipBorder;
  26101. bool clipChildren;
  26102. /* writeonly */
  26103. Color color;
  26104. /* readonly */
  26105. bool colorGradient;
  26106. Array<Color> colors;
  26107. /* readonly */
  26108. IntRect combinedScreenRect;
  26109. XMLFile defaultStyle;
  26110. /* readonly */
  26111. float derivedOpacity;
  26112. IntVector2 disabledOffset;
  26113. /* readonly */
  26114. uint dragButtonCombo;
  26115. /* readonly */
  26116. uint dragButtonCount;
  26117. uint dragDropMode;
  26118. bool editable;
  26119. bool elementEventSender;
  26120. bool enableAnchor;
  26121. bool enabled;
  26122. /* readonly */
  26123. bool enabledSelf;
  26124. /* readonly */
  26125. bool fixedHeight;
  26126. /* readonly */
  26127. bool fixedSize;
  26128. /* readonly */
  26129. bool fixedWidth;
  26130. bool focus;
  26131. FocusMode focusMode;
  26132. Array<Variant> globalVar;
  26133. /* readonly */
  26134. VariantMap globalVars;
  26135. int height;
  26136. HorizontalAlignment horizontalAlignment;
  26137. IntVector2 hoverOffset;
  26138. /* readonly */
  26139. bool hovering;
  26140. IntRect imageBorder;
  26141. IntRect imageRect;
  26142. int indent;
  26143. int indentSpacing;
  26144. /* readonly */
  26145. int indentWidth;
  26146. bool internal;
  26147. /* readonly */
  26148. BorderImage knob;
  26149. IntRect layoutBorder;
  26150. Vector2 layoutFlexScale;
  26151. LayoutMode layoutMode;
  26152. int layoutSpacing;
  26153. Material material;
  26154. Vector2 maxAnchor;
  26155. int maxHeight;
  26156. IntVector2 maxOffset;
  26157. IntVector2 maxSize;
  26158. int maxWidth;
  26159. Vector2 minAnchor;
  26160. int minHeight;
  26161. IntVector2 minOffset;
  26162. IntVector2 minSize;
  26163. int minWidth;
  26164. String name;
  26165. /* readonly */
  26166. uint numAllChildren;
  26167. /* readonly */
  26168. uint numAttributes;
  26169. /* readonly */
  26170. uint numChildren;
  26171. ObjectAnimation objectAnimation;
  26172. float opacity;
  26173. Orientation orientation;
  26174. UIElement parent;
  26175. Vector2 pivot;
  26176. IntVector2 position;
  26177. int priority;
  26178. float range;
  26179. /* readonly */
  26180. int refs;
  26181. float repeatRate;
  26182. /* readonly */
  26183. UIElement root;
  26184. /* readonly */
  26185. IntVector2 screenPosition;
  26186. bool selected;
  26187. IntVector2 size;
  26188. bool sortChildren;
  26189. String style;
  26190. /* readonly */
  26191. Array<String> tags;
  26192. bool temporary;
  26193. Texture texture;
  26194. bool tiled;
  26195. TraversalMode traversalMode;
  26196. /* readonly */
  26197. StringHash type;
  26198. /* readonly */
  26199. String typeName;
  26200. bool useDerivedOpacity;
  26201. float value;
  26202. /* readonly */
  26203. VariantMap vars;
  26204. VerticalAlignment verticalAlignment;
  26205. bool visible;
  26206. /* readonly */
  26207. bool visibleEffective;
  26208. /* readonly */
  26209. int weakRefs;
  26210. int width;
  26211. };
  26212. class SmoothedTransform
  26213. {
  26214. public:
  26215. SmoothedTransform();
  26216. // Methods:
  26217. void AllocateNetworkState();
  26218. operator Animatable() const;
  26219. void ApplyAttributes();
  26220. void CleanupConnection(Connection);
  26221. operator Component() const;
  26222. void DrawDebugGeometry(DebugRenderer, bool);
  26223. bool GetAnimationEnabled() const;
  26224. Variant GetAttribute(const String&) const;
  26225. Variant GetAttribute(uint) const;
  26226. ValueAnimation GetAttributeAnimation(const String&) const;
  26227. float GetAttributeAnimationSpeed(const String&) const;
  26228. float GetAttributeAnimationTime(const String&) const;
  26229. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26230. Variant GetAttributeDefault(const String&) const;
  26231. Variant GetAttributeDefault(uint) const;
  26232. bool GetBlockEvents() const;
  26233. Component GetComponent(StringHash) const;
  26234. VariantMap& GetEventDataMap() const;
  26235. Object GetEventSender() const;
  26236. uint GetID() const;
  26237. bool GetInterceptNetworkUpdate(const String&) const;
  26238. Node GetNode() const;
  26239. uint GetNumAttributes() const;
  26240. uint GetNumNetworkAttributes() const;
  26241. ObjectAnimation GetObjectAnimation() const;
  26242. ResourceRef GetObjectAnimationAttr() const;
  26243. Scene GetScene() const;
  26244. Object GetSubsystem(StringHash) const;
  26245. Vector3 GetTargetWorldPosition() const;
  26246. Quaternion GetTargetWorldRotation() const;
  26247. StringHash GetType() const;
  26248. bool HasEventHandlers() const;
  26249. bool HasSubscribedToEvent(Object, StringHash) const;
  26250. bool HasSubscribedToEvent(StringHash) const;
  26251. bool IsEnabled() const;
  26252. bool IsEnabledEffective() const;
  26253. bool IsInProgress() const;
  26254. bool IsInstanceOf(StringHash) const;
  26255. bool IsReplicated() const;
  26256. bool IsTemporary() const;
  26257. bool Load(Deserializer&);
  26258. bool LoadJSON(const JSONValue&);
  26259. bool LoadXML(const XMLElement&);
  26260. void MarkNetworkUpdate();
  26261. operator Object() const;
  26262. void OnEvent(Object, StringHash, VariantMap&);
  26263. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26264. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26265. void OnSetEnabled();
  26266. void PrepareNetworkUpdate();
  26267. const Quaternion& GetTargetRotation() const;
  26268. bool ReadDeltaUpdate(Deserializer&);
  26269. bool ReadLatestDataUpdate(Deserializer&);
  26270. operator RefCounted() const;
  26271. int Refs() const;
  26272. void Remove();
  26273. void RemoveAttributeAnimation(const String&);
  26274. void RemoveInstanceDefault();
  26275. void RemoveObjectAnimation();
  26276. void ResetToDefault();
  26277. bool Save(Serializer&) const;
  26278. bool SaveDefaultAttributes() const;
  26279. bool SaveJSON(JSONValue&) const;
  26280. bool SaveXML(XMLElement&) const;
  26281. void SendEvent(StringHash);
  26282. void SendEvent(StringHash, VariantMap&);
  26283. operator Serializable() const;
  26284. void SetAnimationEnabled(bool);
  26285. void SetAnimationTime(float);
  26286. bool SetAttribute(const String&, const Variant&);
  26287. bool SetAttribute(uint, const Variant&);
  26288. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26289. void SetAttributeAnimationSpeed(const String&, float);
  26290. void SetAttributeAnimationTime(const String&, float);
  26291. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26292. void SetBlockEvents(bool);
  26293. void SetEnabled(bool);
  26294. void SetGlobalVar(StringHash, const Variant&);
  26295. void SetInstanceDefault(bool);
  26296. void SetInterceptNetworkUpdate(const String&, bool);
  26297. void SetObjectAnimation(ObjectAnimation);
  26298. void SetObjectAnimationAttr(const ResourceRef&);
  26299. void SetTargetPosition(const Vector3&);
  26300. void SetTargetRotation(const Quaternion&);
  26301. void SetTargetWorldPosition(const Vector3&);
  26302. void SetTargetWorldRotation(const Quaternion&);
  26303. void SetTemporary(bool);
  26304. const String& GetCategory() const;
  26305. const String& GetTypeName() const;
  26306. void UnsubscribeFromAllEvents();
  26307. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26308. void UnsubscribeFromEvent(Object, StringHash);
  26309. void UnsubscribeFromEvent(StringHash);
  26310. void UnsubscribeFromEvents(Object);
  26311. void Update(float, float);
  26312. const Variant& GetGlobalVar(StringHash) const;
  26313. const VariantMap& GetGlobalVars() const;
  26314. const Vector3& GetTargetPosition() const;
  26315. int WeakRefs() const;
  26316. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26317. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26318. void WriteLatestDataUpdate(Serializer&, uint8);
  26319. operator const Animatable() const;
  26320. operator const Component() const;
  26321. operator const Object() const;
  26322. operator const RefCounted() const;
  26323. operator const Serializable() const;
  26324. // Properties:
  26325. bool animationEnabled;
  26326. /* readonly */
  26327. Array<Variant> attributeDefaults;
  26328. /* readonly */
  26329. Array<AttributeInfo> attributeInfos;
  26330. Array<Variant> attributes;
  26331. /* readonly */
  26332. String category;
  26333. bool enabled;
  26334. /* readonly */
  26335. bool enabledEffective;
  26336. Array<Variant> globalVar;
  26337. /* readonly */
  26338. VariantMap globalVars;
  26339. /* readonly */
  26340. uint id;
  26341. /* readonly */
  26342. bool inProgress;
  26343. /* readonly */
  26344. Node node;
  26345. /* readonly */
  26346. uint numAttributes;
  26347. ObjectAnimation objectAnimation;
  26348. /* readonly */
  26349. int refs;
  26350. /* readonly */
  26351. bool replicated;
  26352. Vector3 targetPosition;
  26353. Quaternion targetRotation;
  26354. Vector3 targetWorldPosition;
  26355. Quaternion targetWorldRotation;
  26356. bool temporary;
  26357. /* readonly */
  26358. StringHash type;
  26359. /* readonly */
  26360. String typeName;
  26361. /* readonly */
  26362. int weakRefs;
  26363. };
  26364. class Sound
  26365. {
  26366. public:
  26367. Sound();
  26368. // Methods:
  26369. void AddMetadata(const String&, const Variant&);
  26370. bool BeginLoad(Deserializer&);
  26371. bool EndLoad();
  26372. void FixInterpolation();
  26373. AsyncLoadState GetAsyncLoadState() const;
  26374. bool GetBlockEvents() const;
  26375. uint GetDataSize() const;
  26376. SoundStream GetDecoderStream() const;
  26377. VariantMap& GetEventDataMap() const;
  26378. Object GetEventSender() const;
  26379. float GetFrequency() const;
  26380. uint GetIntFrequency() const;
  26381. float GetLength() const;
  26382. uint GetMemoryUse() const;
  26383. StringHash GetNameHash() const;
  26384. uint GetSampleSize() const;
  26385. Object GetSubsystem(StringHash) const;
  26386. StringHash GetType() const;
  26387. uint GetUseTimer();
  26388. bool HasEventHandlers() const;
  26389. bool HasMetadata() const;
  26390. bool HasSubscribedToEvent(Object, StringHash) const;
  26391. bool HasSubscribedToEvent(StringHash) const;
  26392. bool IsCompressed() const;
  26393. bool IsInstanceOf(StringHash) const;
  26394. bool IsLooped() const;
  26395. bool IsSixteenBit() const;
  26396. bool IsStereo() const;
  26397. bool Load(Deserializer&);
  26398. bool Load(File);
  26399. bool Load(VectorBuffer&);
  26400. bool Load(const String&);
  26401. bool LoadFile(const String&);
  26402. bool LoadOggVorbis(Deserializer&);
  26403. bool LoadRaw(Deserializer&);
  26404. bool LoadWav(Deserializer&);
  26405. operator Object() const;
  26406. void OnEvent(Object, StringHash, VariantMap&);
  26407. operator RefCounted() const;
  26408. int Refs() const;
  26409. void RemoveAllMetadata();
  26410. void RemoveMetadata(const String&);
  26411. void ResetUseTimer();
  26412. operator Resource() const;
  26413. operator ResourceWithMetadata() const;
  26414. bool Save(File) const;
  26415. bool Save(Serializer&) const;
  26416. bool Save(VectorBuffer&) const;
  26417. bool Save(const String&) const;
  26418. bool SaveFile(const String&) const;
  26419. void SendEvent(StringHash);
  26420. void SendEvent(StringHash, VariantMap&);
  26421. void SetAsyncLoadState(AsyncLoadState);
  26422. void SetBlockEvents(bool);
  26423. void SetFormat(uint, bool, bool);
  26424. void SetGlobalVar(StringHash, const Variant&);
  26425. void SetLoop(uint, uint);
  26426. void SetLooped(bool);
  26427. void SetMemoryUse(uint);
  26428. void SetName(const String&);
  26429. void SetSize(uint);
  26430. const String& GetCategory() const;
  26431. const String& GetName() const;
  26432. const String& GetTypeName() const;
  26433. void UnsubscribeFromAllEvents();
  26434. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26435. void UnsubscribeFromEvent(Object, StringHash);
  26436. void UnsubscribeFromEvent(StringHash);
  26437. void UnsubscribeFromEvents(Object);
  26438. const Variant& GetGlobalVar(StringHash) const;
  26439. const Variant& GetMetadata(const String&) const;
  26440. const VariantMap& GetGlobalVars() const;
  26441. int WeakRefs() const;
  26442. operator const Object() const;
  26443. operator const RefCounted() const;
  26444. operator const Resource() const;
  26445. operator const ResourceWithMetadata() const;
  26446. // Properties:
  26447. /* readonly */
  26448. String category;
  26449. /* readonly */
  26450. bool compressed;
  26451. /* readonly */
  26452. float frequency;
  26453. Array<Variant> globalVar;
  26454. /* readonly */
  26455. VariantMap globalVars;
  26456. /* readonly */
  26457. bool hasMetadata;
  26458. /* readonly */
  26459. float length;
  26460. bool looped;
  26461. /* readonly */
  26462. uint memoryUse;
  26463. Array<Variant> metadata;
  26464. String name;
  26465. /* readonly */
  26466. int refs;
  26467. /* readonly */
  26468. uint sampleSize;
  26469. /* readonly */
  26470. bool sixteenBit;
  26471. /* readonly */
  26472. bool stereo;
  26473. /* readonly */
  26474. StringHash type;
  26475. /* readonly */
  26476. String typeName;
  26477. /* readonly */
  26478. uint useTimer;
  26479. /* readonly */
  26480. int weakRefs;
  26481. };
  26482. class SoundListener
  26483. {
  26484. public:
  26485. SoundListener();
  26486. // Methods:
  26487. void AllocateNetworkState();
  26488. operator Animatable() const;
  26489. void ApplyAttributes();
  26490. void CleanupConnection(Connection);
  26491. operator Component() const;
  26492. void DrawDebugGeometry(DebugRenderer, bool);
  26493. bool GetAnimationEnabled() const;
  26494. Variant GetAttribute(const String&) const;
  26495. Variant GetAttribute(uint) const;
  26496. ValueAnimation GetAttributeAnimation(const String&) const;
  26497. float GetAttributeAnimationSpeed(const String&) const;
  26498. float GetAttributeAnimationTime(const String&) const;
  26499. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26500. Variant GetAttributeDefault(const String&) const;
  26501. Variant GetAttributeDefault(uint) const;
  26502. bool GetBlockEvents() const;
  26503. Component GetComponent(StringHash) const;
  26504. VariantMap& GetEventDataMap() const;
  26505. Object GetEventSender() const;
  26506. uint GetID() const;
  26507. bool GetInterceptNetworkUpdate(const String&) const;
  26508. Node GetNode() const;
  26509. uint GetNumAttributes() const;
  26510. uint GetNumNetworkAttributes() const;
  26511. ObjectAnimation GetObjectAnimation() const;
  26512. ResourceRef GetObjectAnimationAttr() const;
  26513. Scene GetScene() const;
  26514. Object GetSubsystem(StringHash) const;
  26515. StringHash GetType() const;
  26516. bool HasEventHandlers() const;
  26517. bool HasSubscribedToEvent(Object, StringHash) const;
  26518. bool HasSubscribedToEvent(StringHash) const;
  26519. bool IsEnabled() const;
  26520. bool IsEnabledEffective() const;
  26521. bool IsInstanceOf(StringHash) const;
  26522. bool IsReplicated() const;
  26523. bool IsTemporary() const;
  26524. bool Load(Deserializer&);
  26525. bool LoadJSON(const JSONValue&);
  26526. bool LoadXML(const XMLElement&);
  26527. void MarkNetworkUpdate();
  26528. operator Object() const;
  26529. void OnEvent(Object, StringHash, VariantMap&);
  26530. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26531. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26532. void OnSetEnabled();
  26533. void PrepareNetworkUpdate();
  26534. bool ReadDeltaUpdate(Deserializer&);
  26535. bool ReadLatestDataUpdate(Deserializer&);
  26536. operator RefCounted() const;
  26537. int Refs() const;
  26538. void Remove();
  26539. void RemoveAttributeAnimation(const String&);
  26540. void RemoveInstanceDefault();
  26541. void RemoveObjectAnimation();
  26542. void ResetToDefault();
  26543. bool Save(Serializer&) const;
  26544. bool SaveDefaultAttributes() const;
  26545. bool SaveJSON(JSONValue&) const;
  26546. bool SaveXML(XMLElement&) const;
  26547. void SendEvent(StringHash);
  26548. void SendEvent(StringHash, VariantMap&);
  26549. operator Serializable() const;
  26550. void SetAnimationEnabled(bool);
  26551. void SetAnimationTime(float);
  26552. bool SetAttribute(const String&, const Variant&);
  26553. bool SetAttribute(uint, const Variant&);
  26554. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26555. void SetAttributeAnimationSpeed(const String&, float);
  26556. void SetAttributeAnimationTime(const String&, float);
  26557. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26558. void SetBlockEvents(bool);
  26559. void SetEnabled(bool);
  26560. void SetGlobalVar(StringHash, const Variant&);
  26561. void SetInstanceDefault(bool);
  26562. void SetInterceptNetworkUpdate(const String&, bool);
  26563. void SetObjectAnimation(ObjectAnimation);
  26564. void SetObjectAnimationAttr(const ResourceRef&);
  26565. void SetTemporary(bool);
  26566. const String& GetCategory() const;
  26567. const String& GetTypeName() const;
  26568. void UnsubscribeFromAllEvents();
  26569. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26570. void UnsubscribeFromEvent(Object, StringHash);
  26571. void UnsubscribeFromEvent(StringHash);
  26572. void UnsubscribeFromEvents(Object);
  26573. const Variant& GetGlobalVar(StringHash) const;
  26574. const VariantMap& GetGlobalVars() const;
  26575. int WeakRefs() const;
  26576. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26577. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26578. void WriteLatestDataUpdate(Serializer&, uint8);
  26579. operator const Animatable() const;
  26580. operator const Component() const;
  26581. operator const Object() const;
  26582. operator const RefCounted() const;
  26583. operator const Serializable() const;
  26584. // Properties:
  26585. bool animationEnabled;
  26586. /* readonly */
  26587. Array<Variant> attributeDefaults;
  26588. /* readonly */
  26589. Array<AttributeInfo> attributeInfos;
  26590. Array<Variant> attributes;
  26591. /* readonly */
  26592. String category;
  26593. bool enabled;
  26594. /* readonly */
  26595. bool enabledEffective;
  26596. Array<Variant> globalVar;
  26597. /* readonly */
  26598. VariantMap globalVars;
  26599. /* readonly */
  26600. uint id;
  26601. /* readonly */
  26602. Node node;
  26603. /* readonly */
  26604. uint numAttributes;
  26605. ObjectAnimation objectAnimation;
  26606. /* readonly */
  26607. int refs;
  26608. /* readonly */
  26609. bool replicated;
  26610. bool temporary;
  26611. /* readonly */
  26612. StringHash type;
  26613. /* readonly */
  26614. String typeName;
  26615. /* readonly */
  26616. int weakRefs;
  26617. };
  26618. class SoundSource
  26619. {
  26620. public:
  26621. SoundSource();
  26622. // Methods:
  26623. void AllocateNetworkState();
  26624. operator Animatable() const;
  26625. void ApplyAttributes();
  26626. void CleanupConnection(Connection);
  26627. operator Component() const;
  26628. void DrawDebugGeometry(DebugRenderer, bool);
  26629. bool GetAnimationEnabled() const;
  26630. float GetAttenuation() const;
  26631. Variant GetAttribute(const String&) const;
  26632. Variant GetAttribute(uint) const;
  26633. ValueAnimation GetAttributeAnimation(const String&) const;
  26634. float GetAttributeAnimationSpeed(const String&) const;
  26635. float GetAttributeAnimationTime(const String&) const;
  26636. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26637. Variant GetAttributeDefault(const String&) const;
  26638. Variant GetAttributeDefault(uint) const;
  26639. AutoRemoveMode GetAutoRemoveMode() const;
  26640. bool GetBlockEvents() const;
  26641. Component GetComponent(StringHash) const;
  26642. VariantMap& GetEventDataMap() const;
  26643. Object GetEventSender() const;
  26644. float GetFrequency() const;
  26645. float GetGain() const;
  26646. uint GetID() const;
  26647. bool GetInterceptNetworkUpdate(const String&) const;
  26648. Node GetNode() const;
  26649. uint GetNumAttributes() const;
  26650. uint GetNumNetworkAttributes() const;
  26651. ObjectAnimation GetObjectAnimation() const;
  26652. ResourceRef GetObjectAnimationAttr() const;
  26653. float GetPanning() const;
  26654. int GetPositionAttr() const;
  26655. Scene GetScene() const;
  26656. Sound GetSound() const;
  26657. ResourceRef GetSoundAttr() const;
  26658. String GetSoundType() const;
  26659. Object GetSubsystem(StringHash) const;
  26660. float GetTimePosition() const;
  26661. StringHash GetType() const;
  26662. bool HasEventHandlers() const;
  26663. bool HasSubscribedToEvent(Object, StringHash) const;
  26664. bool HasSubscribedToEvent(StringHash) const;
  26665. bool IsEnabled() const;
  26666. bool IsEnabledEffective() const;
  26667. bool IsInstanceOf(StringHash) const;
  26668. bool IsPlaying() const;
  26669. bool IsReplicated() const;
  26670. bool IsTemporary() const;
  26671. bool Load(Deserializer&);
  26672. bool LoadJSON(const JSONValue&);
  26673. bool LoadXML(const XMLElement&);
  26674. void MarkNetworkUpdate();
  26675. operator Object() const;
  26676. void OnEvent(Object, StringHash, VariantMap&);
  26677. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26678. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26679. void OnSetEnabled();
  26680. void Play(Sound);
  26681. void Play(Sound, float);
  26682. void Play(Sound, float, float);
  26683. void Play(Sound, float, float, float);
  26684. void Play(SoundStream);
  26685. void PrepareNetworkUpdate();
  26686. bool ReadDeltaUpdate(Deserializer&);
  26687. bool ReadLatestDataUpdate(Deserializer&);
  26688. operator RefCounted() const;
  26689. int Refs() const;
  26690. void Remove();
  26691. void RemoveAttributeAnimation(const String&);
  26692. void RemoveInstanceDefault();
  26693. void RemoveObjectAnimation();
  26694. void ResetToDefault();
  26695. bool Save(Serializer&) const;
  26696. bool SaveDefaultAttributes() const;
  26697. bool SaveJSON(JSONValue&) const;
  26698. bool SaveXML(XMLElement&) const;
  26699. void Seek(float);
  26700. void SendEvent(StringHash);
  26701. void SendEvent(StringHash, VariantMap&);
  26702. operator Serializable() const;
  26703. void SetAnimationEnabled(bool);
  26704. void SetAnimationTime(float);
  26705. void SetAttenuation(float);
  26706. bool SetAttribute(const String&, const Variant&);
  26707. bool SetAttribute(uint, const Variant&);
  26708. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26709. void SetAttributeAnimationSpeed(const String&, float);
  26710. void SetAttributeAnimationTime(const String&, float);
  26711. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26712. void SetAutoRemoveMode(AutoRemoveMode);
  26713. void SetBlockEvents(bool);
  26714. void SetEnabled(bool);
  26715. void SetFrequency(float);
  26716. void SetGain(float);
  26717. void SetGlobalVar(StringHash, const Variant&);
  26718. void SetInstanceDefault(bool);
  26719. void SetInterceptNetworkUpdate(const String&, bool);
  26720. void SetObjectAnimation(ObjectAnimation);
  26721. void SetObjectAnimationAttr(const ResourceRef&);
  26722. void SetPanning(float);
  26723. void SetPlayingAttr(bool);
  26724. void SetPositionAttr(int);
  26725. void SetSoundAttr(const ResourceRef&);
  26726. void SetSoundType(const String&);
  26727. void SetTemporary(bool);
  26728. operator SoundSource3D() const;
  26729. void Stop();
  26730. const String& GetCategory() const;
  26731. const String& GetTypeName() const;
  26732. void UnsubscribeFromAllEvents();
  26733. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26734. void UnsubscribeFromEvent(Object, StringHash);
  26735. void UnsubscribeFromEvent(StringHash);
  26736. void UnsubscribeFromEvents(Object);
  26737. void Update(float);
  26738. void UpdateMasterGain();
  26739. const Variant& GetGlobalVar(StringHash) const;
  26740. const VariantMap& GetGlobalVars() const;
  26741. int WeakRefs() const;
  26742. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26743. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26744. void WriteLatestDataUpdate(Serializer&, uint8);
  26745. operator const Animatable() const;
  26746. operator const Component() const;
  26747. operator const Object() const;
  26748. operator const RefCounted() const;
  26749. operator const Serializable() const;
  26750. operator const SoundSource3D() const;
  26751. // Properties:
  26752. bool animationEnabled;
  26753. /* readonly */
  26754. float attenuation;
  26755. /* readonly */
  26756. Array<Variant> attributeDefaults;
  26757. /* readonly */
  26758. Array<AttributeInfo> attributeInfos;
  26759. Array<Variant> attributes;
  26760. AutoRemoveMode autoRemoveMode;
  26761. /* readonly */
  26762. String category;
  26763. bool enabled;
  26764. /* readonly */
  26765. bool enabledEffective;
  26766. float frequency;
  26767. float gain;
  26768. Array<Variant> globalVar;
  26769. /* readonly */
  26770. VariantMap globalVars;
  26771. /* readonly */
  26772. uint id;
  26773. /* readonly */
  26774. Node node;
  26775. /* readonly */
  26776. uint numAttributes;
  26777. ObjectAnimation objectAnimation;
  26778. float panning;
  26779. /* readonly */
  26780. bool playing;
  26781. /* readonly */
  26782. int refs;
  26783. /* readonly */
  26784. bool replicated;
  26785. /* readonly */
  26786. Sound sound;
  26787. String soundType;
  26788. bool temporary;
  26789. /* readonly */
  26790. float timePosition;
  26791. /* readonly */
  26792. StringHash type;
  26793. /* readonly */
  26794. String typeName;
  26795. /* readonly */
  26796. int weakRefs;
  26797. };
  26798. class SoundSource3D
  26799. {
  26800. public:
  26801. SoundSource3D();
  26802. // Methods:
  26803. void AllocateNetworkState();
  26804. operator Animatable() const;
  26805. void ApplyAttributes();
  26806. void CalculateAttenuation();
  26807. void CleanupConnection(Connection);
  26808. operator Component() const;
  26809. void DrawDebugGeometry(DebugRenderer, bool);
  26810. bool GetAnimationEnabled() const;
  26811. float GetAttenuation() const;
  26812. Variant GetAttribute(const String&) const;
  26813. Variant GetAttribute(uint) const;
  26814. ValueAnimation GetAttributeAnimation(const String&) const;
  26815. float GetAttributeAnimationSpeed(const String&) const;
  26816. float GetAttributeAnimationTime(const String&) const;
  26817. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26818. Variant GetAttributeDefault(const String&) const;
  26819. Variant GetAttributeDefault(uint) const;
  26820. AutoRemoveMode GetAutoRemoveMode() const;
  26821. bool GetBlockEvents() const;
  26822. Component GetComponent(StringHash) const;
  26823. VariantMap& GetEventDataMap() const;
  26824. Object GetEventSender() const;
  26825. float GetFarDistance() const;
  26826. float GetFrequency() const;
  26827. float GetGain() const;
  26828. uint GetID() const;
  26829. float GetInnerAngle() const;
  26830. bool GetInterceptNetworkUpdate(const String&) const;
  26831. float GetNearDistance() const;
  26832. Node GetNode() const;
  26833. uint GetNumAttributes() const;
  26834. uint GetNumNetworkAttributes() const;
  26835. ObjectAnimation GetObjectAnimation() const;
  26836. ResourceRef GetObjectAnimationAttr() const;
  26837. float GetOuterAngle() const;
  26838. float GetPanning() const;
  26839. int GetPositionAttr() const;
  26840. Scene GetScene() const;
  26841. Sound GetSound() const;
  26842. ResourceRef GetSoundAttr() const;
  26843. String GetSoundType() const;
  26844. Object GetSubsystem(StringHash) const;
  26845. float GetTimePosition() const;
  26846. StringHash GetType() const;
  26847. bool HasEventHandlers() const;
  26848. bool HasSubscribedToEvent(Object, StringHash) const;
  26849. bool HasSubscribedToEvent(StringHash) const;
  26850. bool IsEnabled() const;
  26851. bool IsEnabledEffective() const;
  26852. bool IsInstanceOf(StringHash) const;
  26853. bool IsPlaying() const;
  26854. bool IsReplicated() const;
  26855. bool IsTemporary() const;
  26856. bool Load(Deserializer&);
  26857. bool LoadJSON(const JSONValue&);
  26858. bool LoadXML(const XMLElement&);
  26859. void MarkNetworkUpdate();
  26860. operator Object() const;
  26861. void OnEvent(Object, StringHash, VariantMap&);
  26862. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26863. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26864. void OnSetEnabled();
  26865. void Play(Sound);
  26866. void Play(Sound, float);
  26867. void Play(Sound, float, float);
  26868. void Play(Sound, float, float, float);
  26869. void Play(SoundStream);
  26870. void PrepareNetworkUpdate();
  26871. bool ReadDeltaUpdate(Deserializer&);
  26872. bool ReadLatestDataUpdate(Deserializer&);
  26873. operator RefCounted() const;
  26874. int Refs() const;
  26875. void Remove();
  26876. void RemoveAttributeAnimation(const String&);
  26877. void RemoveInstanceDefault();
  26878. void RemoveObjectAnimation();
  26879. void ResetToDefault();
  26880. float RollAngleoffFactor() const;
  26881. bool Save(Serializer&) const;
  26882. bool SaveDefaultAttributes() const;
  26883. bool SaveJSON(JSONValue&) const;
  26884. bool SaveXML(XMLElement&) const;
  26885. void Seek(float);
  26886. void SendEvent(StringHash);
  26887. void SendEvent(StringHash, VariantMap&);
  26888. operator Serializable() const;
  26889. void SetAngleAttenuation(float, float);
  26890. void SetAnimationEnabled(bool);
  26891. void SetAnimationTime(float);
  26892. void SetAttenuation(float);
  26893. bool SetAttribute(const String&, const Variant&);
  26894. bool SetAttribute(uint, const Variant&);
  26895. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26896. void SetAttributeAnimationSpeed(const String&, float);
  26897. void SetAttributeAnimationTime(const String&, float);
  26898. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26899. void SetAutoRemoveMode(AutoRemoveMode);
  26900. void SetBlockEvents(bool);
  26901. void SetDistanceAttenuation(float, float, float);
  26902. void SetEnabled(bool);
  26903. void SetFarDistance(float);
  26904. void SetFrequency(float);
  26905. void SetGain(float);
  26906. void SetGlobalVar(StringHash, const Variant&);
  26907. void SetInnerAngle(float);
  26908. void SetInstanceDefault(bool);
  26909. void SetInterceptNetworkUpdate(const String&, bool);
  26910. void SetNearDistance(float);
  26911. void SetObjectAnimation(ObjectAnimation);
  26912. void SetObjectAnimationAttr(const ResourceRef&);
  26913. void SetOuterAngle(float);
  26914. void SetPanning(float);
  26915. void SetPlayingAttr(bool);
  26916. void SetPositionAttr(int);
  26917. void SetRolloffFactor(float);
  26918. void SetSoundAttr(const ResourceRef&);
  26919. void SetSoundType(const String&);
  26920. void SetTemporary(bool);
  26921. operator SoundSource() const;
  26922. void Stop();
  26923. const String& GetCategory() const;
  26924. const String& GetTypeName() const;
  26925. void UnsubscribeFromAllEvents();
  26926. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26927. void UnsubscribeFromEvent(Object, StringHash);
  26928. void UnsubscribeFromEvent(StringHash);
  26929. void UnsubscribeFromEvents(Object);
  26930. void Update(float);
  26931. void UpdateMasterGain();
  26932. const Variant& GetGlobalVar(StringHash) const;
  26933. const VariantMap& GetGlobalVars() const;
  26934. int WeakRefs() const;
  26935. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26936. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26937. void WriteLatestDataUpdate(Serializer&, uint8);
  26938. operator const Animatable() const;
  26939. operator const Component() const;
  26940. operator const Object() const;
  26941. operator const RefCounted() const;
  26942. operator const Serializable() const;
  26943. operator const SoundSource() const;
  26944. // Properties:
  26945. bool animationEnabled;
  26946. /* readonly */
  26947. float attenuation;
  26948. /* readonly */
  26949. Array<Variant> attributeDefaults;
  26950. /* readonly */
  26951. Array<AttributeInfo> attributeInfos;
  26952. Array<Variant> attributes;
  26953. AutoRemoveMode autoRemoveMode;
  26954. /* readonly */
  26955. String category;
  26956. bool enabled;
  26957. /* readonly */
  26958. bool enabledEffective;
  26959. float farDistance;
  26960. float frequency;
  26961. float gain;
  26962. Array<Variant> globalVar;
  26963. /* readonly */
  26964. VariantMap globalVars;
  26965. /* readonly */
  26966. uint id;
  26967. float innerAngle;
  26968. float nearDistance;
  26969. /* readonly */
  26970. Node node;
  26971. /* readonly */
  26972. uint numAttributes;
  26973. ObjectAnimation objectAnimation;
  26974. float outerAngle;
  26975. float panning;
  26976. /* readonly */
  26977. bool playing;
  26978. /* readonly */
  26979. int refs;
  26980. /* readonly */
  26981. bool replicated;
  26982. float rolloffFactor;
  26983. /* readonly */
  26984. Sound sound;
  26985. String soundType;
  26986. bool temporary;
  26987. /* readonly */
  26988. float timePosition;
  26989. /* readonly */
  26990. StringHash type;
  26991. /* readonly */
  26992. String typeName;
  26993. /* readonly */
  26994. int weakRefs;
  26995. };
  26996. class SoundStream
  26997. {
  26998. public:
  26999. // Methods:
  27000. operator BufferedSoundStream() const;
  27001. float GetFrequency() const;
  27002. uint GetIntFrequency() const;
  27003. uint GetSampleSize() const;
  27004. bool GetStopAtEnd() const;
  27005. bool IsSixteenBit() const;
  27006. bool IsStereo() const;
  27007. operator OggVorbisSoundStream() const;
  27008. operator RefCounted() const;
  27009. int Refs() const;
  27010. bool Seek(uint);
  27011. void SetFormat(uint, bool, bool);
  27012. void SetStopAtEnd(bool);
  27013. int WeakRefs() const;
  27014. operator const BufferedSoundStream() const;
  27015. operator const OggVorbisSoundStream() const;
  27016. operator const RefCounted() const;
  27017. // Properties:
  27018. /* readonly */
  27019. int refs;
  27020. /* readonly */
  27021. int weakRefs;
  27022. };
  27023. class SourceBatch
  27024. {
  27025. public:
  27026. ~SourceBatch();
  27027. SourceBatch();
  27028. SourceBatch(const SourceBatch&in);
  27029. // Methods:
  27030. SourceBatch& operator=(const SourceBatch&);
  27031. // Properties:
  27032. float distance;
  27033. GeometryType geometryType;
  27034. uint numWorldTransforms;
  27035. };
  27036. class SourceBatch2D
  27037. {
  27038. public:
  27039. ~SourceBatch2D();
  27040. SourceBatch2D();
  27041. // Methods:
  27042. SourceBatch2D& operator=(const SourceBatch2D&);
  27043. // Properties:
  27044. float distance;
  27045. int drawOrder;
  27046. };
  27047. class Sphere
  27048. {
  27049. public:
  27050. Sphere();
  27051. Sphere(const Sphere&in);
  27052. Sphere(const Vector3&in, float);
  27053. Sphere(const BoundingBox&in);
  27054. Sphere(const Frustum&in);
  27055. Sphere(const Polyhedron&in);
  27056. // Methods:
  27057. Sphere& operator=(const Sphere&);
  27058. bool operator==(const Sphere&) const;
  27059. void Clear();
  27060. void Define(const BoundingBox&);
  27061. void Define(const Frustum&);
  27062. void Define(const Polyhedron&);
  27063. void Define(const Sphere&);
  27064. void Define(const Vector3&, float);
  27065. bool Defined() const;
  27066. float Distance(const Vector3&) const;
  27067. Vector3 GetLocalPoint(float, float) const;
  27068. Vector3 GetPoint(float, float) const;
  27069. Intersection IsInside(const BoundingBox&) const;
  27070. Intersection IsInside(const Sphere&) const;
  27071. Intersection IsInside(const Vector3&) const;
  27072. Intersection IsInsideFast(const BoundingBox&) const;
  27073. Intersection IsInsideFast(const Sphere&) const;
  27074. void Merge(const BoundingBox&);
  27075. void Merge(const Frustum&);
  27076. void Merge(const Polyhedron&);
  27077. void Merge(const Sphere&);
  27078. void Merge(const Vector3&);
  27079. // Properties:
  27080. Vector3 center;
  27081. float radius;
  27082. };
  27083. class Spline
  27084. {
  27085. public:
  27086. ~Spline();
  27087. Spline();
  27088. Spline(InterpolationMode);
  27089. Spline(const Spline&in);
  27090. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  27091. // Methods:
  27092. Spline& operator=(const Spline&);
  27093. bool operator==(const Spline&) const;
  27094. void AddKnot(const Variant&);
  27095. void AddKnot(const Variant&, uint);
  27096. void Clear();
  27097. InterpolationMode GetInterpolationMode() const;
  27098. Variant GetKnot(uint) const;
  27099. Variant GetPoint(float) const;
  27100. void RemoveKnot();
  27101. void RemoveKnot(uint);
  27102. void SetInterpolationMode(InterpolationMode);
  27103. void SetKnot(const Variant&, uint);
  27104. // Properties:
  27105. InterpolationMode interpolationMode;
  27106. Array<Variant> knot;
  27107. Array<Variant> knots;
  27108. };
  27109. class SplinePath
  27110. {
  27111. public:
  27112. SplinePath();
  27113. // Methods:
  27114. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  27115. void AllocateNetworkState();
  27116. operator Animatable() const;
  27117. void ApplyAttributes();
  27118. void CleanupConnection(Connection);
  27119. void ClearControlPoints();
  27120. operator Component() const;
  27121. void DrawDebugGeometry(DebugRenderer, bool);
  27122. bool GetAnimationEnabled() const;
  27123. Variant GetAttribute(const String&) const;
  27124. Variant GetAttribute(uint) const;
  27125. ValueAnimation GetAttributeAnimation(const String&) const;
  27126. float GetAttributeAnimationSpeed(const String&) const;
  27127. float GetAttributeAnimationTime(const String&) const;
  27128. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  27129. Variant GetAttributeDefault(const String&) const;
  27130. Variant GetAttributeDefault(uint) const;
  27131. bool GetBlockEvents() const;
  27132. Component GetComponent(StringHash) const;
  27133. uint GetControlledIdAttr() const;
  27134. Node GetControlledNode() const;
  27135. VariantMap& GetEventDataMap() const;
  27136. Object GetEventSender() const;
  27137. uint GetID() const;
  27138. bool GetInterceptNetworkUpdate(const String&) const;
  27139. InterpolationMode GetInterpolationMode() const;
  27140. float GetLength() const;
  27141. Node GetNode() const;
  27142. uint GetNumAttributes() const;
  27143. uint GetNumNetworkAttributes() const;
  27144. ObjectAnimation GetObjectAnimation() const;
  27145. ResourceRef GetObjectAnimationAttr() const;
  27146. Vector3 GetPoint(float) const;
  27147. Vector3 GetPosition() const;
  27148. Scene GetScene() const;
  27149. float GetSpeed() const;
  27150. Object GetSubsystem(StringHash) const;
  27151. StringHash GetType() const;
  27152. bool HasEventHandlers() const;
  27153. bool HasSubscribedToEvent(Object, StringHash) const;
  27154. bool HasSubscribedToEvent(StringHash) const;
  27155. bool IsEnabled() const;
  27156. bool IsEnabledEffective() const;
  27157. bool IsFinished() const;
  27158. bool IsInstanceOf(StringHash) const;
  27159. bool IsReplicated() const;
  27160. bool IsTemporary() const;
  27161. bool Load(Deserializer&);
  27162. bool LoadJSON(const JSONValue&);
  27163. bool LoadXML(const XMLElement&);
  27164. void MarkNetworkUpdate();
  27165. void Move(float);
  27166. operator Object() const;
  27167. void OnEvent(Object, StringHash, VariantMap&);
  27168. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  27169. void OnSetAttribute(const AttributeInfo&, const Variant&);
  27170. void OnSetEnabled();
  27171. void PrepareNetworkUpdate();
  27172. bool ReadDeltaUpdate(Deserializer&);
  27173. bool ReadLatestDataUpdate(Deserializer&);
  27174. operator RefCounted() const;
  27175. int Refs() const;
  27176. void Remove();
  27177. void RemoveAttributeAnimation(const String&);
  27178. void RemoveControlPoint(Node);
  27179. void RemoveInstanceDefault();
  27180. void RemoveObjectAnimation();
  27181. void Reset();
  27182. void ResetToDefault();
  27183. bool Save(Serializer&) const;
  27184. bool SaveDefaultAttributes() const;
  27185. bool SaveJSON(JSONValue&) const;
  27186. bool SaveXML(XMLElement&) const;
  27187. void SendEvent(StringHash);
  27188. void SendEvent(StringHash, VariantMap&);
  27189. operator Serializable() const;
  27190. void SetAnimationEnabled(bool);
  27191. void SetAnimationTime(float);
  27192. bool SetAttribute(const String&, const Variant&);
  27193. bool SetAttribute(uint, const Variant&);
  27194. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  27195. void SetAttributeAnimationSpeed(const String&, float);
  27196. void SetAttributeAnimationTime(const String&, float);
  27197. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  27198. void SetBlockEvents(bool);
  27199. void SetControlledIdAttr(uint);
  27200. void SetControlledNode(Node);
  27201. void SetEnabled(bool);
  27202. void SetGlobalVar(StringHash, const Variant&);
  27203. void SetInstanceDefault(bool);
  27204. void SetInterceptNetworkUpdate(const String&, bool);
  27205. void SetInterpolationMode(InterpolationMode);
  27206. void SetObjectAnimation(ObjectAnimation);
  27207. void SetObjectAnimationAttr(const ResourceRef&);
  27208. void SetPosition(float);
  27209. void SetSpeed(float);
  27210. void SetTemporary(bool);
  27211. const String& GetCategory() const;
  27212. const String& GetTypeName() const;
  27213. void UnsubscribeFromAllEvents();
  27214. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27215. void UnsubscribeFromEvent(Object, StringHash);
  27216. void UnsubscribeFromEvent(StringHash);
  27217. void UnsubscribeFromEvents(Object);
  27218. const Variant& GetGlobalVar(StringHash) const;
  27219. const VariantMap& GetGlobalVars() const;
  27220. int WeakRefs() const;
  27221. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  27222. void WriteInitialDeltaUpdate(Serializer&, uint8);
  27223. void WriteLatestDataUpdate(Serializer&, uint8);
  27224. operator const Animatable() const;
  27225. operator const Component() const;
  27226. operator const Object() const;
  27227. operator const RefCounted() const;
  27228. operator const Serializable() const;
  27229. // Properties:
  27230. bool animationEnabled;
  27231. /* readonly */
  27232. Array<Variant> attributeDefaults;
  27233. /* readonly */
  27234. Array<AttributeInfo> attributeInfos;
  27235. Array<Variant> attributes;
  27236. /* readonly */
  27237. String category;
  27238. Node controlledNode;
  27239. bool enabled;
  27240. /* readonly */
  27241. bool enabledEffective;
  27242. Array<Variant> globalVar;
  27243. /* readonly */
  27244. VariantMap globalVars;
  27245. /* readonly */
  27246. uint id;
  27247. InterpolationMode interpolationMode;
  27248. /* readonly */
  27249. bool isFinished;
  27250. /* readonly */
  27251. float length;
  27252. /* readonly */
  27253. Node node;
  27254. /* readonly */
  27255. uint numAttributes;
  27256. ObjectAnimation objectAnimation;
  27257. /* readonly */
  27258. int refs;
  27259. /* readonly */
  27260. bool replicated;
  27261. float speed;
  27262. bool temporary;
  27263. /* readonly */
  27264. StringHash type;
  27265. /* readonly */
  27266. String typeName;
  27267. /* readonly */
  27268. int weakRefs;
  27269. };
  27270. class Sprite
  27271. {
  27272. public:
  27273. Sprite();
  27274. // Methods:
  27275. void AddChild(UIElement);
  27276. void AddTag(const String&);
  27277. void AddTags(Array<String>);
  27278. void AddTags(const String&, int8 = ';');
  27279. void AdjustScissor(IntRect&);
  27280. void AllocateNetworkState();
  27281. operator Animatable() const;
  27282. void ApplyAttributes();
  27283. void BringToFront();
  27284. const Color& GetColor(Corner) const;
  27285. const Color& GetColorAttr() const;
  27286. const Color& GetDerivedColor() const;
  27287. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  27288. void DisableLayoutUpdate();
  27289. IntVector2 ElementToScreen(const IntVector2&);
  27290. void EnableLayoutUpdate();
  27291. bool FilterAttributes(XMLElement&) const;
  27292. uint FindChild(UIElement) const;
  27293. bool GetAnimationEnabled() const;
  27294. Variant GetAttribute(const String&) const;
  27295. Variant GetAttribute(uint) const;
  27296. ValueAnimation GetAttributeAnimation(const String&) const;
  27297. float GetAttributeAnimationSpeed(const String&) const;
  27298. float GetAttributeAnimationTime(const String&) const;
  27299. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  27300. Variant GetAttributeDefault(const String&) const;
  27301. Variant GetAttributeDefault(uint) const;
  27302. BlendMode GetBlendMode() const;
  27303. bool GetBlockEvents() const;
  27304. bool GetBringToBack() const;
  27305. bool GetBringToFront() const;
  27306. UIElement GetChild(const String&, bool = false) const;
  27307. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  27308. UIElement GetChild(uint) const;
  27309. Array<UIElement> GetChildren() const;
  27310. Array<UIElement> GetChildren(bool) const;
  27311. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  27312. bool GetClipChildren() const;
  27313. IntRect GetCombinedScreenRect();
  27314. XMLFile GetDefaultStyle(bool = true) const;
  27315. float GetDerivedOpacity() const;
  27316. uint GetDragButtonCombo() const;
  27317. uint GetDragButtonCount() const;
  27318. uint GetDragDropMode() const;
  27319. IntVector2 GetEffectiveMinSize() const;
  27320. UIElement GetElementEventSender() const;
  27321. bool GetEnableAnchor() const;
  27322. VariantMap& GetEventDataMap() const;
  27323. Object GetEventSender() const;
  27324. FocusMode GetFocusMode() const;
  27325. int GetHeight() const;
  27326. HorizontalAlignment GetHorizontalAlignment() const;
  27327. int GetIndent() const;
  27328. int GetIndentSpacing() const;
  27329. int GetIndentWidth() const;
  27330. bool GetInterceptNetworkUpdate(const String&) const;
  27331. int GetLayoutElementMaxSize() const;
  27332. LayoutMode GetLayoutMode() const;
  27333. int GetLayoutSpacing() const;
  27334. int GetMaxHeight() const;
  27335. int GetMaxWidth() const;
  27336. int GetMinHeight() const;
  27337. int GetMinWidth() const;
  27338. uint GetNumAttributes() const;
  27339. uint GetNumChildren(bool = false) const;
  27340. uint GetNumNetworkAttributes() const;
  27341. ObjectAnimation GetObjectAnimation() const;
  27342. ResourceRef GetObjectAnimationAttr() const;
  27343. float GetOpacity() const;
  27344. UIElement GetParent() const;
  27345. int GetPriority() const;
  27346. UIElement GetRoot() const;
  27347. float GetRotation() const;
  27348. bool GetSortChildren() const;
  27349. Object GetSubsystem(StringHash) const;
  27350. Array<String> GetTags() const;
  27351. Texture GetTexture() const;
  27352. ResourceRef GetTextureAttr() const;
  27353. TraversalMode GetTraversalMode() const;
  27354. StringHash GetType() const;
  27355. bool GetUseDerivedOpacity() const;
  27356. VerticalAlignment GetVerticalAlignment() const;
  27357. int GetWidth() const;
  27358. bool HasColorGradient() const;
  27359. bool HasEventHandlers() const;
  27360. bool HasFocus() const;
  27361. bool HasSubscribedToEvent(Object, StringHash) const;
  27362. bool HasSubscribedToEvent(StringHash) const;
  27363. bool HasTag(const String&) const;
  27364. void InsertChild(uint, UIElement);
  27365. const IntRect& GetClipBorder() const;
  27366. const IntRect& GetImageRect() const;
  27367. const IntRect& GetLayoutBorder() const;
  27368. const IntVector2& GetChildOffset() const;
  27369. const IntVector2& GetHotSpot() const;
  27370. const IntVector2& GetMaxOffset() const;
  27371. const IntVector2& GetMaxSize() const;
  27372. const IntVector2& GetMinOffset() const;
  27373. const IntVector2& GetMinSize() const;
  27374. const IntVector2& GetScreenPosition() const;
  27375. const IntVector2& GetSize() const;
  27376. bool IsChildOf(UIElement) const;
  27377. bool IsEditable() const;
  27378. bool IsElementEventSender() const;
  27379. bool IsEnabled() const;
  27380. bool IsEnabledSelf() const;
  27381. bool IsFixedHeight() const;
  27382. bool IsFixedSize() const;
  27383. bool IsFixedWidth() const;
  27384. bool IsHovering() const;
  27385. bool IsInside(IntVector2, bool);
  27386. bool IsInsideCombined(IntVector2, bool);
  27387. bool IsInstanceOf(StringHash) const;
  27388. bool IsInternal() const;
  27389. bool IsSelected() const;
  27390. bool IsTemporary() const;
  27391. bool IsVisible() const;
  27392. bool IsVisibleEffective() const;
  27393. bool IsWheelHandler() const;
  27394. bool IsWithinScissor(const IntRect&);
  27395. bool Load(Deserializer&);
  27396. UIElement LoadChildXML(XMLFile, XMLFile);
  27397. UIElement LoadChildXML(const XMLElement&, XMLFile);
  27398. bool LoadJSON(const JSONValue&);
  27399. bool LoadXML(Deserializer&);
  27400. bool LoadXML(File);
  27401. bool LoadXML(VectorBuffer&);
  27402. bool LoadXML(XMLFile, XMLFile);
  27403. bool LoadXML(const XMLElement&);
  27404. bool LoadXML(const XMLElement&, XMLFile);
  27405. void MarkNetworkUpdate();
  27406. const Matrix3x4& GetTransform() const;
  27407. operator Object() const;
  27408. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  27409. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  27410. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  27411. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27412. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27413. bool OnDragDropFinish(UIElement);
  27414. bool OnDragDropTest(UIElement);
  27415. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27416. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27417. void OnEvent(Object, StringHash, VariantMap&);
  27418. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  27419. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27420. void OnIndentSet();
  27421. void OnKey(uint, uint, uint);
  27422. void OnPositionSet(const IntVector2&);
  27423. void OnResize(const IntVector2&, const IntVector2&);
  27424. void OnSetAttribute(const AttributeInfo&, const Variant&);
  27425. void OnSetEditable();
  27426. void OnTextInput(const String&);
  27427. void OnWheel(int, uint, uint);
  27428. bool ReadDeltaUpdate(Deserializer&);
  27429. bool ReadLatestDataUpdate(Deserializer&);
  27430. operator RefCounted() const;
  27431. int Refs() const;
  27432. void Remove();
  27433. void RemoveAllChildren();
  27434. void RemoveAllTags();
  27435. void RemoveAttributeAnimation(const String&);
  27436. void RemoveChild(UIElement, uint = 0);
  27437. void RemoveChild(uint);
  27438. void RemoveChildAtIndex(uint);
  27439. void RemoveInstanceDefault();
  27440. void RemoveObjectAnimation();
  27441. bool RemoveTag(const String&);
  27442. void ResetDeepEnabled();
  27443. void ResetToDefault();
  27444. bool Save(Serializer&) const;
  27445. bool SaveDefaultAttributes() const;
  27446. bool SaveJSON(JSONValue&) const;
  27447. bool SaveXML(File, const String& indentation = "\t");
  27448. bool SaveXML(Serializer&, const String& = "\t") const;
  27449. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  27450. bool SaveXML(XMLElement&) const;
  27451. IntVector2 ScreenToElement(const IntVector2&);
  27452. void SendEvent(StringHash);
  27453. void SendEvent(StringHash, VariantMap&);
  27454. operator Serializable() const;
  27455. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  27456. void SetAnimationEnabled(bool);
  27457. void SetAnimationTime(float);
  27458. bool SetAttribute(const String&, const Variant&);
  27459. bool SetAttribute(uint, const Variant&);
  27460. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  27461. void SetAttributeAnimationSpeed(const String&, float);
  27462. void SetAttributeAnimationTime(const String&, float);
  27463. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  27464. void SetBlendMode(BlendMode);
  27465. void SetBlockEvents(bool);
  27466. void SetBringToBack(bool);
  27467. void SetBringToFront(bool);
  27468. void SetChildOffset(const IntVector2&);
  27469. void SetClipBorder(const IntRect&);
  27470. void SetClipChildren(bool);
  27471. void SetColor(Corner, const Color&);
  27472. void SetColor(const Color&);
  27473. void SetDeepEnabled(bool);
  27474. void SetDefaultStyle(XMLFile);
  27475. void SetDragDropMode(uint);
  27476. void SetEditable(bool);
  27477. void SetElementEventSender(bool);
  27478. void SetEnableAnchor(bool);
  27479. void SetEnabled(bool);
  27480. void SetEnabledRecursive(bool);
  27481. void SetFixedHeight(int);
  27482. void SetFixedSize(const IntVector2&);
  27483. void SetFixedSize(int, int);
  27484. void SetFixedWidth(int);
  27485. void SetFocus(bool);
  27486. void SetFocusMode(FocusMode);
  27487. void SetFullImageRect();
  27488. void SetGlobalVar(StringHash, const Variant&);
  27489. void SetHeight(int);
  27490. void SetHorizontalAlignment(HorizontalAlignment);
  27491. void SetHotSpot(const IntVector2&);
  27492. void SetHotSpot(int, int);
  27493. void SetHovering(bool);
  27494. void SetImageRect(const IntRect&);
  27495. void SetIndent(int);
  27496. void SetIndentSpacing(int);
  27497. void SetInstanceDefault(bool);
  27498. void SetInterceptNetworkUpdate(const String&, bool);
  27499. void SetInternal(bool);
  27500. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  27501. void SetLayoutBorder(const IntRect&);
  27502. void SetLayoutFlexScale(const Vector2&);
  27503. void SetLayoutMode(LayoutMode);
  27504. void SetLayoutSpacing(int);
  27505. void SetMaxAnchor(const Vector2&);
  27506. void SetMaxAnchor(float, float);
  27507. void SetMaxHeight(int);
  27508. void SetMaxOffset(const IntVector2&);
  27509. void SetMaxSize(const IntVector2&);
  27510. void SetMaxSize(int, int);
  27511. void SetMaxWidth(int);
  27512. void SetMinAnchor(const Vector2&);
  27513. void SetMinAnchor(float, float);
  27514. void SetMinHeight(int);
  27515. void SetMinOffset(const IntVector2&);
  27516. void SetMinSize(const IntVector2&);
  27517. void SetMinSize(int, int);
  27518. void SetMinWidth(int);
  27519. void SetName(const String&);
  27520. void SetObjectAnimation(ObjectAnimation);
  27521. void SetObjectAnimationAttr(const ResourceRef&);
  27522. void SetOpacity(float);
  27523. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  27524. void SetPivot(const Vector2&);
  27525. void SetPivot(float, float);
  27526. void SetPosition(const Vector2&);
  27527. void SetPosition(float, float);
  27528. void SetPriority(int);
  27529. void SetRenderTexture(Texture2D);
  27530. void SetRotation(float);
  27531. void SetScale(const Vector2&);
  27532. void SetScale(float);
  27533. void SetScale(float, float);
  27534. void SetSelected(bool);
  27535. void SetSize(const IntVector2&);
  27536. void SetSize(int, int);
  27537. void SetSortChildren(bool);
  27538. bool SetStyle(const String&, XMLFile = null);
  27539. bool SetStyle(const XMLElement&);
  27540. bool SetStyleAuto(XMLFile = null);
  27541. void SetTags(Array<String>);
  27542. void SetTemporary(bool);
  27543. void SetTexture(Texture);
  27544. void SetTextureAttr(const ResourceRef&);
  27545. void SetTraversalMode(TraversalMode);
  27546. void SetUseDerivedOpacity(bool);
  27547. void SetVar(StringHash, const Variant&);
  27548. void SetVerticalAlignment(VerticalAlignment);
  27549. void SetVisible(bool);
  27550. void SetWidth(int);
  27551. void SortChildren();
  27552. const String& GetAppliedStyle() const;
  27553. const String& GetCategory() const;
  27554. const String& GetName() const;
  27555. const String& GetTypeName() const;
  27556. operator UIElement() const;
  27557. void UnsubscribeFromAllEvents();
  27558. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27559. void UnsubscribeFromEvent(Object, StringHash);
  27560. void UnsubscribeFromEvent(StringHash);
  27561. void UnsubscribeFromEvents(Object);
  27562. void Update(float);
  27563. void UpdateLayout();
  27564. const Variant& GetGlobalVar(StringHash) const;
  27565. const Variant& GetVar(const StringHash&) const;
  27566. const VariantMap& GetGlobalVars() const;
  27567. const VariantMap& GetVars() const;
  27568. const Vector2& GetLayoutFlexScale() const;
  27569. const Vector2& GetMaxAnchor() const;
  27570. const Vector2& GetMinAnchor() const;
  27571. const Vector2& GetPivot() const;
  27572. const Vector2& GetPosition() const;
  27573. const Vector2& GetScale() const;
  27574. int WeakRefs() const;
  27575. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  27576. void WriteInitialDeltaUpdate(Serializer&, uint8);
  27577. void WriteLatestDataUpdate(Serializer&, uint8);
  27578. operator const Animatable() const;
  27579. operator const Object() const;
  27580. operator const RefCounted() const;
  27581. operator const Serializable() const;
  27582. operator const UIElement() const;
  27583. // Properties:
  27584. bool animationEnabled;
  27585. /* readonly */
  27586. Array<Variant> attributeDefaults;
  27587. /* readonly */
  27588. Array<AttributeInfo> attributeInfos;
  27589. Array<Variant> attributes;
  27590. BlendMode blendMode;
  27591. bool bringToBack;
  27592. bool bringToFront;
  27593. /* readonly */
  27594. String category;
  27595. /* readonly */
  27596. IntVector2 childOffset;
  27597. /* readonly */
  27598. Array<UIElement> children;
  27599. IntRect clipBorder;
  27600. bool clipChildren;
  27601. /* writeonly */
  27602. Color color;
  27603. /* readonly */
  27604. bool colorGradient;
  27605. Array<Color> colors;
  27606. /* readonly */
  27607. IntRect combinedScreenRect;
  27608. XMLFile defaultStyle;
  27609. /* readonly */
  27610. float derivedOpacity;
  27611. /* readonly */
  27612. uint dragButtonCombo;
  27613. /* readonly */
  27614. uint dragButtonCount;
  27615. uint dragDropMode;
  27616. bool editable;
  27617. bool elementEventSender;
  27618. bool enableAnchor;
  27619. bool enabled;
  27620. /* readonly */
  27621. bool enabledSelf;
  27622. /* readonly */
  27623. bool fixedHeight;
  27624. /* readonly */
  27625. bool fixedSize;
  27626. /* readonly */
  27627. bool fixedWidth;
  27628. bool focus;
  27629. FocusMode focusMode;
  27630. Array<Variant> globalVar;
  27631. /* readonly */
  27632. VariantMap globalVars;
  27633. int height;
  27634. HorizontalAlignment horizontalAlignment;
  27635. IntVector2 hotSpot;
  27636. /* readonly */
  27637. bool hovering;
  27638. IntRect imageRect;
  27639. int indent;
  27640. int indentSpacing;
  27641. /* readonly */
  27642. int indentWidth;
  27643. bool internal;
  27644. IntRect layoutBorder;
  27645. Vector2 layoutFlexScale;
  27646. LayoutMode layoutMode;
  27647. int layoutSpacing;
  27648. Vector2 maxAnchor;
  27649. int maxHeight;
  27650. IntVector2 maxOffset;
  27651. IntVector2 maxSize;
  27652. int maxWidth;
  27653. Vector2 minAnchor;
  27654. int minHeight;
  27655. IntVector2 minOffset;
  27656. IntVector2 minSize;
  27657. int minWidth;
  27658. String name;
  27659. /* readonly */
  27660. uint numAllChildren;
  27661. /* readonly */
  27662. uint numAttributes;
  27663. /* readonly */
  27664. uint numChildren;
  27665. ObjectAnimation objectAnimation;
  27666. float opacity;
  27667. UIElement parent;
  27668. Vector2 pivot;
  27669. Vector2 position;
  27670. int priority;
  27671. /* readonly */
  27672. int refs;
  27673. /* readonly */
  27674. UIElement root;
  27675. float rotation;
  27676. Vector2 scale;
  27677. /* readonly */
  27678. IntVector2 screenPosition;
  27679. bool selected;
  27680. IntVector2 size;
  27681. bool sortChildren;
  27682. String style;
  27683. /* readonly */
  27684. Array<String> tags;
  27685. bool temporary;
  27686. Texture texture;
  27687. TraversalMode traversalMode;
  27688. /* readonly */
  27689. StringHash type;
  27690. /* readonly */
  27691. String typeName;
  27692. bool useDerivedOpacity;
  27693. /* readonly */
  27694. VariantMap vars;
  27695. VerticalAlignment verticalAlignment;
  27696. bool visible;
  27697. /* readonly */
  27698. bool visibleEffective;
  27699. /* readonly */
  27700. int weakRefs;
  27701. int width;
  27702. };
  27703. class Sprite2D
  27704. {
  27705. public:
  27706. Sprite2D();
  27707. // Methods:
  27708. bool BeginLoad(Deserializer&);
  27709. bool EndLoad();
  27710. AsyncLoadState GetAsyncLoadState() const;
  27711. bool GetBlockEvents() const;
  27712. bool GetDrawRectangle(Rect&, bool = false, bool = false) const;
  27713. bool GetDrawRectangle(Rect&, const Vector2&, bool = false, bool = false) const;
  27714. VariantMap& GetEventDataMap() const;
  27715. Object GetEventSender() const;
  27716. uint GetMemoryUse() const;
  27717. StringHash GetNameHash() const;
  27718. SpriteSheet2D GetSpriteSheet() const;
  27719. Object GetSubsystem(StringHash) const;
  27720. Texture2D GetTexture() const;
  27721. float GetTextureEdgeOffset() const;
  27722. bool GetTextureRectangle(Rect&, bool = false, bool = false) const;
  27723. StringHash GetType() const;
  27724. uint GetUseTimer();
  27725. bool HasEventHandlers() const;
  27726. bool HasSubscribedToEvent(Object, StringHash) const;
  27727. bool HasSubscribedToEvent(StringHash) const;
  27728. const IntRect& GetRectangle() const;
  27729. const IntVector2& GetOffset() const;
  27730. bool IsInstanceOf(StringHash) const;
  27731. bool Load(Deserializer&);
  27732. bool Load(File);
  27733. bool Load(VectorBuffer&);
  27734. bool Load(const String&);
  27735. bool LoadFile(const String&);
  27736. operator Object() const;
  27737. void OnEvent(Object, StringHash, VariantMap&);
  27738. operator RefCounted() const;
  27739. int Refs() const;
  27740. void ResetUseTimer();
  27741. operator Resource() const;
  27742. bool Save(File) const;
  27743. bool Save(Serializer&) const;
  27744. bool Save(VectorBuffer&) const;
  27745. bool Save(const String&) const;
  27746. bool SaveFile(const String&) const;
  27747. void SendEvent(StringHash);
  27748. void SendEvent(StringHash, VariantMap&);
  27749. void SetAsyncLoadState(AsyncLoadState);
  27750. void SetBlockEvents(bool);
  27751. void SetGlobalVar(StringHash, const Variant&);
  27752. void SetHotSpot(const Vector2&);
  27753. void SetMemoryUse(uint);
  27754. void SetName(const String&);
  27755. void SetOffset(const IntVector2&);
  27756. void SetRectangle(const IntRect&);
  27757. void SetSpriteSheet(SpriteSheet2D);
  27758. void SetTexture(Texture2D);
  27759. void SetTextureEdgeOffset(float);
  27760. const String& GetCategory() const;
  27761. const String& GetName() const;
  27762. const String& GetTypeName() const;
  27763. void UnsubscribeFromAllEvents();
  27764. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27765. void UnsubscribeFromEvent(Object, StringHash);
  27766. void UnsubscribeFromEvent(StringHash);
  27767. void UnsubscribeFromEvents(Object);
  27768. const Variant& GetGlobalVar(StringHash) const;
  27769. const VariantMap& GetGlobalVars() const;
  27770. const Vector2& GetHotSpot() const;
  27771. int WeakRefs() const;
  27772. operator const Object() const;
  27773. operator const RefCounted() const;
  27774. operator const Resource() const;
  27775. // Properties:
  27776. /* readonly */
  27777. String category;
  27778. Array<Variant> globalVar;
  27779. /* readonly */
  27780. VariantMap globalVars;
  27781. Vector2 hotSpot;
  27782. /* readonly */
  27783. uint memoryUse;
  27784. String name;
  27785. IntVector2 offset;
  27786. IntRect rectangle;
  27787. /* readonly */
  27788. int refs;
  27789. Texture2D texture;
  27790. float textureEdgeOffset;
  27791. /* readonly */
  27792. StringHash type;
  27793. /* readonly */
  27794. String typeName;
  27795. /* readonly */
  27796. uint useTimer;
  27797. /* readonly */
  27798. int weakRefs;
  27799. };
  27800. class SpriteSheet2D
  27801. {
  27802. public:
  27803. SpriteSheet2D();
  27804. // Methods:
  27805. bool BeginLoad(Deserializer&);
  27806. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  27807. bool EndLoad();
  27808. AsyncLoadState GetAsyncLoadState() const;
  27809. bool GetBlockEvents() const;
  27810. VariantMap& GetEventDataMap() const;
  27811. Object GetEventSender() const;
  27812. uint GetMemoryUse() const;
  27813. StringHash GetNameHash() const;
  27814. Sprite2D GetSprite(const String&) const;
  27815. Object GetSubsystem(StringHash) const;
  27816. Texture2D GetTexture() const;
  27817. StringHash GetType() const;
  27818. uint GetUseTimer();
  27819. bool HasEventHandlers() const;
  27820. bool HasSubscribedToEvent(Object, StringHash) const;
  27821. bool HasSubscribedToEvent(StringHash) const;
  27822. bool IsInstanceOf(StringHash) const;
  27823. bool Load(Deserializer&);
  27824. bool Load(File);
  27825. bool Load(VectorBuffer&);
  27826. bool Load(const String&);
  27827. bool LoadFile(const String&);
  27828. operator Object() const;
  27829. void OnEvent(Object, StringHash, VariantMap&);
  27830. operator RefCounted() const;
  27831. int Refs() const;
  27832. void ResetUseTimer();
  27833. operator Resource() const;
  27834. bool Save(File) const;
  27835. bool Save(Serializer&) const;
  27836. bool Save(VectorBuffer&) const;
  27837. bool Save(const String&) const;
  27838. bool SaveFile(const String&) const;
  27839. void SendEvent(StringHash);
  27840. void SendEvent(StringHash, VariantMap&);
  27841. void SetAsyncLoadState(AsyncLoadState);
  27842. void SetBlockEvents(bool);
  27843. void SetGlobalVar(StringHash, const Variant&);
  27844. void SetMemoryUse(uint);
  27845. void SetName(const String&);
  27846. void SetTexture(Texture2D);
  27847. const String& GetCategory() const;
  27848. const String& GetName() const;
  27849. const String& GetTypeName() const;
  27850. void UnsubscribeFromAllEvents();
  27851. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27852. void UnsubscribeFromEvent(Object, StringHash);
  27853. void UnsubscribeFromEvent(StringHash);
  27854. void UnsubscribeFromEvents(Object);
  27855. const Variant& GetGlobalVar(StringHash) const;
  27856. const VariantMap& GetGlobalVars() const;
  27857. int WeakRefs() const;
  27858. operator const Object() const;
  27859. operator const RefCounted() const;
  27860. operator const Resource() const;
  27861. // Properties:
  27862. /* readonly */
  27863. String category;
  27864. Array<Variant> globalVar;
  27865. /* readonly */
  27866. VariantMap globalVars;
  27867. /* readonly */
  27868. uint memoryUse;
  27869. String name;
  27870. /* readonly */
  27871. int refs;
  27872. Texture2D texture;
  27873. /* readonly */
  27874. StringHash type;
  27875. /* readonly */
  27876. String typeName;
  27877. /* readonly */
  27878. uint useTimer;
  27879. /* readonly */
  27880. int weakRefs;
  27881. };
  27882. class StaticModel
  27883. {
  27884. public:
  27885. StaticModel();
  27886. // Methods:
  27887. void AddLight(Light);
  27888. void AddVertexLight(Light);
  27889. void AllocateNetworkState();
  27890. operator Animatable() const;
  27891. operator AnimatedModel() const;
  27892. void ApplyAttributes();
  27893. void ApplyMaterialList(const String& = String :: EMPTY);
  27894. const BoundingBox& GetBoundingBox() const;
  27895. const BoundingBox& GetWorldBoundingBox();
  27896. void CleanupConnection(Connection);
  27897. operator Component() const;
  27898. void DrawDebugGeometry(DebugRenderer, bool);
  27899. bool DrawOcclusion(OcclusionBuffer);
  27900. operator Drawable() const;
  27901. bool GetAnimationEnabled() const;
  27902. Variant GetAttribute(const String&) const;
  27903. Variant GetAttribute(uint) const;
  27904. ValueAnimation GetAttributeAnimation(const String&) const;
  27905. float GetAttributeAnimationSpeed(const String&) const;
  27906. float GetAttributeAnimationTime(const String&) const;
  27907. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  27908. Variant GetAttributeDefault(const String&) const;
  27909. Variant GetAttributeDefault(uint) const;
  27910. bool GetBlockEvents() const;
  27911. bool GetCastShadows() const;
  27912. Component GetComponent(StringHash) const;
  27913. float GetDistance() const;
  27914. float GetDrawDistance() const;
  27915. uint8 GetDrawableFlags() const;
  27916. VariantMap& GetEventDataMap() const;
  27917. Object GetEventSender() const;
  27918. Light GetFirstLight() const;
  27919. uint GetID() const;
  27920. bool GetInterceptNetworkUpdate(const String&) const;
  27921. uint GetLightMask() const;
  27922. Array<Light> GetLights() const;
  27923. float GetLodBias() const;
  27924. float GetLodDistance() const;
  27925. Geometry GetLodGeometry(uint, uint);
  27926. Material GetMaterial() const;
  27927. Material GetMaterial(uint) const;
  27928. uint GetMaxLights() const;
  27929. float GetMaxZ() const;
  27930. float GetMinZ() const;
  27931. Model GetModel() const;
  27932. ResourceRef GetModelAttr() const;
  27933. Node GetNode() const;
  27934. uint GetNumAttributes() const;
  27935. uint GetNumGeometries() const;
  27936. uint GetNumNetworkAttributes() const;
  27937. uint GetNumOccluderTriangles();
  27938. ObjectAnimation GetObjectAnimation() const;
  27939. ResourceRef GetObjectAnimationAttr() const;
  27940. uint GetOcclusionLodLevel() const;
  27941. Scene GetScene() const;
  27942. float GetShadowDistance() const;
  27943. uint GetShadowMask() const;
  27944. float GetSortValue() const;
  27945. Object GetSubsystem(StringHash) const;
  27946. StringHash GetType() const;
  27947. UpdateGeometryType GetUpdateGeometryType();
  27948. Array<Light> GetVertexLights() const;
  27949. uint GetViewMask() const;
  27950. Zone GetZone() const;
  27951. uint GetZoneMask() const;
  27952. bool HasBasePass(uint) const;
  27953. bool HasEventHandlers() const;
  27954. bool HasSubscribedToEvent(Object, StringHash) const;
  27955. bool HasSubscribedToEvent(StringHash) const;
  27956. bool IsEnabled() const;
  27957. bool IsEnabledEffective() const;
  27958. bool IsInView() const;
  27959. bool IsInView(Camera) const;
  27960. bool IsInView(const FrameInfo&, bool = false) const;
  27961. bool IsInside(const Vector3&) const;
  27962. bool IsInsideLocal(const Vector3&) const;
  27963. bool IsInstanceOf(StringHash) const;
  27964. bool IsOccludee() const;
  27965. bool IsOccluder() const;
  27966. bool IsReplicated() const;
  27967. bool IsTemporary() const;
  27968. bool IsZoneDirty() const;
  27969. void LimitLights();
  27970. void LimitVertexLights(bool);
  27971. bool Load(Deserializer&);
  27972. bool LoadJSON(const JSONValue&);
  27973. bool LoadXML(const XMLElement&);
  27974. void MarkForUpdate();
  27975. void MarkInView(const FrameInfo&);
  27976. void MarkInView(uint);
  27977. void MarkNetworkUpdate();
  27978. operator Object() const;
  27979. void OnEvent(Object, StringHash, VariantMap&);
  27980. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  27981. void OnSetAttribute(const AttributeInfo&, const Variant&);
  27982. void OnSetEnabled();
  27983. void PrepareNetworkUpdate();
  27984. bool ReadDeltaUpdate(Deserializer&);
  27985. bool ReadLatestDataUpdate(Deserializer&);
  27986. operator RefCounted() const;
  27987. int Refs() const;
  27988. void Remove();
  27989. void RemoveAttributeAnimation(const String&);
  27990. void RemoveInstanceDefault();
  27991. void RemoveObjectAnimation();
  27992. void ResetToDefault();
  27993. const ResourceRefList& GetMaterialsAttr() const;
  27994. bool Save(Serializer&) const;
  27995. bool SaveDefaultAttributes() const;
  27996. bool SaveJSON(JSONValue&) const;
  27997. bool SaveXML(XMLElement&) const;
  27998. void SendEvent(StringHash);
  27999. void SendEvent(StringHash, VariantMap&);
  28000. operator Serializable() const;
  28001. void SetAnimationEnabled(bool);
  28002. void SetAnimationTime(float);
  28003. bool SetAttribute(const String&, const Variant&);
  28004. bool SetAttribute(uint, const Variant&);
  28005. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28006. void SetAttributeAnimationSpeed(const String&, float);
  28007. void SetAttributeAnimationTime(const String&, float);
  28008. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28009. void SetBasePass(uint);
  28010. void SetBlockEvents(bool);
  28011. void SetCastShadows(bool);
  28012. void SetDrawDistance(float);
  28013. void SetEnabled(bool);
  28014. void SetGlobalVar(StringHash, const Variant&);
  28015. void SetInstanceDefault(bool);
  28016. void SetInterceptNetworkUpdate(const String&, bool);
  28017. void SetLightMask(uint);
  28018. void SetLodBias(float);
  28019. void SetMaterial(Material);
  28020. bool SetMaterial(uint, Material);
  28021. void SetMaterialsAttr(const ResourceRefList&);
  28022. void SetMaxLights(uint);
  28023. void SetMinMaxZ(float, float);
  28024. void SetModel(Model);
  28025. void SetModelAttr(const ResourceRef&);
  28026. void SetObjectAnimation(ObjectAnimation);
  28027. void SetObjectAnimationAttr(const ResourceRef&);
  28028. void SetOccludee(bool);
  28029. void SetOccluder(bool);
  28030. void SetOcclusionLodLevel(uint);
  28031. void SetShadowDistance(float);
  28032. void SetShadowMask(uint);
  28033. void SetSortValue(float);
  28034. void SetTemporary(bool);
  28035. void SetViewMask(uint);
  28036. void SetZone(Zone, bool = false);
  28037. void SetZoneMask(uint);
  28038. operator Skybox() const;
  28039. operator StaticModelGroup() const;
  28040. const String& GetCategory() const;
  28041. const String& GetTypeName() const;
  28042. void UnsubscribeFromAllEvents();
  28043. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28044. void UnsubscribeFromEvent(Object, StringHash);
  28045. void UnsubscribeFromEvent(StringHash);
  28046. void UnsubscribeFromEvents(Object);
  28047. void Update(const FrameInfo&);
  28048. void UpdateBatches(const FrameInfo&);
  28049. void UpdateGeometry(const FrameInfo&);
  28050. const Variant& GetGlobalVar(StringHash) const;
  28051. const VariantMap& GetGlobalVars() const;
  28052. int WeakRefs() const;
  28053. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28054. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28055. void WriteLatestDataUpdate(Serializer&, uint8);
  28056. operator const Animatable() const;
  28057. operator const AnimatedModel() const;
  28058. operator const Component() const;
  28059. operator const Drawable() const;
  28060. operator const Object() const;
  28061. operator const RefCounted() const;
  28062. operator const Serializable() const;
  28063. operator const Skybox() const;
  28064. operator const StaticModelGroup() const;
  28065. // Properties:
  28066. bool animationEnabled;
  28067. /* readonly */
  28068. Array<Variant> attributeDefaults;
  28069. /* readonly */
  28070. Array<AttributeInfo> attributeInfos;
  28071. Array<Variant> attributes;
  28072. /* readonly */
  28073. BoundingBox boundingBox;
  28074. bool castShadows;
  28075. /* readonly */
  28076. String category;
  28077. float drawDistance;
  28078. bool enabled;
  28079. /* readonly */
  28080. bool enabledEffective;
  28081. Array<Variant> globalVar;
  28082. /* readonly */
  28083. VariantMap globalVars;
  28084. /* readonly */
  28085. uint id;
  28086. /* readonly */
  28087. bool inView;
  28088. uint lightMask;
  28089. float lodBias;
  28090. Material material;
  28091. Array<Material> materials;
  28092. uint maxLights;
  28093. Model model;
  28094. /* readonly */
  28095. Node node;
  28096. /* readonly */
  28097. uint numAttributes;
  28098. /* readonly */
  28099. uint numGeometries;
  28100. ObjectAnimation objectAnimation;
  28101. bool occludee;
  28102. bool occluder;
  28103. uint occlusionLodLevel;
  28104. /* readonly */
  28105. int refs;
  28106. /* readonly */
  28107. bool replicated;
  28108. float shadowDistance;
  28109. uint shadowMask;
  28110. bool temporary;
  28111. /* readonly */
  28112. StringHash type;
  28113. /* readonly */
  28114. String typeName;
  28115. uint viewMask;
  28116. /* readonly */
  28117. int weakRefs;
  28118. /* readonly */
  28119. BoundingBox worldBoundingBox;
  28120. /* readonly */
  28121. Zone zone;
  28122. uint zoneMask;
  28123. };
  28124. class StaticModelGeometryData
  28125. {
  28126. public:
  28127. ~StaticModelGeometryData();
  28128. StaticModelGeometryData();
  28129. // Methods:
  28130. StaticModelGeometryData& operator=(const StaticModelGeometryData&);
  28131. // Properties:
  28132. Vector3 center;
  28133. uint lodLevel;
  28134. };
  28135. class StaticModelGroup
  28136. {
  28137. public:
  28138. StaticModelGroup();
  28139. // Methods:
  28140. void AddInstanceNode(Node);
  28141. void AddLight(Light);
  28142. void AddVertexLight(Light);
  28143. void AllocateNetworkState();
  28144. operator Animatable() const;
  28145. void ApplyAttributes();
  28146. void ApplyMaterialList(const String& = String :: EMPTY);
  28147. const BoundingBox& GetBoundingBox() const;
  28148. const BoundingBox& GetWorldBoundingBox();
  28149. void CleanupConnection(Connection);
  28150. operator Component() const;
  28151. void DrawDebugGeometry(DebugRenderer, bool);
  28152. bool DrawOcclusion(OcclusionBuffer);
  28153. operator Drawable() const;
  28154. bool GetAnimationEnabled() const;
  28155. Variant GetAttribute(const String&) const;
  28156. Variant GetAttribute(uint) const;
  28157. ValueAnimation GetAttributeAnimation(const String&) const;
  28158. float GetAttributeAnimationSpeed(const String&) const;
  28159. float GetAttributeAnimationTime(const String&) const;
  28160. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28161. Variant GetAttributeDefault(const String&) const;
  28162. Variant GetAttributeDefault(uint) const;
  28163. bool GetBlockEvents() const;
  28164. bool GetCastShadows() const;
  28165. Component GetComponent(StringHash) const;
  28166. float GetDistance() const;
  28167. float GetDrawDistance() const;
  28168. uint8 GetDrawableFlags() const;
  28169. VariantMap& GetEventDataMap() const;
  28170. Object GetEventSender() const;
  28171. Light GetFirstLight() const;
  28172. uint GetID() const;
  28173. Node GetInstanceNode(uint) const;
  28174. bool GetInterceptNetworkUpdate(const String&) const;
  28175. uint GetLightMask() const;
  28176. Array<Light> GetLights() const;
  28177. float GetLodBias() const;
  28178. float GetLodDistance() const;
  28179. Geometry GetLodGeometry(uint, uint);
  28180. Material GetMaterial() const;
  28181. Material GetMaterial(uint) const;
  28182. uint GetMaxLights() const;
  28183. float GetMaxZ() const;
  28184. float GetMinZ() const;
  28185. Model GetModel() const;
  28186. ResourceRef GetModelAttr() const;
  28187. Node GetNode() const;
  28188. uint GetNumAttributes() const;
  28189. uint GetNumGeometries() const;
  28190. uint GetNumInstanceNodes() const;
  28191. uint GetNumNetworkAttributes() const;
  28192. uint GetNumOccluderTriangles();
  28193. ObjectAnimation GetObjectAnimation() const;
  28194. ResourceRef GetObjectAnimationAttr() const;
  28195. uint GetOcclusionLodLevel() const;
  28196. Scene GetScene() const;
  28197. float GetShadowDistance() const;
  28198. uint GetShadowMask() const;
  28199. float GetSortValue() const;
  28200. Object GetSubsystem(StringHash) const;
  28201. StringHash GetType() const;
  28202. UpdateGeometryType GetUpdateGeometryType();
  28203. Array<Light> GetVertexLights() const;
  28204. uint GetViewMask() const;
  28205. Zone GetZone() const;
  28206. uint GetZoneMask() const;
  28207. bool HasBasePass(uint) const;
  28208. bool HasEventHandlers() const;
  28209. bool HasSubscribedToEvent(Object, StringHash) const;
  28210. bool HasSubscribedToEvent(StringHash) const;
  28211. bool IsEnabled() const;
  28212. bool IsEnabledEffective() const;
  28213. bool IsInView() const;
  28214. bool IsInView(Camera) const;
  28215. bool IsInView(const FrameInfo&, bool = false) const;
  28216. bool IsInside(const Vector3&) const;
  28217. bool IsInsideLocal(const Vector3&) const;
  28218. bool IsInstanceOf(StringHash) const;
  28219. bool IsOccludee() const;
  28220. bool IsOccluder() const;
  28221. bool IsReplicated() const;
  28222. bool IsTemporary() const;
  28223. bool IsZoneDirty() const;
  28224. void LimitLights();
  28225. void LimitVertexLights(bool);
  28226. bool Load(Deserializer&);
  28227. bool LoadJSON(const JSONValue&);
  28228. bool LoadXML(const XMLElement&);
  28229. void MarkForUpdate();
  28230. void MarkInView(const FrameInfo&);
  28231. void MarkInView(uint);
  28232. void MarkNetworkUpdate();
  28233. operator Object() const;
  28234. void OnEvent(Object, StringHash, VariantMap&);
  28235. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28236. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28237. void OnSetEnabled();
  28238. void PrepareNetworkUpdate();
  28239. bool ReadDeltaUpdate(Deserializer&);
  28240. bool ReadLatestDataUpdate(Deserializer&);
  28241. operator RefCounted() const;
  28242. int Refs() const;
  28243. void Remove();
  28244. void RemoveAllInstanceNodes();
  28245. void RemoveAttributeAnimation(const String&);
  28246. void RemoveInstanceDefault();
  28247. void RemoveInstanceNode(Node);
  28248. void RemoveObjectAnimation();
  28249. void ResetToDefault();
  28250. const ResourceRefList& GetMaterialsAttr() const;
  28251. bool Save(Serializer&) const;
  28252. bool SaveDefaultAttributes() const;
  28253. bool SaveJSON(JSONValue&) const;
  28254. bool SaveXML(XMLElement&) const;
  28255. void SendEvent(StringHash);
  28256. void SendEvent(StringHash, VariantMap&);
  28257. operator Serializable() const;
  28258. void SetAnimationEnabled(bool);
  28259. void SetAnimationTime(float);
  28260. bool SetAttribute(const String&, const Variant&);
  28261. bool SetAttribute(uint, const Variant&);
  28262. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28263. void SetAttributeAnimationSpeed(const String&, float);
  28264. void SetAttributeAnimationTime(const String&, float);
  28265. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28266. void SetBasePass(uint);
  28267. void SetBlockEvents(bool);
  28268. void SetCastShadows(bool);
  28269. void SetDrawDistance(float);
  28270. void SetEnabled(bool);
  28271. void SetGlobalVar(StringHash, const Variant&);
  28272. void SetInstanceDefault(bool);
  28273. void SetInterceptNetworkUpdate(const String&, bool);
  28274. void SetLightMask(uint);
  28275. void SetLodBias(float);
  28276. void SetMaterial(Material);
  28277. bool SetMaterial(uint, Material);
  28278. void SetMaterialsAttr(const ResourceRefList&);
  28279. void SetMaxLights(uint);
  28280. void SetMinMaxZ(float, float);
  28281. void SetModel(Model);
  28282. void SetModelAttr(const ResourceRef&);
  28283. void SetObjectAnimation(ObjectAnimation);
  28284. void SetObjectAnimationAttr(const ResourceRef&);
  28285. void SetOccludee(bool);
  28286. void SetOccluder(bool);
  28287. void SetOcclusionLodLevel(uint);
  28288. void SetShadowDistance(float);
  28289. void SetShadowMask(uint);
  28290. void SetSortValue(float);
  28291. void SetTemporary(bool);
  28292. void SetViewMask(uint);
  28293. void SetZone(Zone, bool = false);
  28294. void SetZoneMask(uint);
  28295. operator StaticModel() const;
  28296. const String& GetCategory() const;
  28297. const String& GetTypeName() const;
  28298. void UnsubscribeFromAllEvents();
  28299. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28300. void UnsubscribeFromEvent(Object, StringHash);
  28301. void UnsubscribeFromEvent(StringHash);
  28302. void UnsubscribeFromEvents(Object);
  28303. void Update(const FrameInfo&);
  28304. void UpdateBatches(const FrameInfo&);
  28305. void UpdateGeometry(const FrameInfo&);
  28306. const Variant& GetGlobalVar(StringHash) const;
  28307. const VariantMap& GetGlobalVars() const;
  28308. int WeakRefs() const;
  28309. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28310. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28311. void WriteLatestDataUpdate(Serializer&, uint8);
  28312. operator const Animatable() const;
  28313. operator const Component() const;
  28314. operator const Drawable() const;
  28315. operator const Object() const;
  28316. operator const RefCounted() const;
  28317. operator const Serializable() const;
  28318. operator const StaticModel() const;
  28319. // Properties:
  28320. bool animationEnabled;
  28321. /* readonly */
  28322. Array<Variant> attributeDefaults;
  28323. /* readonly */
  28324. Array<AttributeInfo> attributeInfos;
  28325. Array<Variant> attributes;
  28326. /* readonly */
  28327. BoundingBox boundingBox;
  28328. bool castShadows;
  28329. /* readonly */
  28330. String category;
  28331. float drawDistance;
  28332. bool enabled;
  28333. /* readonly */
  28334. bool enabledEffective;
  28335. Array<Variant> globalVar;
  28336. /* readonly */
  28337. VariantMap globalVars;
  28338. /* readonly */
  28339. uint id;
  28340. /* readonly */
  28341. bool inView;
  28342. /* readonly */
  28343. Array<Node> instanceNodes;
  28344. uint lightMask;
  28345. float lodBias;
  28346. Material material;
  28347. Array<Material> materials;
  28348. uint maxLights;
  28349. Model model;
  28350. /* readonly */
  28351. Node node;
  28352. /* readonly */
  28353. uint numAttributes;
  28354. /* readonly */
  28355. uint numGeometries;
  28356. /* readonly */
  28357. uint numInstanceNodes;
  28358. ObjectAnimation objectAnimation;
  28359. bool occludee;
  28360. bool occluder;
  28361. uint occlusionLodLevel;
  28362. /* readonly */
  28363. int refs;
  28364. /* readonly */
  28365. bool replicated;
  28366. float shadowDistance;
  28367. uint shadowMask;
  28368. bool temporary;
  28369. /* readonly */
  28370. StringHash type;
  28371. /* readonly */
  28372. String typeName;
  28373. uint viewMask;
  28374. /* readonly */
  28375. int weakRefs;
  28376. /* readonly */
  28377. BoundingBox worldBoundingBox;
  28378. /* readonly */
  28379. Zone zone;
  28380. uint zoneMask;
  28381. };
  28382. class StaticSprite2D
  28383. {
  28384. public:
  28385. StaticSprite2D();
  28386. // Methods:
  28387. void AddLight(Light);
  28388. void AddVertexLight(Light);
  28389. void AllocateNetworkState();
  28390. operator Animatable() const;
  28391. operator AnimatedSprite2D() const;
  28392. void ApplyAttributes();
  28393. const BoundingBox& GetBoundingBox() const;
  28394. const BoundingBox& GetWorldBoundingBox();
  28395. void CleanupConnection(Connection);
  28396. const Color& GetColor() const;
  28397. operator Component() const;
  28398. void DrawDebugGeometry(DebugRenderer, bool);
  28399. bool DrawOcclusion(OcclusionBuffer);
  28400. operator Drawable2D() const;
  28401. operator Drawable() const;
  28402. float GetAlpha() const;
  28403. bool GetAnimationEnabled() const;
  28404. Variant GetAttribute(const String&) const;
  28405. Variant GetAttribute(uint) const;
  28406. ValueAnimation GetAttributeAnimation(const String&) const;
  28407. float GetAttributeAnimationSpeed(const String&) const;
  28408. float GetAttributeAnimationTime(const String&) const;
  28409. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28410. Variant GetAttributeDefault(const String&) const;
  28411. Variant GetAttributeDefault(uint) const;
  28412. BlendMode GetBlendMode() const;
  28413. bool GetBlockEvents() const;
  28414. bool GetCastShadows() const;
  28415. Component GetComponent(StringHash) const;
  28416. Material GetCustomMaterial() const;
  28417. ResourceRef GetCustomMaterialAttr() const;
  28418. float GetDistance() const;
  28419. float GetDrawDistance() const;
  28420. uint8 GetDrawableFlags() const;
  28421. VariantMap& GetEventDataMap() const;
  28422. Object GetEventSender() const;
  28423. Light GetFirstLight() const;
  28424. bool GetFlipX() const;
  28425. bool GetFlipY() const;
  28426. uint GetID() const;
  28427. bool GetInterceptNetworkUpdate(const String&) const;
  28428. int GetLayer() const;
  28429. uint GetLightMask() const;
  28430. Array<Light> GetLights() const;
  28431. float GetLodBias() const;
  28432. float GetLodDistance() const;
  28433. Geometry GetLodGeometry(uint, uint);
  28434. uint GetMaxLights() const;
  28435. float GetMaxZ() const;
  28436. float GetMinZ() const;
  28437. Node GetNode() const;
  28438. uint GetNumAttributes() const;
  28439. uint GetNumNetworkAttributes() const;
  28440. uint GetNumOccluderTriangles();
  28441. ObjectAnimation GetObjectAnimation() const;
  28442. ResourceRef GetObjectAnimationAttr() const;
  28443. int GetOrderInLayer() const;
  28444. Scene GetScene() const;
  28445. float GetShadowDistance() const;
  28446. uint GetShadowMask() const;
  28447. float GetSortValue() const;
  28448. Sprite2D GetSprite() const;
  28449. ResourceRef GetSpriteAttr() const;
  28450. Object GetSubsystem(StringHash) const;
  28451. bool GetSwapXY() const;
  28452. StringHash GetType() const;
  28453. UpdateGeometryType GetUpdateGeometryType();
  28454. bool GetUseDrawRect() const;
  28455. bool GetUseHotSpot() const;
  28456. bool GetUseTextureRect() const;
  28457. Array<Light> GetVertexLights() const;
  28458. uint GetViewMask() const;
  28459. Zone GetZone() const;
  28460. uint GetZoneMask() const;
  28461. bool HasBasePass(uint) const;
  28462. bool HasEventHandlers() const;
  28463. bool HasSubscribedToEvent(Object, StringHash) const;
  28464. bool HasSubscribedToEvent(StringHash) const;
  28465. bool IsEnabled() const;
  28466. bool IsEnabledEffective() const;
  28467. bool IsInView() const;
  28468. bool IsInView(Camera) const;
  28469. bool IsInView(const FrameInfo&, bool = false) const;
  28470. bool IsInstanceOf(StringHash) const;
  28471. bool IsOccludee() const;
  28472. bool IsOccluder() const;
  28473. bool IsReplicated() const;
  28474. bool IsTemporary() const;
  28475. bool IsZoneDirty() const;
  28476. void LimitLights();
  28477. void LimitVertexLights(bool);
  28478. bool Load(Deserializer&);
  28479. bool LoadJSON(const JSONValue&);
  28480. bool LoadXML(const XMLElement&);
  28481. void MarkForUpdate();
  28482. void MarkInView(const FrameInfo&);
  28483. void MarkInView(uint);
  28484. void MarkNetworkUpdate();
  28485. operator Object() const;
  28486. void OnEvent(Object, StringHash, VariantMap&);
  28487. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28488. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28489. void OnSetEnabled();
  28490. void PrepareNetworkUpdate();
  28491. bool ReadDeltaUpdate(Deserializer&);
  28492. bool ReadLatestDataUpdate(Deserializer&);
  28493. const Rect& GetDrawRect() const;
  28494. const Rect& GetTextureRect() const;
  28495. operator RefCounted() const;
  28496. int Refs() const;
  28497. void Remove();
  28498. void RemoveAttributeAnimation(const String&);
  28499. void RemoveInstanceDefault();
  28500. void RemoveObjectAnimation();
  28501. void ResetToDefault();
  28502. bool Save(Serializer&) const;
  28503. bool SaveDefaultAttributes() const;
  28504. bool SaveJSON(JSONValue&) const;
  28505. bool SaveXML(XMLElement&) const;
  28506. void SendEvent(StringHash);
  28507. void SendEvent(StringHash, VariantMap&);
  28508. operator Serializable() const;
  28509. void SetAlpha(float);
  28510. void SetAnimationEnabled(bool);
  28511. void SetAnimationTime(float);
  28512. bool SetAttribute(const String&, const Variant&);
  28513. bool SetAttribute(uint, const Variant&);
  28514. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28515. void SetAttributeAnimationSpeed(const String&, float);
  28516. void SetAttributeAnimationTime(const String&, float);
  28517. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28518. void SetBasePass(uint);
  28519. void SetBlendMode(BlendMode);
  28520. void SetBlockEvents(bool);
  28521. void SetCastShadows(bool);
  28522. void SetColor(const Color&);
  28523. void SetCustomMaterial(Material);
  28524. void SetCustomMaterialAttr(const ResourceRef&);
  28525. void SetDrawDistance(float);
  28526. void SetDrawRect(const Rect&);
  28527. void SetEnabled(bool);
  28528. void SetFlip(bool, bool, bool = false);
  28529. void SetFlipX(bool);
  28530. void SetFlipY(bool);
  28531. void SetGlobalVar(StringHash, const Variant&);
  28532. void SetHotSpot(const Vector2&);
  28533. void SetInstanceDefault(bool);
  28534. void SetInterceptNetworkUpdate(const String&, bool);
  28535. void SetLayer(int);
  28536. void SetLightMask(uint);
  28537. void SetLodBias(float);
  28538. void SetMaxLights(uint);
  28539. void SetMinMaxZ(float, float);
  28540. void SetObjectAnimation(ObjectAnimation);
  28541. void SetObjectAnimationAttr(const ResourceRef&);
  28542. void SetOccludee(bool);
  28543. void SetOccluder(bool);
  28544. void SetOrderInLayer(int);
  28545. void SetShadowDistance(float);
  28546. void SetShadowMask(uint);
  28547. void SetSortValue(float);
  28548. void SetSprite(Sprite2D);
  28549. void SetSpriteAttr(const ResourceRef&);
  28550. void SetSwapXY(bool);
  28551. void SetTemporary(bool);
  28552. void SetTextureRect(const Rect&);
  28553. void SetUseDrawRect(bool);
  28554. void SetUseHotSpot(bool);
  28555. void SetUseTextureRect(bool);
  28556. void SetViewMask(uint);
  28557. void SetZone(Zone, bool = false);
  28558. void SetZoneMask(uint);
  28559. operator StretchableSprite2D() const;
  28560. const String& GetCategory() const;
  28561. const String& GetTypeName() const;
  28562. void UnsubscribeFromAllEvents();
  28563. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28564. void UnsubscribeFromEvent(Object, StringHash);
  28565. void UnsubscribeFromEvent(StringHash);
  28566. void UnsubscribeFromEvents(Object);
  28567. void Update(const FrameInfo&);
  28568. void UpdateBatches(const FrameInfo&);
  28569. void UpdateGeometry(const FrameInfo&);
  28570. const Variant& GetGlobalVar(StringHash) const;
  28571. const VariantMap& GetGlobalVars() const;
  28572. const Vector2& GetHotSpot() const;
  28573. int WeakRefs() const;
  28574. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28575. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28576. void WriteLatestDataUpdate(Serializer&, uint8);
  28577. operator const Animatable() const;
  28578. operator const AnimatedSprite2D() const;
  28579. operator const Component() const;
  28580. operator const Drawable2D() const;
  28581. operator const Drawable() const;
  28582. operator const Object() const;
  28583. operator const RefCounted() const;
  28584. operator const Serializable() const;
  28585. operator const StretchableSprite2D() const;
  28586. // Properties:
  28587. float alpha;
  28588. bool animationEnabled;
  28589. /* readonly */
  28590. Array<Variant> attributeDefaults;
  28591. /* readonly */
  28592. Array<AttributeInfo> attributeInfos;
  28593. Array<Variant> attributes;
  28594. BlendMode blendMode;
  28595. /* readonly */
  28596. BoundingBox boundingBox;
  28597. bool castShadows;
  28598. /* readonly */
  28599. String category;
  28600. Color color;
  28601. Material customMaterial;
  28602. float drawDistance;
  28603. Rect drawRect;
  28604. bool enabled;
  28605. /* readonly */
  28606. bool enabledEffective;
  28607. bool flipX;
  28608. bool flipY;
  28609. Array<Variant> globalVar;
  28610. /* readonly */
  28611. VariantMap globalVars;
  28612. Vector2 hotSpot;
  28613. /* readonly */
  28614. uint id;
  28615. /* readonly */
  28616. bool inView;
  28617. int layer;
  28618. uint lightMask;
  28619. float lodBias;
  28620. uint maxLights;
  28621. /* readonly */
  28622. Node node;
  28623. /* readonly */
  28624. uint numAttributes;
  28625. ObjectAnimation objectAnimation;
  28626. bool occludee;
  28627. bool occluder;
  28628. int orderInLayer;
  28629. /* readonly */
  28630. int refs;
  28631. /* readonly */
  28632. bool replicated;
  28633. float shadowDistance;
  28634. uint shadowMask;
  28635. Sprite2D sprite;
  28636. bool swapXY;
  28637. bool temporary;
  28638. Rect textureRect;
  28639. /* readonly */
  28640. StringHash type;
  28641. /* readonly */
  28642. String typeName;
  28643. bool useDrawRect;
  28644. bool useHotSpot;
  28645. bool useTextureRect;
  28646. uint viewMask;
  28647. /* readonly */
  28648. int weakRefs;
  28649. /* readonly */
  28650. BoundingBox worldBoundingBox;
  28651. /* readonly */
  28652. Zone zone;
  28653. uint zoneMask;
  28654. };
  28655. class StoredLogMessage
  28656. {
  28657. public:
  28658. ~StoredLogMessage();
  28659. StoredLogMessage();
  28660. StoredLogMessage(const String&in, int, bool);
  28661. // Methods:
  28662. StoredLogMessage& operator=(const StoredLogMessage&);
  28663. // Properties:
  28664. bool error;
  28665. int level;
  28666. String message;
  28667. };
  28668. class StretchableSprite2D
  28669. {
  28670. public:
  28671. StretchableSprite2D();
  28672. // Methods:
  28673. void AddLight(Light);
  28674. void AddVertexLight(Light);
  28675. void AllocateNetworkState();
  28676. operator Animatable() const;
  28677. void ApplyAttributes();
  28678. const BoundingBox& GetBoundingBox() const;
  28679. const BoundingBox& GetWorldBoundingBox();
  28680. void CleanupConnection(Connection);
  28681. const Color& GetColor() const;
  28682. operator Component() const;
  28683. void DrawDebugGeometry(DebugRenderer, bool);
  28684. bool DrawOcclusion(OcclusionBuffer);
  28685. operator Drawable2D() const;
  28686. operator Drawable() const;
  28687. float GetAlpha() const;
  28688. bool GetAnimationEnabled() const;
  28689. Variant GetAttribute(const String&) const;
  28690. Variant GetAttribute(uint) const;
  28691. ValueAnimation GetAttributeAnimation(const String&) const;
  28692. float GetAttributeAnimationSpeed(const String&) const;
  28693. float GetAttributeAnimationTime(const String&) const;
  28694. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28695. Variant GetAttributeDefault(const String&) const;
  28696. Variant GetAttributeDefault(uint) const;
  28697. BlendMode GetBlendMode() const;
  28698. bool GetBlockEvents() const;
  28699. bool GetCastShadows() const;
  28700. Component GetComponent(StringHash) const;
  28701. Material GetCustomMaterial() const;
  28702. ResourceRef GetCustomMaterialAttr() const;
  28703. float GetDistance() const;
  28704. float GetDrawDistance() const;
  28705. uint8 GetDrawableFlags() const;
  28706. VariantMap& GetEventDataMap() const;
  28707. Object GetEventSender() const;
  28708. Light GetFirstLight() const;
  28709. bool GetFlipX() const;
  28710. bool GetFlipY() const;
  28711. uint GetID() const;
  28712. bool GetInterceptNetworkUpdate(const String&) const;
  28713. int GetLayer() const;
  28714. uint GetLightMask() const;
  28715. Array<Light> GetLights() const;
  28716. float GetLodBias() const;
  28717. float GetLodDistance() const;
  28718. Geometry GetLodGeometry(uint, uint);
  28719. uint GetMaxLights() const;
  28720. float GetMaxZ() const;
  28721. float GetMinZ() const;
  28722. Node GetNode() const;
  28723. uint GetNumAttributes() const;
  28724. uint GetNumNetworkAttributes() const;
  28725. uint GetNumOccluderTriangles();
  28726. ObjectAnimation GetObjectAnimation() const;
  28727. ResourceRef GetObjectAnimationAttr() const;
  28728. int GetOrderInLayer() const;
  28729. Scene GetScene() const;
  28730. float GetShadowDistance() const;
  28731. uint GetShadowMask() const;
  28732. float GetSortValue() const;
  28733. Sprite2D GetSprite() const;
  28734. ResourceRef GetSpriteAttr() const;
  28735. Object GetSubsystem(StringHash) const;
  28736. bool GetSwapXY() const;
  28737. StringHash GetType() const;
  28738. UpdateGeometryType GetUpdateGeometryType();
  28739. bool GetUseDrawRect() const;
  28740. bool GetUseHotSpot() const;
  28741. bool GetUseTextureRect() const;
  28742. Array<Light> GetVertexLights() const;
  28743. uint GetViewMask() const;
  28744. Zone GetZone() const;
  28745. uint GetZoneMask() const;
  28746. bool HasBasePass(uint) const;
  28747. bool HasEventHandlers() const;
  28748. bool HasSubscribedToEvent(Object, StringHash) const;
  28749. bool HasSubscribedToEvent(StringHash) const;
  28750. const IntRect& GetBorder() const;
  28751. bool IsEnabled() const;
  28752. bool IsEnabledEffective() const;
  28753. bool IsInView() const;
  28754. bool IsInView(Camera) const;
  28755. bool IsInView(const FrameInfo&, bool = false) const;
  28756. bool IsInstanceOf(StringHash) const;
  28757. bool IsOccludee() const;
  28758. bool IsOccluder() const;
  28759. bool IsReplicated() const;
  28760. bool IsTemporary() const;
  28761. bool IsZoneDirty() const;
  28762. void LimitLights();
  28763. void LimitVertexLights(bool);
  28764. bool Load(Deserializer&);
  28765. bool LoadJSON(const JSONValue&);
  28766. bool LoadXML(const XMLElement&);
  28767. void MarkForUpdate();
  28768. void MarkInView(const FrameInfo&);
  28769. void MarkInView(uint);
  28770. void MarkNetworkUpdate();
  28771. operator Object() const;
  28772. void OnEvent(Object, StringHash, VariantMap&);
  28773. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28774. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28775. void OnSetEnabled();
  28776. void PrepareNetworkUpdate();
  28777. bool ReadDeltaUpdate(Deserializer&);
  28778. bool ReadLatestDataUpdate(Deserializer&);
  28779. const Rect& GetDrawRect() const;
  28780. const Rect& GetTextureRect() const;
  28781. operator RefCounted() const;
  28782. int Refs() const;
  28783. void Remove();
  28784. void RemoveAttributeAnimation(const String&);
  28785. void RemoveInstanceDefault();
  28786. void RemoveObjectAnimation();
  28787. void ResetToDefault();
  28788. bool Save(Serializer&) const;
  28789. bool SaveDefaultAttributes() const;
  28790. bool SaveJSON(JSONValue&) const;
  28791. bool SaveXML(XMLElement&) const;
  28792. void SendEvent(StringHash);
  28793. void SendEvent(StringHash, VariantMap&);
  28794. operator Serializable() const;
  28795. void SetAlpha(float);
  28796. void SetAnimationEnabled(bool);
  28797. void SetAnimationTime(float);
  28798. bool SetAttribute(const String&, const Variant&);
  28799. bool SetAttribute(uint, const Variant&);
  28800. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28801. void SetAttributeAnimationSpeed(const String&, float);
  28802. void SetAttributeAnimationTime(const String&, float);
  28803. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28804. void SetBasePass(uint);
  28805. void SetBlendMode(BlendMode);
  28806. void SetBlockEvents(bool);
  28807. void SetBorder(const IntRect&);
  28808. void SetCastShadows(bool);
  28809. void SetColor(const Color&);
  28810. void SetCustomMaterial(Material);
  28811. void SetCustomMaterialAttr(const ResourceRef&);
  28812. void SetDrawDistance(float);
  28813. void SetDrawRect(const Rect&);
  28814. void SetEnabled(bool);
  28815. void SetFlip(bool, bool, bool = false);
  28816. void SetFlipX(bool);
  28817. void SetFlipY(bool);
  28818. void SetGlobalVar(StringHash, const Variant&);
  28819. void SetHotSpot(const Vector2&);
  28820. void SetInstanceDefault(bool);
  28821. void SetInterceptNetworkUpdate(const String&, bool);
  28822. void SetLayer(int);
  28823. void SetLightMask(uint);
  28824. void SetLodBias(float);
  28825. void SetMaxLights(uint);
  28826. void SetMinMaxZ(float, float);
  28827. void SetObjectAnimation(ObjectAnimation);
  28828. void SetObjectAnimationAttr(const ResourceRef&);
  28829. void SetOccludee(bool);
  28830. void SetOccluder(bool);
  28831. void SetOrderInLayer(int);
  28832. void SetShadowDistance(float);
  28833. void SetShadowMask(uint);
  28834. void SetSortValue(float);
  28835. void SetSprite(Sprite2D);
  28836. void SetSpriteAttr(const ResourceRef&);
  28837. void SetSwapXY(bool);
  28838. void SetTemporary(bool);
  28839. void SetTextureRect(const Rect&);
  28840. void SetUseDrawRect(bool);
  28841. void SetUseHotSpot(bool);
  28842. void SetUseTextureRect(bool);
  28843. void SetViewMask(uint);
  28844. void SetZone(Zone, bool = false);
  28845. void SetZoneMask(uint);
  28846. operator StaticSprite2D() const;
  28847. const String& GetCategory() const;
  28848. const String& GetTypeName() const;
  28849. void UnsubscribeFromAllEvents();
  28850. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28851. void UnsubscribeFromEvent(Object, StringHash);
  28852. void UnsubscribeFromEvent(StringHash);
  28853. void UnsubscribeFromEvents(Object);
  28854. void Update(const FrameInfo&);
  28855. void UpdateBatches(const FrameInfo&);
  28856. void UpdateGeometry(const FrameInfo&);
  28857. const Variant& GetGlobalVar(StringHash) const;
  28858. const VariantMap& GetGlobalVars() const;
  28859. const Vector2& GetHotSpot() const;
  28860. int WeakRefs() const;
  28861. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28862. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28863. void WriteLatestDataUpdate(Serializer&, uint8);
  28864. operator const Animatable() const;
  28865. operator const Component() const;
  28866. operator const Drawable2D() const;
  28867. operator const Drawable() const;
  28868. operator const Object() const;
  28869. operator const RefCounted() const;
  28870. operator const Serializable() const;
  28871. operator const StaticSprite2D() const;
  28872. // Properties:
  28873. float alpha;
  28874. bool animationEnabled;
  28875. /* readonly */
  28876. Array<Variant> attributeDefaults;
  28877. /* readonly */
  28878. Array<AttributeInfo> attributeInfos;
  28879. Array<Variant> attributes;
  28880. BlendMode blendMode;
  28881. IntRect border;
  28882. /* readonly */
  28883. BoundingBox boundingBox;
  28884. bool castShadows;
  28885. /* readonly */
  28886. String category;
  28887. Color color;
  28888. Material customMaterial;
  28889. float drawDistance;
  28890. Rect drawRect;
  28891. bool enabled;
  28892. /* readonly */
  28893. bool enabledEffective;
  28894. bool flipX;
  28895. bool flipY;
  28896. Array<Variant> globalVar;
  28897. /* readonly */
  28898. VariantMap globalVars;
  28899. Vector2 hotSpot;
  28900. /* readonly */
  28901. uint id;
  28902. /* readonly */
  28903. bool inView;
  28904. int layer;
  28905. uint lightMask;
  28906. float lodBias;
  28907. uint maxLights;
  28908. /* readonly */
  28909. Node node;
  28910. /* readonly */
  28911. uint numAttributes;
  28912. ObjectAnimation objectAnimation;
  28913. bool occludee;
  28914. bool occluder;
  28915. int orderInLayer;
  28916. /* readonly */
  28917. int refs;
  28918. /* readonly */
  28919. bool replicated;
  28920. float shadowDistance;
  28921. uint shadowMask;
  28922. Sprite2D sprite;
  28923. bool swapXY;
  28924. bool temporary;
  28925. Rect textureRect;
  28926. /* readonly */
  28927. StringHash type;
  28928. /* readonly */
  28929. String typeName;
  28930. bool useDrawRect;
  28931. bool useHotSpot;
  28932. bool useTextureRect;
  28933. uint viewMask;
  28934. /* readonly */
  28935. int weakRefs;
  28936. /* readonly */
  28937. BoundingBox worldBoundingBox;
  28938. /* readonly */
  28939. Zone zone;
  28940. uint zoneMask;
  28941. };
  28942. class String
  28943. {
  28944. public:
  28945. ~String();
  28946. String();
  28947. String(const String&in);
  28948. String(int);
  28949. String(int16);
  28950. String(int64);
  28951. String(uint);
  28952. String(uint16);
  28953. String(uint64);
  28954. String(float);
  28955. String(double);
  28956. String(bool);
  28957. String(int8);
  28958. String(int8, uint);
  28959. String(const char*);
  28960. // Methods:
  28961. String operator+(bool) const;
  28962. String operator+(const String&) const;
  28963. String operator+(double) const;
  28964. String operator+(float) const;
  28965. String operator+(int) const;
  28966. String operator+(uint) const;
  28967. String& operator+=(bool);
  28968. String& operator+=(const String&);
  28969. String& operator+=(double);
  28970. String& operator+=(float);
  28971. String& operator+=(int);
  28972. String& operator+=(int16);
  28973. String& operator+=(int64);
  28974. String& operator+=(int8);
  28975. String& operator+=(uint);
  28976. String& operator+=(uint16);
  28977. String& operator+=(uint64);
  28978. int operator<(const String&) const;
  28979. String& operator=(bool);
  28980. String& operator=(const String&);
  28981. String& operator=(double);
  28982. String& operator=(float);
  28983. String& operator=(int);
  28984. String& operator=(uint);
  28985. bool operator==(const String&) const;
  28986. int8& operator[](uint);
  28987. String& Append(const String&);
  28988. String& Append(int8);
  28989. String& AppendUTF8(uint);
  28990. int8& At(uint);
  28991. uint AtUTF8(uint) const;
  28992. int8 Back() const;
  28993. uint ByteOffsetUTF8(uint) const;
  28994. uint Capacity() const;
  28995. void Clear();
  28996. void Compact();
  28997. int Compare(const String&, bool = true) const;
  28998. bool Contains(const String&, bool = true) const;
  28999. bool Contains(int8, bool = true) const;
  29000. bool Empty() const;
  29001. bool EndsWith(const String&, bool = true) const;
  29002. void Erase(uint, uint = 1);
  29003. uint Find(const String&, uint = 0, bool = true) const;
  29004. uint Find(int8, uint = 0, bool = true) const;
  29005. uint FindLast(const String&, uint = String :: NPOS, bool = true) const;
  29006. uint FindLast(int8, uint = String :: NPOS, bool = true) const;
  29007. int8 Front() const;
  29008. void Insert(uint, const String&);
  29009. void Insert(uint, int8);
  29010. bool IsShort() const;
  29011. void Join(Array<String>, const String&);
  29012. uint Length() const;
  29013. uint LengthUTF8() const;
  29014. uint NextUTF8Char(uint&) const;
  29015. void Replace(const String&, const String&, bool = true);
  29016. void Replace(int8, int8, bool = true);
  29017. void Replace(uint, uint, const String&);
  29018. void ReplaceUTF8(uint, uint);
  29019. String Replaced(const String&, const String&, bool = true) const;
  29020. String Replaced(int8, int8, bool = true) const;
  29021. void Reserve(uint);
  29022. void Resize(uint);
  29023. Array<String> Split(int8, bool = false) const;
  29024. bool StartsWith(const String&, bool = true) const;
  29025. String Substring(uint) const;
  29026. String Substring(uint, uint) const;
  29027. String SubstringUTF8(uint) const;
  29028. String SubstringUTF8(uint, uint) const;
  29029. void Swap(String&);
  29030. bool ToBool() const;
  29031. Color ToColor() const;
  29032. double ToDouble() const;
  29033. float ToFloat() const;
  29034. uint ToHash() const;
  29035. int ToInt(int base = 10) const;
  29036. int64 ToInt64(int base = 10) const;
  29037. IntRect ToIntRect() const;
  29038. IntVector2 ToIntVector2() const;
  29039. IntVector3 ToIntVector3() const;
  29040. String ToLower() const;
  29041. Matrix3 ToMatrix3() const;
  29042. Matrix3x4 ToMatrix3x4() const;
  29043. Matrix4 ToMatrix4() const;
  29044. Quaternion ToQuaternion() const;
  29045. uint ToUInt(int base = 10) const;
  29046. uint64 ToUInt64(int base = 10) const;
  29047. String ToUpper() const;
  29048. Vector2 ToVector2() const;
  29049. Vector3 ToVector3() const;
  29050. Vector4 ToVector4(bool allowMissingCoords = false) const;
  29051. Variant ToVectorVariant() const;
  29052. String Trimmed() const;
  29053. const int8& operator[](uint) const;
  29054. const int8& At(uint) const;
  29055. // Properties:
  29056. /* readonly */
  29057. bool empty;
  29058. /* readonly */
  29059. uint length;
  29060. /* readonly */
  29061. uint utf8Length;
  29062. // Constants:
  29063. static const String EMPTY;
  29064. static const uint NPOS;
  29065. };
  29066. class StringHash
  29067. {
  29068. public:
  29069. StringHash();
  29070. StringHash(const StringHash&in);
  29071. StringHash(uint);
  29072. StringHash(const String&in);
  29073. // Methods:
  29074. StringHash operator+(const StringHash&) const;
  29075. StringHash& operator+=(const StringHash&);
  29076. int operator<(const StringHash&) const;
  29077. StringHash& operator=(const StringHash&);
  29078. bool operator==(const StringHash&) const;
  29079. String Reverse() const;
  29080. uint ToHash() const;
  29081. String ToString() const;
  29082. uint Value() const;
  29083. // Properties:
  29084. /* readonly */
  29085. uint value;
  29086. // Constants:
  29087. static const StringHash ZERO;
  29088. };
  29089. class StringHashRegister
  29090. {
  29091. public:
  29092. ~StringHashRegister();
  29093. StringHashRegister(bool);
  29094. // Methods:
  29095. bool Contains(const StringHash&) const;
  29096. String GetStringCopy(const StringHash&) const;
  29097. const String& GetString(const StringHash&) const;
  29098. };
  29099. class Technique
  29100. {
  29101. public:
  29102. Technique();
  29103. // Methods:
  29104. bool BeginLoad(Deserializer&);
  29105. Technique Clone(const String& = String :: EMPTY) const;
  29106. Technique CloneWithDefines(const String&, const String&);
  29107. Pass CreatePass(const String&);
  29108. bool EndLoad();
  29109. AsyncLoadState GetAsyncLoadState() const;
  29110. bool GetBlockEvents() const;
  29111. VariantMap& GetEventDataMap() const;
  29112. Object GetEventSender() const;
  29113. uint GetMemoryUse() const;
  29114. StringHash GetNameHash() const;
  29115. uint GetNumPasses() const;
  29116. Pass GetPass(const String&) const;
  29117. Pass GetPass(uint) const;
  29118. Array<String> GetPassNames() const;
  29119. Array<Pass> GetPasses() const;
  29120. Object GetSubsystem(StringHash) const;
  29121. Pass GetSupportedPass(const String&) const;
  29122. Pass GetSupportedPass(uint) const;
  29123. StringHash GetType() const;
  29124. uint GetUseTimer();
  29125. bool HasEventHandlers() const;
  29126. bool HasPass(const String&) const;
  29127. bool HasPass(uint) const;
  29128. bool HasSubscribedToEvent(Object, StringHash) const;
  29129. bool HasSubscribedToEvent(StringHash) const;
  29130. bool IsDesktop() const;
  29131. bool IsInstanceOf(StringHash) const;
  29132. bool IsSupported() const;
  29133. bool Load(Deserializer&);
  29134. bool Load(File);
  29135. bool Load(VectorBuffer&);
  29136. bool Load(const String&);
  29137. bool LoadFile(const String&);
  29138. operator Object() const;
  29139. void OnEvent(Object, StringHash, VariantMap&);
  29140. operator RefCounted() const;
  29141. int Refs() const;
  29142. void ReleaseShaders();
  29143. void RemovePass(const String&);
  29144. void ResetUseTimer();
  29145. operator Resource() const;
  29146. bool Save(File) const;
  29147. bool Save(Serializer&) const;
  29148. bool Save(VectorBuffer&) const;
  29149. bool Save(const String&) const;
  29150. bool SaveFile(const String&) const;
  29151. void SendEvent(StringHash);
  29152. void SendEvent(StringHash, VariantMap&);
  29153. void SetAsyncLoadState(AsyncLoadState);
  29154. void SetBlockEvents(bool);
  29155. void SetGlobalVar(StringHash, const Variant&);
  29156. void SetIsDesktop(bool);
  29157. void SetMemoryUse(uint);
  29158. void SetName(const String&);
  29159. const String& GetCategory() const;
  29160. const String& GetName() const;
  29161. const String& GetTypeName() const;
  29162. void UnsubscribeFromAllEvents();
  29163. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29164. void UnsubscribeFromEvent(Object, StringHash);
  29165. void UnsubscribeFromEvent(StringHash);
  29166. void UnsubscribeFromEvents(Object);
  29167. const Variant& GetGlobalVar(StringHash) const;
  29168. const VariantMap& GetGlobalVars() const;
  29169. int WeakRefs() const;
  29170. operator const Object() const;
  29171. operator const RefCounted() const;
  29172. operator const Resource() const;
  29173. // Properties:
  29174. /* readonly */
  29175. String category;
  29176. bool desktop;
  29177. Array<Variant> globalVar;
  29178. /* readonly */
  29179. VariantMap globalVars;
  29180. /* readonly */
  29181. uint memoryUse;
  29182. String name;
  29183. /* readonly */
  29184. uint numPasses;
  29185. /* readonly */
  29186. Array<String> passNames;
  29187. /* readonly */
  29188. Array<Pass> passes;
  29189. /* readonly */
  29190. int refs;
  29191. /* readonly */
  29192. bool supported;
  29193. /* readonly */
  29194. StringHash type;
  29195. /* readonly */
  29196. String typeName;
  29197. /* readonly */
  29198. uint useTimer;
  29199. /* readonly */
  29200. int weakRefs;
  29201. // Constants:
  29202. static const uint alphaPassIndex;
  29203. static const uint basePassIndex;
  29204. static const uint deferredPassIndex;
  29205. static const uint lightPassIndex;
  29206. static const uint litAlphaPassIndex;
  29207. static const uint litBasePassIndex;
  29208. static const uint materialPassIndex;
  29209. static const uint shadowPassIndex;
  29210. };
  29211. class TechniqueEntry
  29212. {
  29213. public:
  29214. ~TechniqueEntry();
  29215. TechniqueEntry();
  29216. TechniqueEntry(Technique@, uint, float);
  29217. // Methods:
  29218. TechniqueEntry& operator=(const TechniqueEntry&);
  29219. // Properties:
  29220. float lodDistance;
  29221. uint qualityLevel;
  29222. Technique technique;
  29223. };
  29224. class Terrain
  29225. {
  29226. public:
  29227. Terrain();
  29228. // Methods:
  29229. void AllocateNetworkState();
  29230. operator Animatable() const;
  29231. void ApplyAttributes();
  29232. void ApplyHeightMap();
  29233. void CleanupConnection(Connection);
  29234. operator Component() const;
  29235. void CreatePatchGeometry(TerrainPatch);
  29236. void DrawDebugGeometry(DebugRenderer, bool);
  29237. bool GetAnimationEnabled() const;
  29238. Variant GetAttribute(const String&) const;
  29239. Variant GetAttribute(uint) const;
  29240. ValueAnimation GetAttributeAnimation(const String&) const;
  29241. float GetAttributeAnimationSpeed(const String&) const;
  29242. float GetAttributeAnimationTime(const String&) const;
  29243. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29244. Variant GetAttributeDefault(const String&) const;
  29245. Variant GetAttributeDefault(uint) const;
  29246. bool GetBlockEvents() const;
  29247. bool GetCastShadows() const;
  29248. Component GetComponent(StringHash) const;
  29249. float GetDrawDistance() const;
  29250. Terrain GetEastNeighbor() const;
  29251. VariantMap& GetEventDataMap() const;
  29252. Object GetEventSender() const;
  29253. float GetHeight(const Vector3&) const;
  29254. Image GetHeightMap() const;
  29255. ResourceRef GetHeightMapAttr() const;
  29256. uint GetID() const;
  29257. bool GetInterceptNetworkUpdate(const String&) const;
  29258. uint GetLightMask() const;
  29259. float GetLodBias() const;
  29260. Material GetMaterial() const;
  29261. ResourceRef GetMaterialAttr() const;
  29262. uint GetMaxLights() const;
  29263. uint GetMaxLodLevels() const;
  29264. TerrainPatch GetNeighborPatch(int, int) const;
  29265. Node GetNode() const;
  29266. Vector3 GetNormal(const Vector3&) const;
  29267. Terrain GetNorthNeighbor() const;
  29268. uint GetNumAttributes() const;
  29269. uint GetNumNetworkAttributes() const;
  29270. ObjectAnimation GetObjectAnimation() const;
  29271. ResourceRef GetObjectAnimationAttr() const;
  29272. uint GetOcclusionLodLevel() const;
  29273. TerrainPatch GetPatch(int, int) const;
  29274. TerrainPatch GetPatch(uint) const;
  29275. int GetPatchSize() const;
  29276. Scene GetScene() const;
  29277. float GetShadowDistance() const;
  29278. uint GetShadowMask() const;
  29279. bool GetSmoothing() const;
  29280. Terrain GetSouthNeighbor() const;
  29281. Object GetSubsystem(StringHash) const;
  29282. StringHash GetType() const;
  29283. uint GetViewMask() const;
  29284. Terrain GetWestNeighbor() const;
  29285. uint GetZoneMask() const;
  29286. bool HasEventHandlers() const;
  29287. bool HasSubscribedToEvent(Object, StringHash) const;
  29288. bool HasSubscribedToEvent(StringHash) const;
  29289. Vector3 HeightMapToWorld(const IntVector2&) const;
  29290. const IntVector2& GetNumPatches() const;
  29291. const IntVector2& GetNumVertices() const;
  29292. bool IsEnabled() const;
  29293. bool IsEnabledEffective() const;
  29294. bool IsInstanceOf(StringHash) const;
  29295. bool IsOccludee() const;
  29296. bool IsOccluder() const;
  29297. bool IsReplicated() const;
  29298. bool IsTemporary() const;
  29299. bool IsVisible() const;
  29300. bool Load(Deserializer&);
  29301. bool LoadJSON(const JSONValue&);
  29302. bool LoadXML(const XMLElement&);
  29303. void MarkNetworkUpdate();
  29304. operator Object() const;
  29305. void OnEvent(Object, StringHash, VariantMap&);
  29306. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29307. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29308. void OnSetEnabled();
  29309. void PrepareNetworkUpdate();
  29310. bool ReadDeltaUpdate(Deserializer&);
  29311. bool ReadLatestDataUpdate(Deserializer&);
  29312. operator RefCounted() const;
  29313. int Refs() const;
  29314. void Remove();
  29315. void RemoveAttributeAnimation(const String&);
  29316. void RemoveInstanceDefault();
  29317. void RemoveObjectAnimation();
  29318. void ResetToDefault();
  29319. bool Save(Serializer&) const;
  29320. bool SaveDefaultAttributes() const;
  29321. bool SaveJSON(JSONValue&) const;
  29322. bool SaveXML(XMLElement&) const;
  29323. void SendEvent(StringHash);
  29324. void SendEvent(StringHash, VariantMap&);
  29325. operator Serializable() const;
  29326. void SetAnimationEnabled(bool);
  29327. void SetAnimationTime(float);
  29328. bool SetAttribute(const String&, const Variant&);
  29329. bool SetAttribute(uint, const Variant&);
  29330. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  29331. void SetAttributeAnimationSpeed(const String&, float);
  29332. void SetAttributeAnimationTime(const String&, float);
  29333. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  29334. void SetBlockEvents(bool);
  29335. void SetCastShadows(bool);
  29336. void SetDrawDistance(float);
  29337. void SetEastNeighbor(Terrain);
  29338. void SetEnabled(bool);
  29339. void SetGlobalVar(StringHash, const Variant&);
  29340. bool SetHeightMap(Image);
  29341. void SetHeightMapAttr(const ResourceRef&);
  29342. void SetInstanceDefault(bool);
  29343. void SetInterceptNetworkUpdate(const String&, bool);
  29344. void SetLightMask(uint);
  29345. void SetLodBias(float);
  29346. void SetMaterial(Material);
  29347. void SetMaterialAttr(const ResourceRef&);
  29348. void SetMaxLights(uint);
  29349. void SetMaxLodLevels(uint);
  29350. void SetMaxLodLevelsAttr(uint);
  29351. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  29352. void SetNorthNeighbor(Terrain);
  29353. void SetObjectAnimation(ObjectAnimation);
  29354. void SetObjectAnimationAttr(const ResourceRef&);
  29355. void SetOccludee(bool);
  29356. void SetOccluder(bool);
  29357. void SetOcclusionLodLevel(uint);
  29358. void SetOcclusionLodLevelAttr(uint);
  29359. void SetPatchSize(int);
  29360. void SetPatchSizeAttr(int);
  29361. void SetShadowDistance(float);
  29362. void SetShadowMask(uint);
  29363. void SetSmoothing(bool);
  29364. void SetSouthNeighbor(Terrain);
  29365. void SetSpacing(const Vector3&);
  29366. void SetTemporary(bool);
  29367. void SetViewMask(uint);
  29368. void SetWestNeighbor(Terrain);
  29369. void SetZoneMask(uint);
  29370. const String& GetCategory() const;
  29371. const String& GetTypeName() const;
  29372. void UnsubscribeFromAllEvents();
  29373. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29374. void UnsubscribeFromEvent(Object, StringHash);
  29375. void UnsubscribeFromEvent(StringHash);
  29376. void UnsubscribeFromEvents(Object);
  29377. void UpdatePatchLod(TerrainPatch);
  29378. const Variant& GetGlobalVar(StringHash) const;
  29379. const VariantMap& GetGlobalVars() const;
  29380. const Vector3& GetSpacing() const;
  29381. int WeakRefs() const;
  29382. IntVector2 WorldToHeightMap(const Vector3&) const;
  29383. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  29384. void WriteInitialDeltaUpdate(Serializer&, uint8);
  29385. void WriteLatestDataUpdate(Serializer&, uint8);
  29386. operator const Animatable() const;
  29387. operator const Component() const;
  29388. operator const Object() const;
  29389. operator const RefCounted() const;
  29390. operator const Serializable() const;
  29391. // Properties:
  29392. bool animationEnabled;
  29393. /* readonly */
  29394. Array<Variant> attributeDefaults;
  29395. /* readonly */
  29396. Array<AttributeInfo> attributeInfos;
  29397. Array<Variant> attributes;
  29398. bool castShadows;
  29399. /* readonly */
  29400. String category;
  29401. float drawDistance;
  29402. Terrain eastNeighbor;
  29403. bool enabled;
  29404. /* readonly */
  29405. bool enabledEffective;
  29406. Array<Variant> globalVar;
  29407. /* readonly */
  29408. VariantMap globalVars;
  29409. Image heightMap;
  29410. /* readonly */
  29411. uint id;
  29412. uint lightMask;
  29413. float lodBias;
  29414. Material material;
  29415. uint maxLights;
  29416. uint maxLodLevels;
  29417. /* readonly */
  29418. Node node;
  29419. Terrain northNeighbor;
  29420. /* readonly */
  29421. uint numAttributes;
  29422. /* readonly */
  29423. IntVector2 numPatches;
  29424. /* readonly */
  29425. IntVector2 numVertices;
  29426. ObjectAnimation objectAnimation;
  29427. bool occludee;
  29428. bool occluder;
  29429. uint occlusionLodLevel;
  29430. int patchSize;
  29431. /* readonly */
  29432. Array<TerrainPatch> patches;
  29433. /* readonly */
  29434. int refs;
  29435. /* readonly */
  29436. bool replicated;
  29437. float shadowDistance;
  29438. uint shadowMask;
  29439. bool smoothing;
  29440. Terrain southNeighbor;
  29441. Vector3 spacing;
  29442. bool temporary;
  29443. /* readonly */
  29444. StringHash type;
  29445. /* readonly */
  29446. String typeName;
  29447. uint viewMask;
  29448. /* readonly */
  29449. int weakRefs;
  29450. Terrain westNeighbor;
  29451. uint zoneMask;
  29452. };
  29453. class TerrainPatch
  29454. {
  29455. public:
  29456. TerrainPatch();
  29457. // Methods:
  29458. void AddLight(Light);
  29459. void AddVertexLight(Light);
  29460. void AllocateNetworkState();
  29461. operator Animatable() const;
  29462. void ApplyAttributes();
  29463. const BoundingBox& GetBoundingBox() const;
  29464. const BoundingBox& GetWorldBoundingBox();
  29465. void CleanupConnection(Connection);
  29466. operator Component() const;
  29467. void DrawDebugGeometry(DebugRenderer, bool);
  29468. bool DrawOcclusion(OcclusionBuffer);
  29469. operator Drawable() const;
  29470. bool GetAnimationEnabled() const;
  29471. Variant GetAttribute(const String&) const;
  29472. Variant GetAttribute(uint) const;
  29473. ValueAnimation GetAttributeAnimation(const String&) const;
  29474. float GetAttributeAnimationSpeed(const String&) const;
  29475. float GetAttributeAnimationTime(const String&) const;
  29476. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29477. Variant GetAttributeDefault(const String&) const;
  29478. Variant GetAttributeDefault(uint) const;
  29479. bool GetBlockEvents() const;
  29480. bool GetCastShadows() const;
  29481. Component GetComponent(StringHash) const;
  29482. float GetDistance() const;
  29483. float GetDrawDistance() const;
  29484. uint8 GetDrawableFlags() const;
  29485. TerrainPatch GetEastPatch() const;
  29486. VariantMap& GetEventDataMap() const;
  29487. Object GetEventSender() const;
  29488. Light GetFirstLight() const;
  29489. Geometry GetGeometry() const;
  29490. uint GetID() const;
  29491. bool GetInterceptNetworkUpdate(const String&) const;
  29492. uint GetLightMask() const;
  29493. Array<Light> GetLights() const;
  29494. float GetLodBias() const;
  29495. float GetLodDistance() const;
  29496. Geometry GetLodGeometry(uint, uint);
  29497. uint GetLodLevel() const;
  29498. uint GetMaxLights() const;
  29499. Geometry GetMaxLodGeometry() const;
  29500. float GetMaxZ() const;
  29501. float GetMinZ() const;
  29502. Node GetNode() const;
  29503. TerrainPatch GetNorthPatch() const;
  29504. uint GetNumAttributes() const;
  29505. uint GetNumNetworkAttributes() const;
  29506. uint GetNumOccluderTriangles();
  29507. ObjectAnimation GetObjectAnimation() const;
  29508. ResourceRef GetObjectAnimationAttr() const;
  29509. Geometry GetOcclusionGeometry() const;
  29510. Terrain GetOwner() const;
  29511. Scene GetScene() const;
  29512. float GetShadowDistance() const;
  29513. uint GetShadowMask() const;
  29514. float GetSortValue() const;
  29515. TerrainPatch GetSouthPatch() const;
  29516. Object GetSubsystem(StringHash) const;
  29517. StringHash GetType() const;
  29518. UpdateGeometryType GetUpdateGeometryType();
  29519. VertexBuffer GetVertexBuffer() const;
  29520. Array<Light> GetVertexLights() const;
  29521. uint GetViewMask() const;
  29522. TerrainPatch GetWestPatch() const;
  29523. Zone GetZone() const;
  29524. uint GetZoneMask() const;
  29525. bool HasBasePass(uint) const;
  29526. bool HasEventHandlers() const;
  29527. bool HasSubscribedToEvent(Object, StringHash) const;
  29528. bool HasSubscribedToEvent(StringHash) const;
  29529. const IntVector2& GetCoordinates() const;
  29530. bool IsEnabled() const;
  29531. bool IsEnabledEffective() const;
  29532. bool IsInView() const;
  29533. bool IsInView(Camera) const;
  29534. bool IsInView(const FrameInfo&, bool = false) const;
  29535. bool IsInstanceOf(StringHash) const;
  29536. bool IsOccludee() const;
  29537. bool IsOccluder() const;
  29538. bool IsReplicated() const;
  29539. bool IsTemporary() const;
  29540. bool IsZoneDirty() const;
  29541. void LimitLights();
  29542. void LimitVertexLights(bool);
  29543. bool Load(Deserializer&);
  29544. bool LoadJSON(const JSONValue&);
  29545. bool LoadXML(const XMLElement&);
  29546. void MarkForUpdate();
  29547. void MarkInView(const FrameInfo&);
  29548. void MarkInView(uint);
  29549. void MarkNetworkUpdate();
  29550. operator Object() const;
  29551. void OnEvent(Object, StringHash, VariantMap&);
  29552. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29553. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29554. void OnSetEnabled();
  29555. void PrepareNetworkUpdate();
  29556. bool ReadDeltaUpdate(Deserializer&);
  29557. bool ReadLatestDataUpdate(Deserializer&);
  29558. operator RefCounted() const;
  29559. int Refs() const;
  29560. void Remove();
  29561. void RemoveAttributeAnimation(const String&);
  29562. void RemoveInstanceDefault();
  29563. void RemoveObjectAnimation();
  29564. void ResetLod();
  29565. void ResetToDefault();
  29566. bool Save(Serializer&) const;
  29567. bool SaveDefaultAttributes() const;
  29568. bool SaveJSON(JSONValue&) const;
  29569. bool SaveXML(XMLElement&) const;
  29570. void SendEvent(StringHash);
  29571. void SendEvent(StringHash, VariantMap&);
  29572. operator Serializable() const;
  29573. void SetAnimationEnabled(bool);
  29574. void SetAnimationTime(float);
  29575. bool SetAttribute(const String&, const Variant&);
  29576. bool SetAttribute(uint, const Variant&);
  29577. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  29578. void SetAttributeAnimationSpeed(const String&, float);
  29579. void SetAttributeAnimationTime(const String&, float);
  29580. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  29581. void SetBasePass(uint);
  29582. void SetBlockEvents(bool);
  29583. void SetBoundingBox(const BoundingBox&);
  29584. void SetCastShadows(bool);
  29585. void SetCoordinates(const IntVector2&);
  29586. void SetDrawDistance(float);
  29587. void SetEnabled(bool);
  29588. void SetGlobalVar(StringHash, const Variant&);
  29589. void SetInstanceDefault(bool);
  29590. void SetInterceptNetworkUpdate(const String&, bool);
  29591. void SetLightMask(uint);
  29592. void SetLodBias(float);
  29593. void SetMaterial(Material);
  29594. void SetMaxLights(uint);
  29595. void SetMinMaxZ(float, float);
  29596. void SetNeighbors(TerrainPatch, TerrainPatch, TerrainPatch, TerrainPatch);
  29597. void SetObjectAnimation(ObjectAnimation);
  29598. void SetObjectAnimationAttr(const ResourceRef&);
  29599. void SetOccludee(bool);
  29600. void SetOccluder(bool);
  29601. void SetOwner(Terrain);
  29602. void SetShadowDistance(float);
  29603. void SetShadowMask(uint);
  29604. void SetSortValue(float);
  29605. void SetTemporary(bool);
  29606. void SetViewMask(uint);
  29607. void SetZone(Zone, bool = false);
  29608. void SetZoneMask(uint);
  29609. const String& GetCategory() const;
  29610. const String& GetTypeName() const;
  29611. void UnsubscribeFromAllEvents();
  29612. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29613. void UnsubscribeFromEvent(Object, StringHash);
  29614. void UnsubscribeFromEvent(StringHash);
  29615. void UnsubscribeFromEvents(Object);
  29616. void Update(const FrameInfo&);
  29617. void UpdateBatches(const FrameInfo&);
  29618. void UpdateGeometry(const FrameInfo&);
  29619. const Variant& GetGlobalVar(StringHash) const;
  29620. const VariantMap& GetGlobalVars() const;
  29621. int WeakRefs() const;
  29622. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  29623. void WriteInitialDeltaUpdate(Serializer&, uint8);
  29624. void WriteLatestDataUpdate(Serializer&, uint8);
  29625. operator const Animatable() const;
  29626. operator const Component() const;
  29627. operator const Drawable() const;
  29628. operator const Object() const;
  29629. operator const RefCounted() const;
  29630. operator const Serializable() const;
  29631. // Properties:
  29632. bool animationEnabled;
  29633. /* readonly */
  29634. Array<Variant> attributeDefaults;
  29635. /* readonly */
  29636. Array<AttributeInfo> attributeInfos;
  29637. Array<Variant> attributes;
  29638. /* readonly */
  29639. BoundingBox boundingBox;
  29640. bool castShadows;
  29641. /* readonly */
  29642. String category;
  29643. float drawDistance;
  29644. bool enabled;
  29645. /* readonly */
  29646. bool enabledEffective;
  29647. Array<Variant> globalVar;
  29648. /* readonly */
  29649. VariantMap globalVars;
  29650. /* readonly */
  29651. uint id;
  29652. /* readonly */
  29653. bool inView;
  29654. uint lightMask;
  29655. float lodBias;
  29656. uint maxLights;
  29657. /* readonly */
  29658. Node node;
  29659. /* readonly */
  29660. uint numAttributes;
  29661. ObjectAnimation objectAnimation;
  29662. bool occludee;
  29663. bool occluder;
  29664. /* readonly */
  29665. int refs;
  29666. /* readonly */
  29667. bool replicated;
  29668. float shadowDistance;
  29669. uint shadowMask;
  29670. bool temporary;
  29671. /* readonly */
  29672. StringHash type;
  29673. /* readonly */
  29674. String typeName;
  29675. uint viewMask;
  29676. /* readonly */
  29677. int weakRefs;
  29678. /* readonly */
  29679. BoundingBox worldBoundingBox;
  29680. /* readonly */
  29681. Zone zone;
  29682. uint zoneMask;
  29683. };
  29684. class Text
  29685. {
  29686. public:
  29687. Text();
  29688. // Methods:
  29689. void AddChild(UIElement);
  29690. void AddTag(const String&);
  29691. void AddTags(Array<String>);
  29692. void AddTags(const String&, int8 = ';');
  29693. void AdjustScissor(IntRect&);
  29694. void AllocateNetworkState();
  29695. operator Animatable() const;
  29696. void ApplyAttributes();
  29697. void BringToFront();
  29698. void ClearSelection();
  29699. const Color& GetColor(Corner) const;
  29700. const Color& GetColorAttr() const;
  29701. const Color& GetDerivedColor() const;
  29702. const Color& GetEffectColor() const;
  29703. const Color& GetHoverColor() const;
  29704. const Color& GetSelectionColor() const;
  29705. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  29706. void DisableLayoutUpdate();
  29707. IntVector2 ElementToScreen(const IntVector2&);
  29708. void EnableLayoutUpdate();
  29709. bool FilterAttributes(XMLElement&) const;
  29710. uint FindChild(UIElement) const;
  29711. bool GetAnimationEnabled() const;
  29712. Variant GetAttribute(const String&) const;
  29713. Variant GetAttribute(uint) const;
  29714. ValueAnimation GetAttributeAnimation(const String&) const;
  29715. float GetAttributeAnimationSpeed(const String&) const;
  29716. float GetAttributeAnimationTime(const String&) const;
  29717. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29718. Variant GetAttributeDefault(const String&) const;
  29719. Variant GetAttributeDefault(uint) const;
  29720. bool GetAutoLocalizable() const;
  29721. bool GetBlockEvents() const;
  29722. bool GetBringToBack() const;
  29723. bool GetBringToFront() const;
  29724. Vector2 GetCharPosition(uint);
  29725. Vector2 GetCharSize(uint);
  29726. UIElement GetChild(const String&, bool = false) const;
  29727. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  29728. UIElement GetChild(uint) const;
  29729. Array<UIElement> GetChildren() const;
  29730. Array<UIElement> GetChildren(bool) const;
  29731. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  29732. bool GetClipChildren() const;
  29733. IntRect GetCombinedScreenRect();
  29734. XMLFile GetDefaultStyle(bool = true) const;
  29735. float GetDerivedOpacity() const;
  29736. uint GetDragButtonCombo() const;
  29737. uint GetDragButtonCount() const;
  29738. uint GetDragDropMode() const;
  29739. float GetEffectDepthBias() const;
  29740. bool GetEffectRoundStroke() const;
  29741. int GetEffectStrokeThickness() const;
  29742. IntVector2 GetEffectiveMinSize() const;
  29743. UIElement GetElementEventSender() const;
  29744. bool GetEnableAnchor() const;
  29745. VariantMap& GetEventDataMap() const;
  29746. Object GetEventSender() const;
  29747. FocusMode GetFocusMode() const;
  29748. Font GetFont() const;
  29749. ResourceRef GetFontAttr() const;
  29750. float GetFontSize() const;
  29751. int GetHeight() const;
  29752. HorizontalAlignment GetHorizontalAlignment() const;
  29753. int GetIndent() const;
  29754. int GetIndentSpacing() const;
  29755. int GetIndentWidth() const;
  29756. bool GetInterceptNetworkUpdate(const String&) const;
  29757. int GetLayoutElementMaxSize() const;
  29758. LayoutMode GetLayoutMode() const;
  29759. int GetLayoutSpacing() const;
  29760. int GetMaxHeight() const;
  29761. int GetMaxWidth() const;
  29762. int GetMinHeight() const;
  29763. int GetMinWidth() const;
  29764. uint GetNumAttributes() const;
  29765. uint GetNumChars() const;
  29766. uint GetNumChildren(bool = false) const;
  29767. uint GetNumNetworkAttributes() const;
  29768. uint GetNumRows() const;
  29769. ObjectAnimation GetObjectAnimation() const;
  29770. ResourceRef GetObjectAnimationAttr() const;
  29771. float GetOpacity() const;
  29772. UIElement GetParent() const;
  29773. int GetPriority() const;
  29774. UIElement GetRoot() const;
  29775. float GetRowHeight() const;
  29776. float GetRowSpacing() const;
  29777. float GetRowWidth(uint) const;
  29778. uint GetSelectionLength() const;
  29779. uint GetSelectionStart() const;
  29780. bool GetSortChildren() const;
  29781. Object GetSubsystem(StringHash) const;
  29782. Array<String> GetTags() const;
  29783. HorizontalAlignment GetTextAlignment() const;
  29784. String GetTextAttr() const;
  29785. TextEffect GetTextEffect() const;
  29786. TraversalMode GetTraversalMode() const;
  29787. StringHash GetType() const;
  29788. bool GetUseDerivedOpacity() const;
  29789. VerticalAlignment GetVerticalAlignment() const;
  29790. int GetWidth() const;
  29791. bool GetWordwrap() const;
  29792. bool HasColorGradient() const;
  29793. bool HasEventHandlers() const;
  29794. bool HasFocus() const;
  29795. bool HasSubscribedToEvent(Object, StringHash) const;
  29796. bool HasSubscribedToEvent(StringHash) const;
  29797. bool HasTag(const String&) const;
  29798. void InsertChild(uint, UIElement);
  29799. const IntRect& GetClipBorder() const;
  29800. const IntRect& GetLayoutBorder() const;
  29801. const IntVector2& GetChildOffset() const;
  29802. const IntVector2& GetEffectShadowOffset() const;
  29803. const IntVector2& GetMaxOffset() const;
  29804. const IntVector2& GetMaxSize() const;
  29805. const IntVector2& GetMinOffset() const;
  29806. const IntVector2& GetMinSize() const;
  29807. const IntVector2& GetPosition() const;
  29808. const IntVector2& GetScreenPosition() const;
  29809. const IntVector2& GetSize() const;
  29810. bool IsChildOf(UIElement) const;
  29811. bool IsEditable() const;
  29812. bool IsElementEventSender() const;
  29813. bool IsEnabled() const;
  29814. bool IsEnabledSelf() const;
  29815. bool IsFixedHeight() const;
  29816. bool IsFixedSize() const;
  29817. bool IsFixedWidth() const;
  29818. bool IsHovering() const;
  29819. bool IsInside(IntVector2, bool);
  29820. bool IsInsideCombined(IntVector2, bool);
  29821. bool IsInstanceOf(StringHash) const;
  29822. bool IsInternal() const;
  29823. bool IsSelected() const;
  29824. bool IsTemporary() const;
  29825. bool IsVisible() const;
  29826. bool IsVisibleEffective() const;
  29827. bool IsWheelHandler() const;
  29828. bool IsWithinScissor(const IntRect&);
  29829. bool Load(Deserializer&);
  29830. UIElement LoadChildXML(XMLFile, XMLFile);
  29831. UIElement LoadChildXML(const XMLElement&, XMLFile);
  29832. bool LoadJSON(const JSONValue&);
  29833. bool LoadXML(Deserializer&);
  29834. bool LoadXML(File);
  29835. bool LoadXML(VectorBuffer&);
  29836. bool LoadXML(XMLFile, XMLFile);
  29837. bool LoadXML(const XMLElement&);
  29838. bool LoadXML(const XMLElement&, XMLFile);
  29839. void MarkNetworkUpdate();
  29840. operator Object() const;
  29841. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  29842. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  29843. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  29844. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29845. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29846. bool OnDragDropFinish(UIElement);
  29847. bool OnDragDropTest(UIElement);
  29848. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29849. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29850. void OnEvent(Object, StringHash, VariantMap&);
  29851. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29852. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29853. void OnIndentSet();
  29854. void OnKey(uint, uint, uint);
  29855. void OnPositionSet(const IntVector2&);
  29856. void OnResize(const IntVector2&, const IntVector2&);
  29857. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29858. void OnSetEditable();
  29859. void OnTextInput(const String&);
  29860. void OnWheel(int, uint, uint);
  29861. bool ReadDeltaUpdate(Deserializer&);
  29862. bool ReadLatestDataUpdate(Deserializer&);
  29863. operator RefCounted() const;
  29864. int Refs() const;
  29865. void Remove();
  29866. void RemoveAllChildren();
  29867. void RemoveAllTags();
  29868. void RemoveAttributeAnimation(const String&);
  29869. void RemoveChild(UIElement, uint = 0);
  29870. void RemoveChild(uint);
  29871. void RemoveChildAtIndex(uint);
  29872. void RemoveInstanceDefault();
  29873. void RemoveObjectAnimation();
  29874. bool RemoveTag(const String&);
  29875. void ResetDeepEnabled();
  29876. void ResetToDefault();
  29877. bool Save(Serializer&) const;
  29878. bool SaveDefaultAttributes() const;
  29879. bool SaveJSON(JSONValue&) const;
  29880. bool SaveXML(File, const String& indentation = "\t");
  29881. bool SaveXML(Serializer&, const String& = "\t") const;
  29882. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  29883. bool SaveXML(XMLElement&) const;
  29884. IntVector2 ScreenToElement(const IntVector2&);
  29885. void SendEvent(StringHash);
  29886. void SendEvent(StringHash, VariantMap&);
  29887. operator Serializable() const;
  29888. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  29889. void SetAnimationEnabled(bool);
  29890. void SetAnimationTime(float);
  29891. bool SetAttribute(const String&, const Variant&);
  29892. bool SetAttribute(uint, const Variant&);
  29893. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  29894. void SetAttributeAnimationSpeed(const String&, float);
  29895. void SetAttributeAnimationTime(const String&, float);
  29896. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  29897. void SetAutoLocalizable(bool);
  29898. void SetBlockEvents(bool);
  29899. void SetBringToBack(bool);
  29900. void SetBringToFront(bool);
  29901. void SetChildOffset(const IntVector2&);
  29902. void SetClipBorder(const IntRect&);
  29903. void SetClipChildren(bool);
  29904. void SetColor(Corner, const Color&);
  29905. void SetColor(const Color&);
  29906. void SetDeepEnabled(bool);
  29907. void SetDefaultStyle(XMLFile);
  29908. void SetDragDropMode(uint);
  29909. void SetEditable(bool);
  29910. void SetEffectColor(const Color&);
  29911. void SetEffectDepthBias(float);
  29912. void SetEffectRoundStroke(bool);
  29913. void SetEffectShadowOffset(const IntVector2&);
  29914. void SetEffectStrokeThickness(int);
  29915. void SetElementEventSender(bool);
  29916. void SetEnableAnchor(bool);
  29917. void SetEnabled(bool);
  29918. void SetEnabledRecursive(bool);
  29919. void SetFixedHeight(int);
  29920. void SetFixedSize(const IntVector2&);
  29921. void SetFixedSize(int, int);
  29922. void SetFixedWidth(int);
  29923. void SetFocus(bool);
  29924. void SetFocusMode(FocusMode);
  29925. bool SetFont(Font, float = DEFAULT_FONT_SIZE);
  29926. bool SetFont(const String&, float = DEFAULT_FONT_SIZE);
  29927. void SetFontAttr(const ResourceRef&);
  29928. bool SetFontSize(float);
  29929. void SetGlobalVar(StringHash, const Variant&);
  29930. void SetHeight(int);
  29931. void SetHorizontalAlignment(HorizontalAlignment);
  29932. void SetHoverColor(const Color&);
  29933. void SetHovering(bool);
  29934. void SetIndent(int);
  29935. void SetIndentSpacing(int);
  29936. void SetInstanceDefault(bool);
  29937. void SetInterceptNetworkUpdate(const String&, bool);
  29938. void SetInternal(bool);
  29939. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  29940. void SetLayoutBorder(const IntRect&);
  29941. void SetLayoutFlexScale(const Vector2&);
  29942. void SetLayoutMode(LayoutMode);
  29943. void SetLayoutSpacing(int);
  29944. void SetMaxAnchor(const Vector2&);
  29945. void SetMaxAnchor(float, float);
  29946. void SetMaxHeight(int);
  29947. void SetMaxOffset(const IntVector2&);
  29948. void SetMaxSize(const IntVector2&);
  29949. void SetMaxSize(int, int);
  29950. void SetMaxWidth(int);
  29951. void SetMinAnchor(const Vector2&);
  29952. void SetMinAnchor(float, float);
  29953. void SetMinHeight(int);
  29954. void SetMinOffset(const IntVector2&);
  29955. void SetMinSize(const IntVector2&);
  29956. void SetMinSize(int, int);
  29957. void SetMinWidth(int);
  29958. void SetName(const String&);
  29959. void SetObjectAnimation(ObjectAnimation);
  29960. void SetObjectAnimationAttr(const ResourceRef&);
  29961. void SetOpacity(float);
  29962. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  29963. void SetPivot(const Vector2&);
  29964. void SetPivot(float, float);
  29965. void SetPosition(const IntVector2&);
  29966. void SetPosition(int, int);
  29967. void SetPriority(int);
  29968. void SetRenderTexture(Texture2D);
  29969. void SetRowSpacing(float);
  29970. void SetSelected(bool);
  29971. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  29972. void SetSelectionColor(const Color&);
  29973. void SetSize(const IntVector2&);
  29974. void SetSize(int, int);
  29975. void SetSortChildren(bool);
  29976. bool SetStyle(const String&, XMLFile = null);
  29977. bool SetStyle(const XMLElement&);
  29978. bool SetStyleAuto(XMLFile = null);
  29979. void SetTags(Array<String>);
  29980. void SetTemporary(bool);
  29981. void SetText(const String&);
  29982. void SetTextAlignment(HorizontalAlignment);
  29983. void SetTextAttr(const String&);
  29984. void SetTextEffect(TextEffect);
  29985. void SetTraversalMode(TraversalMode);
  29986. void SetUseDerivedOpacity(bool);
  29987. void SetVar(StringHash, const Variant&);
  29988. void SetVerticalAlignment(VerticalAlignment);
  29989. void SetVisible(bool);
  29990. void SetWidth(int);
  29991. void SetWordwrap(bool);
  29992. void SortChildren();
  29993. const String& GetAppliedStyle() const;
  29994. const String& GetCategory() const;
  29995. const String& GetName() const;
  29996. const String& GetText() const;
  29997. const String& GetTypeName() const;
  29998. operator UIElement() const;
  29999. operator UISelectable() const;
  30000. void UnsubscribeFromAllEvents();
  30001. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30002. void UnsubscribeFromEvent(Object, StringHash);
  30003. void UnsubscribeFromEvent(StringHash);
  30004. void UnsubscribeFromEvents(Object);
  30005. void Update(float);
  30006. void UpdateLayout();
  30007. const Variant& GetGlobalVar(StringHash) const;
  30008. const Variant& GetVar(const StringHash&) const;
  30009. const VariantMap& GetGlobalVars() const;
  30010. const VariantMap& GetVars() const;
  30011. const Vector2& GetLayoutFlexScale() const;
  30012. const Vector2& GetMaxAnchor() const;
  30013. const Vector2& GetMinAnchor() const;
  30014. const Vector2& GetPivot() const;
  30015. int WeakRefs() const;
  30016. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  30017. void WriteInitialDeltaUpdate(Serializer&, uint8);
  30018. void WriteLatestDataUpdate(Serializer&, uint8);
  30019. operator const Animatable() const;
  30020. operator const Object() const;
  30021. operator const RefCounted() const;
  30022. operator const Serializable() const;
  30023. operator const UIElement() const;
  30024. operator const UISelectable() const;
  30025. // Properties:
  30026. bool animationEnabled;
  30027. /* readonly */
  30028. Array<Variant> attributeDefaults;
  30029. /* readonly */
  30030. Array<AttributeInfo> attributeInfos;
  30031. Array<Variant> attributes;
  30032. bool autoLocalizable;
  30033. bool bringToBack;
  30034. bool bringToFront;
  30035. /* readonly */
  30036. String category;
  30037. /* readonly */
  30038. Array<Vector2> charPositions;
  30039. /* readonly */
  30040. Array<Vector2> charSizes;
  30041. /* readonly */
  30042. IntVector2 childOffset;
  30043. /* readonly */
  30044. Array<UIElement> children;
  30045. IntRect clipBorder;
  30046. bool clipChildren;
  30047. /* writeonly */
  30048. Color color;
  30049. /* readonly */
  30050. bool colorGradient;
  30051. Array<Color> colors;
  30052. /* readonly */
  30053. IntRect combinedScreenRect;
  30054. XMLFile defaultStyle;
  30055. /* readonly */
  30056. float derivedOpacity;
  30057. /* readonly */
  30058. uint dragButtonCombo;
  30059. /* readonly */
  30060. uint dragButtonCount;
  30061. uint dragDropMode;
  30062. bool editable;
  30063. Color effectColor;
  30064. bool effectRoundStroke;
  30065. IntVector2 effectShadowOffset;
  30066. int effectStrokeThickness;
  30067. bool elementEventSender;
  30068. bool enableAnchor;
  30069. bool enabled;
  30070. /* readonly */
  30071. bool enabledSelf;
  30072. /* readonly */
  30073. bool fixedHeight;
  30074. /* readonly */
  30075. bool fixedSize;
  30076. /* readonly */
  30077. bool fixedWidth;
  30078. bool focus;
  30079. FocusMode focusMode;
  30080. /* readonly */
  30081. Font font;
  30082. float fontSize;
  30083. Array<Variant> globalVar;
  30084. /* readonly */
  30085. VariantMap globalVars;
  30086. int height;
  30087. HorizontalAlignment horizontalAlignment;
  30088. Color hoverColor;
  30089. /* readonly */
  30090. bool hovering;
  30091. int indent;
  30092. int indentSpacing;
  30093. /* readonly */
  30094. int indentWidth;
  30095. bool internal;
  30096. IntRect layoutBorder;
  30097. Vector2 layoutFlexScale;
  30098. LayoutMode layoutMode;
  30099. int layoutSpacing;
  30100. Vector2 maxAnchor;
  30101. int maxHeight;
  30102. IntVector2 maxOffset;
  30103. IntVector2 maxSize;
  30104. int maxWidth;
  30105. Vector2 minAnchor;
  30106. int minHeight;
  30107. IntVector2 minOffset;
  30108. IntVector2 minSize;
  30109. int minWidth;
  30110. String name;
  30111. /* readonly */
  30112. uint numAllChildren;
  30113. /* readonly */
  30114. uint numAttributes;
  30115. /* readonly */
  30116. uint numChars;
  30117. /* readonly */
  30118. uint numChildren;
  30119. /* readonly */
  30120. uint numRows;
  30121. ObjectAnimation objectAnimation;
  30122. float opacity;
  30123. UIElement parent;
  30124. Vector2 pivot;
  30125. IntVector2 position;
  30126. int priority;
  30127. /* readonly */
  30128. int refs;
  30129. /* readonly */
  30130. UIElement root;
  30131. /* readonly */
  30132. float rowHeight;
  30133. float rowSpacing;
  30134. /* readonly */
  30135. Array<float> rowWidths;
  30136. /* readonly */
  30137. IntVector2 screenPosition;
  30138. bool selected;
  30139. Color selectionColor;
  30140. /* readonly */
  30141. uint selectionLength;
  30142. /* readonly */
  30143. uint selectionStart;
  30144. IntVector2 size;
  30145. bool sortChildren;
  30146. String style;
  30147. /* readonly */
  30148. Array<String> tags;
  30149. bool temporary;
  30150. String text;
  30151. HorizontalAlignment textAlignment;
  30152. TextEffect textEffect;
  30153. TraversalMode traversalMode;
  30154. /* readonly */
  30155. StringHash type;
  30156. /* readonly */
  30157. String typeName;
  30158. bool useDerivedOpacity;
  30159. /* readonly */
  30160. VariantMap vars;
  30161. VerticalAlignment verticalAlignment;
  30162. bool visible;
  30163. /* readonly */
  30164. bool visibleEffective;
  30165. /* readonly */
  30166. int weakRefs;
  30167. int width;
  30168. bool wordwrap;
  30169. };
  30170. class Text3D
  30171. {
  30172. public:
  30173. Text3D();
  30174. // Methods:
  30175. void AddLight(Light);
  30176. void AddVertexLight(Light);
  30177. void AllocateNetworkState();
  30178. operator Animatable() const;
  30179. void ApplyAttributes();
  30180. const BoundingBox& GetBoundingBox() const;
  30181. const BoundingBox& GetWorldBoundingBox();
  30182. void CleanupConnection(Connection);
  30183. const Color& GetColor(Corner) const;
  30184. const Color& GetColorAttr() const;
  30185. const Color& GetEffectColor() const;
  30186. operator Component() const;
  30187. void DrawDebugGeometry(DebugRenderer, bool);
  30188. bool DrawOcclusion(OcclusionBuffer);
  30189. operator Drawable() const;
  30190. bool GetAnimationEnabled() const;
  30191. Variant GetAttribute(const String&) const;
  30192. Variant GetAttribute(uint) const;
  30193. ValueAnimation GetAttributeAnimation(const String&) const;
  30194. float GetAttributeAnimationSpeed(const String&) const;
  30195. float GetAttributeAnimationTime(const String&) const;
  30196. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  30197. Variant GetAttributeDefault(const String&) const;
  30198. Variant GetAttributeDefault(uint) const;
  30199. bool GetBlockEvents() const;
  30200. bool GetCastShadows() const;
  30201. Vector2 GetCharPosition(uint);
  30202. Vector2 GetCharSize(uint);
  30203. Component GetComponent(StringHash) const;
  30204. float GetDistance() const;
  30205. float GetDrawDistance() const;
  30206. uint8 GetDrawableFlags() const;
  30207. float GetEffectDepthBias() const;
  30208. bool GetEffectRoundStroke() const;
  30209. int GetEffectStrokeThickness() const;
  30210. VariantMap& GetEventDataMap() const;
  30211. Object GetEventSender() const;
  30212. FaceCameraMode GetFaceCameraMode() const;
  30213. Light GetFirstLight() const;
  30214. Font GetFont() const;
  30215. ResourceRef GetFontAttr() const;
  30216. float GetFontSize() const;
  30217. int GetHeight() const;
  30218. HorizontalAlignment GetHorizontalAlignment() const;
  30219. uint GetID() const;
  30220. bool GetInterceptNetworkUpdate(const String&) const;
  30221. uint GetLightMask() const;
  30222. Array<Light> GetLights() const;
  30223. float GetLodBias() const;
  30224. float GetLodDistance() const;
  30225. Geometry GetLodGeometry(uint, uint);
  30226. Material GetMaterial() const;
  30227. ResourceRef GetMaterialAttr() const;
  30228. uint GetMaxLights() const;
  30229. float GetMaxZ() const;
  30230. float GetMinZ() const;
  30231. Node GetNode() const;
  30232. uint GetNumAttributes() const;
  30233. uint GetNumChars() const;
  30234. uint GetNumNetworkAttributes() const;
  30235. uint GetNumOccluderTriangles();
  30236. uint GetNumRows() const;
  30237. ObjectAnimation GetObjectAnimation() const;
  30238. ResourceRef GetObjectAnimationAttr() const;
  30239. float GetOpacity() const;
  30240. int GetRowHeight() const;
  30241. float GetRowSpacing() const;
  30242. int GetRowWidth(uint) const;
  30243. Scene GetScene() const;
  30244. float GetShadowDistance() const;
  30245. uint GetShadowMask() const;
  30246. float GetSortValue() const;
  30247. Object GetSubsystem(StringHash) const;
  30248. HorizontalAlignment GetTextAlignment() const;
  30249. String GetTextAttr() const;
  30250. TextEffect GetTextEffect() const;
  30251. StringHash GetType() const;
  30252. UpdateGeometryType GetUpdateGeometryType();
  30253. Array<Light> GetVertexLights() const;
  30254. VerticalAlignment GetVerticalAlignment() const;
  30255. uint GetViewMask() const;
  30256. int GetWidth() const;
  30257. bool GetWordwrap() const;
  30258. Zone GetZone() const;
  30259. uint GetZoneMask() const;
  30260. bool HasBasePass(uint) const;
  30261. bool HasEventHandlers() const;
  30262. bool HasSubscribedToEvent(Object, StringHash) const;
  30263. bool HasSubscribedToEvent(StringHash) const;
  30264. const IntVector2& GetEffectShadowOffset() const;
  30265. bool IsEnabled() const;
  30266. bool IsEnabledEffective() const;
  30267. bool IsFixedScreenSize() const;
  30268. bool IsInView() const;
  30269. bool IsInView(Camera) const;
  30270. bool IsInView(const FrameInfo&, bool = false) const;
  30271. bool IsInstanceOf(StringHash) const;
  30272. bool IsOccludee() const;
  30273. bool IsOccluder() const;
  30274. bool IsReplicated() const;
  30275. bool IsTemporary() const;
  30276. bool IsZoneDirty() const;
  30277. void LimitLights();
  30278. void LimitVertexLights(bool);
  30279. bool Load(Deserializer&);
  30280. bool LoadJSON(const JSONValue&);
  30281. bool LoadXML(const XMLElement&);
  30282. void MarkForUpdate();
  30283. void MarkInView(const FrameInfo&);
  30284. void MarkInView(uint);
  30285. void MarkNetworkUpdate();
  30286. operator Object() const;
  30287. void OnEvent(Object, StringHash, VariantMap&);
  30288. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  30289. void OnSetAttribute(const AttributeInfo&, const Variant&);
  30290. void OnSetEnabled();
  30291. void PrepareNetworkUpdate();
  30292. bool ReadDeltaUpdate(Deserializer&);
  30293. bool ReadLatestDataUpdate(Deserializer&);
  30294. operator RefCounted() const;
  30295. int Refs() const;
  30296. void Remove();
  30297. void RemoveAttributeAnimation(const String&);
  30298. void RemoveInstanceDefault();
  30299. void RemoveObjectAnimation();
  30300. void ResetToDefault();
  30301. bool Save(Serializer&) const;
  30302. bool SaveDefaultAttributes() const;
  30303. bool SaveJSON(JSONValue&) const;
  30304. bool SaveXML(XMLElement&) const;
  30305. void SendEvent(StringHash);
  30306. void SendEvent(StringHash, VariantMap&);
  30307. operator Serializable() const;
  30308. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  30309. void SetAnimationEnabled(bool);
  30310. void SetAnimationTime(float);
  30311. bool SetAttribute(const String&, const Variant&);
  30312. bool SetAttribute(uint, const Variant&);
  30313. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  30314. void SetAttributeAnimationSpeed(const String&, float);
  30315. void SetAttributeAnimationTime(const String&, float);
  30316. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  30317. void SetBasePass(uint);
  30318. void SetBlockEvents(bool);
  30319. void SetCastShadows(bool);
  30320. void SetColor(Corner, const Color&);
  30321. void SetColor(const Color&);
  30322. void SetDrawDistance(float);
  30323. void SetEffectColor(const Color&);
  30324. void SetEffectDepthBias(float);
  30325. void SetEffectRoundStroke(bool);
  30326. void SetEffectShadowOffset(const IntVector2&);
  30327. void SetEffectStrokeThickness(int);
  30328. void SetEnabled(bool);
  30329. void SetFaceCameraMode(FaceCameraMode);
  30330. void SetFixedScreenSize(bool);
  30331. bool SetFont(Font, float = DEFAULT_FONT_SIZE);
  30332. bool SetFont(const String&, float = DEFAULT_FONT_SIZE);
  30333. void SetFontAttr(const ResourceRef&);
  30334. bool SetFontSize(float);
  30335. void SetGlobalVar(StringHash, const Variant&);
  30336. void SetHorizontalAlignment(HorizontalAlignment);
  30337. void SetInstanceDefault(bool);
  30338. void SetInterceptNetworkUpdate(const String&, bool);
  30339. void SetLightMask(uint);
  30340. void SetLodBias(float);
  30341. void SetMaterial(Material);
  30342. void SetMaterialAttr(const ResourceRef&);
  30343. void SetMaxLights(uint);
  30344. void SetMinMaxZ(float, float);
  30345. void SetObjectAnimation(ObjectAnimation);
  30346. void SetObjectAnimationAttr(const ResourceRef&);
  30347. void SetOccludee(bool);
  30348. void SetOccluder(bool);
  30349. void SetOpacity(float);
  30350. void SetRowSpacing(float);
  30351. void SetShadowDistance(float);
  30352. void SetShadowMask(uint);
  30353. void SetSortValue(float);
  30354. void SetTemporary(bool);
  30355. void SetText(const String&);
  30356. void SetTextAlignment(HorizontalAlignment);
  30357. void SetTextAttr(const String&);
  30358. void SetTextEffect(TextEffect);
  30359. void SetVerticalAlignment(VerticalAlignment);
  30360. void SetViewMask(uint);
  30361. void SetWidth(int);
  30362. void SetWordwrap(bool);
  30363. void SetZone(Zone, bool = false);
  30364. void SetZoneMask(uint);
  30365. const String& GetCategory() const;
  30366. const String& GetText() const;
  30367. const String& GetTypeName() const;
  30368. void UnsubscribeFromAllEvents();
  30369. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30370. void UnsubscribeFromEvent(Object, StringHash);
  30371. void UnsubscribeFromEvent(StringHash);
  30372. void UnsubscribeFromEvents(Object);
  30373. void Update(const FrameInfo&);
  30374. void UpdateBatches(const FrameInfo&);
  30375. void UpdateGeometry(const FrameInfo&);
  30376. const Variant& GetGlobalVar(StringHash) const;
  30377. const VariantMap& GetGlobalVars() const;
  30378. int WeakRefs() const;
  30379. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  30380. void WriteInitialDeltaUpdate(Serializer&, uint8);
  30381. void WriteLatestDataUpdate(Serializer&, uint8);
  30382. operator const Animatable() const;
  30383. operator const Component() const;
  30384. operator const Drawable() const;
  30385. operator const Object() const;
  30386. operator const RefCounted() const;
  30387. operator const Serializable() const;
  30388. // Properties:
  30389. bool animationEnabled;
  30390. /* readonly */
  30391. Array<Variant> attributeDefaults;
  30392. /* readonly */
  30393. Array<AttributeInfo> attributeInfos;
  30394. Array<Variant> attributes;
  30395. /* readonly */
  30396. BoundingBox boundingBox;
  30397. bool castShadows;
  30398. /* readonly */
  30399. String category;
  30400. /* readonly */
  30401. Array<Vector2> charPositions;
  30402. /* readonly */
  30403. Array<Vector2> charSizes;
  30404. /* writeonly */
  30405. Color color;
  30406. Array<Color> colors;
  30407. float drawDistance;
  30408. Color effectColor;
  30409. float effectDepthBias;
  30410. bool effectRoundStroke;
  30411. IntVector2 effectShadowOffset;
  30412. int effectStrokeThickness;
  30413. bool enabled;
  30414. /* readonly */
  30415. bool enabledEffective;
  30416. FaceCameraMode faceCameraMode;
  30417. bool fixedScreenSize;
  30418. /* readonly */
  30419. Font font;
  30420. float fontSize;
  30421. Array<Variant> globalVar;
  30422. /* readonly */
  30423. VariantMap globalVars;
  30424. /* readonly */
  30425. int height;
  30426. HorizontalAlignment horizontalAlignment;
  30427. /* readonly */
  30428. uint id;
  30429. /* readonly */
  30430. bool inView;
  30431. uint lightMask;
  30432. float lodBias;
  30433. Material material;
  30434. uint maxLights;
  30435. /* readonly */
  30436. Node node;
  30437. /* readonly */
  30438. uint numAttributes;
  30439. /* readonly */
  30440. uint numChars;
  30441. /* readonly */
  30442. uint numRows;
  30443. ObjectAnimation objectAnimation;
  30444. bool occludee;
  30445. bool occluder;
  30446. float opacity;
  30447. /* readonly */
  30448. int refs;
  30449. /* readonly */
  30450. bool replicated;
  30451. /* readonly */
  30452. int rowHeight;
  30453. float rowSpacing;
  30454. /* readonly */
  30455. Array<int> rowWidths;
  30456. float shadowDistance;
  30457. uint shadowMask;
  30458. bool temporary;
  30459. String text;
  30460. HorizontalAlignment textAlignment;
  30461. TextEffect textEffect;
  30462. /* readonly */
  30463. StringHash type;
  30464. /* readonly */
  30465. String typeName;
  30466. VerticalAlignment verticalAlignment;
  30467. uint viewMask;
  30468. /* readonly */
  30469. int weakRefs;
  30470. int width;
  30471. bool wordwrap;
  30472. /* readonly */
  30473. BoundingBox worldBoundingBox;
  30474. /* readonly */
  30475. Zone zone;
  30476. uint zoneMask;
  30477. };
  30478. class Texture
  30479. {
  30480. public:
  30481. Texture();
  30482. // Methods:
  30483. void AddMetadata(const String&, const Variant&);
  30484. bool BeginLoad(Deserializer&);
  30485. void ClearDataLost();
  30486. const Color& GetBorderColor() const;
  30487. bool EndLoad();
  30488. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30489. uint GetAnisotropy() const;
  30490. AsyncLoadState GetAsyncLoadState() const;
  30491. bool GetAutoResolve() const;
  30492. Texture GetBackupTexture() const;
  30493. bool GetBlockEvents() const;
  30494. uint GetComponents() const;
  30495. uint GetDataSize(int, int) const;
  30496. uint GetDataSize(int, int, int) const;
  30497. int GetDepth() const;
  30498. VariantMap& GetEventDataMap() const;
  30499. Object GetEventSender() const;
  30500. TextureFilterMode GetFilterMode() const;
  30501. uint GetFormat() const;
  30502. uint GetGPUObjectName() const;
  30503. Graphics GetGraphics() const;
  30504. int GetHeight() const;
  30505. int GetLevelDepth(uint) const;
  30506. int GetLevelHeight(uint) const;
  30507. int GetLevelWidth(uint) const;
  30508. uint GetLevels() const;
  30509. bool GetLevelsDirty() const;
  30510. uint GetMemoryUse() const;
  30511. int GetMipsToSkip(uint) const;
  30512. int GetMultiSample() const;
  30513. StringHash GetNameHash() const;
  30514. bool GetParametersDirty() const;
  30515. uint GetRowDataSize(int) const;
  30516. bool GetSRGB() const;
  30517. bool GetShadowCompare() const;
  30518. Object GetSubsystem(StringHash) const;
  30519. uint GetTarget() const;
  30520. StringHash GetType() const;
  30521. TextureUsage GetUsage() const;
  30522. uint GetUseTimer();
  30523. int GetWidth() const;
  30524. bool HasEventHandlers() const;
  30525. bool HasMetadata() const;
  30526. bool HasPendingData() const;
  30527. bool HasSubscribedToEvent(Object, StringHash) const;
  30528. bool HasSubscribedToEvent(StringHash) const;
  30529. bool IsCompressed() const;
  30530. bool IsDataLost() const;
  30531. bool IsInstanceOf(StringHash) const;
  30532. bool IsResolveDirty() const;
  30533. bool Load(Deserializer&);
  30534. bool Load(File);
  30535. bool Load(VectorBuffer&);
  30536. bool Load(const String&);
  30537. bool LoadFile(const String&);
  30538. operator Object() const;
  30539. void OnDeviceLost();
  30540. void OnDeviceReset();
  30541. void OnEvent(Object, StringHash, VariantMap&);
  30542. operator RefCounted() const;
  30543. int Refs() const;
  30544. void RegenerateLevels();
  30545. void Release();
  30546. void RemoveAllMetadata();
  30547. void RemoveMetadata(const String&);
  30548. void ResetUseTimer();
  30549. operator Resource() const;
  30550. operator ResourceWithMetadata() const;
  30551. bool Save(File) const;
  30552. bool Save(Serializer&) const;
  30553. bool Save(VectorBuffer&) const;
  30554. bool Save(const String&) const;
  30555. bool SaveFile(const String&) const;
  30556. void SendEvent(StringHash);
  30557. void SendEvent(StringHash, VariantMap&);
  30558. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  30559. void SetAnisotropy(uint);
  30560. void SetAsyncLoadState(AsyncLoadState);
  30561. void SetBackupTexture(Texture);
  30562. void SetBlockEvents(bool);
  30563. void SetBorderColor(const Color&);
  30564. void SetFilterMode(TextureFilterMode);
  30565. void SetGlobalVar(StringHash, const Variant&);
  30566. void SetLevelsDirty();
  30567. void SetMemoryUse(uint);
  30568. void SetMipsToSkip(uint, int);
  30569. void SetName(const String&);
  30570. void SetNumLevels(uint);
  30571. void SetParameters(XMLFile);
  30572. void SetParameters(const XMLElement&);
  30573. void SetParametersDirty();
  30574. void SetResolveDirty(bool);
  30575. void SetSRGB(bool);
  30576. void SetShadowCompare(bool);
  30577. const String& GetCategory() const;
  30578. const String& GetName() const;
  30579. const String& GetTypeName() const;
  30580. operator Texture2D() const;
  30581. operator Texture2DArray() const;
  30582. operator Texture3D() const;
  30583. operator TextureCube() const;
  30584. void UnsubscribeFromAllEvents();
  30585. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30586. void UnsubscribeFromEvent(Object, StringHash);
  30587. void UnsubscribeFromEvent(StringHash);
  30588. void UnsubscribeFromEvents(Object);
  30589. void UpdateParameters();
  30590. const Variant& GetGlobalVar(StringHash) const;
  30591. const Variant& GetMetadata(const String&) const;
  30592. const VariantMap& GetGlobalVars() const;
  30593. int WeakRefs() const;
  30594. operator const Object() const;
  30595. operator const RefCounted() const;
  30596. operator const Resource() const;
  30597. operator const ResourceWithMetadata() const;
  30598. operator const Texture2D() const;
  30599. operator const Texture2DArray() const;
  30600. operator const Texture3D() const;
  30601. operator const TextureCube() const;
  30602. // Properties:
  30603. Array<TextureAddressMode> addressMode;
  30604. uint anisotropy;
  30605. /* readonly */
  30606. bool autoResolve;
  30607. Texture backupTexture;
  30608. Color borderColor;
  30609. /* readonly */
  30610. String category;
  30611. /* readonly */
  30612. uint components;
  30613. /* readonly */
  30614. bool compressed;
  30615. /* readonly */
  30616. bool dataLost;
  30617. TextureFilterMode filterMode;
  30618. /* readonly */
  30619. uint format;
  30620. Array<Variant> globalVar;
  30621. /* readonly */
  30622. VariantMap globalVars;
  30623. /* readonly */
  30624. bool hasMetadata;
  30625. /* readonly */
  30626. int height;
  30627. /* readonly */
  30628. Array<int> levelHeight;
  30629. /* readonly */
  30630. Array<int> levelWidth;
  30631. /* readonly */
  30632. uint levels;
  30633. /* readonly */
  30634. bool levelsDirty;
  30635. /* readonly */
  30636. uint memoryUse;
  30637. Array<Variant> metadata;
  30638. Array<int> mipsToSkip;
  30639. /* readonly */
  30640. int multiSample;
  30641. String name;
  30642. /* readonly */
  30643. int refs;
  30644. /* readonly */
  30645. bool resolveDirty;
  30646. bool sRGB;
  30647. /* readonly */
  30648. StringHash type;
  30649. /* readonly */
  30650. String typeName;
  30651. /* readonly */
  30652. TextureUsage usage;
  30653. /* readonly */
  30654. uint useTimer;
  30655. /* readonly */
  30656. int weakRefs;
  30657. /* readonly */
  30658. int width;
  30659. };
  30660. class Texture2D
  30661. {
  30662. public:
  30663. Texture2D();
  30664. // Methods:
  30665. void AddMetadata(const String&, const Variant&);
  30666. bool BeginLoad(Deserializer&);
  30667. void ClearDataLost();
  30668. const Color& GetBorderColor() const;
  30669. bool EndLoad();
  30670. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30671. uint GetAnisotropy() const;
  30672. AsyncLoadState GetAsyncLoadState() const;
  30673. bool GetAutoResolve() const;
  30674. Texture GetBackupTexture() const;
  30675. bool GetBlockEvents() const;
  30676. uint GetComponents() const;
  30677. uint GetDataSize(int, int) const;
  30678. uint GetDataSize(int, int, int) const;
  30679. int GetDepth() const;
  30680. VariantMap& GetEventDataMap() const;
  30681. Object GetEventSender() const;
  30682. TextureFilterMode GetFilterMode() const;
  30683. uint GetFormat() const;
  30684. uint GetGPUObjectName() const;
  30685. Graphics GetGraphics() const;
  30686. int GetHeight() const;
  30687. Image GetImage() const;
  30688. bool GetImage(Image&) const;
  30689. int GetLevelDepth(uint) const;
  30690. int GetLevelHeight(uint) const;
  30691. int GetLevelWidth(uint) const;
  30692. uint GetLevels() const;
  30693. bool GetLevelsDirty() const;
  30694. uint GetMemoryUse() const;
  30695. int GetMipsToSkip(uint) const;
  30696. int GetMultiSample() const;
  30697. StringHash GetNameHash() const;
  30698. bool GetParametersDirty() const;
  30699. RenderSurface GetRenderSurface() const;
  30700. uint GetRowDataSize(int) const;
  30701. bool GetSRGB() const;
  30702. bool GetShadowCompare() const;
  30703. Object GetSubsystem(StringHash) const;
  30704. uint GetTarget() const;
  30705. StringHash GetType() const;
  30706. TextureUsage GetUsage() const;
  30707. uint GetUseTimer();
  30708. int GetWidth() const;
  30709. bool HasEventHandlers() const;
  30710. bool HasMetadata() const;
  30711. bool HasPendingData() const;
  30712. bool HasSubscribedToEvent(Object, StringHash) const;
  30713. bool HasSubscribedToEvent(StringHash) const;
  30714. bool IsCompressed() const;
  30715. bool IsDataLost() const;
  30716. bool IsInstanceOf(StringHash) const;
  30717. bool IsResolveDirty() const;
  30718. bool Load(Deserializer&);
  30719. bool Load(File);
  30720. bool Load(VectorBuffer&);
  30721. bool Load(const String&);
  30722. bool LoadFile(const String&);
  30723. operator Object() const;
  30724. void OnDeviceLost();
  30725. void OnDeviceReset();
  30726. void OnEvent(Object, StringHash, VariantMap&);
  30727. operator RefCounted() const;
  30728. int Refs() const;
  30729. void RegenerateLevels();
  30730. void Release();
  30731. void RemoveAllMetadata();
  30732. void RemoveMetadata(const String&);
  30733. void ResetUseTimer();
  30734. operator Resource() const;
  30735. operator ResourceWithMetadata() const;
  30736. bool Save(File) const;
  30737. bool Save(Serializer&) const;
  30738. bool Save(VectorBuffer&) const;
  30739. bool Save(const String&) const;
  30740. bool SaveFile(const String&) const;
  30741. void SendEvent(StringHash);
  30742. void SendEvent(StringHash, VariantMap&);
  30743. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  30744. void SetAnisotropy(uint);
  30745. void SetAsyncLoadState(AsyncLoadState);
  30746. void SetBackupTexture(Texture);
  30747. void SetBlockEvents(bool);
  30748. void SetBorderColor(const Color&);
  30749. bool SetData(Image, bool = false);
  30750. void SetFilterMode(TextureFilterMode);
  30751. void SetGlobalVar(StringHash, const Variant&);
  30752. void SetLevelsDirty();
  30753. void SetMemoryUse(uint);
  30754. void SetMipsToSkip(uint, int);
  30755. void SetName(const String&);
  30756. void SetNumLevels(uint);
  30757. void SetParameters(XMLFile);
  30758. void SetParameters(const XMLElement&);
  30759. void SetParametersDirty();
  30760. void SetResolveDirty(bool);
  30761. void SetSRGB(bool);
  30762. void SetShadowCompare(bool);
  30763. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  30764. const String& GetCategory() const;
  30765. const String& GetName() const;
  30766. const String& GetTypeName() const;
  30767. operator Texture() const;
  30768. void UnsubscribeFromAllEvents();
  30769. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30770. void UnsubscribeFromEvent(Object, StringHash);
  30771. void UnsubscribeFromEvent(StringHash);
  30772. void UnsubscribeFromEvents(Object);
  30773. void UpdateParameters();
  30774. const Variant& GetGlobalVar(StringHash) const;
  30775. const Variant& GetMetadata(const String&) const;
  30776. const VariantMap& GetGlobalVars() const;
  30777. int WeakRefs() const;
  30778. operator const Object() const;
  30779. operator const RefCounted() const;
  30780. operator const Resource() const;
  30781. operator const ResourceWithMetadata() const;
  30782. operator const Texture() const;
  30783. // Properties:
  30784. Array<TextureAddressMode> addressMode;
  30785. uint anisotropy;
  30786. /* readonly */
  30787. bool autoResolve;
  30788. Texture backupTexture;
  30789. Color borderColor;
  30790. /* readonly */
  30791. String category;
  30792. /* readonly */
  30793. uint components;
  30794. /* readonly */
  30795. bool compressed;
  30796. /* readonly */
  30797. bool dataLost;
  30798. TextureFilterMode filterMode;
  30799. /* readonly */
  30800. uint format;
  30801. Array<Variant> globalVar;
  30802. /* readonly */
  30803. VariantMap globalVars;
  30804. /* readonly */
  30805. bool hasMetadata;
  30806. /* readonly */
  30807. int height;
  30808. /* readonly */
  30809. Array<int> levelHeight;
  30810. /* readonly */
  30811. Array<int> levelWidth;
  30812. /* readonly */
  30813. uint levels;
  30814. /* readonly */
  30815. bool levelsDirty;
  30816. /* readonly */
  30817. uint memoryUse;
  30818. Array<Variant> metadata;
  30819. Array<int> mipsToSkip;
  30820. /* readonly */
  30821. int multiSample;
  30822. String name;
  30823. /* readonly */
  30824. int refs;
  30825. /* readonly */
  30826. RenderSurface renderSurface;
  30827. /* readonly */
  30828. bool resolveDirty;
  30829. bool sRGB;
  30830. /* readonly */
  30831. StringHash type;
  30832. /* readonly */
  30833. String typeName;
  30834. /* readonly */
  30835. TextureUsage usage;
  30836. /* readonly */
  30837. uint useTimer;
  30838. /* readonly */
  30839. int weakRefs;
  30840. /* readonly */
  30841. int width;
  30842. };
  30843. class Texture2DArray
  30844. {
  30845. public:
  30846. Texture2DArray();
  30847. // Methods:
  30848. void AddMetadata(const String&, const Variant&);
  30849. bool BeginLoad(Deserializer&);
  30850. void ClearDataLost();
  30851. const Color& GetBorderColor() const;
  30852. bool EndLoad();
  30853. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30854. uint GetAnisotropy() const;
  30855. AsyncLoadState GetAsyncLoadState() const;
  30856. bool GetAutoResolve() const;
  30857. Texture GetBackupTexture() const;
  30858. bool GetBlockEvents() const;
  30859. uint GetComponents() const;
  30860. uint GetDataSize(int, int) const;
  30861. uint GetDataSize(int, int, int) const;
  30862. int GetDepth() const;
  30863. VariantMap& GetEventDataMap() const;
  30864. Object GetEventSender() const;
  30865. TextureFilterMode GetFilterMode() const;
  30866. uint GetFormat() const;
  30867. uint GetGPUObjectName() const;
  30868. Graphics GetGraphics() const;
  30869. int GetHeight() const;
  30870. uint GetLayers() const;
  30871. int GetLevelDepth(uint) const;
  30872. int GetLevelHeight(uint) const;
  30873. int GetLevelWidth(uint) const;
  30874. uint GetLevels() const;
  30875. bool GetLevelsDirty() const;
  30876. uint GetMemoryUse() const;
  30877. int GetMipsToSkip(uint) const;
  30878. int GetMultiSample() const;
  30879. StringHash GetNameHash() const;
  30880. bool GetParametersDirty() const;
  30881. RenderSurface GetRenderSurface() const;
  30882. uint GetRowDataSize(int) const;
  30883. bool GetSRGB() const;
  30884. bool GetShadowCompare() const;
  30885. Object GetSubsystem(StringHash) const;
  30886. uint GetTarget() const;
  30887. StringHash GetType() const;
  30888. TextureUsage GetUsage() const;
  30889. uint GetUseTimer();
  30890. int GetWidth() const;
  30891. bool HasEventHandlers() const;
  30892. bool HasMetadata() const;
  30893. bool HasPendingData() const;
  30894. bool HasSubscribedToEvent(Object, StringHash) const;
  30895. bool HasSubscribedToEvent(StringHash) const;
  30896. bool IsCompressed() const;
  30897. bool IsDataLost() const;
  30898. bool IsInstanceOf(StringHash) const;
  30899. bool IsResolveDirty() const;
  30900. bool Load(Deserializer&);
  30901. bool Load(File);
  30902. bool Load(VectorBuffer&);
  30903. bool Load(const String&);
  30904. bool LoadFile(const String&);
  30905. operator Object() const;
  30906. void OnDeviceLost();
  30907. void OnDeviceReset();
  30908. void OnEvent(Object, StringHash, VariantMap&);
  30909. operator RefCounted() const;
  30910. int Refs() const;
  30911. void RegenerateLevels();
  30912. void Release();
  30913. void RemoveAllMetadata();
  30914. void RemoveMetadata(const String&);
  30915. void ResetUseTimer();
  30916. operator Resource() const;
  30917. operator ResourceWithMetadata() const;
  30918. bool Save(File) const;
  30919. bool Save(Serializer&) const;
  30920. bool Save(VectorBuffer&) const;
  30921. bool Save(const String&) const;
  30922. bool SaveFile(const String&) const;
  30923. void SendEvent(StringHash);
  30924. void SendEvent(StringHash, VariantMap&);
  30925. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  30926. void SetAnisotropy(uint);
  30927. void SetAsyncLoadState(AsyncLoadState);
  30928. void SetBackupTexture(Texture);
  30929. void SetBlockEvents(bool);
  30930. void SetBorderColor(const Color&);
  30931. bool SetData(uint, Deserializer&);
  30932. bool SetData(uint, Image, bool = false);
  30933. void SetFilterMode(TextureFilterMode);
  30934. void SetGlobalVar(StringHash, const Variant&);
  30935. void SetLayers(uint);
  30936. void SetLevelsDirty();
  30937. void SetMemoryUse(uint);
  30938. void SetMipsToSkip(uint, int);
  30939. void SetName(const String&);
  30940. void SetNumLevels(uint);
  30941. void SetParameters(XMLFile);
  30942. void SetParameters(const XMLElement&);
  30943. void SetParametersDirty();
  30944. void SetResolveDirty(bool);
  30945. void SetSRGB(bool);
  30946. void SetShadowCompare(bool);
  30947. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  30948. const String& GetCategory() const;
  30949. const String& GetName() const;
  30950. const String& GetTypeName() const;
  30951. operator Texture() const;
  30952. void UnsubscribeFromAllEvents();
  30953. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30954. void UnsubscribeFromEvent(Object, StringHash);
  30955. void UnsubscribeFromEvent(StringHash);
  30956. void UnsubscribeFromEvents(Object);
  30957. void UpdateParameters();
  30958. const Variant& GetGlobalVar(StringHash) const;
  30959. const Variant& GetMetadata(const String&) const;
  30960. const VariantMap& GetGlobalVars() const;
  30961. int WeakRefs() const;
  30962. operator const Object() const;
  30963. operator const RefCounted() const;
  30964. operator const Resource() const;
  30965. operator const ResourceWithMetadata() const;
  30966. operator const Texture() const;
  30967. // Properties:
  30968. Array<TextureAddressMode> addressMode;
  30969. uint anisotropy;
  30970. /* readonly */
  30971. bool autoResolve;
  30972. Texture backupTexture;
  30973. Color borderColor;
  30974. /* readonly */
  30975. String category;
  30976. /* readonly */
  30977. uint components;
  30978. /* readonly */
  30979. bool compressed;
  30980. /* readonly */
  30981. bool dataLost;
  30982. TextureFilterMode filterMode;
  30983. /* readonly */
  30984. uint format;
  30985. Array<Variant> globalVar;
  30986. /* readonly */
  30987. VariantMap globalVars;
  30988. /* readonly */
  30989. bool hasMetadata;
  30990. /* readonly */
  30991. int height;
  30992. uint layers;
  30993. /* readonly */
  30994. Array<int> levelHeight;
  30995. /* readonly */
  30996. Array<int> levelWidth;
  30997. /* readonly */
  30998. uint levels;
  30999. /* readonly */
  31000. bool levelsDirty;
  31001. /* readonly */
  31002. uint memoryUse;
  31003. Array<Variant> metadata;
  31004. Array<int> mipsToSkip;
  31005. /* readonly */
  31006. int multiSample;
  31007. String name;
  31008. /* readonly */
  31009. int refs;
  31010. /* readonly */
  31011. RenderSurface renderSurface;
  31012. /* readonly */
  31013. bool resolveDirty;
  31014. bool sRGB;
  31015. /* readonly */
  31016. StringHash type;
  31017. /* readonly */
  31018. String typeName;
  31019. /* readonly */
  31020. TextureUsage usage;
  31021. /* readonly */
  31022. uint useTimer;
  31023. /* readonly */
  31024. int weakRefs;
  31025. /* readonly */
  31026. int width;
  31027. };
  31028. class Texture3D
  31029. {
  31030. public:
  31031. Texture3D();
  31032. // Methods:
  31033. void AddMetadata(const String&, const Variant&);
  31034. bool BeginLoad(Deserializer&);
  31035. void ClearDataLost();
  31036. const Color& GetBorderColor() const;
  31037. bool EndLoad();
  31038. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  31039. uint GetAnisotropy() const;
  31040. AsyncLoadState GetAsyncLoadState() const;
  31041. bool GetAutoResolve() const;
  31042. Texture GetBackupTexture() const;
  31043. bool GetBlockEvents() const;
  31044. uint GetComponents() const;
  31045. uint GetDataSize(int, int) const;
  31046. uint GetDataSize(int, int, int) const;
  31047. int GetDepth() const;
  31048. VariantMap& GetEventDataMap() const;
  31049. Object GetEventSender() const;
  31050. TextureFilterMode GetFilterMode() const;
  31051. uint GetFormat() const;
  31052. uint GetGPUObjectName() const;
  31053. Graphics GetGraphics() const;
  31054. int GetHeight() const;
  31055. int GetLevelDepth(uint) const;
  31056. int GetLevelHeight(uint) const;
  31057. int GetLevelWidth(uint) const;
  31058. uint GetLevels() const;
  31059. bool GetLevelsDirty() const;
  31060. uint GetMemoryUse() const;
  31061. int GetMipsToSkip(uint) const;
  31062. int GetMultiSample() const;
  31063. StringHash GetNameHash() const;
  31064. bool GetParametersDirty() const;
  31065. uint GetRowDataSize(int) const;
  31066. bool GetSRGB() const;
  31067. bool GetShadowCompare() const;
  31068. Object GetSubsystem(StringHash) const;
  31069. uint GetTarget() const;
  31070. StringHash GetType() const;
  31071. TextureUsage GetUsage() const;
  31072. uint GetUseTimer();
  31073. int GetWidth() const;
  31074. bool HasEventHandlers() const;
  31075. bool HasMetadata() const;
  31076. bool HasPendingData() const;
  31077. bool HasSubscribedToEvent(Object, StringHash) const;
  31078. bool HasSubscribedToEvent(StringHash) const;
  31079. bool IsCompressed() const;
  31080. bool IsDataLost() const;
  31081. bool IsInstanceOf(StringHash) const;
  31082. bool IsResolveDirty() const;
  31083. bool Load(Deserializer&);
  31084. bool Load(File);
  31085. bool Load(VectorBuffer&);
  31086. bool Load(const String&);
  31087. bool LoadFile(const String&);
  31088. operator Object() const;
  31089. void OnDeviceLost();
  31090. void OnDeviceReset();
  31091. void OnEvent(Object, StringHash, VariantMap&);
  31092. operator RefCounted() const;
  31093. int Refs() const;
  31094. void RegenerateLevels();
  31095. void Release();
  31096. void RemoveAllMetadata();
  31097. void RemoveMetadata(const String&);
  31098. void ResetUseTimer();
  31099. operator Resource() const;
  31100. operator ResourceWithMetadata() const;
  31101. bool Save(File) const;
  31102. bool Save(Serializer&) const;
  31103. bool Save(VectorBuffer&) const;
  31104. bool Save(const String&) const;
  31105. bool SaveFile(const String&) const;
  31106. void SendEvent(StringHash);
  31107. void SendEvent(StringHash, VariantMap&);
  31108. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  31109. void SetAnisotropy(uint);
  31110. void SetAsyncLoadState(AsyncLoadState);
  31111. void SetBackupTexture(Texture);
  31112. void SetBlockEvents(bool);
  31113. void SetBorderColor(const Color&);
  31114. bool SetData(Image, bool = false);
  31115. void SetFilterMode(TextureFilterMode);
  31116. void SetGlobalVar(StringHash, const Variant&);
  31117. void SetLevelsDirty();
  31118. void SetMemoryUse(uint);
  31119. void SetMipsToSkip(uint, int);
  31120. void SetName(const String&);
  31121. void SetNumLevels(uint);
  31122. void SetParameters(XMLFile);
  31123. void SetParameters(const XMLElement&);
  31124. void SetParametersDirty();
  31125. void SetResolveDirty(bool);
  31126. void SetSRGB(bool);
  31127. void SetShadowCompare(bool);
  31128. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  31129. const String& GetCategory() const;
  31130. const String& GetName() const;
  31131. const String& GetTypeName() const;
  31132. operator Texture() const;
  31133. void UnsubscribeFromAllEvents();
  31134. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31135. void UnsubscribeFromEvent(Object, StringHash);
  31136. void UnsubscribeFromEvent(StringHash);
  31137. void UnsubscribeFromEvents(Object);
  31138. void UpdateParameters();
  31139. const Variant& GetGlobalVar(StringHash) const;
  31140. const Variant& GetMetadata(const String&) const;
  31141. const VariantMap& GetGlobalVars() const;
  31142. int WeakRefs() const;
  31143. operator const Object() const;
  31144. operator const RefCounted() const;
  31145. operator const Resource() const;
  31146. operator const ResourceWithMetadata() const;
  31147. operator const Texture() const;
  31148. // Properties:
  31149. Array<TextureAddressMode> addressMode;
  31150. uint anisotropy;
  31151. /* readonly */
  31152. bool autoResolve;
  31153. Texture backupTexture;
  31154. Color borderColor;
  31155. /* readonly */
  31156. String category;
  31157. /* readonly */
  31158. uint components;
  31159. /* readonly */
  31160. bool compressed;
  31161. /* readonly */
  31162. bool dataLost;
  31163. TextureFilterMode filterMode;
  31164. /* readonly */
  31165. uint format;
  31166. Array<Variant> globalVar;
  31167. /* readonly */
  31168. VariantMap globalVars;
  31169. /* readonly */
  31170. bool hasMetadata;
  31171. /* readonly */
  31172. int height;
  31173. /* readonly */
  31174. Array<int> levelHeight;
  31175. /* readonly */
  31176. Array<int> levelWidth;
  31177. /* readonly */
  31178. uint levels;
  31179. /* readonly */
  31180. bool levelsDirty;
  31181. /* readonly */
  31182. uint memoryUse;
  31183. Array<Variant> metadata;
  31184. Array<int> mipsToSkip;
  31185. /* readonly */
  31186. int multiSample;
  31187. String name;
  31188. /* readonly */
  31189. int refs;
  31190. /* readonly */
  31191. bool resolveDirty;
  31192. bool sRGB;
  31193. /* readonly */
  31194. StringHash type;
  31195. /* readonly */
  31196. String typeName;
  31197. /* readonly */
  31198. TextureUsage usage;
  31199. /* readonly */
  31200. uint useTimer;
  31201. /* readonly */
  31202. int weakRefs;
  31203. /* readonly */
  31204. int width;
  31205. };
  31206. class TextureCube
  31207. {
  31208. public:
  31209. TextureCube();
  31210. // Methods:
  31211. void AddMetadata(const String&, const Variant&);
  31212. bool BeginLoad(Deserializer&);
  31213. void ClearDataLost();
  31214. const Color& GetBorderColor() const;
  31215. bool EndLoad();
  31216. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  31217. uint GetAnisotropy() const;
  31218. AsyncLoadState GetAsyncLoadState() const;
  31219. bool GetAutoResolve() const;
  31220. Texture GetBackupTexture() const;
  31221. bool GetBlockEvents() const;
  31222. uint GetComponents() const;
  31223. uint GetDataSize(int, int) const;
  31224. uint GetDataSize(int, int, int) const;
  31225. int GetDepth() const;
  31226. VariantMap& GetEventDataMap() const;
  31227. Object GetEventSender() const;
  31228. TextureFilterMode GetFilterMode() const;
  31229. uint GetFormat() const;
  31230. uint GetGPUObjectName() const;
  31231. Graphics GetGraphics() const;
  31232. int GetHeight() const;
  31233. Image GetImage(CubeMapFace) const;
  31234. int GetLevelDepth(uint) const;
  31235. int GetLevelHeight(uint) const;
  31236. int GetLevelWidth(uint) const;
  31237. uint GetLevels() const;
  31238. bool GetLevelsDirty() const;
  31239. uint GetMemoryUse() const;
  31240. int GetMipsToSkip(uint) const;
  31241. int GetMultiSample() const;
  31242. StringHash GetNameHash() const;
  31243. bool GetParametersDirty() const;
  31244. RenderSurface GetRenderSurface(CubeMapFace) const;
  31245. uint GetRowDataSize(int) const;
  31246. bool GetSRGB() const;
  31247. bool GetShadowCompare() const;
  31248. Object GetSubsystem(StringHash) const;
  31249. uint GetTarget() const;
  31250. StringHash GetType() const;
  31251. TextureUsage GetUsage() const;
  31252. uint GetUseTimer();
  31253. int GetWidth() const;
  31254. bool HasEventHandlers() const;
  31255. bool HasMetadata() const;
  31256. bool HasPendingData() const;
  31257. bool HasSubscribedToEvent(Object, StringHash) const;
  31258. bool HasSubscribedToEvent(StringHash) const;
  31259. bool IsCompressed() const;
  31260. bool IsDataLost() const;
  31261. bool IsInstanceOf(StringHash) const;
  31262. bool IsResolveDirty() const;
  31263. bool Load(Deserializer&);
  31264. bool Load(File);
  31265. bool Load(VectorBuffer&);
  31266. bool Load(const String&);
  31267. bool LoadFile(const String&);
  31268. operator Object() const;
  31269. void OnDeviceLost();
  31270. void OnDeviceReset();
  31271. void OnEvent(Object, StringHash, VariantMap&);
  31272. operator RefCounted() const;
  31273. int Refs() const;
  31274. void RegenerateLevels();
  31275. void Release();
  31276. void RemoveAllMetadata();
  31277. void RemoveMetadata(const String&);
  31278. void ResetUseTimer();
  31279. operator Resource() const;
  31280. operator ResourceWithMetadata() const;
  31281. bool Save(File) const;
  31282. bool Save(Serializer&) const;
  31283. bool Save(VectorBuffer&) const;
  31284. bool Save(const String&) const;
  31285. bool SaveFile(const String&) const;
  31286. void SendEvent(StringHash);
  31287. void SendEvent(StringHash, VariantMap&);
  31288. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  31289. void SetAnisotropy(uint);
  31290. void SetAsyncLoadState(AsyncLoadState);
  31291. void SetBackupTexture(Texture);
  31292. void SetBlockEvents(bool);
  31293. void SetBorderColor(const Color&);
  31294. bool SetData(CubeMapFace, Deserializer&);
  31295. bool SetData(CubeMapFace, Image, bool = false);
  31296. void SetFilterMode(TextureFilterMode);
  31297. void SetGlobalVar(StringHash, const Variant&);
  31298. void SetLevelsDirty();
  31299. void SetMemoryUse(uint);
  31300. void SetMipsToSkip(uint, int);
  31301. void SetName(const String&);
  31302. void SetNumLevels(uint);
  31303. void SetParameters(XMLFile);
  31304. void SetParameters(const XMLElement&);
  31305. void SetParametersDirty();
  31306. void SetResolveDirty(bool);
  31307. void SetSRGB(bool);
  31308. void SetShadowCompare(bool);
  31309. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  31310. const String& GetCategory() const;
  31311. const String& GetName() const;
  31312. const String& GetTypeName() const;
  31313. operator Texture() const;
  31314. void UnsubscribeFromAllEvents();
  31315. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31316. void UnsubscribeFromEvent(Object, StringHash);
  31317. void UnsubscribeFromEvent(StringHash);
  31318. void UnsubscribeFromEvents(Object);
  31319. void UpdateParameters();
  31320. const Variant& GetGlobalVar(StringHash) const;
  31321. const Variant& GetMetadata(const String&) const;
  31322. const VariantMap& GetGlobalVars() const;
  31323. int WeakRefs() const;
  31324. operator const Object() const;
  31325. operator const RefCounted() const;
  31326. operator const Resource() const;
  31327. operator const ResourceWithMetadata() const;
  31328. operator const Texture() const;
  31329. // Properties:
  31330. Array<TextureAddressMode> addressMode;
  31331. uint anisotropy;
  31332. /* readonly */
  31333. bool autoResolve;
  31334. Texture backupTexture;
  31335. Color borderColor;
  31336. /* readonly */
  31337. String category;
  31338. /* readonly */
  31339. uint components;
  31340. /* readonly */
  31341. bool compressed;
  31342. /* readonly */
  31343. bool dataLost;
  31344. TextureFilterMode filterMode;
  31345. /* readonly */
  31346. uint format;
  31347. Array<Variant> globalVar;
  31348. /* readonly */
  31349. VariantMap globalVars;
  31350. /* readonly */
  31351. bool hasMetadata;
  31352. /* readonly */
  31353. int height;
  31354. /* readonly */
  31355. Array<int> levelHeight;
  31356. /* readonly */
  31357. Array<int> levelWidth;
  31358. /* readonly */
  31359. uint levels;
  31360. /* readonly */
  31361. bool levelsDirty;
  31362. /* readonly */
  31363. uint memoryUse;
  31364. Array<Variant> metadata;
  31365. Array<int> mipsToSkip;
  31366. /* readonly */
  31367. int multiSample;
  31368. String name;
  31369. /* readonly */
  31370. int refs;
  31371. /* readonly */
  31372. Array<RenderSurface> renderSurfaces;
  31373. /* readonly */
  31374. bool resolveDirty;
  31375. bool sRGB;
  31376. /* readonly */
  31377. StringHash type;
  31378. /* readonly */
  31379. String typeName;
  31380. /* readonly */
  31381. TextureUsage usage;
  31382. /* readonly */
  31383. uint useTimer;
  31384. /* readonly */
  31385. int weakRefs;
  31386. /* readonly */
  31387. int width;
  31388. };
  31389. class TextureFrame
  31390. {
  31391. public:
  31392. // Methods:
  31393. TextureFrame& operator=(const TextureFrame&);
  31394. // Properties:
  31395. float time;
  31396. Rect uv;
  31397. };
  31398. class Tile2D
  31399. {
  31400. public:
  31401. Tile2D();
  31402. // Methods:
  31403. bool GetFlipX() const;
  31404. bool GetFlipY() const;
  31405. uint GetGid() const;
  31406. Sprite2D GetSprite() const;
  31407. bool GetSwapXY() const;
  31408. bool HasProperty(const String&) const;
  31409. operator RefCounted() const;
  31410. int Refs() const;
  31411. const String& GetProperty(const String&) const;
  31412. int WeakRefs() const;
  31413. operator const RefCounted() const;
  31414. // Properties:
  31415. /* readonly */
  31416. bool flipX;
  31417. /* readonly */
  31418. bool flipY;
  31419. /* readonly */
  31420. uint gid;
  31421. /* readonly */
  31422. int refs;
  31423. /* readonly */
  31424. Sprite2D sprite;
  31425. /* readonly */
  31426. bool swapXY;
  31427. /* readonly */
  31428. int weakRefs;
  31429. };
  31430. class TileMap2D
  31431. {
  31432. public:
  31433. TileMap2D();
  31434. // Methods:
  31435. void AllocateNetworkState();
  31436. operator Animatable() const;
  31437. void ApplyAttributes();
  31438. void CleanupConnection(Connection);
  31439. operator Component() const;
  31440. void DrawDebugGeometry();
  31441. void DrawDebugGeometry(DebugRenderer, bool);
  31442. bool GetAnimationEnabled() const;
  31443. Variant GetAttribute(const String&) const;
  31444. Variant GetAttribute(uint) const;
  31445. ValueAnimation GetAttributeAnimation(const String&) const;
  31446. float GetAttributeAnimationSpeed(const String&) const;
  31447. float GetAttributeAnimationTime(const String&) const;
  31448. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  31449. Variant GetAttributeDefault(const String&) const;
  31450. Variant GetAttributeDefault(uint) const;
  31451. bool GetBlockEvents() const;
  31452. Component GetComponent(StringHash) const;
  31453. VariantMap& GetEventDataMap() const;
  31454. Object GetEventSender() const;
  31455. uint GetID() const;
  31456. bool GetInterceptNetworkUpdate(const String&) const;
  31457. TileMapLayer2D GetLayer(uint) const;
  31458. Node GetNode() const;
  31459. uint GetNumAttributes() const;
  31460. uint GetNumLayers() const;
  31461. uint GetNumNetworkAttributes() const;
  31462. ObjectAnimation GetObjectAnimation() const;
  31463. ResourceRef GetObjectAnimationAttr() const;
  31464. Scene GetScene() const;
  31465. Object GetSubsystem(StringHash) const;
  31466. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  31467. TmxFile2D GetTmxFile() const;
  31468. ResourceRef GetTmxFileAttr() const;
  31469. StringHash GetType() const;
  31470. bool HasEventHandlers() const;
  31471. bool HasSubscribedToEvent(Object, StringHash) const;
  31472. bool HasSubscribedToEvent(StringHash) const;
  31473. bool IsEnabled() const;
  31474. bool IsEnabledEffective() const;
  31475. bool IsInstanceOf(StringHash) const;
  31476. bool IsReplicated() const;
  31477. bool IsTemporary() const;
  31478. bool Load(Deserializer&);
  31479. bool LoadJSON(const JSONValue&);
  31480. bool LoadXML(const XMLElement&);
  31481. void MarkNetworkUpdate();
  31482. operator Object() const;
  31483. void OnEvent(Object, StringHash, VariantMap&);
  31484. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  31485. void OnSetAttribute(const AttributeInfo&, const Variant&);
  31486. void OnSetEnabled();
  31487. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  31488. void PrepareNetworkUpdate();
  31489. bool ReadDeltaUpdate(Deserializer&);
  31490. bool ReadLatestDataUpdate(Deserializer&);
  31491. operator RefCounted() const;
  31492. int Refs() const;
  31493. void Remove();
  31494. void RemoveAttributeAnimation(const String&);
  31495. void RemoveInstanceDefault();
  31496. void RemoveObjectAnimation();
  31497. void ResetToDefault();
  31498. bool Save(Serializer&) const;
  31499. bool SaveDefaultAttributes() const;
  31500. bool SaveJSON(JSONValue&) const;
  31501. bool SaveXML(XMLElement&) const;
  31502. void SendEvent(StringHash);
  31503. void SendEvent(StringHash, VariantMap&);
  31504. operator Serializable() const;
  31505. void SetAnimationEnabled(bool);
  31506. void SetAnimationTime(float);
  31507. bool SetAttribute(const String&, const Variant&);
  31508. bool SetAttribute(uint, const Variant&);
  31509. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  31510. void SetAttributeAnimationSpeed(const String&, float);
  31511. void SetAttributeAnimationTime(const String&, float);
  31512. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  31513. void SetBlockEvents(bool);
  31514. void SetEnabled(bool);
  31515. void SetGlobalVar(StringHash, const Variant&);
  31516. void SetInstanceDefault(bool);
  31517. void SetInterceptNetworkUpdate(const String&, bool);
  31518. void SetObjectAnimation(ObjectAnimation);
  31519. void SetObjectAnimationAttr(const ResourceRef&);
  31520. void SetTemporary(bool);
  31521. void SetTmxFile(TmxFile2D);
  31522. void SetTmxFileAttr(const ResourceRef&);
  31523. const String& GetCategory() const;
  31524. const String& GetTypeName() const;
  31525. Vector2 TileIndexToPosition(int, int) const;
  31526. const TileMapInfo2D& GetInfo() const;
  31527. void UnsubscribeFromAllEvents();
  31528. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31529. void UnsubscribeFromEvent(Object, StringHash);
  31530. void UnsubscribeFromEvent(StringHash);
  31531. void UnsubscribeFromEvents(Object);
  31532. const Variant& GetGlobalVar(StringHash) const;
  31533. const VariantMap& GetGlobalVars() const;
  31534. int WeakRefs() const;
  31535. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  31536. void WriteInitialDeltaUpdate(Serializer&, uint8);
  31537. void WriteLatestDataUpdate(Serializer&, uint8);
  31538. operator const Animatable() const;
  31539. operator const Component() const;
  31540. operator const Object() const;
  31541. operator const RefCounted() const;
  31542. operator const Serializable() const;
  31543. // Properties:
  31544. bool animationEnabled;
  31545. /* readonly */
  31546. Array<Variant> attributeDefaults;
  31547. /* readonly */
  31548. Array<AttributeInfo> attributeInfos;
  31549. Array<Variant> attributes;
  31550. /* readonly */
  31551. String category;
  31552. bool enabled;
  31553. /* readonly */
  31554. bool enabledEffective;
  31555. Array<Variant> globalVar;
  31556. /* readonly */
  31557. VariantMap globalVars;
  31558. /* readonly */
  31559. uint id;
  31560. /* readonly */
  31561. TileMapInfo2D info;
  31562. /* readonly */
  31563. Node node;
  31564. /* readonly */
  31565. uint numAttributes;
  31566. /* readonly */
  31567. uint numLayers;
  31568. ObjectAnimation objectAnimation;
  31569. /* readonly */
  31570. int refs;
  31571. /* readonly */
  31572. bool replicated;
  31573. bool temporary;
  31574. TmxFile2D tmxFile;
  31575. /* readonly */
  31576. StringHash type;
  31577. /* readonly */
  31578. String typeName;
  31579. /* readonly */
  31580. int weakRefs;
  31581. };
  31582. class TileMapInfo2D
  31583. {
  31584. public:
  31585. // Methods:
  31586. TileMapInfo2D& operator=(const TileMapInfo2D&);
  31587. Vector2 ConvertPosition(const Vector2&) const;
  31588. float GetMapHeight() const;
  31589. float GetMapWidth() const;
  31590. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  31591. Vector2 TileIndexToPosition(int, int) const;
  31592. // Properties:
  31593. int height;
  31594. /* readonly */
  31595. float mapHeight;
  31596. /* readonly */
  31597. float mapWidth;
  31598. Orientation2D orientation;
  31599. float tileHeight;
  31600. float tileWidth;
  31601. int width;
  31602. };
  31603. class TileMapLayer2D
  31604. {
  31605. public:
  31606. TileMapLayer2D();
  31607. // Methods:
  31608. void AllocateNetworkState();
  31609. operator Animatable() const;
  31610. void ApplyAttributes();
  31611. void CleanupConnection(Connection);
  31612. operator Component() const;
  31613. void DrawDebugGeometry(DebugRenderer, bool);
  31614. bool GetAnimationEnabled() const;
  31615. Variant GetAttribute(const String&) const;
  31616. Variant GetAttribute(uint) const;
  31617. ValueAnimation GetAttributeAnimation(const String&) const;
  31618. float GetAttributeAnimationSpeed(const String&) const;
  31619. float GetAttributeAnimationTime(const String&) const;
  31620. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  31621. Variant GetAttributeDefault(const String&) const;
  31622. Variant GetAttributeDefault(uint) const;
  31623. bool GetBlockEvents() const;
  31624. Component GetComponent(StringHash) const;
  31625. int GetDrawOrder() const;
  31626. VariantMap& GetEventDataMap() const;
  31627. Object GetEventSender() const;
  31628. int GetHeight() const;
  31629. uint GetID() const;
  31630. Node GetImageNode() const;
  31631. bool GetInterceptNetworkUpdate(const String&) const;
  31632. TileMapLayerType2D GetLayerType() const;
  31633. Node GetNode() const;
  31634. uint GetNumAttributes() const;
  31635. uint GetNumNetworkAttributes() const;
  31636. uint GetNumObjects() const;
  31637. TileMapObject2D GetObject(uint) const;
  31638. ObjectAnimation GetObjectAnimation() const;
  31639. ResourceRef GetObjectAnimationAttr() const;
  31640. Node GetObjectNode(uint) const;
  31641. Scene GetScene() const;
  31642. Object GetSubsystem(StringHash) const;
  31643. Tile2D GetTile(int, int) const;
  31644. TileMap2D GetTileMap() const;
  31645. Node GetTileNode(int, int) const;
  31646. TmxLayer2D GetTmxLayer() const;
  31647. StringHash GetType() const;
  31648. int GetWidth() const;
  31649. bool HasEventHandlers() const;
  31650. bool HasProperty(const String&) const;
  31651. bool HasSubscribedToEvent(Object, StringHash) const;
  31652. bool HasSubscribedToEvent(StringHash) const;
  31653. void Initialize(TileMap2D, TmxLayer2D);
  31654. bool IsEnabled() const;
  31655. bool IsEnabledEffective() const;
  31656. bool IsInstanceOf(StringHash) const;
  31657. bool IsReplicated() const;
  31658. bool IsTemporary() const;
  31659. bool IsVisible() const;
  31660. bool Load(Deserializer&);
  31661. bool LoadJSON(const JSONValue&);
  31662. bool LoadXML(const XMLElement&);
  31663. void MarkNetworkUpdate();
  31664. operator Object() const;
  31665. void OnEvent(Object, StringHash, VariantMap&);
  31666. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  31667. void OnSetAttribute(const AttributeInfo&, const Variant&);
  31668. void OnSetEnabled();
  31669. void PrepareNetworkUpdate();
  31670. bool ReadDeltaUpdate(Deserializer&);
  31671. bool ReadLatestDataUpdate(Deserializer&);
  31672. operator RefCounted() const;
  31673. int Refs() const;
  31674. void Remove();
  31675. void RemoveAttributeAnimation(const String&);
  31676. void RemoveInstanceDefault();
  31677. void RemoveObjectAnimation();
  31678. void ResetToDefault();
  31679. bool Save(Serializer&) const;
  31680. bool SaveDefaultAttributes() const;
  31681. bool SaveJSON(JSONValue&) const;
  31682. bool SaveXML(XMLElement&) const;
  31683. void SendEvent(StringHash);
  31684. void SendEvent(StringHash, VariantMap&);
  31685. operator Serializable() const;
  31686. void SetAnimationEnabled(bool);
  31687. void SetAnimationTime(float);
  31688. bool SetAttribute(const String&, const Variant&);
  31689. bool SetAttribute(uint, const Variant&);
  31690. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  31691. void SetAttributeAnimationSpeed(const String&, float);
  31692. void SetAttributeAnimationTime(const String&, float);
  31693. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  31694. void SetBlockEvents(bool);
  31695. void SetDrawOrder(int);
  31696. void SetEnabled(bool);
  31697. void SetGlobalVar(StringHash, const Variant&);
  31698. void SetInstanceDefault(bool);
  31699. void SetInterceptNetworkUpdate(const String&, bool);
  31700. void SetObjectAnimation(ObjectAnimation);
  31701. void SetObjectAnimationAttr(const ResourceRef&);
  31702. void SetTemporary(bool);
  31703. void SetVisible(bool);
  31704. const String& GetCategory() const;
  31705. const String& GetProperty(const String&) const;
  31706. const String& GetTypeName() const;
  31707. void UnsubscribeFromAllEvents();
  31708. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31709. void UnsubscribeFromEvent(Object, StringHash);
  31710. void UnsubscribeFromEvent(StringHash);
  31711. void UnsubscribeFromEvents(Object);
  31712. const Variant& GetGlobalVar(StringHash) const;
  31713. const VariantMap& GetGlobalVars() const;
  31714. int WeakRefs() const;
  31715. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  31716. void WriteInitialDeltaUpdate(Serializer&, uint8);
  31717. void WriteLatestDataUpdate(Serializer&, uint8);
  31718. operator const Animatable() const;
  31719. operator const Component() const;
  31720. operator const Object() const;
  31721. operator const RefCounted() const;
  31722. operator const Serializable() const;
  31723. // Properties:
  31724. bool animationEnabled;
  31725. /* readonly */
  31726. Array<Variant> attributeDefaults;
  31727. /* readonly */
  31728. Array<AttributeInfo> attributeInfos;
  31729. Array<Variant> attributes;
  31730. /* readonly */
  31731. String category;
  31732. int drawOrder;
  31733. bool enabled;
  31734. /* readonly */
  31735. bool enabledEffective;
  31736. Array<Variant> globalVar;
  31737. /* readonly */
  31738. VariantMap globalVars;
  31739. /* readonly */
  31740. int height;
  31741. /* readonly */
  31742. uint id;
  31743. /* readonly */
  31744. Node imageNode;
  31745. /* readonly */
  31746. TileMapLayerType2D layerType;
  31747. /* readonly */
  31748. Node node;
  31749. /* readonly */
  31750. uint numAttributes;
  31751. /* readonly */
  31752. uint numObjects;
  31753. ObjectAnimation objectAnimation;
  31754. /* readonly */
  31755. int refs;
  31756. /* readonly */
  31757. bool replicated;
  31758. bool temporary;
  31759. /* readonly */
  31760. StringHash type;
  31761. /* readonly */
  31762. String typeName;
  31763. bool visible;
  31764. /* readonly */
  31765. int weakRefs;
  31766. /* readonly */
  31767. int width;
  31768. };
  31769. class TileMapObject2D
  31770. {
  31771. public:
  31772. TileMapObject2D();
  31773. // Methods:
  31774. uint GetNumPoints() const;
  31775. TileMapObjectType2D GetObjectType() const;
  31776. bool GetTileFlipX() const;
  31777. bool GetTileFlipY() const;
  31778. uint GetTileGid() const;
  31779. Sprite2D GetTileSprite() const;
  31780. bool GetTileSwapXY() const;
  31781. bool HasProperty(const String&) const;
  31782. operator RefCounted() const;
  31783. int Refs() const;
  31784. const String& GetName() const;
  31785. const String& GetProperty(const String&) const;
  31786. const String& GetType() const;
  31787. const Vector2& GetPoint(uint) const;
  31788. const Vector2& GetPosition() const;
  31789. const Vector2& GetSize() const;
  31790. int WeakRefs() const;
  31791. operator const RefCounted() const;
  31792. // Properties:
  31793. /* readonly */
  31794. String name;
  31795. /* readonly */
  31796. uint numPoints;
  31797. /* readonly */
  31798. TileMapObjectType2D objectType;
  31799. /* readonly */
  31800. Vector2 position;
  31801. /* readonly */
  31802. int refs;
  31803. /* readonly */
  31804. Vector2 size;
  31805. /* readonly */
  31806. bool tileFlipX;
  31807. /* readonly */
  31808. bool tileFlipY;
  31809. /* readonly */
  31810. uint tileGid;
  31811. /* readonly */
  31812. Sprite2D tileSprite;
  31813. /* readonly */
  31814. bool tileSwapXY;
  31815. /* readonly */
  31816. String type;
  31817. /* readonly */
  31818. int weakRefs;
  31819. };
  31820. class Time
  31821. {
  31822. public:
  31823. Time();
  31824. // Methods:
  31825. void BeginFrame(float);
  31826. void EndFrame();
  31827. bool GetBlockEvents() const;
  31828. float GetElapsedTime();
  31829. VariantMap& GetEventDataMap() const;
  31830. Object GetEventSender() const;
  31831. uint GetFrameNumber() const;
  31832. float GetFramesPerSecond() const;
  31833. Object GetSubsystem(StringHash) const;
  31834. float GetTimeStep() const;
  31835. uint GetTimerPeriod() const;
  31836. StringHash GetType() const;
  31837. bool HasEventHandlers() const;
  31838. bool HasSubscribedToEvent(Object, StringHash) const;
  31839. bool HasSubscribedToEvent(StringHash) const;
  31840. bool IsInstanceOf(StringHash) const;
  31841. operator Object() const;
  31842. void OnEvent(Object, StringHash, VariantMap&);
  31843. operator RefCounted() const;
  31844. int Refs() const;
  31845. void SendEvent(StringHash);
  31846. void SendEvent(StringHash, VariantMap&);
  31847. void SetBlockEvents(bool);
  31848. void SetGlobalVar(StringHash, const Variant&);
  31849. void SetTimerPeriod(uint);
  31850. const String& GetCategory() const;
  31851. const String& GetTypeName() const;
  31852. void UnsubscribeFromAllEvents();
  31853. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31854. void UnsubscribeFromEvent(Object, StringHash);
  31855. void UnsubscribeFromEvent(StringHash);
  31856. void UnsubscribeFromEvents(Object);
  31857. const Variant& GetGlobalVar(StringHash) const;
  31858. const VariantMap& GetGlobalVars() const;
  31859. int WeakRefs() const;
  31860. operator const Object() const;
  31861. operator const RefCounted() const;
  31862. // Properties:
  31863. /* readonly */
  31864. String category;
  31865. /* readonly */
  31866. float elapsedTime;
  31867. /* readonly */
  31868. uint frameNumber;
  31869. /* readonly */
  31870. float framesPerSecond;
  31871. Array<Variant> globalVar;
  31872. /* readonly */
  31873. VariantMap globalVars;
  31874. /* readonly */
  31875. int refs;
  31876. /* readonly */
  31877. uint systemTime;
  31878. /* readonly */
  31879. uint timeSinceEpoch;
  31880. /* readonly */
  31881. String timeStamp;
  31882. /* readonly */
  31883. float timeStep;
  31884. /* readonly */
  31885. StringHash type;
  31886. /* readonly */
  31887. String typeName;
  31888. /* readonly */
  31889. int weakRefs;
  31890. };
  31891. class Timer
  31892. {
  31893. public:
  31894. Timer();
  31895. // Methods:
  31896. Timer& operator=(const Timer&);
  31897. uint GetMSec(bool);
  31898. void Reset();
  31899. };
  31900. class TmxFile2D
  31901. {
  31902. public:
  31903. TmxFile2D();
  31904. // Methods:
  31905. void AddLayer(uint, TmxLayer2D);
  31906. bool BeginLoad(Deserializer&);
  31907. bool EndLoad();
  31908. AsyncLoadState GetAsyncLoadState() const;
  31909. bool GetBlockEvents() const;
  31910. VariantMap& GetEventDataMap() const;
  31911. Object GetEventSender() const;
  31912. TmxLayer2D GetLayer(uint) const;
  31913. uint GetMemoryUse() const;
  31914. StringHash GetNameHash() const;
  31915. uint GetNumLayers() const;
  31916. float GetSpriteTextureEdgeOffset() const;
  31917. Object GetSubsystem(StringHash) const;
  31918. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  31919. PropertySet2D GetTilePropertySet(uint) const;
  31920. Sprite2D GetTileSprite(uint) const;
  31921. StringHash GetType() const;
  31922. uint GetUseTimer();
  31923. bool HasEventHandlers() const;
  31924. bool HasSubscribedToEvent(Object, StringHash) const;
  31925. bool HasSubscribedToEvent(StringHash) const;
  31926. bool IsInstanceOf(StringHash) const;
  31927. bool Load(Deserializer&);
  31928. bool Load(File);
  31929. bool Load(VectorBuffer&);
  31930. bool Load(const String&);
  31931. bool LoadFile(const String&);
  31932. operator Object() const;
  31933. void OnEvent(Object, StringHash, VariantMap&);
  31934. operator RefCounted() const;
  31935. int Refs() const;
  31936. void ResetUseTimer();
  31937. operator Resource() const;
  31938. bool Save(File) const;
  31939. bool Save(Serializer&) const;
  31940. bool Save(VectorBuffer&) const;
  31941. bool Save(const String&) const;
  31942. bool SaveFile(const String&) const;
  31943. void SendEvent(StringHash);
  31944. void SendEvent(StringHash, VariantMap&);
  31945. void SetAsyncLoadState(AsyncLoadState);
  31946. void SetBlockEvents(bool);
  31947. void SetGlobalVar(StringHash, const Variant&);
  31948. bool SetInfo(Orientation2D, int, int, float, float);
  31949. void SetMemoryUse(uint);
  31950. void SetName(const String&);
  31951. void SetSpriteTextureEdgeOffset(float);
  31952. const String& GetCategory() const;
  31953. const String& GetName() const;
  31954. const String& GetTypeName() const;
  31955. const TileMapInfo2D& GetInfo() const;
  31956. void UnsubscribeFromAllEvents();
  31957. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31958. void UnsubscribeFromEvent(Object, StringHash);
  31959. void UnsubscribeFromEvent(StringHash);
  31960. void UnsubscribeFromEvents(Object);
  31961. const Variant& GetGlobalVar(StringHash) const;
  31962. const VariantMap& GetGlobalVars() const;
  31963. int WeakRefs() const;
  31964. operator const Object() const;
  31965. operator const RefCounted() const;
  31966. operator const Resource() const;
  31967. // Properties:
  31968. /* readonly */
  31969. String category;
  31970. float edgeOffset;
  31971. Array<Variant> globalVar;
  31972. /* readonly */
  31973. VariantMap globalVars;
  31974. /* readonly */
  31975. uint memoryUse;
  31976. String name;
  31977. /* readonly */
  31978. int refs;
  31979. /* readonly */
  31980. StringHash type;
  31981. /* readonly */
  31982. String typeName;
  31983. /* readonly */
  31984. uint useTimer;
  31985. /* readonly */
  31986. int weakRefs;
  31987. };
  31988. class TmxImageLayer2D
  31989. {
  31990. public:
  31991. TmxImageLayer2D(TmxFile2D&);
  31992. // Methods:
  31993. int GetHeight() const;
  31994. Sprite2D GetSprite() const;
  31995. TmxFile2D GetTmxFile() const;
  31996. TileMapLayerType2D GetType() const;
  31997. int GetWidth() const;
  31998. bool HasProperty(const String&) const;
  31999. bool IsVisible() const;
  32000. bool Load(const XMLElement&, const TileMapInfo2D&);
  32001. operator RefCounted() const;
  32002. int Refs() const;
  32003. const String& GetName() const;
  32004. const String& GetProperty(const String&) const;
  32005. const String& GetSource() const;
  32006. operator TmxLayer2D() const;
  32007. const Vector2& GetPosition() const;
  32008. int WeakRefs() const;
  32009. operator const RefCounted() const;
  32010. operator const TmxLayer2D() const;
  32011. // Properties:
  32012. /* readonly */
  32013. int refs;
  32014. /* readonly */
  32015. int weakRefs;
  32016. };
  32017. class TmxLayer2D
  32018. {
  32019. public:
  32020. TmxLayer2D(TmxFile2D&, TileMapLayerType2D);
  32021. // Methods:
  32022. int GetHeight() const;
  32023. TmxFile2D GetTmxFile() const;
  32024. TileMapLayerType2D GetType() const;
  32025. int GetWidth() const;
  32026. bool HasProperty(const String&) const;
  32027. bool IsVisible() const;
  32028. operator RefCounted() const;
  32029. int Refs() const;
  32030. const String& GetName() const;
  32031. const String& GetProperty(const String&) const;
  32032. operator TmxImageLayer2D() const;
  32033. operator TmxObjectGroup2D() const;
  32034. operator TmxTileLayer2D() const;
  32035. int WeakRefs() const;
  32036. operator const RefCounted() const;
  32037. operator const TmxImageLayer2D() const;
  32038. operator const TmxObjectGroup2D() const;
  32039. operator const TmxTileLayer2D() const;
  32040. // Properties:
  32041. /* readonly */
  32042. int refs;
  32043. /* readonly */
  32044. int weakRefs;
  32045. };
  32046. class TmxObjectGroup2D
  32047. {
  32048. public:
  32049. TmxObjectGroup2D(TmxFile2D&);
  32050. // Methods:
  32051. int GetHeight() const;
  32052. uint GetNumObjects() const;
  32053. TileMapObject2D GetObject(uint) const;
  32054. TmxFile2D GetTmxFile() const;
  32055. TileMapLayerType2D GetType() const;
  32056. int GetWidth() const;
  32057. bool HasProperty(const String&) const;
  32058. bool IsVisible() const;
  32059. bool Load(const XMLElement&, const TileMapInfo2D&);
  32060. operator RefCounted() const;
  32061. int Refs() const;
  32062. const String& GetName() const;
  32063. const String& GetProperty(const String&) const;
  32064. operator TmxLayer2D() const;
  32065. int WeakRefs() const;
  32066. operator const RefCounted() const;
  32067. operator const TmxLayer2D() const;
  32068. // Properties:
  32069. /* readonly */
  32070. int refs;
  32071. /* readonly */
  32072. int weakRefs;
  32073. };
  32074. class TmxTileLayer2D
  32075. {
  32076. public:
  32077. TmxTileLayer2D(TmxFile2D&);
  32078. // Methods:
  32079. int GetHeight() const;
  32080. Tile2D GetTile(int, int) const;
  32081. TmxFile2D GetTmxFile() const;
  32082. TileMapLayerType2D GetType() const;
  32083. int GetWidth() const;
  32084. bool HasProperty(const String&) const;
  32085. bool IsVisible() const;
  32086. bool Load(const XMLElement&, const TileMapInfo2D&);
  32087. operator RefCounted() const;
  32088. int Refs() const;
  32089. const String& GetName() const;
  32090. const String& GetProperty(const String&) const;
  32091. operator TmxLayer2D() const;
  32092. int WeakRefs() const;
  32093. operator const RefCounted() const;
  32094. operator const TmxLayer2D() const;
  32095. // Properties:
  32096. /* readonly */
  32097. int refs;
  32098. /* readonly */
  32099. int weakRefs;
  32100. };
  32101. class ToolTip
  32102. {
  32103. public:
  32104. ToolTip();
  32105. // Methods:
  32106. void AddAltTarget(UIElement);
  32107. void AddChild(UIElement);
  32108. void AddTag(const String&);
  32109. void AddTags(Array<String>);
  32110. void AddTags(const String&, int8 = ';');
  32111. void AdjustScissor(IntRect&);
  32112. void AllocateNetworkState();
  32113. operator Animatable() const;
  32114. void ApplyAttributes();
  32115. void BringToFront();
  32116. const Color& GetColor(Corner) const;
  32117. const Color& GetColorAttr() const;
  32118. const Color& GetDerivedColor() const;
  32119. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  32120. void DisableLayoutUpdate();
  32121. IntVector2 ElementToScreen(const IntVector2&);
  32122. void EnableLayoutUpdate();
  32123. bool FilterAttributes(XMLElement&) const;
  32124. uint FindChild(UIElement) const;
  32125. bool GetAnimationEnabled() const;
  32126. Variant GetAttribute(const String&) const;
  32127. Variant GetAttribute(uint) const;
  32128. ValueAnimation GetAttributeAnimation(const String&) const;
  32129. float GetAttributeAnimationSpeed(const String&) const;
  32130. float GetAttributeAnimationTime(const String&) const;
  32131. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  32132. Variant GetAttributeDefault(const String&) const;
  32133. Variant GetAttributeDefault(uint) const;
  32134. bool GetBlockEvents() const;
  32135. bool GetBringToBack() const;
  32136. bool GetBringToFront() const;
  32137. UIElement GetChild(const String&, bool = false) const;
  32138. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  32139. UIElement GetChild(uint) const;
  32140. Array<UIElement> GetChildren() const;
  32141. Array<UIElement> GetChildren(bool) const;
  32142. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  32143. bool GetClipChildren() const;
  32144. IntRect GetCombinedScreenRect();
  32145. XMLFile GetDefaultStyle(bool = true) const;
  32146. float GetDelay() const;
  32147. float GetDerivedOpacity() const;
  32148. uint GetDragButtonCombo() const;
  32149. uint GetDragButtonCount() const;
  32150. uint GetDragDropMode() const;
  32151. IntVector2 GetEffectiveMinSize() const;
  32152. UIElement GetElementEventSender() const;
  32153. bool GetEnableAnchor() const;
  32154. VariantMap& GetEventDataMap() const;
  32155. Object GetEventSender() const;
  32156. FocusMode GetFocusMode() const;
  32157. int GetHeight() const;
  32158. HorizontalAlignment GetHorizontalAlignment() const;
  32159. int GetIndent() const;
  32160. int GetIndentSpacing() const;
  32161. int GetIndentWidth() const;
  32162. bool GetInterceptNetworkUpdate(const String&) const;
  32163. int GetLayoutElementMaxSize() const;
  32164. LayoutMode GetLayoutMode() const;
  32165. int GetLayoutSpacing() const;
  32166. int GetMaxHeight() const;
  32167. int GetMaxWidth() const;
  32168. int GetMinHeight() const;
  32169. int GetMinWidth() const;
  32170. uint GetNumAttributes() const;
  32171. uint GetNumChildren(bool = false) const;
  32172. uint GetNumNetworkAttributes() const;
  32173. ObjectAnimation GetObjectAnimation() const;
  32174. ResourceRef GetObjectAnimationAttr() const;
  32175. float GetOpacity() const;
  32176. UIElement GetParent() const;
  32177. int GetPriority() const;
  32178. UIElement GetRoot() const;
  32179. bool GetSortChildren() const;
  32180. Object GetSubsystem(StringHash) const;
  32181. Array<String> GetTags() const;
  32182. TraversalMode GetTraversalMode() const;
  32183. StringHash GetType() const;
  32184. bool GetUseDerivedOpacity() const;
  32185. VerticalAlignment GetVerticalAlignment() const;
  32186. int GetWidth() const;
  32187. bool HasColorGradient() const;
  32188. bool HasEventHandlers() const;
  32189. bool HasFocus() const;
  32190. bool HasSubscribedToEvent(Object, StringHash) const;
  32191. bool HasSubscribedToEvent(StringHash) const;
  32192. bool HasTag(const String&) const;
  32193. void InsertChild(uint, UIElement);
  32194. const IntRect& GetClipBorder() const;
  32195. const IntRect& GetLayoutBorder() const;
  32196. const IntVector2& GetChildOffset() const;
  32197. const IntVector2& GetMaxOffset() const;
  32198. const IntVector2& GetMaxSize() const;
  32199. const IntVector2& GetMinOffset() const;
  32200. const IntVector2& GetMinSize() const;
  32201. const IntVector2& GetPosition() const;
  32202. const IntVector2& GetScreenPosition() const;
  32203. const IntVector2& GetSize() const;
  32204. bool IsChildOf(UIElement) const;
  32205. bool IsEditable() const;
  32206. bool IsElementEventSender() const;
  32207. bool IsEnabled() const;
  32208. bool IsEnabledSelf() const;
  32209. bool IsFixedHeight() const;
  32210. bool IsFixedSize() const;
  32211. bool IsFixedWidth() const;
  32212. bool IsHovering() const;
  32213. bool IsInside(IntVector2, bool);
  32214. bool IsInsideCombined(IntVector2, bool);
  32215. bool IsInstanceOf(StringHash) const;
  32216. bool IsInternal() const;
  32217. bool IsSelected() const;
  32218. bool IsTemporary() const;
  32219. bool IsVisible() const;
  32220. bool IsVisibleEffective() const;
  32221. bool IsWheelHandler() const;
  32222. bool IsWithinScissor(const IntRect&);
  32223. bool Load(Deserializer&);
  32224. UIElement LoadChildXML(XMLFile, XMLFile);
  32225. UIElement LoadChildXML(const XMLElement&, XMLFile);
  32226. bool LoadJSON(const JSONValue&);
  32227. bool LoadXML(Deserializer&);
  32228. bool LoadXML(File);
  32229. bool LoadXML(VectorBuffer&);
  32230. bool LoadXML(XMLFile, XMLFile);
  32231. bool LoadXML(const XMLElement&);
  32232. bool LoadXML(const XMLElement&, XMLFile);
  32233. void MarkNetworkUpdate();
  32234. operator Object() const;
  32235. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  32236. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  32237. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  32238. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32239. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32240. bool OnDragDropFinish(UIElement);
  32241. bool OnDragDropTest(UIElement);
  32242. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32243. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32244. void OnEvent(Object, StringHash, VariantMap&);
  32245. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  32246. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32247. void OnIndentSet();
  32248. void OnKey(uint, uint, uint);
  32249. void OnPositionSet(const IntVector2&);
  32250. void OnResize(const IntVector2&, const IntVector2&);
  32251. void OnSetAttribute(const AttributeInfo&, const Variant&);
  32252. void OnSetEditable();
  32253. void OnTextInput(const String&);
  32254. void OnWheel(int, uint, uint);
  32255. bool ReadDeltaUpdate(Deserializer&);
  32256. bool ReadLatestDataUpdate(Deserializer&);
  32257. operator RefCounted() const;
  32258. int Refs() const;
  32259. void Remove();
  32260. void RemoveAllChildren();
  32261. void RemoveAllTags();
  32262. void RemoveAttributeAnimation(const String&);
  32263. void RemoveChild(UIElement, uint = 0);
  32264. void RemoveChild(uint);
  32265. void RemoveChildAtIndex(uint);
  32266. void RemoveInstanceDefault();
  32267. void RemoveObjectAnimation();
  32268. bool RemoveTag(const String&);
  32269. void Reset();
  32270. void ResetDeepEnabled();
  32271. void ResetToDefault();
  32272. bool Save(Serializer&) const;
  32273. bool SaveDefaultAttributes() const;
  32274. bool SaveJSON(JSONValue&) const;
  32275. bool SaveXML(File, const String& indentation = "\t");
  32276. bool SaveXML(Serializer&, const String& = "\t") const;
  32277. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  32278. bool SaveXML(XMLElement&) const;
  32279. IntVector2 ScreenToElement(const IntVector2&);
  32280. void SendEvent(StringHash);
  32281. void SendEvent(StringHash, VariantMap&);
  32282. operator Serializable() const;
  32283. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  32284. void SetAnimationEnabled(bool);
  32285. void SetAnimationTime(float);
  32286. bool SetAttribute(const String&, const Variant&);
  32287. bool SetAttribute(uint, const Variant&);
  32288. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  32289. void SetAttributeAnimationSpeed(const String&, float);
  32290. void SetAttributeAnimationTime(const String&, float);
  32291. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  32292. void SetBlockEvents(bool);
  32293. void SetBringToBack(bool);
  32294. void SetBringToFront(bool);
  32295. void SetChildOffset(const IntVector2&);
  32296. void SetClipBorder(const IntRect&);
  32297. void SetClipChildren(bool);
  32298. void SetColor(Corner, const Color&);
  32299. void SetColor(const Color&);
  32300. void SetDeepEnabled(bool);
  32301. void SetDefaultStyle(XMLFile);
  32302. void SetDelay(float);
  32303. void SetDragDropMode(uint);
  32304. void SetEditable(bool);
  32305. void SetElementEventSender(bool);
  32306. void SetEnableAnchor(bool);
  32307. void SetEnabled(bool);
  32308. void SetEnabledRecursive(bool);
  32309. void SetFixedHeight(int);
  32310. void SetFixedSize(const IntVector2&);
  32311. void SetFixedSize(int, int);
  32312. void SetFixedWidth(int);
  32313. void SetFocus(bool);
  32314. void SetFocusMode(FocusMode);
  32315. void SetGlobalVar(StringHash, const Variant&);
  32316. void SetHeight(int);
  32317. void SetHorizontalAlignment(HorizontalAlignment);
  32318. void SetHovering(bool);
  32319. void SetIndent(int);
  32320. void SetIndentSpacing(int);
  32321. void SetInstanceDefault(bool);
  32322. void SetInterceptNetworkUpdate(const String&, bool);
  32323. void SetInternal(bool);
  32324. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  32325. void SetLayoutBorder(const IntRect&);
  32326. void SetLayoutFlexScale(const Vector2&);
  32327. void SetLayoutMode(LayoutMode);
  32328. void SetLayoutSpacing(int);
  32329. void SetMaxAnchor(const Vector2&);
  32330. void SetMaxAnchor(float, float);
  32331. void SetMaxHeight(int);
  32332. void SetMaxOffset(const IntVector2&);
  32333. void SetMaxSize(const IntVector2&);
  32334. void SetMaxSize(int, int);
  32335. void SetMaxWidth(int);
  32336. void SetMinAnchor(const Vector2&);
  32337. void SetMinAnchor(float, float);
  32338. void SetMinHeight(int);
  32339. void SetMinOffset(const IntVector2&);
  32340. void SetMinSize(const IntVector2&);
  32341. void SetMinSize(int, int);
  32342. void SetMinWidth(int);
  32343. void SetName(const String&);
  32344. void SetObjectAnimation(ObjectAnimation);
  32345. void SetObjectAnimationAttr(const ResourceRef&);
  32346. void SetOpacity(float);
  32347. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  32348. void SetPivot(const Vector2&);
  32349. void SetPivot(float, float);
  32350. void SetPosition(const IntVector2&);
  32351. void SetPosition(int, int);
  32352. void SetPriority(int);
  32353. void SetRenderTexture(Texture2D);
  32354. void SetSelected(bool);
  32355. void SetSize(const IntVector2&);
  32356. void SetSize(int, int);
  32357. void SetSortChildren(bool);
  32358. bool SetStyle(const String&, XMLFile = null);
  32359. bool SetStyle(const XMLElement&);
  32360. bool SetStyleAuto(XMLFile = null);
  32361. void SetTags(Array<String>);
  32362. void SetTemporary(bool);
  32363. void SetTraversalMode(TraversalMode);
  32364. void SetUseDerivedOpacity(bool);
  32365. void SetVar(StringHash, const Variant&);
  32366. void SetVerticalAlignment(VerticalAlignment);
  32367. void SetVisible(bool);
  32368. void SetWidth(int);
  32369. void SortChildren();
  32370. const String& GetAppliedStyle() const;
  32371. const String& GetCategory() const;
  32372. const String& GetName() const;
  32373. const String& GetTypeName() const;
  32374. operator UIElement() const;
  32375. void UnsubscribeFromAllEvents();
  32376. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32377. void UnsubscribeFromEvent(Object, StringHash);
  32378. void UnsubscribeFromEvent(StringHash);
  32379. void UnsubscribeFromEvents(Object);
  32380. void Update(float);
  32381. void UpdateLayout();
  32382. const Variant& GetGlobalVar(StringHash) const;
  32383. const Variant& GetVar(const StringHash&) const;
  32384. const VariantMap& GetGlobalVars() const;
  32385. const VariantMap& GetVars() const;
  32386. const Vector2& GetLayoutFlexScale() const;
  32387. const Vector2& GetMaxAnchor() const;
  32388. const Vector2& GetMinAnchor() const;
  32389. const Vector2& GetPivot() const;
  32390. int WeakRefs() const;
  32391. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  32392. void WriteInitialDeltaUpdate(Serializer&, uint8);
  32393. void WriteLatestDataUpdate(Serializer&, uint8);
  32394. operator const Animatable() const;
  32395. operator const Object() const;
  32396. operator const RefCounted() const;
  32397. operator const Serializable() const;
  32398. operator const UIElement() const;
  32399. // Properties:
  32400. bool animationEnabled;
  32401. /* readonly */
  32402. Array<Variant> attributeDefaults;
  32403. /* readonly */
  32404. Array<AttributeInfo> attributeInfos;
  32405. Array<Variant> attributes;
  32406. bool bringToBack;
  32407. bool bringToFront;
  32408. /* readonly */
  32409. String category;
  32410. /* readonly */
  32411. IntVector2 childOffset;
  32412. /* readonly */
  32413. Array<UIElement> children;
  32414. IntRect clipBorder;
  32415. bool clipChildren;
  32416. /* writeonly */
  32417. Color color;
  32418. /* readonly */
  32419. bool colorGradient;
  32420. Array<Color> colors;
  32421. /* readonly */
  32422. IntRect combinedScreenRect;
  32423. XMLFile defaultStyle;
  32424. float delay;
  32425. /* readonly */
  32426. float derivedOpacity;
  32427. /* readonly */
  32428. uint dragButtonCombo;
  32429. /* readonly */
  32430. uint dragButtonCount;
  32431. uint dragDropMode;
  32432. bool editable;
  32433. bool elementEventSender;
  32434. bool enableAnchor;
  32435. bool enabled;
  32436. /* readonly */
  32437. bool enabledSelf;
  32438. /* readonly */
  32439. bool fixedHeight;
  32440. /* readonly */
  32441. bool fixedSize;
  32442. /* readonly */
  32443. bool fixedWidth;
  32444. bool focus;
  32445. FocusMode focusMode;
  32446. Array<Variant> globalVar;
  32447. /* readonly */
  32448. VariantMap globalVars;
  32449. int height;
  32450. HorizontalAlignment horizontalAlignment;
  32451. /* readonly */
  32452. bool hovering;
  32453. int indent;
  32454. int indentSpacing;
  32455. /* readonly */
  32456. int indentWidth;
  32457. bool internal;
  32458. IntRect layoutBorder;
  32459. Vector2 layoutFlexScale;
  32460. LayoutMode layoutMode;
  32461. int layoutSpacing;
  32462. Vector2 maxAnchor;
  32463. int maxHeight;
  32464. IntVector2 maxOffset;
  32465. IntVector2 maxSize;
  32466. int maxWidth;
  32467. Vector2 minAnchor;
  32468. int minHeight;
  32469. IntVector2 minOffset;
  32470. IntVector2 minSize;
  32471. int minWidth;
  32472. String name;
  32473. /* readonly */
  32474. uint numAllChildren;
  32475. /* readonly */
  32476. uint numAttributes;
  32477. /* readonly */
  32478. uint numChildren;
  32479. ObjectAnimation objectAnimation;
  32480. float opacity;
  32481. UIElement parent;
  32482. Vector2 pivot;
  32483. IntVector2 position;
  32484. int priority;
  32485. /* readonly */
  32486. int refs;
  32487. /* readonly */
  32488. UIElement root;
  32489. /* readonly */
  32490. IntVector2 screenPosition;
  32491. bool selected;
  32492. IntVector2 size;
  32493. bool sortChildren;
  32494. String style;
  32495. /* readonly */
  32496. Array<String> tags;
  32497. bool temporary;
  32498. TraversalMode traversalMode;
  32499. /* readonly */
  32500. StringHash type;
  32501. /* readonly */
  32502. String typeName;
  32503. bool useDerivedOpacity;
  32504. /* readonly */
  32505. VariantMap vars;
  32506. VerticalAlignment verticalAlignment;
  32507. bool visible;
  32508. /* readonly */
  32509. bool visibleEffective;
  32510. /* readonly */
  32511. int weakRefs;
  32512. int width;
  32513. };
  32514. class TouchState
  32515. {
  32516. public:
  32517. // Methods:
  32518. TouchState& operator=(const TouchState&);
  32519. UIElement GetTouchedElement();
  32520. // Properties:
  32521. IntVector2 delta;
  32522. IntVector2 lastPosition;
  32523. IntVector2 position;
  32524. float pressure;
  32525. int touchID;
  32526. /* readonly */
  32527. UIElement touchedElement;
  32528. };
  32529. class TrailPoint
  32530. {
  32531. public:
  32532. ~TrailPoint();
  32533. TrailPoint();
  32534. TrailPoint(const Vector3&in, const Vector3&in);
  32535. // Methods:
  32536. TrailPoint& operator=(const TrailPoint&);
  32537. // Properties:
  32538. float elapsedLength;
  32539. Vector3 forward;
  32540. float lifetime;
  32541. Vector3 parentPos;
  32542. Vector3 position;
  32543. float sortDistance;
  32544. };
  32545. class TriangleMeshData
  32546. {
  32547. public:
  32548. TriangleMeshData(Model&, uint);
  32549. TriangleMeshData(CustomGeometry&);
  32550. // Methods:
  32551. operator CollisionGeometryData() const;
  32552. operator RefCounted() const;
  32553. int Refs() const;
  32554. int WeakRefs() const;
  32555. operator const CollisionGeometryData() const;
  32556. operator const RefCounted() const;
  32557. // Properties:
  32558. /* readonly */
  32559. int refs;
  32560. /* readonly */
  32561. int weakRefs;
  32562. };
  32563. class UI
  32564. {
  32565. public:
  32566. UI();
  32567. // Methods:
  32568. void Clear();
  32569. IntVector2 ConvertSystemToUI(const IntVector2&) const;
  32570. IntVector2 ConvertUIToSystem(const IntVector2&) const;
  32571. void DebugDraw(UIElement);
  32572. bool GetBlockEvents() const;
  32573. Cursor GetCursor() const;
  32574. IntVector2 GetCursorPosition() const;
  32575. float GetDefaultToolTipDelay() const;
  32576. float GetDoubleClickInterval() const;
  32577. int GetDragBeginDistance() const;
  32578. float GetDragBeginInterval() const;
  32579. UIElement GetDragElement(uint);
  32580. UIElement GetElementAt(UIElement, const IntVector2&, bool = true);
  32581. UIElement GetElementAt(const IntVector2&, bool = true);
  32582. UIElement GetElementAt(int, int, bool = true);
  32583. VariantMap& GetEventDataMap() const;
  32584. Object GetEventSender() const;
  32585. UIElement GetFocusElement() const;
  32586. FontHintLevel GetFontHintLevel() const;
  32587. int GetFontOversampling() const;
  32588. float GetFontSubpixelThreshold() const;
  32589. bool GetForceAutoHint() const;
  32590. UIElement GetFrontElement() const;
  32591. float GetMaxDoubleClickDistance() const;
  32592. int GetMaxFontTextureSize() const;
  32593. uint GetNumDragElements() const;
  32594. UIElement GetRoot() const;
  32595. UIElement GetRootModalElement() const;
  32596. float GetScale() const;
  32597. Object GetSubsystem(StringHash) const;
  32598. StringHash GetType() const;
  32599. bool GetUseMutableGlyphs() const;
  32600. bool GetUseScreenKeyboard() const;
  32601. bool GetUseSystemClipboard() const;
  32602. bool HasEventHandlers() const;
  32603. bool HasModalElement() const;
  32604. bool HasSubscribedToEvent(Object, StringHash) const;
  32605. bool HasSubscribedToEvent(StringHash) const;
  32606. const IntVector2& GetCustomSize() const;
  32607. bool IsDragging() const;
  32608. bool IsInstanceOf(StringHash) const;
  32609. bool IsNonFocusedMouseWheel() const;
  32610. UIElement LoadLayout(Deserializer&, XMLFile = null);
  32611. UIElement LoadLayout(File);
  32612. UIElement LoadLayout(File, XMLFile);
  32613. UIElement LoadLayout(VectorBuffer&);
  32614. UIElement LoadLayout(VectorBuffer&, XMLFile);
  32615. UIElement LoadLayout(XMLFile, XMLFile = null);
  32616. operator Object() const;
  32617. void OnEvent(Object, StringHash, VariantMap&);
  32618. operator RefCounted() const;
  32619. int Refs() const;
  32620. void Render(bool = false);
  32621. void RenderUpdate();
  32622. bool SaveLayout(File, UIElement);
  32623. bool SaveLayout(Serializer&, UIElement);
  32624. bool SaveLayout(VectorBuffer&, UIElement);
  32625. void SendEvent(StringHash);
  32626. void SendEvent(StringHash, VariantMap&);
  32627. void SetBlockEvents(bool);
  32628. void SetClipboardText(const String&);
  32629. void SetCursor(Cursor);
  32630. void SetCustomSize(const IntVector2&);
  32631. void SetCustomSize(int, int);
  32632. void SetDefaultToolTipDelay(float);
  32633. void SetDoubleClickInterval(float);
  32634. void SetDragBeginDistance(int);
  32635. void SetDragBeginInterval(float);
  32636. void SetElementRenderTexture(UIElement, Texture2D);
  32637. void SetFocusElement(UIElement, bool = false);
  32638. void SetFontHintLevel(FontHintLevel);
  32639. void SetFontOversampling(int);
  32640. void SetFontSubpixelThreshold(float);
  32641. void SetForceAutoHint(bool);
  32642. void SetGlobalVar(StringHash, const Variant&);
  32643. void SetHeight(float);
  32644. void SetMaxDoubleClickDistance(float);
  32645. void SetMaxFontTextureSize(int);
  32646. bool SetModalElement(UIElement, bool);
  32647. void SetNonFocusedMouseWheel(bool);
  32648. void SetScale(float);
  32649. void SetUseMutableGlyphs(bool);
  32650. void SetUseScreenKeyboard(bool);
  32651. void SetUseSystemClipboard(bool);
  32652. void SetWidth(float);
  32653. const String& GetCategory() const;
  32654. const String& GetClipboardText() const;
  32655. const String& GetTypeName() const;
  32656. const Array<UIElement> GetDragElements();
  32657. void UnsubscribeFromAllEvents();
  32658. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32659. void UnsubscribeFromEvent(Object, StringHash);
  32660. void UnsubscribeFromEvent(StringHash);
  32661. void UnsubscribeFromEvents(Object);
  32662. void Update(float);
  32663. const Variant& GetGlobalVar(StringHash) const;
  32664. const VariantMap& GetGlobalVars() const;
  32665. int WeakRefs() const;
  32666. operator const Object() const;
  32667. operator const RefCounted() const;
  32668. // Properties:
  32669. /* readonly */
  32670. String category;
  32671. String clipboardText;
  32672. Cursor cursor;
  32673. /* readonly */
  32674. IntVector2 cursorPosition;
  32675. IntVector2 customSize;
  32676. float defaultToolTipDelay;
  32677. float doubleClickInterval;
  32678. int dragBeginDistance;
  32679. float dragBeginInterval;
  32680. UIElement focusElement;
  32681. FontHintLevel fontHintLevel;
  32682. int fontOversampling;
  32683. float fontSubpixelThreshold;
  32684. bool forceAutoHint;
  32685. /* readonly */
  32686. UIElement frontElement;
  32687. Array<Variant> globalVar;
  32688. /* readonly */
  32689. VariantMap globalVars;
  32690. float maxDoubleClickDistance;
  32691. int maxFontTextureSize;
  32692. /* readonly */
  32693. UIElement modalRoot;
  32694. bool nonFocusedMouseWheel;
  32695. /* readonly */
  32696. int refs;
  32697. /* readonly */
  32698. UIElement root;
  32699. float scale;
  32700. /* readonly */
  32701. StringHash type;
  32702. /* readonly */
  32703. String typeName;
  32704. bool useMutableGlyphs;
  32705. bool useScreenKeyboard;
  32706. bool useSystemClipboard;
  32707. /* readonly */
  32708. int weakRefs;
  32709. };
  32710. class UIBatch
  32711. {
  32712. public:
  32713. ~UIBatch();
  32714. UIBatch();
  32715. // Methods:
  32716. UIBatch& operator=(const UIBatch&);
  32717. void AddQuad(const Matrix3x4&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&);
  32718. 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&);
  32719. void AddQuad(const Matrix3x4&, int, int, int, int, int, int, int = 0, int = 0);
  32720. void AddQuad(float, float, float, float, int, int, int = 0, int = 0);
  32721. void AddQuad(int, int, int, int, int, int, int, int, bool);
  32722. uint GetInterpolatedColor(float, float);
  32723. bool Merge(const UIBatch&);
  32724. void SetColor(const Color&, bool = false);
  32725. void SetDefaultColor();
  32726. // Properties:
  32727. BlendMode blendMode;
  32728. uint color;
  32729. Vector2 invTextureSize;
  32730. IntRect scissor;
  32731. bool useGradient;
  32732. uint vertexEnd;
  32733. uint vertexStart;
  32734. // Constants:
  32735. static const Vector3 posAdjust;
  32736. };
  32737. class UIComponent
  32738. {
  32739. public:
  32740. UIComponent();
  32741. // Methods:
  32742. void AllocateNetworkState();
  32743. operator Animatable() const;
  32744. void ApplyAttributes();
  32745. void CleanupConnection(Connection);
  32746. operator Component() const;
  32747. void DrawDebugGeometry(DebugRenderer, bool);
  32748. bool GetAnimationEnabled() const;
  32749. Variant GetAttribute(const String&) const;
  32750. Variant GetAttribute(uint) const;
  32751. ValueAnimation GetAttributeAnimation(const String&) const;
  32752. float GetAttributeAnimationSpeed(const String&) const;
  32753. float GetAttributeAnimationTime(const String&) const;
  32754. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  32755. Variant GetAttributeDefault(const String&) const;
  32756. Variant GetAttributeDefault(uint) const;
  32757. bool GetBlockEvents() const;
  32758. Component GetComponent(StringHash) const;
  32759. VariantMap& GetEventDataMap() const;
  32760. Object GetEventSender() const;
  32761. uint GetID() const;
  32762. bool GetInterceptNetworkUpdate(const String&) const;
  32763. Material GetMaterial() const;
  32764. Node GetNode() const;
  32765. uint GetNumAttributes() const;
  32766. uint GetNumNetworkAttributes() const;
  32767. ObjectAnimation GetObjectAnimation() const;
  32768. ResourceRef GetObjectAnimationAttr() const;
  32769. UIElement GetRoot() const;
  32770. Scene GetScene() const;
  32771. Object GetSubsystem(StringHash) const;
  32772. Texture2D GetTexture() const;
  32773. StringHash GetType() const;
  32774. bool HasEventHandlers() const;
  32775. bool HasSubscribedToEvent(Object, StringHash) const;
  32776. bool HasSubscribedToEvent(StringHash) const;
  32777. bool IsEnabled() const;
  32778. bool IsEnabledEffective() const;
  32779. bool IsInstanceOf(StringHash) const;
  32780. bool IsReplicated() const;
  32781. bool IsTemporary() const;
  32782. bool Load(Deserializer&);
  32783. bool LoadJSON(const JSONValue&);
  32784. bool LoadXML(const XMLElement&);
  32785. void MarkNetworkUpdate();
  32786. operator Object() const;
  32787. void OnEvent(Object, StringHash, VariantMap&);
  32788. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  32789. void OnSetAttribute(const AttributeInfo&, const Variant&);
  32790. void OnSetEnabled();
  32791. void PrepareNetworkUpdate();
  32792. bool ReadDeltaUpdate(Deserializer&);
  32793. bool ReadLatestDataUpdate(Deserializer&);
  32794. operator RefCounted() const;
  32795. int Refs() const;
  32796. void Remove();
  32797. void RemoveAttributeAnimation(const String&);
  32798. void RemoveInstanceDefault();
  32799. void RemoveObjectAnimation();
  32800. void ResetToDefault();
  32801. bool Save(Serializer&) const;
  32802. bool SaveDefaultAttributes() const;
  32803. bool SaveJSON(JSONValue&) const;
  32804. bool SaveXML(XMLElement&) const;
  32805. void SendEvent(StringHash);
  32806. void SendEvent(StringHash, VariantMap&);
  32807. operator Serializable() const;
  32808. void SetAnimationEnabled(bool);
  32809. void SetAnimationTime(float);
  32810. bool SetAttribute(const String&, const Variant&);
  32811. bool SetAttribute(uint, const Variant&);
  32812. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  32813. void SetAttributeAnimationSpeed(const String&, float);
  32814. void SetAttributeAnimationTime(const String&, float);
  32815. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  32816. void SetBlockEvents(bool);
  32817. void SetEnabled(bool);
  32818. void SetGlobalVar(StringHash, const Variant&);
  32819. void SetInstanceDefault(bool);
  32820. void SetInterceptNetworkUpdate(const String&, bool);
  32821. void SetObjectAnimation(ObjectAnimation);
  32822. void SetObjectAnimationAttr(const ResourceRef&);
  32823. void SetTemporary(bool);
  32824. void SetViewportIndex(uint);
  32825. const String& GetCategory() const;
  32826. const String& GetTypeName() const;
  32827. void UnsubscribeFromAllEvents();
  32828. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32829. void UnsubscribeFromEvent(Object, StringHash);
  32830. void UnsubscribeFromEvent(StringHash);
  32831. void UnsubscribeFromEvents(Object);
  32832. const Variant& GetGlobalVar(StringHash) const;
  32833. const VariantMap& GetGlobalVars() const;
  32834. int WeakRefs() const;
  32835. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  32836. void WriteInitialDeltaUpdate(Serializer&, uint8);
  32837. void WriteLatestDataUpdate(Serializer&, uint8);
  32838. operator const Animatable() const;
  32839. operator const Component() const;
  32840. operator const Object() const;
  32841. operator const RefCounted() const;
  32842. operator const Serializable() const;
  32843. // Properties:
  32844. bool animationEnabled;
  32845. /* readonly */
  32846. Array<Variant> attributeDefaults;
  32847. /* readonly */
  32848. Array<AttributeInfo> attributeInfos;
  32849. Array<Variant> attributes;
  32850. /* readonly */
  32851. String category;
  32852. bool enabled;
  32853. /* readonly */
  32854. bool enabledEffective;
  32855. Array<Variant> globalVar;
  32856. /* readonly */
  32857. VariantMap globalVars;
  32858. /* readonly */
  32859. uint id;
  32860. /* readonly */
  32861. Material material;
  32862. /* readonly */
  32863. Node node;
  32864. /* readonly */
  32865. uint numAttributes;
  32866. ObjectAnimation objectAnimation;
  32867. /* readonly */
  32868. int refs;
  32869. /* readonly */
  32870. bool replicated;
  32871. /* readonly */
  32872. UIElement root;
  32873. bool temporary;
  32874. /* readonly */
  32875. Texture2D texture;
  32876. /* readonly */
  32877. StringHash type;
  32878. /* readonly */
  32879. String typeName;
  32880. /* readonly */
  32881. int weakRefs;
  32882. };
  32883. class UIElement
  32884. {
  32885. public:
  32886. UIElement();
  32887. UIElement(const String&in);
  32888. // Methods:
  32889. void AddChild(UIElement);
  32890. void AddTag(const String&);
  32891. void AddTags(Array<String>);
  32892. void AddTags(const String&, int8 = ';');
  32893. void AdjustScissor(IntRect&);
  32894. void AllocateNetworkState();
  32895. operator Animatable() const;
  32896. void ApplyAttributes();
  32897. operator BorderImage() const;
  32898. void BringToFront();
  32899. operator Button() const;
  32900. operator CheckBox() const;
  32901. const Color& GetColor(Corner) const;
  32902. const Color& GetColorAttr() const;
  32903. const Color& GetDerivedColor() const;
  32904. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  32905. operator Cursor() const;
  32906. void DisableLayoutUpdate();
  32907. operator DropDownList() const;
  32908. IntVector2 ElementToScreen(const IntVector2&);
  32909. void EnableLayoutUpdate();
  32910. bool FilterAttributes(XMLElement&) const;
  32911. uint FindChild(UIElement) const;
  32912. bool GetAnimationEnabled() const;
  32913. Variant GetAttribute(const String&) const;
  32914. Variant GetAttribute(uint) const;
  32915. ValueAnimation GetAttributeAnimation(const String&) const;
  32916. float GetAttributeAnimationSpeed(const String&) const;
  32917. float GetAttributeAnimationTime(const String&) const;
  32918. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  32919. Variant GetAttributeDefault(const String&) const;
  32920. Variant GetAttributeDefault(uint) const;
  32921. bool GetBlockEvents() const;
  32922. bool GetBringToBack() const;
  32923. bool GetBringToFront() const;
  32924. UIElement GetChild(const String&, bool = false) const;
  32925. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  32926. UIElement GetChild(uint) const;
  32927. Array<UIElement> GetChildren() const;
  32928. Array<UIElement> GetChildren(bool) const;
  32929. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  32930. bool GetClipChildren() const;
  32931. IntRect GetCombinedScreenRect();
  32932. XMLFile GetDefaultStyle(bool = true) const;
  32933. float GetDerivedOpacity() const;
  32934. uint GetDragButtonCombo() const;
  32935. uint GetDragButtonCount() const;
  32936. uint GetDragDropMode() const;
  32937. IntVector2 GetEffectiveMinSize() const;
  32938. UIElement GetElementEventSender() const;
  32939. bool GetEnableAnchor() const;
  32940. VariantMap& GetEventDataMap() const;
  32941. Object GetEventSender() const;
  32942. FocusMode GetFocusMode() const;
  32943. int GetHeight() const;
  32944. HorizontalAlignment GetHorizontalAlignment() const;
  32945. int GetIndent() const;
  32946. int GetIndentSpacing() const;
  32947. int GetIndentWidth() const;
  32948. bool GetInterceptNetworkUpdate(const String&) const;
  32949. int GetLayoutElementMaxSize() const;
  32950. LayoutMode GetLayoutMode() const;
  32951. int GetLayoutSpacing() const;
  32952. int GetMaxHeight() const;
  32953. int GetMaxWidth() const;
  32954. int GetMinHeight() const;
  32955. int GetMinWidth() const;
  32956. uint GetNumAttributes() const;
  32957. uint GetNumChildren(bool = false) const;
  32958. uint GetNumNetworkAttributes() const;
  32959. ObjectAnimation GetObjectAnimation() const;
  32960. ResourceRef GetObjectAnimationAttr() const;
  32961. float GetOpacity() const;
  32962. UIElement GetParent() const;
  32963. int GetPriority() const;
  32964. UIElement GetRoot() const;
  32965. bool GetSortChildren() const;
  32966. Object GetSubsystem(StringHash) const;
  32967. Array<String> GetTags() const;
  32968. TraversalMode GetTraversalMode() const;
  32969. StringHash GetType() const;
  32970. bool GetUseDerivedOpacity() const;
  32971. VerticalAlignment GetVerticalAlignment() const;
  32972. int GetWidth() const;
  32973. bool HasColorGradient() const;
  32974. bool HasEventHandlers() const;
  32975. bool HasFocus() const;
  32976. bool HasSubscribedToEvent(Object, StringHash) const;
  32977. bool HasSubscribedToEvent(StringHash) const;
  32978. bool HasTag(const String&) const;
  32979. void InsertChild(uint, UIElement);
  32980. const IntRect& GetClipBorder() const;
  32981. const IntRect& GetLayoutBorder() const;
  32982. const IntVector2& GetChildOffset() const;
  32983. const IntVector2& GetMaxOffset() const;
  32984. const IntVector2& GetMaxSize() const;
  32985. const IntVector2& GetMinOffset() const;
  32986. const IntVector2& GetMinSize() const;
  32987. const IntVector2& GetPosition() const;
  32988. const IntVector2& GetScreenPosition() const;
  32989. const IntVector2& GetSize() const;
  32990. bool IsChildOf(UIElement) const;
  32991. bool IsEditable() const;
  32992. bool IsElementEventSender() const;
  32993. bool IsEnabled() const;
  32994. bool IsEnabledSelf() const;
  32995. bool IsFixedHeight() const;
  32996. bool IsFixedSize() const;
  32997. bool IsFixedWidth() const;
  32998. bool IsHovering() const;
  32999. bool IsInside(IntVector2, bool);
  33000. bool IsInsideCombined(IntVector2, bool);
  33001. bool IsInstanceOf(StringHash) const;
  33002. bool IsInternal() const;
  33003. bool IsSelected() const;
  33004. bool IsTemporary() const;
  33005. bool IsVisible() const;
  33006. bool IsVisibleEffective() const;
  33007. bool IsWheelHandler() const;
  33008. bool IsWithinScissor(const IntRect&);
  33009. operator LineEdit() const;
  33010. operator ListView() const;
  33011. bool Load(Deserializer&);
  33012. UIElement LoadChildXML(XMLFile, XMLFile);
  33013. UIElement LoadChildXML(const XMLElement&, XMLFile);
  33014. bool LoadJSON(const JSONValue&);
  33015. bool LoadXML(Deserializer&);
  33016. bool LoadXML(File);
  33017. bool LoadXML(VectorBuffer&);
  33018. bool LoadXML(XMLFile, XMLFile);
  33019. bool LoadXML(const XMLElement&);
  33020. bool LoadXML(const XMLElement&, XMLFile);
  33021. void MarkNetworkUpdate();
  33022. operator Menu() const;
  33023. operator Object() const;
  33024. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33025. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  33026. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33027. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33028. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33029. bool OnDragDropFinish(UIElement);
  33030. bool OnDragDropTest(UIElement);
  33031. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33032. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33033. void OnEvent(Object, StringHash, VariantMap&);
  33034. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33035. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33036. void OnIndentSet();
  33037. void OnKey(uint, uint, uint);
  33038. void OnPositionSet(const IntVector2&);
  33039. void OnResize(const IntVector2&, const IntVector2&);
  33040. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33041. void OnSetEditable();
  33042. void OnTextInput(const String&);
  33043. void OnWheel(int, uint, uint);
  33044. operator ProgressBar() const;
  33045. bool ReadDeltaUpdate(Deserializer&);
  33046. bool ReadLatestDataUpdate(Deserializer&);
  33047. operator RefCounted() const;
  33048. int Refs() const;
  33049. void Remove();
  33050. void RemoveAllChildren();
  33051. void RemoveAllTags();
  33052. void RemoveAttributeAnimation(const String&);
  33053. void RemoveChild(UIElement, uint = 0);
  33054. void RemoveChild(uint);
  33055. void RemoveChildAtIndex(uint);
  33056. void RemoveInstanceDefault();
  33057. void RemoveObjectAnimation();
  33058. bool RemoveTag(const String&);
  33059. void ResetDeepEnabled();
  33060. void ResetToDefault();
  33061. bool Save(Serializer&) const;
  33062. bool SaveDefaultAttributes() const;
  33063. bool SaveJSON(JSONValue&) const;
  33064. bool SaveXML(File, const String& indentation = "\t");
  33065. bool SaveXML(Serializer&, const String& = "\t") const;
  33066. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  33067. bool SaveXML(XMLElement&) const;
  33068. IntVector2 ScreenToElement(const IntVector2&);
  33069. operator ScrollBar() const;
  33070. operator ScrollView() const;
  33071. void SendEvent(StringHash);
  33072. void SendEvent(StringHash, VariantMap&);
  33073. operator Serializable() const;
  33074. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  33075. void SetAnimationEnabled(bool);
  33076. void SetAnimationTime(float);
  33077. bool SetAttribute(const String&, const Variant&);
  33078. bool SetAttribute(uint, const Variant&);
  33079. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33080. void SetAttributeAnimationSpeed(const String&, float);
  33081. void SetAttributeAnimationTime(const String&, float);
  33082. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33083. void SetBlockEvents(bool);
  33084. void SetBringToBack(bool);
  33085. void SetBringToFront(bool);
  33086. void SetChildOffset(const IntVector2&);
  33087. void SetClipBorder(const IntRect&);
  33088. void SetClipChildren(bool);
  33089. void SetColor(Corner, const Color&);
  33090. void SetColor(const Color&);
  33091. void SetDeepEnabled(bool);
  33092. void SetDefaultStyle(XMLFile);
  33093. void SetDragDropMode(uint);
  33094. void SetEditable(bool);
  33095. void SetElementEventSender(bool);
  33096. void SetEnableAnchor(bool);
  33097. void SetEnabled(bool);
  33098. void SetEnabledRecursive(bool);
  33099. void SetFixedHeight(int);
  33100. void SetFixedSize(const IntVector2&);
  33101. void SetFixedSize(int, int);
  33102. void SetFixedWidth(int);
  33103. void SetFocus(bool);
  33104. void SetFocusMode(FocusMode);
  33105. void SetGlobalVar(StringHash, const Variant&);
  33106. void SetHeight(int);
  33107. void SetHorizontalAlignment(HorizontalAlignment);
  33108. void SetHovering(bool);
  33109. void SetIndent(int);
  33110. void SetIndentSpacing(int);
  33111. void SetInstanceDefault(bool);
  33112. void SetInterceptNetworkUpdate(const String&, bool);
  33113. void SetInternal(bool);
  33114. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  33115. void SetLayoutBorder(const IntRect&);
  33116. void SetLayoutFlexScale(const Vector2&);
  33117. void SetLayoutMode(LayoutMode);
  33118. void SetLayoutSpacing(int);
  33119. void SetMaxAnchor(const Vector2&);
  33120. void SetMaxAnchor(float, float);
  33121. void SetMaxHeight(int);
  33122. void SetMaxOffset(const IntVector2&);
  33123. void SetMaxSize(const IntVector2&);
  33124. void SetMaxSize(int, int);
  33125. void SetMaxWidth(int);
  33126. void SetMinAnchor(const Vector2&);
  33127. void SetMinAnchor(float, float);
  33128. void SetMinHeight(int);
  33129. void SetMinOffset(const IntVector2&);
  33130. void SetMinSize(const IntVector2&);
  33131. void SetMinSize(int, int);
  33132. void SetMinWidth(int);
  33133. void SetName(const String&);
  33134. void SetObjectAnimation(ObjectAnimation);
  33135. void SetObjectAnimationAttr(const ResourceRef&);
  33136. void SetOpacity(float);
  33137. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  33138. void SetPivot(const Vector2&);
  33139. void SetPivot(float, float);
  33140. void SetPosition(const IntVector2&);
  33141. void SetPosition(int, int);
  33142. void SetPriority(int);
  33143. void SetRenderTexture(Texture2D);
  33144. void SetSelected(bool);
  33145. void SetSize(const IntVector2&);
  33146. void SetSize(int, int);
  33147. void SetSortChildren(bool);
  33148. bool SetStyle(const String&, XMLFile = null);
  33149. bool SetStyle(const XMLElement&);
  33150. bool SetStyleAuto(XMLFile = null);
  33151. void SetTags(Array<String>);
  33152. void SetTemporary(bool);
  33153. void SetTraversalMode(TraversalMode);
  33154. void SetUseDerivedOpacity(bool);
  33155. void SetVar(StringHash, const Variant&);
  33156. void SetVerticalAlignment(VerticalAlignment);
  33157. void SetVisible(bool);
  33158. void SetWidth(int);
  33159. operator Slider() const;
  33160. void SortChildren();
  33161. operator Sprite() const;
  33162. const String& GetAppliedStyle() const;
  33163. const String& GetCategory() const;
  33164. const String& GetName() const;
  33165. const String& GetTypeName() const;
  33166. operator Text() const;
  33167. operator ToolTip() const;
  33168. operator UISelectable() const;
  33169. void UnsubscribeFromAllEvents();
  33170. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33171. void UnsubscribeFromEvent(Object, StringHash);
  33172. void UnsubscribeFromEvent(StringHash);
  33173. void UnsubscribeFromEvents(Object);
  33174. void Update(float);
  33175. void UpdateLayout();
  33176. const Variant& GetGlobalVar(StringHash) const;
  33177. const Variant& GetVar(const StringHash&) const;
  33178. const VariantMap& GetGlobalVars() const;
  33179. const VariantMap& GetVars() const;
  33180. const Vector2& GetLayoutFlexScale() const;
  33181. const Vector2& GetMaxAnchor() const;
  33182. const Vector2& GetMinAnchor() const;
  33183. const Vector2& GetPivot() const;
  33184. operator View3D() const;
  33185. int WeakRefs() const;
  33186. operator Window() const;
  33187. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33188. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33189. void WriteLatestDataUpdate(Serializer&, uint8);
  33190. operator const Animatable() const;
  33191. operator const BorderImage() const;
  33192. operator const Button() const;
  33193. operator const CheckBox() const;
  33194. operator const Cursor() const;
  33195. operator const DropDownList() const;
  33196. operator const LineEdit() const;
  33197. operator const ListView() const;
  33198. operator const Menu() const;
  33199. operator const Object() const;
  33200. operator const ProgressBar() const;
  33201. operator const RefCounted() const;
  33202. operator const ScrollBar() const;
  33203. operator const ScrollView() const;
  33204. operator const Serializable() const;
  33205. operator const Slider() const;
  33206. operator const Sprite() const;
  33207. operator const Text() const;
  33208. operator const ToolTip() const;
  33209. operator const UISelectable() const;
  33210. operator const View3D() const;
  33211. operator const Window() const;
  33212. // Properties:
  33213. bool animationEnabled;
  33214. /* readonly */
  33215. Array<Variant> attributeDefaults;
  33216. /* readonly */
  33217. Array<AttributeInfo> attributeInfos;
  33218. Array<Variant> attributes;
  33219. bool bringToBack;
  33220. bool bringToFront;
  33221. /* readonly */
  33222. String category;
  33223. /* readonly */
  33224. IntVector2 childOffset;
  33225. /* readonly */
  33226. Array<UIElement> children;
  33227. IntRect clipBorder;
  33228. bool clipChildren;
  33229. /* writeonly */
  33230. Color color;
  33231. /* readonly */
  33232. bool colorGradient;
  33233. Array<Color> colors;
  33234. /* readonly */
  33235. IntRect combinedScreenRect;
  33236. XMLFile defaultStyle;
  33237. /* readonly */
  33238. float derivedOpacity;
  33239. /* readonly */
  33240. uint dragButtonCombo;
  33241. /* readonly */
  33242. uint dragButtonCount;
  33243. uint dragDropMode;
  33244. bool editable;
  33245. bool elementEventSender;
  33246. bool enableAnchor;
  33247. bool enabled;
  33248. /* readonly */
  33249. bool enabledSelf;
  33250. /* readonly */
  33251. bool fixedHeight;
  33252. /* readonly */
  33253. bool fixedSize;
  33254. /* readonly */
  33255. bool fixedWidth;
  33256. bool focus;
  33257. FocusMode focusMode;
  33258. Array<Variant> globalVar;
  33259. /* readonly */
  33260. VariantMap globalVars;
  33261. int height;
  33262. HorizontalAlignment horizontalAlignment;
  33263. /* readonly */
  33264. bool hovering;
  33265. int indent;
  33266. int indentSpacing;
  33267. /* readonly */
  33268. int indentWidth;
  33269. bool internal;
  33270. IntRect layoutBorder;
  33271. Vector2 layoutFlexScale;
  33272. LayoutMode layoutMode;
  33273. int layoutSpacing;
  33274. Vector2 maxAnchor;
  33275. int maxHeight;
  33276. IntVector2 maxOffset;
  33277. IntVector2 maxSize;
  33278. int maxWidth;
  33279. Vector2 minAnchor;
  33280. int minHeight;
  33281. IntVector2 minOffset;
  33282. IntVector2 minSize;
  33283. int minWidth;
  33284. String name;
  33285. /* readonly */
  33286. uint numAllChildren;
  33287. /* readonly */
  33288. uint numAttributes;
  33289. /* readonly */
  33290. uint numChildren;
  33291. ObjectAnimation objectAnimation;
  33292. float opacity;
  33293. UIElement parent;
  33294. Vector2 pivot;
  33295. IntVector2 position;
  33296. int priority;
  33297. /* readonly */
  33298. int refs;
  33299. /* readonly */
  33300. UIElement root;
  33301. /* readonly */
  33302. IntVector2 screenPosition;
  33303. bool selected;
  33304. IntVector2 size;
  33305. bool sortChildren;
  33306. String style;
  33307. /* readonly */
  33308. Array<String> tags;
  33309. bool temporary;
  33310. TraversalMode traversalMode;
  33311. /* readonly */
  33312. StringHash type;
  33313. /* readonly */
  33314. String typeName;
  33315. bool useDerivedOpacity;
  33316. /* readonly */
  33317. VariantMap vars;
  33318. VerticalAlignment verticalAlignment;
  33319. bool visible;
  33320. /* readonly */
  33321. bool visibleEffective;
  33322. /* readonly */
  33323. int weakRefs;
  33324. int width;
  33325. };
  33326. class UISelectable
  33327. {
  33328. public:
  33329. // Methods:
  33330. void AddChild(UIElement);
  33331. void AddTag(const String&);
  33332. void AddTags(Array<String>);
  33333. void AddTags(const String&, int8 = ';');
  33334. void AdjustScissor(IntRect&);
  33335. void AllocateNetworkState();
  33336. operator Animatable() const;
  33337. void ApplyAttributes();
  33338. void BringToFront();
  33339. const Color& GetColor(Corner) const;
  33340. const Color& GetColorAttr() const;
  33341. const Color& GetDerivedColor() const;
  33342. const Color& GetHoverColor() const;
  33343. const Color& GetSelectionColor() const;
  33344. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  33345. void DisableLayoutUpdate();
  33346. IntVector2 ElementToScreen(const IntVector2&);
  33347. void EnableLayoutUpdate();
  33348. bool FilterAttributes(XMLElement&) const;
  33349. uint FindChild(UIElement) const;
  33350. bool GetAnimationEnabled() const;
  33351. Variant GetAttribute(const String&) const;
  33352. Variant GetAttribute(uint) const;
  33353. ValueAnimation GetAttributeAnimation(const String&) const;
  33354. float GetAttributeAnimationSpeed(const String&) const;
  33355. float GetAttributeAnimationTime(const String&) const;
  33356. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  33357. Variant GetAttributeDefault(const String&) const;
  33358. Variant GetAttributeDefault(uint) const;
  33359. bool GetBlockEvents() const;
  33360. bool GetBringToBack() const;
  33361. bool GetBringToFront() const;
  33362. UIElement GetChild(const String&, bool = false) const;
  33363. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  33364. UIElement GetChild(uint) const;
  33365. Array<UIElement> GetChildren() const;
  33366. Array<UIElement> GetChildren(bool) const;
  33367. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  33368. bool GetClipChildren() const;
  33369. IntRect GetCombinedScreenRect();
  33370. XMLFile GetDefaultStyle(bool = true) const;
  33371. float GetDerivedOpacity() const;
  33372. uint GetDragButtonCombo() const;
  33373. uint GetDragButtonCount() const;
  33374. uint GetDragDropMode() const;
  33375. IntVector2 GetEffectiveMinSize() const;
  33376. UIElement GetElementEventSender() const;
  33377. bool GetEnableAnchor() const;
  33378. VariantMap& GetEventDataMap() const;
  33379. Object GetEventSender() const;
  33380. FocusMode GetFocusMode() const;
  33381. int GetHeight() const;
  33382. HorizontalAlignment GetHorizontalAlignment() const;
  33383. int GetIndent() const;
  33384. int GetIndentSpacing() const;
  33385. int GetIndentWidth() const;
  33386. bool GetInterceptNetworkUpdate(const String&) const;
  33387. int GetLayoutElementMaxSize() const;
  33388. LayoutMode GetLayoutMode() const;
  33389. int GetLayoutSpacing() const;
  33390. int GetMaxHeight() const;
  33391. int GetMaxWidth() const;
  33392. int GetMinHeight() const;
  33393. int GetMinWidth() const;
  33394. uint GetNumAttributes() const;
  33395. uint GetNumChildren(bool = false) const;
  33396. uint GetNumNetworkAttributes() const;
  33397. ObjectAnimation GetObjectAnimation() const;
  33398. ResourceRef GetObjectAnimationAttr() const;
  33399. float GetOpacity() const;
  33400. UIElement GetParent() const;
  33401. int GetPriority() const;
  33402. UIElement GetRoot() const;
  33403. bool GetSortChildren() const;
  33404. Object GetSubsystem(StringHash) const;
  33405. Array<String> GetTags() const;
  33406. TraversalMode GetTraversalMode() const;
  33407. StringHash GetType() const;
  33408. bool GetUseDerivedOpacity() const;
  33409. VerticalAlignment GetVerticalAlignment() const;
  33410. int GetWidth() const;
  33411. bool HasColorGradient() const;
  33412. bool HasEventHandlers() const;
  33413. bool HasFocus() const;
  33414. bool HasSubscribedToEvent(Object, StringHash) const;
  33415. bool HasSubscribedToEvent(StringHash) const;
  33416. bool HasTag(const String&) const;
  33417. void InsertChild(uint, UIElement);
  33418. const IntRect& GetClipBorder() const;
  33419. const IntRect& GetLayoutBorder() const;
  33420. const IntVector2& GetChildOffset() const;
  33421. const IntVector2& GetMaxOffset() const;
  33422. const IntVector2& GetMaxSize() const;
  33423. const IntVector2& GetMinOffset() const;
  33424. const IntVector2& GetMinSize() const;
  33425. const IntVector2& GetPosition() const;
  33426. const IntVector2& GetScreenPosition() const;
  33427. const IntVector2& GetSize() const;
  33428. bool IsChildOf(UIElement) const;
  33429. bool IsEditable() const;
  33430. bool IsElementEventSender() const;
  33431. bool IsEnabled() const;
  33432. bool IsEnabledSelf() const;
  33433. bool IsFixedHeight() const;
  33434. bool IsFixedSize() const;
  33435. bool IsFixedWidth() const;
  33436. bool IsHovering() const;
  33437. bool IsInside(IntVector2, bool);
  33438. bool IsInsideCombined(IntVector2, bool);
  33439. bool IsInstanceOf(StringHash) const;
  33440. bool IsInternal() const;
  33441. bool IsSelected() const;
  33442. bool IsTemporary() const;
  33443. bool IsVisible() const;
  33444. bool IsVisibleEffective() const;
  33445. bool IsWheelHandler() const;
  33446. bool IsWithinScissor(const IntRect&);
  33447. bool Load(Deserializer&);
  33448. UIElement LoadChildXML(XMLFile, XMLFile);
  33449. UIElement LoadChildXML(const XMLElement&, XMLFile);
  33450. bool LoadJSON(const JSONValue&);
  33451. bool LoadXML(Deserializer&);
  33452. bool LoadXML(File);
  33453. bool LoadXML(VectorBuffer&);
  33454. bool LoadXML(XMLFile, XMLFile);
  33455. bool LoadXML(const XMLElement&);
  33456. bool LoadXML(const XMLElement&, XMLFile);
  33457. void MarkNetworkUpdate();
  33458. operator Object() const;
  33459. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33460. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  33461. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33462. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33463. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33464. bool OnDragDropFinish(UIElement);
  33465. bool OnDragDropTest(UIElement);
  33466. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33467. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33468. void OnEvent(Object, StringHash, VariantMap&);
  33469. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33470. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33471. void OnIndentSet();
  33472. void OnKey(uint, uint, uint);
  33473. void OnPositionSet(const IntVector2&);
  33474. void OnResize(const IntVector2&, const IntVector2&);
  33475. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33476. void OnSetEditable();
  33477. void OnTextInput(const String&);
  33478. void OnWheel(int, uint, uint);
  33479. bool ReadDeltaUpdate(Deserializer&);
  33480. bool ReadLatestDataUpdate(Deserializer&);
  33481. operator RefCounted() const;
  33482. int Refs() const;
  33483. void Remove();
  33484. void RemoveAllChildren();
  33485. void RemoveAllTags();
  33486. void RemoveAttributeAnimation(const String&);
  33487. void RemoveChild(UIElement, uint = 0);
  33488. void RemoveChild(uint);
  33489. void RemoveChildAtIndex(uint);
  33490. void RemoveInstanceDefault();
  33491. void RemoveObjectAnimation();
  33492. bool RemoveTag(const String&);
  33493. void ResetDeepEnabled();
  33494. void ResetToDefault();
  33495. bool Save(Serializer&) const;
  33496. bool SaveDefaultAttributes() const;
  33497. bool SaveJSON(JSONValue&) const;
  33498. bool SaveXML(File, const String& indentation = "\t");
  33499. bool SaveXML(Serializer&, const String& = "\t") const;
  33500. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  33501. bool SaveXML(XMLElement&) const;
  33502. IntVector2 ScreenToElement(const IntVector2&);
  33503. void SendEvent(StringHash);
  33504. void SendEvent(StringHash, VariantMap&);
  33505. operator Serializable() const;
  33506. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  33507. void SetAnimationEnabled(bool);
  33508. void SetAnimationTime(float);
  33509. bool SetAttribute(const String&, const Variant&);
  33510. bool SetAttribute(uint, const Variant&);
  33511. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33512. void SetAttributeAnimationSpeed(const String&, float);
  33513. void SetAttributeAnimationTime(const String&, float);
  33514. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33515. void SetBlockEvents(bool);
  33516. void SetBringToBack(bool);
  33517. void SetBringToFront(bool);
  33518. void SetChildOffset(const IntVector2&);
  33519. void SetClipBorder(const IntRect&);
  33520. void SetClipChildren(bool);
  33521. void SetColor(Corner, const Color&);
  33522. void SetColor(const Color&);
  33523. void SetDeepEnabled(bool);
  33524. void SetDefaultStyle(XMLFile);
  33525. void SetDragDropMode(uint);
  33526. void SetEditable(bool);
  33527. void SetElementEventSender(bool);
  33528. void SetEnableAnchor(bool);
  33529. void SetEnabled(bool);
  33530. void SetEnabledRecursive(bool);
  33531. void SetFixedHeight(int);
  33532. void SetFixedSize(const IntVector2&);
  33533. void SetFixedSize(int, int);
  33534. void SetFixedWidth(int);
  33535. void SetFocus(bool);
  33536. void SetFocusMode(FocusMode);
  33537. void SetGlobalVar(StringHash, const Variant&);
  33538. void SetHeight(int);
  33539. void SetHorizontalAlignment(HorizontalAlignment);
  33540. void SetHoverColor(const Color&);
  33541. void SetHovering(bool);
  33542. void SetIndent(int);
  33543. void SetIndentSpacing(int);
  33544. void SetInstanceDefault(bool);
  33545. void SetInterceptNetworkUpdate(const String&, bool);
  33546. void SetInternal(bool);
  33547. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  33548. void SetLayoutBorder(const IntRect&);
  33549. void SetLayoutFlexScale(const Vector2&);
  33550. void SetLayoutMode(LayoutMode);
  33551. void SetLayoutSpacing(int);
  33552. void SetMaxAnchor(const Vector2&);
  33553. void SetMaxAnchor(float, float);
  33554. void SetMaxHeight(int);
  33555. void SetMaxOffset(const IntVector2&);
  33556. void SetMaxSize(const IntVector2&);
  33557. void SetMaxSize(int, int);
  33558. void SetMaxWidth(int);
  33559. void SetMinAnchor(const Vector2&);
  33560. void SetMinAnchor(float, float);
  33561. void SetMinHeight(int);
  33562. void SetMinOffset(const IntVector2&);
  33563. void SetMinSize(const IntVector2&);
  33564. void SetMinSize(int, int);
  33565. void SetMinWidth(int);
  33566. void SetName(const String&);
  33567. void SetObjectAnimation(ObjectAnimation);
  33568. void SetObjectAnimationAttr(const ResourceRef&);
  33569. void SetOpacity(float);
  33570. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  33571. void SetPivot(const Vector2&);
  33572. void SetPivot(float, float);
  33573. void SetPosition(const IntVector2&);
  33574. void SetPosition(int, int);
  33575. void SetPriority(int);
  33576. void SetRenderTexture(Texture2D);
  33577. void SetSelected(bool);
  33578. void SetSelectionColor(const Color&);
  33579. void SetSize(const IntVector2&);
  33580. void SetSize(int, int);
  33581. void SetSortChildren(bool);
  33582. bool SetStyle(const String&, XMLFile = null);
  33583. bool SetStyle(const XMLElement&);
  33584. bool SetStyleAuto(XMLFile = null);
  33585. void SetTags(Array<String>);
  33586. void SetTemporary(bool);
  33587. void SetTraversalMode(TraversalMode);
  33588. void SetUseDerivedOpacity(bool);
  33589. void SetVar(StringHash, const Variant&);
  33590. void SetVerticalAlignment(VerticalAlignment);
  33591. void SetVisible(bool);
  33592. void SetWidth(int);
  33593. void SortChildren();
  33594. const String& GetAppliedStyle() const;
  33595. const String& GetCategory() const;
  33596. const String& GetName() const;
  33597. const String& GetTypeName() const;
  33598. operator Text() const;
  33599. operator UIElement() const;
  33600. void UnsubscribeFromAllEvents();
  33601. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33602. void UnsubscribeFromEvent(Object, StringHash);
  33603. void UnsubscribeFromEvent(StringHash);
  33604. void UnsubscribeFromEvents(Object);
  33605. void Update(float);
  33606. void UpdateLayout();
  33607. const Variant& GetGlobalVar(StringHash) const;
  33608. const Variant& GetVar(const StringHash&) const;
  33609. const VariantMap& GetGlobalVars() const;
  33610. const VariantMap& GetVars() const;
  33611. const Vector2& GetLayoutFlexScale() const;
  33612. const Vector2& GetMaxAnchor() const;
  33613. const Vector2& GetMinAnchor() const;
  33614. const Vector2& GetPivot() const;
  33615. int WeakRefs() const;
  33616. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33617. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33618. void WriteLatestDataUpdate(Serializer&, uint8);
  33619. operator const Animatable() const;
  33620. operator const Object() const;
  33621. operator const RefCounted() const;
  33622. operator const Serializable() const;
  33623. operator const Text() const;
  33624. operator const UIElement() const;
  33625. // Properties:
  33626. bool animationEnabled;
  33627. /* readonly */
  33628. Array<Variant> attributeDefaults;
  33629. /* readonly */
  33630. Array<AttributeInfo> attributeInfos;
  33631. Array<Variant> attributes;
  33632. bool bringToBack;
  33633. bool bringToFront;
  33634. /* readonly */
  33635. String category;
  33636. /* readonly */
  33637. IntVector2 childOffset;
  33638. /* readonly */
  33639. Array<UIElement> children;
  33640. IntRect clipBorder;
  33641. bool clipChildren;
  33642. /* writeonly */
  33643. Color color;
  33644. /* readonly */
  33645. bool colorGradient;
  33646. Array<Color> colors;
  33647. /* readonly */
  33648. IntRect combinedScreenRect;
  33649. XMLFile defaultStyle;
  33650. /* readonly */
  33651. float derivedOpacity;
  33652. /* readonly */
  33653. uint dragButtonCombo;
  33654. /* readonly */
  33655. uint dragButtonCount;
  33656. uint dragDropMode;
  33657. bool editable;
  33658. bool elementEventSender;
  33659. bool enableAnchor;
  33660. bool enabled;
  33661. /* readonly */
  33662. bool enabledSelf;
  33663. /* readonly */
  33664. bool fixedHeight;
  33665. /* readonly */
  33666. bool fixedSize;
  33667. /* readonly */
  33668. bool fixedWidth;
  33669. bool focus;
  33670. FocusMode focusMode;
  33671. Array<Variant> globalVar;
  33672. /* readonly */
  33673. VariantMap globalVars;
  33674. int height;
  33675. HorizontalAlignment horizontalAlignment;
  33676. Color hoverColor;
  33677. /* readonly */
  33678. bool hovering;
  33679. int indent;
  33680. int indentSpacing;
  33681. /* readonly */
  33682. int indentWidth;
  33683. bool internal;
  33684. IntRect layoutBorder;
  33685. Vector2 layoutFlexScale;
  33686. LayoutMode layoutMode;
  33687. int layoutSpacing;
  33688. Vector2 maxAnchor;
  33689. int maxHeight;
  33690. IntVector2 maxOffset;
  33691. IntVector2 maxSize;
  33692. int maxWidth;
  33693. Vector2 minAnchor;
  33694. int minHeight;
  33695. IntVector2 minOffset;
  33696. IntVector2 minSize;
  33697. int minWidth;
  33698. String name;
  33699. /* readonly */
  33700. uint numAllChildren;
  33701. /* readonly */
  33702. uint numAttributes;
  33703. /* readonly */
  33704. uint numChildren;
  33705. ObjectAnimation objectAnimation;
  33706. float opacity;
  33707. UIElement parent;
  33708. Vector2 pivot;
  33709. IntVector2 position;
  33710. int priority;
  33711. /* readonly */
  33712. int refs;
  33713. /* readonly */
  33714. UIElement root;
  33715. /* readonly */
  33716. IntVector2 screenPosition;
  33717. bool selected;
  33718. Color selectionColor;
  33719. IntVector2 size;
  33720. bool sortChildren;
  33721. String style;
  33722. /* readonly */
  33723. Array<String> tags;
  33724. bool temporary;
  33725. TraversalMode traversalMode;
  33726. /* readonly */
  33727. StringHash type;
  33728. /* readonly */
  33729. String typeName;
  33730. bool useDerivedOpacity;
  33731. /* readonly */
  33732. VariantMap vars;
  33733. VerticalAlignment verticalAlignment;
  33734. bool visible;
  33735. /* readonly */
  33736. bool visibleEffective;
  33737. /* readonly */
  33738. int weakRefs;
  33739. int width;
  33740. };
  33741. class UnknownComponent
  33742. {
  33743. public:
  33744. // Methods:
  33745. void AllocateNetworkState();
  33746. operator Animatable() const;
  33747. void ApplyAttributes();
  33748. void CleanupConnection(Connection);
  33749. operator Component() const;
  33750. void DrawDebugGeometry(DebugRenderer, bool);
  33751. bool GetAnimationEnabled() const;
  33752. Variant GetAttribute(const String&) const;
  33753. Variant GetAttribute(uint) const;
  33754. ValueAnimation GetAttributeAnimation(const String&) const;
  33755. float GetAttributeAnimationSpeed(const String&) const;
  33756. float GetAttributeAnimationTime(const String&) const;
  33757. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  33758. Variant GetAttributeDefault(const String&) const;
  33759. Variant GetAttributeDefault(uint) const;
  33760. bool GetBlockEvents() const;
  33761. Component GetComponent(StringHash) const;
  33762. VariantMap& GetEventDataMap() const;
  33763. Object GetEventSender() const;
  33764. uint GetID() const;
  33765. bool GetInterceptNetworkUpdate(const String&) const;
  33766. Node GetNode() const;
  33767. uint GetNumAttributes() const;
  33768. uint GetNumNetworkAttributes() const;
  33769. ObjectAnimation GetObjectAnimation() const;
  33770. ResourceRef GetObjectAnimationAttr() const;
  33771. Scene GetScene() const;
  33772. Object GetSubsystem(StringHash) const;
  33773. StringHash GetType() const;
  33774. bool GetUseXML() const;
  33775. Array<String> GetXMLAttributes() const;
  33776. bool HasEventHandlers() const;
  33777. bool HasSubscribedToEvent(Object, StringHash) const;
  33778. bool HasSubscribedToEvent(StringHash) const;
  33779. bool IsEnabled() const;
  33780. bool IsEnabledEffective() const;
  33781. bool IsInstanceOf(StringHash) const;
  33782. bool IsReplicated() const;
  33783. bool IsTemporary() const;
  33784. bool Load(Deserializer&);
  33785. bool LoadJSON(const JSONValue&);
  33786. bool LoadXML(const XMLElement&);
  33787. void MarkNetworkUpdate();
  33788. operator Object() const;
  33789. void OnEvent(Object, StringHash, VariantMap&);
  33790. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33791. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33792. void OnSetEnabled();
  33793. void PrepareNetworkUpdate();
  33794. bool ReadDeltaUpdate(Deserializer&);
  33795. bool ReadLatestDataUpdate(Deserializer&);
  33796. operator RefCounted() const;
  33797. int Refs() const;
  33798. void Remove();
  33799. void RemoveAttributeAnimation(const String&);
  33800. void RemoveInstanceDefault();
  33801. void RemoveObjectAnimation();
  33802. void ResetToDefault();
  33803. bool Save(Serializer&) const;
  33804. bool SaveDefaultAttributes() const;
  33805. bool SaveJSON(JSONValue&) const;
  33806. bool SaveXML(XMLElement&) const;
  33807. void SendEvent(StringHash);
  33808. void SendEvent(StringHash, VariantMap&);
  33809. operator Serializable() const;
  33810. void SetAnimationEnabled(bool);
  33811. void SetAnimationTime(float);
  33812. bool SetAttribute(const String&, const Variant&);
  33813. bool SetAttribute(uint, const Variant&);
  33814. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33815. void SetAttributeAnimationSpeed(const String&, float);
  33816. void SetAttributeAnimationTime(const String&, float);
  33817. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33818. void SetBlockEvents(bool);
  33819. void SetEnabled(bool);
  33820. void SetGlobalVar(StringHash, const Variant&);
  33821. void SetInstanceDefault(bool);
  33822. void SetInterceptNetworkUpdate(const String&, bool);
  33823. void SetObjectAnimation(ObjectAnimation);
  33824. void SetObjectAnimationAttr(const ResourceRef&);
  33825. void SetTemporary(bool);
  33826. void SetType(StringHash);
  33827. void SetTypeName(const String&);
  33828. const String& GetCategory() const;
  33829. const String& GetTypeName() const;
  33830. void UnsubscribeFromAllEvents();
  33831. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33832. void UnsubscribeFromEvent(Object, StringHash);
  33833. void UnsubscribeFromEvent(StringHash);
  33834. void UnsubscribeFromEvents(Object);
  33835. const Variant& GetGlobalVar(StringHash) const;
  33836. const VariantMap& GetGlobalVars() const;
  33837. int WeakRefs() const;
  33838. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33839. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33840. void WriteLatestDataUpdate(Serializer&, uint8);
  33841. operator const Animatable() const;
  33842. operator const Component() const;
  33843. operator const Object() const;
  33844. operator const RefCounted() const;
  33845. operator const Serializable() const;
  33846. // Properties:
  33847. bool animationEnabled;
  33848. /* readonly */
  33849. Array<Variant> attributeDefaults;
  33850. /* readonly */
  33851. Array<AttributeInfo> attributeInfos;
  33852. Array<Variant> attributes;
  33853. /* readonly */
  33854. String category;
  33855. bool enabled;
  33856. /* readonly */
  33857. bool enabledEffective;
  33858. Array<Variant> globalVar;
  33859. /* readonly */
  33860. VariantMap globalVars;
  33861. /* readonly */
  33862. uint id;
  33863. /* readonly */
  33864. Node node;
  33865. /* readonly */
  33866. uint numAttributes;
  33867. ObjectAnimation objectAnimation;
  33868. /* readonly */
  33869. int refs;
  33870. /* readonly */
  33871. bool replicated;
  33872. bool temporary;
  33873. /* readonly */
  33874. StringHash type;
  33875. /* readonly */
  33876. String typeName;
  33877. /* readonly */
  33878. int weakRefs;
  33879. };
  33880. class VAnimEventFrame
  33881. {
  33882. public:
  33883. ~VAnimEventFrame();
  33884. VAnimEventFrame();
  33885. // Methods:
  33886. VAnimEventFrame& operator=(const VAnimEventFrame&);
  33887. // Properties:
  33888. VariantMap eventData;
  33889. StringHash eventType;
  33890. float time;
  33891. };
  33892. class VAnimKeyFrame
  33893. {
  33894. public:
  33895. ~VAnimKeyFrame();
  33896. VAnimKeyFrame();
  33897. // Methods:
  33898. VAnimKeyFrame& operator=(const VAnimKeyFrame&);
  33899. // Properties:
  33900. float time;
  33901. Variant value;
  33902. };
  33903. class ValueAnimation
  33904. {
  33905. public:
  33906. ValueAnimation();
  33907. // Methods:
  33908. bool BeginLoad(Deserializer&);
  33909. bool EndLoad();
  33910. Variant GetAnimationValue(float) const;
  33911. AsyncLoadState GetAsyncLoadState() const;
  33912. float GetBeginTime() const;
  33913. bool GetBlockEvents() const;
  33914. float GetEndTime() const;
  33915. VariantMap& GetEventDataMap() const;
  33916. Object GetEventSender() const;
  33917. InterpMethod GetInterpolationMethod() const;
  33918. uint GetMemoryUse() const;
  33919. StringHash GetNameHash() const;
  33920. float GetSplineTension() const;
  33921. Object GetSubsystem(StringHash) const;
  33922. StringHash GetType() const;
  33923. uint GetUseTimer();
  33924. VariantType GetValueType() const;
  33925. bool HasEventFrames() const;
  33926. bool HasEventHandlers() const;
  33927. bool HasSubscribedToEvent(Object, StringHash) const;
  33928. bool HasSubscribedToEvent(StringHash) const;
  33929. bool IsInstanceOf(StringHash) const;
  33930. bool IsValid() const;
  33931. bool Load(Deserializer&);
  33932. bool Load(File);
  33933. bool Load(VectorBuffer&);
  33934. bool Load(const String&);
  33935. bool LoadFile(const String&);
  33936. bool LoadJSON(const JSONValue&);
  33937. bool LoadXML(const XMLElement&);
  33938. operator Object() const;
  33939. void OnEvent(Object, StringHash, VariantMap&);
  33940. operator RefCounted() const;
  33941. int Refs() const;
  33942. void ResetUseTimer();
  33943. operator Resource() const;
  33944. bool Save(File) const;
  33945. bool Save(Serializer&) const;
  33946. bool Save(VectorBuffer&) const;
  33947. bool Save(const String&) const;
  33948. bool SaveFile(const String&) const;
  33949. bool SaveJSON(JSONValue&) const;
  33950. bool SaveXML(XMLElement&) const;
  33951. void SendEvent(StringHash);
  33952. void SendEvent(StringHash, VariantMap&);
  33953. void SetAsyncLoadState(AsyncLoadState);
  33954. void SetBlockEvents(bool);
  33955. void SetEventFrame(float, const StringHash&, const VariantMap& = VariantMap ( ));
  33956. void SetGlobalVar(StringHash, const Variant&);
  33957. void SetInterpolationMethod(InterpMethod);
  33958. bool SetKeyFrame(float, const Variant&);
  33959. void SetMemoryUse(uint);
  33960. void SetName(const String&);
  33961. void SetSplineTension(float);
  33962. void SetValueType(VariantType);
  33963. const String& GetCategory() const;
  33964. const String& GetName() const;
  33965. const String& GetTypeName() const;
  33966. void UnsubscribeFromAllEvents();
  33967. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33968. void UnsubscribeFromEvent(Object, StringHash);
  33969. void UnsubscribeFromEvent(StringHash);
  33970. void UnsubscribeFromEvents(Object);
  33971. const Variant& GetGlobalVar(StringHash) const;
  33972. const VariantMap& GetGlobalVars() const;
  33973. int WeakRefs() const;
  33974. operator const Object() const;
  33975. operator const RefCounted() const;
  33976. operator const Resource() const;
  33977. // Properties:
  33978. /* readonly */
  33979. String category;
  33980. Array<Variant> globalVar;
  33981. /* readonly */
  33982. VariantMap globalVars;
  33983. InterpMethod interpolationMethod;
  33984. /* readonly */
  33985. uint memoryUse;
  33986. String name;
  33987. /* readonly */
  33988. int refs;
  33989. float splineTension;
  33990. /* readonly */
  33991. StringHash type;
  33992. /* readonly */
  33993. String typeName;
  33994. /* readonly */
  33995. uint useTimer;
  33996. VariantType valueType;
  33997. /* readonly */
  33998. int weakRefs;
  33999. };
  34000. class ValueAnimationInfo
  34001. {
  34002. public:
  34003. ValueAnimationInfo(ValueAnimation&, WrapMode, float);
  34004. ValueAnimationInfo(Object&, ValueAnimation&, WrapMode, float);
  34005. ValueAnimationInfo(const ValueAnimationInfo&in);
  34006. // Methods:
  34007. operator AttributeAnimationInfo() const;
  34008. ValueAnimation GetAnimation() const;
  34009. float GetSpeed() const;
  34010. Object GetTarget() const;
  34011. float GetTime() const;
  34012. WrapMode GetWrapMode() const;
  34013. operator RefCounted() const;
  34014. int Refs() const;
  34015. void SetSpeed(float);
  34016. bool SetTime(float);
  34017. void SetWrapMode(WrapMode);
  34018. operator ShaderParameterAnimationInfo() const;
  34019. bool Update(float);
  34020. int WeakRefs() const;
  34021. operator const AttributeAnimationInfo() const;
  34022. operator const RefCounted() const;
  34023. operator const ShaderParameterAnimationInfo() const;
  34024. // Properties:
  34025. /* readonly */
  34026. int refs;
  34027. /* readonly */
  34028. int weakRefs;
  34029. };
  34030. class Variant
  34031. {
  34032. public:
  34033. ~Variant();
  34034. Variant();
  34035. Variant(int);
  34036. Variant(int64);
  34037. Variant(uint);
  34038. Variant(uint64);
  34039. Variant(const StringHash&in);
  34040. Variant(bool);
  34041. Variant(float);
  34042. Variant(double);
  34043. Variant(const Vector2&in);
  34044. Variant(const Vector3&in);
  34045. Variant(const Vector4&in);
  34046. Variant(const Quaternion&in);
  34047. Variant(const Color&in);
  34048. Variant(const String&in);
  34049. Variant(const VectorBuffer&in);
  34050. Variant(const ResourceRef&in);
  34051. Variant(const ResourceRefList&in);
  34052. Variant(const VariantMap&in);
  34053. Variant(String[]@);
  34054. Variant(const Rect&in);
  34055. Variant(const IntRect&in);
  34056. Variant(const IntVector2&in);
  34057. Variant(const IntVector3&in);
  34058. Variant(RefCounted@);
  34059. Variant(const Matrix3&in);
  34060. Variant(const Matrix3x4&in);
  34061. Variant(const Matrix4&in);
  34062. Variant(const String&in, const String&in);
  34063. Variant(VariantType, const String&in);
  34064. Variant(const Variant&in);
  34065. Variant(ScriptObject@);
  34066. Variant(const Variant[]@);
  34067. // Methods:
  34068. Variant& operator=(RefCounted);
  34069. Variant& operator=(ScriptObject);
  34070. Variant& operator=(Array<String>);
  34071. Variant& operator=(bool);
  34072. Variant& operator=(const Color&);
  34073. Variant& operator=(const IntRect&);
  34074. Variant& operator=(const IntVector2&);
  34075. Variant& operator=(const IntVector3&);
  34076. Variant& operator=(const Matrix3&);
  34077. Variant& operator=(const Matrix3x4&);
  34078. Variant& operator=(const Matrix4&);
  34079. Variant& operator=(const Quaternion&);
  34080. Variant& operator=(const Rect&);
  34081. Variant& operator=(const ResourceRef&);
  34082. Variant& operator=(const ResourceRefList&);
  34083. Variant& operator=(const String&);
  34084. Variant& operator=(const StringHash&);
  34085. Variant& operator=(const Variant&);
  34086. Variant& operator=(const VariantMap&);
  34087. Variant& operator=(const Array<Variant>);
  34088. Variant& operator=(const Vector2&);
  34089. Variant& operator=(const Vector3&);
  34090. Variant& operator=(const Vector4&);
  34091. Variant& operator=(const VectorBuffer&);
  34092. Variant& operator=(double);
  34093. Variant& operator=(float);
  34094. Variant& operator=(int);
  34095. Variant& operator=(int64);
  34096. Variant& operator=(uint);
  34097. Variant& operator=(uint64);
  34098. bool operator==(RefCounted) const;
  34099. bool operator==(ScriptObject) const;
  34100. bool operator==(Array<String>) const;
  34101. bool operator==(bool) const;
  34102. bool operator==(const Color&) const;
  34103. bool operator==(const IntRect&) const;
  34104. bool operator==(const IntVector2&) const;
  34105. bool operator==(const IntVector3&) const;
  34106. bool operator==(const Matrix3&) const;
  34107. bool operator==(const Matrix3x4&) const;
  34108. bool operator==(const Matrix4&) const;
  34109. bool operator==(const Quaternion&) const;
  34110. bool operator==(const Rect&) const;
  34111. bool operator==(const ResourceRef&) const;
  34112. bool operator==(const ResourceRefList&) const;
  34113. bool operator==(const String&) const;
  34114. bool operator==(const StringHash&) const;
  34115. bool operator==(const Variant&) const;
  34116. bool operator==(const VariantMap&) const;
  34117. bool operator==(const Array<Variant>);
  34118. bool operator==(const Vector2&) const;
  34119. bool operator==(const Vector3&) const;
  34120. bool operator==(const Vector4&) const;
  34121. bool operator==(const VectorBuffer&) const;
  34122. bool operator==(double) const;
  34123. bool operator==(float) const;
  34124. bool operator==(int) const;
  34125. bool operator==(int64) const;
  34126. bool operator==(uint) const;
  34127. bool operator==(uint64) const;
  34128. void Clear();
  34129. const Color& GetColor() const;
  34130. void FromString(VariantType, const String&);
  34131. void FromString(const String&, const String&);
  34132. bool GetBool() const;
  34133. VectorBuffer GetBuffer() const;
  34134. double GetDouble() const;
  34135. float GetFloat() const;
  34136. int GetInt() const;
  34137. int64 GetInt64() const;
  34138. RefCounted GetPtr() const;
  34139. ScriptObject GetScriptObject() const;
  34140. StringHash GetStringHash() const;
  34141. Array<String> GetStringVector() const;
  34142. VariantType GetType() const;
  34143. String GetTypeName() const;
  34144. uint GetUInt() const;
  34145. uint64 GetUInt64() const;
  34146. Array<Variant> GetVariantVector() const;
  34147. VectorBuffer GetVectorBuffer() const;
  34148. const IntRect& GetIntRect() const;
  34149. const IntVector2& GetIntVector2() const;
  34150. const IntVector3& GetIntVector3() const;
  34151. bool IsCustom() const;
  34152. bool IsEmpty() const;
  34153. bool IsZero() const;
  34154. const Matrix3& GetMatrix3() const;
  34155. const Matrix3x4& GetMatrix3x4() const;
  34156. const Matrix4& GetMatrix4() const;
  34157. const Quaternion& GetQuaternion() const;
  34158. const Rect& GetRect() const;
  34159. const ResourceRef& GetResourceRef() const;
  34160. const ResourceRefList& GetResourceRefList() const;
  34161. const String& GetString() const;
  34162. String ToString() const;
  34163. const VariantMap& GetVariantMap() const;
  34164. const Vector2& GetVector2() const;
  34165. const Vector3& GetVector3() const;
  34166. const Vector4& GetVector4() const;
  34167. // Properties:
  34168. /* readonly */
  34169. bool empty;
  34170. /* readonly */
  34171. VariantType type;
  34172. /* readonly */
  34173. String typeName;
  34174. /* readonly */
  34175. bool zero;
  34176. // Constants:
  34177. static const Variant EMPTY;
  34178. static const ResourceRef emptyResourceRef;
  34179. static const ResourceRefList emptyResourceRefList;
  34180. static const VariantMap emptyVariantMap;
  34181. };
  34182. class VariantMap
  34183. {
  34184. public:
  34185. ~VariantMap();
  34186. VariantMap();
  34187. VariantMap(const VariantMap&in);
  34188. // Methods:
  34189. VariantMap& operator=(const VariantMap&);
  34190. Variant& operator[](StringHash);
  34191. void Clear();
  34192. bool Contains(StringHash) const;
  34193. bool Erase(StringHash);
  34194. // Properties:
  34195. /* readonly */
  34196. Array<StringHash> keys;
  34197. /* readonly */
  34198. uint length;
  34199. /* readonly */
  34200. Array<Variant> values;
  34201. };
  34202. class Vector2
  34203. {
  34204. public:
  34205. Vector2();
  34206. Vector2(const Vector2&in);
  34207. Vector2(const IntVector2&in);
  34208. Vector2(float, float);
  34209. Vector2(float[]&inout);
  34210. // Methods:
  34211. Vector2 operator+(const Vector2&) const;
  34212. Vector2& operator+=(const Vector2&);
  34213. Vector2& operator=(const Vector2&);
  34214. bool operator==(const Vector2&) const;
  34215. Vector2 Abs() const;
  34216. float AbsDotProduct(const Vector2&) const;
  34217. float Angle(const Vector2&) const;
  34218. float DotProduct(const Vector2&) const;
  34219. bool Equals(const Vector2&) const;
  34220. bool IsInf() const;
  34221. bool IsNaN() const;
  34222. float Length() const;
  34223. float LengthSquared() const;
  34224. Vector2 Lerp(const Vector2&, float) const;
  34225. void Normalize();
  34226. Vector2 Normalized() const;
  34227. Vector2 NormalizedOrDefault(const Vector2& = Vector2 :: ZERO, float = M_LARGE_EPSILON) const;
  34228. float ProjectOntoAxis(const Vector2&) const;
  34229. Vector2 ReNormalized(float, float, const Vector2& = Vector2 :: ZERO, float = M_LARGE_EPSILON) const;
  34230. String ToString() const;
  34231. // Properties:
  34232. /* readonly */
  34233. Array<float> data;
  34234. /* readonly */
  34235. float length;
  34236. /* readonly */
  34237. float lengthSquared;
  34238. float x;
  34239. float y;
  34240. // Constants:
  34241. static const Vector2 DOWN;
  34242. static const Vector2 LEFT;
  34243. static const Vector2 ONE;
  34244. static const Vector2 RIGHT;
  34245. static const Vector2 UP;
  34246. static const Vector2 ZERO;
  34247. };
  34248. class Vector3
  34249. {
  34250. public:
  34251. Vector3();
  34252. Vector3(const Vector3&in);
  34253. Vector3(const Vector2&in, float);
  34254. Vector3(const Vector2&in);
  34255. Vector3(const IntVector3&in);
  34256. Vector3(float, float, float);
  34257. Vector3(float, float);
  34258. Vector3(float[]&inout);
  34259. // Methods:
  34260. Vector3 operator+(const Vector3&) const;
  34261. Vector3& operator+=(const Vector3&);
  34262. Vector3& operator=(const Vector3&);
  34263. bool operator==(const Vector3&) const;
  34264. Vector3 Abs() const;
  34265. float AbsDotProduct(const Vector3&) const;
  34266. float Angle(const Vector3&) const;
  34267. Vector3 CrossProduct(const Vector3&) const;
  34268. float DistanceToPlane(const Vector3&, const Vector3&) const;
  34269. float DistanceToPoint(const Vector3&) const;
  34270. float DotProduct(const Vector3&) const;
  34271. bool Equals(const Vector3&) const;
  34272. bool IsInf() const;
  34273. bool IsNaN() const;
  34274. float Length() const;
  34275. float LengthSquared() const;
  34276. Vector3 Lerp(const Vector3&, float) const;
  34277. void Normalize();
  34278. Vector3 Normalized() const;
  34279. Vector3 NormalizedOrDefault(const Vector3& = Vector3 :: ZERO, float = M_LARGE_EPSILON) const;
  34280. Vector3 Orthogonalize(const Vector3&) const;
  34281. float ProjectOntoAxis(const Vector3&) const;
  34282. Vector3 ProjectOntoLine(const Vector3&, const Vector3&, bool = false) const;
  34283. Vector3 ProjectOntoPlane(const Vector3&, const Vector3&) const;
  34284. Vector3 ReNormalized(float, float, const Vector3& = Vector3 :: ZERO, float = M_LARGE_EPSILON) const;
  34285. uint ToHash() const;
  34286. String ToString() const;
  34287. // Properties:
  34288. /* readonly */
  34289. Array<float> data;
  34290. /* readonly */
  34291. float length;
  34292. /* readonly */
  34293. float lengthSquared;
  34294. float x;
  34295. float y;
  34296. float z;
  34297. // Constants:
  34298. static const Vector3 BACK;
  34299. static const Vector3 DOWN;
  34300. static const Vector3 FORWARD;
  34301. static const Vector3 LEFT;
  34302. static const Vector3 ONE;
  34303. static const Vector3 RIGHT;
  34304. static const Vector3 UP;
  34305. static const Vector3 ZERO;
  34306. };
  34307. class Vector4
  34308. {
  34309. public:
  34310. Vector4();
  34311. Vector4(const Vector4&in);
  34312. Vector4(const Vector3&in, float);
  34313. Vector4(float, float, float, float);
  34314. Vector4(float[]&inout);
  34315. // Methods:
  34316. Vector4 operator+(const Vector4&) const;
  34317. Vector4& operator+=(const Vector4&);
  34318. Vector4& operator=(const Vector4&);
  34319. bool operator==(const Vector4&) const;
  34320. float& operator[](uint);
  34321. float operator[](uint) const;
  34322. Vector4 Abs() const;
  34323. float AbsDotProduct(const Vector4&) const;
  34324. float DotProduct(const Vector4&) const;
  34325. bool Equals(const Vector4&) const;
  34326. bool IsInf() const;
  34327. bool IsNaN() const;
  34328. Vector4 Lerp(const Vector4&, float) const;
  34329. float ProjectOntoAxis(const Vector3&) const;
  34330. uint ToHash() const;
  34331. String ToString() const;
  34332. // Properties:
  34333. /* readonly */
  34334. Array<float> data;
  34335. float w;
  34336. float x;
  34337. float y;
  34338. float z;
  34339. // Constants:
  34340. static const Vector4 ONE;
  34341. static const Vector4 ZERO;
  34342. };
  34343. class VectorBase
  34344. {
  34345. public:
  34346. ~VectorBase();
  34347. VectorBase();
  34348. // Methods:
  34349. VectorBase& operator=(const VectorBase&);
  34350. void Swap(VectorBase&);
  34351. };
  34352. class VectorBuffer
  34353. {
  34354. public:
  34355. ~VectorBuffer();
  34356. VectorBuffer();
  34357. VectorBuffer(Deserializer&inout, uint);
  34358. // Methods:
  34359. VectorBuffer& operator=(const VectorBuffer&);
  34360. uint8& operator[](uint);
  34361. void Clear();
  34362. uint GetChecksum();
  34363. uint GetPosition() const;
  34364. uint GetSize() const;
  34365. bool IsEof() const;
  34366. Array<uint8> Read(uint);
  34367. bool ReadBool();
  34368. BoundingBox ReadBoundingBox();
  34369. int8 ReadByte();
  34370. Color ReadColor();
  34371. double ReadDouble();
  34372. String ReadFileID();
  34373. float ReadFloat();
  34374. int ReadInt();
  34375. int64 ReadInt64();
  34376. IntRect ReadIntRect();
  34377. IntVector2 ReadIntVector2();
  34378. IntVector3 ReadIntVector3();
  34379. String ReadLine();
  34380. Matrix3 ReadMatrix3();
  34381. Matrix3x4 ReadMatrix3x4();
  34382. Matrix4 ReadMatrix4();
  34383. uint ReadNetID();
  34384. Quaternion ReadPackedQuaternion();
  34385. Vector3 ReadPackedVector3(float);
  34386. Quaternion ReadQuaternion();
  34387. Rect ReadRect();
  34388. ResourceRef ReadResourceRef();
  34389. ResourceRefList ReadResourceRefList();
  34390. int16 ReadShort();
  34391. String ReadString();
  34392. StringHash ReadStringHash();
  34393. Array<String> ReadStringVector();
  34394. uint8 ReadUByte();
  34395. uint ReadUInt();
  34396. uint64 ReadUInt64();
  34397. uint16 ReadUShort();
  34398. uint ReadVLE();
  34399. Variant ReadVariant();
  34400. Variant ReadVariant(VariantType);
  34401. VariantMap ReadVariantMap();
  34402. Vector2 ReadVector2();
  34403. Vector3 ReadVector3();
  34404. Vector4 ReadVector4();
  34405. VectorBuffer ReadVectorBuffer(uint);
  34406. void Resize(uint);
  34407. uint Seek(uint);
  34408. uint SeekRelative(int);
  34409. void SetData(Deserializer&, uint);
  34410. void SetName(const String&);
  34411. const String& GetName() const;
  34412. uint Tell() const;
  34413. uint Write(Array<uint8>);
  34414. bool WriteBool(bool);
  34415. bool WriteBoundingBox(const BoundingBox&);
  34416. bool WriteByte(int8);
  34417. bool WriteColor(const Color&);
  34418. bool WriteDouble(double);
  34419. bool WriteFileID(const String&);
  34420. bool WriteFloat(float);
  34421. bool WriteInt(int);
  34422. bool WriteInt64(int64);
  34423. bool WriteIntRect(const IntRect&);
  34424. bool WriteIntVector2(const IntVector2&);
  34425. bool WriteIntVector3(const IntVector3&);
  34426. bool WriteLine(const String&);
  34427. bool WriteMatrix3(const Matrix3&);
  34428. bool WriteMatrix3x4(const Matrix3x4&);
  34429. bool WriteMatrix4(const Matrix4&);
  34430. bool WriteNetID(uint);
  34431. bool WritePackedQuaternion(const Quaternion&);
  34432. bool WritePackedVector3(const Vector3&, float);
  34433. bool WriteQuaternion(const Quaternion&);
  34434. bool WriteRect(const Rect&);
  34435. bool WriteResourceRef(const ResourceRef&);
  34436. bool WriteResourceRefList(const ResourceRefList&);
  34437. bool WriteShort(int16);
  34438. bool WriteString(const String&);
  34439. bool WriteStringHash(const StringHash&);
  34440. bool WriteStringVector(Array<String>);
  34441. bool WriteUByte(uint8);
  34442. bool WriteUInt(uint);
  34443. bool WriteUInt64(uint64);
  34444. bool WriteUShort(uint16);
  34445. bool WriteVLE(uint);
  34446. bool WriteVariant(const Variant&);
  34447. bool WriteVariantData(const Variant&);
  34448. bool WriteVariantMap(const VariantMap&);
  34449. bool WriteVector2(const Vector2&);
  34450. bool WriteVector3(const Vector3&);
  34451. bool WriteVector4(const Vector4&);
  34452. bool WriteVectorBuffer(const VectorBuffer&);
  34453. const uint8& operator[](uint) const;
  34454. // Properties:
  34455. /* readonly */
  34456. uint checksum;
  34457. /* readonly */
  34458. bool eof;
  34459. String name;
  34460. /* readonly */
  34461. uint position;
  34462. /* readonly */
  34463. uint size;
  34464. };
  34465. class Vertex2D
  34466. {
  34467. public:
  34468. ~Vertex2D();
  34469. Vertex2D();
  34470. // Methods:
  34471. Vertex2D& operator=(const Vertex2D&);
  34472. // Properties:
  34473. uint color;
  34474. Vector3 position;
  34475. Vector2 uv;
  34476. };
  34477. class VertexBuffer
  34478. {
  34479. public:
  34480. VertexBuffer(bool = false);
  34481. // Methods:
  34482. void ClearDataLost();
  34483. bool GetBlockEvents() const;
  34484. uint64 GetBufferHash(uint);
  34485. VectorBuffer GetData() const;
  34486. uint GetElementMask() const;
  34487. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  34488. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  34489. Array<VertexElement> GetElements() const;
  34490. VariantMap& GetEventDataMap() const;
  34491. Object GetEventSender() const;
  34492. uint GetGPUObjectName() const;
  34493. Graphics GetGraphics() const;
  34494. Object GetSubsystem(StringHash) const;
  34495. StringHash GetType() const;
  34496. uint GetVertexCount() const;
  34497. uint GetVertexSize() const;
  34498. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  34499. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  34500. bool HasEventHandlers() const;
  34501. bool HasPendingData() const;
  34502. bool HasSubscribedToEvent(Object, StringHash) const;
  34503. bool HasSubscribedToEvent(StringHash) const;
  34504. bool IsDataLost() const;
  34505. bool IsDynamic() const;
  34506. bool IsInstanceOf(StringHash) const;
  34507. bool IsLocked() const;
  34508. bool IsShadowed() const;
  34509. operator Object() const;
  34510. void OnDeviceLost();
  34511. void OnDeviceReset();
  34512. void OnEvent(Object, StringHash, VariantMap&);
  34513. operator RefCounted() const;
  34514. int Refs() const;
  34515. void Release();
  34516. void SendEvent(StringHash);
  34517. void SendEvent(StringHash, VariantMap&);
  34518. void SetBlockEvents(bool);
  34519. bool SetData(VectorBuffer&);
  34520. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  34521. void SetGlobalVar(StringHash, const Variant&);
  34522. void SetShadowed(bool);
  34523. bool SetSize(uint, Array<VertexElement>, bool = false);
  34524. bool SetSize(uint, uint, bool = false);
  34525. const String& GetCategory() const;
  34526. const String& GetTypeName() const;
  34527. void Unlock();
  34528. void UnsubscribeFromAllEvents();
  34529. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  34530. void UnsubscribeFromEvent(Object, StringHash);
  34531. void UnsubscribeFromEvent(StringHash);
  34532. void UnsubscribeFromEvents(Object);
  34533. const Variant& GetGlobalVar(StringHash) const;
  34534. const VariantMap& GetGlobalVars() const;
  34535. int WeakRefs() const;
  34536. operator const Object() const;
  34537. operator const RefCounted() const;
  34538. // Properties:
  34539. /* readonly */
  34540. String category;
  34541. /* readonly */
  34542. bool dataLost;
  34543. /* readonly */
  34544. bool dynamic;
  34545. /* readonly */
  34546. uint elementMask;
  34547. /* readonly */
  34548. Array<VertexElement> elements;
  34549. Array<Variant> globalVar;
  34550. /* readonly */
  34551. VariantMap globalVars;
  34552. /* readonly */
  34553. int refs;
  34554. bool shadowed;
  34555. /* readonly */
  34556. StringHash type;
  34557. /* readonly */
  34558. String typeName;
  34559. /* readonly */
  34560. uint vertexCount;
  34561. /* readonly */
  34562. uint vertexSize;
  34563. /* readonly */
  34564. int weakRefs;
  34565. };
  34566. class VertexBufferDesc
  34567. {
  34568. public:
  34569. ~VertexBufferDesc();
  34570. VertexBufferDesc();
  34571. // Methods:
  34572. VertexBufferDesc& operator=(const VertexBufferDesc&);
  34573. // Properties:
  34574. uint dataSize;
  34575. uint vertexCount;
  34576. };
  34577. class VertexBufferMorph
  34578. {
  34579. public:
  34580. ~VertexBufferMorph();
  34581. VertexBufferMorph();
  34582. // Methods:
  34583. VertexBufferMorph& operator=(const VertexBufferMorph&);
  34584. // Properties:
  34585. uint dataSize;
  34586. uint elementMask;
  34587. uint vertexCount;
  34588. };
  34589. class VertexElement
  34590. {
  34591. public:
  34592. ~VertexElement();
  34593. VertexElement();
  34594. VertexElement(VertexElementType, VertexElementSemantic, uint8 = 0, bool = false);
  34595. // Methods:
  34596. VertexElement& operator=(const VertexElement&);
  34597. bool operator==(const VertexElement&) const;
  34598. // Properties:
  34599. uint8 index;
  34600. uint offset;
  34601. bool perInstance;
  34602. VertexElementSemantic semantic;
  34603. VertexElementType type;
  34604. };
  34605. class View
  34606. {
  34607. public:
  34608. View();
  34609. // Methods:
  34610. bool Define(RenderSurface, Viewport);
  34611. void DrawFullscreenQuad(bool = false);
  34612. Texture FindNamedTexture(const String&, bool, bool = false);
  34613. const FrameInfo& GetFrameInfo() const;
  34614. bool GetBlockEvents() const;
  34615. Camera GetCamera() const;
  34616. Camera GetCullCamera() const;
  34617. bool GetDrawDebug() const;
  34618. VariantMap& GetEventDataMap() const;
  34619. Object GetEventSender() const;
  34620. Array<Drawable> GetGeometries() const;
  34621. Graphics GetGraphics() const;
  34622. Array<Light> GetLights() const;
  34623. uint GetNumActiveOccluders() const;
  34624. Array<Drawable> GetOccluders() const;
  34625. OcclusionBuffer GetOcclusionBuffer() const;
  34626. Octree GetOctree() const;
  34627. RenderSurface GetRenderTarget() const;
  34628. Renderer GetRenderer() const;
  34629. Scene GetScene() const;
  34630. View GetSourceView() const;
  34631. Object GetSubsystem(StringHash) const;
  34632. StringHash GetType() const;
  34633. bool HasEventHandlers() const;
  34634. bool HasSubscribedToEvent(Object, StringHash) const;
  34635. bool HasSubscribedToEvent(StringHash) const;
  34636. const IntRect& GetViewRect() const;
  34637. const IntVector2& GetViewSize() const;
  34638. bool IsInstanceOf(StringHash) const;
  34639. operator Object() const;
  34640. void OnEvent(Object, StringHash, VariantMap&);
  34641. operator RefCounted() const;
  34642. int Refs() const;
  34643. void Render();
  34644. void SendEvent(StringHash);
  34645. void SendEvent(StringHash, VariantMap&);
  34646. void SetBlockEvents(bool);
  34647. void SetCameraShaderParameters(Camera);
  34648. void SetCommandShaderParameters(const RenderPathCommand&);
  34649. void SetGBufferShaderParameters(const IntVector2&, const IntRect&);
  34650. void SetGlobalShaderParameters();
  34651. void SetGlobalVar(StringHash, const Variant&);
  34652. const String& GetCategory() const;
  34653. const String& GetTypeName() const;
  34654. void UnsubscribeFromAllEvents();
  34655. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  34656. void UnsubscribeFromEvent(Object, StringHash);
  34657. void UnsubscribeFromEvent(StringHash);
  34658. void UnsubscribeFromEvents(Object);
  34659. void Update(const FrameInfo&);
  34660. const Variant& GetGlobalVar(StringHash) const;
  34661. const VariantMap& GetGlobalVars() const;
  34662. int WeakRefs() const;
  34663. operator const Object() const;
  34664. operator const RefCounted() const;
  34665. // Properties:
  34666. /* readonly */
  34667. String category;
  34668. Array<Variant> globalVar;
  34669. /* readonly */
  34670. VariantMap globalVars;
  34671. /* readonly */
  34672. int refs;
  34673. /* readonly */
  34674. StringHash type;
  34675. /* readonly */
  34676. String typeName;
  34677. /* readonly */
  34678. int weakRefs;
  34679. };
  34680. class View3D
  34681. {
  34682. public:
  34683. View3D();
  34684. // Methods:
  34685. void AddChild(UIElement);
  34686. void AddTag(const String&);
  34687. void AddTags(Array<String>);
  34688. void AddTags(const String&, int8 = ';');
  34689. void AdjustScissor(IntRect&);
  34690. void AllocateNetworkState();
  34691. operator Animatable() const;
  34692. void ApplyAttributes();
  34693. operator BorderImage() const;
  34694. void BringToFront();
  34695. const Color& GetColor(Corner) const;
  34696. const Color& GetColorAttr() const;
  34697. const Color& GetDerivedColor() const;
  34698. const Color& GetModalFrameColor() const;
  34699. const Color& GetModalShadeColor() const;
  34700. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  34701. void DisableLayoutUpdate();
  34702. IntVector2 ElementToScreen(const IntVector2&);
  34703. void EnableLayoutUpdate();
  34704. bool FilterAttributes(XMLElement&) const;
  34705. uint FindChild(UIElement) const;
  34706. bool GetAnimationEnabled() const;
  34707. Variant GetAttribute(const String&) const;
  34708. Variant GetAttribute(uint) const;
  34709. ValueAnimation GetAttributeAnimation(const String&) const;
  34710. float GetAttributeAnimationSpeed(const String&) const;
  34711. float GetAttributeAnimationTime(const String&) const;
  34712. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  34713. Variant GetAttributeDefault(const String&) const;
  34714. Variant GetAttributeDefault(uint) const;
  34715. bool GetAutoUpdate() const;
  34716. BlendMode GetBlendMode() const;
  34717. bool GetBlockEvents() const;
  34718. bool GetBringToBack() const;
  34719. bool GetBringToFront() const;
  34720. Node GetCameraNode() const;
  34721. UIElement GetChild(const String&, bool = false) const;
  34722. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  34723. UIElement GetChild(uint) const;
  34724. Array<UIElement> GetChildren() const;
  34725. Array<UIElement> GetChildren(bool) const;
  34726. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  34727. bool GetClipChildren() const;
  34728. IntRect GetCombinedScreenRect();
  34729. XMLFile GetDefaultStyle(bool = true) const;
  34730. Texture2D GetDepthTexture() const;
  34731. float GetDerivedOpacity() const;
  34732. uint GetDragButtonCombo() const;
  34733. uint GetDragButtonCount() const;
  34734. uint GetDragDropMode() const;
  34735. IntVector2 GetEffectiveMinSize() const;
  34736. UIElement GetElementEventSender() const;
  34737. bool GetEnableAnchor() const;
  34738. VariantMap& GetEventDataMap() const;
  34739. Object GetEventSender() const;
  34740. bool GetFixedHeightResizing() const;
  34741. bool GetFixedWidthResizing() const;
  34742. FocusMode GetFocusMode() const;
  34743. uint GetFormat() const;
  34744. int GetHeight() const;
  34745. HorizontalAlignment GetHorizontalAlignment() const;
  34746. int GetIndent() const;
  34747. int GetIndentSpacing() const;
  34748. int GetIndentWidth() const;
  34749. bool GetInterceptNetworkUpdate(const String&) const;
  34750. int GetLayoutElementMaxSize() const;
  34751. LayoutMode GetLayoutMode() const;
  34752. int GetLayoutSpacing() const;
  34753. Material GetMaterial() const;
  34754. ResourceRef GetMaterialAttr() const;
  34755. int GetMaxHeight() const;
  34756. int GetMaxWidth() const;
  34757. int GetMinHeight() const;
  34758. int GetMinWidth() const;
  34759. bool GetModalAutoDismiss() const;
  34760. uint GetNumAttributes() const;
  34761. uint GetNumChildren(bool = false) const;
  34762. uint GetNumNetworkAttributes() const;
  34763. ObjectAnimation GetObjectAnimation() const;
  34764. ResourceRef GetObjectAnimationAttr() const;
  34765. float GetOpacity() const;
  34766. UIElement GetParent() const;
  34767. int GetPriority() const;
  34768. Texture2D GetRenderTexture() const;
  34769. UIElement GetRoot() const;
  34770. Scene GetScene() const;
  34771. bool GetSortChildren() const;
  34772. Object GetSubsystem(StringHash) const;
  34773. Array<String> GetTags() const;
  34774. Texture GetTexture() const;
  34775. ResourceRef GetTextureAttr() const;
  34776. TraversalMode GetTraversalMode() const;
  34777. StringHash GetType() const;
  34778. bool GetUseDerivedOpacity() const;
  34779. VerticalAlignment GetVerticalAlignment() const;
  34780. Viewport GetViewport() const;
  34781. int GetWidth() const;
  34782. bool HasColorGradient() const;
  34783. bool HasEventHandlers() const;
  34784. bool HasFocus() const;
  34785. bool HasSubscribedToEvent(Object, StringHash) const;
  34786. bool HasSubscribedToEvent(StringHash) const;
  34787. bool HasTag(const String&) const;
  34788. void InsertChild(uint, UIElement);
  34789. const IntRect& GetBorder() const;
  34790. const IntRect& GetClipBorder() const;
  34791. const IntRect& GetImageBorder() const;
  34792. const IntRect& GetImageRect() const;
  34793. const IntRect& GetLayoutBorder() const;
  34794. const IntRect& GetResizeBorder() const;
  34795. const IntVector2& GetChildOffset() const;
  34796. const IntVector2& GetDisabledOffset() const;
  34797. const IntVector2& GetHoverOffset() const;
  34798. const IntVector2& GetMaxOffset() const;
  34799. const IntVector2& GetMaxSize() const;
  34800. const IntVector2& GetMinOffset() const;
  34801. const IntVector2& GetMinSize() const;
  34802. const IntVector2& GetModalFrameSize() const;
  34803. const IntVector2& GetPosition() const;
  34804. const IntVector2& GetScreenPosition() const;
  34805. const IntVector2& GetSize() const;
  34806. bool IsChildOf(UIElement) const;
  34807. bool IsEditable() const;
  34808. bool IsElementEventSender() const;
  34809. bool IsEnabled() const;
  34810. bool IsEnabledSelf() const;
  34811. bool IsFixedHeight() const;
  34812. bool IsFixedSize() const;
  34813. bool IsFixedWidth() const;
  34814. bool IsHovering() const;
  34815. bool IsInside(IntVector2, bool);
  34816. bool IsInsideCombined(IntVector2, bool);
  34817. bool IsInstanceOf(StringHash) const;
  34818. bool IsInternal() const;
  34819. bool IsModal() const;
  34820. bool IsMovable() const;
  34821. bool IsResizable() const;
  34822. bool IsSelected() const;
  34823. bool IsTemporary() const;
  34824. bool IsTiled() const;
  34825. bool IsVisible() const;
  34826. bool IsVisibleEffective() const;
  34827. bool IsWheelHandler() const;
  34828. bool IsWithinScissor(const IntRect&);
  34829. bool Load(Deserializer&);
  34830. UIElement LoadChildXML(XMLFile, XMLFile);
  34831. UIElement LoadChildXML(const XMLElement&, XMLFile);
  34832. bool LoadJSON(const JSONValue&);
  34833. bool LoadXML(Deserializer&);
  34834. bool LoadXML(File);
  34835. bool LoadXML(VectorBuffer&);
  34836. bool LoadXML(XMLFile, XMLFile);
  34837. bool LoadXML(const XMLElement&);
  34838. bool LoadXML(const XMLElement&, XMLFile);
  34839. void MarkNetworkUpdate();
  34840. operator Object() const;
  34841. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  34842. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  34843. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  34844. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34845. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34846. bool OnDragDropFinish(UIElement);
  34847. bool OnDragDropTest(UIElement);
  34848. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34849. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34850. void OnEvent(Object, StringHash, VariantMap&);
  34851. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  34852. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34853. void OnIndentSet();
  34854. void OnKey(uint, uint, uint);
  34855. void OnPositionSet(const IntVector2&);
  34856. void OnResize(const IntVector2&, const IntVector2&);
  34857. void OnSetAttribute(const AttributeInfo&, const Variant&);
  34858. void OnSetEditable();
  34859. void OnTextInput(const String&);
  34860. void OnWheel(int, uint, uint);
  34861. void QueueUpdate();
  34862. bool ReadDeltaUpdate(Deserializer&);
  34863. bool ReadLatestDataUpdate(Deserializer&);
  34864. operator RefCounted() const;
  34865. int Refs() const;
  34866. void Remove();
  34867. void RemoveAllChildren();
  34868. void RemoveAllTags();
  34869. void RemoveAttributeAnimation(const String&);
  34870. void RemoveChild(UIElement, uint = 0);
  34871. void RemoveChild(uint);
  34872. void RemoveChildAtIndex(uint);
  34873. void RemoveInstanceDefault();
  34874. void RemoveObjectAnimation();
  34875. bool RemoveTag(const String&);
  34876. void ResetDeepEnabled();
  34877. void ResetToDefault();
  34878. bool Save(Serializer&) const;
  34879. bool SaveDefaultAttributes() const;
  34880. bool SaveJSON(JSONValue&) const;
  34881. bool SaveXML(File, const String& indentation = "\t");
  34882. bool SaveXML(Serializer&, const String& = "\t") const;
  34883. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  34884. bool SaveXML(XMLElement&) const;
  34885. IntVector2 ScreenToElement(const IntVector2&);
  34886. void SendEvent(StringHash);
  34887. void SendEvent(StringHash, VariantMap&);
  34888. operator Serializable() const;
  34889. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  34890. void SetAnimationEnabled(bool);
  34891. void SetAnimationTime(float);
  34892. bool SetAttribute(const String&, const Variant&);
  34893. bool SetAttribute(uint, const Variant&);
  34894. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  34895. void SetAttributeAnimationSpeed(const String&, float);
  34896. void SetAttributeAnimationTime(const String&, float);
  34897. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  34898. void SetAutoUpdate(bool);
  34899. void SetBlendMode(BlendMode);
  34900. void SetBlockEvents(bool);
  34901. void SetBorder(const IntRect&);
  34902. void SetBringToBack(bool);
  34903. void SetBringToFront(bool);
  34904. void SetChildOffset(const IntVector2&);
  34905. void SetClipBorder(const IntRect&);
  34906. void SetClipChildren(bool);
  34907. void SetColor(Corner, const Color&);
  34908. void SetColor(const Color&);
  34909. void SetDeepEnabled(bool);
  34910. void SetDefaultStyle(XMLFile);
  34911. void SetDisabledOffset(const IntVector2&);
  34912. void SetDisabledOffset(int, int);
  34913. void SetDragDropMode(uint);
  34914. void SetEditable(bool);
  34915. void SetElementEventSender(bool);
  34916. void SetEnableAnchor(bool);
  34917. void SetEnabled(bool);
  34918. void SetEnabledRecursive(bool);
  34919. void SetFixedHeight(int);
  34920. void SetFixedHeightResizing(bool);
  34921. void SetFixedSize(const IntVector2&);
  34922. void SetFixedSize(int, int);
  34923. void SetFixedWidth(int);
  34924. void SetFixedWidthResizing(bool);
  34925. void SetFocus(bool);
  34926. void SetFocusMode(FocusMode);
  34927. void SetFormat(uint);
  34928. void SetFullImageRect();
  34929. void SetGlobalVar(StringHash, const Variant&);
  34930. void SetHeight(int);
  34931. void SetHorizontalAlignment(HorizontalAlignment);
  34932. void SetHoverOffset(const IntVector2&);
  34933. void SetHoverOffset(int, int);
  34934. void SetHovering(bool);
  34935. void SetImageBorder(const IntRect&);
  34936. void SetImageRect(const IntRect&);
  34937. void SetIndent(int);
  34938. void SetIndentSpacing(int);
  34939. void SetInstanceDefault(bool);
  34940. void SetInterceptNetworkUpdate(const String&, bool);
  34941. void SetInternal(bool);
  34942. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  34943. void SetLayoutBorder(const IntRect&);
  34944. void SetLayoutFlexScale(const Vector2&);
  34945. void SetLayoutMode(LayoutMode);
  34946. void SetLayoutSpacing(int);
  34947. void SetMaterial(Material);
  34948. void SetMaterialAttr(const ResourceRef&);
  34949. void SetMaxAnchor(const Vector2&);
  34950. void SetMaxAnchor(float, float);
  34951. void SetMaxHeight(int);
  34952. void SetMaxOffset(const IntVector2&);
  34953. void SetMaxSize(const IntVector2&);
  34954. void SetMaxSize(int, int);
  34955. void SetMaxWidth(int);
  34956. void SetMinAnchor(const Vector2&);
  34957. void SetMinAnchor(float, float);
  34958. void SetMinHeight(int);
  34959. void SetMinOffset(const IntVector2&);
  34960. void SetMinSize(const IntVector2&);
  34961. void SetMinSize(int, int);
  34962. void SetMinWidth(int);
  34963. void SetModal(bool);
  34964. void SetModalAutoDismiss(bool);
  34965. void SetModalFrameColor(const Color&);
  34966. void SetModalFrameSize(const IntVector2&);
  34967. void SetModalShadeColor(const Color&);
  34968. void SetMovable(bool);
  34969. void SetName(const String&);
  34970. void SetObjectAnimation(ObjectAnimation);
  34971. void SetObjectAnimationAttr(const ResourceRef&);
  34972. void SetOpacity(float);
  34973. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  34974. void SetPivot(const Vector2&);
  34975. void SetPivot(float, float);
  34976. void SetPosition(const IntVector2&);
  34977. void SetPosition(int, int);
  34978. void SetPriority(int);
  34979. void SetRenderTexture(Texture2D);
  34980. void SetResizable(bool);
  34981. void SetResizeBorder(const IntRect&);
  34982. void SetSelected(bool);
  34983. void SetSize(const IntVector2&);
  34984. void SetSize(int, int);
  34985. void SetSortChildren(bool);
  34986. bool SetStyle(const String&, XMLFile = null);
  34987. bool SetStyle(const XMLElement&);
  34988. bool SetStyleAuto(XMLFile = null);
  34989. void SetTags(Array<String>);
  34990. void SetTemporary(bool);
  34991. void SetTexture(Texture);
  34992. void SetTextureAttr(const ResourceRef&);
  34993. void SetTiled(bool);
  34994. void SetTraversalMode(TraversalMode);
  34995. void SetUseDerivedOpacity(bool);
  34996. void SetVar(StringHash, const Variant&);
  34997. void SetVerticalAlignment(VerticalAlignment);
  34998. void SetView(Scene, Camera, bool = true);
  34999. void SetVisible(bool);
  35000. void SetWidth(int);
  35001. void SortChildren();
  35002. const String& GetAppliedStyle() const;
  35003. const String& GetCategory() const;
  35004. const String& GetName() const;
  35005. const String& GetTypeName() const;
  35006. operator UIElement() const;
  35007. void UnsubscribeFromAllEvents();
  35008. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35009. void UnsubscribeFromEvent(Object, StringHash);
  35010. void UnsubscribeFromEvent(StringHash);
  35011. void UnsubscribeFromEvents(Object);
  35012. void Update(float);
  35013. void UpdateLayout();
  35014. const Variant& GetGlobalVar(StringHash) const;
  35015. const Variant& GetVar(const StringHash&) const;
  35016. const VariantMap& GetGlobalVars() const;
  35017. const VariantMap& GetVars() const;
  35018. const Vector2& GetLayoutFlexScale() const;
  35019. const Vector2& GetMaxAnchor() const;
  35020. const Vector2& GetMinAnchor() const;
  35021. const Vector2& GetPivot() const;
  35022. int WeakRefs() const;
  35023. operator Window() const;
  35024. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  35025. void WriteInitialDeltaUpdate(Serializer&, uint8);
  35026. void WriteLatestDataUpdate(Serializer&, uint8);
  35027. operator const Animatable() const;
  35028. operator const BorderImage() const;
  35029. operator const Object() const;
  35030. operator const RefCounted() const;
  35031. operator const Serializable() const;
  35032. operator const UIElement() const;
  35033. operator const Window() const;
  35034. // Properties:
  35035. bool animationEnabled;
  35036. /* readonly */
  35037. Array<Variant> attributeDefaults;
  35038. /* readonly */
  35039. Array<AttributeInfo> attributeInfos;
  35040. Array<Variant> attributes;
  35041. bool autoUpdate;
  35042. BlendMode blendMode;
  35043. IntRect border;
  35044. bool bringToBack;
  35045. bool bringToFront;
  35046. /* readonly */
  35047. Node cameraNode;
  35048. /* readonly */
  35049. String category;
  35050. /* readonly */
  35051. IntVector2 childOffset;
  35052. /* readonly */
  35053. Array<UIElement> children;
  35054. IntRect clipBorder;
  35055. bool clipChildren;
  35056. /* writeonly */
  35057. Color color;
  35058. /* readonly */
  35059. bool colorGradient;
  35060. Array<Color> colors;
  35061. /* readonly */
  35062. IntRect combinedScreenRect;
  35063. XMLFile defaultStyle;
  35064. /* readonly */
  35065. Texture2D depthTexture;
  35066. /* readonly */
  35067. float derivedOpacity;
  35068. IntVector2 disabledOffset;
  35069. /* readonly */
  35070. uint dragButtonCombo;
  35071. /* readonly */
  35072. uint dragButtonCount;
  35073. uint dragDropMode;
  35074. bool editable;
  35075. bool elementEventSender;
  35076. bool enableAnchor;
  35077. bool enabled;
  35078. /* readonly */
  35079. bool enabledSelf;
  35080. /* readonly */
  35081. bool fixedHeight;
  35082. bool fixedHeightResizing;
  35083. /* readonly */
  35084. bool fixedSize;
  35085. /* readonly */
  35086. bool fixedWidth;
  35087. bool fixedWidthResizing;
  35088. bool focus;
  35089. FocusMode focusMode;
  35090. uint format;
  35091. Array<Variant> globalVar;
  35092. /* readonly */
  35093. VariantMap globalVars;
  35094. int height;
  35095. HorizontalAlignment horizontalAlignment;
  35096. IntVector2 hoverOffset;
  35097. /* readonly */
  35098. bool hovering;
  35099. IntRect imageBorder;
  35100. IntRect imageRect;
  35101. int indent;
  35102. int indentSpacing;
  35103. /* readonly */
  35104. int indentWidth;
  35105. bool internal;
  35106. IntRect layoutBorder;
  35107. Vector2 layoutFlexScale;
  35108. LayoutMode layoutMode;
  35109. int layoutSpacing;
  35110. Material material;
  35111. Vector2 maxAnchor;
  35112. int maxHeight;
  35113. IntVector2 maxOffset;
  35114. IntVector2 maxSize;
  35115. int maxWidth;
  35116. Vector2 minAnchor;
  35117. int minHeight;
  35118. IntVector2 minOffset;
  35119. IntVector2 minSize;
  35120. int minWidth;
  35121. bool modal;
  35122. bool modalAutoDismiss;
  35123. Color modalFrameColor;
  35124. IntVector2 modalFrameSize;
  35125. Color modalShadeColor;
  35126. bool movable;
  35127. String name;
  35128. /* readonly */
  35129. uint numAllChildren;
  35130. /* readonly */
  35131. uint numAttributes;
  35132. /* readonly */
  35133. uint numChildren;
  35134. ObjectAnimation objectAnimation;
  35135. float opacity;
  35136. UIElement parent;
  35137. Vector2 pivot;
  35138. IntVector2 position;
  35139. int priority;
  35140. /* readonly */
  35141. int refs;
  35142. /* readonly */
  35143. Texture2D renderTexture;
  35144. bool resizable;
  35145. IntRect resizeBorder;
  35146. /* readonly */
  35147. UIElement root;
  35148. /* readonly */
  35149. Scene scene;
  35150. /* readonly */
  35151. IntVector2 screenPosition;
  35152. bool selected;
  35153. IntVector2 size;
  35154. bool sortChildren;
  35155. String style;
  35156. /* readonly */
  35157. Array<String> tags;
  35158. bool temporary;
  35159. Texture texture;
  35160. bool tiled;
  35161. TraversalMode traversalMode;
  35162. /* readonly */
  35163. StringHash type;
  35164. /* readonly */
  35165. String typeName;
  35166. bool useDerivedOpacity;
  35167. /* readonly */
  35168. VariantMap vars;
  35169. VerticalAlignment verticalAlignment;
  35170. /* readonly */
  35171. Viewport viewport;
  35172. bool visible;
  35173. /* readonly */
  35174. bool visibleEffective;
  35175. /* readonly */
  35176. int weakRefs;
  35177. int width;
  35178. };
  35179. class Viewport
  35180. {
  35181. public:
  35182. Viewport();
  35183. Viewport(Scene&, Camera&, RenderPath& = null);
  35184. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& = null);
  35185. // Methods:
  35186. void AllocateView();
  35187. bool GetBlockEvents() const;
  35188. Camera GetCamera() const;
  35189. Camera GetCullCamera() const;
  35190. bool GetDrawDebug() const;
  35191. VariantMap& GetEventDataMap() const;
  35192. Object GetEventSender() const;
  35193. RenderPath GetRenderPath() const;
  35194. Scene GetScene() const;
  35195. Ray GetScreenRay(int, int) const;
  35196. Object GetSubsystem(StringHash) const;
  35197. StringHash GetType() const;
  35198. View GetView() const;
  35199. bool HasEventHandlers() const;
  35200. bool HasSubscribedToEvent(Object, StringHash) const;
  35201. bool HasSubscribedToEvent(StringHash) const;
  35202. const IntRect& GetRect() const;
  35203. bool IsInstanceOf(StringHash) const;
  35204. operator Object() const;
  35205. void OnEvent(Object, StringHash, VariantMap&);
  35206. operator RefCounted() const;
  35207. int Refs() const;
  35208. Vector3 ScreenToWorldPoint(int, int, float) const;
  35209. void SendEvent(StringHash);
  35210. void SendEvent(StringHash, VariantMap&);
  35211. void SetBlockEvents(bool);
  35212. void SetCamera(Camera);
  35213. void SetCullCamera(Camera);
  35214. void SetDrawDebug(bool);
  35215. void SetGlobalVar(StringHash, const Variant&);
  35216. void SetRect(const IntRect&);
  35217. void SetRenderPath(RenderPath);
  35218. bool SetRenderPath(XMLFile);
  35219. void SetScene(Scene);
  35220. const String& GetCategory() const;
  35221. const String& GetTypeName() const;
  35222. void UnsubscribeFromAllEvents();
  35223. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35224. void UnsubscribeFromEvent(Object, StringHash);
  35225. void UnsubscribeFromEvent(StringHash);
  35226. void UnsubscribeFromEvents(Object);
  35227. const Variant& GetGlobalVar(StringHash) const;
  35228. const VariantMap& GetGlobalVars() const;
  35229. int WeakRefs() const;
  35230. IntVector2 WorldToScreenPoint(const Vector3&) const;
  35231. operator const Object() const;
  35232. operator const RefCounted() const;
  35233. // Properties:
  35234. Camera camera;
  35235. /* readonly */
  35236. String category;
  35237. Camera cullCamera;
  35238. bool drawDebug;
  35239. Array<Variant> globalVar;
  35240. /* readonly */
  35241. VariantMap globalVars;
  35242. IntRect rect;
  35243. /* readonly */
  35244. int refs;
  35245. RenderPath renderPath;
  35246. Scene scene;
  35247. /* readonly */
  35248. StringHash type;
  35249. /* readonly */
  35250. String typeName;
  35251. /* readonly */
  35252. int weakRefs;
  35253. };
  35254. class WeakHandle
  35255. {
  35256. public:
  35257. ~WeakHandle();
  35258. WeakHandle();
  35259. WeakHandle(const WeakHandle&in);
  35260. WeakHandle(RefCounted@);
  35261. // Methods:
  35262. WeakHandle& operator=(RefCounted);
  35263. WeakHandle& operator=(const WeakHandle&);
  35264. RefCounted Get() const;
  35265. // Properties:
  35266. /* readonly */
  35267. bool expired;
  35268. /* readonly */
  35269. int refs;
  35270. /* readonly */
  35271. int weakRefs;
  35272. };
  35273. class Window
  35274. {
  35275. public:
  35276. Window();
  35277. // Methods:
  35278. void AddChild(UIElement);
  35279. void AddTag(const String&);
  35280. void AddTags(Array<String>);
  35281. void AddTags(const String&, int8 = ';');
  35282. void AdjustScissor(IntRect&);
  35283. void AllocateNetworkState();
  35284. operator Animatable() const;
  35285. void ApplyAttributes();
  35286. operator BorderImage() const;
  35287. void BringToFront();
  35288. const Color& GetColor(Corner) const;
  35289. const Color& GetColorAttr() const;
  35290. const Color& GetDerivedColor() const;
  35291. const Color& GetModalFrameColor() const;
  35292. const Color& GetModalShadeColor() const;
  35293. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  35294. void DisableLayoutUpdate();
  35295. IntVector2 ElementToScreen(const IntVector2&);
  35296. void EnableLayoutUpdate();
  35297. bool FilterAttributes(XMLElement&) const;
  35298. uint FindChild(UIElement) const;
  35299. bool GetAnimationEnabled() const;
  35300. Variant GetAttribute(const String&) const;
  35301. Variant GetAttribute(uint) const;
  35302. ValueAnimation GetAttributeAnimation(const String&) const;
  35303. float GetAttributeAnimationSpeed(const String&) const;
  35304. float GetAttributeAnimationTime(const String&) const;
  35305. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  35306. Variant GetAttributeDefault(const String&) const;
  35307. Variant GetAttributeDefault(uint) const;
  35308. BlendMode GetBlendMode() const;
  35309. bool GetBlockEvents() const;
  35310. bool GetBringToBack() const;
  35311. bool GetBringToFront() const;
  35312. UIElement GetChild(const String&, bool = false) const;
  35313. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  35314. UIElement GetChild(uint) const;
  35315. Array<UIElement> GetChildren() const;
  35316. Array<UIElement> GetChildren(bool) const;
  35317. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  35318. bool GetClipChildren() const;
  35319. IntRect GetCombinedScreenRect();
  35320. XMLFile GetDefaultStyle(bool = true) const;
  35321. float GetDerivedOpacity() const;
  35322. uint GetDragButtonCombo() const;
  35323. uint GetDragButtonCount() const;
  35324. uint GetDragDropMode() const;
  35325. IntVector2 GetEffectiveMinSize() const;
  35326. UIElement GetElementEventSender() const;
  35327. bool GetEnableAnchor() const;
  35328. VariantMap& GetEventDataMap() const;
  35329. Object GetEventSender() const;
  35330. bool GetFixedHeightResizing() const;
  35331. bool GetFixedWidthResizing() const;
  35332. FocusMode GetFocusMode() const;
  35333. int GetHeight() const;
  35334. HorizontalAlignment GetHorizontalAlignment() const;
  35335. int GetIndent() const;
  35336. int GetIndentSpacing() const;
  35337. int GetIndentWidth() const;
  35338. bool GetInterceptNetworkUpdate(const String&) const;
  35339. int GetLayoutElementMaxSize() const;
  35340. LayoutMode GetLayoutMode() const;
  35341. int GetLayoutSpacing() const;
  35342. Material GetMaterial() const;
  35343. ResourceRef GetMaterialAttr() const;
  35344. int GetMaxHeight() const;
  35345. int GetMaxWidth() const;
  35346. int GetMinHeight() const;
  35347. int GetMinWidth() const;
  35348. bool GetModalAutoDismiss() const;
  35349. uint GetNumAttributes() const;
  35350. uint GetNumChildren(bool = false) const;
  35351. uint GetNumNetworkAttributes() const;
  35352. ObjectAnimation GetObjectAnimation() const;
  35353. ResourceRef GetObjectAnimationAttr() const;
  35354. float GetOpacity() const;
  35355. UIElement GetParent() const;
  35356. int GetPriority() const;
  35357. UIElement GetRoot() const;
  35358. bool GetSortChildren() const;
  35359. Object GetSubsystem(StringHash) const;
  35360. Array<String> GetTags() const;
  35361. Texture GetTexture() const;
  35362. ResourceRef GetTextureAttr() const;
  35363. TraversalMode GetTraversalMode() const;
  35364. StringHash GetType() const;
  35365. bool GetUseDerivedOpacity() const;
  35366. VerticalAlignment GetVerticalAlignment() const;
  35367. int GetWidth() const;
  35368. bool HasColorGradient() const;
  35369. bool HasEventHandlers() const;
  35370. bool HasFocus() const;
  35371. bool HasSubscribedToEvent(Object, StringHash) const;
  35372. bool HasSubscribedToEvent(StringHash) const;
  35373. bool HasTag(const String&) const;
  35374. void InsertChild(uint, UIElement);
  35375. const IntRect& GetBorder() const;
  35376. const IntRect& GetClipBorder() const;
  35377. const IntRect& GetImageBorder() const;
  35378. const IntRect& GetImageRect() const;
  35379. const IntRect& GetLayoutBorder() const;
  35380. const IntRect& GetResizeBorder() const;
  35381. const IntVector2& GetChildOffset() const;
  35382. const IntVector2& GetDisabledOffset() const;
  35383. const IntVector2& GetHoverOffset() const;
  35384. const IntVector2& GetMaxOffset() const;
  35385. const IntVector2& GetMaxSize() const;
  35386. const IntVector2& GetMinOffset() const;
  35387. const IntVector2& GetMinSize() const;
  35388. const IntVector2& GetModalFrameSize() const;
  35389. const IntVector2& GetPosition() const;
  35390. const IntVector2& GetScreenPosition() const;
  35391. const IntVector2& GetSize() const;
  35392. bool IsChildOf(UIElement) const;
  35393. bool IsEditable() const;
  35394. bool IsElementEventSender() const;
  35395. bool IsEnabled() const;
  35396. bool IsEnabledSelf() const;
  35397. bool IsFixedHeight() const;
  35398. bool IsFixedSize() const;
  35399. bool IsFixedWidth() const;
  35400. bool IsHovering() const;
  35401. bool IsInside(IntVector2, bool);
  35402. bool IsInsideCombined(IntVector2, bool);
  35403. bool IsInstanceOf(StringHash) const;
  35404. bool IsInternal() const;
  35405. bool IsModal() const;
  35406. bool IsMovable() const;
  35407. bool IsResizable() const;
  35408. bool IsSelected() const;
  35409. bool IsTemporary() const;
  35410. bool IsTiled() const;
  35411. bool IsVisible() const;
  35412. bool IsVisibleEffective() const;
  35413. bool IsWheelHandler() const;
  35414. bool IsWithinScissor(const IntRect&);
  35415. bool Load(Deserializer&);
  35416. UIElement LoadChildXML(XMLFile, XMLFile);
  35417. UIElement LoadChildXML(const XMLElement&, XMLFile);
  35418. bool LoadJSON(const JSONValue&);
  35419. bool LoadXML(Deserializer&);
  35420. bool LoadXML(File);
  35421. bool LoadXML(VectorBuffer&);
  35422. bool LoadXML(XMLFile, XMLFile);
  35423. bool LoadXML(const XMLElement&);
  35424. bool LoadXML(const XMLElement&, XMLFile);
  35425. void MarkNetworkUpdate();
  35426. operator Object() const;
  35427. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  35428. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  35429. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  35430. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35431. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35432. bool OnDragDropFinish(UIElement);
  35433. bool OnDragDropTest(UIElement);
  35434. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35435. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35436. void OnEvent(Object, StringHash, VariantMap&);
  35437. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  35438. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35439. void OnIndentSet();
  35440. void OnKey(uint, uint, uint);
  35441. void OnPositionSet(const IntVector2&);
  35442. void OnResize(const IntVector2&, const IntVector2&);
  35443. void OnSetAttribute(const AttributeInfo&, const Variant&);
  35444. void OnSetEditable();
  35445. void OnTextInput(const String&);
  35446. void OnWheel(int, uint, uint);
  35447. bool ReadDeltaUpdate(Deserializer&);
  35448. bool ReadLatestDataUpdate(Deserializer&);
  35449. operator RefCounted() const;
  35450. int Refs() const;
  35451. void Remove();
  35452. void RemoveAllChildren();
  35453. void RemoveAllTags();
  35454. void RemoveAttributeAnimation(const String&);
  35455. void RemoveChild(UIElement, uint = 0);
  35456. void RemoveChild(uint);
  35457. void RemoveChildAtIndex(uint);
  35458. void RemoveInstanceDefault();
  35459. void RemoveObjectAnimation();
  35460. bool RemoveTag(const String&);
  35461. void ResetDeepEnabled();
  35462. void ResetToDefault();
  35463. bool Save(Serializer&) const;
  35464. bool SaveDefaultAttributes() const;
  35465. bool SaveJSON(JSONValue&) const;
  35466. bool SaveXML(File, const String& indentation = "\t");
  35467. bool SaveXML(Serializer&, const String& = "\t") const;
  35468. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  35469. bool SaveXML(XMLElement&) const;
  35470. IntVector2 ScreenToElement(const IntVector2&);
  35471. void SendEvent(StringHash);
  35472. void SendEvent(StringHash, VariantMap&);
  35473. operator Serializable() const;
  35474. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  35475. void SetAnimationEnabled(bool);
  35476. void SetAnimationTime(float);
  35477. bool SetAttribute(const String&, const Variant&);
  35478. bool SetAttribute(uint, const Variant&);
  35479. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  35480. void SetAttributeAnimationSpeed(const String&, float);
  35481. void SetAttributeAnimationTime(const String&, float);
  35482. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  35483. void SetBlendMode(BlendMode);
  35484. void SetBlockEvents(bool);
  35485. void SetBorder(const IntRect&);
  35486. void SetBringToBack(bool);
  35487. void SetBringToFront(bool);
  35488. void SetChildOffset(const IntVector2&);
  35489. void SetClipBorder(const IntRect&);
  35490. void SetClipChildren(bool);
  35491. void SetColor(Corner, const Color&);
  35492. void SetColor(const Color&);
  35493. void SetDeepEnabled(bool);
  35494. void SetDefaultStyle(XMLFile);
  35495. void SetDisabledOffset(const IntVector2&);
  35496. void SetDisabledOffset(int, int);
  35497. void SetDragDropMode(uint);
  35498. void SetEditable(bool);
  35499. void SetElementEventSender(bool);
  35500. void SetEnableAnchor(bool);
  35501. void SetEnabled(bool);
  35502. void SetEnabledRecursive(bool);
  35503. void SetFixedHeight(int);
  35504. void SetFixedHeightResizing(bool);
  35505. void SetFixedSize(const IntVector2&);
  35506. void SetFixedSize(int, int);
  35507. void SetFixedWidth(int);
  35508. void SetFixedWidthResizing(bool);
  35509. void SetFocus(bool);
  35510. void SetFocusMode(FocusMode);
  35511. void SetFullImageRect();
  35512. void SetGlobalVar(StringHash, const Variant&);
  35513. void SetHeight(int);
  35514. void SetHorizontalAlignment(HorizontalAlignment);
  35515. void SetHoverOffset(const IntVector2&);
  35516. void SetHoverOffset(int, int);
  35517. void SetHovering(bool);
  35518. void SetImageBorder(const IntRect&);
  35519. void SetImageRect(const IntRect&);
  35520. void SetIndent(int);
  35521. void SetIndentSpacing(int);
  35522. void SetInstanceDefault(bool);
  35523. void SetInterceptNetworkUpdate(const String&, bool);
  35524. void SetInternal(bool);
  35525. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  35526. void SetLayoutBorder(const IntRect&);
  35527. void SetLayoutFlexScale(const Vector2&);
  35528. void SetLayoutMode(LayoutMode);
  35529. void SetLayoutSpacing(int);
  35530. void SetMaterial(Material);
  35531. void SetMaterialAttr(const ResourceRef&);
  35532. void SetMaxAnchor(const Vector2&);
  35533. void SetMaxAnchor(float, float);
  35534. void SetMaxHeight(int);
  35535. void SetMaxOffset(const IntVector2&);
  35536. void SetMaxSize(const IntVector2&);
  35537. void SetMaxSize(int, int);
  35538. void SetMaxWidth(int);
  35539. void SetMinAnchor(const Vector2&);
  35540. void SetMinAnchor(float, float);
  35541. void SetMinHeight(int);
  35542. void SetMinOffset(const IntVector2&);
  35543. void SetMinSize(const IntVector2&);
  35544. void SetMinSize(int, int);
  35545. void SetMinWidth(int);
  35546. void SetModal(bool);
  35547. void SetModalAutoDismiss(bool);
  35548. void SetModalFrameColor(const Color&);
  35549. void SetModalFrameSize(const IntVector2&);
  35550. void SetModalShadeColor(const Color&);
  35551. void SetMovable(bool);
  35552. void SetName(const String&);
  35553. void SetObjectAnimation(ObjectAnimation);
  35554. void SetObjectAnimationAttr(const ResourceRef&);
  35555. void SetOpacity(float);
  35556. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  35557. void SetPivot(const Vector2&);
  35558. void SetPivot(float, float);
  35559. void SetPosition(const IntVector2&);
  35560. void SetPosition(int, int);
  35561. void SetPriority(int);
  35562. void SetRenderTexture(Texture2D);
  35563. void SetResizable(bool);
  35564. void SetResizeBorder(const IntRect&);
  35565. void SetSelected(bool);
  35566. void SetSize(const IntVector2&);
  35567. void SetSize(int, int);
  35568. void SetSortChildren(bool);
  35569. bool SetStyle(const String&, XMLFile = null);
  35570. bool SetStyle(const XMLElement&);
  35571. bool SetStyleAuto(XMLFile = null);
  35572. void SetTags(Array<String>);
  35573. void SetTemporary(bool);
  35574. void SetTexture(Texture);
  35575. void SetTextureAttr(const ResourceRef&);
  35576. void SetTiled(bool);
  35577. void SetTraversalMode(TraversalMode);
  35578. void SetUseDerivedOpacity(bool);
  35579. void SetVar(StringHash, const Variant&);
  35580. void SetVerticalAlignment(VerticalAlignment);
  35581. void SetVisible(bool);
  35582. void SetWidth(int);
  35583. void SortChildren();
  35584. const String& GetAppliedStyle() const;
  35585. const String& GetCategory() const;
  35586. const String& GetName() const;
  35587. const String& GetTypeName() const;
  35588. operator UIElement() const;
  35589. void UnsubscribeFromAllEvents();
  35590. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35591. void UnsubscribeFromEvent(Object, StringHash);
  35592. void UnsubscribeFromEvent(StringHash);
  35593. void UnsubscribeFromEvents(Object);
  35594. void Update(float);
  35595. void UpdateLayout();
  35596. const Variant& GetGlobalVar(StringHash) const;
  35597. const Variant& GetVar(const StringHash&) const;
  35598. const VariantMap& GetGlobalVars() const;
  35599. const VariantMap& GetVars() const;
  35600. const Vector2& GetLayoutFlexScale() const;
  35601. const Vector2& GetMaxAnchor() const;
  35602. const Vector2& GetMinAnchor() const;
  35603. const Vector2& GetPivot() const;
  35604. operator View3D() const;
  35605. int WeakRefs() const;
  35606. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  35607. void WriteInitialDeltaUpdate(Serializer&, uint8);
  35608. void WriteLatestDataUpdate(Serializer&, uint8);
  35609. operator const Animatable() const;
  35610. operator const BorderImage() const;
  35611. operator const Object() const;
  35612. operator const RefCounted() const;
  35613. operator const Serializable() const;
  35614. operator const UIElement() const;
  35615. operator const View3D() const;
  35616. // Properties:
  35617. bool animationEnabled;
  35618. /* readonly */
  35619. Array<Variant> attributeDefaults;
  35620. /* readonly */
  35621. Array<AttributeInfo> attributeInfos;
  35622. Array<Variant> attributes;
  35623. BlendMode blendMode;
  35624. IntRect border;
  35625. bool bringToBack;
  35626. bool bringToFront;
  35627. /* readonly */
  35628. String category;
  35629. /* readonly */
  35630. IntVector2 childOffset;
  35631. /* readonly */
  35632. Array<UIElement> children;
  35633. IntRect clipBorder;
  35634. bool clipChildren;
  35635. /* writeonly */
  35636. Color color;
  35637. /* readonly */
  35638. bool colorGradient;
  35639. Array<Color> colors;
  35640. /* readonly */
  35641. IntRect combinedScreenRect;
  35642. XMLFile defaultStyle;
  35643. /* readonly */
  35644. float derivedOpacity;
  35645. IntVector2 disabledOffset;
  35646. /* readonly */
  35647. uint dragButtonCombo;
  35648. /* readonly */
  35649. uint dragButtonCount;
  35650. uint dragDropMode;
  35651. bool editable;
  35652. bool elementEventSender;
  35653. bool enableAnchor;
  35654. bool enabled;
  35655. /* readonly */
  35656. bool enabledSelf;
  35657. /* readonly */
  35658. bool fixedHeight;
  35659. bool fixedHeightResizing;
  35660. /* readonly */
  35661. bool fixedSize;
  35662. /* readonly */
  35663. bool fixedWidth;
  35664. bool fixedWidthResizing;
  35665. bool focus;
  35666. FocusMode focusMode;
  35667. Array<Variant> globalVar;
  35668. /* readonly */
  35669. VariantMap globalVars;
  35670. int height;
  35671. HorizontalAlignment horizontalAlignment;
  35672. IntVector2 hoverOffset;
  35673. /* readonly */
  35674. bool hovering;
  35675. IntRect imageBorder;
  35676. IntRect imageRect;
  35677. int indent;
  35678. int indentSpacing;
  35679. /* readonly */
  35680. int indentWidth;
  35681. bool internal;
  35682. IntRect layoutBorder;
  35683. Vector2 layoutFlexScale;
  35684. LayoutMode layoutMode;
  35685. int layoutSpacing;
  35686. Material material;
  35687. Vector2 maxAnchor;
  35688. int maxHeight;
  35689. IntVector2 maxOffset;
  35690. IntVector2 maxSize;
  35691. int maxWidth;
  35692. Vector2 minAnchor;
  35693. int minHeight;
  35694. IntVector2 minOffset;
  35695. IntVector2 minSize;
  35696. int minWidth;
  35697. bool modal;
  35698. bool modalAutoDismiss;
  35699. Color modalFrameColor;
  35700. IntVector2 modalFrameSize;
  35701. Color modalShadeColor;
  35702. bool movable;
  35703. String name;
  35704. /* readonly */
  35705. uint numAllChildren;
  35706. /* readonly */
  35707. uint numAttributes;
  35708. /* readonly */
  35709. uint numChildren;
  35710. ObjectAnimation objectAnimation;
  35711. float opacity;
  35712. UIElement parent;
  35713. Vector2 pivot;
  35714. IntVector2 position;
  35715. int priority;
  35716. /* readonly */
  35717. int refs;
  35718. bool resizable;
  35719. IntRect resizeBorder;
  35720. /* readonly */
  35721. UIElement root;
  35722. /* readonly */
  35723. IntVector2 screenPosition;
  35724. bool selected;
  35725. IntVector2 size;
  35726. bool sortChildren;
  35727. String style;
  35728. /* readonly */
  35729. Array<String> tags;
  35730. bool temporary;
  35731. Texture texture;
  35732. bool tiled;
  35733. TraversalMode traversalMode;
  35734. /* readonly */
  35735. StringHash type;
  35736. /* readonly */
  35737. String typeName;
  35738. bool useDerivedOpacity;
  35739. /* readonly */
  35740. VariantMap vars;
  35741. VerticalAlignment verticalAlignment;
  35742. bool visible;
  35743. /* readonly */
  35744. bool visibleEffective;
  35745. /* readonly */
  35746. int weakRefs;
  35747. int width;
  35748. };
  35749. class WindowModeParams
  35750. {
  35751. public:
  35752. ~WindowModeParams();
  35753. WindowModeParams();
  35754. // Methods:
  35755. WindowModeParams& operator=(const WindowModeParams&);
  35756. // Properties:
  35757. int height;
  35758. ScreenModeParams screenParams;
  35759. int width;
  35760. };
  35761. class WorkQueue
  35762. {
  35763. public:
  35764. WorkQueue();
  35765. // Methods:
  35766. void Complete(uint);
  35767. void CreateThreads(uint);
  35768. bool GetBlockEvents() const;
  35769. VariantMap& GetEventDataMap() const;
  35770. Object GetEventSender() const;
  35771. int GetNonThreadedWorkMs() const;
  35772. uint GetNumThreads() const;
  35773. Object GetSubsystem(StringHash) const;
  35774. int GetTolerance() const;
  35775. StringHash GetType() const;
  35776. bool HasEventHandlers() const;
  35777. bool HasSubscribedToEvent(Object, StringHash) const;
  35778. bool HasSubscribedToEvent(StringHash) const;
  35779. bool IsCompleted(uint) const;
  35780. bool IsCompleting() const;
  35781. bool IsInstanceOf(StringHash) const;
  35782. operator Object() const;
  35783. void OnEvent(Object, StringHash, VariantMap&);
  35784. void Pause();
  35785. operator RefCounted() const;
  35786. int Refs() const;
  35787. void Resume();
  35788. void SendEvent(StringHash);
  35789. void SendEvent(StringHash, VariantMap&);
  35790. void SetBlockEvents(bool);
  35791. void SetGlobalVar(StringHash, const Variant&);
  35792. void SetNonThreadedWorkMs(int);
  35793. void SetTolerance(int);
  35794. const String& GetCategory() const;
  35795. const String& GetTypeName() const;
  35796. void UnsubscribeFromAllEvents();
  35797. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35798. void UnsubscribeFromEvent(Object, StringHash);
  35799. void UnsubscribeFromEvent(StringHash);
  35800. void UnsubscribeFromEvents(Object);
  35801. const Variant& GetGlobalVar(StringHash) const;
  35802. const VariantMap& GetGlobalVars() const;
  35803. int WeakRefs() const;
  35804. operator const Object() const;
  35805. operator const RefCounted() const;
  35806. // Properties:
  35807. /* readonly */
  35808. String category;
  35809. Array<Variant> globalVar;
  35810. /* readonly */
  35811. VariantMap globalVars;
  35812. /* readonly */
  35813. int refs;
  35814. /* readonly */
  35815. StringHash type;
  35816. /* readonly */
  35817. String typeName;
  35818. /* readonly */
  35819. int weakRefs;
  35820. };
  35821. class XMLElement
  35822. {
  35823. public:
  35824. ~XMLElement();
  35825. XMLElement();
  35826. XMLElement(const XMLElement&in);
  35827. // Methods:
  35828. XMLElement& operator=(const XMLElement&);
  35829. bool AppendChild(XMLElement, bool = false);
  35830. XMLElement CreateChild(const String&);
  35831. String GetAttribute(const String& = String :: EMPTY) const;
  35832. String GetAttributeLower(const String&) const;
  35833. Array<String> GetAttributeNames() const;
  35834. String GetAttributeUpper(const String&) const;
  35835. bool GetBool(const String&) const;
  35836. BoundingBox GetBoundingBox() const;
  35837. XMLElement GetChild(const String& = String :: EMPTY) const;
  35838. Color GetColor(const String&) const;
  35839. double GetDouble(const String&) const;
  35840. XMLFile GetFile() const;
  35841. float GetFloat(const String&) const;
  35842. int GetInt(const String&) const;
  35843. int64 GetInt64(const String&) const;
  35844. IntRect GetIntRect(const String&) const;
  35845. IntVector2 GetIntVector2(const String&) const;
  35846. IntVector3 GetIntVector3(const String&) const;
  35847. Matrix3 GetMatrix3(const String&) const;
  35848. Matrix3x4 GetMatrix3x4(const String&) const;
  35849. Matrix4 GetMatrix4(const String&) const;
  35850. String GetName() const;
  35851. XMLElement GetNext(const String& = String :: EMPTY) const;
  35852. uint GetNumAttributes() const;
  35853. XMLElement GetOrCreateChild(const String&);
  35854. XMLElement GetParent() const;
  35855. Quaternion GetQuaternion(const String&) const;
  35856. Rect GetRect(const String&) const;
  35857. ResourceRef GetResourceRef() const;
  35858. ResourceRefList GetResourceRefList() const;
  35859. Array<String> GetStringVector() const;
  35860. uint GetUInt(const String&) const;
  35861. uint64 GetUInt64(const String&) const;
  35862. String GetValue() const;
  35863. Variant GetVariant() const;
  35864. VariantMap GetVariantMap() const;
  35865. Variant GetVariantValue(VariantType) const;
  35866. Array<Variant> GetVariantVector() const;
  35867. Vector4 GetVector(const String&) const;
  35868. Vector2 GetVector2(const String&) const;
  35869. Vector3 GetVector3(const String&) const;
  35870. Vector4 GetVector4(const String&) const;
  35871. Variant GetVectorVariant(const String&) const;
  35872. uint GetXPathResultIndex() const;
  35873. bool HasAttribute(const String&) const;
  35874. bool HasChild(const String&) const;
  35875. bool IsNull() const;
  35876. XMLElement NextResult() const;
  35877. bool NotNull() const;
  35878. bool Remove();
  35879. bool RemoveAttribute(const String& = String :: EMPTY);
  35880. bool RemoveChild(const String&);
  35881. bool RemoveChild(const XMLElement&);
  35882. bool RemoveChildren(const String& = String :: EMPTY);
  35883. XPathResultSet Select(const String&);
  35884. XPathResultSet SelectPrepared(const XPathQuery&) const;
  35885. XMLElement SelectSingle(const String&);
  35886. XMLElement SelectSinglePrepared(const XPathQuery&) const;
  35887. bool SetAttribute(const String&);
  35888. bool SetAttribute(const String&, const String&);
  35889. bool SetBool(const String&, bool);
  35890. bool SetBoundingBox(const BoundingBox&);
  35891. bool SetColor(const String&, const Color&);
  35892. bool SetDouble(const String&, double);
  35893. bool SetFloat(const String&, float);
  35894. bool SetInt(const String&, int);
  35895. bool SetInt64(const String&, int64);
  35896. bool SetIntRect(const String&, const IntRect&);
  35897. bool SetIntVector2(const String&, const IntVector2&);
  35898. bool SetIntVector3(const String&, const IntVector3&);
  35899. bool SetMatrix3(const String&, const Matrix3&);
  35900. bool SetMatrix3x4(const String&, const Matrix3x4&);
  35901. bool SetMatrix4(const String&, const Matrix4&);
  35902. bool SetQuaternion(const String&, const Quaternion&);
  35903. bool SetRect(const String&, const Rect&);
  35904. bool SetResourceRef(const ResourceRef&);
  35905. bool SetResourceRefList(const ResourceRefList&);
  35906. bool SetString(const String&, const String&);
  35907. bool SetStringVector(Array<String>);
  35908. bool SetUInt(const String&, uint);
  35909. bool SetUInt64(const String&, uint64);
  35910. bool SetValue(const String&);
  35911. bool SetVariant(const Variant&);
  35912. bool SetVariantMap(const VariantMap&);
  35913. bool SetVariantValue(const Variant&);
  35914. bool SetVariantVector(Array<Variant>);
  35915. bool SetVector2(const String&, const Vector2&);
  35916. bool SetVector3(const String&, const Vector3&);
  35917. bool SetVector4(const String&, const Vector4&);
  35918. bool SetVectorVariant(const String&, const Variant&);
  35919. // Properties:
  35920. /* readonly */
  35921. XMLFile file;
  35922. /* readonly */
  35923. bool isNull;
  35924. /* readonly */
  35925. String name;
  35926. /* readonly */
  35927. XMLElement nextResult;
  35928. /* readonly */
  35929. bool notNull;
  35930. /* readonly */
  35931. uint numAttributes;
  35932. /* readonly */
  35933. XMLElement parent;
  35934. String value;
  35935. // Constants:
  35936. static const XMLElement EMPTY;
  35937. };
  35938. class XMLFile
  35939. {
  35940. public:
  35941. XMLFile();
  35942. // Methods:
  35943. bool BeginLoad(Deserializer&);
  35944. XMLElement CreateRoot(const String&);
  35945. bool EndLoad();
  35946. bool FromString(const String&);
  35947. AsyncLoadState GetAsyncLoadState() const;
  35948. bool GetBlockEvents() const;
  35949. VariantMap& GetEventDataMap() const;
  35950. Object GetEventSender() const;
  35951. uint GetMemoryUse() const;
  35952. StringHash GetNameHash() const;
  35953. XMLElement GetOrCreateRoot(const String&);
  35954. XMLElement GetRoot(const String& = String :: EMPTY);
  35955. Object GetSubsystem(StringHash) const;
  35956. StringHash GetType() const;
  35957. uint GetUseTimer();
  35958. bool HasEventHandlers() const;
  35959. bool HasSubscribedToEvent(Object, StringHash) const;
  35960. bool HasSubscribedToEvent(StringHash) const;
  35961. bool IsInstanceOf(StringHash) const;
  35962. bool Load(Deserializer&);
  35963. bool Load(File);
  35964. bool Load(VectorBuffer&);
  35965. bool Load(const String&);
  35966. bool LoadFile(const String&);
  35967. operator Object() const;
  35968. void OnEvent(Object, StringHash, VariantMap&);
  35969. void Patch(XMLFile);
  35970. void Patch(const XMLElement&);
  35971. operator RefCounted() const;
  35972. int Refs() const;
  35973. void ResetUseTimer();
  35974. operator Resource() const;
  35975. bool Save(File) const;
  35976. bool Save(Serializer&) const;
  35977. bool Save(Serializer&, const String&) const;
  35978. bool Save(VectorBuffer&) const;
  35979. bool Save(const String&) const;
  35980. bool SaveFile(const String&) const;
  35981. void SendEvent(StringHash);
  35982. void SendEvent(StringHash, VariantMap&);
  35983. void SetAsyncLoadState(AsyncLoadState);
  35984. void SetBlockEvents(bool);
  35985. void SetGlobalVar(StringHash, const Variant&);
  35986. void SetMemoryUse(uint);
  35987. void SetName(const String&);
  35988. const String& GetCategory() const;
  35989. const String& GetName() const;
  35990. const String& GetTypeName() const;
  35991. String ToString(const String& = "\t") const;
  35992. void UnsubscribeFromAllEvents();
  35993. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35994. void UnsubscribeFromEvent(Object, StringHash);
  35995. void UnsubscribeFromEvent(StringHash);
  35996. void UnsubscribeFromEvents(Object);
  35997. const Variant& GetGlobalVar(StringHash) const;
  35998. const VariantMap& GetGlobalVars() const;
  35999. int WeakRefs() const;
  36000. operator const Object() const;
  36001. operator const RefCounted() const;
  36002. operator const Resource() const;
  36003. // Properties:
  36004. /* readonly */
  36005. String category;
  36006. Array<Variant> globalVar;
  36007. /* readonly */
  36008. VariantMap globalVars;
  36009. /* readonly */
  36010. uint memoryUse;
  36011. String name;
  36012. /* readonly */
  36013. int refs;
  36014. /* readonly */
  36015. XMLElement root;
  36016. /* readonly */
  36017. StringHash type;
  36018. /* readonly */
  36019. String typeName;
  36020. /* readonly */
  36021. uint useTimer;
  36022. /* readonly */
  36023. int weakRefs;
  36024. };
  36025. class XPathQuery
  36026. {
  36027. public:
  36028. ~XPathQuery();
  36029. XPathQuery();
  36030. XPathQuery(const String&in, const String&in = String :: EMPTY);
  36031. // Methods:
  36032. void Bind();
  36033. void Clear();
  36034. XPathResultSet Evaluate(const XMLElement&) const;
  36035. bool EvaluateToBool(const XMLElement&) const;
  36036. float EvaluateToFloat(const XMLElement&) const;
  36037. String EvaluateToString(const XMLElement&) const;
  36038. String GetQuery() const;
  36039. bool SetQuery(const String&, const String& = String :: EMPTY, bool = true);
  36040. bool SetVariable(const String&, bool);
  36041. bool SetVariable(const String&, const String&);
  36042. bool SetVariable(const String&, const XPathResultSet&);
  36043. bool SetVariable(const String&, float);
  36044. // Properties:
  36045. String query;
  36046. };
  36047. class XPathResultSet
  36048. {
  36049. public:
  36050. ~XPathResultSet();
  36051. XPathResultSet();
  36052. XPathResultSet(const XPathResultSet&in);
  36053. // Methods:
  36054. XPathResultSet& operator=(const XPathResultSet&);
  36055. XMLElement operator[](uint) const;
  36056. bool Empty() const;
  36057. XMLElement FirstResult();
  36058. uint Size() const;
  36059. // Properties:
  36060. /* readonly */
  36061. bool empty;
  36062. /* readonly */
  36063. XMLElement firstResult;
  36064. /* readonly */
  36065. uint size;
  36066. };
  36067. class Zone
  36068. {
  36069. public:
  36070. Zone();
  36071. // Methods:
  36072. void AddLight(Light);
  36073. void AddVertexLight(Light);
  36074. void AllocateNetworkState();
  36075. operator Animatable() const;
  36076. void ApplyAttributes();
  36077. const BoundingBox& GetBoundingBox() const;
  36078. const BoundingBox& GetWorldBoundingBox();
  36079. void CleanupConnection(Connection);
  36080. const Color& GetAmbientColor() const;
  36081. const Color& GetAmbientEndColor();
  36082. const Color& GetAmbientStartColor();
  36083. const Color& GetFogColor() const;
  36084. operator Component() const;
  36085. void DrawDebugGeometry(DebugRenderer, bool);
  36086. bool DrawOcclusion(OcclusionBuffer);
  36087. operator Drawable() const;
  36088. bool GetAmbientGradient() const;
  36089. bool GetAnimationEnabled() const;
  36090. Variant GetAttribute(const String&) const;
  36091. Variant GetAttribute(uint) const;
  36092. ValueAnimation GetAttributeAnimation(const String&) const;
  36093. float GetAttributeAnimationSpeed(const String&) const;
  36094. float GetAttributeAnimationTime(const String&) const;
  36095. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  36096. Variant GetAttributeDefault(const String&) const;
  36097. Variant GetAttributeDefault(uint) const;
  36098. bool GetBlockEvents() const;
  36099. bool GetCastShadows() const;
  36100. Component GetComponent(StringHash) const;
  36101. float GetDistance() const;
  36102. float GetDrawDistance() const;
  36103. uint8 GetDrawableFlags() const;
  36104. VariantMap& GetEventDataMap() const;
  36105. Object GetEventSender() const;
  36106. Light GetFirstLight() const;
  36107. float GetFogEnd() const;
  36108. float GetFogHeight() const;
  36109. float GetFogHeightScale() const;
  36110. float GetFogStart() const;
  36111. bool GetHeightFog() const;
  36112. uint GetID() const;
  36113. bool GetInterceptNetworkUpdate(const String&) const;
  36114. uint GetLightMask() const;
  36115. Array<Light> GetLights() const;
  36116. float GetLodBias() const;
  36117. float GetLodDistance() const;
  36118. Geometry GetLodGeometry(uint, uint);
  36119. uint GetMaxLights() const;
  36120. float GetMaxZ() const;
  36121. float GetMinZ() const;
  36122. Node GetNode() const;
  36123. uint GetNumAttributes() const;
  36124. uint GetNumNetworkAttributes() const;
  36125. uint GetNumOccluderTriangles();
  36126. ObjectAnimation GetObjectAnimation() const;
  36127. ResourceRef GetObjectAnimationAttr() const;
  36128. bool GetOverride() const;
  36129. int GetPriority() const;
  36130. Scene GetScene() const;
  36131. float GetShadowDistance() const;
  36132. uint GetShadowMask() const;
  36133. float GetSortValue() const;
  36134. Object GetSubsystem(StringHash) const;
  36135. StringHash GetType() const;
  36136. UpdateGeometryType GetUpdateGeometryType();
  36137. Array<Light> GetVertexLights() const;
  36138. uint GetViewMask() const;
  36139. Zone GetZone() const;
  36140. uint GetZoneMask() const;
  36141. Texture GetZoneTexture() const;
  36142. ResourceRef GetZoneTextureAttr() const;
  36143. bool HasBasePass(uint) const;
  36144. bool HasEventHandlers() const;
  36145. bool HasSubscribedToEvent(Object, StringHash) const;
  36146. bool HasSubscribedToEvent(StringHash) const;
  36147. bool IsEnabled() const;
  36148. bool IsEnabledEffective() const;
  36149. bool IsInView() const;
  36150. bool IsInView(Camera) const;
  36151. bool IsInView(const FrameInfo&, bool = false) const;
  36152. bool IsInside(const Vector3&) const;
  36153. bool IsInstanceOf(StringHash) const;
  36154. bool IsOccludee() const;
  36155. bool IsOccluder() const;
  36156. bool IsReplicated() const;
  36157. bool IsTemporary() const;
  36158. bool IsZoneDirty() const;
  36159. void LimitLights();
  36160. void LimitVertexLights(bool);
  36161. bool Load(Deserializer&);
  36162. bool LoadJSON(const JSONValue&);
  36163. bool LoadXML(const XMLElement&);
  36164. void MarkForUpdate();
  36165. void MarkInView(const FrameInfo&);
  36166. void MarkInView(uint);
  36167. void MarkNetworkUpdate();
  36168. const Matrix3x4& GetInverseWorldTransform() const;
  36169. operator Object() const;
  36170. void OnEvent(Object, StringHash, VariantMap&);
  36171. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  36172. void OnSetAttribute(const AttributeInfo&, const Variant&);
  36173. void OnSetEnabled();
  36174. void PrepareNetworkUpdate();
  36175. bool ReadDeltaUpdate(Deserializer&);
  36176. bool ReadLatestDataUpdate(Deserializer&);
  36177. operator RefCounted() const;
  36178. int Refs() const;
  36179. void Remove();
  36180. void RemoveAttributeAnimation(const String&);
  36181. void RemoveInstanceDefault();
  36182. void RemoveObjectAnimation();
  36183. void ResetToDefault();
  36184. bool Save(Serializer&) const;
  36185. bool SaveDefaultAttributes() const;
  36186. bool SaveJSON(JSONValue&) const;
  36187. bool SaveXML(XMLElement&) const;
  36188. void SendEvent(StringHash);
  36189. void SendEvent(StringHash, VariantMap&);
  36190. operator Serializable() const;
  36191. void SetAmbientColor(const Color&);
  36192. void SetAmbientGradient(bool);
  36193. void SetAnimationEnabled(bool);
  36194. void SetAnimationTime(float);
  36195. bool SetAttribute(const String&, const Variant&);
  36196. bool SetAttribute(uint, const Variant&);
  36197. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  36198. void SetAttributeAnimationSpeed(const String&, float);
  36199. void SetAttributeAnimationTime(const String&, float);
  36200. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  36201. void SetBasePass(uint);
  36202. void SetBlockEvents(bool);
  36203. void SetBoundingBox(const BoundingBox&);
  36204. void SetCastShadows(bool);
  36205. void SetDrawDistance(float);
  36206. void SetEnabled(bool);
  36207. void SetFogColor(const Color&);
  36208. void SetFogEnd(float);
  36209. void SetFogHeight(float);
  36210. void SetFogHeightScale(float);
  36211. void SetFogStart(float);
  36212. void SetGlobalVar(StringHash, const Variant&);
  36213. void SetHeightFog(bool);
  36214. void SetInstanceDefault(bool);
  36215. void SetInterceptNetworkUpdate(const String&, bool);
  36216. void SetLightMask(uint);
  36217. void SetLodBias(float);
  36218. void SetMaxLights(uint);
  36219. void SetMinMaxZ(float, float);
  36220. void SetObjectAnimation(ObjectAnimation);
  36221. void SetObjectAnimationAttr(const ResourceRef&);
  36222. void SetOccludee(bool);
  36223. void SetOccluder(bool);
  36224. void SetOverride(bool);
  36225. void SetPriority(int);
  36226. void SetShadowDistance(float);
  36227. void SetShadowMask(uint);
  36228. void SetSortValue(float);
  36229. void SetTemporary(bool);
  36230. void SetViewMask(uint);
  36231. void SetZone(Zone, bool = false);
  36232. void SetZoneMask(uint);
  36233. void SetZoneTexture(Texture);
  36234. void SetZoneTextureAttr(const ResourceRef&);
  36235. const String& GetCategory() const;
  36236. const String& GetTypeName() const;
  36237. void UnsubscribeFromAllEvents();
  36238. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  36239. void UnsubscribeFromEvent(Object, StringHash);
  36240. void UnsubscribeFromEvent(StringHash);
  36241. void UnsubscribeFromEvents(Object);
  36242. void Update(const FrameInfo&);
  36243. void UpdateBatches(const FrameInfo&);
  36244. void UpdateGeometry(const FrameInfo&);
  36245. const Variant& GetGlobalVar(StringHash) const;
  36246. const VariantMap& GetGlobalVars() const;
  36247. int WeakRefs() const;
  36248. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  36249. void WriteInitialDeltaUpdate(Serializer&, uint8);
  36250. void WriteLatestDataUpdate(Serializer&, uint8);
  36251. operator const Animatable() const;
  36252. operator const Component() const;
  36253. operator const Drawable() const;
  36254. operator const Object() const;
  36255. operator const RefCounted() const;
  36256. operator const Serializable() const;
  36257. // Properties:
  36258. Color ambientColor;
  36259. /* readonly */
  36260. Color ambientEndColor;
  36261. bool ambientGradient;
  36262. /* readonly */
  36263. Color ambientStartColor;
  36264. bool animationEnabled;
  36265. /* readonly */
  36266. Array<Variant> attributeDefaults;
  36267. /* readonly */
  36268. Array<AttributeInfo> attributeInfos;
  36269. Array<Variant> attributes;
  36270. BoundingBox boundingBox;
  36271. bool castShadows;
  36272. /* readonly */
  36273. String category;
  36274. float drawDistance;
  36275. bool enabled;
  36276. /* readonly */
  36277. bool enabledEffective;
  36278. Color fogColor;
  36279. float fogEnd;
  36280. float fogHeight;
  36281. float fogHeightScale;
  36282. float fogStart;
  36283. Array<Variant> globalVar;
  36284. /* readonly */
  36285. VariantMap globalVars;
  36286. bool heightFog;
  36287. /* readonly */
  36288. uint id;
  36289. /* readonly */
  36290. bool inView;
  36291. /* readonly */
  36292. Matrix3x4 inverseWorldTransform;
  36293. uint lightMask;
  36294. float lodBias;
  36295. uint maxLights;
  36296. /* readonly */
  36297. Node node;
  36298. /* readonly */
  36299. uint numAttributes;
  36300. ObjectAnimation objectAnimation;
  36301. bool occludee;
  36302. bool occluder;
  36303. bool override;
  36304. int priority;
  36305. /* readonly */
  36306. int refs;
  36307. /* readonly */
  36308. bool replicated;
  36309. float shadowDistance;
  36310. uint shadowMask;
  36311. bool temporary;
  36312. /* readonly */
  36313. StringHash type;
  36314. /* readonly */
  36315. String typeName;
  36316. uint viewMask;
  36317. /* readonly */
  36318. int weakRefs;
  36319. /* readonly */
  36320. BoundingBox worldBoundingBox;
  36321. /* readonly */
  36322. Zone zone;
  36323. uint zoneMask;
  36324. Texture zoneTexture;
  36325. };
  36326. // Enumerations
  36327. enum AnimationBlendMode
  36328. {
  36329. ABM_LERP,
  36330. ABM_ADDITIVE,
  36331. };
  36332. enum AsyncLoadState
  36333. {
  36334. ASYNC_DONE,
  36335. ASYNC_QUEUED,
  36336. ASYNC_LOADING,
  36337. ASYNC_SUCCESS,
  36338. ASYNC_FAIL,
  36339. };
  36340. enum AttributeMode
  36341. {
  36342. AM_EDIT,
  36343. AM_FILE,
  36344. AM_NET,
  36345. AM_DEFAULT,
  36346. AM_LATESTDATA,
  36347. AM_NOEDIT,
  36348. AM_NODEID,
  36349. AM_COMPONENTID,
  36350. AM_NODEIDVECTOR,
  36351. AM_FILEREADONLY,
  36352. };
  36353. enum AutoRemoveMode
  36354. {
  36355. REMOVE_DISABLED,
  36356. REMOVE_COMPONENT,
  36357. REMOVE_NODE,
  36358. };
  36359. enum BlendMode
  36360. {
  36361. BLEND_REPLACE,
  36362. BLEND_ADD,
  36363. BLEND_MULTIPLY,
  36364. BLEND_ALPHA,
  36365. BLEND_ADDALPHA,
  36366. BLEND_PREMULALPHA,
  36367. BLEND_INVDESTALPHA,
  36368. BLEND_SUBTRACT,
  36369. BLEND_SUBTRACTALPHA,
  36370. MAX_BLENDMODES,
  36371. };
  36372. enum BodyType2D
  36373. {
  36374. BT_STATIC,
  36375. BT_KINEMATIC,
  36376. BT_DYNAMIC,
  36377. };
  36378. enum CollisionEventMode
  36379. {
  36380. COLLISION_NEVER,
  36381. COLLISION_ACTIVE,
  36382. COLLISION_ALWAYS,
  36383. };
  36384. enum CompareMode
  36385. {
  36386. CMP_ALWAYS,
  36387. CMP_EQUAL,
  36388. CMP_NOTEQUAL,
  36389. CMP_LESS,
  36390. CMP_LESSEQUAL,
  36391. CMP_GREATER,
  36392. CMP_GREATEREQUAL,
  36393. MAX_COMPAREMODES,
  36394. };
  36395. enum CompressedFormat
  36396. {
  36397. CF_NONE,
  36398. CF_RGBA,
  36399. CF_DXT1,
  36400. CF_DXT3,
  36401. CF_DXT5,
  36402. CF_ETC1,
  36403. CF_ETC2_RGB,
  36404. CF_ETC2_RGBA,
  36405. CF_PVRTC_RGB_2BPP,
  36406. CF_PVRTC_RGBA_2BPP,
  36407. CF_PVRTC_RGB_4BPP,
  36408. CF_PVRTC_RGBA_4BPP,
  36409. };
  36410. enum ConstraintType
  36411. {
  36412. CONSTRAINT_POINT,
  36413. CONSTRAINT_HINGE,
  36414. CONSTRAINT_SLIDER,
  36415. CONSTRAINT_CONETWIST,
  36416. };
  36417. enum Corner
  36418. {
  36419. C_TOPLEFT,
  36420. C_TOPRIGHT,
  36421. C_BOTTOMLEFT,
  36422. C_BOTTOMRIGHT,
  36423. MAX_UIELEMENT_CORNERS,
  36424. };
  36425. enum CreateMode
  36426. {
  36427. REPLICATED,
  36428. LOCAL,
  36429. };
  36430. enum CrowdAgentRequestedTarget
  36431. {
  36432. CA_REQUESTEDTARGET_NONE,
  36433. CA_REQUESTEDTARGET_POSITION,
  36434. CA_REQUESTEDTARGET_VELOCITY,
  36435. };
  36436. enum CrowdAgentState
  36437. {
  36438. CA_STATE_INVALID,
  36439. CA_STATE_WALKING,
  36440. CA_STATE_OFFMESH,
  36441. };
  36442. enum CrowdAgentTargetState
  36443. {
  36444. CA_TARGET_NONE,
  36445. CA_TARGET_FAILED,
  36446. CA_TARGET_VALID,
  36447. CA_TARGET_REQUESTING,
  36448. CA_TARGET_WAITINGFORQUEUE,
  36449. CA_TARGET_WAITINGFORPATH,
  36450. CA_TARGET_VELOCITY,
  36451. };
  36452. enum CubeMapFace
  36453. {
  36454. FACE_POSITIVE_X,
  36455. FACE_NEGATIVE_X,
  36456. FACE_POSITIVE_Y,
  36457. FACE_NEGATIVE_Y,
  36458. FACE_POSITIVE_Z,
  36459. FACE_NEGATIVE_Z,
  36460. MAX_CUBEMAP_FACES,
  36461. };
  36462. enum CubeMapLayout
  36463. {
  36464. CML_HORIZONTAL,
  36465. CML_HORIZONTALNVIDIA,
  36466. CML_HORIZONTALCROSS,
  36467. CML_VERTICALCROSS,
  36468. CML_BLENDER,
  36469. };
  36470. enum CullMode
  36471. {
  36472. CULL_NONE,
  36473. CULL_CCW,
  36474. CULL_CW,
  36475. MAX_CULLMODES,
  36476. };
  36477. enum CursorShape
  36478. {
  36479. CS_NORMAL,
  36480. CS_IBEAM,
  36481. CS_CROSS,
  36482. CS_RESIZEVERTICAL,
  36483. CS_RESIZEDIAGONAL_TOPRIGHT,
  36484. CS_RESIZEHORIZONTAL,
  36485. CS_RESIZEDIAGONAL_TOPLEFT,
  36486. CS_RESIZE_ALL,
  36487. CS_ACCEPTDROP,
  36488. CS_REJECTDROP,
  36489. CS_BUSY,
  36490. CS_BUSY_ARROW,
  36491. CS_MAX_SHAPES,
  36492. };
  36493. enum DBAPI
  36494. {
  36495. DBAPI_SQLITE,
  36496. DBAPI_ODBC,
  36497. };
  36498. enum DeferredLightPSVariation
  36499. {
  36500. DLPS_NONE,
  36501. DLPS_SPOT,
  36502. DLPS_POINT,
  36503. DLPS_POINTMASK,
  36504. DLPS_SPEC,
  36505. DLPS_SPOTSPEC,
  36506. DLPS_POINTSPEC,
  36507. DLPS_POINTMASKSPEC,
  36508. DLPS_SHADOW,
  36509. DLPS_SPOTSHADOW,
  36510. DLPS_POINTSHADOW,
  36511. DLPS_POINTMASKSHADOW,
  36512. DLPS_SHADOWSPEC,
  36513. DLPS_SPOTSHADOWSPEC,
  36514. DLPS_POINTSHADOWSPEC,
  36515. DLPS_POINTMASKSHADOWSPEC,
  36516. DLPS_SHADOWNORMALOFFSET,
  36517. DLPS_SPOTSHADOWNORMALOFFSET,
  36518. DLPS_POINTSHADOWNORMALOFFSET,
  36519. DLPS_POINTMASKSHADOWNORMALOFFSET,
  36520. DLPS_SHADOWSPECNORMALOFFSET,
  36521. DLPS_SPOTSHADOWSPECNORMALOFFSET,
  36522. DLPS_POINTSHADOWSPECNORMALOFFSET,
  36523. DLPS_POINTMASKSHADOWSPECNORMALOFFSET,
  36524. DLPS_ORTHO,
  36525. DLPS_ORTHOSPOT,
  36526. DLPS_ORTHOPOINT,
  36527. DLPS_ORTHOPOINTMASK,
  36528. DLPS_ORTHOSPEC,
  36529. DLPS_ORTHOSPOTSPEC,
  36530. DLPS_ORTHOPOINTSPEC,
  36531. DLPS_ORTHOPOINTMASKSPEC,
  36532. DLPS_ORTHOSHADOW,
  36533. DLPS_ORTHOSPOTSHADOW,
  36534. DLPS_ORTHOPOINTSHADOW,
  36535. DLPS_ORTHOPOINTMASKSHADOW,
  36536. DLPS_ORTHOSHADOWSPEC,
  36537. DLPS_ORTHOSPOTSHADOWSPEC,
  36538. DLPS_ORTHOPOINTSHADOWSPEC,
  36539. DLPS_ORTHOPOINTMASKSHADOWSPEC,
  36540. DLPS_ORTHOSHADOWNORMALOFFSET,
  36541. DLPS_ORTHOSPOTSHADOWNORMALOFFSET,
  36542. DLPS_ORTHOPOINTSHADOWNORMALOFFSET,
  36543. DLPS_ORTHOPOINTMASKSHADOWNORMALOFFSET,
  36544. DLPS_ORTHOSHADOWSPECNORMALOFFSET,
  36545. DLPS_ORTHOSPOTSHADOWSPECNORMALOFFSET,
  36546. DLPS_ORTHOPOINTSHADOWSPECNORMALOFFSET,
  36547. DLPS_ORTHOPOINTMASKSHADOWSPECNORMALOFFSET,
  36548. MAX_DEFERRED_LIGHT_PS_VARIATIONS,
  36549. };
  36550. enum DeferredLightVSVariation
  36551. {
  36552. DLVS_NONE,
  36553. DLVS_DIR,
  36554. DLVS_ORTHO,
  36555. DLVS_ORTHODIR,
  36556. MAX_DEFERRED_LIGHT_VS_VARIATIONS,
  36557. };
  36558. enum DumpMode
  36559. {
  36560. DOXYGEN,
  36561. C_HEADER,
  36562. };
  36563. enum EmitterType
  36564. {
  36565. EMITTER_SPHERE,
  36566. EMITTER_BOX,
  36567. EMITTER_SPHEREVOLUME,
  36568. EMITTER_CYLINDER,
  36569. EMITTER_RING,
  36570. };
  36571. enum EmitterType2D
  36572. {
  36573. EMITTER_TYPE_GRAVITY,
  36574. EMITTER_TYPE_RADIAL,
  36575. };
  36576. enum FaceCameraMode
  36577. {
  36578. FC_NONE,
  36579. FC_ROTATE_XYZ,
  36580. FC_ROTATE_Y,
  36581. FC_LOOKAT_XYZ,
  36582. FC_LOOKAT_Y,
  36583. FC_LOOKAT_MIXED,
  36584. FC_DIRECTION,
  36585. };
  36586. enum FileMode
  36587. {
  36588. FILE_READ,
  36589. FILE_WRITE,
  36590. FILE_READWRITE,
  36591. };
  36592. enum FillMode
  36593. {
  36594. FILL_SOLID,
  36595. FILL_WIREFRAME,
  36596. FILL_POINT,
  36597. };
  36598. enum FocusMode
  36599. {
  36600. FM_NOTFOCUSABLE,
  36601. FM_RESETFOCUS,
  36602. FM_FOCUSABLE,
  36603. FM_FOCUSABLE_DEFOCUSABLE,
  36604. };
  36605. enum FontHintLevel
  36606. {
  36607. FONT_HINT_LEVEL_NONE,
  36608. FONT_HINT_LEVEL_LIGHT,
  36609. FONT_HINT_LEVEL_NORMAL,
  36610. };
  36611. enum FontType
  36612. {
  36613. FONT_NONE,
  36614. FONT_FREETYPE,
  36615. FONT_BITMAP,
  36616. MAX_FONT_TYPES,
  36617. };
  36618. enum FrustumPlane
  36619. {
  36620. PLANE_NEAR,
  36621. PLANE_LEFT,
  36622. PLANE_RIGHT,
  36623. PLANE_UP,
  36624. PLANE_DOWN,
  36625. PLANE_FAR,
  36626. };
  36627. enum GAPI
  36628. {
  36629. GAPI_NONE,
  36630. GAPI_OPENGL,
  36631. GAPI_D3D9,
  36632. GAPI_D3D11,
  36633. };
  36634. enum GeometryType
  36635. {
  36636. GEOM_STATIC,
  36637. GEOM_SKINNED,
  36638. GEOM_INSTANCED,
  36639. GEOM_BILLBOARD,
  36640. GEOM_DIRBILLBOARD,
  36641. GEOM_TRAIL_FACE_CAMERA,
  36642. GEOM_TRAIL_BONE,
  36643. MAX_GEOMETRYTYPES,
  36644. GEOM_STATIC_NOINSTANCING,
  36645. };
  36646. enum HighlightMode
  36647. {
  36648. HM_NEVER,
  36649. HM_FOCUS,
  36650. HM_ALWAYS,
  36651. };
  36652. enum HorizontalAlignment
  36653. {
  36654. HA_LEFT,
  36655. HA_CENTER,
  36656. HA_RIGHT,
  36657. HA_CUSTOM,
  36658. };
  36659. enum HttpRequestState
  36660. {
  36661. HTTP_INITIALIZING,
  36662. HTTP_ERROR,
  36663. HTTP_OPEN,
  36664. HTTP_CLOSED,
  36665. };
  36666. enum IKAlgorithm
  36667. {
  36668. ONE_BONE,
  36669. TWO_BONE,
  36670. FABRIK,
  36671. };
  36672. enum IKFeature
  36673. {
  36674. JOINT_ROTATIONS,
  36675. TARGET_ROTATIONS,
  36676. UPDATE_ORIGINAL_POSE,
  36677. UPDATE_ACTIVE_POSE,
  36678. USE_ORIGINAL_POSE,
  36679. CONSTRAINTS,
  36680. AUTO_SOLVE,
  36681. };
  36682. enum InterpMethod
  36683. {
  36684. IM_NONE,
  36685. IM_LINEAR,
  36686. IM_SPLINE,
  36687. };
  36688. enum InterpolationMode
  36689. {
  36690. BEZIER_CURVE,
  36691. CATMULL_ROM_CURVE,
  36692. LINEAR_CURVE,
  36693. CATMULL_ROM_FULL_CURVE,
  36694. };
  36695. enum Intersection
  36696. {
  36697. OUTSIDE,
  36698. INTERSECTS,
  36699. INSIDE,
  36700. };
  36701. enum JSONNumberType
  36702. {
  36703. JSONNT_NAN,
  36704. JSONNT_INT,
  36705. JSONNT_UINT,
  36706. JSONNT_FLOAT_DOUBLE,
  36707. };
  36708. enum JSONValueType
  36709. {
  36710. JSON_NULL,
  36711. JSON_BOOL,
  36712. JSON_NUMBER,
  36713. JSON_STRING,
  36714. JSON_ARRAY,
  36715. JSON_OBJECT,
  36716. };
  36717. enum LayoutMode
  36718. {
  36719. LM_FREE,
  36720. LM_HORIZONTAL,
  36721. LM_VERTICAL,
  36722. };
  36723. enum LegacyVertexElement
  36724. {
  36725. ELEMENT_POSITION,
  36726. ELEMENT_NORMAL,
  36727. ELEMENT_COLOR,
  36728. ELEMENT_TEXCOORD1,
  36729. ELEMENT_TEXCOORD2,
  36730. ELEMENT_CUBETEXCOORD1,
  36731. ELEMENT_CUBETEXCOORD2,
  36732. ELEMENT_TANGENT,
  36733. ELEMENT_BLENDWEIGHTS,
  36734. ELEMENT_BLENDINDICES,
  36735. ELEMENT_INSTANCEMATRIX1,
  36736. ELEMENT_INSTANCEMATRIX2,
  36737. ELEMENT_INSTANCEMATRIX3,
  36738. ELEMENT_OBJECTINDEX,
  36739. MAX_LEGACY_VERTEX_ELEMENTS,
  36740. };
  36741. enum LightPSVariation
  36742. {
  36743. LPS_NONE,
  36744. LPS_SPOT,
  36745. LPS_POINT,
  36746. LPS_POINTMASK,
  36747. LPS_SPEC,
  36748. LPS_SPOTSPEC,
  36749. LPS_POINTSPEC,
  36750. LPS_POINTMASKSPEC,
  36751. LPS_SHADOW,
  36752. LPS_SPOTSHADOW,
  36753. LPS_POINTSHADOW,
  36754. LPS_POINTMASKSHADOW,
  36755. LPS_SHADOWSPEC,
  36756. LPS_SPOTSHADOWSPEC,
  36757. LPS_POINTSHADOWSPEC,
  36758. LPS_POINTMASKSHADOWSPEC,
  36759. MAX_LIGHT_PS_VARIATIONS,
  36760. };
  36761. enum LightType
  36762. {
  36763. LIGHT_DIRECTIONAL,
  36764. LIGHT_SPOT,
  36765. LIGHT_POINT,
  36766. };
  36767. enum LightVSVariation
  36768. {
  36769. LVS_DIR,
  36770. LVS_SPOT,
  36771. LVS_POINT,
  36772. LVS_SHADOW,
  36773. LVS_SPOTSHADOW,
  36774. LVS_POINTSHADOW,
  36775. LVS_SHADOWNORMALOFFSET,
  36776. LVS_SPOTSHADOWNORMALOFFSET,
  36777. LVS_POINTSHADOWNORMALOFFSET,
  36778. MAX_LIGHT_VS_VARIATIONS,
  36779. };
  36780. enum LoadMode
  36781. {
  36782. LOAD_RESOURCES_ONLY,
  36783. LOAD_SCENE,
  36784. LOAD_SCENE_AND_RESOURCES,
  36785. };
  36786. enum LockState
  36787. {
  36788. LOCK_NONE,
  36789. LOCK_HARDWARE,
  36790. LOCK_SHADOW,
  36791. LOCK_SCRATCH,
  36792. };
  36793. enum LoopMode2D
  36794. {
  36795. LM_DEFAULT,
  36796. LM_FORCE_LOOPED,
  36797. LM_FORCE_CLAMPED,
  36798. };
  36799. enum MouseMode
  36800. {
  36801. MM_ABSOLUTE,
  36802. MM_RELATIVE,
  36803. MM_WRAP,
  36804. MM_FREE,
  36805. MM_INVALID,
  36806. };
  36807. enum NavigationPathPointFlag
  36808. {
  36809. NAVPATHFLAG_NONE,
  36810. NAVPATHFLAG_START,
  36811. NAVPATHFLAG_END,
  36812. NAVPATHFLAG_OFF_MESH,
  36813. };
  36814. enum NavigationPushiness
  36815. {
  36816. NAVIGATIONPUSHINESS_LOW,
  36817. NAVIGATIONPUSHINESS_MEDIUM,
  36818. NAVIGATIONPUSHINESS_HIGH,
  36819. NAVIGATIONPUSHINESS_NONE,
  36820. };
  36821. enum NavigationQuality
  36822. {
  36823. NAVIGATIONQUALITY_LOW,
  36824. NAVIGATIONQUALITY_MEDIUM,
  36825. NAVIGATIONQUALITY_HIGH,
  36826. };
  36827. enum NavmeshPartitionType
  36828. {
  36829. NAVMESH_PARTITION_WATERSHED,
  36830. NAVMESH_PARTITION_MONOTONE,
  36831. };
  36832. enum ObserverPositionSendMode
  36833. {
  36834. OPSM_NONE,
  36835. OPSM_POSITION,
  36836. OPSM_POSITION_ROTATION,
  36837. };
  36838. enum Orientation
  36839. {
  36840. O_HORIZONTAL,
  36841. O_VERTICAL,
  36842. };
  36843. enum Orientation2D
  36844. {
  36845. O_ORTHOGONAL,
  36846. O_ISOMETRIC,
  36847. O_STAGGERED,
  36848. O_HEXAGONAL,
  36849. };
  36850. enum PacketType
  36851. {
  36852. PT_UNRELIABLE_UNORDERED,
  36853. PT_UNRELIABLE_ORDERED,
  36854. PT_RELIABLE_UNORDERED,
  36855. PT_RELIABLE_ORDERED,
  36856. };
  36857. enum PassLightingMode
  36858. {
  36859. LIGHTING_UNLIT,
  36860. LIGHTING_PERVERTEX,
  36861. LIGHTING_PERPIXEL,
  36862. };
  36863. enum PrimitiveType
  36864. {
  36865. TRIANGLE_LIST,
  36866. LINE_LIST,
  36867. POINT_LIST,
  36868. TRIANGLE_STRIP,
  36869. LINE_STRIP,
  36870. TRIANGLE_FAN,
  36871. };
  36872. enum RayQueryLevel
  36873. {
  36874. RAY_AABB,
  36875. RAY_OBB,
  36876. RAY_TRIANGLE,
  36877. RAY_TRIANGLE_UV,
  36878. };
  36879. enum RenderCommandSortMode
  36880. {
  36881. SORT_FRONTTOBACK,
  36882. SORT_BACKTOFRONT,
  36883. };
  36884. enum RenderCommandType
  36885. {
  36886. CMD_NONE,
  36887. CMD_CLEAR,
  36888. CMD_SCENEPASS,
  36889. CMD_QUAD,
  36890. CMD_FORWARDLIGHTS,
  36891. CMD_LIGHTVOLUMES,
  36892. CMD_RENDERUI,
  36893. CMD_SENDEVENT,
  36894. };
  36895. enum RenderSurfaceUpdateMode
  36896. {
  36897. SURFACE_MANUALUPDATE,
  36898. SURFACE_UPDATEVISIBLE,
  36899. SURFACE_UPDATEALWAYS,
  36900. };
  36901. enum RenderTargetSizeMode
  36902. {
  36903. SIZE_ABSOLUTE,
  36904. SIZE_VIEWPORTDIVISOR,
  36905. SIZE_VIEWPORTMULTIPLIER,
  36906. };
  36907. enum ResourceRequest
  36908. {
  36909. RESOURCE_CHECKEXISTS,
  36910. RESOURCE_GETFILE,
  36911. };
  36912. enum ShaderParameterGroup
  36913. {
  36914. SP_FRAME,
  36915. SP_CAMERA,
  36916. SP_ZONE,
  36917. SP_LIGHT,
  36918. SP_MATERIAL,
  36919. SP_OBJECT,
  36920. SP_CUSTOM,
  36921. MAX_SHADER_PARAMETER_GROUPS,
  36922. };
  36923. enum ShaderType
  36924. {
  36925. VS,
  36926. PS,
  36927. };
  36928. enum ShadowQuality
  36929. {
  36930. SHADOWQUALITY_SIMPLE_16BIT,
  36931. SHADOWQUALITY_SIMPLE_24BIT,
  36932. SHADOWQUALITY_PCF_16BIT,
  36933. SHADOWQUALITY_PCF_24BIT,
  36934. SHADOWQUALITY_VSM,
  36935. SHADOWQUALITY_BLUR_VSM,
  36936. };
  36937. enum ShapeType
  36938. {
  36939. SHAPE_BOX,
  36940. SHAPE_SPHERE,
  36941. SHAPE_STATICPLANE,
  36942. SHAPE_CYLINDER,
  36943. SHAPE_CAPSULE,
  36944. SHAPE_CONE,
  36945. SHAPE_TRIANGLEMESH,
  36946. SHAPE_CONVEXHULL,
  36947. SHAPE_TERRAIN,
  36948. SHAPE_GIMPACTMESH,
  36949. };
  36950. enum StencilOp
  36951. {
  36952. OP_KEEP,
  36953. OP_ZERO,
  36954. OP_REF,
  36955. OP_INCR,
  36956. OP_DECR,
  36957. };
  36958. enum TextEffect
  36959. {
  36960. TE_NONE,
  36961. TE_SHADOW,
  36962. TE_STROKE,
  36963. };
  36964. enum TextureAddressMode
  36965. {
  36966. ADDRESS_WRAP,
  36967. ADDRESS_MIRROR,
  36968. ADDRESS_CLAMP,
  36969. ADDRESS_BORDER,
  36970. MAX_ADDRESSMODES,
  36971. };
  36972. enum TextureCoordinate
  36973. {
  36974. COORD_U,
  36975. COORD_V,
  36976. COORD_W,
  36977. MAX_COORDS,
  36978. };
  36979. enum TextureFilterMode
  36980. {
  36981. FILTER_NEAREST,
  36982. FILTER_BILINEAR,
  36983. FILTER_TRILINEAR,
  36984. FILTER_ANISOTROPIC,
  36985. FILTER_NEAREST_ANISOTROPIC,
  36986. FILTER_DEFAULT,
  36987. MAX_FILTERMODES,
  36988. };
  36989. enum TextureUnit
  36990. {
  36991. TU_DIFFUSE,
  36992. TU_ALBEDOBUFFER,
  36993. TU_NORMAL,
  36994. TU_NORMALBUFFER,
  36995. TU_SPECULAR,
  36996. TU_EMISSIVE,
  36997. TU_ENVIRONMENT,
  36998. TU_LIGHTRAMP,
  36999. TU_LIGHTSHAPE,
  37000. TU_SHADOWMAP,
  37001. TU_VOLUMEMAP,
  37002. TU_CUSTOM1,
  37003. TU_CUSTOM2,
  37004. TU_FACESELECT,
  37005. TU_INDIRECTION,
  37006. TU_DEPTHBUFFER,
  37007. TU_LIGHTBUFFER,
  37008. TU_ZONE,
  37009. MAX_MATERIAL_TEXTURE_UNITS,
  37010. MAX_TEXTURE_UNITS,
  37011. };
  37012. enum TextureUsage
  37013. {
  37014. TEXTURE_STATIC,
  37015. TEXTURE_DYNAMIC,
  37016. TEXTURE_RENDERTARGET,
  37017. TEXTURE_DEPTHSTENCIL,
  37018. };
  37019. enum TileMapLayerType2D
  37020. {
  37021. LT_TILE_LAYER,
  37022. LT_OBJECT_GROUP,
  37023. LT_IMAGE_LAYER,
  37024. LT_INVALID,
  37025. };
  37026. enum TileMapObjectType2D
  37027. {
  37028. OT_RECTANGLE,
  37029. OT_ELLIPSE,
  37030. OT_POLYGON,
  37031. OT_POLYLINE,
  37032. OT_TILE,
  37033. OT_INVALID,
  37034. };
  37035. enum TrailType
  37036. {
  37037. TT_FACE_CAMERA,
  37038. TT_BONE,
  37039. };
  37040. enum TransformSpace
  37041. {
  37042. TS_LOCAL,
  37043. TS_PARENT,
  37044. TS_WORLD,
  37045. };
  37046. enum TraversalMode
  37047. {
  37048. TM_BREADTH_FIRST,
  37049. TM_DEPTH_FIRST,
  37050. };
  37051. enum UpdateGeometryType
  37052. {
  37053. UPDATE_NONE,
  37054. UPDATE_MAIN_THREAD,
  37055. UPDATE_WORKER_THREAD,
  37056. };
  37057. enum VariantType
  37058. {
  37059. VAR_NONE,
  37060. VAR_INT,
  37061. VAR_BOOL,
  37062. VAR_FLOAT,
  37063. VAR_VECTOR2,
  37064. VAR_VECTOR3,
  37065. VAR_VECTOR4,
  37066. VAR_QUATERNION,
  37067. VAR_COLOR,
  37068. VAR_STRING,
  37069. VAR_BUFFER,
  37070. VAR_VOIDPTR,
  37071. VAR_RESOURCEREF,
  37072. VAR_RESOURCEREFLIST,
  37073. VAR_VARIANTVECTOR,
  37074. VAR_VARIANTMAP,
  37075. VAR_INTRECT,
  37076. VAR_INTVECTOR2,
  37077. VAR_PTR,
  37078. VAR_MATRIX3,
  37079. VAR_MATRIX3X4,
  37080. VAR_MATRIX4,
  37081. VAR_DOUBLE,
  37082. VAR_STRINGVECTOR,
  37083. VAR_RECT,
  37084. VAR_INTVECTOR3,
  37085. VAR_INT64,
  37086. VAR_CUSTOM_HEAP,
  37087. VAR_CUSTOM_STACK,
  37088. MAX_VAR_TYPES,
  37089. };
  37090. enum VertexElementSemantic
  37091. {
  37092. SEM_POSITION,
  37093. SEM_NORMAL,
  37094. SEM_BINORMAL,
  37095. SEM_TANGENT,
  37096. SEM_TEXCOORD,
  37097. SEM_COLOR,
  37098. SEM_BLENDWEIGHTS,
  37099. SEM_BLENDINDICES,
  37100. SEM_OBJECTINDEX,
  37101. MAX_VERTEX_ELEMENT_SEMANTICS,
  37102. };
  37103. enum VertexElementType
  37104. {
  37105. TYPE_INT,
  37106. TYPE_FLOAT,
  37107. TYPE_VECTOR2,
  37108. TYPE_VECTOR3,
  37109. TYPE_VECTOR4,
  37110. TYPE_UBYTE4,
  37111. TYPE_UBYTE4_NORM,
  37112. MAX_VERTEX_ELEMENT_TYPES,
  37113. };
  37114. enum VertexLightVSVariation
  37115. {
  37116. VLVS_NOLIGHTS,
  37117. VLVS_1LIGHT,
  37118. VLVS_2LIGHTS,
  37119. VLVS_3LIGHTS,
  37120. VLVS_4LIGHTS,
  37121. MAX_VERTEXLIGHT_VS_VARIATIONS,
  37122. };
  37123. enum VerticalAlignment
  37124. {
  37125. VA_TOP,
  37126. VA_CENTER,
  37127. VA_BOTTOM,
  37128. VA_CUSTOM,
  37129. };
  37130. enum WindowDragMode
  37131. {
  37132. DRAG_NONE,
  37133. DRAG_MOVE,
  37134. DRAG_RESIZE_TOPLEFT,
  37135. DRAG_RESIZE_TOP,
  37136. DRAG_RESIZE_TOPRIGHT,
  37137. DRAG_RESIZE_RIGHT,
  37138. DRAG_RESIZE_BOTTOMRIGHT,
  37139. DRAG_RESIZE_BOTTOM,
  37140. DRAG_RESIZE_BOTTOMLEFT,
  37141. DRAG_RESIZE_LEFT,
  37142. };
  37143. enum WrapMode
  37144. {
  37145. WM_LOOP,
  37146. WM_ONCE,
  37147. WM_CLAMP,
  37148. };
  37149. // Global functions
  37150. BigInt Abs(const BigInt&);
  37151. float Abs(float);
  37152. float Acos(float);
  37153. String AddTrailingSlash(const String&);
  37154. float Asin(float);
  37155. float Atan(float);
  37156. float Atan2(float, float);
  37157. float Ceil(float);
  37158. int CeilToInt(float);
  37159. uint CheckMaxLevels(int, int, int, uint);
  37160. uint CheckMaxLevels(int, int, int, uint);
  37161. uint CheckMaxLevels(int, int, int, uint);
  37162. uint CheckMaxLevels(int, int, int, uint);
  37163. uint CheckMaxLevels(int, int, int, uint);
  37164. uint CheckMaxLevels(int, int, uint);
  37165. uint CheckMaxLevels(int, int, uint);
  37166. uint CheckMaxLevels(int, int, uint);
  37167. uint CheckMaxLevels(int, int, uint);
  37168. uint CheckMaxLevels(int, int, uint);
  37169. float Clamp(float, float, float);
  37170. int Clamp(int, int, int);
  37171. void ClearDelayedExecute(const String& declaration = String ( ));
  37172. uint ClosestPowerOfTwo(uint);
  37173. void CombineHash(uint&, uint);
  37174. bool CompareDrawables(Drawable, Drawable);
  37175. bool CompareLights(Light, Light);
  37176. bool CompressStream(Serializer&, Deserializer&);
  37177. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  37178. float ConvertGammaToLinear(float);
  37179. float ConvertLinearToGamma(float);
  37180. float Cos(float);
  37181. uint CountSetBits(uint);
  37182. Object CreateObject(const String&);
  37183. bool DecompressStream(Serializer&, Deserializer&);
  37184. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  37185. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  37186. bool Equals(float, float);
  37187. void ErrorDialog(const String&, const String&);
  37188. void ErrorExit(const String& = String :: EMPTY, int = EXIT_FAILURE);
  37189. uint EstimateCompressBound(uint);
  37190. uint16 FloatToHalf(float);
  37191. uint FloatToRawIntBits(float);
  37192. float Floor(float);
  37193. int FloorToInt(float);
  37194. float Fract(float);
  37195. DBAPI GetAPI();
  37196. View GetActualView(View);
  37197. uint GetAlphaFormat();
  37198. Array<String> GetArguments();
  37199. String GetConsoleInput();
  37200. uint GetDepthStencilFormat();
  37201. uint GetElementOffset(Array<VertexElement>, VertexElementType, VertexElementSemantic, uint8 = 0);
  37202. Array<VertexElement> GetElements(uint);
  37203. StringHashRegister& GetEventNameRegister();
  37204. Object GetEventSender();
  37205. String GetExtension(const String&, bool = true);
  37206. String GetFileName(const String&);
  37207. String GetFileNameAndExtension(const String&, bool = false);
  37208. String GetFileSizeString(uint64);
  37209. uint GetFloat16Format();
  37210. uint GetFloat32Format();
  37211. uint GetFormat(const String&);
  37212. int64 GetFrequency();
  37213. Matrix3x4 GetFullscreenQuadTransform(Camera);
  37214. GAPI GetGAPI();
  37215. bool GetGL3Support();
  37216. Variant GetGlobalVar(const String&);
  37217. String GetHostName();
  37218. String GetInternalPath(const String&);
  37219. uint GetLinearDepthFormat();
  37220. String GetLoginName();
  37221. uint GetLuminanceAlphaFormat();
  37222. uint GetLuminanceFormat();
  37223. uint GetMaxBones();
  37224. String GetMiniDumpDir();
  37225. String GetNativePath(const String&);
  37226. uint GetNumLogicalCPUs();
  37227. uint GetNumPhysicalCPUs();
  37228. JSONNumberType GetNumberTypeFromName(const String&);
  37229. String GetNumberTypeName(JSONNumberType);
  37230. String GetOSVersion();
  37231. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  37232. Array<String> GetObjectCategories();
  37233. Array<String> GetObjectsByCategory(const String&);
  37234. String GetParentPath(const String&);
  37235. uint GetPassIndex(const String&);
  37236. String GetPath(const String&);
  37237. String GetPlatform();
  37238. uint GetRG16Format();
  37239. uint GetRGBA16Format();
  37240. uint GetRGBAFloat16Format();
  37241. uint GetRGBAFloat32Format();
  37242. uint GetRGBAFormat();
  37243. uint GetRGBFormat();
  37244. uint GetRGFloat16Format();
  37245. uint GetRGFloat32Format();
  37246. uint GetRandomSeed();
  37247. uint GetReadableDepthFormat();
  37248. ResourceRef GetResourceRef(Resource, StringHash);
  37249. StringHash GetResourceType(Resource, StringHash);
  37250. uint GetSystemTime();
  37251. String GetTextureUnitName(TextureUnit);
  37252. uint GetTimeSinceEpoch();
  37253. String GetTimeStamp();
  37254. uint64 GetTotalMemory();
  37255. VariantType GetTypeFromName(const String&);
  37256. String GetTypeName(VariantType);
  37257. JSONValueType GetValueTypeFromName(const String&);
  37258. String GetValueTypeName(JSONValueType);
  37259. VariantType GetVariantTypeFromName(const String&);
  37260. String GetVariantTypeName(VariantType);
  37261. uint GetVertexSize(Array<VertexElement>);
  37262. uint GetVertexSize(uint);
  37263. float HalfToFloat(uint16);
  37264. bool HasElement(Array<VertexElement>, VertexElementType, VertexElementSemantic, uint8 = 0);
  37265. bool HasParameter(const VariantMap&, const String&);
  37266. bool HasSubscribedToEvent(Object, const String&);
  37267. bool HasSubscribedToEvent(const String&);
  37268. void InitFPU();
  37269. float InverseLerp(float, float, float);
  37270. bool IsAbsolutePath(const String&);
  37271. bool IsActive();
  37272. bool IsAlpha(uint);
  37273. bool IsDigit(uint);
  37274. bool IsMainThread();
  37275. bool IsMainThread();
  37276. bool IsNaN(double);
  37277. bool IsNaN(float);
  37278. bool IsPowerOfTwo(uint);
  37279. bool IsReplicatedID(uint);
  37280. bool IsSupported();
  37281. String Join(Array<String>&, const String& glue);
  37282. float Lerp(float, float, float);
  37283. float Ln(float);
  37284. Sprite2D LoadFromResourceRef(Object, const ResourceRef&);
  37285. void LoadShaders(Graphics, Deserializer&);
  37286. uint LogBaseTwo(uint);
  37287. void MarkNetworkUpdate();
  37288. float Max(float, float);
  37289. int Max(int, int);
  37290. float Min(float, float);
  37291. int Min(int, int);
  37292. float Mod(float, float);
  37293. uint NextPowerOfTwo(uint);
  37294. void OpenConsoleWindow();
  37295. Array<String> ParseArguments(const String&, bool = true);
  37296. VariantMap ParseParameters(Array<String>);
  37297. Variant ParseShaderParameterValue(const String&);
  37298. float Pow(float, float);
  37299. void Print(bool, bool error = false);
  37300. void Print(const String&, bool error = false);
  37301. void Print(const Variant&, bool error = false);
  37302. void Print(float, bool error = false);
  37303. void Print(int, bool error = false);
  37304. void Print(int64, bool error = false);
  37305. void Print(uint, bool error = false);
  37306. void Print(uint64, bool error = false);
  37307. void PrintCallStack(bool error = false);
  37308. void PrintLine(const String&, bool = false);
  37309. void PrintUnicode(const String&, bool = false);
  37310. void PrintUnicodeLine(const String&, bool = false);
  37311. int Rand();
  37312. float RandStandardNormal();
  37313. float Random();
  37314. float Random(float);
  37315. float Random(float, float);
  37316. int Random(int);
  37317. int Random(int, int);
  37318. int RandomInt();
  37319. int RandomInt(int);
  37320. int RandomInt(int, int);
  37321. float RandomNormal(float, float);
  37322. void RegisterEventName(const String&);
  37323. void Remove();
  37324. String RemoveTrailingSlash(const String&);
  37325. String ReplaceExtension(const String&, const String&);
  37326. float Round(float);
  37327. int RoundToInt(float);
  37328. uint SDBMHash(uint, uint8);
  37329. ResourceRef SaveToResourceRef(Sprite2D);
  37330. void SendEvent(const String&, VariantMap& eventData = VariantMap ( ));
  37331. void SetActive(bool);
  37332. void SetGlobalVar(const String&, Variant&);
  37333. void SetMainThread();
  37334. void SetMainThread();
  37335. void SetMiniDumpDir(const String&);
  37336. void SetRandomSeed(uint);
  37337. float Sign(float);
  37338. float Sin(float);
  37339. void SinCos(float, float&, float&);
  37340. void Sleep(uint);
  37341. float SmoothStep(float, float, float);
  37342. void SplitPath(const String&, String&, String&, String&, bool = true);
  37343. float Sqrt(float);
  37344. float StableRandom(const Vector2&);
  37345. float StableRandom(const Vector3&);
  37346. float StableRandom(float);
  37347. const String& GetResourceName(Resource);
  37348. const String& GetTypeName(StringHash);
  37349. void SubscribeToEvent(Object, const String&, const String&);
  37350. void SubscribeToEvent(const String&, const String&);
  37351. float Tan(float);
  37352. bool ToBool(const String&);
  37353. Color ToColor(const String&);
  37354. double ToDouble(const String&);
  37355. float ToFloat(const String&);
  37356. int ToInt(const String&, int = 10);
  37357. int64 ToInt64(const String&, int = 10);
  37358. IntRect ToIntRect(const String&);
  37359. IntVector2 ToIntVector2(const String&);
  37360. IntVector3 ToIntVector3(const String&);
  37361. uint ToLower(uint);
  37362. Matrix3 ToMatrix3(const String&);
  37363. Matrix3x4 ToMatrix3x4(const String&);
  37364. Matrix4 ToMatrix4(const String&);
  37365. Quaternion ToQuaternion(const String&);
  37366. Rect ToRect(const String&);
  37367. String ToStringHex(uint);
  37368. uint ToUInt(const String&, int = 10);
  37369. uint64 ToUInt64(const String&, int = 10);
  37370. uint ToUpper(uint);
  37371. Vector2 ToVector2(const String&);
  37372. Vector3 ToVector3(const String&);
  37373. Vector4 ToVector4(const String&, bool = false);
  37374. Variant ToVectorVariant(const String&);
  37375. void UnsubscribeFromAllEvents();
  37376. void UnsubscribeFromAllEventsExcept(Array<String>);
  37377. void UnsubscribeFromEvent(Object, const String&);
  37378. void UnsubscribeFromEvent(const String&);
  37379. void UnsubscribeFromEvents(Object);
  37380. const Variant& GetParameter(const VariantMap&, const String&, const Variant& = Variant :: EMPTY);
  37381. const Vector2& GetPixelUVOffset();
  37382. IntVector2 VectorAbs(const IntVector2&);
  37383. IntVector3 VectorAbs(const IntVector3&);
  37384. Vector2 VectorAbs(const Vector2&);
  37385. Vector3 VectorAbs(const Vector3&);
  37386. Vector2 VectorCeil(const Vector2&);
  37387. Vector3 VectorCeil(const Vector3&);
  37388. Vector4 VectorCeil(const Vector4&);
  37389. IntVector2 VectorCeilToInt(const Vector2&);
  37390. IntVector3 VectorCeilToInt(const Vector3&);
  37391. Vector2 VectorFloor(const Vector2&);
  37392. Vector3 VectorFloor(const Vector3&);
  37393. Vector4 VectorFloor(const Vector4&);
  37394. IntVector2 VectorFloorToInt(const Vector2&);
  37395. IntVector3 VectorFloorToInt(const Vector3&);
  37396. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  37397. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  37398. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  37399. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  37400. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  37401. Vector2 VectorMax(const Vector2&, const Vector2&);
  37402. Vector3 VectorMax(const Vector3&, const Vector3&);
  37403. Vector4 VectorMax(const Vector4&, const Vector4&);
  37404. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  37405. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  37406. Vector2 VectorMin(const Vector2&, const Vector2&);
  37407. Vector3 VectorMin(const Vector3&, const Vector3&);
  37408. Vector4 VectorMin(const Vector4&, const Vector4&);
  37409. Vector2 VectorRound(const Vector2&);
  37410. Vector3 VectorRound(const Vector3&);
  37411. Vector4 VectorRound(const Vector4&);
  37412. IntVector2 VectorRoundToInt(const Vector2&);
  37413. IntVector3 VectorRoundToInt(const Vector3&);
  37414. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  37415. void WriteRaw(const String&, bool = false);
  37416. // Global properties
  37417. DBAPI DBAPI;
  37418. Audio audio;
  37419. ResourceCache cache;
  37420. Console console;
  37421. Database database;
  37422. DebugHud debugHud;
  37423. DebugRenderer debugRenderer;
  37424. Engine engine;
  37425. FileSystem fileSystem;
  37426. VariantMap globalVars;
  37427. Graphics graphics;
  37428. Input input;
  37429. Localization localization;
  37430. Log log;
  37431. Network network;
  37432. Node node;
  37433. Octree octree;
  37434. PhysicsWorld physicsWorld;
  37435. PhysicsWorld2D physicsWorld2D;
  37436. Renderer renderer;
  37437. ResourceCache resourceCache;
  37438. Scene scene;
  37439. Script script;
  37440. ScriptFile scriptFile;
  37441. ScriptInstance self;
  37442. Time time;
  37443. UI ui;
  37444. // Global constants
  37445. float ANIMATION_LOD_BASESCALE;
  37446. int BITS_PER_COMPONENT;
  37447. uint8 BONECOLLISION_BOX;
  37448. uint8 BONECOLLISION_NONE;
  37449. uint8 BONECOLLISION_SPHERE;
  37450. uint8 CHANNEL_NONE;
  37451. uint8 CHANNEL_POSITION;
  37452. uint8 CHANNEL_ROTATION;
  37453. uint8 CHANNEL_SCALE;
  37454. uint CLEAR_COLOR;
  37455. uint CLEAR_DEPTH;
  37456. uint CLEAR_STENCIL;
  37457. int COLOR_LUT_SIZE;
  37458. uint CONTROLLER_AXIS_LEFTX;
  37459. uint CONTROLLER_AXIS_LEFTY;
  37460. uint CONTROLLER_AXIS_RIGHTX;
  37461. uint CONTROLLER_AXIS_RIGHTY;
  37462. uint CONTROLLER_AXIS_TRIGGERLEFT;
  37463. uint CONTROLLER_AXIS_TRIGGERRIGHT;
  37464. uint CONTROLLER_BUTTON_A;
  37465. uint CONTROLLER_BUTTON_B;
  37466. uint CONTROLLER_BUTTON_BACK;
  37467. uint CONTROLLER_BUTTON_DPAD_DOWN;
  37468. uint CONTROLLER_BUTTON_DPAD_LEFT;
  37469. uint CONTROLLER_BUTTON_DPAD_RIGHT;
  37470. uint CONTROLLER_BUTTON_DPAD_UP;
  37471. uint CONTROLLER_BUTTON_GUIDE;
  37472. uint CONTROLLER_BUTTON_LEFTSHOULDER;
  37473. uint CONTROLLER_BUTTON_LEFTSTICK;
  37474. uint CONTROLLER_BUTTON_RIGHTSHOULDER;
  37475. uint CONTROLLER_BUTTON_RIGHTSTICK;
  37476. uint CONTROLLER_BUTTON_START;
  37477. uint CONTROLLER_BUTTON_X;
  37478. uint CONTROLLER_BUTTON_Y;
  37479. uint CONTROLS_CONTENT_ID;
  37480. int CONVERSION_BUFFER_LENGTH;
  37481. uint DD_DISABLED;
  37482. uint DD_SOURCE;
  37483. uint DD_SOURCE_AND_TARGET;
  37484. uint DD_TARGET;
  37485. uint DEBUGHUD_SHOW_ALL;
  37486. uint DEBUGHUD_SHOW_EVENTPROFILER;
  37487. uint DEBUGHUD_SHOW_MEMORY;
  37488. uint DEBUGHUD_SHOW_MODE;
  37489. uint DEBUGHUD_SHOW_NONE;
  37490. uint DEBUGHUD_SHOW_PROFILER;
  37491. uint DEBUGHUD_SHOW_STATS;
  37492. float DEFAULT_CAMERA_FOV;
  37493. float DEFAULT_FARCLIP;
  37494. float DEFAULT_FONT_SIZE;
  37495. int DEFAULT_FPS;
  37496. uint DEFAULT_LIGHTMASK;
  37497. float DEFAULT_MAX_NETWORK_ANGULAR_VELOCITY;
  37498. float DEFAULT_NEARCLIP;
  37499. uint DEFAULT_NUM_PARTICLES;
  37500. float DEFAULT_ORTHOSIZE;
  37501. uint8 DEFAULT_RENDER_ORDER;
  37502. uint DEFAULT_SHADOWMASK;
  37503. uint DEFAULT_VIEWMASK;
  37504. uint DEFAULT_ZONEMASK;
  37505. Vector3 DOT_SCALE;
  37506. uint DRAWABLE_ANY;
  37507. uint DRAWABLE_GEOMETRY;
  37508. uint DRAWABLE_GEOMETRY2D;
  37509. uint DRAWABLE_LIGHT;
  37510. uint DRAWABLE_UNDEFINED;
  37511. uint DRAWABLE_ZONE;
  37512. String EP_AUTOLOAD_PATHS;
  37513. String EP_BORDERLESS;
  37514. String EP_DIRECT3D11;
  37515. String EP_DIRECT3D9;
  37516. String EP_DUMP_SHADERS;
  37517. String EP_EVENT_PROFILER;
  37518. String EP_EXTERNAL_WINDOW;
  37519. String EP_FLUSH_GPU;
  37520. String EP_FORCE_GL2;
  37521. String EP_FRAME_LIMITER;
  37522. String EP_FULL_SCREEN;
  37523. String EP_HEADLESS;
  37524. String EP_HIGH_DPI;
  37525. String EP_LOG_LEVEL;
  37526. String EP_LOG_NAME;
  37527. String EP_LOG_QUIET;
  37528. String EP_LOW_QUALITY_SHADOWS;
  37529. String EP_MATERIAL_QUALITY;
  37530. String EP_MONITOR;
  37531. String EP_MULTI_SAMPLE;
  37532. String EP_OPENGL;
  37533. String EP_ORIENTATIONS;
  37534. String EP_PACKAGE_CACHE_DIR;
  37535. String EP_REFRESH_RATE;
  37536. String EP_RENDER_PATH;
  37537. String EP_RESOURCE_PACKAGES;
  37538. String EP_RESOURCE_PATHS;
  37539. String EP_RESOURCE_PREFIX_PATHS;
  37540. String EP_SHADER_CACHE_DIR;
  37541. String EP_SHADOWS;
  37542. String EP_SOUND;
  37543. String EP_SOUND_BUFFER;
  37544. String EP_SOUND_INTERPOLATION;
  37545. String EP_SOUND_MIX_RATE;
  37546. String EP_SOUND_STEREO;
  37547. String EP_TEXTURE_ANISOTROPY;
  37548. String EP_TEXTURE_FILTER_MODE;
  37549. String EP_TEXTURE_QUALITY;
  37550. String EP_TIME_OUT;
  37551. String EP_TOUCH_EMULATION;
  37552. String EP_TRIPLE_BUFFER;
  37553. String EP_VSYNC;
  37554. String EP_WINDOW_HEIGHT;
  37555. String EP_WINDOW_ICON;
  37556. String EP_WINDOW_POSITION_X;
  37557. String EP_WINDOW_POSITION_Y;
  37558. String EP_WINDOW_RESIZABLE;
  37559. String EP_WINDOW_TITLE;
  37560. String EP_WINDOW_WIDTH;
  37561. String EP_WORKER_THREADS;
  37562. uint FIRST_LOCAL_ID;
  37563. uint FIRST_REPLICATED_ID;
  37564. uint FLIP_ALL;
  37565. uint FLIP_DIAGONAL;
  37566. uint FLIP_HORIZONTAL;
  37567. uint FLIP_RESERVED;
  37568. uint FLIP_VERTICAL;
  37569. int FONT_DPI;
  37570. int FONT_TEXTURE_MIN_SIZE;
  37571. uint HAT_CENTER;
  37572. uint HAT_DOWN;
  37573. uint HAT_LEFT;
  37574. uint HAT_RIGHT;
  37575. uint HAT_UP;
  37576. int INSTANCING_BUFFER_DEFAULT_SIZE;
  37577. uint KEY_0;
  37578. uint KEY_1;
  37579. uint KEY_2;
  37580. uint KEY_3;
  37581. uint KEY_4;
  37582. uint KEY_5;
  37583. uint KEY_6;
  37584. uint KEY_7;
  37585. uint KEY_8;
  37586. uint KEY_9;
  37587. uint KEY_A;
  37588. uint KEY_AC_BACK;
  37589. uint KEY_AC_BOOKMARKS;
  37590. uint KEY_AC_FORWARD;
  37591. uint KEY_AC_HOME;
  37592. uint KEY_AC_REFRESH;
  37593. uint KEY_AC_SEARCH;
  37594. uint KEY_AC_STOP;
  37595. uint KEY_AGAIN;
  37596. uint KEY_ALT;
  37597. uint KEY_ALTERASE;
  37598. uint KEY_AMPERSAND;
  37599. uint KEY_APPLICATION;
  37600. uint KEY_ASTERISK;
  37601. uint KEY_AT;
  37602. uint KEY_AUDIOMUTE;
  37603. uint KEY_AUDIONEXT;
  37604. uint KEY_AUDIOPLAY;
  37605. uint KEY_AUDIOPREV;
  37606. uint KEY_AUDIOSTOP;
  37607. uint KEY_B;
  37608. uint KEY_BACKQUOTE;
  37609. uint KEY_BACKSLASH;
  37610. uint KEY_BACKSPACE;
  37611. uint KEY_BRIGHTNESSDOWN;
  37612. uint KEY_BRIGHTNESSUP;
  37613. uint KEY_C;
  37614. uint KEY_CALCULATOR;
  37615. uint KEY_CANCEL;
  37616. uint KEY_CAPSLOCK;
  37617. uint KEY_CARET;
  37618. uint KEY_CLEAR;
  37619. uint KEY_CLEARAGAIN;
  37620. uint KEY_COLON;
  37621. uint KEY_COMMA;
  37622. uint KEY_COMPUTER;
  37623. uint KEY_COPY;
  37624. uint KEY_CRSEL;
  37625. uint KEY_CTRL;
  37626. uint KEY_CURRENCYSUBUNIT;
  37627. uint KEY_CURRENCYUNIT;
  37628. uint KEY_CUT;
  37629. uint KEY_D;
  37630. uint KEY_DECIMALSEPARATOR;
  37631. uint KEY_DELETE;
  37632. uint KEY_DISPLAYSWITCH;
  37633. uint KEY_DOLLAR;
  37634. uint KEY_DOWN;
  37635. uint KEY_E;
  37636. uint KEY_EJECT;
  37637. uint KEY_END;
  37638. uint KEY_EQUALS;
  37639. uint KEY_ESCAPE;
  37640. uint KEY_EXCLAIM;
  37641. uint KEY_EXSEL;
  37642. uint KEY_F;
  37643. uint KEY_F1;
  37644. uint KEY_F10;
  37645. uint KEY_F11;
  37646. uint KEY_F12;
  37647. uint KEY_F13;
  37648. uint KEY_F14;
  37649. uint KEY_F15;
  37650. uint KEY_F16;
  37651. uint KEY_F17;
  37652. uint KEY_F18;
  37653. uint KEY_F19;
  37654. uint KEY_F2;
  37655. uint KEY_F20;
  37656. uint KEY_F21;
  37657. uint KEY_F22;
  37658. uint KEY_F23;
  37659. uint KEY_F24;
  37660. uint KEY_F3;
  37661. uint KEY_F4;
  37662. uint KEY_F5;
  37663. uint KEY_F6;
  37664. uint KEY_F7;
  37665. uint KEY_F8;
  37666. uint KEY_F9;
  37667. uint KEY_FIND;
  37668. uint KEY_G;
  37669. uint KEY_GREATER;
  37670. uint KEY_GUI;
  37671. uint KEY_H;
  37672. uint KEY_HASH;
  37673. uint KEY_HELP;
  37674. uint KEY_HOME;
  37675. uint KEY_I;
  37676. uint KEY_INSERT;
  37677. uint KEY_J;
  37678. uint KEY_K;
  37679. uint KEY_KBDILLUMDOWN;
  37680. uint KEY_KBDILLUMTOGGLE;
  37681. uint KEY_KBDILLUMUP;
  37682. uint KEY_KP_0;
  37683. uint KEY_KP_00;
  37684. uint KEY_KP_000;
  37685. uint KEY_KP_1;
  37686. uint KEY_KP_2;
  37687. uint KEY_KP_3;
  37688. uint KEY_KP_4;
  37689. uint KEY_KP_5;
  37690. uint KEY_KP_6;
  37691. uint KEY_KP_7;
  37692. uint KEY_KP_8;
  37693. uint KEY_KP_9;
  37694. uint KEY_KP_A;
  37695. uint KEY_KP_AMPERSAND;
  37696. uint KEY_KP_AT;
  37697. uint KEY_KP_B;
  37698. uint KEY_KP_BACKSPACE;
  37699. uint KEY_KP_BINARY;
  37700. uint KEY_KP_C;
  37701. uint KEY_KP_CLEAR;
  37702. uint KEY_KP_CLEARENTRY;
  37703. uint KEY_KP_COLON;
  37704. uint KEY_KP_COMMA;
  37705. uint KEY_KP_D;
  37706. uint KEY_KP_DBLAMPERSAND;
  37707. uint KEY_KP_DBLVERTICALBAR;
  37708. uint KEY_KP_DECIMAL;
  37709. uint KEY_KP_DIVIDE;
  37710. uint KEY_KP_E;
  37711. uint KEY_KP_ENTER;
  37712. uint KEY_KP_EQUALS;
  37713. uint KEY_KP_EQUALSAS400;
  37714. uint KEY_KP_EXCLAM;
  37715. uint KEY_KP_F;
  37716. uint KEY_KP_GREATER;
  37717. uint KEY_KP_HASH;
  37718. uint KEY_KP_HEXADECIMAL;
  37719. uint KEY_KP_LEFTBRACE;
  37720. uint KEY_KP_LEFTPAREN;
  37721. uint KEY_KP_LESS;
  37722. uint KEY_KP_MEMADD;
  37723. uint KEY_KP_MEMCLEAR;
  37724. uint KEY_KP_MEMDIVIDE;
  37725. uint KEY_KP_MEMMULTIPLY;
  37726. uint KEY_KP_MEMRECALL;
  37727. uint KEY_KP_MEMSTORE;
  37728. uint KEY_KP_MEMSUBTRACT;
  37729. uint KEY_KP_MINUS;
  37730. uint KEY_KP_MULTIPLY;
  37731. uint KEY_KP_OCTAL;
  37732. uint KEY_KP_PERCENT;
  37733. uint KEY_KP_PERIOD;
  37734. uint KEY_KP_PLUS;
  37735. uint KEY_KP_PLUSMINUS;
  37736. uint KEY_KP_POWER;
  37737. uint KEY_KP_RIGHTBRACE;
  37738. uint KEY_KP_RIGHTPAREN;
  37739. uint KEY_KP_SPACE;
  37740. uint KEY_KP_TAB;
  37741. uint KEY_KP_VERTICALBAR;
  37742. uint KEY_KP_XOR;
  37743. uint KEY_L;
  37744. uint KEY_LALT;
  37745. uint KEY_LCTRL;
  37746. uint KEY_LEFT;
  37747. uint KEY_LEFTBRACKET;
  37748. uint KEY_LEFTPAREN;
  37749. uint KEY_LESS;
  37750. uint KEY_LGUI;
  37751. uint KEY_LSHIFT;
  37752. uint KEY_M;
  37753. uint KEY_MAIL;
  37754. uint KEY_MEDIASELECT;
  37755. uint KEY_MENU;
  37756. uint KEY_MINUS;
  37757. uint KEY_MODE;
  37758. uint KEY_MUTE;
  37759. uint KEY_N;
  37760. uint KEY_NUMLOCKCLEAR;
  37761. uint KEY_O;
  37762. uint KEY_OPER;
  37763. uint KEY_OUT;
  37764. uint KEY_P;
  37765. uint KEY_PAGEDOWN;
  37766. uint KEY_PAGEUP;
  37767. uint KEY_PASTE;
  37768. uint KEY_PAUSE;
  37769. uint KEY_PERCENT;
  37770. uint KEY_PERIOD;
  37771. uint KEY_PLUS;
  37772. uint KEY_POWER;
  37773. uint KEY_PRINTSCREEN;
  37774. uint KEY_PRIOR;
  37775. uint KEY_Q;
  37776. uint KEY_QUESTION;
  37777. uint KEY_QUOTE;
  37778. uint KEY_QUOTEDBL;
  37779. uint KEY_R;
  37780. uint KEY_RALT;
  37781. uint KEY_RCTRL;
  37782. uint KEY_RETURN;
  37783. uint KEY_RETURN2;
  37784. uint KEY_RGUI;
  37785. uint KEY_RIGHT;
  37786. uint KEY_RIGHTBRACKET;
  37787. uint KEY_RIGHTPAREN;
  37788. uint KEY_RSHIFT;
  37789. uint KEY_S;
  37790. uint KEY_SCROLLLOCK;
  37791. uint KEY_SELECT;
  37792. uint KEY_SEMICOLON;
  37793. uint KEY_SEPARATOR;
  37794. uint KEY_SHIFT;
  37795. uint KEY_SLASH;
  37796. uint KEY_SLEEP;
  37797. uint KEY_SPACE;
  37798. uint KEY_STOP;
  37799. uint KEY_SYSREQ;
  37800. uint KEY_T;
  37801. uint KEY_TAB;
  37802. uint KEY_THOUSANDSSEPARATOR;
  37803. uint KEY_U;
  37804. uint KEY_UNDERSCORE;
  37805. uint KEY_UNDO;
  37806. uint KEY_UNKNOWN;
  37807. uint KEY_UP;
  37808. uint KEY_V;
  37809. uint KEY_VOLUMEDOWN;
  37810. uint KEY_VOLUMEUP;
  37811. uint KEY_W;
  37812. uint KEY_WWW;
  37813. uint KEY_X;
  37814. uint KEY_Y;
  37815. uint KEY_Z;
  37816. uint LAST_LOCAL_ID;
  37817. uint LAST_REPLICATED_ID;
  37818. int LOG_DEBUG;
  37819. int LOG_ERROR;
  37820. int LOG_INFO;
  37821. int LOG_NONE;
  37822. int LOG_RAW;
  37823. int LOG_TRACE;
  37824. int LOG_WARNING;
  37825. uint MASK_BLENDINDICES;
  37826. uint MASK_BLENDWEIGHTS;
  37827. uint MASK_COLOR;
  37828. uint MASK_CUBETEXCOORD1;
  37829. uint MASK_CUBETEXCOORD2;
  37830. uint MASK_INSTANCEMATRIX1;
  37831. uint MASK_INSTANCEMATRIX2;
  37832. uint MASK_INSTANCEMATRIX3;
  37833. uint MASK_NONE;
  37834. uint MASK_NORMAL;
  37835. uint MASK_OBJECTINDEX;
  37836. uint MASK_POSITION;
  37837. uint MASK_TANGENT;
  37838. uint MASK_TEXCOORD1;
  37839. uint MASK_TEXCOORD2;
  37840. int MATRIX_CONVERSION_BUFFER_LENGTH;
  37841. uint MAX_CASCADE_SPLITS;
  37842. int MAX_CONSTANT_REGISTERS;
  37843. int MAX_LIGHT_SPLITS;
  37844. uint MAX_NETWORK_ATTRIBUTES;
  37845. int MAX_RENDERTARGETS;
  37846. int MAX_TEXTURE_QUALITY_LEVELS;
  37847. int MAX_VERTEX_LIGHTS;
  37848. int MAX_VERTEX_STREAMS;
  37849. uint MAX_VIEWPORT_TEXTURES;
  37850. uint MOUSEB_ANY;
  37851. uint MOUSEB_LEFT;
  37852. uint MOUSEB_MIDDLE;
  37853. uint MOUSEB_NONE;
  37854. uint MOUSEB_RIGHT;
  37855. uint MOUSEB_X1;
  37856. uint MOUSEB_X2;
  37857. IntVector2 MOUSE_POSITION_OFFSCREEN;
  37858. int MSG_COMPONENTDELTAUPDATE;
  37859. int MSG_COMPONENTLATESTDATA;
  37860. int MSG_CONTROLS;
  37861. int MSG_CREATECOMPONENT;
  37862. int MSG_CREATENODE;
  37863. int MSG_IDENTITY;
  37864. int MSG_LOADSCENE;
  37865. int MSG_NODEDELTAUPDATE;
  37866. int MSG_NODELATESTDATA;
  37867. int MSG_PACKAGEDATA;
  37868. int MSG_PACKAGEINFO;
  37869. int MSG_PACKED_MESSAGE;
  37870. int MSG_REMOTEEVENT;
  37871. int MSG_REMOTENODEEVENT;
  37872. int MSG_REMOVECOMPONENT;
  37873. int MSG_REMOVENODE;
  37874. int MSG_REQUESTPACKAGE;
  37875. int MSG_SCENECHECKSUMERROR;
  37876. int MSG_SCENELOADED;
  37877. int MSG_USER;
  37878. float M_DEGTORAD;
  37879. float M_DEGTORAD_2;
  37880. float M_EPSILON;
  37881. float M_HALF_PI;
  37882. float M_INFINITY;
  37883. float M_LARGE_EPSILON;
  37884. float M_LARGE_VALUE;
  37885. float M_MAX_FOV;
  37886. int M_MAX_INT;
  37887. uint M_MAX_UNSIGNED;
  37888. int M_MIN_INT;
  37889. float M_MIN_NEARCLIP;
  37890. uint M_MIN_UNSIGNED;
  37891. float M_PI;
  37892. float M_RADTODEG;
  37893. uint NUM_FRUSTUM_PLANES;
  37894. uint NUM_FRUSTUM_VERTICES;
  37895. int NUM_OCTANTS;
  37896. int OCCLUSION_DEFAULT_MAX_TRIANGLES;
  37897. int OCCLUSION_FIXED_BIAS;
  37898. int OCCLUSION_MIN_SIZE;
  37899. float OCCLUSION_RELATIVE_BIAS;
  37900. float OCCLUSION_X_SCALE;
  37901. float OCCLUSION_Z_SCALE;
  37902. uint PACKAGE_FRAGMENT_SIZE;
  37903. float PIXEL_SIZE;
  37904. uint PRIORITY_LAST;
  37905. StringHash PSP_AMBIENTCOLOR;
  37906. StringHash PSP_CAMERAPOS;
  37907. StringHash PSP_DELTATIME;
  37908. StringHash PSP_DEPTHRECONSTRUCT;
  37909. StringHash PSP_ELAPSEDTIME;
  37910. StringHash PSP_FARCLIP;
  37911. StringHash PSP_FOGCOLOR;
  37912. StringHash PSP_FOGPARAMS;
  37913. StringHash PSP_GBUFFERINVSIZE;
  37914. StringHash PSP_LIGHTCOLOR;
  37915. StringHash PSP_LIGHTDIR;
  37916. StringHash PSP_LIGHTLENGTH;
  37917. StringHash PSP_LIGHTMATRICES;
  37918. StringHash PSP_LIGHTPOS;
  37919. StringHash PSP_LIGHTRAD;
  37920. StringHash PSP_MATDIFFCOLOR;
  37921. StringHash PSP_MATEMISSIVECOLOR;
  37922. StringHash PSP_MATENVMAPCOLOR;
  37923. StringHash PSP_MATSPECCOLOR;
  37924. StringHash PSP_METALLIC;
  37925. StringHash PSP_NEARCLIP;
  37926. StringHash PSP_NORMALOFFSETSCALE;
  37927. StringHash PSP_ROUGHNESS;
  37928. StringHash PSP_SHADOWCUBEADJUST;
  37929. StringHash PSP_SHADOWDEPTHFADE;
  37930. StringHash PSP_SHADOWINTENSITY;
  37931. StringHash PSP_SHADOWMAPINVSIZE;
  37932. StringHash PSP_SHADOWSPLITS;
  37933. StringHash PSP_VSMSHADOWPARAMS;
  37934. StringHash PSP_ZONEMAX;
  37935. StringHash PSP_ZONEMIN;
  37936. uint QUALITY_HIGH;
  37937. uint QUALITY_LOW;
  37938. uint QUALITY_MAX;
  37939. uint QUALITY_MEDIUM;
  37940. uint QUAL_ALT;
  37941. uint QUAL_ANY;
  37942. uint QUAL_CTRL;
  37943. uint QUAL_NONE;
  37944. uint QUAL_SHIFT;
  37945. int QUICKSORT_THRESHOLD;
  37946. uint ROOT_INDEX;
  37947. uint SCANCODE_0;
  37948. uint SCANCODE_1;
  37949. uint SCANCODE_2;
  37950. uint SCANCODE_3;
  37951. uint SCANCODE_4;
  37952. uint SCANCODE_5;
  37953. uint SCANCODE_6;
  37954. uint SCANCODE_7;
  37955. uint SCANCODE_8;
  37956. uint SCANCODE_9;
  37957. uint SCANCODE_A;
  37958. uint SCANCODE_AC_BACK;
  37959. uint SCANCODE_AC_BOOKMARKS;
  37960. uint SCANCODE_AC_FORWARD;
  37961. uint SCANCODE_AC_HOME;
  37962. uint SCANCODE_AC_REFRESH;
  37963. uint SCANCODE_AC_SEARCH;
  37964. uint SCANCODE_AC_STOP;
  37965. uint SCANCODE_AGAIN;
  37966. uint SCANCODE_ALT;
  37967. uint SCANCODE_ALTERASE;
  37968. uint SCANCODE_APOSTROPHE;
  37969. uint SCANCODE_APP1;
  37970. uint SCANCODE_APP2;
  37971. uint SCANCODE_APPLICATION;
  37972. uint SCANCODE_AUDIOMUTE;
  37973. uint SCANCODE_AUDIONEXT;
  37974. uint SCANCODE_AUDIOPLAY;
  37975. uint SCANCODE_AUDIOPREV;
  37976. uint SCANCODE_AUDIOSTOP;
  37977. uint SCANCODE_B;
  37978. uint SCANCODE_BACKSLASH;
  37979. uint SCANCODE_BACKSPACE;
  37980. uint SCANCODE_BRIGHTNESSDOWN;
  37981. uint SCANCODE_BRIGHTNESSUP;
  37982. uint SCANCODE_C;
  37983. uint SCANCODE_CALCULATOR;
  37984. uint SCANCODE_CANCEL;
  37985. uint SCANCODE_CAPSLOCK;
  37986. uint SCANCODE_CLEAR;
  37987. uint SCANCODE_CLEARAGAIN;
  37988. uint SCANCODE_COMMA;
  37989. uint SCANCODE_COMPUTER;
  37990. uint SCANCODE_COPY;
  37991. uint SCANCODE_CRSEL;
  37992. uint SCANCODE_CTRL;
  37993. uint SCANCODE_CURRENCYSUBUNIT;
  37994. uint SCANCODE_CURRENCYUNIT;
  37995. uint SCANCODE_CUT;
  37996. uint SCANCODE_D;
  37997. uint SCANCODE_DECIMALSEPARATOR;
  37998. uint SCANCODE_DELETE;
  37999. uint SCANCODE_DISPLAYSWITCH;
  38000. uint SCANCODE_DOWN;
  38001. uint SCANCODE_E;
  38002. uint SCANCODE_EJECT;
  38003. uint SCANCODE_END;
  38004. uint SCANCODE_EQUALS;
  38005. uint SCANCODE_ESCAPE;
  38006. uint SCANCODE_EXECUTE;
  38007. uint SCANCODE_EXSEL;
  38008. uint SCANCODE_F;
  38009. uint SCANCODE_F1;
  38010. uint SCANCODE_F10;
  38011. uint SCANCODE_F11;
  38012. uint SCANCODE_F12;
  38013. uint SCANCODE_F13;
  38014. uint SCANCODE_F14;
  38015. uint SCANCODE_F15;
  38016. uint SCANCODE_F16;
  38017. uint SCANCODE_F17;
  38018. uint SCANCODE_F18;
  38019. uint SCANCODE_F19;
  38020. uint SCANCODE_F2;
  38021. uint SCANCODE_F20;
  38022. uint SCANCODE_F21;
  38023. uint SCANCODE_F22;
  38024. uint SCANCODE_F23;
  38025. uint SCANCODE_F24;
  38026. uint SCANCODE_F3;
  38027. uint SCANCODE_F4;
  38028. uint SCANCODE_F5;
  38029. uint SCANCODE_F6;
  38030. uint SCANCODE_F7;
  38031. uint SCANCODE_F8;
  38032. uint SCANCODE_F9;
  38033. uint SCANCODE_FIND;
  38034. uint SCANCODE_G;
  38035. uint SCANCODE_GRAVE;
  38036. uint SCANCODE_GUI;
  38037. uint SCANCODE_H;
  38038. uint SCANCODE_HELP;
  38039. uint SCANCODE_HOME;
  38040. uint SCANCODE_I;
  38041. uint SCANCODE_INSERT;
  38042. uint SCANCODE_INTERNATIONAL1;
  38043. uint SCANCODE_INTERNATIONAL2;
  38044. uint SCANCODE_INTERNATIONAL3;
  38045. uint SCANCODE_INTERNATIONAL4;
  38046. uint SCANCODE_INTERNATIONAL5;
  38047. uint SCANCODE_INTERNATIONAL6;
  38048. uint SCANCODE_INTERNATIONAL7;
  38049. uint SCANCODE_INTERNATIONAL8;
  38050. uint SCANCODE_INTERNATIONAL9;
  38051. uint SCANCODE_J;
  38052. uint SCANCODE_K;
  38053. uint SCANCODE_KBDILLUMDOWN;
  38054. uint SCANCODE_KBDILLUMTOGGLE;
  38055. uint SCANCODE_KBDILLUMUP;
  38056. uint SCANCODE_KP_0;
  38057. uint SCANCODE_KP_00;
  38058. uint SCANCODE_KP_000;
  38059. uint SCANCODE_KP_1;
  38060. uint SCANCODE_KP_2;
  38061. uint SCANCODE_KP_3;
  38062. uint SCANCODE_KP_4;
  38063. uint SCANCODE_KP_5;
  38064. uint SCANCODE_KP_6;
  38065. uint SCANCODE_KP_7;
  38066. uint SCANCODE_KP_8;
  38067. uint SCANCODE_KP_9;
  38068. uint SCANCODE_KP_A;
  38069. uint SCANCODE_KP_AMPERSAND;
  38070. uint SCANCODE_KP_AT;
  38071. uint SCANCODE_KP_B;
  38072. uint SCANCODE_KP_BACKSPACE;
  38073. uint SCANCODE_KP_BINARY;
  38074. uint SCANCODE_KP_C;
  38075. uint SCANCODE_KP_CLEAR;
  38076. uint SCANCODE_KP_CLEARENTRY;
  38077. uint SCANCODE_KP_COLON;
  38078. uint SCANCODE_KP_COMMA;
  38079. uint SCANCODE_KP_D;
  38080. uint SCANCODE_KP_DBLAMPERSAND;
  38081. uint SCANCODE_KP_DBLVERTICALBAR;
  38082. uint SCANCODE_KP_DECIMAL;
  38083. uint SCANCODE_KP_DIVIDE;
  38084. uint SCANCODE_KP_E;
  38085. uint SCANCODE_KP_ENTER;
  38086. uint SCANCODE_KP_EQUALS;
  38087. uint SCANCODE_KP_EQUALSAS400;
  38088. uint SCANCODE_KP_EXCLAM;
  38089. uint SCANCODE_KP_F;
  38090. uint SCANCODE_KP_GREATER;
  38091. uint SCANCODE_KP_HASH;
  38092. uint SCANCODE_KP_HEXADECIMAL;
  38093. uint SCANCODE_KP_LEFTBRACE;
  38094. uint SCANCODE_KP_LEFTPAREN;
  38095. uint SCANCODE_KP_LESS;
  38096. uint SCANCODE_KP_MEMADD;
  38097. uint SCANCODE_KP_MEMCLEAR;
  38098. uint SCANCODE_KP_MEMDIVIDE;
  38099. uint SCANCODE_KP_MEMMULTIPLY;
  38100. uint SCANCODE_KP_MEMRECALL;
  38101. uint SCANCODE_KP_MEMSTORE;
  38102. uint SCANCODE_KP_MEMSUBTRACT;
  38103. uint SCANCODE_KP_MINUS;
  38104. uint SCANCODE_KP_MULTIPLY;
  38105. uint SCANCODE_KP_OCTAL;
  38106. uint SCANCODE_KP_PERCENT;
  38107. uint SCANCODE_KP_PERIOD;
  38108. uint SCANCODE_KP_PLUS;
  38109. uint SCANCODE_KP_PLUSMINUS;
  38110. uint SCANCODE_KP_POWER;
  38111. uint SCANCODE_KP_RIGHTBRACE;
  38112. uint SCANCODE_KP_RIGHTPAREN;
  38113. uint SCANCODE_KP_SPACE;
  38114. uint SCANCODE_KP_TAB;
  38115. uint SCANCODE_KP_VERTICALBAR;
  38116. uint SCANCODE_KP_XOR;
  38117. uint SCANCODE_L;
  38118. uint SCANCODE_LALT;
  38119. uint SCANCODE_LANG1;
  38120. uint SCANCODE_LANG2;
  38121. uint SCANCODE_LANG3;
  38122. uint SCANCODE_LANG4;
  38123. uint SCANCODE_LANG5;
  38124. uint SCANCODE_LANG6;
  38125. uint SCANCODE_LANG7;
  38126. uint SCANCODE_LANG8;
  38127. uint SCANCODE_LANG9;
  38128. uint SCANCODE_LCTRL;
  38129. uint SCANCODE_LEFT;
  38130. uint SCANCODE_LEFTBRACKET;
  38131. uint SCANCODE_LGUI;
  38132. uint SCANCODE_LSHIFT;
  38133. uint SCANCODE_M;
  38134. uint SCANCODE_MAIL;
  38135. uint SCANCODE_MEDIASELECT;
  38136. uint SCANCODE_MENU;
  38137. uint SCANCODE_MINUS;
  38138. uint SCANCODE_MODE;
  38139. uint SCANCODE_MUTE;
  38140. uint SCANCODE_N;
  38141. uint SCANCODE_NONUSBACKSLASH;
  38142. uint SCANCODE_NONUSHASH;
  38143. uint SCANCODE_NUMLOCKCLEAR;
  38144. uint SCANCODE_O;
  38145. uint SCANCODE_OPER;
  38146. uint SCANCODE_OUT;
  38147. uint SCANCODE_P;
  38148. uint SCANCODE_PAGEDOWN;
  38149. uint SCANCODE_PAGEUP;
  38150. uint SCANCODE_PASTE;
  38151. uint SCANCODE_PAUSE;
  38152. uint SCANCODE_PERIOD;
  38153. uint SCANCODE_POWER;
  38154. uint SCANCODE_PRINTSCREEN;
  38155. uint SCANCODE_PRIOR;
  38156. uint SCANCODE_Q;
  38157. uint SCANCODE_R;
  38158. uint SCANCODE_RALT;
  38159. uint SCANCODE_RCTRL;
  38160. uint SCANCODE_RETURN;
  38161. uint SCANCODE_RETURN2;
  38162. uint SCANCODE_RGUI;
  38163. uint SCANCODE_RIGHT;
  38164. uint SCANCODE_RIGHTBRACKET;
  38165. uint SCANCODE_RSHIFT;
  38166. uint SCANCODE_S;
  38167. uint SCANCODE_SCROLLLOCK;
  38168. uint SCANCODE_SELECT;
  38169. uint SCANCODE_SEMICOLON;
  38170. uint SCANCODE_SEPARATOR;
  38171. uint SCANCODE_SHIFT;
  38172. uint SCANCODE_SLASH;
  38173. uint SCANCODE_SLEEP;
  38174. uint SCANCODE_SPACE;
  38175. uint SCANCODE_STOP;
  38176. uint SCANCODE_SYSREQ;
  38177. uint SCANCODE_T;
  38178. uint SCANCODE_TAB;
  38179. uint SCANCODE_THOUSANDSSEPARATOR;
  38180. uint SCANCODE_U;
  38181. uint SCANCODE_UNDO;
  38182. uint SCANCODE_UNKNOWN;
  38183. uint SCANCODE_UP;
  38184. uint SCANCODE_V;
  38185. uint SCANCODE_VOLUMEDOWN;
  38186. uint SCANCODE_VOLUMEUP;
  38187. uint SCANCODE_W;
  38188. uint SCANCODE_WWW;
  38189. uint SCANCODE_X;
  38190. uint SCANCODE_Y;
  38191. uint SCANCODE_Z;
  38192. uint SCAN_DIRS;
  38193. uint SCAN_FILES;
  38194. uint SCAN_HIDDEN;
  38195. int SHADOW_MIN_PIXELS;
  38196. float SHADOW_MIN_QUANTIZE;
  38197. float SHADOW_MIN_VIEW;
  38198. uint SMOOTH_NONE;
  38199. uint SMOOTH_POSITION;
  38200. uint SMOOTH_ROTATION;
  38201. String SOUND_AMBIENT;
  38202. String SOUND_EFFECT;
  38203. String SOUND_MASTER;
  38204. String SOUND_MUSIC;
  38205. String SOUND_VOICE;
  38206. int STREAM_BUFFER_LENGTH;
  38207. uint UI_VERTEX_SIZE;
  38208. uint USE_FIXEDPOSTUPDATE;
  38209. uint USE_FIXEDUPDATE;
  38210. uint USE_NO_EVENT;
  38211. uint USE_POSTUPDATE;
  38212. uint USE_UPDATE;
  38213. uint VARIANT_VALUE_SIZE;
  38214. uint VO_DISABLE_OCCLUSION;
  38215. uint VO_DISABLE_SHADOWS;
  38216. uint VO_LOW_MATERIAL_QUALITY;
  38217. uint VO_NONE;
  38218. StringHash VSP_AMBIENTENDCOLOR;
  38219. StringHash VSP_AMBIENTSTARTCOLOR;
  38220. StringHash VSP_BILLBOARDROT;
  38221. StringHash VSP_CAMERAPOS;
  38222. StringHash VSP_CLIPPLANE;
  38223. StringHash VSP_DELTATIME;
  38224. StringHash VSP_DEPTHMODE;
  38225. StringHash VSP_ELAPSEDTIME;
  38226. StringHash VSP_FARCLIP;
  38227. StringHash VSP_FRUSTUMSIZE;
  38228. StringHash VSP_GBUFFEROFFSETS;
  38229. StringHash VSP_LIGHTDIR;
  38230. StringHash VSP_LIGHTMATRICES;
  38231. StringHash VSP_LIGHTPOS;
  38232. StringHash VSP_MODEL;
  38233. StringHash VSP_NEARCLIP;
  38234. StringHash VSP_NORMALOFFSETSCALE;
  38235. StringHash VSP_SKINMATRICES;
  38236. StringHash VSP_UOFFSET;
  38237. StringHash VSP_VERTEXLIGHTS;
  38238. StringHash VSP_VIEW;
  38239. StringHash VSP_VIEWINV;
  38240. StringHash VSP_VIEWPROJ;
  38241. StringHash VSP_VOFFSET;
  38242. StringHash VSP_ZONE;