AngelScriptAPI.h 1.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127
  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 ConstraintRope2D() const;
  74. operator ConstraintWeld2D() const;
  75. operator ConstraintWheel2D() const;
  76. operator CrowdAgent() const;
  77. operator CrowdManager() const;
  78. operator Cursor() const;
  79. operator CustomGeometry() const;
  80. operator DebugRenderer() const;
  81. operator DecalSet() const;
  82. operator Drawable2D() const;
  83. operator Drawable() const;
  84. operator DropDownList() const;
  85. operator DynamicNavigationMesh() const;
  86. bool GetAnimationEnabled() const;
  87. Variant GetAttribute(const String&) const;
  88. Variant GetAttribute(uint) const;
  89. ValueAnimation GetAttributeAnimation(const String&) const;
  90. float GetAttributeAnimationSpeed(const String&) const;
  91. float GetAttributeAnimationTime(const String&) const;
  92. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  93. Variant GetAttributeDefault(const String&) const;
  94. Variant GetAttributeDefault(uint) const;
  95. bool GetBlockEvents() const;
  96. VariantMap& GetEventDataMap() const;
  97. Object GetEventSender() const;
  98. bool GetInterceptNetworkUpdate(const String&) const;
  99. uint GetNumAttributes() const;
  100. uint GetNumNetworkAttributes() const;
  101. ObjectAnimation GetObjectAnimation() const;
  102. ResourceRef GetObjectAnimationAttr() const;
  103. Object GetSubsystem(StringHash) const;
  104. StringHash GetType() const;
  105. bool HasEventHandlers() const;
  106. bool HasSubscribedToEvent(Object, StringHash) const;
  107. bool HasSubscribedToEvent(StringHash) const;
  108. operator IKConstraint() const;
  109. operator IKEffector() const;
  110. operator IKSolver() const;
  111. bool IsInstanceOf(StringHash) const;
  112. bool IsTemporary() const;
  113. operator Light() const;
  114. operator LineEdit() const;
  115. operator ListView() const;
  116. bool Load(Deserializer&);
  117. bool LoadJSON(const JSONValue&);
  118. bool LoadXML(const XMLElement&);
  119. operator LogicComponent() const;
  120. void MarkNetworkUpdate();
  121. operator Menu() const;
  122. operator NavArea() const;
  123. operator Navigable() const;
  124. operator NavigationMesh() const;
  125. operator NetworkPriority() const;
  126. operator Node() const;
  127. operator Object() const;
  128. operator Obstacle() const;
  129. operator Octree() const;
  130. operator OffMeshConnection() const;
  131. void OnEvent(Object, StringHash, VariantMap&);
  132. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  133. void OnSetAttribute(const AttributeInfo&, const Variant&);
  134. operator ParticleEmitter2D() const;
  135. operator ParticleEmitter() const;
  136. operator PhysicsWorld2D() const;
  137. operator PhysicsWorld() const;
  138. operator ProgressBar() const;
  139. operator RaycastVehicle() const;
  140. bool ReadDeltaUpdate(Deserializer&);
  141. bool ReadLatestDataUpdate(Deserializer&);
  142. operator RefCounted() const;
  143. int Refs() const;
  144. void RemoveAttributeAnimation(const String&);
  145. void RemoveInstanceDefault();
  146. void RemoveObjectAnimation();
  147. operator Renderer2D() const;
  148. void ResetToDefault();
  149. operator RibbonTrail() const;
  150. operator RigidBody2D() const;
  151. operator RigidBody() const;
  152. bool Save(Serializer&) const;
  153. bool SaveDefaultAttributes() const;
  154. bool SaveJSON(JSONValue&) const;
  155. bool SaveXML(XMLElement&) const;
  156. operator Scene() const;
  157. operator ScriptInstance() const;
  158. operator ScrollBar() const;
  159. operator ScrollView() const;
  160. void SendEvent(StringHash);
  161. void SendEvent(StringHash, VariantMap&);
  162. operator Serializable() const;
  163. void SetAnimationEnabled(bool);
  164. void SetAnimationTime(float);
  165. bool SetAttribute(const String&, const Variant&);
  166. bool SetAttribute(uint, const Variant&);
  167. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  168. void SetAttributeAnimationSpeed(const String&, float);
  169. void SetAttributeAnimationTime(const String&, float);
  170. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  171. void SetBlockEvents(bool);
  172. void SetGlobalVar(StringHash, const Variant&);
  173. void SetInstanceDefault(bool);
  174. void SetInterceptNetworkUpdate(const String&, bool);
  175. void SetObjectAnimation(ObjectAnimation);
  176. void SetObjectAnimationAttr(const ResourceRef&);
  177. void SetTemporary(bool);
  178. operator Skybox() const;
  179. operator Slider() const;
  180. operator SmoothedTransform() const;
  181. operator SoundListener() const;
  182. operator SoundSource3D() const;
  183. operator SoundSource() const;
  184. operator SplinePath() const;
  185. operator Sprite() const;
  186. operator StaticModel() const;
  187. operator StaticModelGroup() const;
  188. operator StaticSprite2D() const;
  189. operator StretchableSprite2D() const;
  190. const String& GetCategory() const;
  191. const String& GetTypeName() const;
  192. operator Terrain() const;
  193. operator TerrainPatch() const;
  194. operator Text3D() const;
  195. operator Text() const;
  196. operator TileMap2D() const;
  197. operator TileMapLayer2D() const;
  198. operator ToolTip() const;
  199. operator UIComponent() const;
  200. operator UIElement() const;
  201. operator UISelectable() const;
  202. operator UnknownComponent() const;
  203. void UnsubscribeFromAllEvents();
  204. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  205. void UnsubscribeFromEvent(Object, StringHash);
  206. void UnsubscribeFromEvent(StringHash);
  207. void UnsubscribeFromEvents(Object);
  208. const Variant& GetGlobalVar(StringHash) const;
  209. const VariantMap& GetGlobalVars() const;
  210. operator View3D() const;
  211. int WeakRefs() const;
  212. operator Window() const;
  213. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  214. void WriteInitialDeltaUpdate(Serializer&, uint8);
  215. void WriteLatestDataUpdate(Serializer&, uint8);
  216. operator Zone() const;
  217. operator const AnimatedModel() const;
  218. operator const AnimatedSprite2D() const;
  219. operator const AnimationController() const;
  220. operator const BillboardSet() const;
  221. operator const BorderImage() const;
  222. operator const Button() const;
  223. operator const Camera() const;
  224. operator const CheckBox() const;
  225. operator const CollisionBox2D() const;
  226. operator const CollisionChain2D() const;
  227. operator const CollisionCircle2D() const;
  228. operator const CollisionEdge2D() const;
  229. operator const CollisionPolygon2D() const;
  230. operator const CollisionShape2D() const;
  231. operator const CollisionShape() const;
  232. operator const Component() const;
  233. operator const Constraint2D() const;
  234. operator const Constraint() const;
  235. operator const ConstraintDistance2D() const;
  236. operator const ConstraintFriction2D() const;
  237. operator const ConstraintGear2D() const;
  238. operator const ConstraintMotor2D() const;
  239. operator const ConstraintMouse2D() const;
  240. operator const ConstraintPrismatic2D() const;
  241. operator const ConstraintPulley2D() const;
  242. operator const ConstraintRevolute2D() const;
  243. operator const ConstraintRope2D() const;
  244. operator const ConstraintWeld2D() const;
  245. operator const ConstraintWheel2D() const;
  246. operator const CrowdAgent() const;
  247. operator const CrowdManager() const;
  248. operator const Cursor() const;
  249. operator const CustomGeometry() const;
  250. operator const DebugRenderer() const;
  251. operator const DecalSet() const;
  252. operator const Drawable2D() const;
  253. operator const Drawable() const;
  254. operator const DropDownList() const;
  255. operator const DynamicNavigationMesh() const;
  256. operator const IKConstraint() const;
  257. operator const IKEffector() const;
  258. operator const IKSolver() const;
  259. operator const Light() const;
  260. operator const LineEdit() const;
  261. operator const ListView() const;
  262. operator const LogicComponent() const;
  263. operator const Menu() const;
  264. operator const NavArea() const;
  265. operator const Navigable() const;
  266. operator const NavigationMesh() const;
  267. operator const NetworkPriority() const;
  268. operator const Node() const;
  269. operator const Object() const;
  270. operator const Obstacle() const;
  271. operator const Octree() const;
  272. operator const OffMeshConnection() const;
  273. operator const ParticleEmitter2D() const;
  274. operator const ParticleEmitter() const;
  275. operator const PhysicsWorld2D() const;
  276. operator const PhysicsWorld() const;
  277. operator const ProgressBar() const;
  278. operator const RaycastVehicle() const;
  279. operator const RefCounted() const;
  280. operator const Renderer2D() const;
  281. operator const RibbonTrail() const;
  282. operator const RigidBody2D() const;
  283. operator const RigidBody() const;
  284. operator const Scene() const;
  285. operator const ScriptInstance() const;
  286. operator const ScrollBar() const;
  287. operator const ScrollView() const;
  288. operator const Serializable() const;
  289. operator const Skybox() const;
  290. operator const Slider() const;
  291. operator const SmoothedTransform() const;
  292. operator const SoundListener() const;
  293. operator const SoundSource3D() const;
  294. operator const SoundSource() const;
  295. operator const SplinePath() const;
  296. operator const Sprite() const;
  297. operator const StaticModel() const;
  298. operator const StaticModelGroup() const;
  299. operator const StaticSprite2D() const;
  300. operator const StretchableSprite2D() const;
  301. operator const Terrain() const;
  302. operator const TerrainPatch() const;
  303. operator const Text3D() const;
  304. operator const Text() const;
  305. operator const TileMap2D() const;
  306. operator const TileMapLayer2D() const;
  307. operator const ToolTip() const;
  308. operator const UIComponent() const;
  309. operator const UIElement() const;
  310. operator const UISelectable() const;
  311. operator const UnknownComponent() const;
  312. operator const View3D() const;
  313. operator const Window() const;
  314. operator const Zone() const;
  315. // Properties:
  316. bool animationEnabled;
  317. /* readonly */
  318. Array<Variant> attributeDefaults;
  319. /* readonly */
  320. Array<AttributeInfo> attributeInfos;
  321. Array<Variant> attributes;
  322. /* readonly */
  323. String category;
  324. Array<Variant> globalVar;
  325. /* readonly */
  326. VariantMap globalVars;
  327. /* readonly */
  328. uint numAttributes;
  329. ObjectAnimation objectAnimation;
  330. /* readonly */
  331. int refs;
  332. bool temporary;
  333. /* readonly */
  334. StringHash type;
  335. /* readonly */
  336. String typeName;
  337. /* readonly */
  338. int weakRefs;
  339. };
  340. class AnimatedModel
  341. {
  342. public:
  343. AnimatedModel();
  344. // Methods:
  345. AnimationState AddAnimationState(Animation);
  346. void AddLight(Light);
  347. void AddVertexLight(Light);
  348. void AllocateNetworkState();
  349. operator Animatable() const;
  350. void ApplyAnimation();
  351. void ApplyAttributes();
  352. void ApplyMaterialList(const String& = String :: EMPTY);
  353. const BoundingBox& GetBoundingBox() const;
  354. const BoundingBox& GetWorldBoundingBox();
  355. void CleanupConnection(Connection);
  356. operator Component() const;
  357. void DrawDebugGeometry(DebugRenderer, bool);
  358. bool DrawOcclusion(OcclusionBuffer);
  359. operator Drawable() const;
  360. bool GetAnimationEnabled() const;
  361. float GetAnimationLodBias() const;
  362. AnimationState GetAnimationState(Animation) const;
  363. AnimationState GetAnimationState(StringHash) const;
  364. AnimationState GetAnimationState(const String&) const;
  365. AnimationState GetAnimationState(uint) const;
  366. Array<AnimationState> GetAnimationStates() const;
  367. Variant GetAttribute(const String&) const;
  368. Variant GetAttribute(uint) const;
  369. ValueAnimation GetAttributeAnimation(const String&) const;
  370. float GetAttributeAnimationSpeed(const String&) const;
  371. float GetAttributeAnimationTime(const String&) const;
  372. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  373. Variant GetAttributeDefault(const String&) const;
  374. Variant GetAttributeDefault(uint) const;
  375. bool GetBlockEvents() const;
  376. bool GetCastShadows() const;
  377. Component GetComponent(StringHash) const;
  378. float GetDistance() const;
  379. float GetDrawDistance() const;
  380. uint8 GetDrawableFlags() const;
  381. VariantMap& GetEventDataMap() const;
  382. Object GetEventSender() const;
  383. Light GetFirstLight() const;
  384. uint GetID() const;
  385. bool GetInterceptNetworkUpdate(const String&) const;
  386. uint GetLightMask() const;
  387. Array<Light> GetLights() const;
  388. float GetLodBias() const;
  389. float GetLodDistance() const;
  390. Geometry GetLodGeometry(uint, uint);
  391. Material GetMaterial() const;
  392. Material GetMaterial(uint) const;
  393. uint GetMaxLights() const;
  394. float GetMaxZ() const;
  395. float GetMinZ() const;
  396. Model GetModel() const;
  397. ResourceRef GetModelAttr() const;
  398. Array<VertexBuffer> GetMorphVertexBuffers() const;
  399. float GetMorphWeight(StringHash) const;
  400. float GetMorphWeight(const String&) const;
  401. float GetMorphWeight(uint) const;
  402. Node GetNode() const;
  403. uint GetNumAnimationStates() const;
  404. uint GetNumAttributes() const;
  405. uint GetNumGeometries() const;
  406. uint GetNumMorphs() const;
  407. uint GetNumNetworkAttributes() const;
  408. uint GetNumOccluderTriangles();
  409. ObjectAnimation GetObjectAnimation() const;
  410. ResourceRef GetObjectAnimationAttr() const;
  411. uint GetOcclusionLodLevel() const;
  412. Scene GetScene() const;
  413. float GetShadowDistance() const;
  414. uint GetShadowMask() const;
  415. Skeleton& GetSkeleton();
  416. float GetSortValue() const;
  417. Object GetSubsystem(StringHash) const;
  418. StringHash GetType() const;
  419. UpdateGeometryType GetUpdateGeometryType();
  420. bool GetUpdateInvisible() const;
  421. Array<Light> GetVertexLights() const;
  422. uint GetViewMask() const;
  423. Zone GetZone() const;
  424. uint GetZoneMask() const;
  425. bool HasBasePass(uint) const;
  426. bool HasEventHandlers() const;
  427. bool HasSubscribedToEvent(Object, StringHash) const;
  428. bool HasSubscribedToEvent(StringHash) const;
  429. bool IsEnabled() const;
  430. bool IsEnabledEffective() const;
  431. bool IsInView() const;
  432. bool IsInView(Camera) const;
  433. bool IsInView(const FrameInfo&, bool = false) const;
  434. bool IsInside(const Vector3&) const;
  435. bool IsInsideLocal(const Vector3&) const;
  436. bool IsInstanceOf(StringHash) const;
  437. bool IsMaster() const;
  438. bool IsOccludee() const;
  439. bool IsOccluder() const;
  440. bool IsReplicated() const;
  441. bool IsTemporary() const;
  442. bool IsZoneDirty() const;
  443. void LimitLights();
  444. void LimitVertexLights(bool);
  445. bool Load(Deserializer&);
  446. bool LoadJSON(const JSONValue&);
  447. bool LoadXML(const XMLElement&);
  448. void MarkForUpdate();
  449. void MarkInView(const FrameInfo&);
  450. void MarkInView(uint);
  451. void MarkNetworkUpdate();
  452. operator Object() const;
  453. void OnEvent(Object, StringHash, VariantMap&);
  454. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  455. void OnSetAttribute(const AttributeInfo&, const Variant&);
  456. void OnSetEnabled();
  457. void PrepareNetworkUpdate();
  458. bool ReadDeltaUpdate(Deserializer&);
  459. bool ReadLatestDataUpdate(Deserializer&);
  460. operator RefCounted() const;
  461. int Refs() const;
  462. void Remove();
  463. void RemoveAllAnimationStates();
  464. void RemoveAnimationState(Animation);
  465. void RemoveAnimationState(AnimationState);
  466. void RemoveAnimationState(StringHash);
  467. void RemoveAnimationState(const String&);
  468. void RemoveAnimationState(uint);
  469. void RemoveAttributeAnimation(const String&);
  470. void RemoveInstanceDefault();
  471. void RemoveObjectAnimation();
  472. void ResetMorphWeights();
  473. void ResetToDefault();
  474. const ResourceRefList& GetMaterialsAttr() const;
  475. bool Save(Serializer&) const;
  476. bool SaveDefaultAttributes() const;
  477. bool SaveJSON(JSONValue&) const;
  478. bool SaveXML(XMLElement&) const;
  479. void SendEvent(StringHash);
  480. void SendEvent(StringHash, VariantMap&);
  481. operator Serializable() const;
  482. void SetAnimationEnabled(bool);
  483. void SetAnimationLodBias(float);
  484. void SetAnimationTime(float);
  485. bool SetAttribute(const String&, const Variant&);
  486. bool SetAttribute(uint, const Variant&);
  487. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  488. void SetAttributeAnimationSpeed(const String&, float);
  489. void SetAttributeAnimationTime(const String&, float);
  490. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  491. void SetBasePass(uint);
  492. void SetBlockEvents(bool);
  493. void SetCastShadows(bool);
  494. void SetDrawDistance(float);
  495. void SetEnabled(bool);
  496. void SetGlobalVar(StringHash, const Variant&);
  497. void SetInstanceDefault(bool);
  498. void SetInterceptNetworkUpdate(const String&, bool);
  499. void SetLightMask(uint);
  500. void SetLodBias(float);
  501. void SetMaterial(Material);
  502. bool SetMaterial(uint, Material);
  503. void SetMaterialsAttr(const ResourceRefList&);
  504. void SetMaxLights(uint);
  505. void SetMinMaxZ(float, float);
  506. void SetModel(Model);
  507. void SetModel(Model, bool = true);
  508. void SetModelAttr(const ResourceRef&);
  509. void SetMorphWeight(StringHash, float);
  510. void SetMorphWeight(const String&, float);
  511. void SetMorphWeight(uint, float);
  512. void SetObjectAnimation(ObjectAnimation);
  513. void SetObjectAnimationAttr(const ResourceRef&);
  514. void SetOccludee(bool);
  515. void SetOccluder(bool);
  516. void SetOcclusionLodLevel(uint);
  517. void SetShadowDistance(float);
  518. void SetShadowMask(uint);
  519. void SetSortValue(float);
  520. void SetTemporary(bool);
  521. void SetUpdateInvisible(bool);
  522. void SetViewMask(uint);
  523. void SetZone(Zone, bool = false);
  524. void SetZoneMask(uint);
  525. operator StaticModel() const;
  526. const String& GetCategory() const;
  527. const String& GetTypeName() const;
  528. void UnsubscribeFromAllEvents();
  529. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  530. void UnsubscribeFromEvent(Object, StringHash);
  531. void UnsubscribeFromEvent(StringHash);
  532. void UnsubscribeFromEvents(Object);
  533. void Update(const FrameInfo&);
  534. void UpdateBatches(const FrameInfo&);
  535. void UpdateBoneBoundingBox();
  536. void UpdateGeometry(const FrameInfo&);
  537. const Variant& GetGlobalVar(StringHash) const;
  538. const VariantMap& GetGlobalVars() const;
  539. int WeakRefs() const;
  540. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  541. void WriteInitialDeltaUpdate(Serializer&, uint8);
  542. void WriteLatestDataUpdate(Serializer&, uint8);
  543. operator const Animatable() const;
  544. operator const Component() const;
  545. operator const Drawable() const;
  546. operator const Object() const;
  547. operator const RefCounted() const;
  548. operator const Serializable() const;
  549. operator const StaticModel() const;
  550. // Properties:
  551. bool animationEnabled;
  552. float animationLodBias;
  553. /* readonly */
  554. Array<AnimationState> animationStates;
  555. /* readonly */
  556. Array<Variant> attributeDefaults;
  557. /* readonly */
  558. Array<AttributeInfo> attributeInfos;
  559. Array<Variant> attributes;
  560. /* readonly */
  561. BoundingBox boundingBox;
  562. bool castShadows;
  563. /* readonly */
  564. String category;
  565. float drawDistance;
  566. bool enabled;
  567. /* readonly */
  568. bool enabledEffective;
  569. Array<Variant> globalVar;
  570. /* readonly */
  571. VariantMap globalVars;
  572. /* readonly */
  573. uint id;
  574. /* readonly */
  575. bool inView;
  576. uint lightMask;
  577. float lodBias;
  578. Material material;
  579. Array<Material> materials;
  580. uint maxLights;
  581. Model model;
  582. /* readonly */
  583. Array<String> morphNames;
  584. Array<float> morphWeights;
  585. /* readonly */
  586. Node node;
  587. /* readonly */
  588. uint numAnimationStates;
  589. /* readonly */
  590. uint numAttributes;
  591. /* readonly */
  592. uint numGeometries;
  593. /* readonly */
  594. uint numMorphs;
  595. ObjectAnimation objectAnimation;
  596. bool occludee;
  597. bool occluder;
  598. uint occlusionLodLevel;
  599. /* readonly */
  600. int refs;
  601. /* readonly */
  602. bool replicated;
  603. float shadowDistance;
  604. uint shadowMask;
  605. /* readonly */
  606. Skeleton skeleton;
  607. bool temporary;
  608. /* readonly */
  609. StringHash type;
  610. /* readonly */
  611. String typeName;
  612. bool updateInvisible;
  613. uint viewMask;
  614. /* readonly */
  615. int weakRefs;
  616. /* readonly */
  617. BoundingBox worldBoundingBox;
  618. /* readonly */
  619. Zone zone;
  620. uint zoneMask;
  621. };
  622. class AnimatedSprite2D
  623. {
  624. public:
  625. AnimatedSprite2D();
  626. // Methods:
  627. void AddLight(Light);
  628. void AddVertexLight(Light);
  629. void AllocateNetworkState();
  630. operator Animatable() const;
  631. void ApplyAttributes();
  632. const BoundingBox& GetBoundingBox() const;
  633. const BoundingBox& GetWorldBoundingBox();
  634. void CleanupConnection(Connection);
  635. const Color& GetColor() const;
  636. operator Component() const;
  637. void DrawDebugGeometry(DebugRenderer, bool);
  638. bool DrawOcclusion(OcclusionBuffer);
  639. operator Drawable2D() const;
  640. operator Drawable() const;
  641. float GetAlpha() const;
  642. bool GetAnimationEnabled() const;
  643. AnimationSet2D GetAnimationSet() const;
  644. ResourceRef GetAnimationSetAttr() const;
  645. Variant GetAttribute(const String&) const;
  646. Variant GetAttribute(uint) const;
  647. ValueAnimation GetAttributeAnimation(const String&) const;
  648. float GetAttributeAnimationSpeed(const String&) const;
  649. float GetAttributeAnimationTime(const String&) const;
  650. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  651. Variant GetAttributeDefault(const String&) const;
  652. Variant GetAttributeDefault(uint) const;
  653. BlendMode GetBlendMode() const;
  654. bool GetBlockEvents() const;
  655. bool GetCastShadows() const;
  656. Component GetComponent(StringHash) const;
  657. Material GetCustomMaterial() const;
  658. ResourceRef GetCustomMaterialAttr() const;
  659. float GetDistance() const;
  660. float GetDrawDistance() const;
  661. uint8 GetDrawableFlags() const;
  662. VariantMap& GetEventDataMap() const;
  663. Object GetEventSender() const;
  664. Light GetFirstLight() const;
  665. bool GetFlipX() const;
  666. bool GetFlipY() const;
  667. uint GetID() const;
  668. bool GetInterceptNetworkUpdate(const String&) const;
  669. int GetLayer() const;
  670. uint GetLightMask() const;
  671. Array<Light> GetLights() const;
  672. float GetLodBias() const;
  673. float GetLodDistance() const;
  674. Geometry GetLodGeometry(uint, uint);
  675. LoopMode2D GetLoopMode() const;
  676. uint GetMaxLights() const;
  677. float GetMaxZ() const;
  678. float GetMinZ() const;
  679. Node GetNode() const;
  680. uint GetNumAttributes() const;
  681. uint GetNumNetworkAttributes() const;
  682. uint GetNumOccluderTriangles();
  683. ObjectAnimation GetObjectAnimation() const;
  684. ResourceRef GetObjectAnimationAttr() const;
  685. int GetOrderInLayer() const;
  686. Scene GetScene() const;
  687. float GetShadowDistance() const;
  688. uint GetShadowMask() const;
  689. float GetSortValue() const;
  690. float GetSpeed() const;
  691. Sprite2D GetSprite() const;
  692. ResourceRef GetSpriteAttr() const;
  693. Object GetSubsystem(StringHash) const;
  694. bool GetSwapXY() const;
  695. StringHash GetType() const;
  696. UpdateGeometryType GetUpdateGeometryType();
  697. bool GetUseDrawRect() const;
  698. bool GetUseHotSpot() const;
  699. bool GetUseTextureRect() const;
  700. Array<Light> GetVertexLights() const;
  701. uint GetViewMask() const;
  702. Zone GetZone() const;
  703. uint GetZoneMask() const;
  704. bool HasBasePass(uint) const;
  705. bool HasEventHandlers() const;
  706. bool HasSubscribedToEvent(Object, StringHash) const;
  707. bool HasSubscribedToEvent(StringHash) const;
  708. bool IsEnabled() const;
  709. bool IsEnabledEffective() const;
  710. bool IsInView() const;
  711. bool IsInView(Camera) const;
  712. bool IsInView(const FrameInfo&, bool = false) const;
  713. bool IsInstanceOf(StringHash) const;
  714. bool IsOccludee() const;
  715. bool IsOccluder() const;
  716. bool IsReplicated() const;
  717. bool IsTemporary() const;
  718. bool IsZoneDirty() const;
  719. void LimitLights();
  720. void LimitVertexLights(bool);
  721. bool Load(Deserializer&);
  722. bool LoadJSON(const JSONValue&);
  723. bool LoadXML(const XMLElement&);
  724. void MarkForUpdate();
  725. void MarkInView(const FrameInfo&);
  726. void MarkInView(uint);
  727. void MarkNetworkUpdate();
  728. operator Object() const;
  729. void OnEvent(Object, StringHash, VariantMap&);
  730. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  731. void OnSetAttribute(const AttributeInfo&, const Variant&);
  732. void OnSetEnabled();
  733. void PrepareNetworkUpdate();
  734. bool ReadDeltaUpdate(Deserializer&);
  735. bool ReadLatestDataUpdate(Deserializer&);
  736. const Rect& GetDrawRect() const;
  737. const Rect& GetTextureRect() const;
  738. operator RefCounted() const;
  739. int Refs() const;
  740. void Remove();
  741. void RemoveAttributeAnimation(const String&);
  742. void RemoveInstanceDefault();
  743. void RemoveObjectAnimation();
  744. void ResetToDefault();
  745. bool Save(Serializer&) const;
  746. bool SaveDefaultAttributes() const;
  747. bool SaveJSON(JSONValue&) const;
  748. bool SaveXML(XMLElement&) const;
  749. void SendEvent(StringHash);
  750. void SendEvent(StringHash, VariantMap&);
  751. operator Serializable() const;
  752. void SetAlpha(float);
  753. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  754. void SetAnimationAttr(const String&);
  755. void SetAnimationEnabled(bool);
  756. void SetAnimationSet(AnimationSet2D);
  757. void SetAnimationSetAttr(const ResourceRef&);
  758. void SetAnimationTime(float);
  759. bool SetAttribute(const String&, const Variant&);
  760. bool SetAttribute(uint, const Variant&);
  761. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  762. void SetAttributeAnimationSpeed(const String&, float);
  763. void SetAttributeAnimationTime(const String&, float);
  764. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  765. void SetBasePass(uint);
  766. void SetBlendMode(BlendMode);
  767. void SetBlockEvents(bool);
  768. void SetCastShadows(bool);
  769. void SetColor(const Color&);
  770. void SetCustomMaterial(Material);
  771. void SetCustomMaterialAttr(const ResourceRef&);
  772. void SetDrawDistance(float);
  773. void SetDrawRect(const Rect&);
  774. void SetEnabled(bool);
  775. void SetEntity(const String&);
  776. void SetFlip(bool, bool, bool = false);
  777. void SetFlipX(bool);
  778. void SetFlipY(bool);
  779. void SetGlobalVar(StringHash, const Variant&);
  780. void SetHotSpot(const Vector2&);
  781. void SetInstanceDefault(bool);
  782. void SetInterceptNetworkUpdate(const String&, bool);
  783. void SetLayer(int);
  784. void SetLightMask(uint);
  785. void SetLodBias(float);
  786. void SetLoopMode(LoopMode2D);
  787. void SetMaxLights(uint);
  788. void SetMinMaxZ(float, float);
  789. void SetObjectAnimation(ObjectAnimation);
  790. void SetObjectAnimationAttr(const ResourceRef&);
  791. void SetOccludee(bool);
  792. void SetOccluder(bool);
  793. void SetOrderInLayer(int);
  794. void SetShadowDistance(float);
  795. void SetShadowMask(uint);
  796. void SetSortValue(float);
  797. void SetSpeed(float);
  798. void SetSprite(Sprite2D);
  799. void SetSpriteAttr(const ResourceRef&);
  800. void SetSwapXY(bool);
  801. void SetTemporary(bool);
  802. void SetTextureRect(const Rect&);
  803. void SetUseDrawRect(bool);
  804. void SetUseHotSpot(bool);
  805. void SetUseTextureRect(bool);
  806. void SetViewMask(uint);
  807. void SetZone(Zone, bool = false);
  808. void SetZoneMask(uint);
  809. operator StaticSprite2D() const;
  810. const String& GetAnimation() const;
  811. const String& GetCategory() const;
  812. const String& GetEntity() const;
  813. const String& GetTypeName() const;
  814. void UnsubscribeFromAllEvents();
  815. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  816. void UnsubscribeFromEvent(Object, StringHash);
  817. void UnsubscribeFromEvent(StringHash);
  818. void UnsubscribeFromEvents(Object);
  819. void Update(const FrameInfo&);
  820. void UpdateBatches(const FrameInfo&);
  821. void UpdateGeometry(const FrameInfo&);
  822. const Variant& GetGlobalVar(StringHash) const;
  823. const VariantMap& GetGlobalVars() const;
  824. const Vector2& GetHotSpot() const;
  825. int WeakRefs() const;
  826. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  827. void WriteInitialDeltaUpdate(Serializer&, uint8);
  828. void WriteLatestDataUpdate(Serializer&, uint8);
  829. operator const Animatable() const;
  830. operator const Component() const;
  831. operator const Drawable2D() const;
  832. operator const Drawable() const;
  833. operator const Object() const;
  834. operator const RefCounted() const;
  835. operator const Serializable() const;
  836. operator const StaticSprite2D() const;
  837. // Properties:
  838. float alpha;
  839. String animation;
  840. bool animationEnabled;
  841. AnimationSet2D animationSet;
  842. /* readonly */
  843. Array<Variant> attributeDefaults;
  844. /* readonly */
  845. Array<AttributeInfo> attributeInfos;
  846. Array<Variant> attributes;
  847. BlendMode blendMode;
  848. /* readonly */
  849. BoundingBox boundingBox;
  850. bool castShadows;
  851. /* readonly */
  852. String category;
  853. Color color;
  854. Material customMaterial;
  855. float drawDistance;
  856. Rect drawRect;
  857. bool enabled;
  858. /* readonly */
  859. bool enabledEffective;
  860. String entity;
  861. bool flipX;
  862. bool flipY;
  863. Array<Variant> globalVar;
  864. /* readonly */
  865. VariantMap globalVars;
  866. Vector2 hotSpot;
  867. /* readonly */
  868. uint id;
  869. /* readonly */
  870. bool inView;
  871. int layer;
  872. uint lightMask;
  873. float lodBias;
  874. LoopMode2D loopMode;
  875. uint maxLights;
  876. /* readonly */
  877. Node node;
  878. /* readonly */
  879. uint numAttributes;
  880. ObjectAnimation objectAnimation;
  881. bool occludee;
  882. bool occluder;
  883. int orderInLayer;
  884. /* readonly */
  885. int refs;
  886. /* readonly */
  887. bool replicated;
  888. float shadowDistance;
  889. uint shadowMask;
  890. float speed;
  891. Sprite2D sprite;
  892. bool swapXY;
  893. bool temporary;
  894. Rect textureRect;
  895. /* readonly */
  896. StringHash type;
  897. /* readonly */
  898. String typeName;
  899. bool useDrawRect;
  900. bool useHotSpot;
  901. bool useTextureRect;
  902. uint viewMask;
  903. /* readonly */
  904. int weakRefs;
  905. /* readonly */
  906. BoundingBox worldBoundingBox;
  907. /* readonly */
  908. Zone zone;
  909. uint zoneMask;
  910. };
  911. class Animation
  912. {
  913. public:
  914. Animation();
  915. // Methods:
  916. void AddMetadata(const String&, const Variant&);
  917. void AddTrigger(const AnimationTriggerPoint&);
  918. void AddTrigger(float, bool, const Variant&);
  919. bool BeginLoad(Deserializer&);
  920. Animation Clone(const String& = String :: EMPTY) const;
  921. AnimationTrack CreateTrack(const String&);
  922. bool EndLoad();
  923. StringHash GetAnimationNameHash() const;
  924. AsyncLoadState GetAsyncLoadState() const;
  925. bool GetBlockEvents() const;
  926. VariantMap& GetEventDataMap() const;
  927. Object GetEventSender() const;
  928. float GetLength() const;
  929. uint GetMemoryUse() const;
  930. StringHash GetNameHash() const;
  931. uint GetNumTracks() const;
  932. uint GetNumTriggers() const;
  933. Object GetSubsystem(StringHash) const;
  934. AnimationTrack GetTrack(StringHash);
  935. AnimationTrack GetTrack(const String&);
  936. AnimationTrack GetTrack(uint);
  937. StringHash GetType() const;
  938. uint GetUseTimer();
  939. bool HasEventHandlers() const;
  940. bool HasMetadata() const;
  941. bool HasSubscribedToEvent(Object, StringHash) const;
  942. bool HasSubscribedToEvent(StringHash) const;
  943. bool IsInstanceOf(StringHash) const;
  944. bool Load(Deserializer&);
  945. bool Load(File);
  946. bool Load(VectorBuffer&);
  947. bool Load(const String&);
  948. bool LoadFile(const String&);
  949. operator Object() const;
  950. void OnEvent(Object, StringHash, VariantMap&);
  951. operator RefCounted() const;
  952. int Refs() const;
  953. void RemoveAllMetadata();
  954. void RemoveAllTracks();
  955. void RemoveAllTriggers();
  956. void RemoveMetadata(const String&);
  957. bool RemoveTrack(const String&);
  958. void RemoveTrigger(uint);
  959. void ResetUseTimer();
  960. operator Resource() const;
  961. operator ResourceWithMetadata() const;
  962. bool Save(File) const;
  963. bool Save(Serializer&) const;
  964. bool Save(VectorBuffer&) const;
  965. bool Save(const String&) const;
  966. bool SaveFile(const String&) const;
  967. void SendEvent(StringHash);
  968. void SendEvent(StringHash, VariantMap&);
  969. void SetAnimationName(const String&);
  970. void SetAsyncLoadState(AsyncLoadState);
  971. void SetBlockEvents(bool);
  972. void SetGlobalVar(StringHash, const Variant&);
  973. void SetLength(float);
  974. void SetMemoryUse(uint);
  975. void SetName(const String&);
  976. void SetNumTriggers(uint);
  977. void SetTrigger(uint, const AnimationTriggerPoint&);
  978. const String& GetAnimationName() const;
  979. const String& GetCategory() const;
  980. const String& GetName() const;
  981. const String& GetTypeName() const;
  982. void UnsubscribeFromAllEvents();
  983. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  984. void UnsubscribeFromEvent(Object, StringHash);
  985. void UnsubscribeFromEvent(StringHash);
  986. void UnsubscribeFromEvents(Object);
  987. const Variant& GetGlobalVar(StringHash) const;
  988. const Variant& GetMetadata(const String&) const;
  989. const VariantMap& GetGlobalVars() const;
  990. int WeakRefs() const;
  991. operator const Object() const;
  992. operator const RefCounted() const;
  993. operator const Resource() const;
  994. operator const ResourceWithMetadata() const;
  995. // Properties:
  996. String animationName;
  997. /* readonly */
  998. String category;
  999. Array<Variant> globalVar;
  1000. /* readonly */
  1001. VariantMap globalVars;
  1002. /* readonly */
  1003. bool hasMetadata;
  1004. float length;
  1005. /* readonly */
  1006. uint memoryUse;
  1007. Array<Variant> metadata;
  1008. String name;
  1009. /* readonly */
  1010. uint numTracks;
  1011. uint numTriggers;
  1012. /* readonly */
  1013. int refs;
  1014. /* readonly */
  1015. Array<AnimationTrack> tracks;
  1016. Array<AnimationTriggerPoint> triggers;
  1017. /* readonly */
  1018. StringHash type;
  1019. /* readonly */
  1020. String typeName;
  1021. /* readonly */
  1022. uint useTimer;
  1023. /* readonly */
  1024. int weakRefs;
  1025. };
  1026. class AnimationControl
  1027. {
  1028. public:
  1029. // Methods:
  1030. AnimationControl& operator=(const AnimationControl&);
  1031. // Properties:
  1032. float autoFadeTime;
  1033. float fadeTime;
  1034. StringHash hash;
  1035. String name;
  1036. bool removeOnCompletion;
  1037. uint16 setTime;
  1038. uint8 setTimeRev;
  1039. float setTimeTtl;
  1040. uint8 setWeight;
  1041. uint8 setWeightRev;
  1042. float setWeightTtl;
  1043. float speed;
  1044. float targetWeight;
  1045. };
  1046. class AnimationController
  1047. {
  1048. public:
  1049. AnimationController();
  1050. // Methods:
  1051. void AllocateNetworkState();
  1052. operator Animatable() const;
  1053. void ApplyAttributes();
  1054. void CleanupConnection(Connection);
  1055. operator Component() const;
  1056. void DrawDebugGeometry(DebugRenderer, bool);
  1057. bool Fade(const String&, float, float);
  1058. bool FadeOthers(const String&, float, float);
  1059. bool GetAnimationEnabled() const;
  1060. AnimationState GetAnimationState(StringHash) const;
  1061. AnimationState GetAnimationState(const String&) const;
  1062. Variant GetAttribute(const String&) const;
  1063. Variant GetAttribute(uint) const;
  1064. ValueAnimation GetAttributeAnimation(const String&) const;
  1065. float GetAttributeAnimationSpeed(const String&) const;
  1066. float GetAttributeAnimationTime(const String&) const;
  1067. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1068. Variant GetAttributeDefault(const String&) const;
  1069. Variant GetAttributeDefault(uint) const;
  1070. float GetAutoFade(const String&) const;
  1071. AnimationBlendMode GetBlendMode(const String&) const;
  1072. bool GetBlockEvents() const;
  1073. Component GetComponent(StringHash) const;
  1074. VariantMap& GetEventDataMap() const;
  1075. Object GetEventSender() const;
  1076. float GetFadeTarget(const String&) const;
  1077. float GetFadeTime(const String&) const;
  1078. uint GetID() const;
  1079. bool GetInterceptNetworkUpdate(const String&) const;
  1080. uint8 GetLayer(const String&) const;
  1081. float GetLength(const String&) const;
  1082. Node GetNode() const;
  1083. uint GetNumAttributes() const;
  1084. uint GetNumNetworkAttributes() const;
  1085. ObjectAnimation GetObjectAnimation() const;
  1086. ResourceRef GetObjectAnimationAttr() const;
  1087. bool GetRemoveOnCompletion(const String&) const;
  1088. Scene GetScene() const;
  1089. float GetSpeed(const String&) const;
  1090. Bone GetStartBone(const String&) const;
  1091. Object GetSubsystem(StringHash) const;
  1092. float GetTime(const String&) const;
  1093. StringHash GetType() const;
  1094. float GetWeight(const String&) const;
  1095. bool HasEventHandlers() const;
  1096. bool HasSubscribedToEvent(Object, StringHash) const;
  1097. bool HasSubscribedToEvent(StringHash) const;
  1098. bool IsAtEnd(const String&) const;
  1099. bool IsEnabled() const;
  1100. bool IsEnabledEffective() const;
  1101. bool IsFadingIn(const String&) const;
  1102. bool IsFadingOut(const String&) const;
  1103. bool IsInstanceOf(StringHash) const;
  1104. bool IsLooped(const String&) const;
  1105. bool IsPlaying(const String&) const;
  1106. bool IsPlaying(uint8) const;
  1107. bool IsReplicated() const;
  1108. bool IsTemporary() const;
  1109. bool Load(Deserializer&);
  1110. bool LoadJSON(const JSONValue&);
  1111. bool LoadXML(const XMLElement&);
  1112. void MarkNetworkUpdate();
  1113. operator Object() const;
  1114. void OnEvent(Object, StringHash, VariantMap&);
  1115. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  1116. void OnSetAttribute(const AttributeInfo&, const Variant&);
  1117. void OnSetEnabled();
  1118. bool Play(const String&, uint8, bool, float = 0.0f);
  1119. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  1120. void PrepareNetworkUpdate();
  1121. bool ReadDeltaUpdate(Deserializer&);
  1122. bool ReadLatestDataUpdate(Deserializer&);
  1123. operator RefCounted() const;
  1124. int Refs() const;
  1125. void Remove();
  1126. void RemoveAttributeAnimation(const String&);
  1127. void RemoveInstanceDefault();
  1128. void RemoveObjectAnimation();
  1129. void ResetToDefault();
  1130. bool Save(Serializer&) const;
  1131. bool SaveDefaultAttributes() const;
  1132. bool SaveJSON(JSONValue&) const;
  1133. bool SaveXML(XMLElement&) const;
  1134. void SendEvent(StringHash);
  1135. void SendEvent(StringHash, VariantMap&);
  1136. operator Serializable() const;
  1137. void SetAnimationEnabled(bool);
  1138. void SetAnimationTime(float);
  1139. bool SetAttribute(const String&, const Variant&);
  1140. bool SetAttribute(uint, const Variant&);
  1141. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1142. void SetAttributeAnimationSpeed(const String&, float);
  1143. void SetAttributeAnimationTime(const String&, float);
  1144. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1145. bool SetAutoFade(const String&, float);
  1146. bool SetBlendMode(const String&, AnimationBlendMode);
  1147. void SetBlockEvents(bool);
  1148. void SetEnabled(bool);
  1149. void SetGlobalVar(StringHash, const Variant&);
  1150. void SetInstanceDefault(bool);
  1151. void SetInterceptNetworkUpdate(const String&, bool);
  1152. bool SetLayer(const String&, uint8);
  1153. bool SetLooped(const String&, bool);
  1154. void SetObjectAnimation(ObjectAnimation);
  1155. void SetObjectAnimationAttr(const ResourceRef&);
  1156. bool SetRemoveOnCompletion(const String&, bool);
  1157. bool SetSpeed(const String&, float);
  1158. bool SetStartBone(const String&, const String&);
  1159. void SetTemporary(bool);
  1160. bool SetTime(const String&, float);
  1161. bool SetWeight(const String&, float);
  1162. bool Stop(const String&, float = 0.0f);
  1163. void StopAll(float = 0.0f);
  1164. void StopLayer(uint8, float = 0.0f);
  1165. const String& GetCategory() const;
  1166. const String& GetStartBoneName(const String&) const;
  1167. const String& GetTypeName() const;
  1168. void UnsubscribeFromAllEvents();
  1169. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1170. void UnsubscribeFromEvent(Object, StringHash);
  1171. void UnsubscribeFromEvent(StringHash);
  1172. void UnsubscribeFromEvents(Object);
  1173. void Update(float);
  1174. const Variant& GetGlobalVar(StringHash) const;
  1175. const VariantMap& GetGlobalVars() const;
  1176. int WeakRefs() const;
  1177. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  1178. void WriteInitialDeltaUpdate(Serializer&, uint8);
  1179. void WriteLatestDataUpdate(Serializer&, uint8);
  1180. operator const Animatable() const;
  1181. operator const Component() const;
  1182. operator const Object() const;
  1183. operator const RefCounted() const;
  1184. operator const Serializable() const;
  1185. // Properties:
  1186. bool animationEnabled;
  1187. /* readonly */
  1188. Array<AnimationControl> animations;
  1189. /* readonly */
  1190. Array<Variant> attributeDefaults;
  1191. /* readonly */
  1192. Array<AttributeInfo> attributeInfos;
  1193. Array<Variant> attributes;
  1194. /* readonly */
  1195. String category;
  1196. bool enabled;
  1197. /* readonly */
  1198. bool enabledEffective;
  1199. Array<Variant> globalVar;
  1200. /* readonly */
  1201. VariantMap globalVars;
  1202. /* readonly */
  1203. uint id;
  1204. /* readonly */
  1205. Node node;
  1206. /* readonly */
  1207. uint numAnimations;
  1208. /* readonly */
  1209. uint numAttributes;
  1210. ObjectAnimation objectAnimation;
  1211. /* readonly */
  1212. int refs;
  1213. /* readonly */
  1214. bool replicated;
  1215. bool temporary;
  1216. /* readonly */
  1217. StringHash type;
  1218. /* readonly */
  1219. String typeName;
  1220. /* readonly */
  1221. int weakRefs;
  1222. };
  1223. class AnimationKeyFrame
  1224. {
  1225. public:
  1226. ~AnimationKeyFrame();
  1227. AnimationKeyFrame();
  1228. // Methods:
  1229. AnimationKeyFrame& operator=(const AnimationKeyFrame&);
  1230. // Properties:
  1231. Vector3 position;
  1232. Quaternion rotation;
  1233. Vector3 scale;
  1234. float time;
  1235. };
  1236. class AnimationSet2D
  1237. {
  1238. public:
  1239. AnimationSet2D();
  1240. // Methods:
  1241. bool BeginLoad(Deserializer&);
  1242. bool EndLoad();
  1243. String GetAnimation(uint) const;
  1244. AsyncLoadState GetAsyncLoadState() const;
  1245. bool GetBlockEvents() const;
  1246. VariantMap& GetEventDataMap() const;
  1247. Object GetEventSender() const;
  1248. uint GetMemoryUse() const;
  1249. StringHash GetNameHash() const;
  1250. uint GetNumAnimations() const;
  1251. Sprite2D GetSprite() const;
  1252. Sprite2D GetSpriterFileSprite(int, int) const;
  1253. Object GetSubsystem(StringHash) const;
  1254. StringHash GetType() const;
  1255. uint GetUseTimer();
  1256. bool HasAnimation(const String&) const;
  1257. bool HasEventHandlers() const;
  1258. bool HasSubscribedToEvent(Object, StringHash) const;
  1259. bool HasSubscribedToEvent(StringHash) const;
  1260. bool IsInstanceOf(StringHash) const;
  1261. bool Load(Deserializer&);
  1262. bool Load(File);
  1263. bool Load(VectorBuffer&);
  1264. bool Load(const String&);
  1265. bool LoadFile(const String&);
  1266. operator Object() const;
  1267. void OnEvent(Object, StringHash, VariantMap&);
  1268. operator RefCounted() const;
  1269. int Refs() const;
  1270. void ResetUseTimer();
  1271. operator Resource() const;
  1272. bool Save(File) const;
  1273. bool Save(Serializer&) const;
  1274. bool Save(VectorBuffer&) const;
  1275. bool Save(const String&) const;
  1276. bool SaveFile(const String&) const;
  1277. void SendEvent(StringHash);
  1278. void SendEvent(StringHash, VariantMap&);
  1279. void SetAsyncLoadState(AsyncLoadState);
  1280. void SetBlockEvents(bool);
  1281. void SetGlobalVar(StringHash, const Variant&);
  1282. void SetMemoryUse(uint);
  1283. void SetName(const String&);
  1284. const String& GetCategory() const;
  1285. const String& GetName() const;
  1286. const String& GetTypeName() const;
  1287. void UnsubscribeFromAllEvents();
  1288. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1289. void UnsubscribeFromEvent(Object, StringHash);
  1290. void UnsubscribeFromEvent(StringHash);
  1291. void UnsubscribeFromEvents(Object);
  1292. const Variant& GetGlobalVar(StringHash) const;
  1293. const VariantMap& GetGlobalVars() const;
  1294. int WeakRefs() const;
  1295. operator const Object() const;
  1296. operator const RefCounted() const;
  1297. operator const Resource() const;
  1298. // Properties:
  1299. /* readonly */
  1300. String category;
  1301. Array<Variant> globalVar;
  1302. /* readonly */
  1303. VariantMap globalVars;
  1304. /* readonly */
  1305. uint memoryUse;
  1306. String name;
  1307. /* readonly */
  1308. uint numAnimations;
  1309. /* readonly */
  1310. int refs;
  1311. /* readonly */
  1312. StringHash type;
  1313. /* readonly */
  1314. String typeName;
  1315. /* readonly */
  1316. uint useTimer;
  1317. /* readonly */
  1318. int weakRefs;
  1319. };
  1320. class AnimationState
  1321. {
  1322. public:
  1323. AnimationState(AnimatedModel&, Animation&);
  1324. AnimationState(Node&, Animation&);
  1325. // Methods:
  1326. void AddTime(float);
  1327. void AddWeight(float);
  1328. void Apply();
  1329. Animation GetAnimation() const;
  1330. AnimationBlendMode GetBlendMode() const;
  1331. float GetBoneWeight(StringHash) const;
  1332. float GetBoneWeight(const String&) const;
  1333. float GetBoneWeight(uint) const;
  1334. uint8 GetLayer() const;
  1335. float GetLength() const;
  1336. AnimatedModel GetModel() const;
  1337. Node GetNode() const;
  1338. Bone GetStartBone() const;
  1339. float GetTime() const;
  1340. uint GetTrackIndex(Node) const;
  1341. uint GetTrackIndex(StringHash) const;
  1342. uint GetTrackIndex(const String&) const;
  1343. float GetWeight() const;
  1344. bool IsEnabled() const;
  1345. bool IsLooped() const;
  1346. operator RefCounted() const;
  1347. int Refs() const;
  1348. void SetBlendMode(AnimationBlendMode);
  1349. void SetBoneWeight(StringHash, float, bool = false);
  1350. void SetBoneWeight(const String&, float, bool = false);
  1351. void SetBoneWeight(uint, float, bool = false);
  1352. void SetLayer(uint8);
  1353. void SetLooped(bool);
  1354. void SetStartBone(Bone);
  1355. void SetTime(float);
  1356. void SetWeight(float);
  1357. int WeakRefs() const;
  1358. operator const RefCounted() const;
  1359. // Properties:
  1360. /* readonly */
  1361. Animation animation;
  1362. AnimationBlendMode blendMode;
  1363. Array<float> boneWeights;
  1364. /* readonly */
  1365. bool enabled;
  1366. uint8 layer;
  1367. /* readonly */
  1368. float length;
  1369. bool looped;
  1370. /* readonly */
  1371. AnimatedModel model;
  1372. /* readonly */
  1373. Node node;
  1374. /* readonly */
  1375. int refs;
  1376. Bone startBone;
  1377. float time;
  1378. /* readonly */
  1379. int weakRefs;
  1380. float weight;
  1381. };
  1382. class AnimationStateTrack
  1383. {
  1384. public:
  1385. ~AnimationStateTrack();
  1386. AnimationStateTrack();
  1387. // Methods:
  1388. AnimationStateTrack& operator=(const AnimationStateTrack&);
  1389. // Properties:
  1390. uint keyFrame;
  1391. float weight;
  1392. };
  1393. class AnimationTrack
  1394. {
  1395. public:
  1396. // Methods:
  1397. AnimationTrack& operator=(const AnimationTrack&);
  1398. void AddKeyFrame(const AnimationKeyFrame&);
  1399. bool GetKeyFrameIndex(float, uint&) const;
  1400. uint GetNumKeyFrames() const;
  1401. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  1402. void RemoveAllKeyFrames();
  1403. void RemoveKeyFrame(uint);
  1404. void SetKeyFrame(uint, const AnimationKeyFrame&);
  1405. // Properties:
  1406. uint8 channelMask;
  1407. Array<AnimationKeyFrame> keyFrames;
  1408. String name;
  1409. StringHash nameHash;
  1410. /* readonly */
  1411. uint numKeyFrames;
  1412. };
  1413. class AnimationTriggerPoint
  1414. {
  1415. public:
  1416. ~AnimationTriggerPoint();
  1417. AnimationTriggerPoint();
  1418. // Methods:
  1419. AnimationTriggerPoint& operator=(const AnimationTriggerPoint&);
  1420. // Properties:
  1421. Variant data;
  1422. float time;
  1423. };
  1424. class AreaAllocator
  1425. {
  1426. public:
  1427. ~AreaAllocator();
  1428. AreaAllocator();
  1429. AreaAllocator(int, int, bool = true);
  1430. AreaAllocator(int, int, int, int, bool = true);
  1431. // Methods:
  1432. AreaAllocator& operator=(const AreaAllocator&);
  1433. bool Allocate(int, int, int&, int&);
  1434. bool GetFastMode() const;
  1435. int GetHeight() const;
  1436. int GetWidth() const;
  1437. void Reset(int, int, int = 0, int = 0, bool = true);
  1438. };
  1439. template <typename T>
  1440. class Array
  1441. {
  1442. public:
  1443. Array(int&in);
  1444. Array(int&in, uint);
  1445. Array(int&in, uint, const T&in);
  1446. // Methods:
  1447. Array<Array<T>& operator=(const T>&);
  1448. bool operator==(const Array<T>&) const;
  1449. T& operator[](uint);
  1450. void Clear();
  1451. void Erase(uint);
  1452. int Find(const T&) const;
  1453. int Find(uint, const T&) const;
  1454. int FindByRef(const T&) const;
  1455. int FindByRef(uint, const T&) const;
  1456. void Insert(uint, const T&);
  1457. void Pop();
  1458. void Push(const T&);
  1459. void Reserve(uint);
  1460. void Resize(uint);
  1461. void Reverse();
  1462. void Sort();
  1463. void Sort(uint, uint);
  1464. void SortReverse();
  1465. void SortReverse(uint, uint);
  1466. bool Swap(Array<T>&);
  1467. const T& operator[](uint) const;
  1468. // Properties:
  1469. /* readonly */
  1470. bool empty;
  1471. uint length;
  1472. };
  1473. class AsyncProgress
  1474. {
  1475. public:
  1476. ~AsyncProgress();
  1477. AsyncProgress();
  1478. // Methods:
  1479. AsyncProgress& operator=(const AsyncProgress&);
  1480. // Properties:
  1481. uint jsonIndex;
  1482. uint loadedNodes;
  1483. uint loadedResources;
  1484. LoadMode mode;
  1485. uint totalNodes;
  1486. uint totalResources;
  1487. XMLElement xmlElement;
  1488. };
  1489. class AttributeAccessor
  1490. {
  1491. public:
  1492. // Methods:
  1493. void Get(Serializable, Variant&) const;
  1494. operator RefCounted() const;
  1495. int Refs() const;
  1496. void Set(Serializable, const Variant&);
  1497. int WeakRefs() const;
  1498. operator const RefCounted() const;
  1499. // Properties:
  1500. /* readonly */
  1501. int refs;
  1502. /* readonly */
  1503. int weakRefs;
  1504. };
  1505. class AttributeAnimationInfo
  1506. {
  1507. public:
  1508. AttributeAnimationInfo(Animatable&, const AttributeInfo&in, ValueAnimation&, WrapMode, float);
  1509. AttributeAnimationInfo(const AttributeAnimationInfo&in);
  1510. // Methods:
  1511. const AttributeInfo& GetAttributeInfo() const;
  1512. ValueAnimation GetAnimation() const;
  1513. float GetSpeed() const;
  1514. Object GetTarget() const;
  1515. float GetTime() const;
  1516. WrapMode GetWrapMode() const;
  1517. operator RefCounted() const;
  1518. int Refs() const;
  1519. void SetSpeed(float);
  1520. bool SetTime(float);
  1521. void SetWrapMode(WrapMode);
  1522. bool Update(float);
  1523. operator ValueAnimationInfo() const;
  1524. int WeakRefs() const;
  1525. operator const RefCounted() const;
  1526. operator const ValueAnimationInfo() const;
  1527. // Properties:
  1528. /* readonly */
  1529. int refs;
  1530. /* readonly */
  1531. int weakRefs;
  1532. };
  1533. class AttributeInfo
  1534. {
  1535. public:
  1536. ~AttributeInfo();
  1537. AttributeInfo();
  1538. // Methods:
  1539. AttributeInfo& operator=(const AttributeInfo&);
  1540. const Variant& GetMetadata(const StringHash&) const;
  1541. // Properties:
  1542. Variant defaultValue;
  1543. /* readonly */
  1544. Array<String> enumNames;
  1545. VariantMap metadata;
  1546. int mode;
  1547. String name;
  1548. VariantType type;
  1549. };
  1550. class Audio
  1551. {
  1552. public:
  1553. Audio();
  1554. // Methods:
  1555. void AddSoundSource(SoundSource);
  1556. bool GetBlockEvents() const;
  1557. VariantMap& GetEventDataMap() const;
  1558. Object GetEventSender() const;
  1559. bool GetInterpolation() const;
  1560. SoundListener GetListener() const;
  1561. float GetMasterGain(const String&) const;
  1562. int GetMixRate() const;
  1563. Mutex& GetMutex();
  1564. uint GetSampleSize() const;
  1565. float GetSoundSourceMasterGain(StringHash) const;
  1566. Array<SoundSource> GetSoundSources() const;
  1567. Object GetSubsystem(StringHash) const;
  1568. StringHash GetType() const;
  1569. bool HasEventHandlers() const;
  1570. bool HasMasterGain(const String&) const;
  1571. bool HasSubscribedToEvent(Object, StringHash) const;
  1572. bool HasSubscribedToEvent(StringHash) const;
  1573. bool IsInitialized() const;
  1574. bool IsInstanceOf(StringHash) const;
  1575. bool IsPlaying() const;
  1576. bool IsSoundTypePaused(const String&) const;
  1577. bool IsStereo() const;
  1578. operator Object() const;
  1579. void OnEvent(Object, StringHash, VariantMap&);
  1580. void PauseSoundType(const String&);
  1581. bool Play();
  1582. operator RefCounted() const;
  1583. int Refs() const;
  1584. void RemoveSoundSource(SoundSource);
  1585. void ResumeAll();
  1586. void ResumeSoundType(const String&);
  1587. void SendEvent(StringHash);
  1588. void SendEvent(StringHash, VariantMap&);
  1589. void SetBlockEvents(bool);
  1590. void SetGlobalVar(StringHash, const Variant&);
  1591. void SetListener(SoundListener);
  1592. void SetMasterGain(const String&, float);
  1593. bool SetMode(int, int, bool, bool = true);
  1594. void Stop();
  1595. void StopSound(Sound);
  1596. const String& GetCategory() const;
  1597. const String& GetTypeName() const;
  1598. void UnsubscribeFromAllEvents();
  1599. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1600. void UnsubscribeFromEvent(Object, StringHash);
  1601. void UnsubscribeFromEvent(StringHash);
  1602. void UnsubscribeFromEvents(Object);
  1603. void Update(float);
  1604. const Variant& GetGlobalVar(StringHash) const;
  1605. const VariantMap& GetGlobalVars() const;
  1606. int WeakRefs() const;
  1607. operator const Object() const;
  1608. operator const RefCounted() const;
  1609. // Properties:
  1610. /* readonly */
  1611. String category;
  1612. Array<Variant> globalVar;
  1613. /* readonly */
  1614. VariantMap globalVars;
  1615. /* readonly */
  1616. bool initialized;
  1617. /* readonly */
  1618. bool interpolation;
  1619. SoundListener listener;
  1620. Array<float> masterGain;
  1621. /* readonly */
  1622. int mixRate;
  1623. /* readonly */
  1624. bool playing;
  1625. /* readonly */
  1626. int refs;
  1627. /* readonly */
  1628. uint sampleSize;
  1629. /* readonly */
  1630. bool stereo;
  1631. /* readonly */
  1632. StringHash type;
  1633. /* readonly */
  1634. String typeName;
  1635. /* readonly */
  1636. int weakRefs;
  1637. };
  1638. class BackgroundLoadItem
  1639. {
  1640. public:
  1641. ~BackgroundLoadItem();
  1642. BackgroundLoadItem();
  1643. // Methods:
  1644. BackgroundLoadItem& operator=(const BackgroundLoadItem&);
  1645. // Properties:
  1646. bool sendEventOnFailure;
  1647. };
  1648. class Batch
  1649. {
  1650. public:
  1651. ~Batch();
  1652. Batch();
  1653. Batch(const SourceBatch&in);
  1654. // Methods:
  1655. Batch& operator=(const Batch&);
  1656. void CalculateSortKey();
  1657. void Draw(View, Camera, bool) const;
  1658. void Prepare(View, Camera, bool, bool) const;
  1659. // Properties:
  1660. float distance;
  1661. GeometryType geometryType;
  1662. bool isBase;
  1663. uint8 lightMask;
  1664. uint numWorldTransforms;
  1665. uint8 renderOrder;
  1666. uint64 sortKey;
  1667. };
  1668. class BatchGroup
  1669. {
  1670. public:
  1671. ~BatchGroup();
  1672. BatchGroup();
  1673. BatchGroup(const Batch&in);
  1674. // Methods:
  1675. BatchGroup& operator=(const BatchGroup&);
  1676. void AddTransforms(const Batch&);
  1677. void CalculateSortKey();
  1678. void Draw(View, Camera, bool) const;
  1679. void Prepare(View, Camera, bool, bool) const;
  1680. // Properties:
  1681. float distance;
  1682. GeometryType geometryType;
  1683. bool isBase;
  1684. uint8 lightMask;
  1685. uint numWorldTransforms;
  1686. uint8 renderOrder;
  1687. uint64 sortKey;
  1688. uint startIndex;
  1689. };
  1690. class BatchGroupKey
  1691. {
  1692. public:
  1693. ~BatchGroupKey();
  1694. BatchGroupKey();
  1695. BatchGroupKey(const Batch&in);
  1696. // Methods:
  1697. BatchGroupKey& operator=(const BatchGroupKey&);
  1698. bool operator==(const BatchGroupKey&) const;
  1699. uint ToHash() const;
  1700. // Properties:
  1701. uint8 renderOrder;
  1702. };
  1703. class BatchQueue
  1704. {
  1705. public:
  1706. ~BatchQueue();
  1707. BatchQueue();
  1708. // Methods:
  1709. BatchQueue& operator=(const BatchQueue&);
  1710. void Clear(int);
  1711. void Draw(View, Camera, bool, bool, bool) const;
  1712. uint GetNumInstances() const;
  1713. bool IsEmpty() const;
  1714. void SortBackToFront();
  1715. void SortFrontToBack();
  1716. // Properties:
  1717. bool hasExtraDefines;
  1718. uint maxSortedInstances;
  1719. String psExtraDefines;
  1720. StringHash psExtraDefinesHash;
  1721. String vsExtraDefines;
  1722. StringHash vsExtraDefinesHash;
  1723. };
  1724. class BiasParameters
  1725. {
  1726. public:
  1727. BiasParameters();
  1728. BiasParameters(float, float, float = 0.0f);
  1729. // Methods:
  1730. BiasParameters& operator=(const BiasParameters&);
  1731. void Validate();
  1732. // Properties:
  1733. float constantBias;
  1734. float normalOffset;
  1735. float slopeScaledBias;
  1736. };
  1737. class Billboard
  1738. {
  1739. public:
  1740. // Methods:
  1741. Billboard& operator=(const Billboard&);
  1742. // Properties:
  1743. Color color;
  1744. Vector3 direction;
  1745. bool enabled;
  1746. Vector3 position;
  1747. float rotation;
  1748. float screenScaleFactor;
  1749. Vector2 size;
  1750. float sortDistance;
  1751. Rect uv;
  1752. };
  1753. class BillboardSet
  1754. {
  1755. public:
  1756. BillboardSet();
  1757. // Methods:
  1758. void AddLight(Light);
  1759. void AddVertexLight(Light);
  1760. void AllocateNetworkState();
  1761. operator Animatable() const;
  1762. void ApplyAttributes();
  1763. const BoundingBox& GetBoundingBox() const;
  1764. const BoundingBox& GetWorldBoundingBox();
  1765. void CleanupConnection(Connection);
  1766. void Commit();
  1767. operator Component() const;
  1768. void DrawDebugGeometry(DebugRenderer, bool);
  1769. bool DrawOcclusion(OcclusionBuffer);
  1770. operator Drawable() const;
  1771. bool GetAnimationEnabled() const;
  1772. float GetAnimationLodBias() const;
  1773. Variant GetAttribute(const String&) const;
  1774. Variant GetAttribute(uint) const;
  1775. ValueAnimation GetAttributeAnimation(const String&) const;
  1776. float GetAttributeAnimationSpeed(const String&) const;
  1777. float GetAttributeAnimationTime(const String&) const;
  1778. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1779. Variant GetAttributeDefault(const String&) const;
  1780. Variant GetAttributeDefault(uint) const;
  1781. Billboard GetBillboard(uint);
  1782. bool GetBlockEvents() const;
  1783. bool GetCastShadows() const;
  1784. Component GetComponent(StringHash) const;
  1785. float GetDistance() const;
  1786. float GetDrawDistance() const;
  1787. uint8 GetDrawableFlags() const;
  1788. VariantMap& GetEventDataMap() const;
  1789. Object GetEventSender() const;
  1790. FaceCameraMode GetFaceCameraMode() const;
  1791. Light GetFirstLight() const;
  1792. uint GetID() const;
  1793. bool GetInterceptNetworkUpdate(const String&) const;
  1794. uint GetLightMask() const;
  1795. Array<Light> GetLights() const;
  1796. float GetLodBias() const;
  1797. float GetLodDistance() const;
  1798. Geometry GetLodGeometry(uint, uint);
  1799. Material GetMaterial() const;
  1800. ResourceRef GetMaterialAttr() const;
  1801. uint GetMaxLights() const;
  1802. float GetMaxZ() const;
  1803. float GetMinAngle() const;
  1804. float GetMinZ() const;
  1805. Node GetNode() const;
  1806. uint GetNumAttributes() const;
  1807. uint GetNumBillboards() const;
  1808. uint GetNumNetworkAttributes() const;
  1809. uint GetNumOccluderTriangles();
  1810. ObjectAnimation GetObjectAnimation() const;
  1811. ResourceRef GetObjectAnimationAttr() const;
  1812. Scene GetScene() const;
  1813. float GetShadowDistance() const;
  1814. uint GetShadowMask() const;
  1815. float GetSortValue() const;
  1816. Object GetSubsystem(StringHash) const;
  1817. StringHash GetType() const;
  1818. UpdateGeometryType GetUpdateGeometryType();
  1819. Array<Light> GetVertexLights() const;
  1820. uint GetViewMask() const;
  1821. Zone GetZone() const;
  1822. uint GetZoneMask() const;
  1823. bool HasBasePass(uint) const;
  1824. bool HasEventHandlers() const;
  1825. bool HasSubscribedToEvent(Object, StringHash) const;
  1826. bool HasSubscribedToEvent(StringHash) const;
  1827. bool IsEnabled() const;
  1828. bool IsEnabledEffective() const;
  1829. bool IsFixedScreenSize() const;
  1830. bool IsInView() const;
  1831. bool IsInView(Camera) const;
  1832. bool IsInView(const FrameInfo&, bool = false) const;
  1833. bool IsInstanceOf(StringHash) const;
  1834. bool IsOccludee() const;
  1835. bool IsOccluder() const;
  1836. bool IsRelative() const;
  1837. bool IsReplicated() const;
  1838. bool IsScaled() const;
  1839. bool IsSorted() const;
  1840. bool IsTemporary() const;
  1841. bool IsZoneDirty() const;
  1842. void LimitLights();
  1843. void LimitVertexLights(bool);
  1844. bool Load(Deserializer&);
  1845. bool LoadJSON(const JSONValue&);
  1846. bool LoadXML(const XMLElement&);
  1847. void MarkForUpdate();
  1848. void MarkInView(const FrameInfo&);
  1849. void MarkInView(uint);
  1850. void MarkNetworkUpdate();
  1851. operator Object() const;
  1852. void OnEvent(Object, StringHash, VariantMap&);
  1853. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  1854. void OnSetAttribute(const AttributeInfo&, const Variant&);
  1855. void OnSetEnabled();
  1856. operator ParticleEmitter() const;
  1857. void PrepareNetworkUpdate();
  1858. bool ReadDeltaUpdate(Deserializer&);
  1859. bool ReadLatestDataUpdate(Deserializer&);
  1860. operator RefCounted() const;
  1861. int Refs() const;
  1862. void Remove();
  1863. void RemoveAttributeAnimation(const String&);
  1864. void RemoveInstanceDefault();
  1865. void RemoveObjectAnimation();
  1866. void ResetToDefault();
  1867. bool Save(Serializer&) const;
  1868. bool SaveDefaultAttributes() const;
  1869. bool SaveJSON(JSONValue&) const;
  1870. bool SaveXML(XMLElement&) const;
  1871. void SendEvent(StringHash);
  1872. void SendEvent(StringHash, VariantMap&);
  1873. operator Serializable() const;
  1874. void SetAnimationEnabled(bool);
  1875. void SetAnimationLodBias(float);
  1876. void SetAnimationTime(float);
  1877. bool SetAttribute(const String&, const Variant&);
  1878. bool SetAttribute(uint, const Variant&);
  1879. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1880. void SetAttributeAnimationSpeed(const String&, float);
  1881. void SetAttributeAnimationTime(const String&, float);
  1882. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1883. void SetBasePass(uint);
  1884. void SetBlockEvents(bool);
  1885. void SetCastShadows(bool);
  1886. void SetDrawDistance(float);
  1887. void SetEnabled(bool);
  1888. void SetFaceCameraMode(FaceCameraMode);
  1889. void SetFixedScreenSize(bool);
  1890. void SetGlobalVar(StringHash, const Variant&);
  1891. void SetInstanceDefault(bool);
  1892. void SetInterceptNetworkUpdate(const String&, bool);
  1893. void SetLightMask(uint);
  1894. void SetLodBias(float);
  1895. void SetMaterial(Material);
  1896. void SetMaterialAttr(const ResourceRef&);
  1897. void SetMaxLights(uint);
  1898. void SetMinAngle(float);
  1899. void SetMinMaxZ(float, float);
  1900. void SetNumBillboards(uint);
  1901. void SetObjectAnimation(ObjectAnimation);
  1902. void SetObjectAnimationAttr(const ResourceRef&);
  1903. void SetOccludee(bool);
  1904. void SetOccluder(bool);
  1905. void SetRelative(bool);
  1906. void SetScaled(bool);
  1907. void SetShadowDistance(float);
  1908. void SetShadowMask(uint);
  1909. void SetSortValue(float);
  1910. void SetSorted(bool);
  1911. void SetTemporary(bool);
  1912. void SetViewMask(uint);
  1913. void SetZone(Zone, bool = false);
  1914. void SetZoneMask(uint);
  1915. const String& GetCategory() const;
  1916. const String& GetTypeName() const;
  1917. void UnsubscribeFromAllEvents();
  1918. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1919. void UnsubscribeFromEvent(Object, StringHash);
  1920. void UnsubscribeFromEvent(StringHash);
  1921. void UnsubscribeFromEvents(Object);
  1922. void Update(const FrameInfo&);
  1923. void UpdateBatches(const FrameInfo&);
  1924. void UpdateGeometry(const FrameInfo&);
  1925. const Variant& GetGlobalVar(StringHash) const;
  1926. const VariantMap& GetGlobalVars() const;
  1927. int WeakRefs() const;
  1928. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  1929. void WriteInitialDeltaUpdate(Serializer&, uint8);
  1930. void WriteLatestDataUpdate(Serializer&, uint8);
  1931. operator const Animatable() const;
  1932. operator const Component() const;
  1933. operator const Drawable() const;
  1934. operator const Object() const;
  1935. operator const ParticleEmitter() const;
  1936. operator const RefCounted() const;
  1937. operator const Serializable() const;
  1938. // Properties:
  1939. bool animationEnabled;
  1940. float animationLodBias;
  1941. /* readonly */
  1942. Array<Variant> attributeDefaults;
  1943. /* readonly */
  1944. Array<AttributeInfo> attributeInfos;
  1945. Array<Variant> attributes;
  1946. /* readonly */
  1947. Array<Billboard> billboards;
  1948. /* readonly */
  1949. BoundingBox boundingBox;
  1950. bool castShadows;
  1951. /* readonly */
  1952. String category;
  1953. float drawDistance;
  1954. bool enabled;
  1955. /* readonly */
  1956. bool enabledEffective;
  1957. FaceCameraMode faceCameraMode;
  1958. bool fixedScreenSize;
  1959. Array<Variant> globalVar;
  1960. /* readonly */
  1961. VariantMap globalVars;
  1962. /* readonly */
  1963. uint id;
  1964. /* readonly */
  1965. bool inView;
  1966. uint lightMask;
  1967. float lodBias;
  1968. Material material;
  1969. uint maxLights;
  1970. float minAngle;
  1971. /* readonly */
  1972. Node node;
  1973. /* readonly */
  1974. uint numAttributes;
  1975. uint numBillboards;
  1976. ObjectAnimation objectAnimation;
  1977. bool occludee;
  1978. bool occluder;
  1979. /* readonly */
  1980. int refs;
  1981. bool relative;
  1982. /* readonly */
  1983. bool replicated;
  1984. bool scaled;
  1985. float shadowDistance;
  1986. uint shadowMask;
  1987. bool sorted;
  1988. bool temporary;
  1989. /* readonly */
  1990. StringHash type;
  1991. /* readonly */
  1992. String typeName;
  1993. uint viewMask;
  1994. /* readonly */
  1995. int weakRefs;
  1996. /* readonly */
  1997. BoundingBox worldBoundingBox;
  1998. /* readonly */
  1999. Zone zone;
  2000. uint zoneMask;
  2001. };
  2002. class Bone
  2003. {
  2004. public:
  2005. // Methods:
  2006. Bone& operator=(const Bone&);
  2007. // Properties:
  2008. bool animated;
  2009. BoundingBox boundingBox;
  2010. uint8 collisionMask;
  2011. Vector3 initialPosition;
  2012. Quaternion initialRotation;
  2013. Vector3 initialScale;
  2014. String name;
  2015. StringHash nameHash;
  2016. Node node;
  2017. Matrix3x4 offsetMatrix;
  2018. uint parentIndex;
  2019. float radius;
  2020. };
  2021. class BorderImage
  2022. {
  2023. public:
  2024. BorderImage();
  2025. BorderImage(const String&in);
  2026. // Methods:
  2027. void AddChild(UIElement);
  2028. void AddTag(const String&);
  2029. void AddTags(Array<String>);
  2030. void AddTags(const String&, int8 = ';');
  2031. void AdjustScissor(IntRect&);
  2032. void AllocateNetworkState();
  2033. operator Animatable() const;
  2034. void ApplyAttributes();
  2035. void BringToFront();
  2036. operator Button() const;
  2037. operator CheckBox() const;
  2038. const Color& GetColor(Corner) const;
  2039. const Color& GetColorAttr() const;
  2040. const Color& GetDerivedColor() const;
  2041. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  2042. operator Cursor() const;
  2043. void DisableLayoutUpdate();
  2044. operator DropDownList() const;
  2045. IntVector2 ElementToScreen(const IntVector2&);
  2046. void EnableLayoutUpdate();
  2047. bool FilterAttributes(XMLElement&) const;
  2048. uint FindChild(UIElement) const;
  2049. bool GetAnimationEnabled() const;
  2050. Variant GetAttribute(const String&) const;
  2051. Variant GetAttribute(uint) const;
  2052. ValueAnimation GetAttributeAnimation(const String&) const;
  2053. float GetAttributeAnimationSpeed(const String&) const;
  2054. float GetAttributeAnimationTime(const String&) const;
  2055. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2056. Variant GetAttributeDefault(const String&) const;
  2057. Variant GetAttributeDefault(uint) const;
  2058. BlendMode GetBlendMode() const;
  2059. bool GetBlockEvents() const;
  2060. bool GetBringToBack() const;
  2061. bool GetBringToFront() const;
  2062. UIElement GetChild(const String&, bool = false) const;
  2063. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  2064. UIElement GetChild(uint) const;
  2065. Array<UIElement> GetChildren() const;
  2066. Array<UIElement> GetChildren(bool) const;
  2067. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  2068. bool GetClipChildren() const;
  2069. IntRect GetCombinedScreenRect();
  2070. XMLFile GetDefaultStyle(bool = true) const;
  2071. float GetDerivedOpacity() const;
  2072. uint GetDragButtonCombo() const;
  2073. uint GetDragButtonCount() const;
  2074. uint GetDragDropMode() const;
  2075. IntVector2 GetEffectiveMinSize() const;
  2076. UIElement GetElementEventSender() const;
  2077. bool GetEnableAnchor() const;
  2078. VariantMap& GetEventDataMap() const;
  2079. Object GetEventSender() const;
  2080. FocusMode GetFocusMode() const;
  2081. int GetHeight() const;
  2082. HorizontalAlignment GetHorizontalAlignment() const;
  2083. int GetIndent() const;
  2084. int GetIndentSpacing() const;
  2085. int GetIndentWidth() const;
  2086. bool GetInterceptNetworkUpdate(const String&) const;
  2087. int GetLayoutElementMaxSize() const;
  2088. LayoutMode GetLayoutMode() const;
  2089. int GetLayoutSpacing() const;
  2090. Material GetMaterial() const;
  2091. ResourceRef GetMaterialAttr() const;
  2092. int GetMaxHeight() const;
  2093. int GetMaxWidth() const;
  2094. int GetMinHeight() const;
  2095. int GetMinWidth() const;
  2096. uint GetNumAttributes() const;
  2097. uint GetNumChildren(bool = false) const;
  2098. uint GetNumNetworkAttributes() const;
  2099. ObjectAnimation GetObjectAnimation() const;
  2100. ResourceRef GetObjectAnimationAttr() const;
  2101. float GetOpacity() const;
  2102. UIElement GetParent() const;
  2103. int GetPriority() const;
  2104. UIElement GetRoot() const;
  2105. bool GetSortChildren() const;
  2106. Object GetSubsystem(StringHash) const;
  2107. Array<String> GetTags() const;
  2108. Texture GetTexture() const;
  2109. ResourceRef GetTextureAttr() const;
  2110. TraversalMode GetTraversalMode() const;
  2111. StringHash GetType() const;
  2112. bool GetUseDerivedOpacity() const;
  2113. VerticalAlignment GetVerticalAlignment() const;
  2114. int GetWidth() const;
  2115. bool HasColorGradient() const;
  2116. bool HasEventHandlers() const;
  2117. bool HasFocus() const;
  2118. bool HasSubscribedToEvent(Object, StringHash) const;
  2119. bool HasSubscribedToEvent(StringHash) const;
  2120. bool HasTag(const String&) const;
  2121. void InsertChild(uint, UIElement);
  2122. const IntRect& GetBorder() const;
  2123. const IntRect& GetClipBorder() const;
  2124. const IntRect& GetImageBorder() const;
  2125. const IntRect& GetImageRect() const;
  2126. const IntRect& GetLayoutBorder() const;
  2127. const IntVector2& GetChildOffset() const;
  2128. const IntVector2& GetDisabledOffset() const;
  2129. const IntVector2& GetHoverOffset() const;
  2130. const IntVector2& GetMaxOffset() const;
  2131. const IntVector2& GetMaxSize() const;
  2132. const IntVector2& GetMinOffset() const;
  2133. const IntVector2& GetMinSize() const;
  2134. const IntVector2& GetPosition() const;
  2135. const IntVector2& GetScreenPosition() const;
  2136. const IntVector2& GetSize() const;
  2137. bool IsChildOf(UIElement) const;
  2138. bool IsEditable() const;
  2139. bool IsElementEventSender() const;
  2140. bool IsEnabled() const;
  2141. bool IsEnabledSelf() const;
  2142. bool IsFixedHeight() const;
  2143. bool IsFixedSize() const;
  2144. bool IsFixedWidth() const;
  2145. bool IsHovering() const;
  2146. bool IsInside(IntVector2, bool);
  2147. bool IsInsideCombined(IntVector2, bool);
  2148. bool IsInstanceOf(StringHash) const;
  2149. bool IsInternal() const;
  2150. bool IsSelected() const;
  2151. bool IsTemporary() const;
  2152. bool IsTiled() const;
  2153. bool IsVisible() const;
  2154. bool IsVisibleEffective() const;
  2155. bool IsWheelHandler() const;
  2156. bool IsWithinScissor(const IntRect&);
  2157. operator LineEdit() const;
  2158. bool Load(Deserializer&);
  2159. UIElement LoadChildXML(XMLFile, XMLFile);
  2160. UIElement LoadChildXML(const XMLElement&, XMLFile);
  2161. bool LoadJSON(const JSONValue&);
  2162. bool LoadXML(Deserializer&);
  2163. bool LoadXML(File);
  2164. bool LoadXML(VectorBuffer&);
  2165. bool LoadXML(XMLFile, XMLFile);
  2166. bool LoadXML(const XMLElement&);
  2167. bool LoadXML(const XMLElement&, XMLFile);
  2168. void MarkNetworkUpdate();
  2169. operator Menu() const;
  2170. operator Object() const;
  2171. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2172. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  2173. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2174. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2175. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2176. bool OnDragDropFinish(UIElement);
  2177. bool OnDragDropTest(UIElement);
  2178. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2179. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2180. void OnEvent(Object, StringHash, VariantMap&);
  2181. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  2182. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2183. void OnIndentSet();
  2184. void OnKey(uint, uint, uint);
  2185. void OnPositionSet(const IntVector2&);
  2186. void OnResize(const IntVector2&, const IntVector2&);
  2187. void OnSetAttribute(const AttributeInfo&, const Variant&);
  2188. void OnSetEditable();
  2189. void OnTextInput(const String&);
  2190. void OnWheel(int, uint, uint);
  2191. operator ProgressBar() const;
  2192. bool ReadDeltaUpdate(Deserializer&);
  2193. bool ReadLatestDataUpdate(Deserializer&);
  2194. operator RefCounted() const;
  2195. int Refs() const;
  2196. void Remove();
  2197. void RemoveAllChildren();
  2198. void RemoveAllTags();
  2199. void RemoveAttributeAnimation(const String&);
  2200. void RemoveChild(UIElement, uint = 0);
  2201. void RemoveChild(uint);
  2202. void RemoveChildAtIndex(uint);
  2203. void RemoveInstanceDefault();
  2204. void RemoveObjectAnimation();
  2205. bool RemoveTag(const String&);
  2206. void ResetDeepEnabled();
  2207. void ResetToDefault();
  2208. bool Save(Serializer&) const;
  2209. bool SaveDefaultAttributes() const;
  2210. bool SaveJSON(JSONValue&) const;
  2211. bool SaveXML(File, const String& indentation = "\t");
  2212. bool SaveXML(Serializer&, const String& = "\t") const;
  2213. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  2214. bool SaveXML(XMLElement&) const;
  2215. IntVector2 ScreenToElement(const IntVector2&);
  2216. operator ScrollBar() const;
  2217. void SendEvent(StringHash);
  2218. void SendEvent(StringHash, VariantMap&);
  2219. operator Serializable() const;
  2220. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  2221. void SetAnimationEnabled(bool);
  2222. void SetAnimationTime(float);
  2223. bool SetAttribute(const String&, const Variant&);
  2224. bool SetAttribute(uint, const Variant&);
  2225. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2226. void SetAttributeAnimationSpeed(const String&, float);
  2227. void SetAttributeAnimationTime(const String&, float);
  2228. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2229. void SetBlendMode(BlendMode);
  2230. void SetBlockEvents(bool);
  2231. void SetBorder(const IntRect&);
  2232. void SetBringToBack(bool);
  2233. void SetBringToFront(bool);
  2234. void SetChildOffset(const IntVector2&);
  2235. void SetClipBorder(const IntRect&);
  2236. void SetClipChildren(bool);
  2237. void SetColor(Corner, const Color&);
  2238. void SetColor(const Color&);
  2239. void SetDeepEnabled(bool);
  2240. void SetDefaultStyle(XMLFile);
  2241. void SetDisabledOffset(const IntVector2&);
  2242. void SetDisabledOffset(int, int);
  2243. void SetDragDropMode(uint);
  2244. void SetEditable(bool);
  2245. void SetElementEventSender(bool);
  2246. void SetEnableAnchor(bool);
  2247. void SetEnabled(bool);
  2248. void SetEnabledRecursive(bool);
  2249. void SetFixedHeight(int);
  2250. void SetFixedSize(const IntVector2&);
  2251. void SetFixedSize(int, int);
  2252. void SetFixedWidth(int);
  2253. void SetFocus(bool);
  2254. void SetFocusMode(FocusMode);
  2255. void SetFullImageRect();
  2256. void SetGlobalVar(StringHash, const Variant&);
  2257. void SetHeight(int);
  2258. void SetHorizontalAlignment(HorizontalAlignment);
  2259. void SetHoverOffset(const IntVector2&);
  2260. void SetHoverOffset(int, int);
  2261. void SetHovering(bool);
  2262. void SetImageBorder(const IntRect&);
  2263. void SetImageRect(const IntRect&);
  2264. void SetIndent(int);
  2265. void SetIndentSpacing(int);
  2266. void SetInstanceDefault(bool);
  2267. void SetInterceptNetworkUpdate(const String&, bool);
  2268. void SetInternal(bool);
  2269. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  2270. void SetLayoutBorder(const IntRect&);
  2271. void SetLayoutFlexScale(const Vector2&);
  2272. void SetLayoutMode(LayoutMode);
  2273. void SetLayoutSpacing(int);
  2274. void SetMaterial(Material);
  2275. void SetMaterialAttr(const ResourceRef&);
  2276. void SetMaxAnchor(const Vector2&);
  2277. void SetMaxAnchor(float, float);
  2278. void SetMaxHeight(int);
  2279. void SetMaxOffset(const IntVector2&);
  2280. void SetMaxSize(const IntVector2&);
  2281. void SetMaxSize(int, int);
  2282. void SetMaxWidth(int);
  2283. void SetMinAnchor(const Vector2&);
  2284. void SetMinAnchor(float, float);
  2285. void SetMinHeight(int);
  2286. void SetMinOffset(const IntVector2&);
  2287. void SetMinSize(const IntVector2&);
  2288. void SetMinSize(int, int);
  2289. void SetMinWidth(int);
  2290. void SetName(const String&);
  2291. void SetObjectAnimation(ObjectAnimation);
  2292. void SetObjectAnimationAttr(const ResourceRef&);
  2293. void SetOpacity(float);
  2294. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  2295. void SetPivot(const Vector2&);
  2296. void SetPivot(float, float);
  2297. void SetPosition(const IntVector2&);
  2298. void SetPosition(int, int);
  2299. void SetPriority(int);
  2300. void SetRenderTexture(Texture2D);
  2301. void SetSelected(bool);
  2302. void SetSize(const IntVector2&);
  2303. void SetSize(int, int);
  2304. void SetSortChildren(bool);
  2305. bool SetStyle(const String&, XMLFile = null);
  2306. bool SetStyle(const XMLElement&);
  2307. bool SetStyleAuto(XMLFile = null);
  2308. void SetTags(Array<String>);
  2309. void SetTemporary(bool);
  2310. void SetTexture(Texture);
  2311. void SetTextureAttr(const ResourceRef&);
  2312. void SetTiled(bool);
  2313. void SetTraversalMode(TraversalMode);
  2314. void SetUseDerivedOpacity(bool);
  2315. void SetVar(StringHash, const Variant&);
  2316. void SetVerticalAlignment(VerticalAlignment);
  2317. void SetVisible(bool);
  2318. void SetWidth(int);
  2319. operator Slider() const;
  2320. void SortChildren();
  2321. const String& GetAppliedStyle() const;
  2322. const String& GetCategory() const;
  2323. const String& GetName() const;
  2324. const String& GetTypeName() const;
  2325. operator UIElement() const;
  2326. void UnsubscribeFromAllEvents();
  2327. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  2328. void UnsubscribeFromEvent(Object, StringHash);
  2329. void UnsubscribeFromEvent(StringHash);
  2330. void UnsubscribeFromEvents(Object);
  2331. void Update(float);
  2332. void UpdateLayout();
  2333. const Variant& GetGlobalVar(StringHash) const;
  2334. const Variant& GetVar(const StringHash&) const;
  2335. const VariantMap& GetGlobalVars() const;
  2336. const VariantMap& GetVars() const;
  2337. const Vector2& GetLayoutFlexScale() const;
  2338. const Vector2& GetMaxAnchor() const;
  2339. const Vector2& GetMinAnchor() const;
  2340. const Vector2& GetPivot() const;
  2341. operator View3D() const;
  2342. int WeakRefs() const;
  2343. operator Window() const;
  2344. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  2345. void WriteInitialDeltaUpdate(Serializer&, uint8);
  2346. void WriteLatestDataUpdate(Serializer&, uint8);
  2347. operator const Animatable() const;
  2348. operator const Button() const;
  2349. operator const CheckBox() const;
  2350. operator const Cursor() const;
  2351. operator const DropDownList() const;
  2352. operator const LineEdit() const;
  2353. operator const Menu() const;
  2354. operator const Object() const;
  2355. operator const ProgressBar() const;
  2356. operator const RefCounted() const;
  2357. operator const ScrollBar() const;
  2358. operator const Serializable() const;
  2359. operator const Slider() const;
  2360. operator const UIElement() const;
  2361. operator const View3D() const;
  2362. operator const Window() const;
  2363. // Properties:
  2364. bool animationEnabled;
  2365. /* readonly */
  2366. Array<Variant> attributeDefaults;
  2367. /* readonly */
  2368. Array<AttributeInfo> attributeInfos;
  2369. Array<Variant> attributes;
  2370. BlendMode blendMode;
  2371. IntRect border;
  2372. bool bringToBack;
  2373. bool bringToFront;
  2374. /* readonly */
  2375. String category;
  2376. /* readonly */
  2377. IntVector2 childOffset;
  2378. /* readonly */
  2379. Array<UIElement> children;
  2380. IntRect clipBorder;
  2381. bool clipChildren;
  2382. /* writeonly */
  2383. Color color;
  2384. /* readonly */
  2385. bool colorGradient;
  2386. Array<Color> colors;
  2387. /* readonly */
  2388. IntRect combinedScreenRect;
  2389. XMLFile defaultStyle;
  2390. /* readonly */
  2391. float derivedOpacity;
  2392. IntVector2 disabledOffset;
  2393. /* readonly */
  2394. uint dragButtonCombo;
  2395. /* readonly */
  2396. uint dragButtonCount;
  2397. uint dragDropMode;
  2398. bool editable;
  2399. bool elementEventSender;
  2400. bool enableAnchor;
  2401. bool enabled;
  2402. /* readonly */
  2403. bool enabledSelf;
  2404. /* readonly */
  2405. bool fixedHeight;
  2406. /* readonly */
  2407. bool fixedSize;
  2408. /* readonly */
  2409. bool fixedWidth;
  2410. bool focus;
  2411. FocusMode focusMode;
  2412. Array<Variant> globalVar;
  2413. /* readonly */
  2414. VariantMap globalVars;
  2415. int height;
  2416. HorizontalAlignment horizontalAlignment;
  2417. IntVector2 hoverOffset;
  2418. /* readonly */
  2419. bool hovering;
  2420. IntRect imageBorder;
  2421. IntRect imageRect;
  2422. int indent;
  2423. int indentSpacing;
  2424. /* readonly */
  2425. int indentWidth;
  2426. bool internal;
  2427. IntRect layoutBorder;
  2428. Vector2 layoutFlexScale;
  2429. LayoutMode layoutMode;
  2430. int layoutSpacing;
  2431. Material material;
  2432. Vector2 maxAnchor;
  2433. int maxHeight;
  2434. IntVector2 maxOffset;
  2435. IntVector2 maxSize;
  2436. int maxWidth;
  2437. Vector2 minAnchor;
  2438. int minHeight;
  2439. IntVector2 minOffset;
  2440. IntVector2 minSize;
  2441. int minWidth;
  2442. String name;
  2443. /* readonly */
  2444. uint numAllChildren;
  2445. /* readonly */
  2446. uint numAttributes;
  2447. /* readonly */
  2448. uint numChildren;
  2449. ObjectAnimation objectAnimation;
  2450. float opacity;
  2451. UIElement parent;
  2452. Vector2 pivot;
  2453. IntVector2 position;
  2454. int priority;
  2455. /* readonly */
  2456. int refs;
  2457. /* readonly */
  2458. UIElement root;
  2459. /* readonly */
  2460. IntVector2 screenPosition;
  2461. bool selected;
  2462. IntVector2 size;
  2463. bool sortChildren;
  2464. String style;
  2465. /* readonly */
  2466. Array<String> tags;
  2467. bool temporary;
  2468. Texture texture;
  2469. bool tiled;
  2470. TraversalMode traversalMode;
  2471. /* readonly */
  2472. StringHash type;
  2473. /* readonly */
  2474. String typeName;
  2475. bool useDerivedOpacity;
  2476. /* readonly */
  2477. VariantMap vars;
  2478. VerticalAlignment verticalAlignment;
  2479. bool visible;
  2480. /* readonly */
  2481. bool visibleEffective;
  2482. /* readonly */
  2483. int weakRefs;
  2484. int width;
  2485. };
  2486. class BoundingBox
  2487. {
  2488. public:
  2489. BoundingBox();
  2490. BoundingBox(const BoundingBox&in);
  2491. BoundingBox(const Rect&in);
  2492. BoundingBox(const Vector3&in, const Vector3&in);
  2493. BoundingBox(float, float);
  2494. BoundingBox(const Frustum&in);
  2495. BoundingBox(const Polyhedron&in);
  2496. BoundingBox(const Sphere&in);
  2497. // Methods:
  2498. BoundingBox& operator=(const BoundingBox&);
  2499. BoundingBox& operator=(const Rect&);
  2500. bool operator==(const BoundingBox&) const;
  2501. Vector3 Center() const;
  2502. void Clear();
  2503. void Clip(const BoundingBox&);
  2504. void Define(const BoundingBox&);
  2505. void Define(const Frustum&);
  2506. void Define(const Polyhedron&);
  2507. void Define(const Rect&);
  2508. void Define(const Sphere&);
  2509. void Define(const Vector3&);
  2510. void Define(const Vector3&, const Vector3&);
  2511. void Define(float, float);
  2512. bool Defined() const;
  2513. float DistanceToPoint(const Vector3&) const;
  2514. Vector3 HalfSize() const;
  2515. Intersection IsInside(const BoundingBox&) const;
  2516. Intersection IsInside(const Sphere&) const;
  2517. Intersection IsInside(const Vector3&) const;
  2518. Intersection IsInsideFast(const BoundingBox&) const;
  2519. Intersection IsInsideFast(const Sphere&) const;
  2520. void Merge(const BoundingBox&);
  2521. void Merge(const Frustum&);
  2522. void Merge(const Polyhedron&);
  2523. void Merge(const Sphere&);
  2524. void Merge(const Vector3&);
  2525. Rect Projected(const Matrix4&) const;
  2526. Vector3 Size() const;
  2527. String ToString() const;
  2528. void Transform(const Matrix3&);
  2529. void Transform(const Matrix3x4&);
  2530. BoundingBox Transformed(const Matrix3&) const;
  2531. BoundingBox Transformed(const Matrix3x4&) const;
  2532. // Properties:
  2533. /* readonly */
  2534. Vector3 center;
  2535. float dummyMax;
  2536. float dummyMin;
  2537. /* readonly */
  2538. Vector3 halfSize;
  2539. Vector3 max;
  2540. Vector3 min;
  2541. /* readonly */
  2542. Vector3 size;
  2543. };
  2544. class BufferedSoundStream
  2545. {
  2546. public:
  2547. BufferedSoundStream();
  2548. // Methods:
  2549. void Clear();
  2550. float GetBufferLength() const;
  2551. uint GetBufferNumBytes() const;
  2552. float GetFrequency() const;
  2553. uint GetIntFrequency() const;
  2554. uint GetSampleSize() const;
  2555. bool GetStopAtEnd() const;
  2556. bool IsSixteenBit() const;
  2557. bool IsStereo() const;
  2558. operator RefCounted() const;
  2559. int Refs() const;
  2560. bool Seek(uint);
  2561. void SetFormat(uint, bool, bool);
  2562. void SetStopAtEnd(bool);
  2563. operator SoundStream() const;
  2564. int WeakRefs() const;
  2565. operator const RefCounted() const;
  2566. operator const SoundStream() const;
  2567. // Properties:
  2568. /* readonly */
  2569. int refs;
  2570. /* readonly */
  2571. int weakRefs;
  2572. };
  2573. class Button
  2574. {
  2575. public:
  2576. Button();
  2577. Button(const String&in);
  2578. // Methods:
  2579. void AddChild(UIElement);
  2580. void AddTag(const String&);
  2581. void AddTags(Array<String>);
  2582. void AddTags(const String&, int8 = ';');
  2583. void AdjustScissor(IntRect&);
  2584. void AllocateNetworkState();
  2585. operator Animatable() const;
  2586. void ApplyAttributes();
  2587. operator BorderImage() const;
  2588. void BringToFront();
  2589. const Color& GetColor(Corner) const;
  2590. const Color& GetColorAttr() const;
  2591. const Color& GetDerivedColor() const;
  2592. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  2593. void DisableLayoutUpdate();
  2594. operator DropDownList() const;
  2595. IntVector2 ElementToScreen(const IntVector2&);
  2596. void EnableLayoutUpdate();
  2597. bool FilterAttributes(XMLElement&) const;
  2598. uint FindChild(UIElement) const;
  2599. bool GetAnimationEnabled() const;
  2600. Variant GetAttribute(const String&) const;
  2601. Variant GetAttribute(uint) const;
  2602. ValueAnimation GetAttributeAnimation(const String&) const;
  2603. float GetAttributeAnimationSpeed(const String&) const;
  2604. float GetAttributeAnimationTime(const String&) const;
  2605. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2606. Variant GetAttributeDefault(const String&) const;
  2607. Variant GetAttributeDefault(uint) const;
  2608. BlendMode GetBlendMode() const;
  2609. bool GetBlockEvents() const;
  2610. bool GetBringToBack() const;
  2611. bool GetBringToFront() const;
  2612. UIElement GetChild(const String&, bool = false) const;
  2613. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  2614. UIElement GetChild(uint) const;
  2615. Array<UIElement> GetChildren() const;
  2616. Array<UIElement> GetChildren(bool) const;
  2617. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  2618. bool GetClipChildren() const;
  2619. IntRect GetCombinedScreenRect();
  2620. XMLFile GetDefaultStyle(bool = true) const;
  2621. float GetDerivedOpacity() const;
  2622. uint GetDragButtonCombo() const;
  2623. uint GetDragButtonCount() const;
  2624. uint GetDragDropMode() const;
  2625. IntVector2 GetEffectiveMinSize() const;
  2626. UIElement GetElementEventSender() const;
  2627. bool GetEnableAnchor() const;
  2628. VariantMap& GetEventDataMap() const;
  2629. Object GetEventSender() const;
  2630. FocusMode GetFocusMode() const;
  2631. int GetHeight() const;
  2632. HorizontalAlignment GetHorizontalAlignment() const;
  2633. int GetIndent() const;
  2634. int GetIndentSpacing() const;
  2635. int GetIndentWidth() const;
  2636. bool GetInterceptNetworkUpdate(const String&) const;
  2637. int GetLayoutElementMaxSize() const;
  2638. LayoutMode GetLayoutMode() const;
  2639. int GetLayoutSpacing() const;
  2640. Material GetMaterial() const;
  2641. ResourceRef GetMaterialAttr() const;
  2642. int GetMaxHeight() const;
  2643. int GetMaxWidth() const;
  2644. int GetMinHeight() const;
  2645. int GetMinWidth() const;
  2646. uint GetNumAttributes() const;
  2647. uint GetNumChildren(bool = false) const;
  2648. uint GetNumNetworkAttributes() const;
  2649. ObjectAnimation GetObjectAnimation() const;
  2650. ResourceRef GetObjectAnimationAttr() const;
  2651. float GetOpacity() const;
  2652. UIElement GetParent() const;
  2653. int GetPriority() const;
  2654. float GetRepeatDelay() const;
  2655. float GetRepeatRate() const;
  2656. UIElement GetRoot() const;
  2657. bool GetSortChildren() const;
  2658. Object GetSubsystem(StringHash) const;
  2659. Array<String> GetTags() const;
  2660. Texture GetTexture() const;
  2661. ResourceRef GetTextureAttr() const;
  2662. TraversalMode GetTraversalMode() const;
  2663. StringHash GetType() const;
  2664. bool GetUseDerivedOpacity() const;
  2665. VerticalAlignment GetVerticalAlignment() const;
  2666. int GetWidth() const;
  2667. bool HasColorGradient() const;
  2668. bool HasEventHandlers() const;
  2669. bool HasFocus() const;
  2670. bool HasSubscribedToEvent(Object, StringHash) const;
  2671. bool HasSubscribedToEvent(StringHash) const;
  2672. bool HasTag(const String&) const;
  2673. void InsertChild(uint, UIElement);
  2674. const IntRect& GetBorder() const;
  2675. const IntRect& GetClipBorder() const;
  2676. const IntRect& GetImageBorder() const;
  2677. const IntRect& GetImageRect() const;
  2678. const IntRect& GetLayoutBorder() const;
  2679. const IntVector2& GetChildOffset() const;
  2680. const IntVector2& GetDisabledOffset() const;
  2681. const IntVector2& GetHoverOffset() const;
  2682. const IntVector2& GetMaxOffset() const;
  2683. const IntVector2& GetMaxSize() const;
  2684. const IntVector2& GetMinOffset() const;
  2685. const IntVector2& GetMinSize() const;
  2686. const IntVector2& GetPosition() const;
  2687. const IntVector2& GetPressedChildOffset() const;
  2688. const IntVector2& GetPressedOffset() const;
  2689. const IntVector2& GetScreenPosition() const;
  2690. const IntVector2& GetSize() const;
  2691. bool IsChildOf(UIElement) const;
  2692. bool IsEditable() const;
  2693. bool IsElementEventSender() const;
  2694. bool IsEnabled() const;
  2695. bool IsEnabledSelf() const;
  2696. bool IsFixedHeight() const;
  2697. bool IsFixedSize() const;
  2698. bool IsFixedWidth() const;
  2699. bool IsHovering() const;
  2700. bool IsInside(IntVector2, bool);
  2701. bool IsInsideCombined(IntVector2, bool);
  2702. bool IsInstanceOf(StringHash) const;
  2703. bool IsInternal() const;
  2704. bool IsPressed() const;
  2705. bool IsSelected() const;
  2706. bool IsTemporary() const;
  2707. bool IsTiled() const;
  2708. bool IsVisible() const;
  2709. bool IsVisibleEffective() const;
  2710. bool IsWheelHandler() const;
  2711. bool IsWithinScissor(const IntRect&);
  2712. bool Load(Deserializer&);
  2713. UIElement LoadChildXML(XMLFile, XMLFile);
  2714. UIElement LoadChildXML(const XMLElement&, XMLFile);
  2715. bool LoadJSON(const JSONValue&);
  2716. bool LoadXML(Deserializer&);
  2717. bool LoadXML(File);
  2718. bool LoadXML(VectorBuffer&);
  2719. bool LoadXML(XMLFile, XMLFile);
  2720. bool LoadXML(const XMLElement&);
  2721. bool LoadXML(const XMLElement&, XMLFile);
  2722. void MarkNetworkUpdate();
  2723. operator Menu() const;
  2724. operator Object() const;
  2725. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2726. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  2727. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2728. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2729. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2730. bool OnDragDropFinish(UIElement);
  2731. bool OnDragDropTest(UIElement);
  2732. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2733. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2734. void OnEvent(Object, StringHash, VariantMap&);
  2735. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  2736. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2737. void OnIndentSet();
  2738. void OnKey(uint, uint, uint);
  2739. void OnPositionSet(const IntVector2&);
  2740. void OnResize(const IntVector2&, const IntVector2&);
  2741. void OnSetAttribute(const AttributeInfo&, const Variant&);
  2742. void OnSetEditable();
  2743. void OnTextInput(const String&);
  2744. void OnWheel(int, uint, uint);
  2745. bool ReadDeltaUpdate(Deserializer&);
  2746. bool ReadLatestDataUpdate(Deserializer&);
  2747. operator RefCounted() const;
  2748. int Refs() const;
  2749. void Remove();
  2750. void RemoveAllChildren();
  2751. void RemoveAllTags();
  2752. void RemoveAttributeAnimation(const String&);
  2753. void RemoveChild(UIElement, uint = 0);
  2754. void RemoveChild(uint);
  2755. void RemoveChildAtIndex(uint);
  2756. void RemoveInstanceDefault();
  2757. void RemoveObjectAnimation();
  2758. bool RemoveTag(const String&);
  2759. void ResetDeepEnabled();
  2760. void ResetToDefault();
  2761. bool Save(Serializer&) const;
  2762. bool SaveDefaultAttributes() const;
  2763. bool SaveJSON(JSONValue&) const;
  2764. bool SaveXML(File, const String& indentation = "\t");
  2765. bool SaveXML(Serializer&, const String& = "\t") const;
  2766. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  2767. bool SaveXML(XMLElement&) const;
  2768. IntVector2 ScreenToElement(const IntVector2&);
  2769. void SendEvent(StringHash);
  2770. void SendEvent(StringHash, VariantMap&);
  2771. operator Serializable() const;
  2772. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  2773. void SetAnimationEnabled(bool);
  2774. void SetAnimationTime(float);
  2775. bool SetAttribute(const String&, const Variant&);
  2776. bool SetAttribute(uint, const Variant&);
  2777. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2778. void SetAttributeAnimationSpeed(const String&, float);
  2779. void SetAttributeAnimationTime(const String&, float);
  2780. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2781. void SetBlendMode(BlendMode);
  2782. void SetBlockEvents(bool);
  2783. void SetBorder(const IntRect&);
  2784. void SetBringToBack(bool);
  2785. void SetBringToFront(bool);
  2786. void SetChildOffset(const IntVector2&);
  2787. void SetClipBorder(const IntRect&);
  2788. void SetClipChildren(bool);
  2789. void SetColor(Corner, const Color&);
  2790. void SetColor(const Color&);
  2791. void SetDeepEnabled(bool);
  2792. void SetDefaultStyle(XMLFile);
  2793. void SetDisabledOffset(const IntVector2&);
  2794. void SetDisabledOffset(int, int);
  2795. void SetDragDropMode(uint);
  2796. void SetEditable(bool);
  2797. void SetElementEventSender(bool);
  2798. void SetEnableAnchor(bool);
  2799. void SetEnabled(bool);
  2800. void SetEnabledRecursive(bool);
  2801. void SetFixedHeight(int);
  2802. void SetFixedSize(const IntVector2&);
  2803. void SetFixedSize(int, int);
  2804. void SetFixedWidth(int);
  2805. void SetFocus(bool);
  2806. void SetFocusMode(FocusMode);
  2807. void SetFullImageRect();
  2808. void SetGlobalVar(StringHash, const Variant&);
  2809. void SetHeight(int);
  2810. void SetHorizontalAlignment(HorizontalAlignment);
  2811. void SetHoverOffset(const IntVector2&);
  2812. void SetHoverOffset(int, int);
  2813. void SetHovering(bool);
  2814. void SetImageBorder(const IntRect&);
  2815. void SetImageRect(const IntRect&);
  2816. void SetIndent(int);
  2817. void SetIndentSpacing(int);
  2818. void SetInstanceDefault(bool);
  2819. void SetInterceptNetworkUpdate(const String&, bool);
  2820. void SetInternal(bool);
  2821. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  2822. void SetLayoutBorder(const IntRect&);
  2823. void SetLayoutFlexScale(const Vector2&);
  2824. void SetLayoutMode(LayoutMode);
  2825. void SetLayoutSpacing(int);
  2826. void SetMaterial(Material);
  2827. void SetMaterialAttr(const ResourceRef&);
  2828. void SetMaxAnchor(const Vector2&);
  2829. void SetMaxAnchor(float, float);
  2830. void SetMaxHeight(int);
  2831. void SetMaxOffset(const IntVector2&);
  2832. void SetMaxSize(const IntVector2&);
  2833. void SetMaxSize(int, int);
  2834. void SetMaxWidth(int);
  2835. void SetMinAnchor(const Vector2&);
  2836. void SetMinAnchor(float, float);
  2837. void SetMinHeight(int);
  2838. void SetMinOffset(const IntVector2&);
  2839. void SetMinSize(const IntVector2&);
  2840. void SetMinSize(int, int);
  2841. void SetMinWidth(int);
  2842. void SetName(const String&);
  2843. void SetObjectAnimation(ObjectAnimation);
  2844. void SetObjectAnimationAttr(const ResourceRef&);
  2845. void SetOpacity(float);
  2846. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  2847. void SetPivot(const Vector2&);
  2848. void SetPivot(float, float);
  2849. void SetPosition(const IntVector2&);
  2850. void SetPosition(int, int);
  2851. void SetPressedChildOffset(const IntVector2&);
  2852. void SetPressedChildOffset(int, int);
  2853. void SetPressedOffset(const IntVector2&);
  2854. void SetPressedOffset(int, int);
  2855. void SetPriority(int);
  2856. void SetRenderTexture(Texture2D);
  2857. void SetRepeat(float, float);
  2858. void SetRepeatDelay(float);
  2859. void SetRepeatRate(float);
  2860. void SetSelected(bool);
  2861. void SetSize(const IntVector2&);
  2862. void SetSize(int, int);
  2863. void SetSortChildren(bool);
  2864. bool SetStyle(const String&, XMLFile = null);
  2865. bool SetStyle(const XMLElement&);
  2866. bool SetStyleAuto(XMLFile = null);
  2867. void SetTags(Array<String>);
  2868. void SetTemporary(bool);
  2869. void SetTexture(Texture);
  2870. void SetTextureAttr(const ResourceRef&);
  2871. void SetTiled(bool);
  2872. void SetTraversalMode(TraversalMode);
  2873. void SetUseDerivedOpacity(bool);
  2874. void SetVar(StringHash, const Variant&);
  2875. void SetVerticalAlignment(VerticalAlignment);
  2876. void SetVisible(bool);
  2877. void SetWidth(int);
  2878. void SortChildren();
  2879. const String& GetAppliedStyle() const;
  2880. const String& GetCategory() const;
  2881. const String& GetName() const;
  2882. const String& GetTypeName() const;
  2883. operator UIElement() const;
  2884. void UnsubscribeFromAllEvents();
  2885. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  2886. void UnsubscribeFromEvent(Object, StringHash);
  2887. void UnsubscribeFromEvent(StringHash);
  2888. void UnsubscribeFromEvents(Object);
  2889. void Update(float);
  2890. void UpdateLayout();
  2891. const Variant& GetGlobalVar(StringHash) const;
  2892. const Variant& GetVar(const StringHash&) const;
  2893. const VariantMap& GetGlobalVars() const;
  2894. const VariantMap& GetVars() const;
  2895. const Vector2& GetLayoutFlexScale() const;
  2896. const Vector2& GetMaxAnchor() const;
  2897. const Vector2& GetMinAnchor() const;
  2898. const Vector2& GetPivot() const;
  2899. int WeakRefs() const;
  2900. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  2901. void WriteInitialDeltaUpdate(Serializer&, uint8);
  2902. void WriteLatestDataUpdate(Serializer&, uint8);
  2903. operator const Animatable() const;
  2904. operator const BorderImage() const;
  2905. operator const DropDownList() const;
  2906. operator const Menu() const;
  2907. operator const Object() const;
  2908. operator const RefCounted() const;
  2909. operator const Serializable() const;
  2910. operator const UIElement() const;
  2911. // Properties:
  2912. bool animationEnabled;
  2913. /* readonly */
  2914. Array<Variant> attributeDefaults;
  2915. /* readonly */
  2916. Array<AttributeInfo> attributeInfos;
  2917. Array<Variant> attributes;
  2918. BlendMode blendMode;
  2919. IntRect border;
  2920. bool bringToBack;
  2921. bool bringToFront;
  2922. /* readonly */
  2923. String category;
  2924. /* readonly */
  2925. IntVector2 childOffset;
  2926. /* readonly */
  2927. Array<UIElement> children;
  2928. IntRect clipBorder;
  2929. bool clipChildren;
  2930. /* writeonly */
  2931. Color color;
  2932. /* readonly */
  2933. bool colorGradient;
  2934. Array<Color> colors;
  2935. /* readonly */
  2936. IntRect combinedScreenRect;
  2937. XMLFile defaultStyle;
  2938. /* readonly */
  2939. float derivedOpacity;
  2940. IntVector2 disabledOffset;
  2941. /* readonly */
  2942. uint dragButtonCombo;
  2943. /* readonly */
  2944. uint dragButtonCount;
  2945. uint dragDropMode;
  2946. bool editable;
  2947. bool elementEventSender;
  2948. bool enableAnchor;
  2949. bool enabled;
  2950. /* readonly */
  2951. bool enabledSelf;
  2952. /* readonly */
  2953. bool fixedHeight;
  2954. /* readonly */
  2955. bool fixedSize;
  2956. /* readonly */
  2957. bool fixedWidth;
  2958. bool focus;
  2959. FocusMode focusMode;
  2960. Array<Variant> globalVar;
  2961. /* readonly */
  2962. VariantMap globalVars;
  2963. int height;
  2964. HorizontalAlignment horizontalAlignment;
  2965. IntVector2 hoverOffset;
  2966. /* readonly */
  2967. bool hovering;
  2968. IntRect imageBorder;
  2969. IntRect imageRect;
  2970. int indent;
  2971. int indentSpacing;
  2972. /* readonly */
  2973. int indentWidth;
  2974. bool internal;
  2975. IntRect layoutBorder;
  2976. Vector2 layoutFlexScale;
  2977. LayoutMode layoutMode;
  2978. int layoutSpacing;
  2979. Material material;
  2980. Vector2 maxAnchor;
  2981. int maxHeight;
  2982. IntVector2 maxOffset;
  2983. IntVector2 maxSize;
  2984. int maxWidth;
  2985. Vector2 minAnchor;
  2986. int minHeight;
  2987. IntVector2 minOffset;
  2988. IntVector2 minSize;
  2989. int minWidth;
  2990. String name;
  2991. /* readonly */
  2992. uint numAllChildren;
  2993. /* readonly */
  2994. uint numAttributes;
  2995. /* readonly */
  2996. uint numChildren;
  2997. ObjectAnimation objectAnimation;
  2998. float opacity;
  2999. UIElement parent;
  3000. Vector2 pivot;
  3001. IntVector2 position;
  3002. /* readonly */
  3003. bool pressed;
  3004. IntVector2 pressedChildOffset;
  3005. IntVector2 pressedOffset;
  3006. int priority;
  3007. /* readonly */
  3008. int refs;
  3009. float repeatDelay;
  3010. float repeatRate;
  3011. /* readonly */
  3012. UIElement root;
  3013. /* readonly */
  3014. IntVector2 screenPosition;
  3015. bool selected;
  3016. IntVector2 size;
  3017. bool sortChildren;
  3018. String style;
  3019. /* readonly */
  3020. Array<String> tags;
  3021. bool temporary;
  3022. Texture texture;
  3023. bool tiled;
  3024. TraversalMode traversalMode;
  3025. /* readonly */
  3026. StringHash type;
  3027. /* readonly */
  3028. String typeName;
  3029. bool useDerivedOpacity;
  3030. /* readonly */
  3031. VariantMap vars;
  3032. VerticalAlignment verticalAlignment;
  3033. bool visible;
  3034. /* readonly */
  3035. bool visibleEffective;
  3036. /* readonly */
  3037. int weakRefs;
  3038. int width;
  3039. };
  3040. class Camera
  3041. {
  3042. public:
  3043. Camera();
  3044. // Methods:
  3045. void AllocateNetworkState();
  3046. operator Animatable() const;
  3047. void ApplyAttributes();
  3048. void CleanupConnection(Connection);
  3049. operator Component() const;
  3050. void DrawDebugGeometry(DebugRenderer, bool);
  3051. const Frustum& GetFrustum() const;
  3052. bool GetAnimationEnabled() const;
  3053. float GetAspectRatio() const;
  3054. Variant GetAttribute(const String&) const;
  3055. Variant GetAttribute(uint) const;
  3056. ValueAnimation GetAttributeAnimation(const String&) const;
  3057. float GetAttributeAnimationSpeed(const String&) const;
  3058. float GetAttributeAnimationTime(const String&) const;
  3059. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3060. Variant GetAttributeDefault(const String&) const;
  3061. Variant GetAttributeDefault(uint) const;
  3062. bool GetAutoAspectRatio() const;
  3063. bool GetBlockEvents() const;
  3064. Vector4 GetClipPlaneAttr() const;
  3065. Component GetComponent(StringHash) const;
  3066. float GetDistance(const Vector3&) const;
  3067. float GetDistanceSquared(const Vector3&) const;
  3068. Matrix3x4 GetEffectiveWorldTransform() const;
  3069. VariantMap& GetEventDataMap() const;
  3070. Object GetEventSender() const;
  3071. Quaternion GetFaceCameraRotation(const Vector3&, const Quaternion&, FaceCameraMode, float = 0.0f);
  3072. float GetFarClip() const;
  3073. FillMode GetFillMode() const;
  3074. bool GetFlipVertical() const;
  3075. float GetFov() const;
  3076. void GetFrustumSize(Vector3&, Vector3&) const;
  3077. Matrix4 GetGPUProjection() const;
  3078. float GetHalfViewSize() const;
  3079. uint GetID() const;
  3080. bool GetInterceptNetworkUpdate(const String&) const;
  3081. float GetLodBias() const;
  3082. float GetLodDistance(float, float, float) const;
  3083. float GetNearClip() const;
  3084. Node GetNode() const;
  3085. uint GetNumAttributes() const;
  3086. uint GetNumNetworkAttributes() const;
  3087. ObjectAnimation GetObjectAnimation() const;
  3088. ResourceRef GetObjectAnimationAttr() const;
  3089. float GetOrthoSize() const;
  3090. Matrix4 GetProjection() const;
  3091. Vector4 GetReflectionPlaneAttr() const;
  3092. bool GetReverseCulling() const;
  3093. Scene GetScene() const;
  3094. Ray GetScreenRay(float, float) const;
  3095. Frustum GetSplitFrustum(float, float) const;
  3096. Object GetSubsystem(StringHash) const;
  3097. StringHash GetType() const;
  3098. bool GetUseClipping() const;
  3099. bool GetUseReflection() const;
  3100. uint GetViewMask() const;
  3101. uint GetViewOverrideFlags() const;
  3102. Frustum GetViewSpaceFrustum() const;
  3103. Frustum GetViewSpaceSplitFrustum(float, float) const;
  3104. float GetZoom() const;
  3105. bool HasEventHandlers() const;
  3106. bool HasSubscribedToEvent(Object, StringHash) const;
  3107. bool HasSubscribedToEvent(StringHash) const;
  3108. bool IsEnabled() const;
  3109. bool IsEnabledEffective() const;
  3110. bool IsInstanceOf(StringHash) const;
  3111. bool IsOrthographic() const;
  3112. bool IsProjectionValid() const;
  3113. bool IsReplicated() const;
  3114. bool IsTemporary() const;
  3115. bool Load(Deserializer&);
  3116. bool LoadJSON(const JSONValue&);
  3117. bool LoadXML(const XMLElement&);
  3118. void MarkNetworkUpdate();
  3119. const Matrix3x4& GetView() const;
  3120. operator Object() const;
  3121. void OnEvent(Object, StringHash, VariantMap&);
  3122. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  3123. void OnSetAttribute(const AttributeInfo&, const Variant&);
  3124. void OnSetEnabled();
  3125. const Plane& GetClipPlane() const;
  3126. const Plane& GetReflectionPlane() const;
  3127. void PrepareNetworkUpdate();
  3128. bool ReadDeltaUpdate(Deserializer&);
  3129. bool ReadLatestDataUpdate(Deserializer&);
  3130. operator RefCounted() const;
  3131. int Refs() const;
  3132. void Remove();
  3133. void RemoveAttributeAnimation(const String&);
  3134. void RemoveInstanceDefault();
  3135. void RemoveObjectAnimation();
  3136. void ResetToDefault();
  3137. bool Save(Serializer&) const;
  3138. bool SaveDefaultAttributes() const;
  3139. bool SaveJSON(JSONValue&) const;
  3140. bool SaveXML(XMLElement&) const;
  3141. Vector3 ScreenToWorldPoint(const Vector3&) const;
  3142. void SendEvent(StringHash);
  3143. void SendEvent(StringHash, VariantMap&);
  3144. operator Serializable() const;
  3145. void SetAnimationEnabled(bool);
  3146. void SetAnimationTime(float);
  3147. void SetAspectRatio(float);
  3148. void SetAspectRatioInternal(float);
  3149. bool SetAttribute(const String&, const Variant&);
  3150. bool SetAttribute(uint, const Variant&);
  3151. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3152. void SetAttributeAnimationSpeed(const String&, float);
  3153. void SetAttributeAnimationTime(const String&, float);
  3154. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3155. void SetAutoAspectRatio(bool);
  3156. void SetBlockEvents(bool);
  3157. void SetClipPlane(const Plane&);
  3158. void SetClipPlaneAttr(const Vector4&);
  3159. void SetEnabled(bool);
  3160. void SetFarClip(float);
  3161. void SetFillMode(FillMode);
  3162. void SetFlipVertical(bool);
  3163. void SetFov(float);
  3164. void SetGlobalVar(StringHash, const Variant&);
  3165. void SetInstanceDefault(bool);
  3166. void SetInterceptNetworkUpdate(const String&, bool);
  3167. void SetLodBias(float);
  3168. void SetNearClip(float);
  3169. void SetObjectAnimation(ObjectAnimation);
  3170. void SetObjectAnimationAttr(const ResourceRef&);
  3171. void SetOrthoSize(const Vector2&);
  3172. void SetOrthoSize(float);
  3173. void SetOrthoSizeAttr(float);
  3174. void SetOrthographic(bool);
  3175. void SetProjection(const Matrix4&);
  3176. void SetProjectionOffset(const Vector2&);
  3177. void SetReflectionPlane(const Plane&);
  3178. void SetReflectionPlaneAttr(const Vector4&);
  3179. void SetTemporary(bool);
  3180. void SetUseClipping(bool);
  3181. void SetUseReflection(bool);
  3182. void SetViewMask(uint);
  3183. void SetViewOverrideFlags(uint);
  3184. void SetZoom(float);
  3185. const String& GetCategory() const;
  3186. const String& GetTypeName() const;
  3187. void UnsubscribeFromAllEvents();
  3188. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  3189. void UnsubscribeFromEvent(Object, StringHash);
  3190. void UnsubscribeFromEvent(StringHash);
  3191. void UnsubscribeFromEvents(Object);
  3192. const Variant& GetGlobalVar(StringHash) const;
  3193. const VariantMap& GetGlobalVars() const;
  3194. const Vector2& GetProjectionOffset() const;
  3195. int WeakRefs() const;
  3196. Vector2 WorldToScreenPoint(const Vector3&) const;
  3197. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  3198. void WriteInitialDeltaUpdate(Serializer&, uint8);
  3199. void WriteLatestDataUpdate(Serializer&, uint8);
  3200. operator const Animatable() const;
  3201. operator const Component() const;
  3202. operator const Object() const;
  3203. operator const RefCounted() const;
  3204. operator const Serializable() const;
  3205. // Properties:
  3206. bool animationEnabled;
  3207. float aspectRatio;
  3208. /* readonly */
  3209. Array<Variant> attributeDefaults;
  3210. /* readonly */
  3211. Array<AttributeInfo> attributeInfos;
  3212. Array<Variant> attributes;
  3213. bool autoAspectRatio;
  3214. /* readonly */
  3215. String category;
  3216. Plane clipPlane;
  3217. /* readonly */
  3218. Matrix3x4 effectiveWorldTransform;
  3219. bool enabled;
  3220. /* readonly */
  3221. bool enabledEffective;
  3222. float farClip;
  3223. FillMode fillMode;
  3224. float fov;
  3225. /* readonly */
  3226. Frustum frustum;
  3227. /* readonly */
  3228. Matrix4 gPUProjection;
  3229. Array<Variant> globalVar;
  3230. /* readonly */
  3231. VariantMap globalVars;
  3232. /* readonly */
  3233. float halfViewSize;
  3234. /* readonly */
  3235. uint id;
  3236. float lodBias;
  3237. float nearClip;
  3238. /* readonly */
  3239. Node node;
  3240. /* readonly */
  3241. uint numAttributes;
  3242. ObjectAnimation objectAnimation;
  3243. float orthoSize;
  3244. bool orthographic;
  3245. Matrix4 projection;
  3246. Vector2 projectionOffset;
  3247. Plane reflectionPlane;
  3248. /* readonly */
  3249. int refs;
  3250. /* readonly */
  3251. bool replicated;
  3252. bool temporary;
  3253. /* readonly */
  3254. StringHash type;
  3255. /* readonly */
  3256. String typeName;
  3257. bool useClipping;
  3258. bool useReflection;
  3259. /* readonly */
  3260. Matrix3x4 view;
  3261. uint viewMask;
  3262. uint viewOverrideFlags;
  3263. /* readonly */
  3264. Frustum viewSpaceFrustum;
  3265. /* readonly */
  3266. int weakRefs;
  3267. float zoom;
  3268. };
  3269. class CascadeParameters
  3270. {
  3271. public:
  3272. CascadeParameters();
  3273. CascadeParameters(float, float, float, float, float, float = 1.0f);
  3274. // Methods:
  3275. CascadeParameters& operator=(const CascadeParameters&);
  3276. float GetShadowRange() const;
  3277. void Validate();
  3278. // Properties:
  3279. float biasAutoAdjust;
  3280. float fadeStart;
  3281. float split1;
  3282. float split2;
  3283. float split3;
  3284. float split4;
  3285. Vector4 splits;
  3286. };
  3287. class CharLocation
  3288. {
  3289. public:
  3290. ~CharLocation();
  3291. CharLocation();
  3292. // Methods:
  3293. CharLocation& operator=(const CharLocation&);
  3294. // Properties:
  3295. Vector2 position;
  3296. Vector2 size;
  3297. };
  3298. class CheckBox
  3299. {
  3300. public:
  3301. CheckBox();
  3302. CheckBox(const String&in);
  3303. // Methods:
  3304. void AddChild(UIElement);
  3305. void AddTag(const String&);
  3306. void AddTags(Array<String>);
  3307. void AddTags(const String&, int8 = ';');
  3308. void AdjustScissor(IntRect&);
  3309. void AllocateNetworkState();
  3310. operator Animatable() const;
  3311. void ApplyAttributes();
  3312. operator BorderImage() const;
  3313. void BringToFront();
  3314. const Color& GetColor(Corner) const;
  3315. const Color& GetColorAttr() const;
  3316. const Color& GetDerivedColor() const;
  3317. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  3318. void DisableLayoutUpdate();
  3319. IntVector2 ElementToScreen(const IntVector2&);
  3320. void EnableLayoutUpdate();
  3321. bool FilterAttributes(XMLElement&) const;
  3322. uint FindChild(UIElement) const;
  3323. bool GetAnimationEnabled() const;
  3324. Variant GetAttribute(const String&) const;
  3325. Variant GetAttribute(uint) const;
  3326. ValueAnimation GetAttributeAnimation(const String&) const;
  3327. float GetAttributeAnimationSpeed(const String&) const;
  3328. float GetAttributeAnimationTime(const String&) const;
  3329. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3330. Variant GetAttributeDefault(const String&) const;
  3331. Variant GetAttributeDefault(uint) const;
  3332. BlendMode GetBlendMode() const;
  3333. bool GetBlockEvents() const;
  3334. bool GetBringToBack() const;
  3335. bool GetBringToFront() const;
  3336. UIElement GetChild(const String&, bool = false) const;
  3337. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  3338. UIElement GetChild(uint) const;
  3339. Array<UIElement> GetChildren() const;
  3340. Array<UIElement> GetChildren(bool) const;
  3341. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3342. bool GetClipChildren() const;
  3343. IntRect GetCombinedScreenRect();
  3344. XMLFile GetDefaultStyle(bool = true) const;
  3345. float GetDerivedOpacity() const;
  3346. uint GetDragButtonCombo() const;
  3347. uint GetDragButtonCount() const;
  3348. uint GetDragDropMode() const;
  3349. IntVector2 GetEffectiveMinSize() const;
  3350. UIElement GetElementEventSender() const;
  3351. bool GetEnableAnchor() const;
  3352. VariantMap& GetEventDataMap() const;
  3353. Object GetEventSender() const;
  3354. FocusMode GetFocusMode() const;
  3355. int GetHeight() const;
  3356. HorizontalAlignment GetHorizontalAlignment() const;
  3357. int GetIndent() const;
  3358. int GetIndentSpacing() const;
  3359. int GetIndentWidth() const;
  3360. bool GetInterceptNetworkUpdate(const String&) const;
  3361. int GetLayoutElementMaxSize() const;
  3362. LayoutMode GetLayoutMode() const;
  3363. int GetLayoutSpacing() const;
  3364. Material GetMaterial() const;
  3365. ResourceRef GetMaterialAttr() const;
  3366. int GetMaxHeight() const;
  3367. int GetMaxWidth() const;
  3368. int GetMinHeight() const;
  3369. int GetMinWidth() const;
  3370. uint GetNumAttributes() const;
  3371. uint GetNumChildren(bool = false) const;
  3372. uint GetNumNetworkAttributes() const;
  3373. ObjectAnimation GetObjectAnimation() const;
  3374. ResourceRef GetObjectAnimationAttr() const;
  3375. float GetOpacity() const;
  3376. UIElement GetParent() const;
  3377. int GetPriority() const;
  3378. UIElement GetRoot() const;
  3379. bool GetSortChildren() const;
  3380. Object GetSubsystem(StringHash) const;
  3381. Array<String> GetTags() const;
  3382. Texture GetTexture() const;
  3383. ResourceRef GetTextureAttr() const;
  3384. TraversalMode GetTraversalMode() const;
  3385. StringHash GetType() const;
  3386. bool GetUseDerivedOpacity() const;
  3387. VerticalAlignment GetVerticalAlignment() const;
  3388. int GetWidth() const;
  3389. bool HasColorGradient() const;
  3390. bool HasEventHandlers() const;
  3391. bool HasFocus() const;
  3392. bool HasSubscribedToEvent(Object, StringHash) const;
  3393. bool HasSubscribedToEvent(StringHash) const;
  3394. bool HasTag(const String&) const;
  3395. void InsertChild(uint, UIElement);
  3396. const IntRect& GetBorder() const;
  3397. const IntRect& GetClipBorder() const;
  3398. const IntRect& GetImageBorder() const;
  3399. const IntRect& GetImageRect() const;
  3400. const IntRect& GetLayoutBorder() const;
  3401. const IntVector2& GetCheckedOffset() const;
  3402. const IntVector2& GetChildOffset() const;
  3403. const IntVector2& GetDisabledOffset() const;
  3404. const IntVector2& GetHoverOffset() const;
  3405. const IntVector2& GetMaxOffset() const;
  3406. const IntVector2& GetMaxSize() const;
  3407. const IntVector2& GetMinOffset() const;
  3408. const IntVector2& GetMinSize() const;
  3409. const IntVector2& GetPosition() const;
  3410. const IntVector2& GetScreenPosition() const;
  3411. const IntVector2& GetSize() const;
  3412. bool IsChecked() const;
  3413. bool IsChildOf(UIElement) const;
  3414. bool IsEditable() const;
  3415. bool IsElementEventSender() const;
  3416. bool IsEnabled() const;
  3417. bool IsEnabledSelf() const;
  3418. bool IsFixedHeight() const;
  3419. bool IsFixedSize() const;
  3420. bool IsFixedWidth() const;
  3421. bool IsHovering() const;
  3422. bool IsInside(IntVector2, bool);
  3423. bool IsInsideCombined(IntVector2, bool);
  3424. bool IsInstanceOf(StringHash) const;
  3425. bool IsInternal() const;
  3426. bool IsSelected() const;
  3427. bool IsTemporary() const;
  3428. bool IsTiled() const;
  3429. bool IsVisible() const;
  3430. bool IsVisibleEffective() const;
  3431. bool IsWheelHandler() const;
  3432. bool IsWithinScissor(const IntRect&);
  3433. bool Load(Deserializer&);
  3434. UIElement LoadChildXML(XMLFile, XMLFile);
  3435. UIElement LoadChildXML(const XMLElement&, XMLFile);
  3436. bool LoadJSON(const JSONValue&);
  3437. bool LoadXML(Deserializer&);
  3438. bool LoadXML(File);
  3439. bool LoadXML(VectorBuffer&);
  3440. bool LoadXML(XMLFile, XMLFile);
  3441. bool LoadXML(const XMLElement&);
  3442. bool LoadXML(const XMLElement&, XMLFile);
  3443. void MarkNetworkUpdate();
  3444. operator Object() const;
  3445. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  3446. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  3447. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  3448. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3449. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3450. bool OnDragDropFinish(UIElement);
  3451. bool OnDragDropTest(UIElement);
  3452. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3453. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3454. void OnEvent(Object, StringHash, VariantMap&);
  3455. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  3456. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3457. void OnIndentSet();
  3458. void OnKey(uint, uint, uint);
  3459. void OnPositionSet(const IntVector2&);
  3460. void OnResize(const IntVector2&, const IntVector2&);
  3461. void OnSetAttribute(const AttributeInfo&, const Variant&);
  3462. void OnSetEditable();
  3463. void OnTextInput(const String&);
  3464. void OnWheel(int, uint, uint);
  3465. bool ReadDeltaUpdate(Deserializer&);
  3466. bool ReadLatestDataUpdate(Deserializer&);
  3467. operator RefCounted() const;
  3468. int Refs() const;
  3469. void Remove();
  3470. void RemoveAllChildren();
  3471. void RemoveAllTags();
  3472. void RemoveAttributeAnimation(const String&);
  3473. void RemoveChild(UIElement, uint = 0);
  3474. void RemoveChild(uint);
  3475. void RemoveChildAtIndex(uint);
  3476. void RemoveInstanceDefault();
  3477. void RemoveObjectAnimation();
  3478. bool RemoveTag(const String&);
  3479. void ResetDeepEnabled();
  3480. void ResetToDefault();
  3481. bool Save(Serializer&) const;
  3482. bool SaveDefaultAttributes() const;
  3483. bool SaveJSON(JSONValue&) const;
  3484. bool SaveXML(File, const String& indentation = "\t");
  3485. bool SaveXML(Serializer&, const String& = "\t") const;
  3486. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  3487. bool SaveXML(XMLElement&) const;
  3488. IntVector2 ScreenToElement(const IntVector2&);
  3489. void SendEvent(StringHash);
  3490. void SendEvent(StringHash, VariantMap&);
  3491. operator Serializable() const;
  3492. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3493. void SetAnimationEnabled(bool);
  3494. void SetAnimationTime(float);
  3495. bool SetAttribute(const String&, const Variant&);
  3496. bool SetAttribute(uint, const Variant&);
  3497. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3498. void SetAttributeAnimationSpeed(const String&, float);
  3499. void SetAttributeAnimationTime(const String&, float);
  3500. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3501. void SetBlendMode(BlendMode);
  3502. void SetBlockEvents(bool);
  3503. void SetBorder(const IntRect&);
  3504. void SetBringToBack(bool);
  3505. void SetBringToFront(bool);
  3506. void SetChecked(bool);
  3507. void SetCheckedOffset(const IntVector2&);
  3508. void SetCheckedOffset(int, int);
  3509. void SetChildOffset(const IntVector2&);
  3510. void SetClipBorder(const IntRect&);
  3511. void SetClipChildren(bool);
  3512. void SetColor(Corner, const Color&);
  3513. void SetColor(const Color&);
  3514. void SetDeepEnabled(bool);
  3515. void SetDefaultStyle(XMLFile);
  3516. void SetDisabledOffset(const IntVector2&);
  3517. void SetDisabledOffset(int, int);
  3518. void SetDragDropMode(uint);
  3519. void SetEditable(bool);
  3520. void SetElementEventSender(bool);
  3521. void SetEnableAnchor(bool);
  3522. void SetEnabled(bool);
  3523. void SetEnabledRecursive(bool);
  3524. void SetFixedHeight(int);
  3525. void SetFixedSize(const IntVector2&);
  3526. void SetFixedSize(int, int);
  3527. void SetFixedWidth(int);
  3528. void SetFocus(bool);
  3529. void SetFocusMode(FocusMode);
  3530. void SetFullImageRect();
  3531. void SetGlobalVar(StringHash, const Variant&);
  3532. void SetHeight(int);
  3533. void SetHorizontalAlignment(HorizontalAlignment);
  3534. void SetHoverOffset(const IntVector2&);
  3535. void SetHoverOffset(int, int);
  3536. void SetHovering(bool);
  3537. void SetImageBorder(const IntRect&);
  3538. void SetImageRect(const IntRect&);
  3539. void SetIndent(int);
  3540. void SetIndentSpacing(int);
  3541. void SetInstanceDefault(bool);
  3542. void SetInterceptNetworkUpdate(const String&, bool);
  3543. void SetInternal(bool);
  3544. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  3545. void SetLayoutBorder(const IntRect&);
  3546. void SetLayoutFlexScale(const Vector2&);
  3547. void SetLayoutMode(LayoutMode);
  3548. void SetLayoutSpacing(int);
  3549. void SetMaterial(Material);
  3550. void SetMaterialAttr(const ResourceRef&);
  3551. void SetMaxAnchor(const Vector2&);
  3552. void SetMaxAnchor(float, float);
  3553. void SetMaxHeight(int);
  3554. void SetMaxOffset(const IntVector2&);
  3555. void SetMaxSize(const IntVector2&);
  3556. void SetMaxSize(int, int);
  3557. void SetMaxWidth(int);
  3558. void SetMinAnchor(const Vector2&);
  3559. void SetMinAnchor(float, float);
  3560. void SetMinHeight(int);
  3561. void SetMinOffset(const IntVector2&);
  3562. void SetMinSize(const IntVector2&);
  3563. void SetMinSize(int, int);
  3564. void SetMinWidth(int);
  3565. void SetName(const String&);
  3566. void SetObjectAnimation(ObjectAnimation);
  3567. void SetObjectAnimationAttr(const ResourceRef&);
  3568. void SetOpacity(float);
  3569. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  3570. void SetPivot(const Vector2&);
  3571. void SetPivot(float, float);
  3572. void SetPosition(const IntVector2&);
  3573. void SetPosition(int, int);
  3574. void SetPriority(int);
  3575. void SetRenderTexture(Texture2D);
  3576. void SetSelected(bool);
  3577. void SetSize(const IntVector2&);
  3578. void SetSize(int, int);
  3579. void SetSortChildren(bool);
  3580. bool SetStyle(const String&, XMLFile = null);
  3581. bool SetStyle(const XMLElement&);
  3582. bool SetStyleAuto(XMLFile = null);
  3583. void SetTags(Array<String>);
  3584. void SetTemporary(bool);
  3585. void SetTexture(Texture);
  3586. void SetTextureAttr(const ResourceRef&);
  3587. void SetTiled(bool);
  3588. void SetTraversalMode(TraversalMode);
  3589. void SetUseDerivedOpacity(bool);
  3590. void SetVar(StringHash, const Variant&);
  3591. void SetVerticalAlignment(VerticalAlignment);
  3592. void SetVisible(bool);
  3593. void SetWidth(int);
  3594. void SortChildren();
  3595. const String& GetAppliedStyle() const;
  3596. const String& GetCategory() const;
  3597. const String& GetName() const;
  3598. const String& GetTypeName() const;
  3599. operator UIElement() const;
  3600. void UnsubscribeFromAllEvents();
  3601. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  3602. void UnsubscribeFromEvent(Object, StringHash);
  3603. void UnsubscribeFromEvent(StringHash);
  3604. void UnsubscribeFromEvents(Object);
  3605. void Update(float);
  3606. void UpdateLayout();
  3607. const Variant& GetGlobalVar(StringHash) const;
  3608. const Variant& GetVar(const StringHash&) const;
  3609. const VariantMap& GetGlobalVars() const;
  3610. const VariantMap& GetVars() const;
  3611. const Vector2& GetLayoutFlexScale() const;
  3612. const Vector2& GetMaxAnchor() const;
  3613. const Vector2& GetMinAnchor() const;
  3614. const Vector2& GetPivot() const;
  3615. int WeakRefs() const;
  3616. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  3617. void WriteInitialDeltaUpdate(Serializer&, uint8);
  3618. void WriteLatestDataUpdate(Serializer&, uint8);
  3619. operator const Animatable() const;
  3620. operator const BorderImage() const;
  3621. operator const Object() const;
  3622. operator const RefCounted() const;
  3623. operator const Serializable() const;
  3624. operator const UIElement() const;
  3625. // Properties:
  3626. bool animationEnabled;
  3627. /* readonly */
  3628. Array<Variant> attributeDefaults;
  3629. /* readonly */
  3630. Array<AttributeInfo> attributeInfos;
  3631. Array<Variant> attributes;
  3632. BlendMode blendMode;
  3633. IntRect border;
  3634. bool bringToBack;
  3635. bool bringToFront;
  3636. /* readonly */
  3637. String category;
  3638. bool checked;
  3639. IntVector2 checkedOffset;
  3640. /* readonly */
  3641. IntVector2 childOffset;
  3642. /* readonly */
  3643. Array<UIElement> children;
  3644. IntRect clipBorder;
  3645. bool clipChildren;
  3646. /* writeonly */
  3647. Color color;
  3648. /* readonly */
  3649. bool colorGradient;
  3650. Array<Color> colors;
  3651. /* readonly */
  3652. IntRect combinedScreenRect;
  3653. XMLFile defaultStyle;
  3654. /* readonly */
  3655. float derivedOpacity;
  3656. IntVector2 disabledOffset;
  3657. /* readonly */
  3658. uint dragButtonCombo;
  3659. /* readonly */
  3660. uint dragButtonCount;
  3661. uint dragDropMode;
  3662. bool editable;
  3663. bool elementEventSender;
  3664. bool enableAnchor;
  3665. bool enabled;
  3666. /* readonly */
  3667. bool enabledSelf;
  3668. /* readonly */
  3669. bool fixedHeight;
  3670. /* readonly */
  3671. bool fixedSize;
  3672. /* readonly */
  3673. bool fixedWidth;
  3674. bool focus;
  3675. FocusMode focusMode;
  3676. Array<Variant> globalVar;
  3677. /* readonly */
  3678. VariantMap globalVars;
  3679. int height;
  3680. HorizontalAlignment horizontalAlignment;
  3681. IntVector2 hoverOffset;
  3682. /* readonly */
  3683. bool hovering;
  3684. IntRect imageBorder;
  3685. IntRect imageRect;
  3686. int indent;
  3687. int indentSpacing;
  3688. /* readonly */
  3689. int indentWidth;
  3690. bool internal;
  3691. IntRect layoutBorder;
  3692. Vector2 layoutFlexScale;
  3693. LayoutMode layoutMode;
  3694. int layoutSpacing;
  3695. Material material;
  3696. Vector2 maxAnchor;
  3697. int maxHeight;
  3698. IntVector2 maxOffset;
  3699. IntVector2 maxSize;
  3700. int maxWidth;
  3701. Vector2 minAnchor;
  3702. int minHeight;
  3703. IntVector2 minOffset;
  3704. IntVector2 minSize;
  3705. int minWidth;
  3706. String name;
  3707. /* readonly */
  3708. uint numAllChildren;
  3709. /* readonly */
  3710. uint numAttributes;
  3711. /* readonly */
  3712. uint numChildren;
  3713. ObjectAnimation objectAnimation;
  3714. float opacity;
  3715. UIElement parent;
  3716. Vector2 pivot;
  3717. IntVector2 position;
  3718. int priority;
  3719. /* readonly */
  3720. int refs;
  3721. /* readonly */
  3722. UIElement root;
  3723. /* readonly */
  3724. IntVector2 screenPosition;
  3725. bool selected;
  3726. IntVector2 size;
  3727. bool sortChildren;
  3728. String style;
  3729. /* readonly */
  3730. Array<String> tags;
  3731. bool temporary;
  3732. Texture texture;
  3733. bool tiled;
  3734. TraversalMode traversalMode;
  3735. /* readonly */
  3736. StringHash type;
  3737. /* readonly */
  3738. String typeName;
  3739. bool useDerivedOpacity;
  3740. /* readonly */
  3741. VariantMap vars;
  3742. VerticalAlignment verticalAlignment;
  3743. bool visible;
  3744. /* readonly */
  3745. bool visibleEffective;
  3746. /* readonly */
  3747. int weakRefs;
  3748. int width;
  3749. };
  3750. class CollisionBox2D
  3751. {
  3752. public:
  3753. CollisionBox2D();
  3754. // Methods:
  3755. void AllocateNetworkState();
  3756. operator Animatable() const;
  3757. void ApplyAttributes();
  3758. void CleanupConnection(Connection);
  3759. operator CollisionShape2D() const;
  3760. operator Component() const;
  3761. void CreateFixture();
  3762. void DrawDebugGeometry(DebugRenderer, bool);
  3763. float GetAngle() const;
  3764. bool GetAnimationEnabled() const;
  3765. Variant GetAttribute(const String&) const;
  3766. Variant GetAttribute(uint) const;
  3767. ValueAnimation GetAttributeAnimation(const String&) const;
  3768. float GetAttributeAnimationSpeed(const String&) const;
  3769. float GetAttributeAnimationTime(const String&) const;
  3770. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3771. Variant GetAttributeDefault(const String&) const;
  3772. Variant GetAttributeDefault(uint) const;
  3773. bool GetBlockEvents() const;
  3774. int GetCategoryBits() const;
  3775. Component GetComponent(StringHash) const;
  3776. float GetDensity() const;
  3777. VariantMap& GetEventDataMap() const;
  3778. Object GetEventSender() const;
  3779. float GetFriction() const;
  3780. int GetGroupIndex() const;
  3781. uint GetID() const;
  3782. float GetInertia() const;
  3783. bool GetInterceptNetworkUpdate(const String&) const;
  3784. int GetMaskBits() const;
  3785. float GetMass() const;
  3786. Vector2 GetMassCenter() const;
  3787. Node GetNode() const;
  3788. uint GetNumAttributes() const;
  3789. uint GetNumNetworkAttributes() const;
  3790. ObjectAnimation GetObjectAnimation() const;
  3791. ResourceRef GetObjectAnimationAttr() const;
  3792. float GetRestitution() const;
  3793. Scene GetScene() const;
  3794. Object GetSubsystem(StringHash) const;
  3795. StringHash GetType() const;
  3796. bool HasEventHandlers() const;
  3797. bool HasSubscribedToEvent(Object, StringHash) const;
  3798. bool HasSubscribedToEvent(StringHash) const;
  3799. bool IsEnabled() const;
  3800. bool IsEnabledEffective() const;
  3801. bool IsInstanceOf(StringHash) const;
  3802. bool IsReplicated() const;
  3803. bool IsTemporary() const;
  3804. bool IsTrigger() const;
  3805. bool Load(Deserializer&);
  3806. bool LoadJSON(const JSONValue&);
  3807. bool LoadXML(const XMLElement&);
  3808. void MarkNetworkUpdate();
  3809. operator Object() const;
  3810. void OnEvent(Object, StringHash, VariantMap&);
  3811. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  3812. void OnSetAttribute(const AttributeInfo&, const Variant&);
  3813. void OnSetEnabled();
  3814. void PrepareNetworkUpdate();
  3815. bool ReadDeltaUpdate(Deserializer&);
  3816. bool ReadLatestDataUpdate(Deserializer&);
  3817. operator RefCounted() const;
  3818. int Refs() const;
  3819. void ReleaseFixture();
  3820. void Remove();
  3821. void RemoveAttributeAnimation(const String&);
  3822. void RemoveInstanceDefault();
  3823. void RemoveObjectAnimation();
  3824. void ResetToDefault();
  3825. bool Save(Serializer&) const;
  3826. bool SaveDefaultAttributes() const;
  3827. bool SaveJSON(JSONValue&) const;
  3828. bool SaveXML(XMLElement&) const;
  3829. void SendEvent(StringHash);
  3830. void SendEvent(StringHash, VariantMap&);
  3831. operator Serializable() const;
  3832. void SetAngle(float);
  3833. void SetAnimationEnabled(bool);
  3834. void SetAnimationTime(float);
  3835. bool SetAttribute(const String&, const Variant&);
  3836. bool SetAttribute(uint, const Variant&);
  3837. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3838. void SetAttributeAnimationSpeed(const String&, float);
  3839. void SetAttributeAnimationTime(const String&, float);
  3840. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3841. void SetBlockEvents(bool);
  3842. void SetCategoryBits(int);
  3843. void SetCenter(const Vector2&);
  3844. void SetCenter(float, float);
  3845. void SetDensity(float);
  3846. void SetEnabled(bool);
  3847. void SetFriction(float);
  3848. void SetGlobalVar(StringHash, const Variant&);
  3849. void SetGroupIndex(int);
  3850. void SetInstanceDefault(bool);
  3851. void SetInterceptNetworkUpdate(const String&, bool);
  3852. void SetMaskBits(int);
  3853. void SetObjectAnimation(ObjectAnimation);
  3854. void SetObjectAnimationAttr(const ResourceRef&);
  3855. void SetRestitution(float);
  3856. void SetSize(const Vector2&);
  3857. void SetSize(float, float);
  3858. void SetTemporary(bool);
  3859. void SetTrigger(bool);
  3860. const String& GetCategory() const;
  3861. const String& GetTypeName() const;
  3862. void UnsubscribeFromAllEvents();
  3863. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  3864. void UnsubscribeFromEvent(Object, StringHash);
  3865. void UnsubscribeFromEvent(StringHash);
  3866. void UnsubscribeFromEvents(Object);
  3867. const Variant& GetGlobalVar(StringHash) const;
  3868. const VariantMap& GetGlobalVars() const;
  3869. const Vector2& GetCenter() const;
  3870. const Vector2& GetSize() const;
  3871. int WeakRefs() const;
  3872. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  3873. void WriteInitialDeltaUpdate(Serializer&, uint8);
  3874. void WriteLatestDataUpdate(Serializer&, uint8);
  3875. operator const Animatable() const;
  3876. operator const CollisionShape2D() const;
  3877. operator const Component() const;
  3878. operator const Object() const;
  3879. operator const RefCounted() const;
  3880. operator const Serializable() const;
  3881. // Properties:
  3882. float angle;
  3883. bool animationEnabled;
  3884. /* readonly */
  3885. Array<Variant> attributeDefaults;
  3886. /* readonly */
  3887. Array<AttributeInfo> attributeInfos;
  3888. Array<Variant> attributes;
  3889. /* readonly */
  3890. String category;
  3891. int categoryBits;
  3892. Vector2 center;
  3893. float density;
  3894. bool enabled;
  3895. /* readonly */
  3896. bool enabledEffective;
  3897. float friction;
  3898. Array<Variant> globalVar;
  3899. /* readonly */
  3900. VariantMap globalVars;
  3901. int groupIndex;
  3902. /* readonly */
  3903. uint id;
  3904. /* readonly */
  3905. float inertia;
  3906. int maskBits;
  3907. /* readonly */
  3908. float mass;
  3909. /* readonly */
  3910. Vector2 massCenter;
  3911. /* readonly */
  3912. Node node;
  3913. /* readonly */
  3914. uint numAttributes;
  3915. ObjectAnimation objectAnimation;
  3916. /* readonly */
  3917. int refs;
  3918. /* readonly */
  3919. bool replicated;
  3920. float restitution;
  3921. Vector2 size;
  3922. bool temporary;
  3923. bool trigger;
  3924. /* readonly */
  3925. StringHash type;
  3926. /* readonly */
  3927. String typeName;
  3928. /* readonly */
  3929. int weakRefs;
  3930. };
  3931. class CollisionChain2D
  3932. {
  3933. public:
  3934. CollisionChain2D();
  3935. // Methods:
  3936. void AllocateNetworkState();
  3937. operator Animatable() const;
  3938. void ApplyAttributes();
  3939. void CleanupConnection(Connection);
  3940. operator CollisionShape2D() const;
  3941. operator Component() const;
  3942. void CreateFixture();
  3943. void DrawDebugGeometry(DebugRenderer, bool);
  3944. bool GetAnimationEnabled() const;
  3945. Variant GetAttribute(const String&) const;
  3946. Variant GetAttribute(uint) const;
  3947. ValueAnimation GetAttributeAnimation(const String&) const;
  3948. float GetAttributeAnimationSpeed(const String&) const;
  3949. float GetAttributeAnimationTime(const String&) const;
  3950. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3951. Variant GetAttributeDefault(const String&) const;
  3952. Variant GetAttributeDefault(uint) const;
  3953. bool GetBlockEvents() const;
  3954. int GetCategoryBits() const;
  3955. Component GetComponent(StringHash) const;
  3956. float GetDensity() const;
  3957. VariantMap& GetEventDataMap() const;
  3958. Object GetEventSender() const;
  3959. float GetFriction() const;
  3960. int GetGroupIndex() const;
  3961. uint GetID() const;
  3962. float GetInertia() const;
  3963. bool GetInterceptNetworkUpdate(const String&) const;
  3964. bool GetLoop() const;
  3965. int GetMaskBits() const;
  3966. float GetMass() const;
  3967. Vector2 GetMassCenter() const;
  3968. Node GetNode() const;
  3969. uint GetNumAttributes() const;
  3970. uint GetNumNetworkAttributes() const;
  3971. ObjectAnimation GetObjectAnimation() const;
  3972. ResourceRef GetObjectAnimationAttr() const;
  3973. float GetRestitution() const;
  3974. Scene GetScene() const;
  3975. Object GetSubsystem(StringHash) const;
  3976. StringHash GetType() const;
  3977. uint GetVertexCount() const;
  3978. Array<Vector2> GetVertices() const;
  3979. bool HasEventHandlers() const;
  3980. bool HasSubscribedToEvent(Object, StringHash) const;
  3981. bool HasSubscribedToEvent(StringHash) const;
  3982. bool IsEnabled() const;
  3983. bool IsEnabledEffective() const;
  3984. bool IsInstanceOf(StringHash) const;
  3985. bool IsReplicated() const;
  3986. bool IsTemporary() const;
  3987. bool IsTrigger() const;
  3988. bool Load(Deserializer&);
  3989. bool LoadJSON(const JSONValue&);
  3990. bool LoadXML(const XMLElement&);
  3991. void MarkNetworkUpdate();
  3992. operator Object() const;
  3993. void OnEvent(Object, StringHash, VariantMap&);
  3994. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  3995. void OnSetAttribute(const AttributeInfo&, const Variant&);
  3996. void OnSetEnabled();
  3997. void PrepareNetworkUpdate();
  3998. bool ReadDeltaUpdate(Deserializer&);
  3999. bool ReadLatestDataUpdate(Deserializer&);
  4000. operator RefCounted() const;
  4001. int Refs() const;
  4002. void ReleaseFixture();
  4003. void Remove();
  4004. void RemoveAttributeAnimation(const String&);
  4005. void RemoveInstanceDefault();
  4006. void RemoveObjectAnimation();
  4007. void ResetToDefault();
  4008. bool Save(Serializer&) const;
  4009. bool SaveDefaultAttributes() const;
  4010. bool SaveJSON(JSONValue&) const;
  4011. bool SaveXML(XMLElement&) const;
  4012. void SendEvent(StringHash);
  4013. void SendEvent(StringHash, VariantMap&);
  4014. operator Serializable() const;
  4015. void SetAnimationEnabled(bool);
  4016. void SetAnimationTime(float);
  4017. bool SetAttribute(const String&, const Variant&);
  4018. bool SetAttribute(uint, const Variant&);
  4019. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4020. void SetAttributeAnimationSpeed(const String&, float);
  4021. void SetAttributeAnimationTime(const String&, float);
  4022. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4023. void SetBlockEvents(bool);
  4024. void SetCategoryBits(int);
  4025. void SetDensity(float);
  4026. void SetEnabled(bool);
  4027. void SetFriction(float);
  4028. void SetGlobalVar(StringHash, const Variant&);
  4029. void SetGroupIndex(int);
  4030. void SetInstanceDefault(bool);
  4031. void SetInterceptNetworkUpdate(const String&, bool);
  4032. void SetLoop(bool);
  4033. void SetMaskBits(int);
  4034. void SetObjectAnimation(ObjectAnimation);
  4035. void SetObjectAnimationAttr(const ResourceRef&);
  4036. void SetRestitution(float);
  4037. void SetTemporary(bool);
  4038. void SetTrigger(bool);
  4039. void SetVertex(uint, const Vector2&);
  4040. void SetVertexCount(uint);
  4041. void SetVertices(Array<Vector2>);
  4042. const String& GetCategory() const;
  4043. const String& GetTypeName() const;
  4044. void UnsubscribeFromAllEvents();
  4045. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4046. void UnsubscribeFromEvent(Object, StringHash);
  4047. void UnsubscribeFromEvent(StringHash);
  4048. void UnsubscribeFromEvents(Object);
  4049. const Variant& GetGlobalVar(StringHash) const;
  4050. const VariantMap& GetGlobalVars() const;
  4051. const Vector2& GetVertex(uint) const;
  4052. int WeakRefs() const;
  4053. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4054. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4055. void WriteLatestDataUpdate(Serializer&, uint8);
  4056. operator const Animatable() const;
  4057. operator const CollisionShape2D() const;
  4058. operator const Component() const;
  4059. operator const Object() const;
  4060. operator const RefCounted() const;
  4061. operator const Serializable() const;
  4062. // Properties:
  4063. bool animationEnabled;
  4064. /* readonly */
  4065. Array<Variant> attributeDefaults;
  4066. /* readonly */
  4067. Array<AttributeInfo> attributeInfos;
  4068. Array<Variant> attributes;
  4069. /* readonly */
  4070. String category;
  4071. int categoryBits;
  4072. float density;
  4073. bool enabled;
  4074. /* readonly */
  4075. bool enabledEffective;
  4076. float friction;
  4077. Array<Variant> globalVar;
  4078. /* readonly */
  4079. VariantMap globalVars;
  4080. int groupIndex;
  4081. /* readonly */
  4082. uint id;
  4083. /* readonly */
  4084. float inertia;
  4085. bool loop;
  4086. int maskBits;
  4087. /* readonly */
  4088. float mass;
  4089. /* readonly */
  4090. Vector2 massCenter;
  4091. /* readonly */
  4092. Node node;
  4093. /* readonly */
  4094. uint numAttributes;
  4095. ObjectAnimation objectAnimation;
  4096. /* readonly */
  4097. int refs;
  4098. /* readonly */
  4099. bool replicated;
  4100. float restitution;
  4101. bool temporary;
  4102. bool trigger;
  4103. /* readonly */
  4104. StringHash type;
  4105. /* readonly */
  4106. String typeName;
  4107. uint vertexCount;
  4108. /* readonly */
  4109. int weakRefs;
  4110. };
  4111. class CollisionCircle2D
  4112. {
  4113. public:
  4114. CollisionCircle2D();
  4115. // Methods:
  4116. void AllocateNetworkState();
  4117. operator Animatable() const;
  4118. void ApplyAttributes();
  4119. void CleanupConnection(Connection);
  4120. operator CollisionShape2D() const;
  4121. operator Component() const;
  4122. void CreateFixture();
  4123. void DrawDebugGeometry(DebugRenderer, bool);
  4124. bool GetAnimationEnabled() const;
  4125. Variant GetAttribute(const String&) const;
  4126. Variant GetAttribute(uint) const;
  4127. ValueAnimation GetAttributeAnimation(const String&) const;
  4128. float GetAttributeAnimationSpeed(const String&) const;
  4129. float GetAttributeAnimationTime(const String&) const;
  4130. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4131. Variant GetAttributeDefault(const String&) const;
  4132. Variant GetAttributeDefault(uint) const;
  4133. bool GetBlockEvents() const;
  4134. int GetCategoryBits() const;
  4135. Component GetComponent(StringHash) const;
  4136. float GetDensity() const;
  4137. VariantMap& GetEventDataMap() const;
  4138. Object GetEventSender() const;
  4139. float GetFriction() const;
  4140. int GetGroupIndex() const;
  4141. uint GetID() const;
  4142. float GetInertia() const;
  4143. bool GetInterceptNetworkUpdate(const String&) const;
  4144. int GetMaskBits() const;
  4145. float GetMass() const;
  4146. Vector2 GetMassCenter() const;
  4147. Node GetNode() const;
  4148. uint GetNumAttributes() const;
  4149. uint GetNumNetworkAttributes() const;
  4150. ObjectAnimation GetObjectAnimation() const;
  4151. ResourceRef GetObjectAnimationAttr() const;
  4152. float GetRadius() const;
  4153. float GetRestitution() const;
  4154. Scene GetScene() const;
  4155. Object GetSubsystem(StringHash) const;
  4156. StringHash GetType() const;
  4157. bool HasEventHandlers() const;
  4158. bool HasSubscribedToEvent(Object, StringHash) const;
  4159. bool HasSubscribedToEvent(StringHash) const;
  4160. bool IsEnabled() const;
  4161. bool IsEnabledEffective() const;
  4162. bool IsInstanceOf(StringHash) const;
  4163. bool IsReplicated() const;
  4164. bool IsTemporary() const;
  4165. bool IsTrigger() const;
  4166. bool Load(Deserializer&);
  4167. bool LoadJSON(const JSONValue&);
  4168. bool LoadXML(const XMLElement&);
  4169. void MarkNetworkUpdate();
  4170. operator Object() const;
  4171. void OnEvent(Object, StringHash, VariantMap&);
  4172. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4173. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4174. void OnSetEnabled();
  4175. void PrepareNetworkUpdate();
  4176. bool ReadDeltaUpdate(Deserializer&);
  4177. bool ReadLatestDataUpdate(Deserializer&);
  4178. operator RefCounted() const;
  4179. int Refs() const;
  4180. void ReleaseFixture();
  4181. void Remove();
  4182. void RemoveAttributeAnimation(const String&);
  4183. void RemoveInstanceDefault();
  4184. void RemoveObjectAnimation();
  4185. void ResetToDefault();
  4186. bool Save(Serializer&) const;
  4187. bool SaveDefaultAttributes() const;
  4188. bool SaveJSON(JSONValue&) const;
  4189. bool SaveXML(XMLElement&) const;
  4190. void SendEvent(StringHash);
  4191. void SendEvent(StringHash, VariantMap&);
  4192. operator Serializable() const;
  4193. void SetAnimationEnabled(bool);
  4194. void SetAnimationTime(float);
  4195. bool SetAttribute(const String&, const Variant&);
  4196. bool SetAttribute(uint, const Variant&);
  4197. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4198. void SetAttributeAnimationSpeed(const String&, float);
  4199. void SetAttributeAnimationTime(const String&, float);
  4200. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4201. void SetBlockEvents(bool);
  4202. void SetCategoryBits(int);
  4203. void SetCenter(const Vector2&);
  4204. void SetCenter(float, float);
  4205. void SetDensity(float);
  4206. void SetEnabled(bool);
  4207. void SetFriction(float);
  4208. void SetGlobalVar(StringHash, const Variant&);
  4209. void SetGroupIndex(int);
  4210. void SetInstanceDefault(bool);
  4211. void SetInterceptNetworkUpdate(const String&, bool);
  4212. void SetMaskBits(int);
  4213. void SetObjectAnimation(ObjectAnimation);
  4214. void SetObjectAnimationAttr(const ResourceRef&);
  4215. void SetRadius(float);
  4216. void SetRestitution(float);
  4217. void SetTemporary(bool);
  4218. void SetTrigger(bool);
  4219. const String& GetCategory() const;
  4220. const String& GetTypeName() const;
  4221. void UnsubscribeFromAllEvents();
  4222. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4223. void UnsubscribeFromEvent(Object, StringHash);
  4224. void UnsubscribeFromEvent(StringHash);
  4225. void UnsubscribeFromEvents(Object);
  4226. const Variant& GetGlobalVar(StringHash) const;
  4227. const VariantMap& GetGlobalVars() const;
  4228. const Vector2& GetCenter() const;
  4229. int WeakRefs() const;
  4230. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4231. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4232. void WriteLatestDataUpdate(Serializer&, uint8);
  4233. operator const Animatable() const;
  4234. operator const CollisionShape2D() const;
  4235. operator const Component() const;
  4236. operator const Object() const;
  4237. operator const RefCounted() const;
  4238. operator const Serializable() const;
  4239. // Properties:
  4240. bool animationEnabled;
  4241. /* readonly */
  4242. Array<Variant> attributeDefaults;
  4243. /* readonly */
  4244. Array<AttributeInfo> attributeInfos;
  4245. Array<Variant> attributes;
  4246. /* readonly */
  4247. String category;
  4248. int categoryBits;
  4249. Vector2 center;
  4250. float density;
  4251. bool enabled;
  4252. /* readonly */
  4253. bool enabledEffective;
  4254. float friction;
  4255. Array<Variant> globalVar;
  4256. /* readonly */
  4257. VariantMap globalVars;
  4258. int groupIndex;
  4259. /* readonly */
  4260. uint id;
  4261. /* readonly */
  4262. float inertia;
  4263. int maskBits;
  4264. /* readonly */
  4265. float mass;
  4266. /* readonly */
  4267. Vector2 massCenter;
  4268. /* readonly */
  4269. Node node;
  4270. /* readonly */
  4271. uint numAttributes;
  4272. ObjectAnimation objectAnimation;
  4273. float radius;
  4274. /* readonly */
  4275. int refs;
  4276. /* readonly */
  4277. bool replicated;
  4278. float restitution;
  4279. bool temporary;
  4280. bool trigger;
  4281. /* readonly */
  4282. StringHash type;
  4283. /* readonly */
  4284. String typeName;
  4285. /* readonly */
  4286. int weakRefs;
  4287. };
  4288. class CollisionEdge2D
  4289. {
  4290. public:
  4291. CollisionEdge2D();
  4292. // Methods:
  4293. void AllocateNetworkState();
  4294. operator Animatable() const;
  4295. void ApplyAttributes();
  4296. void CleanupConnection(Connection);
  4297. operator CollisionShape2D() const;
  4298. operator Component() const;
  4299. void CreateFixture();
  4300. void DrawDebugGeometry(DebugRenderer, bool);
  4301. bool GetAnimationEnabled() const;
  4302. Variant GetAttribute(const String&) const;
  4303. Variant GetAttribute(uint) const;
  4304. ValueAnimation GetAttributeAnimation(const String&) const;
  4305. float GetAttributeAnimationSpeed(const String&) const;
  4306. float GetAttributeAnimationTime(const String&) const;
  4307. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4308. Variant GetAttributeDefault(const String&) const;
  4309. Variant GetAttributeDefault(uint) const;
  4310. bool GetBlockEvents() const;
  4311. int GetCategoryBits() const;
  4312. Component GetComponent(StringHash) const;
  4313. float GetDensity() const;
  4314. VariantMap& GetEventDataMap() const;
  4315. Object GetEventSender() const;
  4316. float GetFriction() const;
  4317. int GetGroupIndex() const;
  4318. uint GetID() const;
  4319. float GetInertia() const;
  4320. bool GetInterceptNetworkUpdate(const String&) const;
  4321. int GetMaskBits() const;
  4322. float GetMass() const;
  4323. Vector2 GetMassCenter() const;
  4324. Node GetNode() const;
  4325. uint GetNumAttributes() const;
  4326. uint GetNumNetworkAttributes() const;
  4327. ObjectAnimation GetObjectAnimation() const;
  4328. ResourceRef GetObjectAnimationAttr() const;
  4329. float GetRestitution() const;
  4330. Scene GetScene() const;
  4331. Object GetSubsystem(StringHash) const;
  4332. StringHash GetType() const;
  4333. bool HasEventHandlers() const;
  4334. bool HasSubscribedToEvent(Object, StringHash) const;
  4335. bool HasSubscribedToEvent(StringHash) const;
  4336. bool IsEnabled() const;
  4337. bool IsEnabledEffective() const;
  4338. bool IsInstanceOf(StringHash) const;
  4339. bool IsReplicated() const;
  4340. bool IsTemporary() const;
  4341. bool IsTrigger() const;
  4342. bool Load(Deserializer&);
  4343. bool LoadJSON(const JSONValue&);
  4344. bool LoadXML(const XMLElement&);
  4345. void MarkNetworkUpdate();
  4346. operator Object() const;
  4347. void OnEvent(Object, StringHash, VariantMap&);
  4348. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4349. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4350. void OnSetEnabled();
  4351. void PrepareNetworkUpdate();
  4352. bool ReadDeltaUpdate(Deserializer&);
  4353. bool ReadLatestDataUpdate(Deserializer&);
  4354. operator RefCounted() const;
  4355. int Refs() const;
  4356. void ReleaseFixture();
  4357. void Remove();
  4358. void RemoveAttributeAnimation(const String&);
  4359. void RemoveInstanceDefault();
  4360. void RemoveObjectAnimation();
  4361. void ResetToDefault();
  4362. bool Save(Serializer&) const;
  4363. bool SaveDefaultAttributes() const;
  4364. bool SaveJSON(JSONValue&) const;
  4365. bool SaveXML(XMLElement&) const;
  4366. void SendEvent(StringHash);
  4367. void SendEvent(StringHash, VariantMap&);
  4368. operator Serializable() const;
  4369. void SetAnimationEnabled(bool);
  4370. void SetAnimationTime(float);
  4371. bool SetAttribute(const String&, const Variant&);
  4372. bool SetAttribute(uint, const Variant&);
  4373. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4374. void SetAttributeAnimationSpeed(const String&, float);
  4375. void SetAttributeAnimationTime(const String&, float);
  4376. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4377. void SetBlockEvents(bool);
  4378. void SetCategoryBits(int);
  4379. void SetDensity(float);
  4380. void SetEnabled(bool);
  4381. void SetFriction(float);
  4382. void SetGlobalVar(StringHash, const Variant&);
  4383. void SetGroupIndex(int);
  4384. void SetInstanceDefault(bool);
  4385. void SetInterceptNetworkUpdate(const String&, bool);
  4386. void SetMaskBits(int);
  4387. void SetObjectAnimation(ObjectAnimation);
  4388. void SetObjectAnimationAttr(const ResourceRef&);
  4389. void SetRestitution(float);
  4390. void SetTemporary(bool);
  4391. void SetTrigger(bool);
  4392. void SetVertex1(const Vector2&);
  4393. void SetVertex2(const Vector2&);
  4394. void SetVertices(const Vector2&, const Vector2&);
  4395. const String& GetCategory() const;
  4396. const String& GetTypeName() const;
  4397. void UnsubscribeFromAllEvents();
  4398. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4399. void UnsubscribeFromEvent(Object, StringHash);
  4400. void UnsubscribeFromEvent(StringHash);
  4401. void UnsubscribeFromEvents(Object);
  4402. const Variant& GetGlobalVar(StringHash) const;
  4403. const VariantMap& GetGlobalVars() const;
  4404. const Vector2& GetVertex1() const;
  4405. const Vector2& GetVertex2() const;
  4406. int WeakRefs() const;
  4407. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4408. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4409. void WriteLatestDataUpdate(Serializer&, uint8);
  4410. operator const Animatable() const;
  4411. operator const CollisionShape2D() const;
  4412. operator const Component() const;
  4413. operator const Object() const;
  4414. operator const RefCounted() const;
  4415. operator const Serializable() const;
  4416. // Properties:
  4417. bool animationEnabled;
  4418. /* readonly */
  4419. Array<Variant> attributeDefaults;
  4420. /* readonly */
  4421. Array<AttributeInfo> attributeInfos;
  4422. Array<Variant> attributes;
  4423. /* readonly */
  4424. String category;
  4425. int categoryBits;
  4426. float density;
  4427. bool enabled;
  4428. /* readonly */
  4429. bool enabledEffective;
  4430. float friction;
  4431. Array<Variant> globalVar;
  4432. /* readonly */
  4433. VariantMap globalVars;
  4434. int groupIndex;
  4435. /* readonly */
  4436. uint id;
  4437. /* readonly */
  4438. float inertia;
  4439. int maskBits;
  4440. /* readonly */
  4441. float mass;
  4442. /* readonly */
  4443. Vector2 massCenter;
  4444. /* readonly */
  4445. Node node;
  4446. /* readonly */
  4447. uint numAttributes;
  4448. ObjectAnimation objectAnimation;
  4449. /* readonly */
  4450. int refs;
  4451. /* readonly */
  4452. bool replicated;
  4453. float restitution;
  4454. bool temporary;
  4455. bool trigger;
  4456. /* readonly */
  4457. StringHash type;
  4458. /* readonly */
  4459. String typeName;
  4460. Vector2 vertex1;
  4461. Vector2 vertex2;
  4462. /* readonly */
  4463. int weakRefs;
  4464. };
  4465. class CollisionGeometryData
  4466. {
  4467. public:
  4468. // Methods:
  4469. operator ConvexData() const;
  4470. operator GImpactMeshData() const;
  4471. operator HeightfieldData() const;
  4472. operator RefCounted() const;
  4473. int Refs() const;
  4474. operator TriangleMeshData() const;
  4475. int WeakRefs() const;
  4476. operator const ConvexData() const;
  4477. operator const GImpactMeshData() const;
  4478. operator const HeightfieldData() const;
  4479. operator const RefCounted() const;
  4480. operator const TriangleMeshData() const;
  4481. // Properties:
  4482. /* readonly */
  4483. int refs;
  4484. /* readonly */
  4485. int weakRefs;
  4486. };
  4487. class CollisionPolygon2D
  4488. {
  4489. public:
  4490. CollisionPolygon2D();
  4491. // Methods:
  4492. void AllocateNetworkState();
  4493. operator Animatable() const;
  4494. void ApplyAttributes();
  4495. void CleanupConnection(Connection);
  4496. operator CollisionShape2D() const;
  4497. operator Component() const;
  4498. void CreateFixture();
  4499. void DrawDebugGeometry(DebugRenderer, bool);
  4500. bool GetAnimationEnabled() const;
  4501. Variant GetAttribute(const String&) const;
  4502. Variant GetAttribute(uint) const;
  4503. ValueAnimation GetAttributeAnimation(const String&) const;
  4504. float GetAttributeAnimationSpeed(const String&) const;
  4505. float GetAttributeAnimationTime(const String&) const;
  4506. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4507. Variant GetAttributeDefault(const String&) const;
  4508. Variant GetAttributeDefault(uint) const;
  4509. bool GetBlockEvents() const;
  4510. int GetCategoryBits() const;
  4511. Component GetComponent(StringHash) const;
  4512. float GetDensity() const;
  4513. VariantMap& GetEventDataMap() const;
  4514. Object GetEventSender() const;
  4515. float GetFriction() const;
  4516. int GetGroupIndex() const;
  4517. uint GetID() const;
  4518. float GetInertia() const;
  4519. bool GetInterceptNetworkUpdate(const String&) const;
  4520. int GetMaskBits() const;
  4521. float GetMass() const;
  4522. Vector2 GetMassCenter() const;
  4523. Node GetNode() const;
  4524. uint GetNumAttributes() const;
  4525. uint GetNumNetworkAttributes() const;
  4526. ObjectAnimation GetObjectAnimation() const;
  4527. ResourceRef GetObjectAnimationAttr() const;
  4528. float GetRestitution() const;
  4529. Scene GetScene() const;
  4530. Object GetSubsystem(StringHash) const;
  4531. StringHash GetType() const;
  4532. uint GetVertexCount() const;
  4533. Array<Vector2> GetVertices() const;
  4534. bool HasEventHandlers() const;
  4535. bool HasSubscribedToEvent(Object, StringHash) const;
  4536. bool HasSubscribedToEvent(StringHash) const;
  4537. bool IsEnabled() const;
  4538. bool IsEnabledEffective() const;
  4539. bool IsInstanceOf(StringHash) const;
  4540. bool IsReplicated() const;
  4541. bool IsTemporary() const;
  4542. bool IsTrigger() const;
  4543. bool Load(Deserializer&);
  4544. bool LoadJSON(const JSONValue&);
  4545. bool LoadXML(const XMLElement&);
  4546. void MarkNetworkUpdate();
  4547. operator Object() const;
  4548. void OnEvent(Object, StringHash, VariantMap&);
  4549. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4550. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4551. void OnSetEnabled();
  4552. void PrepareNetworkUpdate();
  4553. bool ReadDeltaUpdate(Deserializer&);
  4554. bool ReadLatestDataUpdate(Deserializer&);
  4555. operator RefCounted() const;
  4556. int Refs() const;
  4557. void ReleaseFixture();
  4558. void Remove();
  4559. void RemoveAttributeAnimation(const String&);
  4560. void RemoveInstanceDefault();
  4561. void RemoveObjectAnimation();
  4562. void ResetToDefault();
  4563. bool Save(Serializer&) const;
  4564. bool SaveDefaultAttributes() const;
  4565. bool SaveJSON(JSONValue&) const;
  4566. bool SaveXML(XMLElement&) const;
  4567. void SendEvent(StringHash);
  4568. void SendEvent(StringHash, VariantMap&);
  4569. operator Serializable() const;
  4570. void SetAnimationEnabled(bool);
  4571. void SetAnimationTime(float);
  4572. bool SetAttribute(const String&, const Variant&);
  4573. bool SetAttribute(uint, const Variant&);
  4574. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4575. void SetAttributeAnimationSpeed(const String&, float);
  4576. void SetAttributeAnimationTime(const String&, float);
  4577. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4578. void SetBlockEvents(bool);
  4579. void SetCategoryBits(int);
  4580. void SetDensity(float);
  4581. void SetEnabled(bool);
  4582. void SetFriction(float);
  4583. void SetGlobalVar(StringHash, const Variant&);
  4584. void SetGroupIndex(int);
  4585. void SetInstanceDefault(bool);
  4586. void SetInterceptNetworkUpdate(const String&, bool);
  4587. void SetMaskBits(int);
  4588. void SetObjectAnimation(ObjectAnimation);
  4589. void SetObjectAnimationAttr(const ResourceRef&);
  4590. void SetRestitution(float);
  4591. void SetTemporary(bool);
  4592. void SetTrigger(bool);
  4593. void SetVertex(uint, const Vector2&);
  4594. void SetVertexCount(uint);
  4595. void SetVertices(Array<Vector2>);
  4596. const String& GetCategory() const;
  4597. const String& GetTypeName() const;
  4598. void UnsubscribeFromAllEvents();
  4599. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4600. void UnsubscribeFromEvent(Object, StringHash);
  4601. void UnsubscribeFromEvent(StringHash);
  4602. void UnsubscribeFromEvents(Object);
  4603. const Variant& GetGlobalVar(StringHash) const;
  4604. const VariantMap& GetGlobalVars() const;
  4605. const Vector2& GetVertex(uint) const;
  4606. int WeakRefs() const;
  4607. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4608. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4609. void WriteLatestDataUpdate(Serializer&, uint8);
  4610. operator const Animatable() const;
  4611. operator const CollisionShape2D() const;
  4612. operator const Component() const;
  4613. operator const Object() const;
  4614. operator const RefCounted() const;
  4615. operator const Serializable() const;
  4616. // Properties:
  4617. bool animationEnabled;
  4618. /* readonly */
  4619. Array<Variant> attributeDefaults;
  4620. /* readonly */
  4621. Array<AttributeInfo> attributeInfos;
  4622. Array<Variant> attributes;
  4623. /* readonly */
  4624. String category;
  4625. int categoryBits;
  4626. float density;
  4627. bool enabled;
  4628. /* readonly */
  4629. bool enabledEffective;
  4630. float friction;
  4631. Array<Variant> globalVar;
  4632. /* readonly */
  4633. VariantMap globalVars;
  4634. int groupIndex;
  4635. /* readonly */
  4636. uint id;
  4637. /* readonly */
  4638. float inertia;
  4639. int maskBits;
  4640. /* readonly */
  4641. float mass;
  4642. /* readonly */
  4643. Vector2 massCenter;
  4644. /* readonly */
  4645. Node node;
  4646. /* readonly */
  4647. uint numAttributes;
  4648. ObjectAnimation objectAnimation;
  4649. /* readonly */
  4650. int refs;
  4651. /* readonly */
  4652. bool replicated;
  4653. float restitution;
  4654. bool temporary;
  4655. bool trigger;
  4656. /* readonly */
  4657. StringHash type;
  4658. /* readonly */
  4659. String typeName;
  4660. uint vertexCount;
  4661. /* readonly */
  4662. int weakRefs;
  4663. };
  4664. class CollisionShape
  4665. {
  4666. public:
  4667. CollisionShape();
  4668. // Methods:
  4669. void AllocateNetworkState();
  4670. operator Animatable() const;
  4671. void ApplyAttributes();
  4672. void CleanupConnection(Connection);
  4673. operator Component() const;
  4674. void DrawDebugGeometry(DebugRenderer, bool);
  4675. bool GetAnimationEnabled() const;
  4676. Variant GetAttribute(const String&) const;
  4677. Variant GetAttribute(uint) const;
  4678. ValueAnimation GetAttributeAnimation(const String&) const;
  4679. float GetAttributeAnimationSpeed(const String&) const;
  4680. float GetAttributeAnimationTime(const String&) const;
  4681. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4682. Variant GetAttributeDefault(const String&) const;
  4683. Variant GetAttributeDefault(uint) const;
  4684. bool GetBlockEvents() const;
  4685. Component GetComponent(StringHash) const;
  4686. VariantMap& GetEventDataMap() const;
  4687. Object GetEventSender() const;
  4688. CollisionGeometryData GetGeometryData() const;
  4689. uint GetID() const;
  4690. bool GetInterceptNetworkUpdate(const String&) const;
  4691. uint GetLodLevel() const;
  4692. float GetMargin() const;
  4693. Model GetModel() const;
  4694. ResourceRef GetModelAttr() const;
  4695. Node GetNode() const;
  4696. uint GetNumAttributes() const;
  4697. uint GetNumNetworkAttributes() const;
  4698. ObjectAnimation GetObjectAnimation() const;
  4699. ResourceRef GetObjectAnimationAttr() const;
  4700. PhysicsWorld GetPhysicsWorld() const;
  4701. Scene GetScene() const;
  4702. ShapeType GetShapeType() const;
  4703. Object GetSubsystem(StringHash) const;
  4704. StringHash GetType() const;
  4705. BoundingBox GetWorldBoundingBox() const;
  4706. bool HasEventHandlers() const;
  4707. bool HasSubscribedToEvent(Object, StringHash) const;
  4708. bool HasSubscribedToEvent(StringHash) const;
  4709. bool IsEnabled() const;
  4710. bool IsEnabledEffective() const;
  4711. bool IsInstanceOf(StringHash) const;
  4712. bool IsReplicated() const;
  4713. bool IsTemporary() const;
  4714. bool Load(Deserializer&);
  4715. bool LoadJSON(const JSONValue&);
  4716. bool LoadXML(const XMLElement&);
  4717. void MarkNetworkUpdate();
  4718. void NotifyRigidBody(bool = true);
  4719. operator Object() const;
  4720. void OnEvent(Object, StringHash, VariantMap&);
  4721. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4722. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4723. void OnSetEnabled();
  4724. void PrepareNetworkUpdate();
  4725. const Quaternion& GetRotation() const;
  4726. bool ReadDeltaUpdate(Deserializer&);
  4727. bool ReadLatestDataUpdate(Deserializer&);
  4728. operator RefCounted() const;
  4729. int Refs() const;
  4730. void ReleaseShape();
  4731. void Remove();
  4732. void RemoveAttributeAnimation(const String&);
  4733. void RemoveInstanceDefault();
  4734. void RemoveObjectAnimation();
  4735. void ResetToDefault();
  4736. bool Save(Serializer&) const;
  4737. bool SaveDefaultAttributes() const;
  4738. bool SaveJSON(JSONValue&) const;
  4739. bool SaveXML(XMLElement&) const;
  4740. void SendEvent(StringHash);
  4741. void SendEvent(StringHash, VariantMap&);
  4742. operator Serializable() const;
  4743. void SetAnimationEnabled(bool);
  4744. void SetAnimationTime(float);
  4745. bool SetAttribute(const String&, const Variant&);
  4746. bool SetAttribute(uint, const Variant&);
  4747. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4748. void SetAttributeAnimationSpeed(const String&, float);
  4749. void SetAttributeAnimationTime(const String&, float);
  4750. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4751. void SetBlockEvents(bool);
  4752. void SetBox(const Vector3&, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4753. void SetCapsule(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4754. void SetCone(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4755. void SetConvexHull(Model, uint = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4756. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4757. void SetCustomGImpactMesh(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4758. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4759. void SetCylinder(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4760. void SetEnabled(bool);
  4761. void SetGImpactMesh(Model, uint = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4762. void SetGlobalVar(StringHash, const Variant&);
  4763. void SetInstanceDefault(bool);
  4764. void SetInterceptNetworkUpdate(const String&, bool);
  4765. void SetLodLevel(uint);
  4766. void SetMargin(float);
  4767. void SetModel(Model);
  4768. void SetModelAttr(const ResourceRef&);
  4769. void SetObjectAnimation(ObjectAnimation);
  4770. void SetObjectAnimationAttr(const ResourceRef&);
  4771. void SetPosition(const Vector3&);
  4772. void SetRotation(const Quaternion&);
  4773. void SetShapeType(ShapeType);
  4774. void SetSize(const Vector3&);
  4775. void SetSphere(float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4776. void SetStaticPlane(const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4777. void SetTemporary(bool);
  4778. void SetTerrain(uint = 0);
  4779. void SetTransform(const Vector3&, const Quaternion&);
  4780. void SetTriangleMesh(Model, uint = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4781. const String& GetCategory() const;
  4782. const String& GetTypeName() const;
  4783. void UnsubscribeFromAllEvents();
  4784. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4785. void UnsubscribeFromEvent(Object, StringHash);
  4786. void UnsubscribeFromEvent(StringHash);
  4787. void UnsubscribeFromEvents(Object);
  4788. const Variant& GetGlobalVar(StringHash) const;
  4789. const VariantMap& GetGlobalVars() const;
  4790. const Vector3& GetPosition() const;
  4791. const Vector3& GetSize() const;
  4792. int WeakRefs() const;
  4793. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4794. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4795. void WriteLatestDataUpdate(Serializer&, uint8);
  4796. operator const Animatable() const;
  4797. operator const Component() const;
  4798. operator const Object() const;
  4799. operator const RefCounted() const;
  4800. operator const Serializable() const;
  4801. // Properties:
  4802. bool animationEnabled;
  4803. /* readonly */
  4804. Array<Variant> attributeDefaults;
  4805. /* readonly */
  4806. Array<AttributeInfo> attributeInfos;
  4807. Array<Variant> attributes;
  4808. /* readonly */
  4809. String category;
  4810. bool enabled;
  4811. /* readonly */
  4812. bool enabledEffective;
  4813. Array<Variant> globalVar;
  4814. /* readonly */
  4815. VariantMap globalVars;
  4816. /* readonly */
  4817. uint id;
  4818. uint lodLevel;
  4819. float margin;
  4820. Model model;
  4821. /* readonly */
  4822. Node node;
  4823. /* readonly */
  4824. uint numAttributes;
  4825. ObjectAnimation objectAnimation;
  4826. Vector3 position;
  4827. /* readonly */
  4828. int refs;
  4829. /* readonly */
  4830. bool replicated;
  4831. Quaternion rotation;
  4832. ShapeType shapeType;
  4833. Vector3 size;
  4834. bool temporary;
  4835. /* readonly */
  4836. StringHash type;
  4837. /* readonly */
  4838. String typeName;
  4839. /* readonly */
  4840. int weakRefs;
  4841. /* readonly */
  4842. BoundingBox worldBoundingBox;
  4843. };
  4844. class CollisionShape2D
  4845. {
  4846. public:
  4847. // Methods:
  4848. void AllocateNetworkState();
  4849. operator Animatable() const;
  4850. void ApplyAttributes();
  4851. void CleanupConnection(Connection);
  4852. operator CollisionBox2D() const;
  4853. operator CollisionChain2D() const;
  4854. operator CollisionCircle2D() const;
  4855. operator CollisionEdge2D() const;
  4856. operator CollisionPolygon2D() const;
  4857. operator Component() const;
  4858. void CreateFixture();
  4859. void DrawDebugGeometry(DebugRenderer, bool);
  4860. bool GetAnimationEnabled() const;
  4861. Variant GetAttribute(const String&) const;
  4862. Variant GetAttribute(uint) const;
  4863. ValueAnimation GetAttributeAnimation(const String&) const;
  4864. float GetAttributeAnimationSpeed(const String&) const;
  4865. float GetAttributeAnimationTime(const String&) const;
  4866. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4867. Variant GetAttributeDefault(const String&) const;
  4868. Variant GetAttributeDefault(uint) const;
  4869. bool GetBlockEvents() const;
  4870. int GetCategoryBits() const;
  4871. Component GetComponent(StringHash) const;
  4872. float GetDensity() const;
  4873. VariantMap& GetEventDataMap() const;
  4874. Object GetEventSender() const;
  4875. float GetFriction() const;
  4876. int GetGroupIndex() const;
  4877. uint GetID() const;
  4878. float GetInertia() const;
  4879. bool GetInterceptNetworkUpdate(const String&) const;
  4880. int GetMaskBits() const;
  4881. float GetMass() const;
  4882. Vector2 GetMassCenter() const;
  4883. Node GetNode() const;
  4884. uint GetNumAttributes() const;
  4885. uint GetNumNetworkAttributes() const;
  4886. ObjectAnimation GetObjectAnimation() const;
  4887. ResourceRef GetObjectAnimationAttr() const;
  4888. float GetRestitution() const;
  4889. Scene GetScene() const;
  4890. Object GetSubsystem(StringHash) const;
  4891. StringHash GetType() const;
  4892. bool HasEventHandlers() const;
  4893. bool HasSubscribedToEvent(Object, StringHash) const;
  4894. bool HasSubscribedToEvent(StringHash) const;
  4895. bool IsEnabled() const;
  4896. bool IsEnabledEffective() const;
  4897. bool IsInstanceOf(StringHash) const;
  4898. bool IsReplicated() const;
  4899. bool IsTemporary() const;
  4900. bool IsTrigger() const;
  4901. bool Load(Deserializer&);
  4902. bool LoadJSON(const JSONValue&);
  4903. bool LoadXML(const XMLElement&);
  4904. void MarkNetworkUpdate();
  4905. operator Object() const;
  4906. void OnEvent(Object, StringHash, VariantMap&);
  4907. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4908. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4909. void OnSetEnabled();
  4910. void PrepareNetworkUpdate();
  4911. bool ReadDeltaUpdate(Deserializer&);
  4912. bool ReadLatestDataUpdate(Deserializer&);
  4913. operator RefCounted() const;
  4914. int Refs() const;
  4915. void ReleaseFixture();
  4916. void Remove();
  4917. void RemoveAttributeAnimation(const String&);
  4918. void RemoveInstanceDefault();
  4919. void RemoveObjectAnimation();
  4920. void ResetToDefault();
  4921. bool Save(Serializer&) const;
  4922. bool SaveDefaultAttributes() const;
  4923. bool SaveJSON(JSONValue&) const;
  4924. bool SaveXML(XMLElement&) const;
  4925. void SendEvent(StringHash);
  4926. void SendEvent(StringHash, VariantMap&);
  4927. operator Serializable() const;
  4928. void SetAnimationEnabled(bool);
  4929. void SetAnimationTime(float);
  4930. bool SetAttribute(const String&, const Variant&);
  4931. bool SetAttribute(uint, const Variant&);
  4932. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4933. void SetAttributeAnimationSpeed(const String&, float);
  4934. void SetAttributeAnimationTime(const String&, float);
  4935. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4936. void SetBlockEvents(bool);
  4937. void SetCategoryBits(int);
  4938. void SetDensity(float);
  4939. void SetEnabled(bool);
  4940. void SetFriction(float);
  4941. void SetGlobalVar(StringHash, const Variant&);
  4942. void SetGroupIndex(int);
  4943. void SetInstanceDefault(bool);
  4944. void SetInterceptNetworkUpdate(const String&, bool);
  4945. void SetMaskBits(int);
  4946. void SetObjectAnimation(ObjectAnimation);
  4947. void SetObjectAnimationAttr(const ResourceRef&);
  4948. void SetRestitution(float);
  4949. void SetTemporary(bool);
  4950. void SetTrigger(bool);
  4951. const String& GetCategory() const;
  4952. const String& GetTypeName() const;
  4953. void UnsubscribeFromAllEvents();
  4954. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4955. void UnsubscribeFromEvent(Object, StringHash);
  4956. void UnsubscribeFromEvent(StringHash);
  4957. void UnsubscribeFromEvents(Object);
  4958. const Variant& GetGlobalVar(StringHash) const;
  4959. const VariantMap& GetGlobalVars() const;
  4960. int WeakRefs() const;
  4961. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4962. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4963. void WriteLatestDataUpdate(Serializer&, uint8);
  4964. operator const Animatable() const;
  4965. operator const CollisionBox2D() const;
  4966. operator const CollisionChain2D() const;
  4967. operator const CollisionCircle2D() const;
  4968. operator const CollisionEdge2D() const;
  4969. operator const CollisionPolygon2D() const;
  4970. operator const Component() const;
  4971. operator const Object() const;
  4972. operator const RefCounted() const;
  4973. operator const Serializable() const;
  4974. // Properties:
  4975. bool animationEnabled;
  4976. /* readonly */
  4977. Array<Variant> attributeDefaults;
  4978. /* readonly */
  4979. Array<AttributeInfo> attributeInfos;
  4980. Array<Variant> attributes;
  4981. /* readonly */
  4982. String category;
  4983. int categoryBits;
  4984. float density;
  4985. bool enabled;
  4986. /* readonly */
  4987. bool enabledEffective;
  4988. float friction;
  4989. Array<Variant> globalVar;
  4990. /* readonly */
  4991. VariantMap globalVars;
  4992. int groupIndex;
  4993. /* readonly */
  4994. uint id;
  4995. /* readonly */
  4996. float inertia;
  4997. int maskBits;
  4998. /* readonly */
  4999. float mass;
  5000. /* readonly */
  5001. Vector2 massCenter;
  5002. /* readonly */
  5003. Node node;
  5004. /* readonly */
  5005. uint numAttributes;
  5006. ObjectAnimation objectAnimation;
  5007. /* readonly */
  5008. int refs;
  5009. /* readonly */
  5010. bool replicated;
  5011. float restitution;
  5012. bool temporary;
  5013. bool trigger;
  5014. /* readonly */
  5015. StringHash type;
  5016. /* readonly */
  5017. String typeName;
  5018. /* readonly */
  5019. int weakRefs;
  5020. };
  5021. class Color
  5022. {
  5023. public:
  5024. Color();
  5025. Color(const Color&in);
  5026. Color(const Color&in, float);
  5027. Color(float, float, float);
  5028. Color(float, float, float, float);
  5029. Color(const Vector3&in);
  5030. Color(const Vector4&in);
  5031. Color(float[]&inout);
  5032. // Methods:
  5033. Color operator+(const Color&) const;
  5034. Color& operator+=(const Color&);
  5035. Color& operator=(const Color&);
  5036. bool operator==(const Color&) const;
  5037. Color Abs() const;
  5038. float Average() const;
  5039. float Chroma() const;
  5040. void Clip(bool = false);
  5041. bool Equals(const Color&) const;
  5042. void FromHSL(float, float, float, float = 1.0f);
  5043. void FromHSV(float, float, float, float = 1.0f);
  5044. void FromUInt(uint);
  5045. Color GammaToLinear() const;
  5046. float Hue() const;
  5047. void Invert(bool = false);
  5048. Color Lerp(const Color&, float) const;
  5049. float Lightness() const;
  5050. Color LinearToGamma() const;
  5051. float Luma() const;
  5052. float MaxRGB() const;
  5053. float MinRGB() const;
  5054. float Range() const;
  5055. float SaturationHSL() const;
  5056. float SaturationHSV() const;
  5057. float SumRGB() const;
  5058. Vector3 ToHSL() const;
  5059. Vector3 ToHSV() const;
  5060. uint ToHash() const;
  5061. String ToString() const;
  5062. uint ToUInt() const;
  5063. uint ToUIntArgb() const;
  5064. Vector3 ToVector3() const;
  5065. Vector4 ToVector4() const;
  5066. float Value() const;
  5067. // Properties:
  5068. float a;
  5069. float b;
  5070. /* readonly */
  5071. Array<float> data;
  5072. float g;
  5073. float r;
  5074. /* readonly */
  5075. Vector3 rgb;
  5076. /* readonly */
  5077. Vector4 rgba;
  5078. // Constants:
  5079. static const Color BLACK;
  5080. static const Color BLUE;
  5081. static const Color CYAN;
  5082. static const Color GRAY;
  5083. static const Color GREEN;
  5084. static const Color MAGENTA;
  5085. static const Color RED;
  5086. static const Color TRANSPARENT_BLACK;
  5087. static const Color WHITE;
  5088. static const Color YELLOW;
  5089. };
  5090. class ColorFrame
  5091. {
  5092. public:
  5093. // Methods:
  5094. ColorFrame& operator=(const ColorFrame&);
  5095. Color Interpolate(const ColorFrame&, float) const;
  5096. // Properties:
  5097. Color color;
  5098. float time;
  5099. };
  5100. class Component
  5101. {
  5102. public:
  5103. Component();
  5104. // Methods:
  5105. void AllocateNetworkState();
  5106. operator Animatable() const;
  5107. operator AnimatedModel() const;
  5108. operator AnimatedSprite2D() const;
  5109. operator AnimationController() const;
  5110. void ApplyAttributes();
  5111. operator BillboardSet() const;
  5112. operator Camera() const;
  5113. void CleanupConnection(Connection);
  5114. operator CollisionBox2D() const;
  5115. operator CollisionChain2D() const;
  5116. operator CollisionCircle2D() const;
  5117. operator CollisionEdge2D() const;
  5118. operator CollisionPolygon2D() const;
  5119. operator CollisionShape2D() const;
  5120. operator CollisionShape() const;
  5121. operator Constraint2D() const;
  5122. operator Constraint() const;
  5123. operator ConstraintDistance2D() const;
  5124. operator ConstraintFriction2D() const;
  5125. operator ConstraintGear2D() const;
  5126. operator ConstraintMotor2D() const;
  5127. operator ConstraintMouse2D() const;
  5128. operator ConstraintPrismatic2D() const;
  5129. operator ConstraintPulley2D() const;
  5130. operator ConstraintRevolute2D() const;
  5131. operator ConstraintRope2D() const;
  5132. operator ConstraintWeld2D() const;
  5133. operator ConstraintWheel2D() const;
  5134. operator CrowdAgent() const;
  5135. operator CrowdManager() const;
  5136. operator CustomGeometry() const;
  5137. operator DebugRenderer() const;
  5138. operator DecalSet() const;
  5139. void DrawDebugGeometry(DebugRenderer, bool);
  5140. operator Drawable2D() const;
  5141. operator Drawable() const;
  5142. operator DynamicNavigationMesh() const;
  5143. bool GetAnimationEnabled() const;
  5144. Variant GetAttribute(const String&) const;
  5145. Variant GetAttribute(uint) const;
  5146. ValueAnimation GetAttributeAnimation(const String&) const;
  5147. float GetAttributeAnimationSpeed(const String&) const;
  5148. float GetAttributeAnimationTime(const String&) const;
  5149. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5150. Variant GetAttributeDefault(const String&) const;
  5151. Variant GetAttributeDefault(uint) const;
  5152. bool GetBlockEvents() const;
  5153. Component GetComponent(StringHash) const;
  5154. VariantMap& GetEventDataMap() const;
  5155. Object GetEventSender() const;
  5156. uint GetID() const;
  5157. bool GetInterceptNetworkUpdate(const String&) const;
  5158. Node GetNode() const;
  5159. uint GetNumAttributes() const;
  5160. uint GetNumNetworkAttributes() const;
  5161. ObjectAnimation GetObjectAnimation() const;
  5162. ResourceRef GetObjectAnimationAttr() const;
  5163. Scene GetScene() const;
  5164. Object GetSubsystem(StringHash) const;
  5165. StringHash GetType() const;
  5166. bool HasEventHandlers() const;
  5167. bool HasSubscribedToEvent(Object, StringHash) const;
  5168. bool HasSubscribedToEvent(StringHash) const;
  5169. operator IKConstraint() const;
  5170. operator IKEffector() const;
  5171. operator IKSolver() const;
  5172. bool IsEnabled() const;
  5173. bool IsEnabledEffective() const;
  5174. bool IsInstanceOf(StringHash) const;
  5175. bool IsReplicated() const;
  5176. bool IsTemporary() const;
  5177. operator Light() const;
  5178. bool Load(Deserializer&);
  5179. bool LoadJSON(const JSONValue&);
  5180. bool LoadXML(const XMLElement&);
  5181. operator LogicComponent() const;
  5182. void MarkNetworkUpdate();
  5183. operator NavArea() const;
  5184. operator Navigable() const;
  5185. operator NavigationMesh() const;
  5186. operator NetworkPriority() const;
  5187. operator Object() const;
  5188. operator Obstacle() const;
  5189. operator Octree() const;
  5190. operator OffMeshConnection() const;
  5191. void OnEvent(Object, StringHash, VariantMap&);
  5192. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5193. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5194. void OnSetEnabled();
  5195. operator ParticleEmitter2D() const;
  5196. operator ParticleEmitter() const;
  5197. operator PhysicsWorld2D() const;
  5198. operator PhysicsWorld() const;
  5199. void PrepareNetworkUpdate();
  5200. operator RaycastVehicle() const;
  5201. bool ReadDeltaUpdate(Deserializer&);
  5202. bool ReadLatestDataUpdate(Deserializer&);
  5203. operator RefCounted() const;
  5204. int Refs() const;
  5205. void Remove();
  5206. void RemoveAttributeAnimation(const String&);
  5207. void RemoveInstanceDefault();
  5208. void RemoveObjectAnimation();
  5209. operator Renderer2D() const;
  5210. void ResetToDefault();
  5211. operator RibbonTrail() const;
  5212. operator RigidBody2D() const;
  5213. operator RigidBody() const;
  5214. bool Save(Serializer&) const;
  5215. bool SaveDefaultAttributes() const;
  5216. bool SaveJSON(JSONValue&) const;
  5217. bool SaveXML(XMLElement&) const;
  5218. operator ScriptInstance() const;
  5219. void SendEvent(StringHash);
  5220. void SendEvent(StringHash, VariantMap&);
  5221. operator Serializable() const;
  5222. void SetAnimationEnabled(bool);
  5223. void SetAnimationTime(float);
  5224. bool SetAttribute(const String&, const Variant&);
  5225. bool SetAttribute(uint, const Variant&);
  5226. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5227. void SetAttributeAnimationSpeed(const String&, float);
  5228. void SetAttributeAnimationTime(const String&, float);
  5229. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5230. void SetBlockEvents(bool);
  5231. void SetEnabled(bool);
  5232. void SetGlobalVar(StringHash, const Variant&);
  5233. void SetInstanceDefault(bool);
  5234. void SetInterceptNetworkUpdate(const String&, bool);
  5235. void SetObjectAnimation(ObjectAnimation);
  5236. void SetObjectAnimationAttr(const ResourceRef&);
  5237. void SetTemporary(bool);
  5238. operator Skybox() const;
  5239. operator SmoothedTransform() const;
  5240. operator SoundListener() const;
  5241. operator SoundSource3D() const;
  5242. operator SoundSource() const;
  5243. operator SplinePath() const;
  5244. operator StaticModel() const;
  5245. operator StaticModelGroup() const;
  5246. operator StaticSprite2D() const;
  5247. operator StretchableSprite2D() const;
  5248. const String& GetCategory() const;
  5249. const String& GetTypeName() const;
  5250. operator Terrain() const;
  5251. operator TerrainPatch() const;
  5252. operator Text3D() const;
  5253. operator TileMap2D() const;
  5254. operator TileMapLayer2D() const;
  5255. operator UIComponent() const;
  5256. operator UnknownComponent() const;
  5257. void UnsubscribeFromAllEvents();
  5258. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5259. void UnsubscribeFromEvent(Object, StringHash);
  5260. void UnsubscribeFromEvent(StringHash);
  5261. void UnsubscribeFromEvents(Object);
  5262. const Variant& GetGlobalVar(StringHash) const;
  5263. const VariantMap& GetGlobalVars() const;
  5264. int WeakRefs() const;
  5265. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  5266. void WriteInitialDeltaUpdate(Serializer&, uint8);
  5267. void WriteLatestDataUpdate(Serializer&, uint8);
  5268. operator Zone() const;
  5269. operator const Animatable() const;
  5270. operator const AnimatedModel() const;
  5271. operator const AnimatedSprite2D() const;
  5272. operator const AnimationController() const;
  5273. operator const BillboardSet() const;
  5274. operator const Camera() const;
  5275. operator const CollisionBox2D() const;
  5276. operator const CollisionChain2D() const;
  5277. operator const CollisionCircle2D() const;
  5278. operator const CollisionEdge2D() const;
  5279. operator const CollisionPolygon2D() const;
  5280. operator const CollisionShape2D() const;
  5281. operator const CollisionShape() const;
  5282. operator const Constraint2D() const;
  5283. operator const Constraint() const;
  5284. operator const ConstraintDistance2D() const;
  5285. operator const ConstraintFriction2D() const;
  5286. operator const ConstraintGear2D() const;
  5287. operator const ConstraintMotor2D() const;
  5288. operator const ConstraintMouse2D() const;
  5289. operator const ConstraintPrismatic2D() const;
  5290. operator const ConstraintPulley2D() const;
  5291. operator const ConstraintRevolute2D() const;
  5292. operator const ConstraintRope2D() const;
  5293. operator const ConstraintWeld2D() const;
  5294. operator const ConstraintWheel2D() const;
  5295. operator const CrowdAgent() const;
  5296. operator const CrowdManager() const;
  5297. operator const CustomGeometry() const;
  5298. operator const DebugRenderer() const;
  5299. operator const DecalSet() const;
  5300. operator const Drawable2D() const;
  5301. operator const Drawable() const;
  5302. operator const DynamicNavigationMesh() const;
  5303. operator const IKConstraint() const;
  5304. operator const IKEffector() const;
  5305. operator const IKSolver() const;
  5306. operator const Light() const;
  5307. operator const LogicComponent() const;
  5308. operator const NavArea() const;
  5309. operator const Navigable() const;
  5310. operator const NavigationMesh() const;
  5311. operator const NetworkPriority() const;
  5312. operator const Object() const;
  5313. operator const Obstacle() const;
  5314. operator const Octree() const;
  5315. operator const OffMeshConnection() const;
  5316. operator const ParticleEmitter2D() const;
  5317. operator const ParticleEmitter() const;
  5318. operator const PhysicsWorld2D() const;
  5319. operator const PhysicsWorld() const;
  5320. operator const RaycastVehicle() const;
  5321. operator const RefCounted() const;
  5322. operator const Renderer2D() const;
  5323. operator const RibbonTrail() const;
  5324. operator const RigidBody2D() const;
  5325. operator const RigidBody() const;
  5326. operator const ScriptInstance() const;
  5327. operator const Serializable() const;
  5328. operator const Skybox() const;
  5329. operator const SmoothedTransform() const;
  5330. operator const SoundListener() const;
  5331. operator const SoundSource3D() const;
  5332. operator const SoundSource() const;
  5333. operator const SplinePath() const;
  5334. operator const StaticModel() const;
  5335. operator const StaticModelGroup() const;
  5336. operator const StaticSprite2D() const;
  5337. operator const StretchableSprite2D() const;
  5338. operator const Terrain() const;
  5339. operator const TerrainPatch() const;
  5340. operator const Text3D() const;
  5341. operator const TileMap2D() const;
  5342. operator const TileMapLayer2D() const;
  5343. operator const UIComponent() const;
  5344. operator const UnknownComponent() const;
  5345. operator const Zone() const;
  5346. // Properties:
  5347. bool animationEnabled;
  5348. /* readonly */
  5349. Array<Variant> attributeDefaults;
  5350. /* readonly */
  5351. Array<AttributeInfo> attributeInfos;
  5352. Array<Variant> attributes;
  5353. /* readonly */
  5354. String category;
  5355. bool enabled;
  5356. /* readonly */
  5357. bool enabledEffective;
  5358. Array<Variant> globalVar;
  5359. /* readonly */
  5360. VariantMap globalVars;
  5361. /* readonly */
  5362. uint id;
  5363. /* readonly */
  5364. Node node;
  5365. /* readonly */
  5366. uint numAttributes;
  5367. ObjectAnimation objectAnimation;
  5368. /* readonly */
  5369. int refs;
  5370. /* readonly */
  5371. bool replicated;
  5372. bool temporary;
  5373. /* readonly */
  5374. StringHash type;
  5375. /* readonly */
  5376. String typeName;
  5377. /* readonly */
  5378. int weakRefs;
  5379. };
  5380. class ComponentReplicationState
  5381. {
  5382. public:
  5383. ~ComponentReplicationState();
  5384. ComponentReplicationState();
  5385. // Methods:
  5386. ComponentReplicationState& operator=(const ComponentReplicationState&);
  5387. // Properties:
  5388. DirtyBits dirtyAttributes;
  5389. };
  5390. class CompressedLevel
  5391. {
  5392. public:
  5393. ~CompressedLevel();
  5394. CompressedLevel();
  5395. // Methods:
  5396. CompressedLevel& operator=(const CompressedLevel&);
  5397. // Properties:
  5398. uint blockSize;
  5399. uint dataSize;
  5400. int depth;
  5401. CompressedFormat format;
  5402. int height;
  5403. uint rowSize;
  5404. uint rows;
  5405. int width;
  5406. };
  5407. class Condition
  5408. {
  5409. public:
  5410. ~Condition();
  5411. Condition();
  5412. // Methods:
  5413. Condition& operator=(const Condition&);
  5414. void Set();
  5415. void Wait();
  5416. };
  5417. class Connection
  5418. {
  5419. public:
  5420. // Methods:
  5421. void Ban();
  5422. void ConfigureNetworkSimulator(int, float);
  5423. const Controls& GetControls() const;
  5424. void Disconnect(int = 0);
  5425. String GetAddress() const;
  5426. bool GetBlockEvents() const;
  5427. float GetBytesInPerSec() const;
  5428. float GetBytesOutPerSec() const;
  5429. float GetDownloadProgress() const;
  5430. VariantMap& GetEventDataMap() const;
  5431. Object GetEventSender() const;
  5432. VariantMap& GetIdentity();
  5433. uint GetLastHeardTime() const;
  5434. bool GetLogStatistics() const;
  5435. uint GetNumDownloads() const;
  5436. PacketType GetPacketType(bool, bool);
  5437. int GetPacketsInPerSec() const;
  5438. int GetPacketsOutPerSec() const;
  5439. uint16 GetPort() const;
  5440. float GetRoundTripTime() const;
  5441. Scene GetScene() const;
  5442. Object GetSubsystem(StringHash) const;
  5443. uint8 GetTimeStamp() const;
  5444. StringHash GetType() const;
  5445. bool HasEventHandlers() const;
  5446. bool HasSubscribedToEvent(Object, StringHash) const;
  5447. bool HasSubscribedToEvent(StringHash) const;
  5448. bool IsClient() const;
  5449. bool IsConnectPending() const;
  5450. bool IsConnected() const;
  5451. bool IsInstanceOf(StringHash) const;
  5452. bool IsSceneLoaded() const;
  5453. operator Object() const;
  5454. void OnEvent(Object, StringHash, VariantMap&);
  5455. void ProcessPendingLatestData();
  5456. const Quaternion& GetRotation() const;
  5457. operator RefCounted() const;
  5458. int Refs() const;
  5459. void SendAllBuffers();
  5460. void SendBuffer(PacketType);
  5461. void SendClientUpdate();
  5462. void SendEvent(StringHash);
  5463. void SendEvent(StringHash, VariantMap&);
  5464. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  5465. void SendPackageToClient(PackageFile);
  5466. void SendPackages();
  5467. void SendRemoteEvent(Node, StringHash, bool, const VariantMap& = VariantMap ( ));
  5468. void SendRemoteEvent(StringHash, bool, const VariantMap& = VariantMap ( ));
  5469. void SendRemoteEvents();
  5470. void SendServerUpdate();
  5471. void SetBlockEvents(bool);
  5472. void SetConnectPending(bool);
  5473. void SetControls(const Controls&);
  5474. void SetGlobalVar(StringHash, const Variant&);
  5475. void SetIdentity(const VariantMap&);
  5476. void SetLogStatistics(bool);
  5477. void SetPacketSizeLimit(int);
  5478. void SetPosition(const Vector3&);
  5479. void SetRotation(const Quaternion&);
  5480. void SetScene(Scene);
  5481. const String& GetCategory() const;
  5482. const String& GetDownloadName() const;
  5483. const String& GetTypeName() const;
  5484. String ToString() const;
  5485. void UnsubscribeFromAllEvents();
  5486. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5487. void UnsubscribeFromEvent(Object, StringHash);
  5488. void UnsubscribeFromEvent(StringHash);
  5489. void UnsubscribeFromEvents(Object);
  5490. const Variant& GetGlobalVar(StringHash) const;
  5491. const VariantMap& GetGlobalVars() const;
  5492. const Vector3& GetPosition() const;
  5493. int WeakRefs() const;
  5494. operator const Object() const;
  5495. operator const RefCounted() const;
  5496. // Properties:
  5497. /* readonly */
  5498. String address;
  5499. /* readonly */
  5500. float bytesInPerSec;
  5501. /* readonly */
  5502. float bytesOutPerSec;
  5503. /* readonly */
  5504. String category;
  5505. /* readonly */
  5506. bool client;
  5507. /* readonly */
  5508. bool connectPending;
  5509. /* readonly */
  5510. bool connected;
  5511. Controls controls;
  5512. /* readonly */
  5513. String downloadName;
  5514. /* readonly */
  5515. float downloadProgress;
  5516. Array<Variant> globalVar;
  5517. /* readonly */
  5518. VariantMap globalVars;
  5519. VariantMap identity;
  5520. /* readonly */
  5521. uint lastHeardTime;
  5522. bool logStatistics;
  5523. /* readonly */
  5524. uint numDownloads;
  5525. /* readonly */
  5526. int packetsInPerSec;
  5527. /* readonly */
  5528. int packetsOutPerSec;
  5529. /* readonly */
  5530. uint16 port;
  5531. Vector3 position;
  5532. /* readonly */
  5533. int refs;
  5534. Quaternion rotation;
  5535. /* readonly */
  5536. float roundTripTime;
  5537. Scene scene;
  5538. /* readonly */
  5539. bool sceneLoaded;
  5540. uint8 timeStamp;
  5541. /* readonly */
  5542. StringHash type;
  5543. /* readonly */
  5544. String typeName;
  5545. /* readonly */
  5546. int weakRefs;
  5547. };
  5548. class Console
  5549. {
  5550. public:
  5551. Console();
  5552. // Methods:
  5553. void AddAutoComplete(const String&);
  5554. void CopySelectedRows() const;
  5555. BorderImage GetBackground() const;
  5556. bool GetBlockEvents() const;
  5557. Button GetCloseButton() const;
  5558. XMLFile GetDefaultStyle() const;
  5559. VariantMap& GetEventDataMap() const;
  5560. Object GetEventSender() const;
  5561. bool GetFocusOnShow() const;
  5562. uint GetHistoryPosition() const;
  5563. LineEdit GetLineEdit() const;
  5564. uint GetNumBufferedRows() const;
  5565. uint GetNumHistoryRows() const;
  5566. uint GetNumRows() const;
  5567. Object GetSubsystem(StringHash) const;
  5568. StringHash GetType() const;
  5569. bool HasEventHandlers() const;
  5570. bool HasSubscribedToEvent(Object, StringHash) const;
  5571. bool HasSubscribedToEvent(StringHash) const;
  5572. bool IsAutoVisibleOnError() const;
  5573. bool IsInstanceOf(StringHash) const;
  5574. bool IsVisible() const;
  5575. operator Object() const;
  5576. void OnEvent(Object, StringHash, VariantMap&);
  5577. operator RefCounted() const;
  5578. int Refs() const;
  5579. void RemoveAutoComplete(const String&);
  5580. void SendEvent(StringHash);
  5581. void SendEvent(StringHash, VariantMap&);
  5582. void SetAutoVisibleOnError(bool);
  5583. void SetBlockEvents(bool);
  5584. void SetCommandInterpreter(const String&);
  5585. void SetDefaultStyle(XMLFile);
  5586. void SetFocusOnShow(bool);
  5587. void SetGlobalVar(StringHash, const Variant&);
  5588. void SetNumBufferedRows(uint);
  5589. void SetNumHistoryRows(uint);
  5590. void SetNumRows(uint);
  5591. void SetVisible(bool);
  5592. const String& GetCategory() const;
  5593. const String& GetCommandInterpreter() const;
  5594. const String& GetHistoryRow(uint) const;
  5595. const String& GetTypeName() const;
  5596. void Toggle();
  5597. void UnsubscribeFromAllEvents();
  5598. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5599. void UnsubscribeFromEvent(Object, StringHash);
  5600. void UnsubscribeFromEvent(StringHash);
  5601. void UnsubscribeFromEvents(Object);
  5602. void UpdateElements();
  5603. const Variant& GetGlobalVar(StringHash) const;
  5604. const VariantMap& GetGlobalVars() const;
  5605. int WeakRefs() const;
  5606. operator const Object() const;
  5607. operator const RefCounted() const;
  5608. // Properties:
  5609. bool autoVisibleOnError;
  5610. /* readonly */
  5611. BorderImage background;
  5612. /* readonly */
  5613. String category;
  5614. /* readonly */
  5615. Button closeButton;
  5616. String commandInterpreter;
  5617. XMLFile defaultStyle;
  5618. bool focusOnShow;
  5619. Array<Variant> globalVar;
  5620. /* readonly */
  5621. VariantMap globalVars;
  5622. /* readonly */
  5623. uint historyPosition;
  5624. /* readonly */
  5625. Array<String> historyRow;
  5626. /* readonly */
  5627. LineEdit lineEdit;
  5628. uint numBufferedRows;
  5629. uint numHistoryRows;
  5630. uint numRows;
  5631. /* readonly */
  5632. int refs;
  5633. /* readonly */
  5634. StringHash type;
  5635. /* readonly */
  5636. String typeName;
  5637. bool visible;
  5638. /* readonly */
  5639. int weakRefs;
  5640. };
  5641. class ConstantBuffer
  5642. {
  5643. public:
  5644. ConstantBuffer();
  5645. // Methods:
  5646. void Apply();
  5647. void ClearDataLost();
  5648. bool GetBlockEvents() const;
  5649. VariantMap& GetEventDataMap() const;
  5650. Object GetEventSender() const;
  5651. uint GetGPUObjectName() const;
  5652. Graphics GetGraphics() const;
  5653. uint GetSize() const;
  5654. Object GetSubsystem(StringHash) const;
  5655. StringHash GetType() const;
  5656. bool HasEventHandlers() const;
  5657. bool HasPendingData() const;
  5658. bool HasSubscribedToEvent(Object, StringHash) const;
  5659. bool HasSubscribedToEvent(StringHash) const;
  5660. bool IsDataLost() const;
  5661. bool IsDirty() const;
  5662. bool IsInstanceOf(StringHash) const;
  5663. operator Object() const;
  5664. void OnDeviceLost();
  5665. void OnDeviceReset();
  5666. void OnEvent(Object, StringHash, VariantMap&);
  5667. operator RefCounted() const;
  5668. int Refs() const;
  5669. void Release();
  5670. void SendEvent(StringHash);
  5671. void SendEvent(StringHash, VariantMap&);
  5672. void SetBlockEvents(bool);
  5673. void SetGlobalVar(StringHash, const Variant&);
  5674. bool SetSize(uint);
  5675. const String& GetCategory() const;
  5676. const String& GetTypeName() const;
  5677. void UnsubscribeFromAllEvents();
  5678. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5679. void UnsubscribeFromEvent(Object, StringHash);
  5680. void UnsubscribeFromEvent(StringHash);
  5681. void UnsubscribeFromEvents(Object);
  5682. const Variant& GetGlobalVar(StringHash) const;
  5683. const VariantMap& GetGlobalVars() const;
  5684. int WeakRefs() const;
  5685. operator const Object() const;
  5686. operator const RefCounted() const;
  5687. // Properties:
  5688. /* readonly */
  5689. String category;
  5690. /* readonly */
  5691. bool dataLost;
  5692. Array<Variant> globalVar;
  5693. /* readonly */
  5694. VariantMap globalVars;
  5695. /* readonly */
  5696. int refs;
  5697. /* readonly */
  5698. StringHash type;
  5699. /* readonly */
  5700. String typeName;
  5701. /* readonly */
  5702. int weakRefs;
  5703. };
  5704. class Constraint
  5705. {
  5706. public:
  5707. Constraint();
  5708. // Methods:
  5709. void AllocateNetworkState();
  5710. operator Animatable() const;
  5711. void ApplyAttributes();
  5712. void ApplyFrames();
  5713. void CleanupConnection(Connection);
  5714. operator Component() const;
  5715. void DrawDebugGeometry(DebugRenderer, bool);
  5716. bool GetAnimationEnabled() const;
  5717. Variant GetAttribute(const String&) const;
  5718. Variant GetAttribute(uint) const;
  5719. ValueAnimation GetAttributeAnimation(const String&) const;
  5720. float GetAttributeAnimationSpeed(const String&) const;
  5721. float GetAttributeAnimationTime(const String&) const;
  5722. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5723. Variant GetAttributeDefault(const String&) const;
  5724. Variant GetAttributeDefault(uint) const;
  5725. bool GetBlockEvents() const;
  5726. float GetCFM() const;
  5727. Component GetComponent(StringHash) const;
  5728. ConstraintType GetConstraintType() const;
  5729. bool GetDisableCollision() const;
  5730. float GetERP() const;
  5731. VariantMap& GetEventDataMap() const;
  5732. Object GetEventSender() const;
  5733. uint GetID() const;
  5734. bool GetInterceptNetworkUpdate(const String&) const;
  5735. Node GetNode() const;
  5736. uint GetNumAttributes() const;
  5737. uint GetNumNetworkAttributes() const;
  5738. ObjectAnimation GetObjectAnimation() const;
  5739. ResourceRef GetObjectAnimationAttr() const;
  5740. RigidBody GetOtherBody() const;
  5741. RigidBody GetOwnBody() const;
  5742. PhysicsWorld GetPhysicsWorld() const;
  5743. Scene GetScene() const;
  5744. Object GetSubsystem(StringHash) const;
  5745. StringHash GetType() const;
  5746. Vector3 GetWorldPosition() const;
  5747. bool HasEventHandlers() const;
  5748. bool HasSubscribedToEvent(Object, StringHash) const;
  5749. bool HasSubscribedToEvent(StringHash) const;
  5750. bool IsEnabled() const;
  5751. bool IsEnabledEffective() const;
  5752. bool IsInstanceOf(StringHash) const;
  5753. bool IsReplicated() const;
  5754. bool IsTemporary() const;
  5755. bool Load(Deserializer&);
  5756. bool LoadJSON(const JSONValue&);
  5757. bool LoadXML(const XMLElement&);
  5758. void MarkNetworkUpdate();
  5759. operator Object() const;
  5760. void OnEvent(Object, StringHash, VariantMap&);
  5761. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5762. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5763. void OnSetEnabled();
  5764. void PrepareNetworkUpdate();
  5765. const Quaternion& GetOtherRotation() const;
  5766. const Quaternion& GetRotation() const;
  5767. bool ReadDeltaUpdate(Deserializer&);
  5768. bool ReadLatestDataUpdate(Deserializer&);
  5769. operator RefCounted() const;
  5770. int Refs() const;
  5771. void ReleaseConstraint();
  5772. void Remove();
  5773. void RemoveAttributeAnimation(const String&);
  5774. void RemoveInstanceDefault();
  5775. void RemoveObjectAnimation();
  5776. void ResetToDefault();
  5777. bool Save(Serializer&) const;
  5778. bool SaveDefaultAttributes() const;
  5779. bool SaveJSON(JSONValue&) const;
  5780. bool SaveXML(XMLElement&) const;
  5781. void SendEvent(StringHash);
  5782. void SendEvent(StringHash, VariantMap&);
  5783. operator Serializable() const;
  5784. void SetAnimationEnabled(bool);
  5785. void SetAnimationTime(float);
  5786. bool SetAttribute(const String&, const Variant&);
  5787. bool SetAttribute(uint, const Variant&);
  5788. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5789. void SetAttributeAnimationSpeed(const String&, float);
  5790. void SetAttributeAnimationTime(const String&, float);
  5791. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5792. void SetAxis(const Vector3&);
  5793. void SetBlockEvents(bool);
  5794. void SetCFM(float);
  5795. void SetConstraintType(ConstraintType);
  5796. void SetDisableCollision(bool);
  5797. void SetERP(float);
  5798. void SetEnabled(bool);
  5799. void SetGlobalVar(StringHash, const Variant&);
  5800. void SetHighLimit(const Vector2&);
  5801. void SetInstanceDefault(bool);
  5802. void SetInterceptNetworkUpdate(const String&, bool);
  5803. void SetLowLimit(const Vector2&);
  5804. void SetObjectAnimation(ObjectAnimation);
  5805. void SetObjectAnimationAttr(const ResourceRef&);
  5806. void SetOtherAxis(const Vector3&);
  5807. void SetOtherBody(RigidBody);
  5808. void SetOtherPosition(const Vector3&);
  5809. void SetOtherRotation(const Quaternion&);
  5810. void SetPosition(const Vector3&);
  5811. void SetRotation(const Quaternion&);
  5812. void SetTemporary(bool);
  5813. void SetWorldPosition(const Vector3&);
  5814. const String& GetCategory() const;
  5815. const String& GetTypeName() const;
  5816. void UnsubscribeFromAllEvents();
  5817. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5818. void UnsubscribeFromEvent(Object, StringHash);
  5819. void UnsubscribeFromEvent(StringHash);
  5820. void UnsubscribeFromEvents(Object);
  5821. const Variant& GetGlobalVar(StringHash) const;
  5822. const VariantMap& GetGlobalVars() const;
  5823. const Vector2& GetHighLimit() const;
  5824. const Vector2& GetLowLimit() const;
  5825. const Vector3& GetOtherPosition() const;
  5826. const Vector3& GetPosition() const;
  5827. int WeakRefs() const;
  5828. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  5829. void WriteInitialDeltaUpdate(Serializer&, uint8);
  5830. void WriteLatestDataUpdate(Serializer&, uint8);
  5831. operator const Animatable() const;
  5832. operator const Component() const;
  5833. operator const Object() const;
  5834. operator const RefCounted() const;
  5835. operator const Serializable() const;
  5836. // Properties:
  5837. bool animationEnabled;
  5838. /* readonly */
  5839. Array<Variant> attributeDefaults;
  5840. /* readonly */
  5841. Array<AttributeInfo> attributeInfos;
  5842. Array<Variant> attributes;
  5843. /* writeonly */
  5844. Vector3 axis;
  5845. /* readonly */
  5846. String category;
  5847. float cfm;
  5848. ConstraintType constraintType;
  5849. bool disableCollision;
  5850. bool enabled;
  5851. /* readonly */
  5852. bool enabledEffective;
  5853. float erp;
  5854. Array<Variant> globalVar;
  5855. /* readonly */
  5856. VariantMap globalVars;
  5857. Vector2 highLimit;
  5858. /* readonly */
  5859. uint id;
  5860. Vector2 lowLimit;
  5861. /* readonly */
  5862. Node node;
  5863. /* readonly */
  5864. uint numAttributes;
  5865. ObjectAnimation objectAnimation;
  5866. /* writeonly */
  5867. Vector3 otherAxis;
  5868. RigidBody otherBody;
  5869. Vector3 otherPosition;
  5870. Quaternion otherRotation;
  5871. /* readonly */
  5872. RigidBody ownBody;
  5873. Vector3 position;
  5874. /* readonly */
  5875. int refs;
  5876. /* readonly */
  5877. bool replicated;
  5878. Quaternion rotation;
  5879. bool temporary;
  5880. /* readonly */
  5881. StringHash type;
  5882. /* readonly */
  5883. String typeName;
  5884. /* readonly */
  5885. int weakRefs;
  5886. Vector3 worldPosition;
  5887. };
  5888. class Constraint2D
  5889. {
  5890. public:
  5891. Constraint2D();
  5892. // Methods:
  5893. void AllocateNetworkState();
  5894. operator Animatable() const;
  5895. void ApplyAttributes();
  5896. void CleanupConnection(Connection);
  5897. operator Component() const;
  5898. operator ConstraintDistance2D() const;
  5899. operator ConstraintFriction2D() const;
  5900. operator ConstraintGear2D() const;
  5901. operator ConstraintMotor2D() const;
  5902. operator ConstraintMouse2D() const;
  5903. operator ConstraintPrismatic2D() const;
  5904. operator ConstraintPulley2D() const;
  5905. operator ConstraintRevolute2D() const;
  5906. operator ConstraintRope2D() const;
  5907. operator ConstraintWeld2D() const;
  5908. operator ConstraintWheel2D() const;
  5909. void CreateJoint();
  5910. void DrawDebugGeometry(DebugRenderer, bool);
  5911. bool GetAnimationEnabled() const;
  5912. Constraint2D GetAttachedConstraint() const;
  5913. Variant GetAttribute(const String&) const;
  5914. Variant GetAttribute(uint) const;
  5915. ValueAnimation GetAttributeAnimation(const String&) const;
  5916. float GetAttributeAnimationSpeed(const String&) const;
  5917. float GetAttributeAnimationTime(const String&) const;
  5918. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5919. Variant GetAttributeDefault(const String&) const;
  5920. Variant GetAttributeDefault(uint) const;
  5921. bool GetBlockEvents() const;
  5922. bool GetCollideConnected() const;
  5923. Component GetComponent(StringHash) const;
  5924. VariantMap& GetEventDataMap() const;
  5925. Object GetEventSender() const;
  5926. uint GetID() const;
  5927. bool GetInterceptNetworkUpdate(const String&) const;
  5928. Node GetNode() const;
  5929. uint GetNumAttributes() const;
  5930. uint GetNumNetworkAttributes() const;
  5931. ObjectAnimation GetObjectAnimation() const;
  5932. ResourceRef GetObjectAnimationAttr() const;
  5933. RigidBody2D GetOtherBody() const;
  5934. RigidBody2D GetOwnerBody() const;
  5935. Scene GetScene() const;
  5936. Object GetSubsystem(StringHash) const;
  5937. StringHash GetType() const;
  5938. bool HasEventHandlers() const;
  5939. bool HasSubscribedToEvent(Object, StringHash) const;
  5940. bool HasSubscribedToEvent(StringHash) const;
  5941. bool IsEnabled() const;
  5942. bool IsEnabledEffective() const;
  5943. bool IsInstanceOf(StringHash) const;
  5944. bool IsReplicated() const;
  5945. bool IsTemporary() const;
  5946. bool Load(Deserializer&);
  5947. bool LoadJSON(const JSONValue&);
  5948. bool LoadXML(const XMLElement&);
  5949. void MarkNetworkUpdate();
  5950. operator Object() const;
  5951. void OnEvent(Object, StringHash, VariantMap&);
  5952. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5953. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5954. void OnSetEnabled();
  5955. void PrepareNetworkUpdate();
  5956. bool ReadDeltaUpdate(Deserializer&);
  5957. bool ReadLatestDataUpdate(Deserializer&);
  5958. operator RefCounted() const;
  5959. int Refs() const;
  5960. void ReleaseJoint();
  5961. void Remove();
  5962. void RemoveAttributeAnimation(const String&);
  5963. void RemoveInstanceDefault();
  5964. void RemoveObjectAnimation();
  5965. void ResetToDefault();
  5966. bool Save(Serializer&) const;
  5967. bool SaveDefaultAttributes() const;
  5968. bool SaveJSON(JSONValue&) const;
  5969. bool SaveXML(XMLElement&) const;
  5970. void SendEvent(StringHash);
  5971. void SendEvent(StringHash, VariantMap&);
  5972. operator Serializable() const;
  5973. void SetAnimationEnabled(bool);
  5974. void SetAnimationTime(float);
  5975. void SetAttachedConstraint(Constraint2D);
  5976. bool SetAttribute(const String&, const Variant&);
  5977. bool SetAttribute(uint, const Variant&);
  5978. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5979. void SetAttributeAnimationSpeed(const String&, float);
  5980. void SetAttributeAnimationTime(const String&, float);
  5981. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5982. void SetBlockEvents(bool);
  5983. void SetCollideConnected(bool);
  5984. void SetEnabled(bool);
  5985. void SetGlobalVar(StringHash, const Variant&);
  5986. void SetInstanceDefault(bool);
  5987. void SetInterceptNetworkUpdate(const String&, bool);
  5988. void SetObjectAnimation(ObjectAnimation);
  5989. void SetObjectAnimationAttr(const ResourceRef&);
  5990. void SetOtherBody(RigidBody2D);
  5991. void SetTemporary(bool);
  5992. const String& GetCategory() const;
  5993. const String& GetTypeName() const;
  5994. void UnsubscribeFromAllEvents();
  5995. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5996. void UnsubscribeFromEvent(Object, StringHash);
  5997. void UnsubscribeFromEvent(StringHash);
  5998. void UnsubscribeFromEvents(Object);
  5999. const Variant& GetGlobalVar(StringHash) const;
  6000. const VariantMap& GetGlobalVars() const;
  6001. int WeakRefs() const;
  6002. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6003. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6004. void WriteLatestDataUpdate(Serializer&, uint8);
  6005. operator const Animatable() const;
  6006. operator const Component() const;
  6007. operator const ConstraintDistance2D() const;
  6008. operator const ConstraintFriction2D() const;
  6009. operator const ConstraintGear2D() const;
  6010. operator const ConstraintMotor2D() const;
  6011. operator const ConstraintMouse2D() const;
  6012. operator const ConstraintPrismatic2D() const;
  6013. operator const ConstraintPulley2D() const;
  6014. operator const ConstraintRevolute2D() const;
  6015. operator const ConstraintRope2D() const;
  6016. operator const ConstraintWeld2D() const;
  6017. operator const ConstraintWheel2D() const;
  6018. operator const Object() const;
  6019. operator const RefCounted() const;
  6020. operator const Serializable() const;
  6021. // Properties:
  6022. bool animationEnabled;
  6023. /* readonly */
  6024. Array<Variant> attributeDefaults;
  6025. /* readonly */
  6026. Array<AttributeInfo> attributeInfos;
  6027. Array<Variant> attributes;
  6028. /* readonly */
  6029. String category;
  6030. bool collideConnected;
  6031. bool enabled;
  6032. /* readonly */
  6033. bool enabledEffective;
  6034. Array<Variant> globalVar;
  6035. /* readonly */
  6036. VariantMap globalVars;
  6037. /* readonly */
  6038. uint id;
  6039. /* readonly */
  6040. Node node;
  6041. /* readonly */
  6042. uint numAttributes;
  6043. ObjectAnimation objectAnimation;
  6044. RigidBody2D otherBody;
  6045. /* readonly */
  6046. RigidBody2D ownerBody;
  6047. /* readonly */
  6048. int refs;
  6049. /* readonly */
  6050. bool replicated;
  6051. bool temporary;
  6052. /* readonly */
  6053. StringHash type;
  6054. /* readonly */
  6055. String typeName;
  6056. /* readonly */
  6057. int weakRefs;
  6058. };
  6059. class ConstraintDistance2D
  6060. {
  6061. public:
  6062. ConstraintDistance2D();
  6063. // Methods:
  6064. void AllocateNetworkState();
  6065. operator Animatable() const;
  6066. void ApplyAttributes();
  6067. void CleanupConnection(Connection);
  6068. operator Component() const;
  6069. operator Constraint2D() const;
  6070. void CreateJoint();
  6071. void DrawDebugGeometry(DebugRenderer, bool);
  6072. bool GetAnimationEnabled() const;
  6073. Constraint2D GetAttachedConstraint() const;
  6074. Variant GetAttribute(const String&) const;
  6075. Variant GetAttribute(uint) const;
  6076. ValueAnimation GetAttributeAnimation(const String&) const;
  6077. float GetAttributeAnimationSpeed(const String&) const;
  6078. float GetAttributeAnimationTime(const String&) const;
  6079. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6080. Variant GetAttributeDefault(const String&) const;
  6081. Variant GetAttributeDefault(uint) const;
  6082. bool GetBlockEvents() const;
  6083. bool GetCollideConnected() const;
  6084. Component GetComponent(StringHash) const;
  6085. float GetDampingRatio() const;
  6086. VariantMap& GetEventDataMap() const;
  6087. Object GetEventSender() const;
  6088. float GetFrequencyHz() const;
  6089. uint GetID() const;
  6090. bool GetInterceptNetworkUpdate(const String&) const;
  6091. float GetLength() const;
  6092. Node GetNode() const;
  6093. uint GetNumAttributes() const;
  6094. uint GetNumNetworkAttributes() const;
  6095. ObjectAnimation GetObjectAnimation() const;
  6096. ResourceRef GetObjectAnimationAttr() const;
  6097. RigidBody2D GetOtherBody() const;
  6098. RigidBody2D GetOwnerBody() const;
  6099. Scene GetScene() const;
  6100. Object GetSubsystem(StringHash) const;
  6101. StringHash GetType() const;
  6102. bool HasEventHandlers() const;
  6103. bool HasSubscribedToEvent(Object, StringHash) const;
  6104. bool HasSubscribedToEvent(StringHash) const;
  6105. bool IsEnabled() const;
  6106. bool IsEnabledEffective() const;
  6107. bool IsInstanceOf(StringHash) const;
  6108. bool IsReplicated() const;
  6109. bool IsTemporary() const;
  6110. bool Load(Deserializer&);
  6111. bool LoadJSON(const JSONValue&);
  6112. bool LoadXML(const XMLElement&);
  6113. void MarkNetworkUpdate();
  6114. operator Object() const;
  6115. void OnEvent(Object, StringHash, VariantMap&);
  6116. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6117. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6118. void OnSetEnabled();
  6119. void PrepareNetworkUpdate();
  6120. bool ReadDeltaUpdate(Deserializer&);
  6121. bool ReadLatestDataUpdate(Deserializer&);
  6122. operator RefCounted() const;
  6123. int Refs() const;
  6124. void ReleaseJoint();
  6125. void Remove();
  6126. void RemoveAttributeAnimation(const String&);
  6127. void RemoveInstanceDefault();
  6128. void RemoveObjectAnimation();
  6129. void ResetToDefault();
  6130. bool Save(Serializer&) const;
  6131. bool SaveDefaultAttributes() const;
  6132. bool SaveJSON(JSONValue&) const;
  6133. bool SaveXML(XMLElement&) const;
  6134. void SendEvent(StringHash);
  6135. void SendEvent(StringHash, VariantMap&);
  6136. operator Serializable() const;
  6137. void SetAnimationEnabled(bool);
  6138. void SetAnimationTime(float);
  6139. void SetAttachedConstraint(Constraint2D);
  6140. bool SetAttribute(const String&, const Variant&);
  6141. bool SetAttribute(uint, const Variant&);
  6142. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6143. void SetAttributeAnimationSpeed(const String&, float);
  6144. void SetAttributeAnimationTime(const String&, float);
  6145. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6146. void SetBlockEvents(bool);
  6147. void SetCollideConnected(bool);
  6148. void SetDampingRatio(float);
  6149. void SetEnabled(bool);
  6150. void SetFrequencyHz(float);
  6151. void SetGlobalVar(StringHash, const Variant&);
  6152. void SetInstanceDefault(bool);
  6153. void SetInterceptNetworkUpdate(const String&, bool);
  6154. void SetLength(float);
  6155. void SetObjectAnimation(ObjectAnimation);
  6156. void SetObjectAnimationAttr(const ResourceRef&);
  6157. void SetOtherBody(RigidBody2D);
  6158. void SetOtherBodyAnchor(const Vector2&);
  6159. void SetOwnerBodyAnchor(const Vector2&);
  6160. void SetTemporary(bool);
  6161. const String& GetCategory() const;
  6162. const String& GetTypeName() const;
  6163. void UnsubscribeFromAllEvents();
  6164. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6165. void UnsubscribeFromEvent(Object, StringHash);
  6166. void UnsubscribeFromEvent(StringHash);
  6167. void UnsubscribeFromEvents(Object);
  6168. const Variant& GetGlobalVar(StringHash) const;
  6169. const VariantMap& GetGlobalVars() const;
  6170. const Vector2& GetOtherBodyAnchor() const;
  6171. const Vector2& GetOwnerBodyAnchor() const;
  6172. int WeakRefs() const;
  6173. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6174. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6175. void WriteLatestDataUpdate(Serializer&, uint8);
  6176. operator const Animatable() const;
  6177. operator const Component() const;
  6178. operator const Constraint2D() const;
  6179. operator const Object() const;
  6180. operator const RefCounted() const;
  6181. operator const Serializable() const;
  6182. // Properties:
  6183. bool animationEnabled;
  6184. /* readonly */
  6185. Array<Variant> attributeDefaults;
  6186. /* readonly */
  6187. Array<AttributeInfo> attributeInfos;
  6188. Array<Variant> attributes;
  6189. /* readonly */
  6190. String category;
  6191. bool collideConnected;
  6192. float dampingRatio;
  6193. bool enabled;
  6194. /* readonly */
  6195. bool enabledEffective;
  6196. float frequencyHz;
  6197. Array<Variant> globalVar;
  6198. /* readonly */
  6199. VariantMap globalVars;
  6200. /* readonly */
  6201. uint id;
  6202. float length;
  6203. /* readonly */
  6204. Node node;
  6205. /* readonly */
  6206. uint numAttributes;
  6207. ObjectAnimation objectAnimation;
  6208. RigidBody2D otherBody;
  6209. Vector2 otherBodyAnchor;
  6210. /* readonly */
  6211. RigidBody2D ownerBody;
  6212. Vector2 ownerBodyAnchor;
  6213. /* readonly */
  6214. int refs;
  6215. /* readonly */
  6216. bool replicated;
  6217. bool temporary;
  6218. /* readonly */
  6219. StringHash type;
  6220. /* readonly */
  6221. String typeName;
  6222. /* readonly */
  6223. int weakRefs;
  6224. };
  6225. class ConstraintFriction2D
  6226. {
  6227. public:
  6228. ConstraintFriction2D();
  6229. // Methods:
  6230. void AllocateNetworkState();
  6231. operator Animatable() const;
  6232. void ApplyAttributes();
  6233. void CleanupConnection(Connection);
  6234. operator Component() const;
  6235. operator Constraint2D() const;
  6236. void CreateJoint();
  6237. void DrawDebugGeometry(DebugRenderer, bool);
  6238. bool GetAnimationEnabled() const;
  6239. Constraint2D GetAttachedConstraint() const;
  6240. Variant GetAttribute(const String&) const;
  6241. Variant GetAttribute(uint) const;
  6242. ValueAnimation GetAttributeAnimation(const String&) const;
  6243. float GetAttributeAnimationSpeed(const String&) const;
  6244. float GetAttributeAnimationTime(const String&) const;
  6245. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6246. Variant GetAttributeDefault(const String&) const;
  6247. Variant GetAttributeDefault(uint) const;
  6248. bool GetBlockEvents() const;
  6249. bool GetCollideConnected() const;
  6250. Component GetComponent(StringHash) const;
  6251. VariantMap& GetEventDataMap() const;
  6252. Object GetEventSender() const;
  6253. uint GetID() const;
  6254. bool GetInterceptNetworkUpdate(const String&) const;
  6255. float GetMaxForce() const;
  6256. float GetMaxTorque() const;
  6257. Node GetNode() const;
  6258. uint GetNumAttributes() const;
  6259. uint GetNumNetworkAttributes() const;
  6260. ObjectAnimation GetObjectAnimation() const;
  6261. ResourceRef GetObjectAnimationAttr() const;
  6262. RigidBody2D GetOtherBody() const;
  6263. RigidBody2D GetOwnerBody() const;
  6264. Scene GetScene() const;
  6265. Object GetSubsystem(StringHash) const;
  6266. StringHash GetType() const;
  6267. bool HasEventHandlers() const;
  6268. bool HasSubscribedToEvent(Object, StringHash) const;
  6269. bool HasSubscribedToEvent(StringHash) const;
  6270. bool IsEnabled() const;
  6271. bool IsEnabledEffective() const;
  6272. bool IsInstanceOf(StringHash) const;
  6273. bool IsReplicated() const;
  6274. bool IsTemporary() const;
  6275. bool Load(Deserializer&);
  6276. bool LoadJSON(const JSONValue&);
  6277. bool LoadXML(const XMLElement&);
  6278. void MarkNetworkUpdate();
  6279. operator Object() const;
  6280. void OnEvent(Object, StringHash, VariantMap&);
  6281. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6282. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6283. void OnSetEnabled();
  6284. void PrepareNetworkUpdate();
  6285. bool ReadDeltaUpdate(Deserializer&);
  6286. bool ReadLatestDataUpdate(Deserializer&);
  6287. operator RefCounted() const;
  6288. int Refs() const;
  6289. void ReleaseJoint();
  6290. void Remove();
  6291. void RemoveAttributeAnimation(const String&);
  6292. void RemoveInstanceDefault();
  6293. void RemoveObjectAnimation();
  6294. void ResetToDefault();
  6295. bool Save(Serializer&) const;
  6296. bool SaveDefaultAttributes() const;
  6297. bool SaveJSON(JSONValue&) const;
  6298. bool SaveXML(XMLElement&) const;
  6299. void SendEvent(StringHash);
  6300. void SendEvent(StringHash, VariantMap&);
  6301. operator Serializable() const;
  6302. void SetAnchor(const Vector2&);
  6303. void SetAnimationEnabled(bool);
  6304. void SetAnimationTime(float);
  6305. void SetAttachedConstraint(Constraint2D);
  6306. bool SetAttribute(const String&, const Variant&);
  6307. bool SetAttribute(uint, const Variant&);
  6308. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6309. void SetAttributeAnimationSpeed(const String&, float);
  6310. void SetAttributeAnimationTime(const String&, float);
  6311. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6312. void SetBlockEvents(bool);
  6313. void SetCollideConnected(bool);
  6314. void SetEnabled(bool);
  6315. void SetGlobalVar(StringHash, const Variant&);
  6316. void SetInstanceDefault(bool);
  6317. void SetInterceptNetworkUpdate(const String&, bool);
  6318. void SetMaxForce(float);
  6319. void SetMaxTorque(float);
  6320. void SetObjectAnimation(ObjectAnimation);
  6321. void SetObjectAnimationAttr(const ResourceRef&);
  6322. void SetOtherBody(RigidBody2D);
  6323. void SetTemporary(bool);
  6324. const String& GetCategory() const;
  6325. const String& GetTypeName() const;
  6326. void UnsubscribeFromAllEvents();
  6327. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6328. void UnsubscribeFromEvent(Object, StringHash);
  6329. void UnsubscribeFromEvent(StringHash);
  6330. void UnsubscribeFromEvents(Object);
  6331. const Variant& GetGlobalVar(StringHash) const;
  6332. const VariantMap& GetGlobalVars() const;
  6333. const Vector2& GetAnchor() const;
  6334. int WeakRefs() const;
  6335. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6336. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6337. void WriteLatestDataUpdate(Serializer&, uint8);
  6338. operator const Animatable() const;
  6339. operator const Component() const;
  6340. operator const Constraint2D() const;
  6341. operator const Object() const;
  6342. operator const RefCounted() const;
  6343. operator const Serializable() const;
  6344. // Properties:
  6345. Vector2 anchor;
  6346. bool animationEnabled;
  6347. /* readonly */
  6348. Array<Variant> attributeDefaults;
  6349. /* readonly */
  6350. Array<AttributeInfo> attributeInfos;
  6351. Array<Variant> attributes;
  6352. /* readonly */
  6353. String category;
  6354. bool collideConnected;
  6355. bool enabled;
  6356. /* readonly */
  6357. bool enabledEffective;
  6358. Array<Variant> globalVar;
  6359. /* readonly */
  6360. VariantMap globalVars;
  6361. /* readonly */
  6362. uint id;
  6363. float maxForce;
  6364. float maxTorque;
  6365. /* readonly */
  6366. Node node;
  6367. /* readonly */
  6368. uint numAttributes;
  6369. ObjectAnimation objectAnimation;
  6370. RigidBody2D otherBody;
  6371. /* readonly */
  6372. RigidBody2D ownerBody;
  6373. /* readonly */
  6374. int refs;
  6375. /* readonly */
  6376. bool replicated;
  6377. bool temporary;
  6378. /* readonly */
  6379. StringHash type;
  6380. /* readonly */
  6381. String typeName;
  6382. /* readonly */
  6383. int weakRefs;
  6384. };
  6385. class ConstraintGear2D
  6386. {
  6387. public:
  6388. ConstraintGear2D();
  6389. // Methods:
  6390. void AllocateNetworkState();
  6391. operator Animatable() const;
  6392. void ApplyAttributes();
  6393. void CleanupConnection(Connection);
  6394. operator Component() const;
  6395. operator Constraint2D() const;
  6396. void CreateJoint();
  6397. void DrawDebugGeometry(DebugRenderer, bool);
  6398. bool GetAnimationEnabled() const;
  6399. Constraint2D GetAttachedConstraint() const;
  6400. Variant GetAttribute(const String&) const;
  6401. Variant GetAttribute(uint) const;
  6402. ValueAnimation GetAttributeAnimation(const String&) const;
  6403. float GetAttributeAnimationSpeed(const String&) const;
  6404. float GetAttributeAnimationTime(const String&) const;
  6405. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6406. Variant GetAttributeDefault(const String&) const;
  6407. Variant GetAttributeDefault(uint) const;
  6408. bool GetBlockEvents() const;
  6409. bool GetCollideConnected() const;
  6410. Component GetComponent(StringHash) const;
  6411. VariantMap& GetEventDataMap() const;
  6412. Object GetEventSender() const;
  6413. uint GetID() const;
  6414. bool GetInterceptNetworkUpdate(const String&) const;
  6415. Node GetNode() const;
  6416. uint GetNumAttributes() const;
  6417. uint GetNumNetworkAttributes() const;
  6418. ObjectAnimation GetObjectAnimation() const;
  6419. ResourceRef GetObjectAnimationAttr() const;
  6420. RigidBody2D GetOtherBody() const;
  6421. Constraint2D GetOtherConstraint() const;
  6422. RigidBody2D GetOwnerBody() const;
  6423. Constraint2D GetOwnerConstraint() const;
  6424. float GetRatio() const;
  6425. Scene GetScene() const;
  6426. Object GetSubsystem(StringHash) const;
  6427. StringHash GetType() const;
  6428. bool HasEventHandlers() const;
  6429. bool HasSubscribedToEvent(Object, StringHash) const;
  6430. bool HasSubscribedToEvent(StringHash) const;
  6431. bool IsEnabled() const;
  6432. bool IsEnabledEffective() const;
  6433. bool IsInstanceOf(StringHash) const;
  6434. bool IsReplicated() const;
  6435. bool IsTemporary() const;
  6436. bool Load(Deserializer&);
  6437. bool LoadJSON(const JSONValue&);
  6438. bool LoadXML(const XMLElement&);
  6439. void MarkNetworkUpdate();
  6440. operator Object() const;
  6441. void OnEvent(Object, StringHash, VariantMap&);
  6442. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6443. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6444. void OnSetEnabled();
  6445. void PrepareNetworkUpdate();
  6446. bool ReadDeltaUpdate(Deserializer&);
  6447. bool ReadLatestDataUpdate(Deserializer&);
  6448. operator RefCounted() const;
  6449. int Refs() const;
  6450. void ReleaseJoint();
  6451. void Remove();
  6452. void RemoveAttributeAnimation(const String&);
  6453. void RemoveInstanceDefault();
  6454. void RemoveObjectAnimation();
  6455. void ResetToDefault();
  6456. bool Save(Serializer&) const;
  6457. bool SaveDefaultAttributes() const;
  6458. bool SaveJSON(JSONValue&) const;
  6459. bool SaveXML(XMLElement&) const;
  6460. void SendEvent(StringHash);
  6461. void SendEvent(StringHash, VariantMap&);
  6462. operator Serializable() const;
  6463. void SetAnimationEnabled(bool);
  6464. void SetAnimationTime(float);
  6465. void SetAttachedConstraint(Constraint2D);
  6466. bool SetAttribute(const String&, const Variant&);
  6467. bool SetAttribute(uint, const Variant&);
  6468. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6469. void SetAttributeAnimationSpeed(const String&, float);
  6470. void SetAttributeAnimationTime(const String&, float);
  6471. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6472. void SetBlockEvents(bool);
  6473. void SetCollideConnected(bool);
  6474. void SetEnabled(bool);
  6475. void SetGlobalVar(StringHash, const Variant&);
  6476. void SetInstanceDefault(bool);
  6477. void SetInterceptNetworkUpdate(const String&, bool);
  6478. void SetObjectAnimation(ObjectAnimation);
  6479. void SetObjectAnimationAttr(const ResourceRef&);
  6480. void SetOtherBody(RigidBody2D);
  6481. void SetOtherConstraint(Constraint2D);
  6482. void SetOwnerConstraint(Constraint2D);
  6483. void SetRatio(float);
  6484. void SetTemporary(bool);
  6485. const String& GetCategory() const;
  6486. const String& GetTypeName() const;
  6487. void UnsubscribeFromAllEvents();
  6488. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6489. void UnsubscribeFromEvent(Object, StringHash);
  6490. void UnsubscribeFromEvent(StringHash);
  6491. void UnsubscribeFromEvents(Object);
  6492. const Variant& GetGlobalVar(StringHash) const;
  6493. const VariantMap& GetGlobalVars() const;
  6494. int WeakRefs() const;
  6495. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6496. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6497. void WriteLatestDataUpdate(Serializer&, uint8);
  6498. operator const Animatable() const;
  6499. operator const Component() const;
  6500. operator const Constraint2D() const;
  6501. operator const Object() const;
  6502. operator const RefCounted() const;
  6503. operator const Serializable() const;
  6504. // Properties:
  6505. bool animationEnabled;
  6506. /* readonly */
  6507. Array<Variant> attributeDefaults;
  6508. /* readonly */
  6509. Array<AttributeInfo> attributeInfos;
  6510. Array<Variant> attributes;
  6511. /* readonly */
  6512. String category;
  6513. bool collideConnected;
  6514. bool enabled;
  6515. /* readonly */
  6516. bool enabledEffective;
  6517. Array<Variant> globalVar;
  6518. /* readonly */
  6519. VariantMap globalVars;
  6520. /* readonly */
  6521. uint id;
  6522. /* readonly */
  6523. Node node;
  6524. /* readonly */
  6525. uint numAttributes;
  6526. ObjectAnimation objectAnimation;
  6527. RigidBody2D otherBody;
  6528. Constraint2D otherConstraint;
  6529. /* readonly */
  6530. RigidBody2D ownerBody;
  6531. Constraint2D ownerConstraint;
  6532. float ratio;
  6533. /* readonly */
  6534. int refs;
  6535. /* readonly */
  6536. bool replicated;
  6537. bool temporary;
  6538. /* readonly */
  6539. StringHash type;
  6540. /* readonly */
  6541. String typeName;
  6542. /* readonly */
  6543. int weakRefs;
  6544. };
  6545. class ConstraintMotor2D
  6546. {
  6547. public:
  6548. ConstraintMotor2D();
  6549. // Methods:
  6550. void AllocateNetworkState();
  6551. operator Animatable() const;
  6552. void ApplyAttributes();
  6553. void CleanupConnection(Connection);
  6554. operator Component() const;
  6555. operator Constraint2D() const;
  6556. void CreateJoint();
  6557. void DrawDebugGeometry(DebugRenderer, bool);
  6558. float GetAngularOffset() const;
  6559. bool GetAnimationEnabled() const;
  6560. Constraint2D GetAttachedConstraint() const;
  6561. Variant GetAttribute(const String&) const;
  6562. Variant GetAttribute(uint) const;
  6563. ValueAnimation GetAttributeAnimation(const String&) const;
  6564. float GetAttributeAnimationSpeed(const String&) const;
  6565. float GetAttributeAnimationTime(const String&) const;
  6566. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6567. Variant GetAttributeDefault(const String&) const;
  6568. Variant GetAttributeDefault(uint) const;
  6569. bool GetBlockEvents() const;
  6570. bool GetCollideConnected() const;
  6571. Component GetComponent(StringHash) const;
  6572. float GetCorrectionFactor() const;
  6573. VariantMap& GetEventDataMap() const;
  6574. Object GetEventSender() const;
  6575. uint GetID() const;
  6576. bool GetInterceptNetworkUpdate(const String&) const;
  6577. float GetMaxForce() const;
  6578. float GetMaxTorque() const;
  6579. Node GetNode() const;
  6580. uint GetNumAttributes() const;
  6581. uint GetNumNetworkAttributes() const;
  6582. ObjectAnimation GetObjectAnimation() const;
  6583. ResourceRef GetObjectAnimationAttr() const;
  6584. RigidBody2D GetOtherBody() const;
  6585. RigidBody2D GetOwnerBody() const;
  6586. Scene GetScene() const;
  6587. Object GetSubsystem(StringHash) const;
  6588. StringHash GetType() const;
  6589. bool HasEventHandlers() const;
  6590. bool HasSubscribedToEvent(Object, StringHash) const;
  6591. bool HasSubscribedToEvent(StringHash) const;
  6592. bool IsEnabled() const;
  6593. bool IsEnabledEffective() const;
  6594. bool IsInstanceOf(StringHash) const;
  6595. bool IsReplicated() const;
  6596. bool IsTemporary() const;
  6597. bool Load(Deserializer&);
  6598. bool LoadJSON(const JSONValue&);
  6599. bool LoadXML(const XMLElement&);
  6600. void MarkNetworkUpdate();
  6601. operator Object() const;
  6602. void OnEvent(Object, StringHash, VariantMap&);
  6603. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6604. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6605. void OnSetEnabled();
  6606. void PrepareNetworkUpdate();
  6607. bool ReadDeltaUpdate(Deserializer&);
  6608. bool ReadLatestDataUpdate(Deserializer&);
  6609. operator RefCounted() const;
  6610. int Refs() const;
  6611. void ReleaseJoint();
  6612. void Remove();
  6613. void RemoveAttributeAnimation(const String&);
  6614. void RemoveInstanceDefault();
  6615. void RemoveObjectAnimation();
  6616. void ResetToDefault();
  6617. bool Save(Serializer&) const;
  6618. bool SaveDefaultAttributes() const;
  6619. bool SaveJSON(JSONValue&) const;
  6620. bool SaveXML(XMLElement&) const;
  6621. void SendEvent(StringHash);
  6622. void SendEvent(StringHash, VariantMap&);
  6623. operator Serializable() const;
  6624. void SetAngularOffset(float);
  6625. void SetAnimationEnabled(bool);
  6626. void SetAnimationTime(float);
  6627. void SetAttachedConstraint(Constraint2D);
  6628. bool SetAttribute(const String&, const Variant&);
  6629. bool SetAttribute(uint, const Variant&);
  6630. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6631. void SetAttributeAnimationSpeed(const String&, float);
  6632. void SetAttributeAnimationTime(const String&, float);
  6633. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6634. void SetBlockEvents(bool);
  6635. void SetCollideConnected(bool);
  6636. void SetCorrectionFactor(float);
  6637. void SetEnabled(bool);
  6638. void SetGlobalVar(StringHash, const Variant&);
  6639. void SetInstanceDefault(bool);
  6640. void SetInterceptNetworkUpdate(const String&, bool);
  6641. void SetLinearOffset(const Vector2&);
  6642. void SetMaxForce(float);
  6643. void SetMaxTorque(float);
  6644. void SetObjectAnimation(ObjectAnimation);
  6645. void SetObjectAnimationAttr(const ResourceRef&);
  6646. void SetOtherBody(RigidBody2D);
  6647. void SetTemporary(bool);
  6648. const String& GetCategory() const;
  6649. const String& GetTypeName() const;
  6650. void UnsubscribeFromAllEvents();
  6651. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6652. void UnsubscribeFromEvent(Object, StringHash);
  6653. void UnsubscribeFromEvent(StringHash);
  6654. void UnsubscribeFromEvents(Object);
  6655. const Variant& GetGlobalVar(StringHash) const;
  6656. const VariantMap& GetGlobalVars() const;
  6657. const Vector2& GetLinearOffset() const;
  6658. int WeakRefs() const;
  6659. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6660. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6661. void WriteLatestDataUpdate(Serializer&, uint8);
  6662. operator const Animatable() const;
  6663. operator const Component() const;
  6664. operator const Constraint2D() const;
  6665. operator const Object() const;
  6666. operator const RefCounted() const;
  6667. operator const Serializable() const;
  6668. // Properties:
  6669. float angularOffset;
  6670. bool animationEnabled;
  6671. /* readonly */
  6672. Array<Variant> attributeDefaults;
  6673. /* readonly */
  6674. Array<AttributeInfo> attributeInfos;
  6675. Array<Variant> attributes;
  6676. /* readonly */
  6677. String category;
  6678. bool collideConnected;
  6679. float correctionFactor;
  6680. bool enabled;
  6681. /* readonly */
  6682. bool enabledEffective;
  6683. Array<Variant> globalVar;
  6684. /* readonly */
  6685. VariantMap globalVars;
  6686. /* readonly */
  6687. uint id;
  6688. Vector2 linearOffset;
  6689. float maxForce;
  6690. float maxTorque;
  6691. /* readonly */
  6692. Node node;
  6693. /* readonly */
  6694. uint numAttributes;
  6695. ObjectAnimation objectAnimation;
  6696. RigidBody2D otherBody;
  6697. /* readonly */
  6698. RigidBody2D ownerBody;
  6699. /* readonly */
  6700. int refs;
  6701. /* readonly */
  6702. bool replicated;
  6703. bool temporary;
  6704. /* readonly */
  6705. StringHash type;
  6706. /* readonly */
  6707. String typeName;
  6708. /* readonly */
  6709. int weakRefs;
  6710. };
  6711. class ConstraintMouse2D
  6712. {
  6713. public:
  6714. ConstraintMouse2D();
  6715. // Methods:
  6716. void AllocateNetworkState();
  6717. operator Animatable() const;
  6718. void ApplyAttributes();
  6719. void CleanupConnection(Connection);
  6720. operator Component() const;
  6721. operator Constraint2D() const;
  6722. void CreateJoint();
  6723. void DrawDebugGeometry(DebugRenderer, bool);
  6724. bool GetAnimationEnabled() const;
  6725. Constraint2D GetAttachedConstraint() const;
  6726. Variant GetAttribute(const String&) const;
  6727. Variant GetAttribute(uint) const;
  6728. ValueAnimation GetAttributeAnimation(const String&) const;
  6729. float GetAttributeAnimationSpeed(const String&) const;
  6730. float GetAttributeAnimationTime(const String&) const;
  6731. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6732. Variant GetAttributeDefault(const String&) const;
  6733. Variant GetAttributeDefault(uint) const;
  6734. bool GetBlockEvents() const;
  6735. bool GetCollideConnected() const;
  6736. Component GetComponent(StringHash) const;
  6737. float GetDampingRatio() const;
  6738. VariantMap& GetEventDataMap() const;
  6739. Object GetEventSender() const;
  6740. float GetFrequencyHz() const;
  6741. uint GetID() const;
  6742. bool GetInterceptNetworkUpdate(const String&) const;
  6743. float GetMaxForce() const;
  6744. Node GetNode() const;
  6745. uint GetNumAttributes() const;
  6746. uint GetNumNetworkAttributes() const;
  6747. ObjectAnimation GetObjectAnimation() const;
  6748. ResourceRef GetObjectAnimationAttr() const;
  6749. RigidBody2D GetOtherBody() const;
  6750. RigidBody2D GetOwnerBody() const;
  6751. Scene GetScene() const;
  6752. Object GetSubsystem(StringHash) const;
  6753. StringHash GetType() const;
  6754. bool HasEventHandlers() const;
  6755. bool HasSubscribedToEvent(Object, StringHash) const;
  6756. bool HasSubscribedToEvent(StringHash) const;
  6757. bool IsEnabled() const;
  6758. bool IsEnabledEffective() const;
  6759. bool IsInstanceOf(StringHash) const;
  6760. bool IsReplicated() const;
  6761. bool IsTemporary() const;
  6762. bool Load(Deserializer&);
  6763. bool LoadJSON(const JSONValue&);
  6764. bool LoadXML(const XMLElement&);
  6765. void MarkNetworkUpdate();
  6766. operator Object() const;
  6767. void OnEvent(Object, StringHash, VariantMap&);
  6768. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6769. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6770. void OnSetEnabled();
  6771. void PrepareNetworkUpdate();
  6772. bool ReadDeltaUpdate(Deserializer&);
  6773. bool ReadLatestDataUpdate(Deserializer&);
  6774. operator RefCounted() const;
  6775. int Refs() const;
  6776. void ReleaseJoint();
  6777. void Remove();
  6778. void RemoveAttributeAnimation(const String&);
  6779. void RemoveInstanceDefault();
  6780. void RemoveObjectAnimation();
  6781. void ResetToDefault();
  6782. bool Save(Serializer&) const;
  6783. bool SaveDefaultAttributes() const;
  6784. bool SaveJSON(JSONValue&) const;
  6785. bool SaveXML(XMLElement&) const;
  6786. void SendEvent(StringHash);
  6787. void SendEvent(StringHash, VariantMap&);
  6788. operator Serializable() const;
  6789. void SetAnimationEnabled(bool);
  6790. void SetAnimationTime(float);
  6791. void SetAttachedConstraint(Constraint2D);
  6792. bool SetAttribute(const String&, const Variant&);
  6793. bool SetAttribute(uint, const Variant&);
  6794. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6795. void SetAttributeAnimationSpeed(const String&, float);
  6796. void SetAttributeAnimationTime(const String&, float);
  6797. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6798. void SetBlockEvents(bool);
  6799. void SetCollideConnected(bool);
  6800. void SetDampingRatio(float);
  6801. void SetEnabled(bool);
  6802. void SetFrequencyHz(float);
  6803. void SetGlobalVar(StringHash, const Variant&);
  6804. void SetInstanceDefault(bool);
  6805. void SetInterceptNetworkUpdate(const String&, bool);
  6806. void SetMaxForce(float);
  6807. void SetObjectAnimation(ObjectAnimation);
  6808. void SetObjectAnimationAttr(const ResourceRef&);
  6809. void SetOtherBody(RigidBody2D);
  6810. void SetTarget(const Vector2&);
  6811. void SetTemporary(bool);
  6812. const String& GetCategory() const;
  6813. const String& GetTypeName() const;
  6814. void UnsubscribeFromAllEvents();
  6815. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6816. void UnsubscribeFromEvent(Object, StringHash);
  6817. void UnsubscribeFromEvent(StringHash);
  6818. void UnsubscribeFromEvents(Object);
  6819. const Variant& GetGlobalVar(StringHash) const;
  6820. const VariantMap& GetGlobalVars() const;
  6821. const Vector2& GetTarget() const;
  6822. int WeakRefs() const;
  6823. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6824. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6825. void WriteLatestDataUpdate(Serializer&, uint8);
  6826. operator const Animatable() const;
  6827. operator const Component() const;
  6828. operator const Constraint2D() const;
  6829. operator const Object() const;
  6830. operator const RefCounted() const;
  6831. operator const Serializable() const;
  6832. // Properties:
  6833. bool animationEnabled;
  6834. /* readonly */
  6835. Array<Variant> attributeDefaults;
  6836. /* readonly */
  6837. Array<AttributeInfo> attributeInfos;
  6838. Array<Variant> attributes;
  6839. /* readonly */
  6840. String category;
  6841. bool collideConnected;
  6842. float dampingRatio;
  6843. bool enabled;
  6844. /* readonly */
  6845. bool enabledEffective;
  6846. float frequencyHz;
  6847. Array<Variant> globalVar;
  6848. /* readonly */
  6849. VariantMap globalVars;
  6850. /* readonly */
  6851. uint id;
  6852. float maxForce;
  6853. /* readonly */
  6854. Node node;
  6855. /* readonly */
  6856. uint numAttributes;
  6857. ObjectAnimation objectAnimation;
  6858. RigidBody2D otherBody;
  6859. /* readonly */
  6860. RigidBody2D ownerBody;
  6861. /* readonly */
  6862. int refs;
  6863. /* readonly */
  6864. bool replicated;
  6865. Vector2 target;
  6866. bool temporary;
  6867. /* readonly */
  6868. StringHash type;
  6869. /* readonly */
  6870. String typeName;
  6871. /* readonly */
  6872. int weakRefs;
  6873. };
  6874. class ConstraintPrismatic2D
  6875. {
  6876. public:
  6877. ConstraintPrismatic2D();
  6878. // Methods:
  6879. void AllocateNetworkState();
  6880. operator Animatable() const;
  6881. void ApplyAttributes();
  6882. void CleanupConnection(Connection);
  6883. operator Component() const;
  6884. operator Constraint2D() const;
  6885. void CreateJoint();
  6886. void DrawDebugGeometry(DebugRenderer, bool);
  6887. bool GetAnimationEnabled() const;
  6888. Constraint2D GetAttachedConstraint() const;
  6889. Variant GetAttribute(const String&) const;
  6890. Variant GetAttribute(uint) const;
  6891. ValueAnimation GetAttributeAnimation(const String&) const;
  6892. float GetAttributeAnimationSpeed(const String&) const;
  6893. float GetAttributeAnimationTime(const String&) const;
  6894. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6895. Variant GetAttributeDefault(const String&) const;
  6896. Variant GetAttributeDefault(uint) const;
  6897. bool GetBlockEvents() const;
  6898. bool GetCollideConnected() const;
  6899. Component GetComponent(StringHash) const;
  6900. bool GetEnableLimit() const;
  6901. bool GetEnableMotor() const;
  6902. VariantMap& GetEventDataMap() const;
  6903. Object GetEventSender() const;
  6904. uint GetID() const;
  6905. bool GetInterceptNetworkUpdate(const String&) const;
  6906. float GetLowerTranslation() const;
  6907. float GetMaxMotorForce() const;
  6908. float GetMotorSpeed() const;
  6909. Node GetNode() const;
  6910. uint GetNumAttributes() const;
  6911. uint GetNumNetworkAttributes() const;
  6912. ObjectAnimation GetObjectAnimation() const;
  6913. ResourceRef GetObjectAnimationAttr() const;
  6914. RigidBody2D GetOtherBody() const;
  6915. RigidBody2D GetOwnerBody() const;
  6916. Scene GetScene() const;
  6917. Object GetSubsystem(StringHash) const;
  6918. StringHash GetType() const;
  6919. float GetUpperTranslation() const;
  6920. bool HasEventHandlers() const;
  6921. bool HasSubscribedToEvent(Object, StringHash) const;
  6922. bool HasSubscribedToEvent(StringHash) const;
  6923. bool IsEnabled() const;
  6924. bool IsEnabledEffective() const;
  6925. bool IsInstanceOf(StringHash) const;
  6926. bool IsReplicated() const;
  6927. bool IsTemporary() const;
  6928. bool Load(Deserializer&);
  6929. bool LoadJSON(const JSONValue&);
  6930. bool LoadXML(const XMLElement&);
  6931. void MarkNetworkUpdate();
  6932. operator Object() const;
  6933. void OnEvent(Object, StringHash, VariantMap&);
  6934. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6935. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6936. void OnSetEnabled();
  6937. void PrepareNetworkUpdate();
  6938. bool ReadDeltaUpdate(Deserializer&);
  6939. bool ReadLatestDataUpdate(Deserializer&);
  6940. operator RefCounted() const;
  6941. int Refs() const;
  6942. void ReleaseJoint();
  6943. void Remove();
  6944. void RemoveAttributeAnimation(const String&);
  6945. void RemoveInstanceDefault();
  6946. void RemoveObjectAnimation();
  6947. void ResetToDefault();
  6948. bool Save(Serializer&) const;
  6949. bool SaveDefaultAttributes() const;
  6950. bool SaveJSON(JSONValue&) const;
  6951. bool SaveXML(XMLElement&) const;
  6952. void SendEvent(StringHash);
  6953. void SendEvent(StringHash, VariantMap&);
  6954. operator Serializable() const;
  6955. void SetAnchor(const Vector2&);
  6956. void SetAnimationEnabled(bool);
  6957. void SetAnimationTime(float);
  6958. void SetAttachedConstraint(Constraint2D);
  6959. bool SetAttribute(const String&, const Variant&);
  6960. bool SetAttribute(uint, const Variant&);
  6961. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6962. void SetAttributeAnimationSpeed(const String&, float);
  6963. void SetAttributeAnimationTime(const String&, float);
  6964. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6965. void SetAxis(const Vector2&);
  6966. void SetBlockEvents(bool);
  6967. void SetCollideConnected(bool);
  6968. void SetEnableLimit(bool);
  6969. void SetEnableMotor(bool);
  6970. void SetEnabled(bool);
  6971. void SetGlobalVar(StringHash, const Variant&);
  6972. void SetInstanceDefault(bool);
  6973. void SetInterceptNetworkUpdate(const String&, bool);
  6974. void SetLowerTranslation(float);
  6975. void SetMaxMotorForce(float);
  6976. void SetMotorSpeed(float);
  6977. void SetObjectAnimation(ObjectAnimation);
  6978. void SetObjectAnimationAttr(const ResourceRef&);
  6979. void SetOtherBody(RigidBody2D);
  6980. void SetTemporary(bool);
  6981. void SetUpperTranslation(float);
  6982. const String& GetCategory() const;
  6983. const String& GetTypeName() const;
  6984. void UnsubscribeFromAllEvents();
  6985. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6986. void UnsubscribeFromEvent(Object, StringHash);
  6987. void UnsubscribeFromEvent(StringHash);
  6988. void UnsubscribeFromEvents(Object);
  6989. const Variant& GetGlobalVar(StringHash) const;
  6990. const VariantMap& GetGlobalVars() const;
  6991. const Vector2& GetAnchor() const;
  6992. const Vector2& GetAxis() const;
  6993. int WeakRefs() const;
  6994. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6995. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6996. void WriteLatestDataUpdate(Serializer&, uint8);
  6997. operator const Animatable() const;
  6998. operator const Component() const;
  6999. operator const Constraint2D() const;
  7000. operator const Object() const;
  7001. operator const RefCounted() const;
  7002. operator const Serializable() const;
  7003. // Properties:
  7004. Vector2 anchor;
  7005. bool animationEnabled;
  7006. /* readonly */
  7007. Array<Variant> attributeDefaults;
  7008. /* readonly */
  7009. Array<AttributeInfo> attributeInfos;
  7010. Array<Variant> attributes;
  7011. Vector2 axis;
  7012. /* readonly */
  7013. String category;
  7014. bool collideConnected;
  7015. bool enableLimit;
  7016. bool enableMotor;
  7017. bool enabled;
  7018. /* readonly */
  7019. bool enabledEffective;
  7020. Array<Variant> globalVar;
  7021. /* readonly */
  7022. VariantMap globalVars;
  7023. /* readonly */
  7024. uint id;
  7025. float lowerTranslation;
  7026. float maxMotorForce;
  7027. float motorSpeed;
  7028. /* readonly */
  7029. Node node;
  7030. /* readonly */
  7031. uint numAttributes;
  7032. ObjectAnimation objectAnimation;
  7033. RigidBody2D otherBody;
  7034. /* readonly */
  7035. RigidBody2D ownerBody;
  7036. /* readonly */
  7037. int refs;
  7038. /* readonly */
  7039. bool replicated;
  7040. bool temporary;
  7041. /* readonly */
  7042. StringHash type;
  7043. /* readonly */
  7044. String typeName;
  7045. float upperTranslation;
  7046. /* readonly */
  7047. int weakRefs;
  7048. };
  7049. class ConstraintPulley2D
  7050. {
  7051. public:
  7052. ConstraintPulley2D();
  7053. // Methods:
  7054. void AllocateNetworkState();
  7055. operator Animatable() const;
  7056. void ApplyAttributes();
  7057. void CleanupConnection(Connection);
  7058. operator Component() const;
  7059. operator Constraint2D() const;
  7060. void CreateJoint();
  7061. void DrawDebugGeometry(DebugRenderer, bool);
  7062. bool GetAnimationEnabled() const;
  7063. Constraint2D GetAttachedConstraint() const;
  7064. Variant GetAttribute(const String&) const;
  7065. Variant GetAttribute(uint) const;
  7066. ValueAnimation GetAttributeAnimation(const String&) const;
  7067. float GetAttributeAnimationSpeed(const String&) const;
  7068. float GetAttributeAnimationTime(const String&) const;
  7069. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7070. Variant GetAttributeDefault(const String&) const;
  7071. Variant GetAttributeDefault(uint) const;
  7072. bool GetBlockEvents() const;
  7073. bool GetCollideConnected() const;
  7074. Component GetComponent(StringHash) const;
  7075. VariantMap& GetEventDataMap() const;
  7076. Object GetEventSender() const;
  7077. uint GetID() const;
  7078. bool GetInterceptNetworkUpdate(const String&) const;
  7079. Node GetNode() const;
  7080. uint GetNumAttributes() const;
  7081. uint GetNumNetworkAttributes() const;
  7082. ObjectAnimation GetObjectAnimation() const;
  7083. ResourceRef GetObjectAnimationAttr() const;
  7084. RigidBody2D GetOtherBody() const;
  7085. RigidBody2D GetOwnerBody() const;
  7086. float GetRatio() const;
  7087. Scene GetScene() const;
  7088. Object GetSubsystem(StringHash) const;
  7089. StringHash GetType() const;
  7090. bool HasEventHandlers() const;
  7091. bool HasSubscribedToEvent(Object, StringHash) const;
  7092. bool HasSubscribedToEvent(StringHash) const;
  7093. bool IsEnabled() const;
  7094. bool IsEnabledEffective() const;
  7095. bool IsInstanceOf(StringHash) const;
  7096. bool IsReplicated() const;
  7097. bool IsTemporary() const;
  7098. bool Load(Deserializer&);
  7099. bool LoadJSON(const JSONValue&);
  7100. bool LoadXML(const XMLElement&);
  7101. void MarkNetworkUpdate();
  7102. operator Object() const;
  7103. void OnEvent(Object, StringHash, VariantMap&);
  7104. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7105. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7106. void OnSetEnabled();
  7107. void PrepareNetworkUpdate();
  7108. bool ReadDeltaUpdate(Deserializer&);
  7109. bool ReadLatestDataUpdate(Deserializer&);
  7110. operator RefCounted() const;
  7111. int Refs() const;
  7112. void ReleaseJoint();
  7113. void Remove();
  7114. void RemoveAttributeAnimation(const String&);
  7115. void RemoveInstanceDefault();
  7116. void RemoveObjectAnimation();
  7117. void ResetToDefault();
  7118. bool Save(Serializer&) const;
  7119. bool SaveDefaultAttributes() const;
  7120. bool SaveJSON(JSONValue&) const;
  7121. bool SaveXML(XMLElement&) const;
  7122. void SendEvent(StringHash);
  7123. void SendEvent(StringHash, VariantMap&);
  7124. operator Serializable() const;
  7125. void SetAnimationEnabled(bool);
  7126. void SetAnimationTime(float);
  7127. void SetAttachedConstraint(Constraint2D);
  7128. bool SetAttribute(const String&, const Variant&);
  7129. bool SetAttribute(uint, const Variant&);
  7130. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7131. void SetAttributeAnimationSpeed(const String&, float);
  7132. void SetAttributeAnimationTime(const String&, float);
  7133. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7134. void SetBlockEvents(bool);
  7135. void SetCollideConnected(bool);
  7136. void SetEnabled(bool);
  7137. void SetGlobalVar(StringHash, const Variant&);
  7138. void SetInstanceDefault(bool);
  7139. void SetInterceptNetworkUpdate(const String&, bool);
  7140. void SetObjectAnimation(ObjectAnimation);
  7141. void SetObjectAnimationAttr(const ResourceRef&);
  7142. void SetOtherBody(RigidBody2D);
  7143. void SetOtherBodyAnchor(const Vector2&);
  7144. void SetOtherBodyGroundAnchor(const Vector2&);
  7145. void SetOwnerBodyAnchor(const Vector2&);
  7146. void SetOwnerBodyGroundAnchor(const Vector2&);
  7147. void SetRatio(float);
  7148. void SetTemporary(bool);
  7149. const String& GetCategory() const;
  7150. const String& GetTypeName() const;
  7151. void UnsubscribeFromAllEvents();
  7152. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7153. void UnsubscribeFromEvent(Object, StringHash);
  7154. void UnsubscribeFromEvent(StringHash);
  7155. void UnsubscribeFromEvents(Object);
  7156. const Variant& GetGlobalVar(StringHash) const;
  7157. const VariantMap& GetGlobalVars() const;
  7158. const Vector2& GetOtherBodyAnchor() const;
  7159. const Vector2& GetOtherBodyGroundAnchor() const;
  7160. const Vector2& GetOwnerBodyAnchor() const;
  7161. const Vector2& GetOwnerBodyGroundAnchor() const;
  7162. int WeakRefs() const;
  7163. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7164. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7165. void WriteLatestDataUpdate(Serializer&, uint8);
  7166. operator const Animatable() const;
  7167. operator const Component() const;
  7168. operator const Constraint2D() const;
  7169. operator const Object() const;
  7170. operator const RefCounted() const;
  7171. operator const Serializable() const;
  7172. // Properties:
  7173. bool animationEnabled;
  7174. /* readonly */
  7175. Array<Variant> attributeDefaults;
  7176. /* readonly */
  7177. Array<AttributeInfo> attributeInfos;
  7178. Array<Variant> attributes;
  7179. /* readonly */
  7180. String category;
  7181. bool collideConnected;
  7182. bool enabled;
  7183. /* readonly */
  7184. bool enabledEffective;
  7185. Array<Variant> globalVar;
  7186. /* readonly */
  7187. VariantMap globalVars;
  7188. /* readonly */
  7189. uint id;
  7190. /* readonly */
  7191. Node node;
  7192. /* readonly */
  7193. uint numAttributes;
  7194. ObjectAnimation objectAnimation;
  7195. RigidBody2D otherBody;
  7196. Vector2 otherBodyAnchor;
  7197. Vector2 otherBodyGroundAnchor;
  7198. /* readonly */
  7199. RigidBody2D ownerBody;
  7200. Vector2 ownerBodyAnchor;
  7201. Vector2 ownerBodyGroundAnchor;
  7202. float ratio;
  7203. /* readonly */
  7204. int refs;
  7205. /* readonly */
  7206. bool replicated;
  7207. bool temporary;
  7208. /* readonly */
  7209. StringHash type;
  7210. /* readonly */
  7211. String typeName;
  7212. /* readonly */
  7213. int weakRefs;
  7214. };
  7215. class ConstraintRevolute2D
  7216. {
  7217. public:
  7218. ConstraintRevolute2D();
  7219. // Methods:
  7220. void AllocateNetworkState();
  7221. operator Animatable() const;
  7222. void ApplyAttributes();
  7223. void CleanupConnection(Connection);
  7224. operator Component() const;
  7225. operator Constraint2D() const;
  7226. void CreateJoint();
  7227. void DrawDebugGeometry(DebugRenderer, bool);
  7228. bool GetAnimationEnabled() const;
  7229. Constraint2D GetAttachedConstraint() const;
  7230. Variant GetAttribute(const String&) const;
  7231. Variant GetAttribute(uint) const;
  7232. ValueAnimation GetAttributeAnimation(const String&) const;
  7233. float GetAttributeAnimationSpeed(const String&) const;
  7234. float GetAttributeAnimationTime(const String&) const;
  7235. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7236. Variant GetAttributeDefault(const String&) const;
  7237. Variant GetAttributeDefault(uint) const;
  7238. bool GetBlockEvents() const;
  7239. bool GetCollideConnected() const;
  7240. Component GetComponent(StringHash) const;
  7241. bool GetEnableLimit() const;
  7242. bool GetEnableMotor() const;
  7243. VariantMap& GetEventDataMap() const;
  7244. Object GetEventSender() const;
  7245. uint GetID() const;
  7246. bool GetInterceptNetworkUpdate(const String&) const;
  7247. float GetLowerAngle() const;
  7248. float GetMaxMotorTorque() const;
  7249. float GetMotorSpeed() const;
  7250. Node GetNode() const;
  7251. uint GetNumAttributes() const;
  7252. uint GetNumNetworkAttributes() const;
  7253. ObjectAnimation GetObjectAnimation() const;
  7254. ResourceRef GetObjectAnimationAttr() const;
  7255. RigidBody2D GetOtherBody() const;
  7256. RigidBody2D GetOwnerBody() const;
  7257. Scene GetScene() const;
  7258. Object GetSubsystem(StringHash) const;
  7259. StringHash GetType() const;
  7260. float GetUpperAngle() const;
  7261. bool HasEventHandlers() const;
  7262. bool HasSubscribedToEvent(Object, StringHash) const;
  7263. bool HasSubscribedToEvent(StringHash) const;
  7264. bool IsEnabled() const;
  7265. bool IsEnabledEffective() const;
  7266. bool IsInstanceOf(StringHash) const;
  7267. bool IsReplicated() const;
  7268. bool IsTemporary() const;
  7269. bool Load(Deserializer&);
  7270. bool LoadJSON(const JSONValue&);
  7271. bool LoadXML(const XMLElement&);
  7272. void MarkNetworkUpdate();
  7273. operator Object() const;
  7274. void OnEvent(Object, StringHash, VariantMap&);
  7275. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7276. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7277. void OnSetEnabled();
  7278. void PrepareNetworkUpdate();
  7279. bool ReadDeltaUpdate(Deserializer&);
  7280. bool ReadLatestDataUpdate(Deserializer&);
  7281. operator RefCounted() const;
  7282. int Refs() const;
  7283. void ReleaseJoint();
  7284. void Remove();
  7285. void RemoveAttributeAnimation(const String&);
  7286. void RemoveInstanceDefault();
  7287. void RemoveObjectAnimation();
  7288. void ResetToDefault();
  7289. bool Save(Serializer&) const;
  7290. bool SaveDefaultAttributes() const;
  7291. bool SaveJSON(JSONValue&) const;
  7292. bool SaveXML(XMLElement&) const;
  7293. void SendEvent(StringHash);
  7294. void SendEvent(StringHash, VariantMap&);
  7295. operator Serializable() const;
  7296. void SetAnchor(const Vector2&);
  7297. void SetAnimationEnabled(bool);
  7298. void SetAnimationTime(float);
  7299. void SetAttachedConstraint(Constraint2D);
  7300. bool SetAttribute(const String&, const Variant&);
  7301. bool SetAttribute(uint, const Variant&);
  7302. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7303. void SetAttributeAnimationSpeed(const String&, float);
  7304. void SetAttributeAnimationTime(const String&, float);
  7305. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7306. void SetBlockEvents(bool);
  7307. void SetCollideConnected(bool);
  7308. void SetEnableLimit(bool);
  7309. void SetEnableMotor(bool);
  7310. void SetEnabled(bool);
  7311. void SetGlobalVar(StringHash, const Variant&);
  7312. void SetInstanceDefault(bool);
  7313. void SetInterceptNetworkUpdate(const String&, bool);
  7314. void SetLowerAngle(float);
  7315. void SetMaxMotorTorque(float);
  7316. void SetMotorSpeed(float);
  7317. void SetObjectAnimation(ObjectAnimation);
  7318. void SetObjectAnimationAttr(const ResourceRef&);
  7319. void SetOtherBody(RigidBody2D);
  7320. void SetTemporary(bool);
  7321. void SetUpperAngle(float);
  7322. const String& GetCategory() const;
  7323. const String& GetTypeName() const;
  7324. void UnsubscribeFromAllEvents();
  7325. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7326. void UnsubscribeFromEvent(Object, StringHash);
  7327. void UnsubscribeFromEvent(StringHash);
  7328. void UnsubscribeFromEvents(Object);
  7329. const Variant& GetGlobalVar(StringHash) const;
  7330. const VariantMap& GetGlobalVars() const;
  7331. const Vector2& GetAnchor() const;
  7332. int WeakRefs() const;
  7333. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7334. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7335. void WriteLatestDataUpdate(Serializer&, uint8);
  7336. operator const Animatable() const;
  7337. operator const Component() const;
  7338. operator const Constraint2D() const;
  7339. operator const Object() const;
  7340. operator const RefCounted() const;
  7341. operator const Serializable() const;
  7342. // Properties:
  7343. Vector2 anchor;
  7344. bool animationEnabled;
  7345. /* readonly */
  7346. Array<Variant> attributeDefaults;
  7347. /* readonly */
  7348. Array<AttributeInfo> attributeInfos;
  7349. Array<Variant> attributes;
  7350. /* readonly */
  7351. String category;
  7352. bool collideConnected;
  7353. bool enableLimit;
  7354. bool enableMotor;
  7355. bool enabled;
  7356. /* readonly */
  7357. bool enabledEffective;
  7358. Array<Variant> globalVar;
  7359. /* readonly */
  7360. VariantMap globalVars;
  7361. /* readonly */
  7362. uint id;
  7363. float lowerAngle;
  7364. float maxMotorTorque;
  7365. float motorSpeed;
  7366. /* readonly */
  7367. Node node;
  7368. /* readonly */
  7369. uint numAttributes;
  7370. ObjectAnimation objectAnimation;
  7371. RigidBody2D otherBody;
  7372. /* readonly */
  7373. RigidBody2D ownerBody;
  7374. /* readonly */
  7375. int refs;
  7376. /* readonly */
  7377. bool replicated;
  7378. bool temporary;
  7379. /* readonly */
  7380. StringHash type;
  7381. /* readonly */
  7382. String typeName;
  7383. float upperAngle;
  7384. /* readonly */
  7385. int weakRefs;
  7386. };
  7387. class ConstraintRope2D
  7388. {
  7389. public:
  7390. ConstraintRope2D();
  7391. // Methods:
  7392. void AllocateNetworkState();
  7393. operator Animatable() const;
  7394. void ApplyAttributes();
  7395. void CleanupConnection(Connection);
  7396. operator Component() const;
  7397. operator Constraint2D() const;
  7398. void CreateJoint();
  7399. void DrawDebugGeometry(DebugRenderer, bool);
  7400. bool GetAnimationEnabled() const;
  7401. Constraint2D GetAttachedConstraint() const;
  7402. Variant GetAttribute(const String&) const;
  7403. Variant GetAttribute(uint) const;
  7404. ValueAnimation GetAttributeAnimation(const String&) const;
  7405. float GetAttributeAnimationSpeed(const String&) const;
  7406. float GetAttributeAnimationTime(const String&) const;
  7407. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7408. Variant GetAttributeDefault(const String&) const;
  7409. Variant GetAttributeDefault(uint) const;
  7410. bool GetBlockEvents() const;
  7411. bool GetCollideConnected() const;
  7412. Component GetComponent(StringHash) const;
  7413. VariantMap& GetEventDataMap() const;
  7414. Object GetEventSender() const;
  7415. uint GetID() const;
  7416. bool GetInterceptNetworkUpdate(const String&) const;
  7417. float GetMaxLength() const;
  7418. Node GetNode() const;
  7419. uint GetNumAttributes() const;
  7420. uint GetNumNetworkAttributes() const;
  7421. ObjectAnimation GetObjectAnimation() const;
  7422. ResourceRef GetObjectAnimationAttr() const;
  7423. RigidBody2D GetOtherBody() const;
  7424. RigidBody2D GetOwnerBody() const;
  7425. Scene GetScene() const;
  7426. Object GetSubsystem(StringHash) const;
  7427. StringHash GetType() const;
  7428. bool HasEventHandlers() const;
  7429. bool HasSubscribedToEvent(Object, StringHash) const;
  7430. bool HasSubscribedToEvent(StringHash) const;
  7431. bool IsEnabled() const;
  7432. bool IsEnabledEffective() const;
  7433. bool IsInstanceOf(StringHash) const;
  7434. bool IsReplicated() const;
  7435. bool IsTemporary() const;
  7436. bool Load(Deserializer&);
  7437. bool LoadJSON(const JSONValue&);
  7438. bool LoadXML(const XMLElement&);
  7439. void MarkNetworkUpdate();
  7440. operator Object() const;
  7441. void OnEvent(Object, StringHash, VariantMap&);
  7442. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7443. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7444. void OnSetEnabled();
  7445. void PrepareNetworkUpdate();
  7446. bool ReadDeltaUpdate(Deserializer&);
  7447. bool ReadLatestDataUpdate(Deserializer&);
  7448. operator RefCounted() const;
  7449. int Refs() const;
  7450. void ReleaseJoint();
  7451. void Remove();
  7452. void RemoveAttributeAnimation(const String&);
  7453. void RemoveInstanceDefault();
  7454. void RemoveObjectAnimation();
  7455. void ResetToDefault();
  7456. bool Save(Serializer&) const;
  7457. bool SaveDefaultAttributes() const;
  7458. bool SaveJSON(JSONValue&) const;
  7459. bool SaveXML(XMLElement&) const;
  7460. void SendEvent(StringHash);
  7461. void SendEvent(StringHash, VariantMap&);
  7462. operator Serializable() const;
  7463. void SetAnimationEnabled(bool);
  7464. void SetAnimationTime(float);
  7465. void SetAttachedConstraint(Constraint2D);
  7466. bool SetAttribute(const String&, const Variant&);
  7467. bool SetAttribute(uint, const Variant&);
  7468. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7469. void SetAttributeAnimationSpeed(const String&, float);
  7470. void SetAttributeAnimationTime(const String&, float);
  7471. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7472. void SetBlockEvents(bool);
  7473. void SetCollideConnected(bool);
  7474. void SetEnabled(bool);
  7475. void SetGlobalVar(StringHash, const Variant&);
  7476. void SetInstanceDefault(bool);
  7477. void SetInterceptNetworkUpdate(const String&, bool);
  7478. void SetMaxLength(float);
  7479. void SetObjectAnimation(ObjectAnimation);
  7480. void SetObjectAnimationAttr(const ResourceRef&);
  7481. void SetOtherBody(RigidBody2D);
  7482. void SetOtherBodyAnchor(const Vector2&);
  7483. void SetOwnerBodyAnchor(const Vector2&);
  7484. void SetTemporary(bool);
  7485. const String& GetCategory() const;
  7486. const String& GetTypeName() const;
  7487. void UnsubscribeFromAllEvents();
  7488. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7489. void UnsubscribeFromEvent(Object, StringHash);
  7490. void UnsubscribeFromEvent(StringHash);
  7491. void UnsubscribeFromEvents(Object);
  7492. const Variant& GetGlobalVar(StringHash) const;
  7493. const VariantMap& GetGlobalVars() const;
  7494. const Vector2& GetOtherBodyAnchor() const;
  7495. const Vector2& GetOwnerBodyAnchor() const;
  7496. int WeakRefs() const;
  7497. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7498. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7499. void WriteLatestDataUpdate(Serializer&, uint8);
  7500. operator const Animatable() const;
  7501. operator const Component() const;
  7502. operator const Constraint2D() const;
  7503. operator const Object() const;
  7504. operator const RefCounted() const;
  7505. operator const Serializable() const;
  7506. // Properties:
  7507. bool animationEnabled;
  7508. /* readonly */
  7509. Array<Variant> attributeDefaults;
  7510. /* readonly */
  7511. Array<AttributeInfo> attributeInfos;
  7512. Array<Variant> attributes;
  7513. /* readonly */
  7514. String category;
  7515. bool collideConnected;
  7516. bool enabled;
  7517. /* readonly */
  7518. bool enabledEffective;
  7519. Array<Variant> globalVar;
  7520. /* readonly */
  7521. VariantMap globalVars;
  7522. /* readonly */
  7523. uint id;
  7524. float maxLength;
  7525. /* readonly */
  7526. Node node;
  7527. /* readonly */
  7528. uint numAttributes;
  7529. ObjectAnimation objectAnimation;
  7530. RigidBody2D otherBody;
  7531. Vector2 otherBodyAnchor;
  7532. /* readonly */
  7533. RigidBody2D ownerBody;
  7534. Vector2 ownerBodyAnchor;
  7535. /* readonly */
  7536. int refs;
  7537. /* readonly */
  7538. bool replicated;
  7539. bool temporary;
  7540. /* readonly */
  7541. StringHash type;
  7542. /* readonly */
  7543. String typeName;
  7544. /* readonly */
  7545. int weakRefs;
  7546. };
  7547. class ConstraintWeld2D
  7548. {
  7549. public:
  7550. ConstraintWeld2D();
  7551. // Methods:
  7552. void AllocateNetworkState();
  7553. operator Animatable() const;
  7554. void ApplyAttributes();
  7555. void CleanupConnection(Connection);
  7556. operator Component() const;
  7557. operator Constraint2D() const;
  7558. void CreateJoint();
  7559. void DrawDebugGeometry(DebugRenderer, bool);
  7560. bool GetAnimationEnabled() const;
  7561. Constraint2D GetAttachedConstraint() const;
  7562. Variant GetAttribute(const String&) const;
  7563. Variant GetAttribute(uint) const;
  7564. ValueAnimation GetAttributeAnimation(const String&) const;
  7565. float GetAttributeAnimationSpeed(const String&) const;
  7566. float GetAttributeAnimationTime(const String&) const;
  7567. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7568. Variant GetAttributeDefault(const String&) const;
  7569. Variant GetAttributeDefault(uint) const;
  7570. bool GetBlockEvents() const;
  7571. bool GetCollideConnected() const;
  7572. Component GetComponent(StringHash) const;
  7573. float GetDampingRatio() const;
  7574. VariantMap& GetEventDataMap() const;
  7575. Object GetEventSender() const;
  7576. float GetFrequencyHz() const;
  7577. uint GetID() const;
  7578. bool GetInterceptNetworkUpdate(const String&) const;
  7579. Node GetNode() const;
  7580. uint GetNumAttributes() const;
  7581. uint GetNumNetworkAttributes() const;
  7582. ObjectAnimation GetObjectAnimation() const;
  7583. ResourceRef GetObjectAnimationAttr() const;
  7584. RigidBody2D GetOtherBody() const;
  7585. RigidBody2D GetOwnerBody() const;
  7586. Scene GetScene() const;
  7587. Object GetSubsystem(StringHash) const;
  7588. StringHash GetType() const;
  7589. bool HasEventHandlers() const;
  7590. bool HasSubscribedToEvent(Object, StringHash) const;
  7591. bool HasSubscribedToEvent(StringHash) const;
  7592. bool IsEnabled() const;
  7593. bool IsEnabledEffective() const;
  7594. bool IsInstanceOf(StringHash) const;
  7595. bool IsReplicated() const;
  7596. bool IsTemporary() const;
  7597. bool Load(Deserializer&);
  7598. bool LoadJSON(const JSONValue&);
  7599. bool LoadXML(const XMLElement&);
  7600. void MarkNetworkUpdate();
  7601. operator Object() const;
  7602. void OnEvent(Object, StringHash, VariantMap&);
  7603. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7604. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7605. void OnSetEnabled();
  7606. void PrepareNetworkUpdate();
  7607. bool ReadDeltaUpdate(Deserializer&);
  7608. bool ReadLatestDataUpdate(Deserializer&);
  7609. operator RefCounted() const;
  7610. int Refs() const;
  7611. void ReleaseJoint();
  7612. void Remove();
  7613. void RemoveAttributeAnimation(const String&);
  7614. void RemoveInstanceDefault();
  7615. void RemoveObjectAnimation();
  7616. void ResetToDefault();
  7617. bool Save(Serializer&) const;
  7618. bool SaveDefaultAttributes() const;
  7619. bool SaveJSON(JSONValue&) const;
  7620. bool SaveXML(XMLElement&) const;
  7621. void SendEvent(StringHash);
  7622. void SendEvent(StringHash, VariantMap&);
  7623. operator Serializable() const;
  7624. void SetAnchor(const Vector2&);
  7625. void SetAnimationEnabled(bool);
  7626. void SetAnimationTime(float);
  7627. void SetAttachedConstraint(Constraint2D);
  7628. bool SetAttribute(const String&, const Variant&);
  7629. bool SetAttribute(uint, const Variant&);
  7630. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7631. void SetAttributeAnimationSpeed(const String&, float);
  7632. void SetAttributeAnimationTime(const String&, float);
  7633. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7634. void SetBlockEvents(bool);
  7635. void SetCollideConnected(bool);
  7636. void SetDampingRatio(float);
  7637. void SetEnabled(bool);
  7638. void SetFrequencyHz(float);
  7639. void SetGlobalVar(StringHash, const Variant&);
  7640. void SetInstanceDefault(bool);
  7641. void SetInterceptNetworkUpdate(const String&, bool);
  7642. void SetObjectAnimation(ObjectAnimation);
  7643. void SetObjectAnimationAttr(const ResourceRef&);
  7644. void SetOtherBody(RigidBody2D);
  7645. void SetTemporary(bool);
  7646. const String& GetCategory() const;
  7647. const String& GetTypeName() const;
  7648. void UnsubscribeFromAllEvents();
  7649. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7650. void UnsubscribeFromEvent(Object, StringHash);
  7651. void UnsubscribeFromEvent(StringHash);
  7652. void UnsubscribeFromEvents(Object);
  7653. const Variant& GetGlobalVar(StringHash) const;
  7654. const VariantMap& GetGlobalVars() const;
  7655. const Vector2& GetAnchor() const;
  7656. int WeakRefs() const;
  7657. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7658. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7659. void WriteLatestDataUpdate(Serializer&, uint8);
  7660. operator const Animatable() const;
  7661. operator const Component() const;
  7662. operator const Constraint2D() const;
  7663. operator const Object() const;
  7664. operator const RefCounted() const;
  7665. operator const Serializable() const;
  7666. // Properties:
  7667. Vector2 anchor;
  7668. bool animationEnabled;
  7669. /* readonly */
  7670. Array<Variant> attributeDefaults;
  7671. /* readonly */
  7672. Array<AttributeInfo> attributeInfos;
  7673. Array<Variant> attributes;
  7674. /* readonly */
  7675. String category;
  7676. bool collideConnected;
  7677. float dampingRatio;
  7678. bool enabled;
  7679. /* readonly */
  7680. bool enabledEffective;
  7681. float frequencyHz;
  7682. Array<Variant> globalVar;
  7683. /* readonly */
  7684. VariantMap globalVars;
  7685. /* readonly */
  7686. uint id;
  7687. /* readonly */
  7688. Node node;
  7689. /* readonly */
  7690. uint numAttributes;
  7691. ObjectAnimation objectAnimation;
  7692. RigidBody2D otherBody;
  7693. /* readonly */
  7694. RigidBody2D ownerBody;
  7695. /* readonly */
  7696. int refs;
  7697. /* readonly */
  7698. bool replicated;
  7699. bool temporary;
  7700. /* readonly */
  7701. StringHash type;
  7702. /* readonly */
  7703. String typeName;
  7704. /* readonly */
  7705. int weakRefs;
  7706. };
  7707. class ConstraintWheel2D
  7708. {
  7709. public:
  7710. ConstraintWheel2D();
  7711. // Methods:
  7712. void AllocateNetworkState();
  7713. operator Animatable() const;
  7714. void ApplyAttributes();
  7715. void CleanupConnection(Connection);
  7716. operator Component() const;
  7717. operator Constraint2D() const;
  7718. void CreateJoint();
  7719. void DrawDebugGeometry(DebugRenderer, bool);
  7720. bool GetAnimationEnabled() const;
  7721. Constraint2D GetAttachedConstraint() const;
  7722. Variant GetAttribute(const String&) const;
  7723. Variant GetAttribute(uint) const;
  7724. ValueAnimation GetAttributeAnimation(const String&) const;
  7725. float GetAttributeAnimationSpeed(const String&) const;
  7726. float GetAttributeAnimationTime(const String&) const;
  7727. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7728. Variant GetAttributeDefault(const String&) const;
  7729. Variant GetAttributeDefault(uint) const;
  7730. bool GetBlockEvents() const;
  7731. bool GetCollideConnected() const;
  7732. Component GetComponent(StringHash) const;
  7733. float GetDampingRatio() const;
  7734. bool GetEnableMotor() const;
  7735. VariantMap& GetEventDataMap() const;
  7736. Object GetEventSender() const;
  7737. float GetFrequencyHz() const;
  7738. uint GetID() const;
  7739. bool GetInterceptNetworkUpdate(const String&) const;
  7740. float GetMaxMotorTorque() const;
  7741. float GetMotorSpeed() const;
  7742. Node GetNode() const;
  7743. uint GetNumAttributes() const;
  7744. uint GetNumNetworkAttributes() const;
  7745. ObjectAnimation GetObjectAnimation() const;
  7746. ResourceRef GetObjectAnimationAttr() const;
  7747. RigidBody2D GetOtherBody() const;
  7748. RigidBody2D GetOwnerBody() const;
  7749. Scene GetScene() const;
  7750. Object GetSubsystem(StringHash) const;
  7751. StringHash GetType() const;
  7752. bool HasEventHandlers() const;
  7753. bool HasSubscribedToEvent(Object, StringHash) const;
  7754. bool HasSubscribedToEvent(StringHash) const;
  7755. bool IsEnabled() const;
  7756. bool IsEnabledEffective() const;
  7757. bool IsInstanceOf(StringHash) const;
  7758. bool IsReplicated() const;
  7759. bool IsTemporary() const;
  7760. bool Load(Deserializer&);
  7761. bool LoadJSON(const JSONValue&);
  7762. bool LoadXML(const XMLElement&);
  7763. void MarkNetworkUpdate();
  7764. operator Object() const;
  7765. void OnEvent(Object, StringHash, VariantMap&);
  7766. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7767. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7768. void OnSetEnabled();
  7769. void PrepareNetworkUpdate();
  7770. bool ReadDeltaUpdate(Deserializer&);
  7771. bool ReadLatestDataUpdate(Deserializer&);
  7772. operator RefCounted() const;
  7773. int Refs() const;
  7774. void ReleaseJoint();
  7775. void Remove();
  7776. void RemoveAttributeAnimation(const String&);
  7777. void RemoveInstanceDefault();
  7778. void RemoveObjectAnimation();
  7779. void ResetToDefault();
  7780. bool Save(Serializer&) const;
  7781. bool SaveDefaultAttributes() const;
  7782. bool SaveJSON(JSONValue&) const;
  7783. bool SaveXML(XMLElement&) const;
  7784. void SendEvent(StringHash);
  7785. void SendEvent(StringHash, VariantMap&);
  7786. operator Serializable() const;
  7787. void SetAnchor(const Vector2&);
  7788. void SetAnimationEnabled(bool);
  7789. void SetAnimationTime(float);
  7790. void SetAttachedConstraint(Constraint2D);
  7791. bool SetAttribute(const String&, const Variant&);
  7792. bool SetAttribute(uint, const Variant&);
  7793. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7794. void SetAttributeAnimationSpeed(const String&, float);
  7795. void SetAttributeAnimationTime(const String&, float);
  7796. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7797. void SetAxis(const Vector2&);
  7798. void SetBlockEvents(bool);
  7799. void SetCollideConnected(bool);
  7800. void SetDampingRatio(float);
  7801. void SetEnableMotor(bool);
  7802. void SetEnabled(bool);
  7803. void SetFrequencyHz(float);
  7804. void SetGlobalVar(StringHash, const Variant&);
  7805. void SetInstanceDefault(bool);
  7806. void SetInterceptNetworkUpdate(const String&, bool);
  7807. void SetMaxMotorTorque(float);
  7808. void SetMotorSpeed(float);
  7809. void SetObjectAnimation(ObjectAnimation);
  7810. void SetObjectAnimationAttr(const ResourceRef&);
  7811. void SetOtherBody(RigidBody2D);
  7812. void SetTemporary(bool);
  7813. const String& GetCategory() const;
  7814. const String& GetTypeName() const;
  7815. void UnsubscribeFromAllEvents();
  7816. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7817. void UnsubscribeFromEvent(Object, StringHash);
  7818. void UnsubscribeFromEvent(StringHash);
  7819. void UnsubscribeFromEvents(Object);
  7820. const Variant& GetGlobalVar(StringHash) const;
  7821. const VariantMap& GetGlobalVars() const;
  7822. const Vector2& GetAnchor() const;
  7823. const Vector2& GetAxis() const;
  7824. int WeakRefs() const;
  7825. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7826. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7827. void WriteLatestDataUpdate(Serializer&, uint8);
  7828. operator const Animatable() const;
  7829. operator const Component() const;
  7830. operator const Constraint2D() const;
  7831. operator const Object() const;
  7832. operator const RefCounted() const;
  7833. operator const Serializable() const;
  7834. // Properties:
  7835. Vector2 anchor;
  7836. bool animationEnabled;
  7837. /* readonly */
  7838. Array<Variant> attributeDefaults;
  7839. /* readonly */
  7840. Array<AttributeInfo> attributeInfos;
  7841. Array<Variant> attributes;
  7842. Vector2 axis;
  7843. /* readonly */
  7844. String category;
  7845. bool collideConnected;
  7846. float dampingRatio;
  7847. bool enableMotor;
  7848. bool enabled;
  7849. /* readonly */
  7850. bool enabledEffective;
  7851. float frequencyHz;
  7852. Array<Variant> globalVar;
  7853. /* readonly */
  7854. VariantMap globalVars;
  7855. /* readonly */
  7856. uint id;
  7857. float maxMotorTorque;
  7858. float motorSpeed;
  7859. /* readonly */
  7860. Node node;
  7861. /* readonly */
  7862. uint numAttributes;
  7863. ObjectAnimation objectAnimation;
  7864. RigidBody2D otherBody;
  7865. /* readonly */
  7866. RigidBody2D ownerBody;
  7867. /* readonly */
  7868. int refs;
  7869. /* readonly */
  7870. bool replicated;
  7871. bool temporary;
  7872. /* readonly */
  7873. StringHash type;
  7874. /* readonly */
  7875. String typeName;
  7876. /* readonly */
  7877. int weakRefs;
  7878. };
  7879. class Context
  7880. {
  7881. public:
  7882. Context();
  7883. // Methods:
  7884. void CopyBaseAttributes(StringHash, StringHash);
  7885. Object CreateObject(StringHash);
  7886. VariantMap& GetEventDataMap();
  7887. EventReceiverGroup GetEventReceivers(Object, StringHash);
  7888. EventReceiverGroup GetEventReceivers(StringHash);
  7889. Object GetEventSender() const;
  7890. Object GetSubsystem(StringHash) const;
  7891. operator RefCounted() const;
  7892. int Refs() const;
  7893. void RegisterFactory(ObjectFactory);
  7894. void RegisterSubsystem(Object);
  7895. void ReleaseSDL();
  7896. void RemoveAllAttributes(StringHash);
  7897. void RemoveSubsystem(StringHash);
  7898. bool RequireSDL(uint);
  7899. void SetGlobalVar(StringHash, const Variant&);
  7900. const String& GetTypeName(StringHash) const;
  7901. const Variant& GetGlobalVar(StringHash) const;
  7902. const VariantMap& GetGlobalVars() const;
  7903. int WeakRefs() const;
  7904. operator const RefCounted() const;
  7905. // Properties:
  7906. /* readonly */
  7907. int refs;
  7908. /* readonly */
  7909. int weakRefs;
  7910. };
  7911. class Controls
  7912. {
  7913. public:
  7914. ~Controls();
  7915. Controls();
  7916. // Methods:
  7917. Controls& operator=(const Controls&);
  7918. bool IsDown(uint) const;
  7919. bool IsPressed(uint, const Controls&) const;
  7920. void Reset();
  7921. void Set(uint, bool = true);
  7922. // Properties:
  7923. uint buttons;
  7924. VariantMap extraData;
  7925. float pitch;
  7926. float yaw;
  7927. };
  7928. class ConvexData
  7929. {
  7930. public:
  7931. ConvexData(Model&, uint);
  7932. ConvexData(CustomGeometry&);
  7933. // Methods:
  7934. void BuildHull(Array<Vector3>);
  7935. operator CollisionGeometryData() const;
  7936. operator RefCounted() const;
  7937. int Refs() const;
  7938. int WeakRefs() const;
  7939. operator const CollisionGeometryData() const;
  7940. operator const RefCounted() const;
  7941. // Properties:
  7942. uint indexCount;
  7943. /* readonly */
  7944. int refs;
  7945. uint vertexCount;
  7946. /* readonly */
  7947. int weakRefs;
  7948. };
  7949. class CrowdAgent
  7950. {
  7951. public:
  7952. CrowdAgent();
  7953. // Methods:
  7954. void AllocateNetworkState();
  7955. operator Animatable() const;
  7956. void ApplyAttributes();
  7957. void CleanupConnection(Connection);
  7958. operator Component() const;
  7959. void DrawDebugGeometry(DebugRenderer, bool);
  7960. void DrawDebugGeometry(bool);
  7961. Vector3 GetActualVelocity() const;
  7962. int GetAgentCrowdId() const;
  7963. CrowdAgentState GetAgentState() const;
  7964. bool GetAnimationEnabled() const;
  7965. Variant GetAttribute(const String&) const;
  7966. Variant GetAttribute(uint) const;
  7967. ValueAnimation GetAttributeAnimation(const String&) const;
  7968. float GetAttributeAnimationSpeed(const String&) const;
  7969. float GetAttributeAnimationTime(const String&) const;
  7970. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7971. Variant GetAttributeDefault(const String&) const;
  7972. Variant GetAttributeDefault(uint) const;
  7973. bool GetBlockEvents() const;
  7974. Component GetComponent(StringHash) const;
  7975. Vector3 GetDesiredVelocity() const;
  7976. VariantMap& GetEventDataMap() const;
  7977. Object GetEventSender() const;
  7978. float GetHeight() const;
  7979. uint GetID() const;
  7980. bool GetInterceptNetworkUpdate(const String&) const;
  7981. float GetMaxAccel() const;
  7982. float GetMaxSpeed() const;
  7983. NavigationPushiness GetNavigationPushiness() const;
  7984. NavigationQuality GetNavigationQuality() const;
  7985. Node GetNode() const;
  7986. uint GetNumAttributes() const;
  7987. uint GetNumNetworkAttributes() const;
  7988. ObjectAnimation GetObjectAnimation() const;
  7989. ResourceRef GetObjectAnimationAttr() const;
  7990. uint GetObstacleAvoidanceType() const;
  7991. Vector3 GetPosition() const;
  7992. uint GetQueryFilterType() const;
  7993. float GetRadius() const;
  7994. CrowdAgentRequestedTarget GetRequestedTargetType() const;
  7995. Scene GetScene() const;
  7996. Object GetSubsystem(StringHash) const;
  7997. CrowdAgentTargetState GetTargetState() const;
  7998. StringHash GetType() const;
  7999. bool GetUpdateNodePosition() const;
  8000. bool HasArrived() const;
  8001. bool HasEventHandlers() const;
  8002. bool HasRequestedTarget() const;
  8003. bool HasSubscribedToEvent(Object, StringHash) const;
  8004. bool HasSubscribedToEvent(StringHash) const;
  8005. bool IsEnabled() const;
  8006. bool IsEnabledEffective() const;
  8007. bool IsInCrowd() const;
  8008. bool IsInstanceOf(StringHash) const;
  8009. bool IsReplicated() const;
  8010. bool IsTemporary() const;
  8011. bool Load(Deserializer&);
  8012. bool LoadJSON(const JSONValue&);
  8013. bool LoadXML(const XMLElement&);
  8014. void MarkNetworkUpdate();
  8015. operator Object() const;
  8016. void OnEvent(Object, StringHash, VariantMap&);
  8017. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8018. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8019. void OnSetEnabled();
  8020. void PrepareNetworkUpdate();
  8021. bool ReadDeltaUpdate(Deserializer&);
  8022. bool ReadLatestDataUpdate(Deserializer&);
  8023. operator RefCounted() const;
  8024. int Refs() const;
  8025. void Remove();
  8026. void RemoveAttributeAnimation(const String&);
  8027. void RemoveInstanceDefault();
  8028. void RemoveObjectAnimation();
  8029. void ResetTarget();
  8030. void ResetToDefault();
  8031. bool Save(Serializer&) const;
  8032. bool SaveDefaultAttributes() const;
  8033. bool SaveJSON(JSONValue&) const;
  8034. bool SaveXML(XMLElement&) const;
  8035. void SendEvent(StringHash);
  8036. void SendEvent(StringHash, VariantMap&);
  8037. operator Serializable() const;
  8038. void SetAnimationEnabled(bool);
  8039. void SetAnimationTime(float);
  8040. bool SetAttribute(const String&, const Variant&);
  8041. bool SetAttribute(uint, const Variant&);
  8042. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8043. void SetAttributeAnimationSpeed(const String&, float);
  8044. void SetAttributeAnimationTime(const String&, float);
  8045. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8046. void SetBlockEvents(bool);
  8047. void SetEnabled(bool);
  8048. void SetGlobalVar(StringHash, const Variant&);
  8049. void SetHeight(float);
  8050. void SetInstanceDefault(bool);
  8051. void SetInterceptNetworkUpdate(const String&, bool);
  8052. void SetMaxAccel(float);
  8053. void SetMaxSpeed(float);
  8054. void SetNavigationPushiness(NavigationPushiness);
  8055. void SetNavigationQuality(NavigationQuality);
  8056. void SetObjectAnimation(ObjectAnimation);
  8057. void SetObjectAnimationAttr(const ResourceRef&);
  8058. void SetObstacleAvoidanceType(uint);
  8059. void SetQueryFilterType(uint);
  8060. void SetRadius(float);
  8061. void SetTargetPosition(const Vector3&);
  8062. void SetTargetVelocity(const Vector3&);
  8063. void SetTemporary(bool);
  8064. void SetUpdateNodePosition(bool);
  8065. const String& GetCategory() const;
  8066. const String& GetTypeName() const;
  8067. void UnsubscribeFromAllEvents();
  8068. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8069. void UnsubscribeFromEvent(Object, StringHash);
  8070. void UnsubscribeFromEvent(StringHash);
  8071. void UnsubscribeFromEvents(Object);
  8072. const Variant& GetGlobalVar(StringHash) const;
  8073. const VariantMap& GetGlobalVars() const;
  8074. const Vector3& GetTargetPosition() const;
  8075. const Vector3& GetTargetVelocity() const;
  8076. int WeakRefs() const;
  8077. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8078. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8079. void WriteLatestDataUpdate(Serializer&, uint8);
  8080. operator const Animatable() const;
  8081. operator const Component() const;
  8082. operator const Object() const;
  8083. operator const RefCounted() const;
  8084. operator const Serializable() const;
  8085. // Properties:
  8086. /* readonly */
  8087. Vector3 actualVelocity;
  8088. /* readonly */
  8089. CrowdAgentState agentState;
  8090. bool animationEnabled;
  8091. /* readonly */
  8092. bool arrived;
  8093. /* readonly */
  8094. Array<Variant> attributeDefaults;
  8095. /* readonly */
  8096. Array<AttributeInfo> attributeInfos;
  8097. Array<Variant> attributes;
  8098. /* readonly */
  8099. String category;
  8100. /* readonly */
  8101. Vector3 desiredVelocity;
  8102. bool enabled;
  8103. /* readonly */
  8104. bool enabledEffective;
  8105. Array<Variant> globalVar;
  8106. /* readonly */
  8107. VariantMap globalVars;
  8108. float height;
  8109. /* readonly */
  8110. uint id;
  8111. /* readonly */
  8112. bool inCrowd;
  8113. float maxAccel;
  8114. float maxSpeed;
  8115. NavigationPushiness navigationPushiness;
  8116. NavigationQuality navigationQuality;
  8117. /* readonly */
  8118. Node node;
  8119. /* readonly */
  8120. uint numAttributes;
  8121. ObjectAnimation objectAnimation;
  8122. uint obstacleAvoidanceType;
  8123. /* readonly */
  8124. Vector3 position;
  8125. uint queryFilterType;
  8126. float radius;
  8127. /* readonly */
  8128. int refs;
  8129. /* readonly */
  8130. bool replicated;
  8131. /* readonly */
  8132. bool requestedTarget;
  8133. /* readonly */
  8134. CrowdAgentRequestedTarget requestedTargetType;
  8135. Vector3 targetPosition;
  8136. /* readonly */
  8137. CrowdAgentTargetState targetState;
  8138. Vector3 targetVelocity;
  8139. bool temporary;
  8140. /* readonly */
  8141. StringHash type;
  8142. /* readonly */
  8143. String typeName;
  8144. bool updateNodePosition;
  8145. /* readonly */
  8146. int weakRefs;
  8147. };
  8148. class CrowdManager
  8149. {
  8150. public:
  8151. CrowdManager();
  8152. // Methods:
  8153. void AllocateNetworkState();
  8154. operator Animatable() const;
  8155. void ApplyAttributes();
  8156. void CleanupConnection(Connection);
  8157. operator Component() const;
  8158. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint) const;
  8159. void DrawDebugGeometry(DebugRenderer, bool);
  8160. void DrawDebugGeometry(bool);
  8161. Vector3 FindNearestPoint(const Vector3&, int);
  8162. Array<CrowdAgent> GetAgents(Node = null, bool = true) const;
  8163. bool GetAnimationEnabled() const;
  8164. float GetAreaCost(uint, uint) const;
  8165. Variant GetAttribute(const String&) const;
  8166. Variant GetAttribute(uint) const;
  8167. ValueAnimation GetAttributeAnimation(const String&) const;
  8168. float GetAttributeAnimationSpeed(const String&) const;
  8169. float GetAttributeAnimationTime(const String&) const;
  8170. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8171. Variant GetAttributeDefault(const String&) const;
  8172. Variant GetAttributeDefault(uint) const;
  8173. bool GetBlockEvents() const;
  8174. Component GetComponent(StringHash) const;
  8175. float GetDistanceToWall(const Vector3&, float, int);
  8176. VariantMap& GetEventDataMap() const;
  8177. Object GetEventSender() const;
  8178. uint16 GetExcludeFlags(uint) const;
  8179. uint GetID() const;
  8180. uint16 GetIncludeFlags(uint) const;
  8181. bool GetInterceptNetworkUpdate(const String&) const;
  8182. float GetMaxAgentRadius() const;
  8183. uint GetMaxAgents() const;
  8184. NavigationMesh GetNavigationMesh() const;
  8185. Node GetNode() const;
  8186. uint GetNumAreas(uint) const;
  8187. uint GetNumAttributes() const;
  8188. uint GetNumNetworkAttributes() const;
  8189. uint GetNumObstacleAvoidanceTypes() const;
  8190. uint GetNumQueryFilterTypes() const;
  8191. ObjectAnimation GetObjectAnimation() const;
  8192. ResourceRef GetObjectAnimationAttr() const;
  8193. Vector3 GetRandomPoint(int);
  8194. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  8195. Scene GetScene() const;
  8196. Object GetSubsystem(StringHash) const;
  8197. StringHash GetType() const;
  8198. bool HasEventHandlers() const;
  8199. bool HasSubscribedToEvent(Object, StringHash) const;
  8200. bool HasSubscribedToEvent(StringHash) const;
  8201. bool IsEnabled() const;
  8202. bool IsEnabledEffective() const;
  8203. bool IsInstanceOf(StringHash) const;
  8204. bool IsReplicated() const;
  8205. bool IsTemporary() const;
  8206. bool Load(Deserializer&);
  8207. bool LoadJSON(const JSONValue&);
  8208. bool LoadXML(const XMLElement&);
  8209. void MarkNetworkUpdate();
  8210. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, int = 3);
  8211. operator Object() const;
  8212. void OnEvent(Object, StringHash, VariantMap&);
  8213. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8214. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8215. void OnSetEnabled();
  8216. void PrepareNetworkUpdate();
  8217. Vector3 Raycast(const Vector3&, const Vector3&, int);
  8218. bool ReadDeltaUpdate(Deserializer&);
  8219. bool ReadLatestDataUpdate(Deserializer&);
  8220. operator RefCounted() const;
  8221. int Refs() const;
  8222. void Remove();
  8223. void RemoveAttributeAnimation(const String&);
  8224. void RemoveInstanceDefault();
  8225. void RemoveObjectAnimation();
  8226. void ResetCrowdTarget(Node = null);
  8227. void ResetToDefault();
  8228. bool Save(Serializer&) const;
  8229. bool SaveDefaultAttributes() const;
  8230. bool SaveJSON(JSONValue&) const;
  8231. bool SaveXML(XMLElement&) const;
  8232. void SendEvent(StringHash);
  8233. void SendEvent(StringHash, VariantMap&);
  8234. operator Serializable() const;
  8235. void SetAnimationEnabled(bool);
  8236. void SetAnimationTime(float);
  8237. void SetAreaCost(uint, uint, float);
  8238. bool SetAttribute(const String&, const Variant&);
  8239. bool SetAttribute(uint, const Variant&);
  8240. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8241. void SetAttributeAnimationSpeed(const String&, float);
  8242. void SetAttributeAnimationTime(const String&, float);
  8243. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8244. void SetBlockEvents(bool);
  8245. void SetCrowdTarget(const Vector3&, Node = null);
  8246. void SetCrowdVelocity(const Vector3&, Node = null);
  8247. void SetEnabled(bool);
  8248. void SetExcludeFlags(uint, uint16);
  8249. void SetGlobalVar(StringHash, const Variant&);
  8250. void SetIncludeFlags(uint, uint16);
  8251. void SetInstanceDefault(bool);
  8252. void SetInterceptNetworkUpdate(const String&, bool);
  8253. void SetMaxAgentRadius(float);
  8254. void SetMaxAgents(uint);
  8255. void SetNavigationMesh(NavigationMesh);
  8256. void SetObjectAnimation(ObjectAnimation);
  8257. void SetObjectAnimationAttr(const ResourceRef&);
  8258. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  8259. void SetTemporary(bool);
  8260. const String& GetCategory() const;
  8261. const String& GetTypeName() const;
  8262. void UnsubscribeFromAllEvents();
  8263. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8264. void UnsubscribeFromEvent(Object, StringHash);
  8265. void UnsubscribeFromEvent(StringHash);
  8266. void UnsubscribeFromEvents(Object);
  8267. const Variant& GetGlobalVar(StringHash) const;
  8268. const VariantMap& GetGlobalVars() const;
  8269. int WeakRefs() const;
  8270. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8271. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8272. void WriteLatestDataUpdate(Serializer&, uint8);
  8273. operator const Animatable() const;
  8274. operator const Component() const;
  8275. operator const Object() const;
  8276. operator const RefCounted() const;
  8277. operator const Serializable() const;
  8278. // Properties:
  8279. bool animationEnabled;
  8280. /* readonly */
  8281. Array<Variant> attributeDefaults;
  8282. /* readonly */
  8283. Array<AttributeInfo> attributeInfos;
  8284. Array<Variant> attributes;
  8285. /* readonly */
  8286. String category;
  8287. bool enabled;
  8288. /* readonly */
  8289. bool enabledEffective;
  8290. Array<Variant> globalVar;
  8291. /* readonly */
  8292. VariantMap globalVars;
  8293. /* readonly */
  8294. uint id;
  8295. float maxAgentRadius;
  8296. uint maxAgents;
  8297. NavigationMesh navMesh;
  8298. /* readonly */
  8299. Node node;
  8300. /* readonly */
  8301. Array<uint> numAreas;
  8302. /* readonly */
  8303. uint numAttributes;
  8304. /* readonly */
  8305. uint numObstacleAvoidanceTypes;
  8306. /* readonly */
  8307. uint numQueryFilterTypes;
  8308. ObjectAnimation objectAnimation;
  8309. /* readonly */
  8310. int refs;
  8311. /* readonly */
  8312. bool replicated;
  8313. bool temporary;
  8314. /* readonly */
  8315. StringHash type;
  8316. /* readonly */
  8317. String typeName;
  8318. /* readonly */
  8319. int weakRefs;
  8320. };
  8321. class CrowdObstacleAvoidanceParams
  8322. {
  8323. public:
  8324. // Methods:
  8325. CrowdObstacleAvoidanceParams& operator=(const CrowdObstacleAvoidanceParams&);
  8326. // Properties:
  8327. uint8 adaptiveDepth;
  8328. uint8 adaptiveDivs;
  8329. uint8 adaptiveRings;
  8330. uint8 gridSize;
  8331. float horizTime;
  8332. float velBias;
  8333. float weightCurVel;
  8334. float weightDesVel;
  8335. float weightSide;
  8336. float weightToi;
  8337. };
  8338. class Cursor
  8339. {
  8340. public:
  8341. Cursor();
  8342. Cursor(const String&in);
  8343. // Methods:
  8344. void AddChild(UIElement);
  8345. void AddTag(const String&);
  8346. void AddTags(Array<String>);
  8347. void AddTags(const String&, int8 = ';');
  8348. void AdjustScissor(IntRect&);
  8349. void AllocateNetworkState();
  8350. operator Animatable() const;
  8351. void ApplyAttributes();
  8352. void ApplyOSCursorShape();
  8353. operator BorderImage() const;
  8354. void BringToFront();
  8355. const Color& GetColor(Corner) const;
  8356. const Color& GetColorAttr() const;
  8357. const Color& GetDerivedColor() const;
  8358. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  8359. void DefineShape(CursorShape, Image, const IntRect&, const IntVector2&);
  8360. void DefineShape(const String&, Image, const IntRect&, const IntVector2&);
  8361. void DisableLayoutUpdate();
  8362. IntVector2 ElementToScreen(const IntVector2&);
  8363. void EnableLayoutUpdate();
  8364. bool FilterAttributes(XMLElement&) const;
  8365. uint FindChild(UIElement) const;
  8366. bool GetAnimationEnabled() const;
  8367. Variant GetAttribute(const String&) const;
  8368. Variant GetAttribute(uint) const;
  8369. ValueAnimation GetAttributeAnimation(const String&) const;
  8370. float GetAttributeAnimationSpeed(const String&) const;
  8371. float GetAttributeAnimationTime(const String&) const;
  8372. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8373. Variant GetAttributeDefault(const String&) const;
  8374. Variant GetAttributeDefault(uint) const;
  8375. BlendMode GetBlendMode() const;
  8376. bool GetBlockEvents() const;
  8377. bool GetBringToBack() const;
  8378. bool GetBringToFront() const;
  8379. UIElement GetChild(const String&, bool = false) const;
  8380. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  8381. UIElement GetChild(uint) const;
  8382. Array<UIElement> GetChildren() const;
  8383. Array<UIElement> GetChildren(bool) const;
  8384. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8385. bool GetClipChildren() const;
  8386. IntRect GetCombinedScreenRect();
  8387. XMLFile GetDefaultStyle(bool = true) const;
  8388. float GetDerivedOpacity() const;
  8389. uint GetDragButtonCombo() const;
  8390. uint GetDragButtonCount() const;
  8391. uint GetDragDropMode() const;
  8392. IntVector2 GetEffectiveMinSize() const;
  8393. UIElement GetElementEventSender() const;
  8394. bool GetEnableAnchor() const;
  8395. VariantMap& GetEventDataMap() const;
  8396. Object GetEventSender() const;
  8397. FocusMode GetFocusMode() const;
  8398. int GetHeight() const;
  8399. HorizontalAlignment GetHorizontalAlignment() const;
  8400. int GetIndent() const;
  8401. int GetIndentSpacing() const;
  8402. int GetIndentWidth() const;
  8403. bool GetInterceptNetworkUpdate(const String&) const;
  8404. int GetLayoutElementMaxSize() const;
  8405. LayoutMode GetLayoutMode() const;
  8406. int GetLayoutSpacing() const;
  8407. Material GetMaterial() const;
  8408. ResourceRef GetMaterialAttr() const;
  8409. int GetMaxHeight() const;
  8410. int GetMaxWidth() const;
  8411. int GetMinHeight() const;
  8412. int GetMinWidth() const;
  8413. uint GetNumAttributes() const;
  8414. uint GetNumChildren(bool = false) const;
  8415. uint GetNumNetworkAttributes() const;
  8416. ObjectAnimation GetObjectAnimation() const;
  8417. ResourceRef GetObjectAnimationAttr() const;
  8418. float GetOpacity() const;
  8419. UIElement GetParent() const;
  8420. int GetPriority() const;
  8421. UIElement GetRoot() const;
  8422. bool GetSortChildren() const;
  8423. Object GetSubsystem(StringHash) const;
  8424. Array<String> GetTags() const;
  8425. Texture GetTexture() const;
  8426. ResourceRef GetTextureAttr() const;
  8427. TraversalMode GetTraversalMode() const;
  8428. StringHash GetType() const;
  8429. bool GetUseDerivedOpacity() const;
  8430. bool GetUseSystemShapes() const;
  8431. VerticalAlignment GetVerticalAlignment() const;
  8432. int GetWidth() const;
  8433. bool HasColorGradient() const;
  8434. bool HasEventHandlers() const;
  8435. bool HasFocus() const;
  8436. bool HasSubscribedToEvent(Object, StringHash) const;
  8437. bool HasSubscribedToEvent(StringHash) const;
  8438. bool HasTag(const String&) const;
  8439. void InsertChild(uint, UIElement);
  8440. const IntRect& GetBorder() const;
  8441. const IntRect& GetClipBorder() const;
  8442. const IntRect& GetImageBorder() const;
  8443. const IntRect& GetImageRect() const;
  8444. const IntRect& GetLayoutBorder() const;
  8445. const IntVector2& GetChildOffset() const;
  8446. const IntVector2& GetDisabledOffset() const;
  8447. const IntVector2& GetHoverOffset() const;
  8448. const IntVector2& GetMaxOffset() const;
  8449. const IntVector2& GetMaxSize() const;
  8450. const IntVector2& GetMinOffset() const;
  8451. const IntVector2& GetMinSize() const;
  8452. const IntVector2& GetPosition() const;
  8453. const IntVector2& GetScreenPosition() const;
  8454. const IntVector2& GetSize() const;
  8455. bool IsChildOf(UIElement) const;
  8456. bool IsEditable() const;
  8457. bool IsElementEventSender() const;
  8458. bool IsEnabled() const;
  8459. bool IsEnabledSelf() const;
  8460. bool IsFixedHeight() const;
  8461. bool IsFixedSize() const;
  8462. bool IsFixedWidth() const;
  8463. bool IsHovering() const;
  8464. bool IsInside(IntVector2, bool);
  8465. bool IsInsideCombined(IntVector2, bool);
  8466. bool IsInstanceOf(StringHash) const;
  8467. bool IsInternal() const;
  8468. bool IsSelected() const;
  8469. bool IsTemporary() const;
  8470. bool IsTiled() const;
  8471. bool IsVisible() const;
  8472. bool IsVisibleEffective() const;
  8473. bool IsWheelHandler() const;
  8474. bool IsWithinScissor(const IntRect&);
  8475. bool Load(Deserializer&);
  8476. UIElement LoadChildXML(XMLFile, XMLFile);
  8477. UIElement LoadChildXML(const XMLElement&, XMLFile);
  8478. bool LoadJSON(const JSONValue&);
  8479. bool LoadXML(Deserializer&);
  8480. bool LoadXML(File);
  8481. bool LoadXML(VectorBuffer&);
  8482. bool LoadXML(XMLFile, XMLFile);
  8483. bool LoadXML(const XMLElement&);
  8484. bool LoadXML(const XMLElement&, XMLFile);
  8485. void MarkNetworkUpdate();
  8486. operator Object() const;
  8487. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  8488. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  8489. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  8490. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8491. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8492. bool OnDragDropFinish(UIElement);
  8493. bool OnDragDropTest(UIElement);
  8494. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8495. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8496. void OnEvent(Object, StringHash, VariantMap&);
  8497. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8498. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8499. void OnIndentSet();
  8500. void OnKey(uint, uint, uint);
  8501. void OnPositionSet(const IntVector2&);
  8502. void OnResize(const IntVector2&, const IntVector2&);
  8503. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8504. void OnSetEditable();
  8505. void OnTextInput(const String&);
  8506. void OnWheel(int, uint, uint);
  8507. bool ReadDeltaUpdate(Deserializer&);
  8508. bool ReadLatestDataUpdate(Deserializer&);
  8509. operator RefCounted() const;
  8510. int Refs() const;
  8511. void Remove();
  8512. void RemoveAllChildren();
  8513. void RemoveAllTags();
  8514. void RemoveAttributeAnimation(const String&);
  8515. void RemoveChild(UIElement, uint = 0);
  8516. void RemoveChild(uint);
  8517. void RemoveChildAtIndex(uint);
  8518. void RemoveInstanceDefault();
  8519. void RemoveObjectAnimation();
  8520. bool RemoveTag(const String&);
  8521. void ResetDeepEnabled();
  8522. void ResetToDefault();
  8523. bool Save(Serializer&) const;
  8524. bool SaveDefaultAttributes() const;
  8525. bool SaveJSON(JSONValue&) const;
  8526. bool SaveXML(File, const String& indentation = "\t");
  8527. bool SaveXML(Serializer&, const String& = "\t") const;
  8528. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  8529. bool SaveXML(XMLElement&) const;
  8530. IntVector2 ScreenToElement(const IntVector2&);
  8531. void SendEvent(StringHash);
  8532. void SendEvent(StringHash, VariantMap&);
  8533. operator Serializable() const;
  8534. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8535. void SetAnimationEnabled(bool);
  8536. void SetAnimationTime(float);
  8537. bool SetAttribute(const String&, const Variant&);
  8538. bool SetAttribute(uint, const Variant&);
  8539. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8540. void SetAttributeAnimationSpeed(const String&, float);
  8541. void SetAttributeAnimationTime(const String&, float);
  8542. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8543. void SetBlendMode(BlendMode);
  8544. void SetBlockEvents(bool);
  8545. void SetBorder(const IntRect&);
  8546. void SetBringToBack(bool);
  8547. void SetBringToFront(bool);
  8548. void SetChildOffset(const IntVector2&);
  8549. void SetClipBorder(const IntRect&);
  8550. void SetClipChildren(bool);
  8551. void SetColor(Corner, const Color&);
  8552. void SetColor(const Color&);
  8553. void SetDeepEnabled(bool);
  8554. void SetDefaultStyle(XMLFile);
  8555. void SetDisabledOffset(const IntVector2&);
  8556. void SetDisabledOffset(int, int);
  8557. void SetDragDropMode(uint);
  8558. void SetEditable(bool);
  8559. void SetElementEventSender(bool);
  8560. void SetEnableAnchor(bool);
  8561. void SetEnabled(bool);
  8562. void SetEnabledRecursive(bool);
  8563. void SetFixedHeight(int);
  8564. void SetFixedSize(const IntVector2&);
  8565. void SetFixedSize(int, int);
  8566. void SetFixedWidth(int);
  8567. void SetFocus(bool);
  8568. void SetFocusMode(FocusMode);
  8569. void SetFullImageRect();
  8570. void SetGlobalVar(StringHash, const Variant&);
  8571. void SetHeight(int);
  8572. void SetHorizontalAlignment(HorizontalAlignment);
  8573. void SetHoverOffset(const IntVector2&);
  8574. void SetHoverOffset(int, int);
  8575. void SetHovering(bool);
  8576. void SetImageBorder(const IntRect&);
  8577. void SetImageRect(const IntRect&);
  8578. void SetIndent(int);
  8579. void SetIndentSpacing(int);
  8580. void SetInstanceDefault(bool);
  8581. void SetInterceptNetworkUpdate(const String&, bool);
  8582. void SetInternal(bool);
  8583. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  8584. void SetLayoutBorder(const IntRect&);
  8585. void SetLayoutFlexScale(const Vector2&);
  8586. void SetLayoutMode(LayoutMode);
  8587. void SetLayoutSpacing(int);
  8588. void SetMaterial(Material);
  8589. void SetMaterialAttr(const ResourceRef&);
  8590. void SetMaxAnchor(const Vector2&);
  8591. void SetMaxAnchor(float, float);
  8592. void SetMaxHeight(int);
  8593. void SetMaxOffset(const IntVector2&);
  8594. void SetMaxSize(const IntVector2&);
  8595. void SetMaxSize(int, int);
  8596. void SetMaxWidth(int);
  8597. void SetMinAnchor(const Vector2&);
  8598. void SetMinAnchor(float, float);
  8599. void SetMinHeight(int);
  8600. void SetMinOffset(const IntVector2&);
  8601. void SetMinSize(const IntVector2&);
  8602. void SetMinSize(int, int);
  8603. void SetMinWidth(int);
  8604. void SetName(const String&);
  8605. void SetObjectAnimation(ObjectAnimation);
  8606. void SetObjectAnimationAttr(const ResourceRef&);
  8607. void SetOpacity(float);
  8608. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  8609. void SetPivot(const Vector2&);
  8610. void SetPivot(float, float);
  8611. void SetPosition(const IntVector2&);
  8612. void SetPosition(int, int);
  8613. void SetPriority(int);
  8614. void SetRenderTexture(Texture2D);
  8615. void SetSelected(bool);
  8616. void SetShape(CursorShape);
  8617. void SetShape(const String&);
  8618. void SetSize(const IntVector2&);
  8619. void SetSize(int, int);
  8620. void SetSortChildren(bool);
  8621. bool SetStyle(const String&, XMLFile = null);
  8622. bool SetStyle(const XMLElement&);
  8623. bool SetStyleAuto(XMLFile = null);
  8624. void SetTags(Array<String>);
  8625. void SetTemporary(bool);
  8626. void SetTexture(Texture);
  8627. void SetTextureAttr(const ResourceRef&);
  8628. void SetTiled(bool);
  8629. void SetTraversalMode(TraversalMode);
  8630. void SetUseDerivedOpacity(bool);
  8631. void SetUseSystemShapes(bool);
  8632. void SetVar(StringHash, const Variant&);
  8633. void SetVerticalAlignment(VerticalAlignment);
  8634. void SetVisible(bool);
  8635. void SetWidth(int);
  8636. void SortChildren();
  8637. const String& GetAppliedStyle() const;
  8638. const String& GetCategory() const;
  8639. const String& GetName() const;
  8640. const String& GetShape() const;
  8641. const String& GetTypeName() const;
  8642. operator UIElement() const;
  8643. void UnsubscribeFromAllEvents();
  8644. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8645. void UnsubscribeFromEvent(Object, StringHash);
  8646. void UnsubscribeFromEvent(StringHash);
  8647. void UnsubscribeFromEvents(Object);
  8648. void Update(float);
  8649. void UpdateLayout();
  8650. const Variant& GetGlobalVar(StringHash) const;
  8651. const Variant& GetVar(const StringHash&) const;
  8652. const VariantMap& GetGlobalVars() const;
  8653. const VariantMap& GetVars() const;
  8654. const Vector2& GetLayoutFlexScale() const;
  8655. const Vector2& GetMaxAnchor() const;
  8656. const Vector2& GetMinAnchor() const;
  8657. const Vector2& GetPivot() const;
  8658. int WeakRefs() const;
  8659. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8660. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8661. void WriteLatestDataUpdate(Serializer&, uint8);
  8662. operator const Animatable() const;
  8663. operator const BorderImage() const;
  8664. operator const Object() const;
  8665. operator const RefCounted() const;
  8666. operator const Serializable() const;
  8667. operator const UIElement() const;
  8668. // Properties:
  8669. bool animationEnabled;
  8670. /* readonly */
  8671. Array<Variant> attributeDefaults;
  8672. /* readonly */
  8673. Array<AttributeInfo> attributeInfos;
  8674. Array<Variant> attributes;
  8675. BlendMode blendMode;
  8676. IntRect border;
  8677. bool bringToBack;
  8678. bool bringToFront;
  8679. /* readonly */
  8680. String category;
  8681. /* readonly */
  8682. IntVector2 childOffset;
  8683. /* readonly */
  8684. Array<UIElement> children;
  8685. IntRect clipBorder;
  8686. bool clipChildren;
  8687. /* writeonly */
  8688. Color color;
  8689. /* readonly */
  8690. bool colorGradient;
  8691. Array<Color> colors;
  8692. /* readonly */
  8693. IntRect combinedScreenRect;
  8694. XMLFile defaultStyle;
  8695. /* readonly */
  8696. float derivedOpacity;
  8697. IntVector2 disabledOffset;
  8698. /* readonly */
  8699. uint dragButtonCombo;
  8700. /* readonly */
  8701. uint dragButtonCount;
  8702. uint dragDropMode;
  8703. bool editable;
  8704. bool elementEventSender;
  8705. bool enableAnchor;
  8706. bool enabled;
  8707. /* readonly */
  8708. bool enabledSelf;
  8709. /* readonly */
  8710. bool fixedHeight;
  8711. /* readonly */
  8712. bool fixedSize;
  8713. /* readonly */
  8714. bool fixedWidth;
  8715. bool focus;
  8716. FocusMode focusMode;
  8717. Array<Variant> globalVar;
  8718. /* readonly */
  8719. VariantMap globalVars;
  8720. int height;
  8721. HorizontalAlignment horizontalAlignment;
  8722. IntVector2 hoverOffset;
  8723. /* readonly */
  8724. bool hovering;
  8725. IntRect imageBorder;
  8726. IntRect imageRect;
  8727. int indent;
  8728. int indentSpacing;
  8729. /* readonly */
  8730. int indentWidth;
  8731. bool internal;
  8732. IntRect layoutBorder;
  8733. Vector2 layoutFlexScale;
  8734. LayoutMode layoutMode;
  8735. int layoutSpacing;
  8736. Material material;
  8737. Vector2 maxAnchor;
  8738. int maxHeight;
  8739. IntVector2 maxOffset;
  8740. IntVector2 maxSize;
  8741. int maxWidth;
  8742. Vector2 minAnchor;
  8743. int minHeight;
  8744. IntVector2 minOffset;
  8745. IntVector2 minSize;
  8746. int minWidth;
  8747. String name;
  8748. /* readonly */
  8749. uint numAllChildren;
  8750. /* readonly */
  8751. uint numAttributes;
  8752. /* readonly */
  8753. uint numChildren;
  8754. ObjectAnimation objectAnimation;
  8755. float opacity;
  8756. UIElement parent;
  8757. Vector2 pivot;
  8758. IntVector2 position;
  8759. int priority;
  8760. /* readonly */
  8761. int refs;
  8762. /* readonly */
  8763. UIElement root;
  8764. /* readonly */
  8765. IntVector2 screenPosition;
  8766. bool selected;
  8767. String shape;
  8768. IntVector2 size;
  8769. bool sortChildren;
  8770. String style;
  8771. /* readonly */
  8772. Array<String> tags;
  8773. bool temporary;
  8774. Texture texture;
  8775. bool tiled;
  8776. TraversalMode traversalMode;
  8777. /* readonly */
  8778. StringHash type;
  8779. /* readonly */
  8780. String typeName;
  8781. bool useDerivedOpacity;
  8782. bool useSystemShapes;
  8783. /* readonly */
  8784. VariantMap vars;
  8785. VerticalAlignment verticalAlignment;
  8786. bool visible;
  8787. /* readonly */
  8788. bool visibleEffective;
  8789. /* readonly */
  8790. int weakRefs;
  8791. int width;
  8792. };
  8793. class CursorShapeInfo
  8794. {
  8795. public:
  8796. ~CursorShapeInfo();
  8797. CursorShapeInfo();
  8798. CursorShapeInfo(int);
  8799. // Methods:
  8800. CursorShapeInfo& operator=(const CursorShapeInfo&);
  8801. // Properties:
  8802. IntVector2 hotSpot;
  8803. IntRect imageRect;
  8804. int systemCursor;
  8805. bool systemDefined;
  8806. };
  8807. class CustomGeometry
  8808. {
  8809. public:
  8810. CustomGeometry();
  8811. // Methods:
  8812. void AddLight(Light);
  8813. void AddVertexLight(Light);
  8814. void AllocateNetworkState();
  8815. operator Animatable() const;
  8816. void ApplyAttributes();
  8817. void BeginGeometry(uint, PrimitiveType);
  8818. const BoundingBox& GetBoundingBox() const;
  8819. const BoundingBox& GetWorldBoundingBox();
  8820. void CleanupConnection(Connection);
  8821. void Clear();
  8822. void Commit();
  8823. operator Component() const;
  8824. void DefineColor(const Color&);
  8825. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  8826. void DefineNormal(const Vector3&);
  8827. void DefineTangent(const Vector4&);
  8828. void DefineTexCoord(const Vector2&);
  8829. void DefineVertex(const Vector3&);
  8830. void DrawDebugGeometry(DebugRenderer, bool);
  8831. bool DrawOcclusion(OcclusionBuffer);
  8832. operator Drawable() const;
  8833. bool GetAnimationEnabled() const;
  8834. Variant GetAttribute(const String&) const;
  8835. Variant GetAttribute(uint) const;
  8836. ValueAnimation GetAttributeAnimation(const String&) const;
  8837. float GetAttributeAnimationSpeed(const String&) const;
  8838. float GetAttributeAnimationTime(const String&) const;
  8839. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8840. Variant GetAttributeDefault(const String&) const;
  8841. Variant GetAttributeDefault(uint) const;
  8842. bool GetBlockEvents() const;
  8843. bool GetCastShadows() const;
  8844. Component GetComponent(StringHash) const;
  8845. float GetDistance() const;
  8846. float GetDrawDistance() const;
  8847. uint8 GetDrawableFlags() const;
  8848. VariantMap& GetEventDataMap() const;
  8849. Object GetEventSender() const;
  8850. Light GetFirstLight() const;
  8851. uint GetID() const;
  8852. bool GetInterceptNetworkUpdate(const String&) const;
  8853. uint GetLightMask() const;
  8854. Array<Light> GetLights() const;
  8855. float GetLodBias() const;
  8856. float GetLodDistance() const;
  8857. Geometry GetLodGeometry(uint, uint);
  8858. Material GetMaterial(uint = 0) const;
  8859. uint GetMaxLights() const;
  8860. float GetMaxZ() const;
  8861. float GetMinZ() const;
  8862. Node GetNode() const;
  8863. uint GetNumAttributes() const;
  8864. uint GetNumGeometries() const;
  8865. uint GetNumNetworkAttributes() const;
  8866. uint GetNumOccluderTriangles();
  8867. uint GetNumVertices(uint) const;
  8868. ObjectAnimation GetObjectAnimation() const;
  8869. ResourceRef GetObjectAnimationAttr() const;
  8870. Scene GetScene() const;
  8871. float GetShadowDistance() const;
  8872. uint GetShadowMask() const;
  8873. float GetSortValue() const;
  8874. Object GetSubsystem(StringHash) const;
  8875. StringHash GetType() const;
  8876. UpdateGeometryType GetUpdateGeometryType();
  8877. CustomGeometryVertex GetVertex(uint, uint);
  8878. Array<Light> GetVertexLights() const;
  8879. uint GetViewMask() const;
  8880. Zone GetZone() const;
  8881. uint GetZoneMask() const;
  8882. bool HasBasePass(uint) const;
  8883. bool HasEventHandlers() const;
  8884. bool HasSubscribedToEvent(Object, StringHash) const;
  8885. bool HasSubscribedToEvent(StringHash) const;
  8886. bool IsDynamic() const;
  8887. bool IsEnabled() const;
  8888. bool IsEnabledEffective() const;
  8889. bool IsInView() const;
  8890. bool IsInView(Camera) const;
  8891. bool IsInView(const FrameInfo&, bool = false) const;
  8892. bool IsInstanceOf(StringHash) const;
  8893. bool IsOccludee() const;
  8894. bool IsOccluder() const;
  8895. bool IsReplicated() const;
  8896. bool IsTemporary() const;
  8897. bool IsZoneDirty() const;
  8898. void LimitLights();
  8899. void LimitVertexLights(bool);
  8900. bool Load(Deserializer&);
  8901. bool LoadJSON(const JSONValue&);
  8902. bool LoadXML(const XMLElement&);
  8903. void MarkForUpdate();
  8904. void MarkInView(const FrameInfo&);
  8905. void MarkInView(uint);
  8906. void MarkNetworkUpdate();
  8907. operator Object() const;
  8908. void OnEvent(Object, StringHash, VariantMap&);
  8909. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8910. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8911. void OnSetEnabled();
  8912. void PrepareNetworkUpdate();
  8913. bool ReadDeltaUpdate(Deserializer&);
  8914. bool ReadLatestDataUpdate(Deserializer&);
  8915. operator RefCounted() const;
  8916. int Refs() const;
  8917. void Remove();
  8918. void RemoveAttributeAnimation(const String&);
  8919. void RemoveInstanceDefault();
  8920. void RemoveObjectAnimation();
  8921. void ResetToDefault();
  8922. const ResourceRefList& GetMaterialsAttr() const;
  8923. bool Save(Serializer&) const;
  8924. bool SaveDefaultAttributes() const;
  8925. bool SaveJSON(JSONValue&) const;
  8926. bool SaveXML(XMLElement&) const;
  8927. void SendEvent(StringHash);
  8928. void SendEvent(StringHash, VariantMap&);
  8929. operator Serializable() const;
  8930. void SetAnimationEnabled(bool);
  8931. void SetAnimationTime(float);
  8932. bool SetAttribute(const String&, const Variant&);
  8933. bool SetAttribute(uint, const Variant&);
  8934. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8935. void SetAttributeAnimationSpeed(const String&, float);
  8936. void SetAttributeAnimationTime(const String&, float);
  8937. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8938. void SetBasePass(uint);
  8939. void SetBlockEvents(bool);
  8940. void SetCastShadows(bool);
  8941. void SetDrawDistance(float);
  8942. void SetDynamic(bool);
  8943. void SetEnabled(bool);
  8944. void SetGlobalVar(StringHash, const Variant&);
  8945. void SetInstanceDefault(bool);
  8946. void SetInterceptNetworkUpdate(const String&, bool);
  8947. void SetLightMask(uint);
  8948. void SetLodBias(float);
  8949. void SetMaterial(Material);
  8950. bool SetMaterial(uint, Material);
  8951. void SetMaterialsAttr(const ResourceRefList&);
  8952. void SetMaxLights(uint);
  8953. void SetMinMaxZ(float, float);
  8954. void SetNumGeometries(uint);
  8955. void SetObjectAnimation(ObjectAnimation);
  8956. void SetObjectAnimationAttr(const ResourceRef&);
  8957. void SetOccludee(bool);
  8958. void SetOccluder(bool);
  8959. void SetShadowDistance(float);
  8960. void SetShadowMask(uint);
  8961. void SetSortValue(float);
  8962. void SetTemporary(bool);
  8963. void SetViewMask(uint);
  8964. void SetZone(Zone, bool = false);
  8965. void SetZoneMask(uint);
  8966. const String& GetCategory() const;
  8967. const String& GetTypeName() const;
  8968. void UnsubscribeFromAllEvents();
  8969. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8970. void UnsubscribeFromEvent(Object, StringHash);
  8971. void UnsubscribeFromEvent(StringHash);
  8972. void UnsubscribeFromEvents(Object);
  8973. void Update(const FrameInfo&);
  8974. void UpdateBatches(const FrameInfo&);
  8975. void UpdateGeometry(const FrameInfo&);
  8976. const Variant& GetGlobalVar(StringHash) const;
  8977. const VariantMap& GetGlobalVars() const;
  8978. int WeakRefs() const;
  8979. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8980. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8981. void WriteLatestDataUpdate(Serializer&, uint8);
  8982. operator const Animatable() const;
  8983. operator const Component() const;
  8984. operator const Drawable() const;
  8985. operator const Object() const;
  8986. operator const RefCounted() const;
  8987. operator const Serializable() const;
  8988. // Properties:
  8989. bool animationEnabled;
  8990. /* readonly */
  8991. Array<Variant> attributeDefaults;
  8992. /* readonly */
  8993. Array<AttributeInfo> attributeInfos;
  8994. Array<Variant> attributes;
  8995. /* readonly */
  8996. BoundingBox boundingBox;
  8997. bool castShadows;
  8998. /* readonly */
  8999. String category;
  9000. float drawDistance;
  9001. bool dynamic;
  9002. bool enabled;
  9003. /* readonly */
  9004. bool enabledEffective;
  9005. Array<Variant> globalVar;
  9006. /* readonly */
  9007. VariantMap globalVars;
  9008. /* readonly */
  9009. uint id;
  9010. /* readonly */
  9011. bool inView;
  9012. uint lightMask;
  9013. float lodBias;
  9014. /* writeonly */
  9015. Material material;
  9016. Array<Material> materials;
  9017. uint maxLights;
  9018. /* readonly */
  9019. Node node;
  9020. /* readonly */
  9021. uint numAttributes;
  9022. uint numGeometries;
  9023. /* readonly */
  9024. Array<uint> numVertices;
  9025. ObjectAnimation objectAnimation;
  9026. bool occludee;
  9027. bool occluder;
  9028. /* readonly */
  9029. int refs;
  9030. /* readonly */
  9031. bool replicated;
  9032. float shadowDistance;
  9033. uint shadowMask;
  9034. bool temporary;
  9035. /* readonly */
  9036. StringHash type;
  9037. /* readonly */
  9038. String typeName;
  9039. uint viewMask;
  9040. /* readonly */
  9041. int weakRefs;
  9042. /* readonly */
  9043. BoundingBox worldBoundingBox;
  9044. /* readonly */
  9045. Zone zone;
  9046. uint zoneMask;
  9047. };
  9048. class CustomGeometryVertex
  9049. {
  9050. public:
  9051. // Methods:
  9052. CustomGeometryVertex& operator=(const CustomGeometryVertex&);
  9053. // Properties:
  9054. uint color;
  9055. Vector3 normal;
  9056. Vector3 position;
  9057. Vector4 tangent;
  9058. Vector2 texCoord;
  9059. };
  9060. class Database
  9061. {
  9062. public:
  9063. Database();
  9064. // Methods:
  9065. DbConnection Connect(const String&);
  9066. void Disconnect(DbConnection);
  9067. bool GetBlockEvents() const;
  9068. VariantMap& GetEventDataMap() const;
  9069. Object GetEventSender() const;
  9070. uint GetPoolSize() const;
  9071. Object GetSubsystem(StringHash) const;
  9072. StringHash GetType() const;
  9073. bool HasEventHandlers() const;
  9074. bool HasSubscribedToEvent(Object, StringHash) const;
  9075. bool HasSubscribedToEvent(StringHash) const;
  9076. bool IsInstanceOf(StringHash) const;
  9077. bool IsPooling() const;
  9078. operator Object() const;
  9079. void OnEvent(Object, StringHash, VariantMap&);
  9080. operator RefCounted() const;
  9081. int Refs() const;
  9082. void SendEvent(StringHash);
  9083. void SendEvent(StringHash, VariantMap&);
  9084. void SetBlockEvents(bool);
  9085. void SetGlobalVar(StringHash, const Variant&);
  9086. void SetPoolSize(uint);
  9087. const String& GetCategory() const;
  9088. const String& GetTypeName() const;
  9089. void UnsubscribeFromAllEvents();
  9090. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9091. void UnsubscribeFromEvent(Object, StringHash);
  9092. void UnsubscribeFromEvent(StringHash);
  9093. void UnsubscribeFromEvents(Object);
  9094. const Variant& GetGlobalVar(StringHash) const;
  9095. const VariantMap& GetGlobalVars() const;
  9096. int WeakRefs() const;
  9097. operator const Object() const;
  9098. operator const RefCounted() const;
  9099. // Properties:
  9100. /* readonly */
  9101. String category;
  9102. Array<Variant> globalVar;
  9103. /* readonly */
  9104. VariantMap globalVars;
  9105. uint poolSize;
  9106. /* readonly */
  9107. bool pooling;
  9108. /* readonly */
  9109. int refs;
  9110. /* readonly */
  9111. StringHash type;
  9112. /* readonly */
  9113. String typeName;
  9114. /* readonly */
  9115. int weakRefs;
  9116. };
  9117. class DbConnection
  9118. {
  9119. public:
  9120. // Methods:
  9121. DbResult Execute(const String&, bool useCursorEvent = false);
  9122. bool GetBlockEvents() const;
  9123. VariantMap& GetEventDataMap() const;
  9124. Object GetEventSender() const;
  9125. Object GetSubsystem(StringHash) const;
  9126. StringHash GetType() const;
  9127. bool HasEventHandlers() const;
  9128. bool HasSubscribedToEvent(Object, StringHash) const;
  9129. bool HasSubscribedToEvent(StringHash) const;
  9130. bool IsInstanceOf(StringHash) const;
  9131. void OnEvent(Object, StringHash, VariantMap&);
  9132. int Refs() const;
  9133. void SendEvent(StringHash);
  9134. void SendEvent(StringHash, VariantMap&);
  9135. void SetBlockEvents(bool);
  9136. void SetGlobalVar(StringHash, const Variant&);
  9137. const String& GetCategory() const;
  9138. const String& GetTypeName() const;
  9139. void UnsubscribeFromAllEvents();
  9140. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9141. void UnsubscribeFromEvent(Object, StringHash);
  9142. void UnsubscribeFromEvent(StringHash);
  9143. void UnsubscribeFromEvents(Object);
  9144. const Variant& GetGlobalVar(StringHash) const;
  9145. const VariantMap& GetGlobalVars() const;
  9146. int WeakRefs() const;
  9147. // Properties:
  9148. /* readonly */
  9149. String category;
  9150. /* readonly */
  9151. bool connected;
  9152. /* readonly */
  9153. String connectionString;
  9154. Array<Variant> globalVar;
  9155. /* readonly */
  9156. VariantMap globalVars;
  9157. /* readonly */
  9158. int refs;
  9159. /* readonly */
  9160. StringHash type;
  9161. /* readonly */
  9162. String typeName;
  9163. /* readonly */
  9164. int weakRefs;
  9165. };
  9166. class DbResult
  9167. {
  9168. public:
  9169. ~DbResult();
  9170. DbResult();
  9171. DbResult(const DbResult&in);
  9172. // Methods:
  9173. DbResult& operator=(const DbResult&);
  9174. // Properties:
  9175. /* readonly */
  9176. Array<String> columns;
  9177. /* readonly */
  9178. int64 numAffectedRows;
  9179. /* readonly */
  9180. uint numColumns;
  9181. /* readonly */
  9182. uint numRows;
  9183. /* readonly */
  9184. Array<Array<Variant>> row;
  9185. };
  9186. class DebugHud
  9187. {
  9188. public:
  9189. DebugHud();
  9190. // Methods:
  9191. void ClearAppStats();
  9192. bool GetBlockEvents() const;
  9193. XMLFile GetDefaultStyle() const;
  9194. VariantMap& GetEventDataMap() const;
  9195. Object GetEventSender() const;
  9196. Text GetMemoryText() const;
  9197. uint GetMode() const;
  9198. Text GetModeText() const;
  9199. float GetProfilerInterval() const;
  9200. uint GetProfilerMaxDepth() const;
  9201. Text GetProfilerText() const;
  9202. Text GetStatsText() const;
  9203. Object GetSubsystem(StringHash) const;
  9204. StringHash GetType() const;
  9205. bool GetUseRendererStats() const;
  9206. bool HasEventHandlers() const;
  9207. bool HasSubscribedToEvent(Object, StringHash) const;
  9208. bool HasSubscribedToEvent(StringHash) const;
  9209. bool IsInstanceOf(StringHash) const;
  9210. operator Object() const;
  9211. void OnEvent(Object, StringHash, VariantMap&);
  9212. operator RefCounted() const;
  9213. int Refs() const;
  9214. bool ResetAppStats(const String&);
  9215. void SendEvent(StringHash);
  9216. void SendEvent(StringHash, VariantMap&);
  9217. void SetAppStats(const String&, const String&);
  9218. void SetAppStats(const String&, const Variant&);
  9219. void SetBlockEvents(bool);
  9220. void SetDefaultStyle(XMLFile);
  9221. void SetGlobalVar(StringHash, const Variant&);
  9222. void SetMode(uint);
  9223. void SetProfilerInterval(float);
  9224. void SetProfilerMaxDepth(uint);
  9225. void SetUseRendererStats(bool);
  9226. const String& GetCategory() const;
  9227. const String& GetTypeName() const;
  9228. void Toggle(uint);
  9229. void ToggleAll();
  9230. void UnsubscribeFromAllEvents();
  9231. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9232. void UnsubscribeFromEvent(Object, StringHash);
  9233. void UnsubscribeFromEvent(StringHash);
  9234. void UnsubscribeFromEvents(Object);
  9235. void Update();
  9236. const Variant& GetGlobalVar(StringHash) const;
  9237. const VariantMap& GetGlobalVars() const;
  9238. int WeakRefs() const;
  9239. operator const Object() const;
  9240. operator const RefCounted() const;
  9241. // Properties:
  9242. /* readonly */
  9243. String category;
  9244. XMLFile defaultStyle;
  9245. Array<Variant> globalVar;
  9246. /* readonly */
  9247. VariantMap globalVars;
  9248. /* readonly */
  9249. Text memoryText;
  9250. uint mode;
  9251. /* readonly */
  9252. Text modeText;
  9253. float profilerInterval;
  9254. uint profilerMaxDepth;
  9255. /* readonly */
  9256. Text profilerText;
  9257. /* readonly */
  9258. int refs;
  9259. /* readonly */
  9260. Text statsText;
  9261. /* readonly */
  9262. StringHash type;
  9263. /* readonly */
  9264. String typeName;
  9265. bool useRendererStats;
  9266. /* readonly */
  9267. int weakRefs;
  9268. };
  9269. class DebugLine
  9270. {
  9271. public:
  9272. ~DebugLine();
  9273. DebugLine();
  9274. DebugLine(const Vector3&in, const Vector3&in, uint);
  9275. // Methods:
  9276. DebugLine& operator=(const DebugLine&);
  9277. // Properties:
  9278. uint color;
  9279. Vector3 end;
  9280. Vector3 start;
  9281. };
  9282. class DebugRenderer
  9283. {
  9284. public:
  9285. DebugRenderer();
  9286. // Methods:
  9287. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  9288. void AddBoundingBox(const BoundingBox&, const Matrix3x4&, const Color&, bool = true, bool = false);
  9289. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  9290. void AddCross(const Vector3&, float, const Color&, bool = true);
  9291. void AddCylinder(const Vector3&, float, float, const Color&, bool = true);
  9292. void AddFrustum(const Frustum&, const Color&, bool = true);
  9293. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  9294. void AddLine(const Vector3&, const Vector3&, uint, bool = true);
  9295. void AddNode(Node, float = 1.0f, bool = true);
  9296. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  9297. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, uint, bool = true);
  9298. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  9299. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  9300. void AddSkeleton(const Skeleton&, const Color&, bool = true);
  9301. void AddSphere(const Sphere&, const Color&, bool = true);
  9302. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  9303. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  9304. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, uint, bool = true);
  9305. void AllocateNetworkState();
  9306. operator Animatable() const;
  9307. void ApplyAttributes();
  9308. void CleanupConnection(Connection);
  9309. operator Component() const;
  9310. void DrawDebugGeometry(DebugRenderer, bool);
  9311. const Frustum& GetFrustum() const;
  9312. bool GetAnimationEnabled() const;
  9313. Variant GetAttribute(const String&) const;
  9314. Variant GetAttribute(uint) const;
  9315. ValueAnimation GetAttributeAnimation(const String&) const;
  9316. float GetAttributeAnimationSpeed(const String&) const;
  9317. float GetAttributeAnimationTime(const String&) const;
  9318. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9319. Variant GetAttributeDefault(const String&) const;
  9320. Variant GetAttributeDefault(uint) const;
  9321. bool GetBlockEvents() const;
  9322. Component GetComponent(StringHash) const;
  9323. VariantMap& GetEventDataMap() const;
  9324. Object GetEventSender() const;
  9325. uint GetID() const;
  9326. bool GetInterceptNetworkUpdate(const String&) const;
  9327. bool GetLineAntiAlias() const;
  9328. Node GetNode() const;
  9329. uint GetNumAttributes() const;
  9330. uint GetNumNetworkAttributes() const;
  9331. ObjectAnimation GetObjectAnimation() const;
  9332. ResourceRef GetObjectAnimationAttr() const;
  9333. Scene GetScene() const;
  9334. Object GetSubsystem(StringHash) const;
  9335. StringHash GetType() const;
  9336. bool HasContent() const;
  9337. bool HasEventHandlers() const;
  9338. bool HasSubscribedToEvent(Object, StringHash) const;
  9339. bool HasSubscribedToEvent(StringHash) const;
  9340. bool IsEnabled() const;
  9341. bool IsEnabledEffective() const;
  9342. bool IsInside(const BoundingBox&) const;
  9343. bool IsInstanceOf(StringHash) const;
  9344. bool IsReplicated() const;
  9345. bool IsTemporary() const;
  9346. bool Load(Deserializer&);
  9347. bool LoadJSON(const JSONValue&);
  9348. bool LoadXML(const XMLElement&);
  9349. void MarkNetworkUpdate();
  9350. const Matrix3x4& GetView() const;
  9351. const Matrix4& GetProjection() const;
  9352. operator Object() const;
  9353. void OnEvent(Object, StringHash, VariantMap&);
  9354. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9355. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9356. void OnSetEnabled();
  9357. void PrepareNetworkUpdate();
  9358. bool ReadDeltaUpdate(Deserializer&);
  9359. bool ReadLatestDataUpdate(Deserializer&);
  9360. operator RefCounted() const;
  9361. int Refs() const;
  9362. void Remove();
  9363. void RemoveAttributeAnimation(const String&);
  9364. void RemoveInstanceDefault();
  9365. void RemoveObjectAnimation();
  9366. void Render();
  9367. void ResetToDefault();
  9368. bool Save(Serializer&) const;
  9369. bool SaveDefaultAttributes() const;
  9370. bool SaveJSON(JSONValue&) const;
  9371. bool SaveXML(XMLElement&) const;
  9372. void SendEvent(StringHash);
  9373. void SendEvent(StringHash, VariantMap&);
  9374. operator Serializable() const;
  9375. void SetAnimationEnabled(bool);
  9376. void SetAnimationTime(float);
  9377. bool SetAttribute(const String&, const Variant&);
  9378. bool SetAttribute(uint, const Variant&);
  9379. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9380. void SetAttributeAnimationSpeed(const String&, float);
  9381. void SetAttributeAnimationTime(const String&, float);
  9382. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9383. void SetBlockEvents(bool);
  9384. void SetEnabled(bool);
  9385. void SetGlobalVar(StringHash, const Variant&);
  9386. void SetInstanceDefault(bool);
  9387. void SetInterceptNetworkUpdate(const String&, bool);
  9388. void SetLineAntiAlias(bool);
  9389. void SetObjectAnimation(ObjectAnimation);
  9390. void SetObjectAnimationAttr(const ResourceRef&);
  9391. void SetTemporary(bool);
  9392. void SetView(Camera);
  9393. const String& GetCategory() const;
  9394. const String& GetTypeName() const;
  9395. void UnsubscribeFromAllEvents();
  9396. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9397. void UnsubscribeFromEvent(Object, StringHash);
  9398. void UnsubscribeFromEvent(StringHash);
  9399. void UnsubscribeFromEvents(Object);
  9400. const Variant& GetGlobalVar(StringHash) const;
  9401. const VariantMap& GetGlobalVars() const;
  9402. int WeakRefs() const;
  9403. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  9404. void WriteInitialDeltaUpdate(Serializer&, uint8);
  9405. void WriteLatestDataUpdate(Serializer&, uint8);
  9406. operator const Animatable() const;
  9407. operator const Component() const;
  9408. operator const Object() const;
  9409. operator const RefCounted() const;
  9410. operator const Serializable() const;
  9411. // Properties:
  9412. bool animationEnabled;
  9413. /* readonly */
  9414. Array<Variant> attributeDefaults;
  9415. /* readonly */
  9416. Array<AttributeInfo> attributeInfos;
  9417. Array<Variant> attributes;
  9418. /* readonly */
  9419. String category;
  9420. bool enabled;
  9421. /* readonly */
  9422. bool enabledEffective;
  9423. Array<Variant> globalVar;
  9424. /* readonly */
  9425. VariantMap globalVars;
  9426. /* readonly */
  9427. uint id;
  9428. bool lineAntiAlias;
  9429. /* readonly */
  9430. Node node;
  9431. /* readonly */
  9432. uint numAttributes;
  9433. ObjectAnimation objectAnimation;
  9434. /* readonly */
  9435. int refs;
  9436. /* readonly */
  9437. bool replicated;
  9438. bool temporary;
  9439. /* readonly */
  9440. StringHash type;
  9441. /* readonly */
  9442. String typeName;
  9443. /* readonly */
  9444. int weakRefs;
  9445. };
  9446. class DebugTriangle
  9447. {
  9448. public:
  9449. ~DebugTriangle();
  9450. DebugTriangle();
  9451. DebugTriangle(const Vector3&in, const Vector3&in, const Vector3&in, uint);
  9452. // Methods:
  9453. DebugTriangle& operator=(const DebugTriangle&);
  9454. // Properties:
  9455. uint color;
  9456. Vector3 v1;
  9457. Vector3 v2;
  9458. Vector3 v3;
  9459. };
  9460. class Decal
  9461. {
  9462. public:
  9463. ~Decal();
  9464. Decal();
  9465. // Methods:
  9466. Decal& operator=(const Decal&);
  9467. void AddVertex(const DecalVertex&);
  9468. void CalculateBoundingBox();
  9469. // Properties:
  9470. BoundingBox boundingBox;
  9471. float timeToLive;
  9472. float timer;
  9473. };
  9474. class DecalSet
  9475. {
  9476. public:
  9477. DecalSet();
  9478. // Methods:
  9479. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0f, float = 0.1f, uint = M_MAX_UNSIGNED);
  9480. void AddLight(Light);
  9481. void AddVertexLight(Light);
  9482. void AllocateNetworkState();
  9483. operator Animatable() const;
  9484. void ApplyAttributes();
  9485. const BoundingBox& GetBoundingBox() const;
  9486. const BoundingBox& GetWorldBoundingBox();
  9487. void CleanupConnection(Connection);
  9488. operator Component() const;
  9489. void DrawDebugGeometry(DebugRenderer, bool);
  9490. bool DrawOcclusion(OcclusionBuffer);
  9491. operator Drawable() const;
  9492. bool GetAnimationEnabled() const;
  9493. Variant GetAttribute(const String&) const;
  9494. Variant GetAttribute(uint) const;
  9495. ValueAnimation GetAttributeAnimation(const String&) const;
  9496. float GetAttributeAnimationSpeed(const String&) const;
  9497. float GetAttributeAnimationTime(const String&) const;
  9498. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9499. Variant GetAttributeDefault(const String&) const;
  9500. Variant GetAttributeDefault(uint) const;
  9501. bool GetBlockEvents() const;
  9502. bool GetCastShadows() const;
  9503. Component GetComponent(StringHash) const;
  9504. float GetDistance() const;
  9505. float GetDrawDistance() const;
  9506. uint8 GetDrawableFlags() const;
  9507. VariantMap& GetEventDataMap() const;
  9508. Object GetEventSender() const;
  9509. Light GetFirstLight() const;
  9510. uint GetID() const;
  9511. bool GetInterceptNetworkUpdate(const String&) const;
  9512. uint GetLightMask() const;
  9513. Array<Light> GetLights() const;
  9514. float GetLodBias() const;
  9515. float GetLodDistance() const;
  9516. Geometry GetLodGeometry(uint, uint);
  9517. Material GetMaterial() const;
  9518. ResourceRef GetMaterialAttr() const;
  9519. uint GetMaxIndices() const;
  9520. uint GetMaxLights() const;
  9521. uint GetMaxVertices() const;
  9522. float GetMaxZ() const;
  9523. float GetMinZ() const;
  9524. Node GetNode() const;
  9525. uint GetNumAttributes() const;
  9526. uint GetNumDecals() const;
  9527. uint GetNumIndices() const;
  9528. uint GetNumNetworkAttributes() const;
  9529. uint GetNumOccluderTriangles();
  9530. uint GetNumVertices() const;
  9531. ObjectAnimation GetObjectAnimation() const;
  9532. ResourceRef GetObjectAnimationAttr() const;
  9533. bool GetOptimizeBufferSize() const;
  9534. Scene GetScene() const;
  9535. float GetShadowDistance() const;
  9536. uint GetShadowMask() const;
  9537. float GetSortValue() const;
  9538. Object GetSubsystem(StringHash) const;
  9539. StringHash GetType() const;
  9540. UpdateGeometryType GetUpdateGeometryType();
  9541. Array<Light> GetVertexLights() const;
  9542. uint GetViewMask() const;
  9543. Zone GetZone() const;
  9544. uint GetZoneMask() const;
  9545. bool HasBasePass(uint) const;
  9546. bool HasEventHandlers() const;
  9547. bool HasSubscribedToEvent(Object, StringHash) const;
  9548. bool HasSubscribedToEvent(StringHash) const;
  9549. bool IsEnabled() const;
  9550. bool IsEnabledEffective() const;
  9551. bool IsInView() const;
  9552. bool IsInView(Camera) const;
  9553. bool IsInView(const FrameInfo&, bool = false) const;
  9554. bool IsInstanceOf(StringHash) const;
  9555. bool IsOccludee() const;
  9556. bool IsOccluder() const;
  9557. bool IsReplicated() const;
  9558. bool IsTemporary() const;
  9559. bool IsZoneDirty() const;
  9560. void LimitLights();
  9561. void LimitVertexLights(bool);
  9562. bool Load(Deserializer&);
  9563. bool LoadJSON(const JSONValue&);
  9564. bool LoadXML(const XMLElement&);
  9565. void MarkForUpdate();
  9566. void MarkInView(const FrameInfo&);
  9567. void MarkInView(uint);
  9568. void MarkNetworkUpdate();
  9569. operator Object() const;
  9570. void OnEvent(Object, StringHash, VariantMap&);
  9571. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9572. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9573. void OnSetEnabled();
  9574. void PrepareNetworkUpdate();
  9575. bool ReadDeltaUpdate(Deserializer&);
  9576. bool ReadLatestDataUpdate(Deserializer&);
  9577. operator RefCounted() const;
  9578. int Refs() const;
  9579. void Remove();
  9580. void RemoveAllDecals();
  9581. void RemoveAttributeAnimation(const String&);
  9582. void RemoveDecals(uint);
  9583. void RemoveInstanceDefault();
  9584. void RemoveObjectAnimation();
  9585. void ResetToDefault();
  9586. bool Save(Serializer&) const;
  9587. bool SaveDefaultAttributes() const;
  9588. bool SaveJSON(JSONValue&) const;
  9589. bool SaveXML(XMLElement&) const;
  9590. void SendEvent(StringHash);
  9591. void SendEvent(StringHash, VariantMap&);
  9592. operator Serializable() const;
  9593. void SetAnimationEnabled(bool);
  9594. void SetAnimationTime(float);
  9595. bool SetAttribute(const String&, const Variant&);
  9596. bool SetAttribute(uint, const Variant&);
  9597. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9598. void SetAttributeAnimationSpeed(const String&, float);
  9599. void SetAttributeAnimationTime(const String&, float);
  9600. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9601. void SetBasePass(uint);
  9602. void SetBlockEvents(bool);
  9603. void SetCastShadows(bool);
  9604. void SetDrawDistance(float);
  9605. void SetEnabled(bool);
  9606. void SetGlobalVar(StringHash, const Variant&);
  9607. void SetInstanceDefault(bool);
  9608. void SetInterceptNetworkUpdate(const String&, bool);
  9609. void SetLightMask(uint);
  9610. void SetLodBias(float);
  9611. void SetMaterial(Material);
  9612. void SetMaterialAttr(const ResourceRef&);
  9613. void SetMaxIndices(uint);
  9614. void SetMaxLights(uint);
  9615. void SetMaxVertices(uint);
  9616. void SetMinMaxZ(float, float);
  9617. void SetObjectAnimation(ObjectAnimation);
  9618. void SetObjectAnimationAttr(const ResourceRef&);
  9619. void SetOccludee(bool);
  9620. void SetOccluder(bool);
  9621. void SetOptimizeBufferSize(bool);
  9622. void SetShadowDistance(float);
  9623. void SetShadowMask(uint);
  9624. void SetSortValue(float);
  9625. void SetTemporary(bool);
  9626. void SetViewMask(uint);
  9627. void SetZone(Zone, bool = false);
  9628. void SetZoneMask(uint);
  9629. const String& GetCategory() const;
  9630. const String& GetTypeName() const;
  9631. void UnsubscribeFromAllEvents();
  9632. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9633. void UnsubscribeFromEvent(Object, StringHash);
  9634. void UnsubscribeFromEvent(StringHash);
  9635. void UnsubscribeFromEvents(Object);
  9636. void Update(const FrameInfo&);
  9637. void UpdateBatches(const FrameInfo&);
  9638. void UpdateGeometry(const FrameInfo&);
  9639. const Variant& GetGlobalVar(StringHash) const;
  9640. const VariantMap& GetGlobalVars() const;
  9641. int WeakRefs() const;
  9642. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  9643. void WriteInitialDeltaUpdate(Serializer&, uint8);
  9644. void WriteLatestDataUpdate(Serializer&, uint8);
  9645. operator const Animatable() const;
  9646. operator const Component() const;
  9647. operator const Drawable() const;
  9648. operator const Object() const;
  9649. operator const RefCounted() const;
  9650. operator const Serializable() const;
  9651. // Properties:
  9652. bool animationEnabled;
  9653. /* readonly */
  9654. Array<Variant> attributeDefaults;
  9655. /* readonly */
  9656. Array<AttributeInfo> attributeInfos;
  9657. Array<Variant> attributes;
  9658. /* readonly */
  9659. BoundingBox boundingBox;
  9660. bool castShadows;
  9661. /* readonly */
  9662. String category;
  9663. float drawDistance;
  9664. bool enabled;
  9665. /* readonly */
  9666. bool enabledEffective;
  9667. Array<Variant> globalVar;
  9668. /* readonly */
  9669. VariantMap globalVars;
  9670. /* readonly */
  9671. uint id;
  9672. /* readonly */
  9673. bool inView;
  9674. uint lightMask;
  9675. float lodBias;
  9676. Material material;
  9677. uint maxIndices;
  9678. uint maxLights;
  9679. uint maxVertices;
  9680. /* readonly */
  9681. Node node;
  9682. /* readonly */
  9683. uint numAttributes;
  9684. /* readonly */
  9685. uint numDecals;
  9686. /* readonly */
  9687. uint numIndices;
  9688. /* readonly */
  9689. uint numVertices;
  9690. ObjectAnimation objectAnimation;
  9691. bool occludee;
  9692. bool occluder;
  9693. bool optimizeBufferSize;
  9694. /* readonly */
  9695. int refs;
  9696. /* readonly */
  9697. bool replicated;
  9698. float shadowDistance;
  9699. uint shadowMask;
  9700. bool temporary;
  9701. /* readonly */
  9702. StringHash type;
  9703. /* readonly */
  9704. String typeName;
  9705. uint viewMask;
  9706. /* readonly */
  9707. int weakRefs;
  9708. /* readonly */
  9709. BoundingBox worldBoundingBox;
  9710. /* readonly */
  9711. Zone zone;
  9712. uint zoneMask;
  9713. };
  9714. class DecalVertex
  9715. {
  9716. public:
  9717. ~DecalVertex();
  9718. DecalVertex();
  9719. DecalVertex(const Vector3&in, const Vector3&in);
  9720. // Methods:
  9721. DecalVertex& operator=(const DecalVertex&);
  9722. // Properties:
  9723. Vector3 normal;
  9724. Vector3 position;
  9725. Vector4 tangent;
  9726. Vector2 texCoord;
  9727. };
  9728. class DelayedWorldTransform
  9729. {
  9730. public:
  9731. ~DelayedWorldTransform();
  9732. DelayedWorldTransform();
  9733. // Methods:
  9734. DelayedWorldTransform& operator=(const DelayedWorldTransform&);
  9735. // Properties:
  9736. Vector3 worldPosition;
  9737. Quaternion worldRotation;
  9738. };
  9739. class DelayedWorldTransform2D
  9740. {
  9741. public:
  9742. ~DelayedWorldTransform2D();
  9743. DelayedWorldTransform2D();
  9744. // Methods:
  9745. DelayedWorldTransform2D& operator=(const DelayedWorldTransform2D&);
  9746. // Properties:
  9747. Vector3 worldPosition;
  9748. Quaternion worldRotation;
  9749. };
  9750. class DepthValue
  9751. {
  9752. public:
  9753. // Methods:
  9754. DepthValue& operator=(const DepthValue&);
  9755. // Properties:
  9756. int max;
  9757. int min;
  9758. };
  9759. class Deserializer
  9760. {
  9761. public:
  9762. // Methods:
  9763. Deserializer& operator=(const Deserializer&);
  9764. operator File() const;
  9765. uint GetChecksum();
  9766. uint GetPosition() const;
  9767. uint GetSize() const;
  9768. operator HttpRequest() const;
  9769. bool IsEof() const;
  9770. operator NamedPipe() const;
  9771. Array<uint8> Read(uint);
  9772. bool ReadBool();
  9773. BoundingBox ReadBoundingBox();
  9774. int8 ReadByte();
  9775. Color ReadColor();
  9776. double ReadDouble();
  9777. String ReadFileID();
  9778. float ReadFloat();
  9779. int ReadInt();
  9780. int64 ReadInt64();
  9781. IntRect ReadIntRect();
  9782. IntVector2 ReadIntVector2();
  9783. IntVector3 ReadIntVector3();
  9784. String ReadLine();
  9785. Matrix3 ReadMatrix3();
  9786. Matrix3x4 ReadMatrix3x4();
  9787. Matrix4 ReadMatrix4();
  9788. uint ReadNetID();
  9789. Quaternion ReadPackedQuaternion();
  9790. Vector3 ReadPackedVector3(float);
  9791. Quaternion ReadQuaternion();
  9792. Rect ReadRect();
  9793. ResourceRef ReadResourceRef();
  9794. ResourceRefList ReadResourceRefList();
  9795. int16 ReadShort();
  9796. String ReadString();
  9797. StringHash ReadStringHash();
  9798. Array<String> ReadStringVector();
  9799. uint8 ReadUByte();
  9800. uint ReadUInt();
  9801. uint64 ReadUInt64();
  9802. uint16 ReadUShort();
  9803. uint ReadVLE();
  9804. Variant ReadVariant();
  9805. Variant ReadVariant(VariantType);
  9806. VariantMap ReadVariantMap();
  9807. Vector2 ReadVector2();
  9808. Vector3 ReadVector3();
  9809. Vector4 ReadVector4();
  9810. VectorBuffer ReadVectorBuffer(uint);
  9811. uint Seek(uint);
  9812. uint SeekRelative(int);
  9813. const String& GetName() const;
  9814. uint Tell() const;
  9815. operator const File() const;
  9816. operator const HttpRequest() const;
  9817. operator const NamedPipe() const;
  9818. // Properties:
  9819. /* readonly */
  9820. uint checksum;
  9821. /* readonly */
  9822. bool eof;
  9823. /* readonly */
  9824. String name;
  9825. /* readonly */
  9826. uint position;
  9827. /* readonly */
  9828. uint size;
  9829. };
  9830. class Dictionary
  9831. {
  9832. public:
  9833. Dictionary();
  9834. // Methods:
  9835. Dictionary& operator=(const Dictionary&);
  9836. DictionaryValue& operator[](const String&);
  9837. void Clear();
  9838. const DictionaryValue& operator[](const String&) const;
  9839. void Erase(const String&);
  9840. bool Exists(const String&) const;
  9841. bool Get(const String&, void*) const;
  9842. bool Get(const String&, double&) const;
  9843. bool Get(const String&, int64&) const;
  9844. void Set(const String&, const void*);
  9845. void Set(const String&, const double&);
  9846. void Set(const String&, const int64&);
  9847. // Properties:
  9848. /* readonly */
  9849. bool empty;
  9850. /* readonly */
  9851. Array<String> keys;
  9852. /* readonly */
  9853. uint length;
  9854. };
  9855. class DictionaryValue
  9856. {
  9857. public:
  9858. ~DictionaryValue();
  9859. DictionaryValue();
  9860. // Methods:
  9861. DictionaryValue& operator=(const void*);
  9862. DictionaryValue& operator=(double);
  9863. DictionaryValue& operator=(int64);
  9864. };
  9865. class DirtyBits
  9866. {
  9867. public:
  9868. ~DirtyBits();
  9869. DirtyBits();
  9870. DirtyBits(const DirtyBits&in);
  9871. // Methods:
  9872. DirtyBits& operator=(const DirtyBits&);
  9873. void Clear(uint);
  9874. void ClearAll();
  9875. uint Count() const;
  9876. bool IsSet(uint) const;
  9877. void Set(uint);
  9878. // Properties:
  9879. uint8 count;
  9880. };
  9881. class Drawable
  9882. {
  9883. public:
  9884. // Methods:
  9885. void AddLight(Light);
  9886. void AddVertexLight(Light);
  9887. void AllocateNetworkState();
  9888. operator Animatable() const;
  9889. operator AnimatedModel() const;
  9890. operator AnimatedSprite2D() const;
  9891. void ApplyAttributes();
  9892. operator BillboardSet() const;
  9893. const BoundingBox& GetBoundingBox() const;
  9894. const BoundingBox& GetWorldBoundingBox();
  9895. void CleanupConnection(Connection);
  9896. operator Component() const;
  9897. operator CustomGeometry() const;
  9898. operator DecalSet() const;
  9899. void DrawDebugGeometry(DebugRenderer, bool);
  9900. bool DrawOcclusion(OcclusionBuffer);
  9901. operator Drawable2D() const;
  9902. bool GetAnimationEnabled() const;
  9903. Variant GetAttribute(const String&) const;
  9904. Variant GetAttribute(uint) const;
  9905. ValueAnimation GetAttributeAnimation(const String&) const;
  9906. float GetAttributeAnimationSpeed(const String&) const;
  9907. float GetAttributeAnimationTime(const String&) const;
  9908. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9909. Variant GetAttributeDefault(const String&) const;
  9910. Variant GetAttributeDefault(uint) const;
  9911. bool GetBlockEvents() const;
  9912. bool GetCastShadows() const;
  9913. Component GetComponent(StringHash) const;
  9914. float GetDistance() const;
  9915. float GetDrawDistance() const;
  9916. uint8 GetDrawableFlags() const;
  9917. VariantMap& GetEventDataMap() const;
  9918. Object GetEventSender() const;
  9919. Light GetFirstLight() const;
  9920. uint GetID() const;
  9921. bool GetInterceptNetworkUpdate(const String&) const;
  9922. uint GetLightMask() const;
  9923. Array<Light> GetLights() const;
  9924. float GetLodBias() const;
  9925. float GetLodDistance() const;
  9926. Geometry GetLodGeometry(uint, uint);
  9927. uint GetMaxLights() const;
  9928. float GetMaxZ() const;
  9929. float GetMinZ() const;
  9930. Node GetNode() const;
  9931. uint GetNumAttributes() const;
  9932. uint GetNumNetworkAttributes() const;
  9933. uint GetNumOccluderTriangles();
  9934. ObjectAnimation GetObjectAnimation() const;
  9935. ResourceRef GetObjectAnimationAttr() const;
  9936. Scene GetScene() const;
  9937. float GetShadowDistance() const;
  9938. uint GetShadowMask() const;
  9939. float GetSortValue() const;
  9940. Object GetSubsystem(StringHash) const;
  9941. StringHash GetType() const;
  9942. UpdateGeometryType GetUpdateGeometryType();
  9943. Array<Light> GetVertexLights() const;
  9944. uint GetViewMask() const;
  9945. Zone GetZone() const;
  9946. uint GetZoneMask() const;
  9947. bool HasBasePass(uint) const;
  9948. bool HasEventHandlers() const;
  9949. bool HasSubscribedToEvent(Object, StringHash) const;
  9950. bool HasSubscribedToEvent(StringHash) const;
  9951. bool IsEnabled() const;
  9952. bool IsEnabledEffective() const;
  9953. bool IsInView() const;
  9954. bool IsInView(Camera) const;
  9955. bool IsInView(const FrameInfo&, bool = false) const;
  9956. bool IsInstanceOf(StringHash) const;
  9957. bool IsOccludee() const;
  9958. bool IsOccluder() const;
  9959. bool IsReplicated() const;
  9960. bool IsTemporary() const;
  9961. bool IsZoneDirty() const;
  9962. operator Light() const;
  9963. void LimitLights();
  9964. void LimitVertexLights(bool);
  9965. bool Load(Deserializer&);
  9966. bool LoadJSON(const JSONValue&);
  9967. bool LoadXML(const XMLElement&);
  9968. void MarkForUpdate();
  9969. void MarkInView(const FrameInfo&);
  9970. void MarkInView(uint);
  9971. void MarkNetworkUpdate();
  9972. operator Object() const;
  9973. void OnEvent(Object, StringHash, VariantMap&);
  9974. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9975. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9976. void OnSetEnabled();
  9977. operator ParticleEmitter2D() const;
  9978. operator ParticleEmitter() const;
  9979. void PrepareNetworkUpdate();
  9980. bool ReadDeltaUpdate(Deserializer&);
  9981. bool ReadLatestDataUpdate(Deserializer&);
  9982. operator RefCounted() const;
  9983. int Refs() const;
  9984. void Remove();
  9985. void RemoveAttributeAnimation(const String&);
  9986. void RemoveInstanceDefault();
  9987. void RemoveObjectAnimation();
  9988. operator Renderer2D() const;
  9989. void ResetToDefault();
  9990. operator RibbonTrail() const;
  9991. bool Save(Serializer&) const;
  9992. bool SaveDefaultAttributes() const;
  9993. bool SaveJSON(JSONValue&) const;
  9994. bool SaveXML(XMLElement&) const;
  9995. void SendEvent(StringHash);
  9996. void SendEvent(StringHash, VariantMap&);
  9997. operator Serializable() const;
  9998. void SetAnimationEnabled(bool);
  9999. void SetAnimationTime(float);
  10000. bool SetAttribute(const String&, const Variant&);
  10001. bool SetAttribute(uint, const Variant&);
  10002. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10003. void SetAttributeAnimationSpeed(const String&, float);
  10004. void SetAttributeAnimationTime(const String&, float);
  10005. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10006. void SetBasePass(uint);
  10007. void SetBlockEvents(bool);
  10008. void SetCastShadows(bool);
  10009. void SetDrawDistance(float);
  10010. void SetEnabled(bool);
  10011. void SetGlobalVar(StringHash, const Variant&);
  10012. void SetInstanceDefault(bool);
  10013. void SetInterceptNetworkUpdate(const String&, bool);
  10014. void SetLightMask(uint);
  10015. void SetLodBias(float);
  10016. void SetMaxLights(uint);
  10017. void SetMinMaxZ(float, float);
  10018. void SetObjectAnimation(ObjectAnimation);
  10019. void SetObjectAnimationAttr(const ResourceRef&);
  10020. void SetOccludee(bool);
  10021. void SetOccluder(bool);
  10022. void SetShadowDistance(float);
  10023. void SetShadowMask(uint);
  10024. void SetSortValue(float);
  10025. void SetTemporary(bool);
  10026. void SetViewMask(uint);
  10027. void SetZone(Zone, bool = false);
  10028. void SetZoneMask(uint);
  10029. operator Skybox() const;
  10030. operator StaticModel() const;
  10031. operator StaticModelGroup() const;
  10032. operator StaticSprite2D() const;
  10033. operator StretchableSprite2D() const;
  10034. const String& GetCategory() const;
  10035. const String& GetTypeName() const;
  10036. operator TerrainPatch() const;
  10037. operator Text3D() const;
  10038. void UnsubscribeFromAllEvents();
  10039. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10040. void UnsubscribeFromEvent(Object, StringHash);
  10041. void UnsubscribeFromEvent(StringHash);
  10042. void UnsubscribeFromEvents(Object);
  10043. void Update(const FrameInfo&);
  10044. void UpdateBatches(const FrameInfo&);
  10045. void UpdateGeometry(const FrameInfo&);
  10046. const Variant& GetGlobalVar(StringHash) const;
  10047. const VariantMap& GetGlobalVars() const;
  10048. int WeakRefs() const;
  10049. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10050. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10051. void WriteLatestDataUpdate(Serializer&, uint8);
  10052. operator Zone() const;
  10053. operator const Animatable() const;
  10054. operator const AnimatedModel() const;
  10055. operator const AnimatedSprite2D() const;
  10056. operator const BillboardSet() const;
  10057. operator const Component() const;
  10058. operator const CustomGeometry() const;
  10059. operator const DecalSet() const;
  10060. operator const Drawable2D() const;
  10061. operator const Light() const;
  10062. operator const Object() const;
  10063. operator const ParticleEmitter2D() const;
  10064. operator const ParticleEmitter() const;
  10065. operator const RefCounted() const;
  10066. operator const Renderer2D() const;
  10067. operator const RibbonTrail() const;
  10068. operator const Serializable() const;
  10069. operator const Skybox() const;
  10070. operator const StaticModel() const;
  10071. operator const StaticModelGroup() const;
  10072. operator const StaticSprite2D() const;
  10073. operator const StretchableSprite2D() const;
  10074. operator const TerrainPatch() const;
  10075. operator const Text3D() const;
  10076. operator const Zone() const;
  10077. // Properties:
  10078. bool animationEnabled;
  10079. /* readonly */
  10080. Array<Variant> attributeDefaults;
  10081. /* readonly */
  10082. Array<AttributeInfo> attributeInfos;
  10083. Array<Variant> attributes;
  10084. /* readonly */
  10085. BoundingBox boundingBox;
  10086. bool castShadows;
  10087. /* readonly */
  10088. String category;
  10089. float drawDistance;
  10090. bool enabled;
  10091. /* readonly */
  10092. bool enabledEffective;
  10093. Array<Variant> globalVar;
  10094. /* readonly */
  10095. VariantMap globalVars;
  10096. /* readonly */
  10097. uint id;
  10098. /* readonly */
  10099. bool inView;
  10100. uint lightMask;
  10101. float lodBias;
  10102. uint maxLights;
  10103. /* readonly */
  10104. Node node;
  10105. /* readonly */
  10106. uint numAttributes;
  10107. ObjectAnimation objectAnimation;
  10108. bool occludee;
  10109. bool occluder;
  10110. /* readonly */
  10111. int refs;
  10112. /* readonly */
  10113. bool replicated;
  10114. float shadowDistance;
  10115. uint shadowMask;
  10116. bool temporary;
  10117. /* readonly */
  10118. StringHash type;
  10119. /* readonly */
  10120. String typeName;
  10121. uint viewMask;
  10122. /* readonly */
  10123. int weakRefs;
  10124. /* readonly */
  10125. BoundingBox worldBoundingBox;
  10126. /* readonly */
  10127. Zone zone;
  10128. uint zoneMask;
  10129. };
  10130. class Drawable2D
  10131. {
  10132. public:
  10133. // Methods:
  10134. void AddLight(Light);
  10135. void AddVertexLight(Light);
  10136. void AllocateNetworkState();
  10137. operator Animatable() const;
  10138. operator AnimatedSprite2D() const;
  10139. void ApplyAttributes();
  10140. const BoundingBox& GetBoundingBox() const;
  10141. const BoundingBox& GetWorldBoundingBox();
  10142. void CleanupConnection(Connection);
  10143. operator Component() const;
  10144. void DrawDebugGeometry(DebugRenderer, bool);
  10145. bool DrawOcclusion(OcclusionBuffer);
  10146. operator Drawable() const;
  10147. bool GetAnimationEnabled() const;
  10148. Variant GetAttribute(const String&) const;
  10149. Variant GetAttribute(uint) const;
  10150. ValueAnimation GetAttributeAnimation(const String&) const;
  10151. float GetAttributeAnimationSpeed(const String&) const;
  10152. float GetAttributeAnimationTime(const String&) const;
  10153. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10154. Variant GetAttributeDefault(const String&) const;
  10155. Variant GetAttributeDefault(uint) const;
  10156. bool GetBlockEvents() const;
  10157. bool GetCastShadows() const;
  10158. Component GetComponent(StringHash) const;
  10159. float GetDistance() const;
  10160. float GetDrawDistance() const;
  10161. uint8 GetDrawableFlags() const;
  10162. VariantMap& GetEventDataMap() const;
  10163. Object GetEventSender() const;
  10164. Light GetFirstLight() const;
  10165. uint GetID() const;
  10166. bool GetInterceptNetworkUpdate(const String&) const;
  10167. int GetLayer() const;
  10168. uint GetLightMask() const;
  10169. Array<Light> GetLights() const;
  10170. float GetLodBias() const;
  10171. float GetLodDistance() const;
  10172. Geometry GetLodGeometry(uint, uint);
  10173. uint GetMaxLights() const;
  10174. float GetMaxZ() const;
  10175. float GetMinZ() const;
  10176. Node GetNode() const;
  10177. uint GetNumAttributes() const;
  10178. uint GetNumNetworkAttributes() const;
  10179. uint GetNumOccluderTriangles();
  10180. ObjectAnimation GetObjectAnimation() const;
  10181. ResourceRef GetObjectAnimationAttr() const;
  10182. int GetOrderInLayer() const;
  10183. Scene GetScene() const;
  10184. float GetShadowDistance() const;
  10185. uint GetShadowMask() const;
  10186. float GetSortValue() const;
  10187. Object GetSubsystem(StringHash) const;
  10188. StringHash GetType() const;
  10189. UpdateGeometryType GetUpdateGeometryType();
  10190. Array<Light> GetVertexLights() const;
  10191. uint GetViewMask() const;
  10192. Zone GetZone() const;
  10193. uint GetZoneMask() const;
  10194. bool HasBasePass(uint) const;
  10195. bool HasEventHandlers() const;
  10196. bool HasSubscribedToEvent(Object, StringHash) const;
  10197. bool HasSubscribedToEvent(StringHash) const;
  10198. bool IsEnabled() const;
  10199. bool IsEnabledEffective() const;
  10200. bool IsInView() const;
  10201. bool IsInView(Camera) const;
  10202. bool IsInView(const FrameInfo&, bool = false) const;
  10203. bool IsInstanceOf(StringHash) const;
  10204. bool IsOccludee() const;
  10205. bool IsOccluder() const;
  10206. bool IsReplicated() const;
  10207. bool IsTemporary() const;
  10208. bool IsZoneDirty() const;
  10209. void LimitLights();
  10210. void LimitVertexLights(bool);
  10211. bool Load(Deserializer&);
  10212. bool LoadJSON(const JSONValue&);
  10213. bool LoadXML(const XMLElement&);
  10214. void MarkForUpdate();
  10215. void MarkInView(const FrameInfo&);
  10216. void MarkInView(uint);
  10217. void MarkNetworkUpdate();
  10218. operator Object() const;
  10219. void OnEvent(Object, StringHash, VariantMap&);
  10220. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10221. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10222. void OnSetEnabled();
  10223. operator ParticleEmitter2D() const;
  10224. void PrepareNetworkUpdate();
  10225. bool ReadDeltaUpdate(Deserializer&);
  10226. bool ReadLatestDataUpdate(Deserializer&);
  10227. operator RefCounted() const;
  10228. int Refs() const;
  10229. void Remove();
  10230. void RemoveAttributeAnimation(const String&);
  10231. void RemoveInstanceDefault();
  10232. void RemoveObjectAnimation();
  10233. void ResetToDefault();
  10234. bool Save(Serializer&) const;
  10235. bool SaveDefaultAttributes() const;
  10236. bool SaveJSON(JSONValue&) const;
  10237. bool SaveXML(XMLElement&) const;
  10238. void SendEvent(StringHash);
  10239. void SendEvent(StringHash, VariantMap&);
  10240. operator Serializable() const;
  10241. void SetAnimationEnabled(bool);
  10242. void SetAnimationTime(float);
  10243. bool SetAttribute(const String&, const Variant&);
  10244. bool SetAttribute(uint, const Variant&);
  10245. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10246. void SetAttributeAnimationSpeed(const String&, float);
  10247. void SetAttributeAnimationTime(const String&, float);
  10248. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10249. void SetBasePass(uint);
  10250. void SetBlockEvents(bool);
  10251. void SetCastShadows(bool);
  10252. void SetDrawDistance(float);
  10253. void SetEnabled(bool);
  10254. void SetGlobalVar(StringHash, const Variant&);
  10255. void SetInstanceDefault(bool);
  10256. void SetInterceptNetworkUpdate(const String&, bool);
  10257. void SetLayer(int);
  10258. void SetLightMask(uint);
  10259. void SetLodBias(float);
  10260. void SetMaxLights(uint);
  10261. void SetMinMaxZ(float, float);
  10262. void SetObjectAnimation(ObjectAnimation);
  10263. void SetObjectAnimationAttr(const ResourceRef&);
  10264. void SetOccludee(bool);
  10265. void SetOccluder(bool);
  10266. void SetOrderInLayer(int);
  10267. void SetShadowDistance(float);
  10268. void SetShadowMask(uint);
  10269. void SetSortValue(float);
  10270. void SetTemporary(bool);
  10271. void SetViewMask(uint);
  10272. void SetZone(Zone, bool = false);
  10273. void SetZoneMask(uint);
  10274. operator StaticSprite2D() const;
  10275. operator StretchableSprite2D() const;
  10276. const String& GetCategory() const;
  10277. const String& GetTypeName() const;
  10278. void UnsubscribeFromAllEvents();
  10279. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10280. void UnsubscribeFromEvent(Object, StringHash);
  10281. void UnsubscribeFromEvent(StringHash);
  10282. void UnsubscribeFromEvents(Object);
  10283. void Update(const FrameInfo&);
  10284. void UpdateBatches(const FrameInfo&);
  10285. void UpdateGeometry(const FrameInfo&);
  10286. const Variant& GetGlobalVar(StringHash) const;
  10287. const VariantMap& GetGlobalVars() const;
  10288. int WeakRefs() const;
  10289. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10290. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10291. void WriteLatestDataUpdate(Serializer&, uint8);
  10292. operator const Animatable() const;
  10293. operator const AnimatedSprite2D() const;
  10294. operator const Component() const;
  10295. operator const Drawable() const;
  10296. operator const Object() const;
  10297. operator const ParticleEmitter2D() const;
  10298. operator const RefCounted() const;
  10299. operator const Serializable() const;
  10300. operator const StaticSprite2D() const;
  10301. operator const StretchableSprite2D() const;
  10302. // Properties:
  10303. bool animationEnabled;
  10304. /* readonly */
  10305. Array<Variant> attributeDefaults;
  10306. /* readonly */
  10307. Array<AttributeInfo> attributeInfos;
  10308. Array<Variant> attributes;
  10309. /* readonly */
  10310. BoundingBox boundingBox;
  10311. bool castShadows;
  10312. /* readonly */
  10313. String category;
  10314. float drawDistance;
  10315. bool enabled;
  10316. /* readonly */
  10317. bool enabledEffective;
  10318. Array<Variant> globalVar;
  10319. /* readonly */
  10320. VariantMap globalVars;
  10321. /* readonly */
  10322. uint id;
  10323. /* readonly */
  10324. bool inView;
  10325. int layer;
  10326. uint lightMask;
  10327. float lodBias;
  10328. uint maxLights;
  10329. /* readonly */
  10330. Node node;
  10331. /* readonly */
  10332. uint numAttributes;
  10333. ObjectAnimation objectAnimation;
  10334. bool occludee;
  10335. bool occluder;
  10336. int orderInLayer;
  10337. /* readonly */
  10338. int refs;
  10339. /* readonly */
  10340. bool replicated;
  10341. float shadowDistance;
  10342. uint shadowMask;
  10343. bool temporary;
  10344. /* readonly */
  10345. StringHash type;
  10346. /* readonly */
  10347. String typeName;
  10348. uint viewMask;
  10349. /* readonly */
  10350. int weakRefs;
  10351. /* readonly */
  10352. BoundingBox worldBoundingBox;
  10353. /* readonly */
  10354. Zone zone;
  10355. uint zoneMask;
  10356. };
  10357. class DropDownList
  10358. {
  10359. public:
  10360. DropDownList();
  10361. // Methods:
  10362. void AddChild(UIElement);
  10363. void AddItem(UIElement);
  10364. void AddTag(const String&);
  10365. void AddTags(Array<String>);
  10366. void AddTags(const String&, int8 = ';');
  10367. void AdjustScissor(IntRect&);
  10368. void AllocateNetworkState();
  10369. operator Animatable() const;
  10370. void ApplyAttributes();
  10371. operator BorderImage() const;
  10372. void BringToFront();
  10373. operator Button() const;
  10374. const Color& GetColor(Corner) const;
  10375. const Color& GetColorAttr() const;
  10376. const Color& GetDerivedColor() const;
  10377. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  10378. void DisableLayoutUpdate();
  10379. IntVector2 ElementToScreen(const IntVector2&);
  10380. void EnableLayoutUpdate();
  10381. bool FilterAttributes(XMLElement&) const;
  10382. uint FindChild(UIElement) const;
  10383. int GetAcceleratorKey() const;
  10384. int GetAcceleratorQualifiers() const;
  10385. bool GetAnimationEnabled() const;
  10386. Variant GetAttribute(const String&) const;
  10387. Variant GetAttribute(uint) const;
  10388. ValueAnimation GetAttributeAnimation(const String&) const;
  10389. float GetAttributeAnimationSpeed(const String&) const;
  10390. float GetAttributeAnimationTime(const String&) const;
  10391. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10392. Variant GetAttributeDefault(const String&) const;
  10393. Variant GetAttributeDefault(uint) const;
  10394. BlendMode GetBlendMode() const;
  10395. bool GetBlockEvents() const;
  10396. bool GetBringToBack() const;
  10397. bool GetBringToFront() const;
  10398. UIElement GetChild(const String&, bool = false) const;
  10399. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  10400. UIElement GetChild(uint) const;
  10401. Array<UIElement> GetChildren() const;
  10402. Array<UIElement> GetChildren(bool) const;
  10403. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10404. bool GetClipChildren() const;
  10405. IntRect GetCombinedScreenRect();
  10406. XMLFile GetDefaultStyle(bool = true) const;
  10407. float GetDerivedOpacity() const;
  10408. uint GetDragButtonCombo() const;
  10409. uint GetDragButtonCount() const;
  10410. uint GetDragDropMode() const;
  10411. IntVector2 GetEffectiveMinSize() const;
  10412. UIElement GetElementEventSender() const;
  10413. bool GetEnableAnchor() const;
  10414. VariantMap& GetEventDataMap() const;
  10415. Object GetEventSender() const;
  10416. FocusMode GetFocusMode() const;
  10417. int GetHeight() const;
  10418. HorizontalAlignment GetHorizontalAlignment() const;
  10419. int GetIndent() const;
  10420. int GetIndentSpacing() const;
  10421. int GetIndentWidth() const;
  10422. bool GetInterceptNetworkUpdate(const String&) const;
  10423. UIElement GetItem(uint) const;
  10424. Array<UIElement> GetItems() const;
  10425. int GetLayoutElementMaxSize() const;
  10426. LayoutMode GetLayoutMode() const;
  10427. int GetLayoutSpacing() const;
  10428. ListView GetListView() const;
  10429. Material GetMaterial() const;
  10430. ResourceRef GetMaterialAttr() const;
  10431. int GetMaxHeight() const;
  10432. int GetMaxWidth() const;
  10433. int GetMinHeight() const;
  10434. int GetMinWidth() const;
  10435. uint GetNumAttributes() const;
  10436. uint GetNumChildren(bool = false) const;
  10437. uint GetNumItems() const;
  10438. uint GetNumNetworkAttributes() const;
  10439. ObjectAnimation GetObjectAnimation() const;
  10440. ResourceRef GetObjectAnimationAttr() const;
  10441. float GetOpacity() const;
  10442. UIElement GetParent() const;
  10443. UIElement GetPlaceholder() const;
  10444. UIElement GetPopup() const;
  10445. int GetPriority() const;
  10446. float GetRepeatDelay() const;
  10447. float GetRepeatRate() const;
  10448. bool GetResizePopup() const;
  10449. UIElement GetRoot() const;
  10450. UIElement GetSelectedItem() const;
  10451. uint GetSelection() const;
  10452. bool GetShowPopup() const;
  10453. bool GetSortChildren() const;
  10454. Object GetSubsystem(StringHash) const;
  10455. Array<String> GetTags() const;
  10456. Texture GetTexture() const;
  10457. ResourceRef GetTextureAttr() const;
  10458. TraversalMode GetTraversalMode() const;
  10459. StringHash GetType() const;
  10460. bool GetUseDerivedOpacity() const;
  10461. VerticalAlignment GetVerticalAlignment() const;
  10462. int GetWidth() const;
  10463. bool HasColorGradient() const;
  10464. bool HasEventHandlers() const;
  10465. bool HasFocus() const;
  10466. bool HasSubscribedToEvent(Object, StringHash) const;
  10467. bool HasSubscribedToEvent(StringHash) const;
  10468. bool HasTag(const String&) const;
  10469. void InsertChild(uint, UIElement);
  10470. void InsertItem(uint, UIElement);
  10471. const IntRect& GetBorder() const;
  10472. const IntRect& GetClipBorder() const;
  10473. const IntRect& GetImageBorder() const;
  10474. const IntRect& GetImageRect() const;
  10475. const IntRect& GetLayoutBorder() const;
  10476. const IntVector2& GetChildOffset() const;
  10477. const IntVector2& GetDisabledOffset() const;
  10478. const IntVector2& GetHoverOffset() const;
  10479. const IntVector2& GetMaxOffset() const;
  10480. const IntVector2& GetMaxSize() const;
  10481. const IntVector2& GetMinOffset() const;
  10482. const IntVector2& GetMinSize() const;
  10483. const IntVector2& GetPopupOffset() const;
  10484. const IntVector2& GetPosition() const;
  10485. const IntVector2& GetPressedChildOffset() const;
  10486. const IntVector2& GetPressedOffset() const;
  10487. const IntVector2& GetScreenPosition() const;
  10488. const IntVector2& GetSize() const;
  10489. bool IsChildOf(UIElement) const;
  10490. bool IsEditable() const;
  10491. bool IsElementEventSender() const;
  10492. bool IsEnabled() const;
  10493. bool IsEnabledSelf() const;
  10494. bool IsFixedHeight() const;
  10495. bool IsFixedSize() const;
  10496. bool IsFixedWidth() const;
  10497. bool IsHovering() const;
  10498. bool IsInside(IntVector2, bool);
  10499. bool IsInsideCombined(IntVector2, bool);
  10500. bool IsInstanceOf(StringHash) const;
  10501. bool IsInternal() const;
  10502. bool IsPressed() const;
  10503. bool IsSelected() const;
  10504. bool IsTemporary() const;
  10505. bool IsTiled() const;
  10506. bool IsVisible() const;
  10507. bool IsVisibleEffective() const;
  10508. bool IsWheelHandler() const;
  10509. bool IsWithinScissor(const IntRect&);
  10510. bool Load(Deserializer&);
  10511. UIElement LoadChildXML(XMLFile, XMLFile);
  10512. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10513. bool LoadJSON(const JSONValue&);
  10514. bool LoadXML(Deserializer&);
  10515. bool LoadXML(File);
  10516. bool LoadXML(VectorBuffer&);
  10517. bool LoadXML(XMLFile, XMLFile);
  10518. bool LoadXML(const XMLElement&);
  10519. bool LoadXML(const XMLElement&, XMLFile);
  10520. void MarkNetworkUpdate();
  10521. operator Menu() const;
  10522. operator Object() const;
  10523. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  10524. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  10525. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  10526. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10527. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10528. bool OnDragDropFinish(UIElement);
  10529. bool OnDragDropTest(UIElement);
  10530. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10531. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10532. void OnEvent(Object, StringHash, VariantMap&);
  10533. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10534. void OnHidePopup();
  10535. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10536. void OnIndentSet();
  10537. void OnKey(uint, uint, uint);
  10538. void OnPositionSet(const IntVector2&);
  10539. void OnResize(const IntVector2&, const IntVector2&);
  10540. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10541. void OnSetEditable();
  10542. void OnShowPopup();
  10543. void OnTextInput(const String&);
  10544. void OnWheel(int, uint, uint);
  10545. bool ReadDeltaUpdate(Deserializer&);
  10546. bool ReadLatestDataUpdate(Deserializer&);
  10547. operator RefCounted() const;
  10548. int Refs() const;
  10549. void Remove();
  10550. void RemoveAllChildren();
  10551. void RemoveAllItems();
  10552. void RemoveAllTags();
  10553. void RemoveAttributeAnimation(const String&);
  10554. void RemoveChild(UIElement, uint = 0);
  10555. void RemoveChild(uint);
  10556. void RemoveChildAtIndex(uint);
  10557. void RemoveInstanceDefault();
  10558. void RemoveItem(UIElement);
  10559. void RemoveItem(uint);
  10560. void RemoveObjectAnimation();
  10561. bool RemoveTag(const String&);
  10562. void ResetDeepEnabled();
  10563. void ResetToDefault();
  10564. bool Save(Serializer&) const;
  10565. bool SaveDefaultAttributes() const;
  10566. bool SaveJSON(JSONValue&) const;
  10567. bool SaveXML(File, const String& indentation = "\t");
  10568. bool SaveXML(Serializer&, const String& = "\t") const;
  10569. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  10570. bool SaveXML(XMLElement&) const;
  10571. IntVector2 ScreenToElement(const IntVector2&);
  10572. void SendEvent(StringHash);
  10573. void SendEvent(StringHash, VariantMap&);
  10574. operator Serializable() const;
  10575. void SetAccelerator(int, int);
  10576. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10577. void SetAnimationEnabled(bool);
  10578. void SetAnimationTime(float);
  10579. bool SetAttribute(const String&, const Variant&);
  10580. bool SetAttribute(uint, const Variant&);
  10581. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10582. void SetAttributeAnimationSpeed(const String&, float);
  10583. void SetAttributeAnimationTime(const String&, float);
  10584. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10585. void SetBlendMode(BlendMode);
  10586. void SetBlockEvents(bool);
  10587. void SetBorder(const IntRect&);
  10588. void SetBringToBack(bool);
  10589. void SetBringToFront(bool);
  10590. void SetChildOffset(const IntVector2&);
  10591. void SetClipBorder(const IntRect&);
  10592. void SetClipChildren(bool);
  10593. void SetColor(Corner, const Color&);
  10594. void SetColor(const Color&);
  10595. void SetDeepEnabled(bool);
  10596. void SetDefaultStyle(XMLFile);
  10597. void SetDisabledOffset(const IntVector2&);
  10598. void SetDisabledOffset(int, int);
  10599. void SetDragDropMode(uint);
  10600. void SetEditable(bool);
  10601. void SetElementEventSender(bool);
  10602. void SetEnableAnchor(bool);
  10603. void SetEnabled(bool);
  10604. void SetEnabledRecursive(bool);
  10605. void SetFixedHeight(int);
  10606. void SetFixedSize(const IntVector2&);
  10607. void SetFixedSize(int, int);
  10608. void SetFixedWidth(int);
  10609. void SetFocus(bool);
  10610. void SetFocusMode(FocusMode);
  10611. void SetFullImageRect();
  10612. void SetGlobalVar(StringHash, const Variant&);
  10613. void SetHeight(int);
  10614. void SetHorizontalAlignment(HorizontalAlignment);
  10615. void SetHoverOffset(const IntVector2&);
  10616. void SetHoverOffset(int, int);
  10617. void SetHovering(bool);
  10618. void SetImageBorder(const IntRect&);
  10619. void SetImageRect(const IntRect&);
  10620. void SetIndent(int);
  10621. void SetIndentSpacing(int);
  10622. void SetInstanceDefault(bool);
  10623. void SetInterceptNetworkUpdate(const String&, bool);
  10624. void SetInternal(bool);
  10625. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  10626. void SetLayoutBorder(const IntRect&);
  10627. void SetLayoutFlexScale(const Vector2&);
  10628. void SetLayoutMode(LayoutMode);
  10629. void SetLayoutSpacing(int);
  10630. void SetMaterial(Material);
  10631. void SetMaterialAttr(const ResourceRef&);
  10632. void SetMaxAnchor(const Vector2&);
  10633. void SetMaxAnchor(float, float);
  10634. void SetMaxHeight(int);
  10635. void SetMaxOffset(const IntVector2&);
  10636. void SetMaxSize(const IntVector2&);
  10637. void SetMaxSize(int, int);
  10638. void SetMaxWidth(int);
  10639. void SetMinAnchor(const Vector2&);
  10640. void SetMinAnchor(float, float);
  10641. void SetMinHeight(int);
  10642. void SetMinOffset(const IntVector2&);
  10643. void SetMinSize(const IntVector2&);
  10644. void SetMinSize(int, int);
  10645. void SetMinWidth(int);
  10646. void SetName(const String&);
  10647. void SetObjectAnimation(ObjectAnimation);
  10648. void SetObjectAnimationAttr(const ResourceRef&);
  10649. void SetOpacity(float);
  10650. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  10651. void SetPivot(const Vector2&);
  10652. void SetPivot(float, float);
  10653. void SetPlaceholderText(const String&);
  10654. void SetPopup(UIElement);
  10655. void SetPopupOffset(const IntVector2&);
  10656. void SetPopupOffset(int, int);
  10657. void SetPosition(const IntVector2&);
  10658. void SetPosition(int, int);
  10659. void SetPressedChildOffset(const IntVector2&);
  10660. void SetPressedChildOffset(int, int);
  10661. void SetPressedOffset(const IntVector2&);
  10662. void SetPressedOffset(int, int);
  10663. void SetPriority(int);
  10664. void SetRenderTexture(Texture2D);
  10665. void SetRepeat(float, float);
  10666. void SetRepeatDelay(float);
  10667. void SetRepeatRate(float);
  10668. void SetResizePopup(bool);
  10669. void SetSelected(bool);
  10670. void SetSelection(uint);
  10671. void SetSelectionAttr(uint);
  10672. void SetSize(const IntVector2&);
  10673. void SetSize(int, int);
  10674. void SetSortChildren(bool);
  10675. bool SetStyle(const String&, XMLFile = null);
  10676. bool SetStyle(const XMLElement&);
  10677. bool SetStyleAuto(XMLFile = null);
  10678. void SetTags(Array<String>);
  10679. void SetTemporary(bool);
  10680. void SetTexture(Texture);
  10681. void SetTextureAttr(const ResourceRef&);
  10682. void SetTiled(bool);
  10683. void SetTraversalMode(TraversalMode);
  10684. void SetUseDerivedOpacity(bool);
  10685. void SetVar(StringHash, const Variant&);
  10686. void SetVerticalAlignment(VerticalAlignment);
  10687. void SetVisible(bool);
  10688. void SetWidth(int);
  10689. void ShowPopup(bool);
  10690. void SortChildren();
  10691. const String& GetAppliedStyle() const;
  10692. const String& GetCategory() const;
  10693. const String& GetName() const;
  10694. const String& GetPlaceholderText() const;
  10695. const String& GetTypeName() const;
  10696. operator UIElement() const;
  10697. void UnsubscribeFromAllEvents();
  10698. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10699. void UnsubscribeFromEvent(Object, StringHash);
  10700. void UnsubscribeFromEvent(StringHash);
  10701. void UnsubscribeFromEvents(Object);
  10702. void Update(float);
  10703. void UpdateLayout();
  10704. const Variant& GetGlobalVar(StringHash) const;
  10705. const Variant& GetVar(const StringHash&) const;
  10706. const VariantMap& GetGlobalVars() const;
  10707. const VariantMap& GetVars() const;
  10708. const Vector2& GetLayoutFlexScale() const;
  10709. const Vector2& GetMaxAnchor() const;
  10710. const Vector2& GetMinAnchor() const;
  10711. const Vector2& GetPivot() const;
  10712. int WeakRefs() const;
  10713. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10714. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10715. void WriteLatestDataUpdate(Serializer&, uint8);
  10716. operator const Animatable() const;
  10717. operator const BorderImage() const;
  10718. operator const Button() const;
  10719. operator const Menu() const;
  10720. operator const Object() const;
  10721. operator const RefCounted() const;
  10722. operator const Serializable() const;
  10723. operator const UIElement() const;
  10724. // Properties:
  10725. /* readonly */
  10726. int acceleratorKey;
  10727. /* readonly */
  10728. int acceleratorQualifiers;
  10729. bool animationEnabled;
  10730. /* readonly */
  10731. Array<Variant> attributeDefaults;
  10732. /* readonly */
  10733. Array<AttributeInfo> attributeInfos;
  10734. Array<Variant> attributes;
  10735. BlendMode blendMode;
  10736. IntRect border;
  10737. bool bringToBack;
  10738. bool bringToFront;
  10739. /* readonly */
  10740. String category;
  10741. /* readonly */
  10742. IntVector2 childOffset;
  10743. /* readonly */
  10744. Array<UIElement> children;
  10745. IntRect clipBorder;
  10746. bool clipChildren;
  10747. /* writeonly */
  10748. Color color;
  10749. /* readonly */
  10750. bool colorGradient;
  10751. Array<Color> colors;
  10752. /* readonly */
  10753. IntRect combinedScreenRect;
  10754. XMLFile defaultStyle;
  10755. /* readonly */
  10756. float derivedOpacity;
  10757. IntVector2 disabledOffset;
  10758. /* readonly */
  10759. uint dragButtonCombo;
  10760. /* readonly */
  10761. uint dragButtonCount;
  10762. uint dragDropMode;
  10763. bool editable;
  10764. bool elementEventSender;
  10765. bool enableAnchor;
  10766. bool enabled;
  10767. /* readonly */
  10768. bool enabledSelf;
  10769. /* readonly */
  10770. bool fixedHeight;
  10771. /* readonly */
  10772. bool fixedSize;
  10773. /* readonly */
  10774. bool fixedWidth;
  10775. bool focus;
  10776. FocusMode focusMode;
  10777. Array<Variant> globalVar;
  10778. /* readonly */
  10779. VariantMap globalVars;
  10780. int height;
  10781. HorizontalAlignment horizontalAlignment;
  10782. IntVector2 hoverOffset;
  10783. /* readonly */
  10784. bool hovering;
  10785. IntRect imageBorder;
  10786. IntRect imageRect;
  10787. int indent;
  10788. int indentSpacing;
  10789. /* readonly */
  10790. int indentWidth;
  10791. bool internal;
  10792. /* readonly */
  10793. Array<UIElement> items;
  10794. IntRect layoutBorder;
  10795. Vector2 layoutFlexScale;
  10796. LayoutMode layoutMode;
  10797. int layoutSpacing;
  10798. /* readonly */
  10799. ListView listView;
  10800. Material material;
  10801. Vector2 maxAnchor;
  10802. int maxHeight;
  10803. IntVector2 maxOffset;
  10804. IntVector2 maxSize;
  10805. int maxWidth;
  10806. Vector2 minAnchor;
  10807. int minHeight;
  10808. IntVector2 minOffset;
  10809. IntVector2 minSize;
  10810. int minWidth;
  10811. String name;
  10812. /* readonly */
  10813. uint numAllChildren;
  10814. /* readonly */
  10815. uint numAttributes;
  10816. /* readonly */
  10817. uint numChildren;
  10818. /* readonly */
  10819. uint numItems;
  10820. ObjectAnimation objectAnimation;
  10821. float opacity;
  10822. UIElement parent;
  10823. Vector2 pivot;
  10824. /* readonly */
  10825. UIElement placeholder;
  10826. String placeholderText;
  10827. UIElement popup;
  10828. IntVector2 popupOffset;
  10829. IntVector2 position;
  10830. /* readonly */
  10831. bool pressed;
  10832. IntVector2 pressedChildOffset;
  10833. IntVector2 pressedOffset;
  10834. int priority;
  10835. /* readonly */
  10836. int refs;
  10837. float repeatDelay;
  10838. float repeatRate;
  10839. bool resizePopup;
  10840. /* readonly */
  10841. UIElement root;
  10842. /* readonly */
  10843. IntVector2 screenPosition;
  10844. bool selected;
  10845. /* readonly */
  10846. UIElement selectedItem;
  10847. uint selection;
  10848. bool showPopup;
  10849. IntVector2 size;
  10850. bool sortChildren;
  10851. String style;
  10852. /* readonly */
  10853. Array<String> tags;
  10854. bool temporary;
  10855. Texture texture;
  10856. bool tiled;
  10857. TraversalMode traversalMode;
  10858. /* readonly */
  10859. StringHash type;
  10860. /* readonly */
  10861. String typeName;
  10862. bool useDerivedOpacity;
  10863. /* readonly */
  10864. VariantMap vars;
  10865. VerticalAlignment verticalAlignment;
  10866. bool visible;
  10867. /* readonly */
  10868. bool visibleEffective;
  10869. /* readonly */
  10870. int weakRefs;
  10871. int width;
  10872. };
  10873. class DynamicNavigationMesh
  10874. {
  10875. public:
  10876. DynamicNavigationMesh();
  10877. // Methods:
  10878. bool AddTile(const VectorBuffer&) const;
  10879. bool Allocate(const BoundingBox&, uint);
  10880. void AllocateNetworkState();
  10881. operator Animatable() const;
  10882. void ApplyAttributes();
  10883. const BoundingBox& GetBoundingBox() const;
  10884. bool Build();
  10885. bool Build(const BoundingBox&);
  10886. bool Build(const IntVector2&, const IntVector2&);
  10887. void CleanupConnection(Connection);
  10888. operator Component() const;
  10889. void DrawDebugGeometry(DebugRenderer, bool);
  10890. void DrawDebugGeometry(bool);
  10891. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 :: ONE);
  10892. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& extents = Vector3 :: ONE);
  10893. float GetAgentHeight() const;
  10894. float GetAgentMaxClimb() const;
  10895. float GetAgentMaxSlope() const;
  10896. float GetAgentRadius() const;
  10897. bool GetAnimationEnabled() const;
  10898. float GetAreaCost(uint) const;
  10899. Variant GetAttribute(const String&) const;
  10900. Variant GetAttribute(uint) const;
  10901. ValueAnimation GetAttributeAnimation(const String&) const;
  10902. float GetAttributeAnimationSpeed(const String&) const;
  10903. float GetAttributeAnimationTime(const String&) const;
  10904. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10905. Variant GetAttributeDefault(const String&) const;
  10906. Variant GetAttributeDefault(uint) const;
  10907. bool GetBlockEvents() const;
  10908. float GetCellHeight() const;
  10909. float GetCellSize() const;
  10910. Component GetComponent(StringHash) const;
  10911. float GetDetailSampleDistance() const;
  10912. float GetDetailSampleMaxError() const;
  10913. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  10914. bool GetDrawNavAreas() const;
  10915. bool GetDrawObstacles() const;
  10916. bool GetDrawOffMeshConnections() const;
  10917. float GetEdgeMaxError() const;
  10918. float GetEdgeMaxLength() const;
  10919. VariantMap& GetEventDataMap() const;
  10920. Object GetEventSender() const;
  10921. uint GetID() const;
  10922. bool GetInterceptNetworkUpdate(const String&) const;
  10923. uint GetMaxLayers() const;
  10924. uint GetMaxObstacles() const;
  10925. String GetMeshName() const;
  10926. Node GetNode() const;
  10927. uint GetNumAttributes() const;
  10928. uint GetNumNetworkAttributes() const;
  10929. IntVector2 GetNumTiles() const;
  10930. ObjectAnimation GetObjectAnimation() const;
  10931. ResourceRef GetObjectAnimationAttr() const;
  10932. NavmeshPartitionType GetPartitionType() const;
  10933. Vector3 GetRandomPoint();
  10934. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  10935. float GetRegionMergeSize() const;
  10936. float GetRegionMinSize() const;
  10937. Scene GetScene() const;
  10938. Object GetSubsystem(StringHash) const;
  10939. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  10940. VectorBuffer GetTileData(const IntVector2&) const;
  10941. IntVector2 GetTileIndex(const Vector3&) const;
  10942. int GetTileSize() const;
  10943. StringHash GetType() const;
  10944. BoundingBox GetWorldBoundingBox() const;
  10945. bool HasEventHandlers() const;
  10946. bool HasSubscribedToEvent(Object, StringHash) const;
  10947. bool HasSubscribedToEvent(StringHash) const;
  10948. bool HasTile(const IntVector2&) const;
  10949. bool IsEnabled() const;
  10950. bool IsEnabledEffective() const;
  10951. bool IsInitialized() const;
  10952. bool IsInstanceOf(StringHash) const;
  10953. bool IsObstacleInTile(Obstacle, const IntVector2&) const;
  10954. bool IsReplicated() const;
  10955. bool IsTemporary() const;
  10956. bool Load(Deserializer&);
  10957. bool LoadJSON(const JSONValue&);
  10958. bool LoadXML(const XMLElement&);
  10959. void MarkNetworkUpdate();
  10960. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE, int = 3);
  10961. operator NavigationMesh() const;
  10962. operator Object() const;
  10963. void OnEvent(Object, StringHash, VariantMap&);
  10964. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10965. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10966. void OnSetEnabled();
  10967. void PrepareNetworkUpdate();
  10968. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE);
  10969. bool ReadDeltaUpdate(Deserializer&);
  10970. bool ReadLatestDataUpdate(Deserializer&);
  10971. operator RefCounted() const;
  10972. int Refs() const;
  10973. void Remove();
  10974. void RemoveAllTiles();
  10975. void RemoveAttributeAnimation(const String&);
  10976. void RemoveInstanceDefault();
  10977. void RemoveObjectAnimation();
  10978. void RemoveTile(const IntVector2&);
  10979. void ResetToDefault();
  10980. bool Save(Serializer&) const;
  10981. bool SaveDefaultAttributes() const;
  10982. bool SaveJSON(JSONValue&) const;
  10983. bool SaveXML(XMLElement&) const;
  10984. void SendEvent(StringHash);
  10985. void SendEvent(StringHash, VariantMap&);
  10986. operator Serializable() const;
  10987. void SetAgentHeight(float);
  10988. void SetAgentMaxClimb(float);
  10989. void SetAgentMaxSlope(float);
  10990. void SetAgentRadius(float);
  10991. void SetAnimationEnabled(bool);
  10992. void SetAnimationTime(float);
  10993. void SetAreaCost(uint, float);
  10994. bool SetAttribute(const String&, const Variant&);
  10995. bool SetAttribute(uint, const Variant&);
  10996. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10997. void SetAttributeAnimationSpeed(const String&, float);
  10998. void SetAttributeAnimationTime(const String&, float);
  10999. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  11000. void SetBlockEvents(bool);
  11001. void SetCellHeight(float);
  11002. void SetCellSize(float);
  11003. void SetDetailSampleDistance(float);
  11004. void SetDetailSampleMaxError(float);
  11005. void SetDrawNavAreas(bool);
  11006. void SetDrawObstacles(bool);
  11007. void SetDrawOffMeshConnections(bool);
  11008. void SetEdgeMaxError(float);
  11009. void SetEdgeMaxLength(float);
  11010. void SetEnabled(bool);
  11011. void SetGlobalVar(StringHash, const Variant&);
  11012. void SetInstanceDefault(bool);
  11013. void SetInterceptNetworkUpdate(const String&, bool);
  11014. void SetMaxLayers(uint);
  11015. void SetMaxObstacles(uint);
  11016. void SetMeshName(const String&);
  11017. void SetObjectAnimation(ObjectAnimation);
  11018. void SetObjectAnimationAttr(const ResourceRef&);
  11019. void SetPadding(const Vector3&);
  11020. void SetPartitionType(NavmeshPartitionType);
  11021. void SetRegionMergeSize(float);
  11022. void SetRegionMinSize(float);
  11023. void SetTemporary(bool);
  11024. void SetTileSize(int);
  11025. const String& GetCategory() const;
  11026. const String& GetTypeName() const;
  11027. void UnsubscribeFromAllEvents();
  11028. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11029. void UnsubscribeFromEvent(Object, StringHash);
  11030. void UnsubscribeFromEvent(StringHash);
  11031. void UnsubscribeFromEvents(Object);
  11032. const Variant& GetGlobalVar(StringHash) const;
  11033. const VariantMap& GetGlobalVars() const;
  11034. const Vector3& GetPadding() const;
  11035. int WeakRefs() const;
  11036. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  11037. void WriteInitialDeltaUpdate(Serializer&, uint8);
  11038. void WriteLatestDataUpdate(Serializer&, uint8);
  11039. operator const Animatable() const;
  11040. operator const Component() const;
  11041. operator const NavigationMesh() const;
  11042. operator const Object() const;
  11043. operator const RefCounted() const;
  11044. operator const Serializable() const;
  11045. // Properties:
  11046. float agentHeight;
  11047. float agentMaxClimb;
  11048. float agentMaxSlope;
  11049. float agentRadius;
  11050. bool animationEnabled;
  11051. /* readonly */
  11052. Array<Variant> attributeDefaults;
  11053. /* readonly */
  11054. Array<AttributeInfo> attributeInfos;
  11055. Array<Variant> attributes;
  11056. /* readonly */
  11057. BoundingBox boundingBox;
  11058. /* readonly */
  11059. String category;
  11060. float cellHeight;
  11061. float cellSize;
  11062. float detailSampleDistance;
  11063. float detailSampleMaxError;
  11064. bool drawNavAreas;
  11065. bool drawObstacles;
  11066. bool drawOffMeshConnections;
  11067. float edgeMaxError;
  11068. float edgeMaxLength;
  11069. bool enabled;
  11070. /* readonly */
  11071. bool enabledEffective;
  11072. Array<Variant> globalVar;
  11073. /* readonly */
  11074. VariantMap globalVars;
  11075. /* readonly */
  11076. uint id;
  11077. /* readonly */
  11078. bool initialized;
  11079. uint maxLayers;
  11080. uint maxObstacles;
  11081. /* readonly */
  11082. Node node;
  11083. /* readonly */
  11084. uint numAttributes;
  11085. /* readonly */
  11086. IntVector2 numTiles;
  11087. ObjectAnimation objectAnimation;
  11088. Vector3 padding;
  11089. NavmeshPartitionType partitionType;
  11090. /* readonly */
  11091. int refs;
  11092. float regionMergeSize;
  11093. float regionMinSize;
  11094. /* readonly */
  11095. bool replicated;
  11096. bool temporary;
  11097. int tileSize;
  11098. /* readonly */
  11099. StringHash type;
  11100. /* readonly */
  11101. String typeName;
  11102. /* readonly */
  11103. int weakRefs;
  11104. /* readonly */
  11105. BoundingBox worldBoundingBox;
  11106. };
  11107. class Engine
  11108. {
  11109. public:
  11110. Engine();
  11111. // Methods:
  11112. void ApplyFrameLimit();
  11113. Console CreateConsole();
  11114. DebugHud CreateDebugHud();
  11115. void DumpMemory();
  11116. void DumpProfiler();
  11117. void DumpResources(bool = false);
  11118. void Exit();
  11119. bool GetAutoExit() const;
  11120. bool GetBlockEvents() const;
  11121. VariantMap& GetEventDataMap() const;
  11122. Object GetEventSender() const;
  11123. int GetMaxFps() const;
  11124. int GetMaxInactiveFps() const;
  11125. int GetMinFps() const;
  11126. float GetNextTimeStep() const;
  11127. bool GetPauseMinimized() const;
  11128. Object GetSubsystem(StringHash) const;
  11129. int GetTimeStepSmoothing() const;
  11130. StringHash GetType() const;
  11131. bool HasEventHandlers() const;
  11132. bool HasSubscribedToEvent(Object, StringHash) const;
  11133. bool HasSubscribedToEvent(StringHash) const;
  11134. bool Initialize(const VariantMap&);
  11135. bool InitializeResourceCache(const VariantMap&, bool = true);
  11136. bool IsExiting() const;
  11137. bool IsHeadless() const;
  11138. bool IsInitialized() const;
  11139. bool IsInstanceOf(StringHash) const;
  11140. operator Object() const;
  11141. void OnEvent(Object, StringHash, VariantMap&);
  11142. operator RefCounted() const;
  11143. int Refs() const;
  11144. void Render();
  11145. void RunFrame();
  11146. void SendEvent(StringHash);
  11147. void SendEvent(StringHash, VariantMap&);
  11148. void SetAutoExit(bool);
  11149. void SetBlockEvents(bool);
  11150. void SetGlobalVar(StringHash, const Variant&);
  11151. void SetMaxFps(int);
  11152. void SetMaxInactiveFps(int);
  11153. void SetMinFps(int);
  11154. void SetNextTimeStep(float);
  11155. void SetPauseMinimized(bool);
  11156. void SetTimeStepSmoothing(int);
  11157. const String& GetCategory() const;
  11158. const String& GetTypeName() const;
  11159. void UnsubscribeFromAllEvents();
  11160. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11161. void UnsubscribeFromEvent(Object, StringHash);
  11162. void UnsubscribeFromEvent(StringHash);
  11163. void UnsubscribeFromEvents(Object);
  11164. void Update();
  11165. const Variant& GetGlobalVar(StringHash) const;
  11166. const VariantMap& GetGlobalVars() const;
  11167. int WeakRefs() const;
  11168. operator const Object() const;
  11169. operator const RefCounted() const;
  11170. // Properties:
  11171. bool autoExit;
  11172. /* readonly */
  11173. String category;
  11174. /* readonly */
  11175. bool exiting;
  11176. Array<Variant> globalVar;
  11177. /* readonly */
  11178. VariantMap globalVars;
  11179. /* readonly */
  11180. bool headless;
  11181. /* readonly */
  11182. bool initialized;
  11183. int maxFps;
  11184. int maxInactiveFps;
  11185. int minFps;
  11186. bool pauseMinimized;
  11187. /* readonly */
  11188. int refs;
  11189. int timeStepSmoothing;
  11190. /* readonly */
  11191. StringHash type;
  11192. /* readonly */
  11193. String typeName;
  11194. /* readonly */
  11195. int weakRefs;
  11196. };
  11197. class EventProfiler
  11198. {
  11199. public:
  11200. EventProfiler();
  11201. // Methods:
  11202. void BeginBlock(StringHash);
  11203. void BeginFrame();
  11204. void BeginInterval();
  11205. void EndBlock();
  11206. void EndFrame();
  11207. bool GetBlockEvents() const;
  11208. VariantMap& GetEventDataMap() const;
  11209. Object GetEventSender() const;
  11210. Object GetSubsystem(StringHash) const;
  11211. StringHash GetType() const;
  11212. bool HasEventHandlers() const;
  11213. bool HasSubscribedToEvent(Object, StringHash) const;
  11214. bool HasSubscribedToEvent(StringHash) const;
  11215. bool IsInstanceOf(StringHash) const;
  11216. operator Object() const;
  11217. void OnEvent(Object, StringHash, VariantMap&);
  11218. operator Profiler() const;
  11219. operator RefCounted() const;
  11220. int Refs() const;
  11221. void SendEvent(StringHash);
  11222. void SendEvent(StringHash, VariantMap&);
  11223. void SetBlockEvents(bool);
  11224. void SetGlobalVar(StringHash, const Variant&);
  11225. const String& GetCategory() const;
  11226. const String& GetTypeName() const;
  11227. const String& PrintData(bool = false, bool = false, uint = M_MAX_UNSIGNED) const;
  11228. void UnsubscribeFromAllEvents();
  11229. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11230. void UnsubscribeFromEvent(Object, StringHash);
  11231. void UnsubscribeFromEvent(StringHash);
  11232. void UnsubscribeFromEvents(Object);
  11233. const Variant& GetGlobalVar(StringHash) const;
  11234. const VariantMap& GetGlobalVars() const;
  11235. int WeakRefs() const;
  11236. operator const Object() const;
  11237. operator const Profiler() const;
  11238. operator const RefCounted() const;
  11239. // Properties:
  11240. /* readonly */
  11241. String category;
  11242. Array<Variant> globalVar;
  11243. /* readonly */
  11244. VariantMap globalVars;
  11245. /* readonly */
  11246. int refs;
  11247. /* readonly */
  11248. StringHash type;
  11249. /* readonly */
  11250. String typeName;
  11251. /* readonly */
  11252. int weakRefs;
  11253. };
  11254. class EventReceiverGroup
  11255. {
  11256. public:
  11257. EventReceiverGroup();
  11258. // Methods:
  11259. void Add(Object);
  11260. void BeginSendEvent();
  11261. void EndSendEvent();
  11262. operator RefCounted() const;
  11263. int Refs() const;
  11264. void Remove(Object);
  11265. int WeakRefs() const;
  11266. operator const RefCounted() const;
  11267. // Properties:
  11268. /* readonly */
  11269. int refs;
  11270. /* readonly */
  11271. int weakRefs;
  11272. };
  11273. class File
  11274. {
  11275. public:
  11276. File();
  11277. File(const String&in, FileMode = FILE_READ);
  11278. File(PackageFile&, const String&in);
  11279. // Methods:
  11280. void Close();
  11281. operator Deserializer() const;
  11282. void Flush();
  11283. bool GetBlockEvents() const;
  11284. uint GetChecksum();
  11285. VariantMap& GetEventDataMap() const;
  11286. Object GetEventSender() const;
  11287. FileMode GetMode() const;
  11288. uint GetPosition() const;
  11289. uint GetSize() const;
  11290. Object GetSubsystem(StringHash) const;
  11291. StringHash GetType() const;
  11292. bool HasEventHandlers() const;
  11293. bool HasSubscribedToEvent(Object, StringHash) const;
  11294. bool HasSubscribedToEvent(StringHash) const;
  11295. bool IsEof() const;
  11296. bool IsInstanceOf(StringHash) const;
  11297. bool IsOpen() const;
  11298. bool IsPackaged() const;
  11299. operator Object() const;
  11300. void OnEvent(Object, StringHash, VariantMap&);
  11301. bool Open(PackageFile, const String&);
  11302. bool Open(const String&, FileMode = FILE_READ);
  11303. Array<uint8> Read(uint);
  11304. bool ReadBool();
  11305. BoundingBox ReadBoundingBox();
  11306. int8 ReadByte();
  11307. Color ReadColor();
  11308. double ReadDouble();
  11309. String ReadFileID();
  11310. float ReadFloat();
  11311. int ReadInt();
  11312. int64 ReadInt64();
  11313. IntRect ReadIntRect();
  11314. IntVector2 ReadIntVector2();
  11315. IntVector3 ReadIntVector3();
  11316. String ReadLine();
  11317. Matrix3 ReadMatrix3();
  11318. Matrix3x4 ReadMatrix3x4();
  11319. Matrix4 ReadMatrix4();
  11320. uint ReadNetID();
  11321. Quaternion ReadPackedQuaternion();
  11322. Vector3 ReadPackedVector3(float);
  11323. Quaternion ReadQuaternion();
  11324. Rect ReadRect();
  11325. ResourceRef ReadResourceRef();
  11326. ResourceRefList ReadResourceRefList();
  11327. int16 ReadShort();
  11328. String ReadString();
  11329. StringHash ReadStringHash();
  11330. Array<String> ReadStringVector();
  11331. uint8 ReadUByte();
  11332. uint ReadUInt();
  11333. uint64 ReadUInt64();
  11334. uint16 ReadUShort();
  11335. uint ReadVLE();
  11336. Variant ReadVariant();
  11337. Variant ReadVariant(VariantType);
  11338. VariantMap ReadVariantMap();
  11339. Vector2 ReadVector2();
  11340. Vector3 ReadVector3();
  11341. Vector4 ReadVector4();
  11342. VectorBuffer ReadVectorBuffer(uint);
  11343. operator RefCounted() const;
  11344. int Refs() const;
  11345. uint Seek(uint);
  11346. uint SeekRelative(int);
  11347. void SendEvent(StringHash);
  11348. void SendEvent(StringHash, VariantMap&);
  11349. operator Serializer() const;
  11350. void SetBlockEvents(bool);
  11351. void SetGlobalVar(StringHash, const Variant&);
  11352. void SetName(const String&);
  11353. const String& GetCategory() const;
  11354. const String& GetName() const;
  11355. const String& GetTypeName() const;
  11356. uint Tell() const;
  11357. void UnsubscribeFromAllEvents();
  11358. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11359. void UnsubscribeFromEvent(Object, StringHash);
  11360. void UnsubscribeFromEvent(StringHash);
  11361. void UnsubscribeFromEvents(Object);
  11362. const Variant& GetGlobalVar(StringHash) const;
  11363. const VariantMap& GetGlobalVars() const;
  11364. int WeakRefs() const;
  11365. uint Write(Array<uint8>);
  11366. bool WriteBool(bool);
  11367. bool WriteBoundingBox(const BoundingBox&);
  11368. bool WriteByte(int8);
  11369. bool WriteColor(const Color&);
  11370. bool WriteDouble(double);
  11371. bool WriteFileID(const String&);
  11372. bool WriteFloat(float);
  11373. bool WriteInt(int);
  11374. bool WriteInt64(int64);
  11375. bool WriteIntRect(const IntRect&);
  11376. bool WriteIntVector2(const IntVector2&);
  11377. bool WriteIntVector3(const IntVector3&);
  11378. bool WriteLine(const String&);
  11379. bool WriteMatrix3(const Matrix3&);
  11380. bool WriteMatrix3x4(const Matrix3x4&);
  11381. bool WriteMatrix4(const Matrix4&);
  11382. bool WriteNetID(uint);
  11383. bool WritePackedQuaternion(const Quaternion&);
  11384. bool WritePackedVector3(const Vector3&, float);
  11385. bool WriteQuaternion(const Quaternion&);
  11386. bool WriteRect(const Rect&);
  11387. bool WriteResourceRef(const ResourceRef&);
  11388. bool WriteResourceRefList(const ResourceRefList&);
  11389. bool WriteShort(int16);
  11390. bool WriteString(const String&);
  11391. bool WriteStringHash(const StringHash&);
  11392. bool WriteStringVector(Array<String>);
  11393. bool WriteUByte(uint8);
  11394. bool WriteUInt(uint);
  11395. bool WriteUInt64(uint64);
  11396. bool WriteUShort(uint16);
  11397. bool WriteVLE(uint);
  11398. bool WriteVariant(const Variant&);
  11399. bool WriteVariantData(const Variant&);
  11400. bool WriteVariantMap(const VariantMap&);
  11401. bool WriteVector2(const Vector2&);
  11402. bool WriteVector3(const Vector3&);
  11403. bool WriteVector4(const Vector4&);
  11404. bool WriteVectorBuffer(const VectorBuffer&);
  11405. operator const Deserializer() const;
  11406. operator const Object() const;
  11407. operator const RefCounted() const;
  11408. operator const Serializer() const;
  11409. // Properties:
  11410. /* readonly */
  11411. String category;
  11412. /* readonly */
  11413. uint checksum;
  11414. /* readonly */
  11415. bool eof;
  11416. Array<Variant> globalVar;
  11417. /* readonly */
  11418. VariantMap globalVars;
  11419. /* readonly */
  11420. FileMode mode;
  11421. String name;
  11422. /* readonly */
  11423. bool open;
  11424. /* readonly */
  11425. bool packaged;
  11426. /* readonly */
  11427. uint position;
  11428. /* readonly */
  11429. int refs;
  11430. /* readonly */
  11431. uint size;
  11432. /* readonly */
  11433. StringHash type;
  11434. /* readonly */
  11435. String typeName;
  11436. /* readonly */
  11437. int weakRefs;
  11438. };
  11439. class FileSelector
  11440. {
  11441. public:
  11442. FileSelector();
  11443. // Methods:
  11444. bool GetBlockEvents() const;
  11445. Button GetCancelButton() const;
  11446. Button GetCloseButton() const;
  11447. XMLFile GetDefaultStyle() const;
  11448. bool GetDirectoryMode() const;
  11449. VariantMap& GetEventDataMap() const;
  11450. Object GetEventSender() const;
  11451. ListView GetFileList() const;
  11452. LineEdit GetFileNameEdit() const;
  11453. uint GetFilterIndex() const;
  11454. DropDownList GetFilterList() const;
  11455. Button GetOKButton() const;
  11456. LineEdit GetPathEdit() const;
  11457. Object GetSubsystem(StringHash) const;
  11458. Text GetTitleText() const;
  11459. StringHash GetType() const;
  11460. Window GetWindow() const;
  11461. bool HasEventHandlers() const;
  11462. bool HasSubscribedToEvent(Object, StringHash) const;
  11463. bool HasSubscribedToEvent(StringHash) const;
  11464. bool IsInstanceOf(StringHash) const;
  11465. operator Object() const;
  11466. void OnEvent(Object, StringHash, VariantMap&);
  11467. operator RefCounted() const;
  11468. int Refs() const;
  11469. void SendEvent(StringHash);
  11470. void SendEvent(StringHash, VariantMap&);
  11471. void SetBlockEvents(bool);
  11472. void SetButtonTexts(const String&, const String&);
  11473. void SetDefaultStyle(XMLFile);
  11474. void SetDirectoryMode(bool);
  11475. void SetFileName(const String&);
  11476. void SetFilters(Array<String>, uint);
  11477. void SetGlobalVar(StringHash, const Variant&);
  11478. void SetPath(const String&);
  11479. void SetTitle(const String&);
  11480. const String& GetCategory() const;
  11481. const String& GetFileName() const;
  11482. const String& GetFilter() const;
  11483. const String& GetPath() const;
  11484. const String& GetTitle() const;
  11485. const String& GetTypeName() const;
  11486. void UnsubscribeFromAllEvents();
  11487. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11488. void UnsubscribeFromEvent(Object, StringHash);
  11489. void UnsubscribeFromEvent(StringHash);
  11490. void UnsubscribeFromEvents(Object);
  11491. void UpdateElements();
  11492. const Variant& GetGlobalVar(StringHash) const;
  11493. const VariantMap& GetGlobalVars() const;
  11494. int WeakRefs() const;
  11495. operator const Object() const;
  11496. operator const RefCounted() const;
  11497. // Properties:
  11498. /* readonly */
  11499. Button cancelButton;
  11500. /* readonly */
  11501. String category;
  11502. XMLFile defaultStyle;
  11503. bool directoryMode;
  11504. /* readonly */
  11505. ListView fileList;
  11506. String fileName;
  11507. /* readonly */
  11508. LineEdit fileNameEdit;
  11509. /* readonly */
  11510. String filter;
  11511. /* readonly */
  11512. uint filterIndex;
  11513. /* readonly */
  11514. DropDownList filterList;
  11515. Array<Variant> globalVar;
  11516. /* readonly */
  11517. VariantMap globalVars;
  11518. /* readonly */
  11519. Button okButton;
  11520. String path;
  11521. /* readonly */
  11522. LineEdit pathEdit;
  11523. /* readonly */
  11524. int refs;
  11525. String title;
  11526. /* readonly */
  11527. Text titleText;
  11528. /* readonly */
  11529. StringHash type;
  11530. /* readonly */
  11531. String typeName;
  11532. /* readonly */
  11533. int weakRefs;
  11534. /* readonly */
  11535. Window window;
  11536. };
  11537. class FileSelectorEntry
  11538. {
  11539. public:
  11540. ~FileSelectorEntry();
  11541. FileSelectorEntry();
  11542. // Methods:
  11543. FileSelectorEntry& operator=(const FileSelectorEntry&);
  11544. // Properties:
  11545. bool directory;
  11546. String name;
  11547. };
  11548. class FileSystem
  11549. {
  11550. public:
  11551. FileSystem();
  11552. // Methods:
  11553. bool CheckAccess(const String&) const;
  11554. bool Copy(const String&, const String&);
  11555. bool CreateDir(const String&);
  11556. bool Delete(const String&);
  11557. bool DirExists(const String&) const;
  11558. bool FileExists(const String&) const;
  11559. String GetAppPreferencesDir(const String&, const String&) const;
  11560. bool GetBlockEvents() const;
  11561. String GetCurrentDir() const;
  11562. VariantMap& GetEventDataMap() const;
  11563. Object GetEventSender() const;
  11564. bool GetExecuteConsoleCommands() const;
  11565. uint GetLastModifiedTime(const String&) const;
  11566. String GetProgramDir() const;
  11567. Object GetSubsystem(StringHash) const;
  11568. String GetTemporaryDir() const;
  11569. StringHash GetType() const;
  11570. String GetUserDocumentsDir() const;
  11571. bool HasEventHandlers() const;
  11572. bool HasRegisteredPaths() const;
  11573. bool HasSubscribedToEvent(Object, StringHash) const;
  11574. bool HasSubscribedToEvent(StringHash) const;
  11575. bool IsInstanceOf(StringHash) const;
  11576. operator Object() const;
  11577. void OnEvent(Object, StringHash, VariantMap&);
  11578. operator RefCounted() const;
  11579. int Refs() const;
  11580. void RegisterPath(const String&);
  11581. bool Rename(const String&, const String&);
  11582. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  11583. void SendEvent(StringHash);
  11584. void SendEvent(StringHash, VariantMap&);
  11585. void SetBlockEvents(bool);
  11586. bool SetCurrentDir(const String&);
  11587. void SetExecuteConsoleCommands(bool);
  11588. void SetGlobalVar(StringHash, const Variant&);
  11589. bool SetLastModifiedTime(const String&, uint);
  11590. const String& GetCategory() const;
  11591. const String& GetTypeName() const;
  11592. int SystemCommand(const String&, bool = false);
  11593. uint SystemCommandAsync(const String&);
  11594. bool SystemOpen(const String&, const String& = String :: EMPTY);
  11595. int SystemRun(const String&, Array<String>);
  11596. uint SystemRunAsync(const String&, Array<String>);
  11597. void UnsubscribeFromAllEvents();
  11598. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11599. void UnsubscribeFromEvent(Object, StringHash);
  11600. void UnsubscribeFromEvent(StringHash);
  11601. void UnsubscribeFromEvents(Object);
  11602. const Variant& GetGlobalVar(StringHash) const;
  11603. const VariantMap& GetGlobalVars() const;
  11604. int WeakRefs() const;
  11605. operator const Object() const;
  11606. operator const RefCounted() const;
  11607. // Properties:
  11608. /* readonly */
  11609. String category;
  11610. String currentDir;
  11611. bool executeConsoleCommands;
  11612. Array<Variant> globalVar;
  11613. /* readonly */
  11614. VariantMap globalVars;
  11615. /* readonly */
  11616. String programDir;
  11617. /* readonly */
  11618. int refs;
  11619. /* readonly */
  11620. String temporaryDir;
  11621. /* readonly */
  11622. StringHash type;
  11623. /* readonly */
  11624. String typeName;
  11625. /* readonly */
  11626. String userDocumentsDir;
  11627. /* readonly */
  11628. int weakRefs;
  11629. };
  11630. class FileWatcher
  11631. {
  11632. public:
  11633. FileWatcher();
  11634. // Methods:
  11635. void AddChange(const String&);
  11636. bool GetBlockEvents() const;
  11637. float GetDelay() const;
  11638. VariantMap& GetEventDataMap() const;
  11639. Object GetEventSender() const;
  11640. bool GetNextChange(String&);
  11641. Object GetSubsystem(StringHash) const;
  11642. StringHash GetType() const;
  11643. bool HasEventHandlers() const;
  11644. bool HasSubscribedToEvent(Object, StringHash) const;
  11645. bool HasSubscribedToEvent(StringHash) const;
  11646. bool IsInstanceOf(StringHash) const;
  11647. bool IsStarted() const;
  11648. operator Object() const;
  11649. void OnEvent(Object, StringHash, VariantMap&);
  11650. operator RefCounted() const;
  11651. int Refs() const;
  11652. bool Run();
  11653. void SendEvent(StringHash);
  11654. void SendEvent(StringHash, VariantMap&);
  11655. void SetBlockEvents(bool);
  11656. void SetDelay(float);
  11657. void SetGlobalVar(StringHash, const Variant&);
  11658. void SetPriority(int);
  11659. bool StartWatching(const String&, bool);
  11660. void Stop();
  11661. void StopWatching();
  11662. const String& GetCategory() const;
  11663. const String& GetPath() const;
  11664. const String& GetTypeName() const;
  11665. void ThreadFunction();
  11666. void UnsubscribeFromAllEvents();
  11667. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11668. void UnsubscribeFromEvent(Object, StringHash);
  11669. void UnsubscribeFromEvent(StringHash);
  11670. void UnsubscribeFromEvents(Object);
  11671. const Variant& GetGlobalVar(StringHash) const;
  11672. const VariantMap& GetGlobalVars() const;
  11673. int WeakRefs() const;
  11674. operator const Object() const;
  11675. operator const RefCounted() const;
  11676. // Properties:
  11677. /* readonly */
  11678. String category;
  11679. Array<Variant> globalVar;
  11680. /* readonly */
  11681. VariantMap globalVars;
  11682. /* readonly */
  11683. int refs;
  11684. /* readonly */
  11685. StringHash type;
  11686. /* readonly */
  11687. String typeName;
  11688. /* readonly */
  11689. int weakRefs;
  11690. };
  11691. class FocusParameters
  11692. {
  11693. public:
  11694. FocusParameters();
  11695. FocusParameters(bool, bool, bool, float, float);
  11696. // Methods:
  11697. FocusParameters& operator=(const FocusParameters&);
  11698. void Validate();
  11699. // Properties:
  11700. bool autoSize;
  11701. bool focus;
  11702. float minView;
  11703. bool nonUniform;
  11704. float quantize;
  11705. };
  11706. class Font
  11707. {
  11708. public:
  11709. Font();
  11710. // Methods:
  11711. bool BeginLoad(Deserializer&);
  11712. bool EndLoad();
  11713. AsyncLoadState GetAsyncLoadState() const;
  11714. bool GetBlockEvents() const;
  11715. VariantMap& GetEventDataMap() const;
  11716. Object GetEventSender() const;
  11717. FontFace GetFace(float);
  11718. FontType GetFontType() const;
  11719. uint GetMemoryUse() const;
  11720. StringHash GetNameHash() const;
  11721. Object GetSubsystem(StringHash) const;
  11722. IntVector2 GetTotalGlyphOffset(float) const;
  11723. StringHash GetType() const;
  11724. uint GetUseTimer();
  11725. bool HasEventHandlers() const;
  11726. bool HasSubscribedToEvent(Object, StringHash) const;
  11727. bool HasSubscribedToEvent(StringHash) const;
  11728. const IntVector2& GetAbsoluteGlyphOffset() const;
  11729. bool IsInstanceOf(StringHash) const;
  11730. bool IsSDFFont() const;
  11731. bool Load(Deserializer&);
  11732. bool Load(File);
  11733. bool Load(VectorBuffer&);
  11734. bool Load(const String&);
  11735. bool LoadFile(const String&);
  11736. operator Object() const;
  11737. void OnEvent(Object, StringHash, VariantMap&);
  11738. operator RefCounted() const;
  11739. int Refs() const;
  11740. void ReleaseFaces();
  11741. void ResetUseTimer();
  11742. operator Resource() const;
  11743. bool Save(File) const;
  11744. bool Save(Serializer&) const;
  11745. bool Save(VectorBuffer&) const;
  11746. bool Save(const String&) const;
  11747. bool SaveFile(const String&) const;
  11748. bool SaveXML(File, int, bool usedGlyphs = false, const String& indentation = "\t");
  11749. bool SaveXML(Serializer&, int, bool = false, const String& = "\t");
  11750. bool SaveXML(VectorBuffer&, int, bool usedGlyphs = false, const String& indentation = "\t");
  11751. bool SaveXML(const String&, int, bool usedGlyphs = false, const String& indentation = "\t");
  11752. void SendEvent(StringHash);
  11753. void SendEvent(StringHash, VariantMap&);
  11754. void SetAbsoluteGlyphOffset(const IntVector2&);
  11755. void SetAsyncLoadState(AsyncLoadState);
  11756. void SetBlockEvents(bool);
  11757. void SetGlobalVar(StringHash, const Variant&);
  11758. void SetMemoryUse(uint);
  11759. void SetName(const String&);
  11760. void SetScaledGlyphOffset(const Vector2&);
  11761. const String& GetCategory() const;
  11762. const String& GetName() const;
  11763. const String& GetTypeName() const;
  11764. void UnsubscribeFromAllEvents();
  11765. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11766. void UnsubscribeFromEvent(Object, StringHash);
  11767. void UnsubscribeFromEvent(StringHash);
  11768. void UnsubscribeFromEvents(Object);
  11769. const Variant& GetGlobalVar(StringHash) const;
  11770. const VariantMap& GetGlobalVars() const;
  11771. const Vector2& GetScaledGlyphOffset() const;
  11772. int WeakRefs() const;
  11773. operator const Object() const;
  11774. operator const RefCounted() const;
  11775. operator const Resource() const;
  11776. // Properties:
  11777. IntVector2 absoluteGlyphOffset;
  11778. /* readonly */
  11779. String category;
  11780. /* readonly */
  11781. FontType fontType;
  11782. Array<Variant> globalVar;
  11783. /* readonly */
  11784. VariantMap globalVars;
  11785. /* readonly */
  11786. uint memoryUse;
  11787. String name;
  11788. /* readonly */
  11789. int refs;
  11790. Vector2 scaledGlyphOffset;
  11791. /* readonly */
  11792. StringHash type;
  11793. /* readonly */
  11794. String typeName;
  11795. /* readonly */
  11796. uint useTimer;
  11797. /* readonly */
  11798. int weakRefs;
  11799. };
  11800. class FontFace
  11801. {
  11802. public:
  11803. // Methods:
  11804. operator FontFaceBitmap() const;
  11805. operator FontFaceFreeType() const;
  11806. float GetKerning(uint, uint) const;
  11807. float GetPointSize() const;
  11808. float GetRowHeight() const;
  11809. Array<Texture2D> GetTextures() const;
  11810. bool HasMutableGlyphs() const;
  11811. bool IsDataLost() const;
  11812. operator RefCounted() const;
  11813. int Refs() const;
  11814. int WeakRefs() const;
  11815. operator const FontFaceBitmap() const;
  11816. operator const FontFaceFreeType() const;
  11817. operator const RefCounted() const;
  11818. // Properties:
  11819. /* readonly */
  11820. int refs;
  11821. /* readonly */
  11822. int weakRefs;
  11823. };
  11824. class FontFaceBitmap
  11825. {
  11826. public:
  11827. FontFaceBitmap(Font&);
  11828. // Methods:
  11829. operator FontFace() const;
  11830. float GetKerning(uint, uint) const;
  11831. float GetPointSize() const;
  11832. float GetRowHeight() const;
  11833. Array<Texture2D> GetTextures() const;
  11834. bool HasMutableGlyphs() const;
  11835. bool IsDataLost() const;
  11836. bool Load(FontFace, bool);
  11837. operator RefCounted() const;
  11838. int Refs() const;
  11839. bool Save(Serializer&, int, const String& = "\t");
  11840. int WeakRefs() const;
  11841. operator const FontFace() const;
  11842. operator const RefCounted() const;
  11843. // Properties:
  11844. /* readonly */
  11845. int refs;
  11846. /* readonly */
  11847. int weakRefs;
  11848. };
  11849. class FontFaceFreeType
  11850. {
  11851. public:
  11852. FontFaceFreeType(Font&);
  11853. // Methods:
  11854. operator FontFace() const;
  11855. float GetKerning(uint, uint) const;
  11856. float GetPointSize() const;
  11857. float GetRowHeight() const;
  11858. Array<Texture2D> GetTextures() const;
  11859. bool HasMutableGlyphs() const;
  11860. bool IsDataLost() const;
  11861. operator RefCounted() const;
  11862. int Refs() const;
  11863. int WeakRefs() const;
  11864. operator const FontFace() const;
  11865. operator const RefCounted() const;
  11866. // Properties:
  11867. /* readonly */
  11868. int refs;
  11869. /* readonly */
  11870. int weakRefs;
  11871. };
  11872. class FontGlyph
  11873. {
  11874. public:
  11875. ~FontGlyph();
  11876. FontGlyph();
  11877. // Methods:
  11878. FontGlyph& operator=(const FontGlyph&);
  11879. // Properties:
  11880. float advanceX;
  11881. float height;
  11882. float offsetX;
  11883. float offsetY;
  11884. uint page;
  11885. int16 texHeight;
  11886. int16 texWidth;
  11887. bool used;
  11888. float width;
  11889. int16 x;
  11890. int16 y;
  11891. };
  11892. class FrameInfo
  11893. {
  11894. public:
  11895. ~FrameInfo();
  11896. FrameInfo();
  11897. // Methods:
  11898. FrameInfo& operator=(const FrameInfo&);
  11899. // Properties:
  11900. uint frameNumber;
  11901. float timeStep;
  11902. IntVector2 viewSize;
  11903. };
  11904. class Frustum
  11905. {
  11906. public:
  11907. ~Frustum();
  11908. Frustum();
  11909. Frustum(const Frustum&in);
  11910. // Methods:
  11911. Frustum& operator=(const Frustum&);
  11912. void Define(const BoundingBox&, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11913. void Define(const Matrix4&);
  11914. void Define(const Vector3&, const Vector3&, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11915. void Define(float, float, float, float, float, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11916. void DefineOrtho(float, float, float, float, float, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11917. void DefineSplit(const Matrix4&, float, float);
  11918. float Distance(const Vector3&) const;
  11919. Intersection IsInside(const BoundingBox&) const;
  11920. Intersection IsInside(const Sphere&) const;
  11921. Intersection IsInside(const Vector3&) const;
  11922. Intersection IsInsideFast(const BoundingBox&) const;
  11923. Intersection IsInsideFast(const Sphere&) const;
  11924. Rect Projected(const Matrix4&) const;
  11925. void Transform(const Matrix3&);
  11926. void Transform(const Matrix3x4&);
  11927. Frustum Transformed(const Matrix3&) const;
  11928. Frustum Transformed(const Matrix3x4&) const;
  11929. void UpdatePlanes();
  11930. // Properties:
  11931. /* readonly */
  11932. Array<Vector3> vertices;
  11933. };
  11934. class GImpactMeshData
  11935. {
  11936. public:
  11937. GImpactMeshData(Model&, uint);
  11938. GImpactMeshData(CustomGeometry&);
  11939. // Methods:
  11940. operator CollisionGeometryData() const;
  11941. operator RefCounted() const;
  11942. int Refs() const;
  11943. int WeakRefs() const;
  11944. operator const CollisionGeometryData() const;
  11945. operator const RefCounted() const;
  11946. // Properties:
  11947. /* readonly */
  11948. int refs;
  11949. /* readonly */
  11950. int weakRefs;
  11951. };
  11952. class GPUObject
  11953. {
  11954. public:
  11955. ~GPUObject();
  11956. GPUObject(Graphics@);
  11957. // Methods:
  11958. GPUObject& operator=(const GPUObject&);
  11959. void ClearDataLost();
  11960. uint GetGPUObjectName() const;
  11961. Graphics GetGraphics() const;
  11962. bool HasPendingData() const;
  11963. bool IsDataLost() const;
  11964. void OnDeviceLost();
  11965. void OnDeviceReset();
  11966. void Release();
  11967. // Properties:
  11968. /* readonly */
  11969. bool dataLost;
  11970. };
  11971. class Geometry
  11972. {
  11973. public:
  11974. Geometry();
  11975. // Methods:
  11976. void Draw(Graphics);
  11977. bool GetBlockEvents() const;
  11978. uint16 GetBufferHash() const;
  11979. VariantMap& GetEventDataMap() const;
  11980. Object GetEventSender() const;
  11981. IndexBuffer GetIndexBuffer() const;
  11982. uint GetIndexCount() const;
  11983. uint GetIndexStart() const;
  11984. float GetLodDistance() const;
  11985. uint GetNumVertexBuffers() const;
  11986. PrimitiveType GetPrimitiveType() const;
  11987. Object GetSubsystem(StringHash) const;
  11988. StringHash GetType() const;
  11989. VertexBuffer GetVertexBuffer(uint) const;
  11990. Array<VertexBuffer> GetVertexBuffers() const;
  11991. uint GetVertexCount() const;
  11992. uint GetVertexStart() const;
  11993. bool HasEventHandlers() const;
  11994. bool HasSubscribedToEvent(Object, StringHash) const;
  11995. bool HasSubscribedToEvent(StringHash) const;
  11996. bool IsEmpty() const;
  11997. bool IsInside(const Ray&) const;
  11998. bool IsInstanceOf(StringHash) const;
  11999. operator Object() const;
  12000. void OnEvent(Object, StringHash, VariantMap&);
  12001. operator RefCounted() const;
  12002. int Refs() const;
  12003. void SendEvent(StringHash);
  12004. void SendEvent(StringHash, VariantMap&);
  12005. void SetBlockEvents(bool);
  12006. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  12007. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  12008. void SetGlobalVar(StringHash, const Variant&);
  12009. void SetIndexBuffer(IndexBuffer);
  12010. void SetLodDistance(float);
  12011. bool SetNumVertexBuffers(uint);
  12012. bool SetVertexBuffer(uint, VertexBuffer);
  12013. const String& GetCategory() const;
  12014. const String& GetTypeName() const;
  12015. void UnsubscribeFromAllEvents();
  12016. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12017. void UnsubscribeFromEvent(Object, StringHash);
  12018. void UnsubscribeFromEvent(StringHash);
  12019. void UnsubscribeFromEvents(Object);
  12020. const Variant& GetGlobalVar(StringHash) const;
  12021. const VariantMap& GetGlobalVars() const;
  12022. int WeakRefs() const;
  12023. operator const Object() const;
  12024. operator const RefCounted() const;
  12025. // Properties:
  12026. /* readonly */
  12027. String category;
  12028. /* readonly */
  12029. bool empty;
  12030. Array<Variant> globalVar;
  12031. /* readonly */
  12032. VariantMap globalVars;
  12033. IndexBuffer indexBuffer;
  12034. /* readonly */
  12035. uint indexCount;
  12036. /* readonly */
  12037. uint indexStart;
  12038. float lodDistance;
  12039. uint numVertexBuffers;
  12040. /* readonly */
  12041. PrimitiveType primitiveType;
  12042. /* readonly */
  12043. int refs;
  12044. /* readonly */
  12045. StringHash type;
  12046. /* readonly */
  12047. String typeName;
  12048. /* readonly */
  12049. Array<VertexBuffer> vertexBuffers;
  12050. /* readonly */
  12051. uint vertexCount;
  12052. /* readonly */
  12053. uint vertexStart;
  12054. /* readonly */
  12055. int weakRefs;
  12056. };
  12057. class GeometryDesc
  12058. {
  12059. public:
  12060. ~GeometryDesc();
  12061. GeometryDesc();
  12062. // Methods:
  12063. GeometryDesc& operator=(const GeometryDesc&);
  12064. // Properties:
  12065. uint ibRef;
  12066. uint indexCount;
  12067. uint indexStart;
  12068. PrimitiveType type;
  12069. uint vbRef;
  12070. };
  12071. class Graphics
  12072. {
  12073. public:
  12074. Graphics();
  12075. // Methods:
  12076. void BeginDumpShaders(const String&);
  12077. bool BeginFrame();
  12078. void CleanupScratchBuffers();
  12079. void CleanupShaderPrograms(ShaderVariation);
  12080. void Clear(uint, const Color& = Color ( 0.0f , 0.0f , 0.0f , 0.0f ), float = 1.0f, uint = 0);
  12081. void ClearParameterSource(ShaderParameterGroup);
  12082. void ClearParameterSources();
  12083. void ClearTransformSources();
  12084. void Close();
  12085. void Draw(PrimitiveType, uint, uint);
  12086. void Draw(PrimitiveType, uint, uint, uint, uint);
  12087. void Draw(PrimitiveType, uint, uint, uint, uint, uint);
  12088. void DrawInstanced(PrimitiveType, uint, uint, uint, uint, uint);
  12089. void DrawInstanced(PrimitiveType, uint, uint, uint, uint, uint, uint);
  12090. void EndDumpShaders();
  12091. void EndFrame();
  12092. uint FindBestResolutionIndex(int, int, int, int) const;
  12093. bool GetAlphaToCoverage() const;
  12094. bool GetAnisotropySupport() const;
  12095. BlendMode GetBlendMode() const;
  12096. bool GetBlockEvents() const;
  12097. bool GetBorderless() const;
  12098. bool GetColorWrite() const;
  12099. CullMode GetCullMode() const;
  12100. int GetCurrentMonitor() const;
  12101. uint GetDefaultTextureAnisotropy() const;
  12102. TextureFilterMode GetDefaultTextureFilterMode() const;
  12103. bool GetDeferredSupport() const;
  12104. float GetDepthConstantBias() const;
  12105. float GetDepthSlopeScaledBias() const;
  12106. RenderSurface GetDepthStencil() const;
  12107. CompareMode GetDepthTest() const;
  12108. bool GetDepthWrite() const;
  12109. IntVector2 GetDesktopResolution(int) const;
  12110. Vector3 GetDisplayDPI(int = 0) const;
  12111. bool GetDither() const;
  12112. uint GetDummyColorFormat() const;
  12113. VariantMap& GetEventDataMap() const;
  12114. Object GetEventSender() const;
  12115. FillMode GetFillMode() const;
  12116. bool GetFlushGPU() const;
  12117. bool GetForceGL2() const;
  12118. uint GetFormat(CompressedFormat) const;
  12119. bool GetFullscreen() const;
  12120. bool GetHardwareShadowSupport() const;
  12121. int GetHeight() const;
  12122. bool GetHighDPI() const;
  12123. uint GetHiresShadowMapFormat() const;
  12124. IndexBuffer GetIndexBuffer() const;
  12125. bool GetInstancingSupport() const;
  12126. bool GetLightPrepassSupport() const;
  12127. bool GetLineAntiAlias() const;
  12128. bool GetMaximized() const;
  12129. int GetMonitor() const;
  12130. int GetMonitorCount() const;
  12131. int GetMultiSample() const;
  12132. Array<int> GetMultiSampleLevels() const;
  12133. uint GetNumBatches() const;
  12134. uint GetNumPrimitives() const;
  12135. ShaderVariation GetPixelShader() const;
  12136. bool GetReadableDepthSupport() const;
  12137. int GetRefreshRate() const;
  12138. RenderSurface GetRenderTarget(uint) const;
  12139. IntVector2 GetRenderTargetDimensions() const;
  12140. bool GetResizable() const;
  12141. Array<IntVector3> GetResolutions(int) const;
  12142. bool GetSRGB() const;
  12143. bool GetSRGBSupport() const;
  12144. bool GetSRGBWriteSupport() const;
  12145. bool GetScissorTest() const;
  12146. ShaderVariation GetShader(ShaderType, const String&, const String& = String :: EMPTY) const;
  12147. uint GetShadowMapFormat() const;
  12148. IntVector2 GetSize() const;
  12149. uint GetStencilCompareMask() const;
  12150. StencilOp GetStencilFail() const;
  12151. StencilOp GetStencilPass() const;
  12152. uint GetStencilRef() const;
  12153. bool GetStencilTest() const;
  12154. CompareMode GetStencilTestMode() const;
  12155. uint GetStencilWriteMask() const;
  12156. StencilOp GetStencilZFail() const;
  12157. Object GetSubsystem(StringHash) const;
  12158. Texture GetTexture(uint) const;
  12159. TextureUnit GetTextureUnit(const String&);
  12160. bool GetTripleBuffer() const;
  12161. StringHash GetType() const;
  12162. bool GetUseClipPlane() const;
  12163. bool GetVSync() const;
  12164. VertexBuffer GetVertexBuffer(uint) const;
  12165. ShaderVariation GetVertexShader() const;
  12166. IntRect GetViewport() const;
  12167. int GetWidth() const;
  12168. IntVector2 GetWindowPosition() const;
  12169. bool HasEventHandlers() const;
  12170. bool HasShaderParameter(StringHash);
  12171. bool HasSubscribedToEvent(Object, StringHash) const;
  12172. bool HasSubscribedToEvent(StringHash) const;
  12173. bool HasTextureUnit(TextureUnit);
  12174. const IntRect& GetScissorRect() const;
  12175. bool IsDeviceLost() const;
  12176. bool IsInitialized() const;
  12177. bool IsInstanceOf(StringHash) const;
  12178. void Maximize();
  12179. void Minimize();
  12180. operator Object() const;
  12181. void OnEvent(Object, StringHash, VariantMap&);
  12182. void OnWindowMoved();
  12183. void OnWindowResized();
  12184. void PrecacheShaders(Deserializer&);
  12185. void PrecacheShaders(File);
  12186. void PrecacheShaders(VectorBuffer&);
  12187. void Raise() const;
  12188. operator RefCounted() const;
  12189. int Refs() const;
  12190. void ResetDepthStencil();
  12191. void ResetRenderTarget(uint);
  12192. void ResetRenderTargets();
  12193. bool ResolveToTexture(Texture2D);
  12194. bool ResolveToTexture(Texture2D, const IntRect&);
  12195. bool ResolveToTexture(TextureCube);
  12196. const ScreenModeParams& GetScreenModeParams() const;
  12197. void SendEvent(StringHash);
  12198. void SendEvent(StringHash, VariantMap&);
  12199. void SetBlendMode(BlendMode, bool = false);
  12200. void SetBlockEvents(bool);
  12201. void SetClipPlane(bool, const Plane& = Plane :: UP, const Matrix3x4& = Matrix3x4 :: IDENTITY, const Matrix4& = Matrix4 :: IDENTITY);
  12202. void SetColorWrite(bool);
  12203. void SetCullMode(CullMode);
  12204. void SetDefaultTextureAnisotropy(uint);
  12205. void SetDefaultTextureFilterMode(TextureFilterMode);
  12206. bool SetDefaultWindowModes(int, int, const ScreenModeParams&);
  12207. void SetDepthBias(float, float);
  12208. void SetDepthStencil(RenderSurface);
  12209. void SetDepthStencil(Texture2D);
  12210. void SetDepthTest(CompareMode);
  12211. void SetDepthWrite(bool);
  12212. void SetDither(bool);
  12213. void SetFillMode(FillMode);
  12214. void SetFlushGPU(bool);
  12215. void SetForceGL2(bool);
  12216. void SetGlobalVar(StringHash, const Variant&);
  12217. void SetIndexBuffer(IndexBuffer);
  12218. void SetLineAntiAlias(bool);
  12219. bool SetMode(int, int);
  12220. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  12221. void SetOrientations(const String&);
  12222. void SetRenderTarget(uint, RenderSurface);
  12223. void SetRenderTarget(uint, Texture2D);
  12224. void SetSRGB(bool);
  12225. void SetScissorTest(bool, const IntRect&);
  12226. void SetScissorTest(bool, const Rect& = Rect :: FULL, bool = true);
  12227. bool SetScreenMode(int, int);
  12228. bool SetScreenMode(int, int, const ScreenModeParams&, bool = false);
  12229. void SetShaderCacheDir(const String&);
  12230. void SetShaderParameter(StringHash, bool);
  12231. void SetShaderParameter(StringHash, const Color&);
  12232. void SetShaderParameter(StringHash, const Matrix3&);
  12233. void SetShaderParameter(StringHash, const Matrix3x4&);
  12234. void SetShaderParameter(StringHash, const Matrix4&);
  12235. void SetShaderParameter(StringHash, const Variant&);
  12236. void SetShaderParameter(StringHash, const Vector2&);
  12237. void SetShaderParameter(StringHash, const Vector3&);
  12238. void SetShaderParameter(StringHash, const Vector4&);
  12239. void SetShaderParameter(StringHash, float);
  12240. void SetShaderParameter(StringHash, int);
  12241. void SetShaders(ShaderVariation, ShaderVariation);
  12242. 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);
  12243. void SetTexture(uint, Texture);
  12244. void SetVertexBuffer(VertexBuffer);
  12245. bool SetVertexBuffers(Array<VertexBuffer>, uint = 0);
  12246. void SetViewport(const IntRect&);
  12247. void SetWindowIcon(Image);
  12248. bool SetWindowModes(const WindowModeParams&, const WindowModeParams&, bool = false);
  12249. void SetWindowPosition(const IntVector2&);
  12250. void SetWindowPosition(int, int);
  12251. void SetWindowTitle(const String&);
  12252. const String& GetApiName() const;
  12253. const String& GetCategory() const;
  12254. const String& GetOrientations() const;
  12255. const String& GetShaderCacheDir() const;
  12256. const String& GetTextureUnitName(TextureUnit);
  12257. const String& GetTypeName() const;
  12258. const String& GetWindowTitle() const;
  12259. bool TakeScreenShot(Image&);
  12260. bool ToggleFullscreen();
  12261. void UnsubscribeFromAllEvents();
  12262. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12263. void UnsubscribeFromEvent(Object, StringHash);
  12264. void UnsubscribeFromEvent(StringHash);
  12265. void UnsubscribeFromEvents(Object);
  12266. const Variant& GetGlobalVar(StringHash) const;
  12267. const VariantMap& GetGlobalVars() const;
  12268. int WeakRefs() const;
  12269. operator const Object() const;
  12270. operator const RefCounted() const;
  12271. // Properties:
  12272. /* readonly */
  12273. String apiName;
  12274. /* readonly */
  12275. bool borderless;
  12276. /* readonly */
  12277. String category;
  12278. /* readonly */
  12279. int currentMonitor;
  12280. /* readonly */
  12281. bool deferredSupport;
  12282. /* readonly */
  12283. Array<IntVector2> desktopResolution;
  12284. /* readonly */
  12285. bool deviceLost;
  12286. /* readonly */
  12287. Array<Vector3> displayDPI;
  12288. bool dither;
  12289. bool flushGPU;
  12290. /* readonly */
  12291. bool fullscreen;
  12292. Array<Variant> globalVar;
  12293. /* readonly */
  12294. VariantMap globalVars;
  12295. /* readonly */
  12296. bool hardwareShadowSupport;
  12297. /* readonly */
  12298. int height;
  12299. /* readonly */
  12300. bool initialized;
  12301. /* readonly */
  12302. bool instancingSupport;
  12303. /* readonly */
  12304. bool lightPrepassSupport;
  12305. /* readonly */
  12306. bool maximized;
  12307. /* readonly */
  12308. int monitorCount;
  12309. /* readonly */
  12310. int multiSample;
  12311. /* readonly */
  12312. Array<int> multiSampleLevels;
  12313. /* readonly */
  12314. uint numBatches;
  12315. /* readonly */
  12316. uint numPrimitives;
  12317. String orientations;
  12318. /* readonly */
  12319. bool readableDepthSupport;
  12320. /* readonly */
  12321. int refs;
  12322. /* readonly */
  12323. bool resizable;
  12324. /* readonly */
  12325. Array<Array<IntVector3>> resolutions;
  12326. bool sRGB;
  12327. /* readonly */
  12328. bool sRGBSupport;
  12329. /* readonly */
  12330. bool sRGBWriteSupport;
  12331. String shaderCacheDir;
  12332. /* readonly */
  12333. IntVector2 size;
  12334. /* readonly */
  12335. bool tripleBuffer;
  12336. /* readonly */
  12337. StringHash type;
  12338. /* readonly */
  12339. String typeName;
  12340. /* readonly */
  12341. bool vSync;
  12342. /* readonly */
  12343. int weakRefs;
  12344. /* readonly */
  12345. int width;
  12346. /* writeonly */
  12347. Image windowIcon;
  12348. IntVector2 windowPosition;
  12349. String windowTitle;
  12350. };
  12351. class HashBase
  12352. {
  12353. public:
  12354. ~HashBase();
  12355. HashBase();
  12356. // Methods:
  12357. HashBase& operator=(const HashBase&);
  12358. bool Empty() const;
  12359. uint NumBuckets() const;
  12360. uint Size() const;
  12361. void Swap(HashBase&);
  12362. // Constants:
  12363. static const uint MAX_LOAD_FACTOR;
  12364. static const uint MIN_BUCKETS;
  12365. };
  12366. class HashIteratorBase
  12367. {
  12368. public:
  12369. ~HashIteratorBase();
  12370. HashIteratorBase();
  12371. // Methods:
  12372. HashIteratorBase& operator=(const HashIteratorBase&);
  12373. bool operator==(const HashIteratorBase&) const;
  12374. void GotoNext();
  12375. void GotoPrev();
  12376. };
  12377. class HashNodeBase
  12378. {
  12379. public:
  12380. ~HashNodeBase();
  12381. HashNodeBase();
  12382. // Methods:
  12383. HashNodeBase& operator=(const HashNodeBase&);
  12384. };
  12385. class HeightfieldData
  12386. {
  12387. public:
  12388. HeightfieldData(Terrain&, uint);
  12389. // Methods:
  12390. operator CollisionGeometryData() const;
  12391. operator RefCounted() const;
  12392. int Refs() const;
  12393. int WeakRefs() const;
  12394. operator const CollisionGeometryData() const;
  12395. operator const RefCounted() const;
  12396. // Properties:
  12397. float maxHeight;
  12398. float minHeight;
  12399. /* readonly */
  12400. int refs;
  12401. IntVector2 size;
  12402. Vector3 spacing;
  12403. /* readonly */
  12404. int weakRefs;
  12405. };
  12406. class HiresTimer
  12407. {
  12408. public:
  12409. ~HiresTimer();
  12410. HiresTimer();
  12411. // Methods:
  12412. HiresTimer& operator=(const HiresTimer&);
  12413. int64 GetUSec(bool);
  12414. void Reset();
  12415. };
  12416. class HttpRequest
  12417. {
  12418. public:
  12419. HttpRequest(const String&in, const String&in, String[]&, const String&in);
  12420. // Methods:
  12421. operator Deserializer() const;
  12422. uint GetAvailableSize() const;
  12423. uint GetChecksum();
  12424. String GetError() const;
  12425. uint GetPosition() const;
  12426. uint GetSize() const;
  12427. HttpRequestState GetState() const;
  12428. bool IsEof() const;
  12429. bool IsOpen() const;
  12430. bool IsStarted() const;
  12431. Array<uint8> Read(uint);
  12432. bool ReadBool();
  12433. BoundingBox ReadBoundingBox();
  12434. int8 ReadByte();
  12435. Color ReadColor();
  12436. double ReadDouble();
  12437. String ReadFileID();
  12438. float ReadFloat();
  12439. int ReadInt();
  12440. int64 ReadInt64();
  12441. IntRect ReadIntRect();
  12442. IntVector2 ReadIntVector2();
  12443. IntVector3 ReadIntVector3();
  12444. String ReadLine();
  12445. Matrix3 ReadMatrix3();
  12446. Matrix3x4 ReadMatrix3x4();
  12447. Matrix4 ReadMatrix4();
  12448. uint ReadNetID();
  12449. Quaternion ReadPackedQuaternion();
  12450. Vector3 ReadPackedVector3(float);
  12451. Quaternion ReadQuaternion();
  12452. Rect ReadRect();
  12453. ResourceRef ReadResourceRef();
  12454. ResourceRefList ReadResourceRefList();
  12455. int16 ReadShort();
  12456. String ReadString();
  12457. StringHash ReadStringHash();
  12458. Array<String> ReadStringVector();
  12459. uint8 ReadUByte();
  12460. uint ReadUInt();
  12461. uint64 ReadUInt64();
  12462. uint16 ReadUShort();
  12463. uint ReadVLE();
  12464. Variant ReadVariant();
  12465. Variant ReadVariant(VariantType);
  12466. VariantMap ReadVariantMap();
  12467. Vector2 ReadVector2();
  12468. Vector3 ReadVector3();
  12469. Vector4 ReadVector4();
  12470. VectorBuffer ReadVectorBuffer(uint);
  12471. operator RefCounted() const;
  12472. int Refs() const;
  12473. bool Run();
  12474. uint Seek(uint);
  12475. uint SeekRelative(int);
  12476. void SetPriority(int);
  12477. void Stop();
  12478. const String& GetName() const;
  12479. const String& GetURL() const;
  12480. const String& GetVerb() const;
  12481. uint Tell() const;
  12482. void ThreadFunction();
  12483. int WeakRefs() const;
  12484. operator const Deserializer() const;
  12485. operator const RefCounted() const;
  12486. // Properties:
  12487. /* readonly */
  12488. uint availableSize;
  12489. /* readonly */
  12490. uint checksum;
  12491. /* readonly */
  12492. bool eof;
  12493. /* readonly */
  12494. String error;
  12495. /* readonly */
  12496. String name;
  12497. /* readonly */
  12498. bool open;
  12499. /* readonly */
  12500. uint position;
  12501. /* readonly */
  12502. int refs;
  12503. /* readonly */
  12504. uint size;
  12505. /* readonly */
  12506. HttpRequestState state;
  12507. /* readonly */
  12508. String url;
  12509. /* readonly */
  12510. String verb;
  12511. /* readonly */
  12512. int weakRefs;
  12513. };
  12514. class IKConstraint
  12515. {
  12516. public:
  12517. IKConstraint();
  12518. // Methods:
  12519. void AllocateNetworkState();
  12520. operator Animatable() const;
  12521. void ApplyAttributes();
  12522. void CleanupConnection(Connection);
  12523. operator Component() const;
  12524. void DrawDebugGeometry(DebugRenderer, bool);
  12525. bool GetAnimationEnabled() const;
  12526. Variant GetAttribute(const String&) const;
  12527. Variant GetAttribute(uint) const;
  12528. ValueAnimation GetAttributeAnimation(const String&) const;
  12529. float GetAttributeAnimationSpeed(const String&) const;
  12530. float GetAttributeAnimationTime(const String&) const;
  12531. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12532. Variant GetAttributeDefault(const String&) const;
  12533. Variant GetAttributeDefault(uint) const;
  12534. bool GetBlockEvents() const;
  12535. Component GetComponent(StringHash) const;
  12536. VariantMap& GetEventDataMap() const;
  12537. Object GetEventSender() const;
  12538. uint GetID() const;
  12539. bool GetInterceptNetworkUpdate(const String&) const;
  12540. Node GetNode() const;
  12541. uint GetNumAttributes() const;
  12542. uint GetNumNetworkAttributes() const;
  12543. ObjectAnimation GetObjectAnimation() const;
  12544. ResourceRef GetObjectAnimationAttr() const;
  12545. Scene GetScene() const;
  12546. float GetStiffness() const;
  12547. float GetStretchiness() const;
  12548. Object GetSubsystem(StringHash) const;
  12549. StringHash GetType() const;
  12550. bool HasEventHandlers() const;
  12551. bool HasSubscribedToEvent(Object, StringHash) const;
  12552. bool HasSubscribedToEvent(StringHash) const;
  12553. bool IsEnabled() const;
  12554. bool IsEnabledEffective() const;
  12555. bool IsInstanceOf(StringHash) const;
  12556. bool IsReplicated() const;
  12557. bool IsTemporary() const;
  12558. bool Load(Deserializer&);
  12559. bool LoadJSON(const JSONValue&);
  12560. bool LoadXML(const XMLElement&);
  12561. void MarkNetworkUpdate();
  12562. operator Object() const;
  12563. void OnEvent(Object, StringHash, VariantMap&);
  12564. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12565. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12566. void OnSetEnabled();
  12567. void PrepareNetworkUpdate();
  12568. bool ReadDeltaUpdate(Deserializer&);
  12569. bool ReadLatestDataUpdate(Deserializer&);
  12570. operator RefCounted() const;
  12571. int Refs() const;
  12572. void Remove();
  12573. void RemoveAttributeAnimation(const String&);
  12574. void RemoveInstanceDefault();
  12575. void RemoveObjectAnimation();
  12576. void ResetToDefault();
  12577. bool Save(Serializer&) const;
  12578. bool SaveDefaultAttributes() const;
  12579. bool SaveJSON(JSONValue&) const;
  12580. bool SaveXML(XMLElement&) const;
  12581. void SendEvent(StringHash);
  12582. void SendEvent(StringHash, VariantMap&);
  12583. operator Serializable() const;
  12584. void SetAnimationEnabled(bool);
  12585. void SetAnimationTime(float);
  12586. bool SetAttribute(const String&, const Variant&);
  12587. bool SetAttribute(uint, const Variant&);
  12588. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12589. void SetAttributeAnimationSpeed(const String&, float);
  12590. void SetAttributeAnimationTime(const String&, float);
  12591. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12592. void SetBlockEvents(bool);
  12593. void SetEnabled(bool);
  12594. void SetGlobalVar(StringHash, const Variant&);
  12595. void SetInstanceDefault(bool);
  12596. void SetInterceptNetworkUpdate(const String&, bool);
  12597. void SetLengthConstraints(const Vector2&);
  12598. void SetObjectAnimation(ObjectAnimation);
  12599. void SetObjectAnimationAttr(const ResourceRef&);
  12600. void SetStiffness(float);
  12601. void SetStretchiness(float);
  12602. void SetTemporary(bool);
  12603. const String& GetCategory() const;
  12604. const String& GetTypeName() const;
  12605. void UnsubscribeFromAllEvents();
  12606. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12607. void UnsubscribeFromEvent(Object, StringHash);
  12608. void UnsubscribeFromEvent(StringHash);
  12609. void UnsubscribeFromEvents(Object);
  12610. const Variant& GetGlobalVar(StringHash) const;
  12611. const VariantMap& GetGlobalVars() const;
  12612. const Vector2& GetLengthConstraints() const;
  12613. int WeakRefs() const;
  12614. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12615. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12616. void WriteLatestDataUpdate(Serializer&, uint8);
  12617. operator const Animatable() const;
  12618. operator const Component() const;
  12619. operator const Object() const;
  12620. operator const RefCounted() const;
  12621. operator const Serializable() const;
  12622. // Properties:
  12623. bool animationEnabled;
  12624. /* readonly */
  12625. Array<Variant> attributeDefaults;
  12626. /* readonly */
  12627. Array<AttributeInfo> attributeInfos;
  12628. Array<Variant> attributes;
  12629. /* readonly */
  12630. String category;
  12631. bool enabled;
  12632. /* readonly */
  12633. bool enabledEffective;
  12634. Array<Variant> globalVar;
  12635. /* readonly */
  12636. VariantMap globalVars;
  12637. /* readonly */
  12638. uint id;
  12639. /* readonly */
  12640. Node node;
  12641. /* readonly */
  12642. uint numAttributes;
  12643. ObjectAnimation objectAnimation;
  12644. /* readonly */
  12645. int refs;
  12646. /* readonly */
  12647. bool replicated;
  12648. bool temporary;
  12649. /* readonly */
  12650. StringHash type;
  12651. /* readonly */
  12652. String typeName;
  12653. /* readonly */
  12654. int weakRefs;
  12655. };
  12656. class IKEffector
  12657. {
  12658. public:
  12659. IKEffector();
  12660. // Methods:
  12661. void AllocateNetworkState();
  12662. operator Animatable() const;
  12663. void ApplyAttributes();
  12664. void CleanupConnection(Connection);
  12665. operator Component() const;
  12666. void DrawDebugGeometry(DebugRenderer, bool);
  12667. void DrawDebugGeometry(bool);
  12668. bool GetAnimationEnabled() const;
  12669. Variant GetAttribute(const String&) const;
  12670. Variant GetAttribute(uint) const;
  12671. ValueAnimation GetAttributeAnimation(const String&) const;
  12672. float GetAttributeAnimationSpeed(const String&) const;
  12673. float GetAttributeAnimationTime(const String&) const;
  12674. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12675. Variant GetAttributeDefault(const String&) const;
  12676. Variant GetAttributeDefault(uint) const;
  12677. bool GetBlockEvents() const;
  12678. uint GetChainLength() const;
  12679. Component GetComponent(StringHash) const;
  12680. VariantMap& GetEventDataMap() const;
  12681. Object GetEventSender() const;
  12682. uint GetID() const;
  12683. bool GetINHERIT_PARENT_ROTATION() const;
  12684. bool GetInterceptNetworkUpdate(const String&) const;
  12685. Node GetNode() const;
  12686. uint GetNumAttributes() const;
  12687. uint GetNumNetworkAttributes() const;
  12688. ObjectAnimation GetObjectAnimation() const;
  12689. ResourceRef GetObjectAnimationAttr() const;
  12690. float GetRotationDecay() const;
  12691. float GetRotationWeight() const;
  12692. Scene GetScene() const;
  12693. Object GetSubsystem(StringHash) const;
  12694. Node GetTargetNode() const;
  12695. Vector3 GetTargetRotationEuler() const;
  12696. StringHash GetType() const;
  12697. bool GetWEIGHT_NLERP() const;
  12698. float GetWeight() const;
  12699. bool HasEventHandlers() const;
  12700. bool HasSubscribedToEvent(Object, StringHash) const;
  12701. bool HasSubscribedToEvent(StringHash) const;
  12702. bool IsEnabled() const;
  12703. bool IsEnabledEffective() const;
  12704. bool IsInstanceOf(StringHash) const;
  12705. bool IsReplicated() const;
  12706. bool IsTemporary() const;
  12707. bool Load(Deserializer&);
  12708. bool LoadJSON(const JSONValue&);
  12709. bool LoadXML(const XMLElement&);
  12710. void MarkNetworkUpdate();
  12711. operator Object() const;
  12712. void OnEvent(Object, StringHash, VariantMap&);
  12713. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12714. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12715. void OnSetEnabled();
  12716. void PrepareNetworkUpdate();
  12717. const Quaternion& GetTargetRotation() const;
  12718. bool ReadDeltaUpdate(Deserializer&);
  12719. bool ReadLatestDataUpdate(Deserializer&);
  12720. operator RefCounted() const;
  12721. int Refs() const;
  12722. void Remove();
  12723. void RemoveAttributeAnimation(const String&);
  12724. void RemoveInstanceDefault();
  12725. void RemoveObjectAnimation();
  12726. void ResetToDefault();
  12727. bool Save(Serializer&) const;
  12728. bool SaveDefaultAttributes() const;
  12729. bool SaveJSON(JSONValue&) const;
  12730. bool SaveXML(XMLElement&) const;
  12731. void SendEvent(StringHash);
  12732. void SendEvent(StringHash, VariantMap&);
  12733. operator Serializable() const;
  12734. void SetAnimationEnabled(bool);
  12735. void SetAnimationTime(float);
  12736. bool SetAttribute(const String&, const Variant&);
  12737. bool SetAttribute(uint, const Variant&);
  12738. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12739. void SetAttributeAnimationSpeed(const String&, float);
  12740. void SetAttributeAnimationTime(const String&, float);
  12741. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12742. void SetBlockEvents(bool);
  12743. void SetChainLength(uint);
  12744. void SetEnabled(bool);
  12745. void SetGlobalVar(StringHash, const Variant&);
  12746. void SetINHERIT_PARENT_ROTATION(bool);
  12747. void SetInstanceDefault(bool);
  12748. void SetInterceptNetworkUpdate(const String&, bool);
  12749. void SetObjectAnimation(ObjectAnimation);
  12750. void SetObjectAnimationAttr(const ResourceRef&);
  12751. void SetRotationDecay(float);
  12752. void SetRotationWeight(float);
  12753. void SetTargetName(const String&);
  12754. void SetTargetNode(Node);
  12755. void SetTargetPosition(const Vector3&);
  12756. void SetTargetRotation(const Quaternion&);
  12757. void SetTargetRotationEuler(const Vector3&);
  12758. void SetTemporary(bool);
  12759. void SetWEIGHT_NLERP(bool);
  12760. void SetWeight(float);
  12761. const String& GetCategory() const;
  12762. const String& GetTargetName() const;
  12763. const String& GetTypeName() const;
  12764. void UnsubscribeFromAllEvents();
  12765. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12766. void UnsubscribeFromEvent(Object, StringHash);
  12767. void UnsubscribeFromEvent(StringHash);
  12768. void UnsubscribeFromEvents(Object);
  12769. const Variant& GetGlobalVar(StringHash) const;
  12770. const VariantMap& GetGlobalVars() const;
  12771. const Vector3& GetTargetPosition() const;
  12772. int WeakRefs() const;
  12773. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12774. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12775. void WriteLatestDataUpdate(Serializer&, uint8);
  12776. operator const Animatable() const;
  12777. operator const Component() const;
  12778. operator const Object() const;
  12779. operator const RefCounted() const;
  12780. operator const Serializable() const;
  12781. // Properties:
  12782. bool animationEnabled;
  12783. /* readonly */
  12784. Array<Variant> attributeDefaults;
  12785. /* readonly */
  12786. Array<AttributeInfo> attributeInfos;
  12787. Array<Variant> attributes;
  12788. /* readonly */
  12789. String category;
  12790. uint chainLength;
  12791. bool enabled;
  12792. /* readonly */
  12793. bool enabledEffective;
  12794. Array<Variant> globalVar;
  12795. /* readonly */
  12796. VariantMap globalVars;
  12797. /* readonly */
  12798. uint id;
  12799. /* readonly */
  12800. Node node;
  12801. /* readonly */
  12802. uint numAttributes;
  12803. ObjectAnimation objectAnimation;
  12804. /* readonly */
  12805. int refs;
  12806. /* readonly */
  12807. bool replicated;
  12808. float rotationDecay;
  12809. float rotationWeight;
  12810. String targetName;
  12811. Node targetNode;
  12812. Vector3 targetPosition;
  12813. Quaternion targetRotation;
  12814. bool temporary;
  12815. /* readonly */
  12816. StringHash type;
  12817. /* readonly */
  12818. String typeName;
  12819. /* readonly */
  12820. int weakRefs;
  12821. float weight;
  12822. };
  12823. class IKSolver
  12824. {
  12825. public:
  12826. IKSolver();
  12827. // Methods:
  12828. void AllocateNetworkState();
  12829. operator Animatable() const;
  12830. void ApplyActivePoseToScene();
  12831. void ApplyAttributes();
  12832. void ApplyOriginalPoseToActivePose();
  12833. void ApplyOriginalPoseToScene();
  12834. void ApplySceneToActivePose();
  12835. void ApplySceneToOriginalPose();
  12836. void CalculateJointRotations();
  12837. void CleanupConnection(Connection);
  12838. operator Component() const;
  12839. void DrawDebugGeometry(DebugRenderer, bool);
  12840. void DrawDebugGeometry(bool);
  12841. bool GetAUTO_SOLVE() const;
  12842. bool GetAnimationEnabled() const;
  12843. Variant GetAttribute(const String&) const;
  12844. Variant GetAttribute(uint) const;
  12845. ValueAnimation GetAttributeAnimation(const String&) const;
  12846. float GetAttributeAnimationSpeed(const String&) const;
  12847. float GetAttributeAnimationTime(const String&) const;
  12848. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12849. Variant GetAttributeDefault(const String&) const;
  12850. Variant GetAttributeDefault(uint) const;
  12851. bool GetBlockEvents() const;
  12852. bool GetCONSTRAINTS() const;
  12853. Component GetComponent(StringHash) const;
  12854. VariantMap& GetEventDataMap() const;
  12855. Object GetEventSender() const;
  12856. uint GetID() const;
  12857. bool GetInterceptNetworkUpdate(const String&) const;
  12858. bool GetJOINT_ROTATIONS() const;
  12859. uint GetMaximumIterations() const;
  12860. Node GetNode() const;
  12861. uint GetNumAttributes() const;
  12862. uint GetNumNetworkAttributes() const;
  12863. ObjectAnimation GetObjectAnimation() const;
  12864. ResourceRef GetObjectAnimationAttr() const;
  12865. Scene GetScene() const;
  12866. Object GetSubsystem(StringHash) const;
  12867. bool GetTARGET_ROTATIONS() const;
  12868. float GetTolerance() const;
  12869. StringHash GetType() const;
  12870. bool GetUPDATE_ACTIVE_POSE() const;
  12871. bool GetUPDATE_ORIGINAL_POSE() const;
  12872. bool GetUSE_ORIGINAL_POSE() const;
  12873. bool HasEventHandlers() const;
  12874. bool HasSubscribedToEvent(Object, StringHash) const;
  12875. bool HasSubscribedToEvent(StringHash) const;
  12876. bool IsEnabled() const;
  12877. bool IsEnabledEffective() const;
  12878. bool IsInstanceOf(StringHash) const;
  12879. bool IsReplicated() const;
  12880. bool IsTemporary() const;
  12881. bool Load(Deserializer&);
  12882. bool LoadJSON(const JSONValue&);
  12883. bool LoadXML(const XMLElement&);
  12884. void MarkNetworkUpdate();
  12885. operator Object() const;
  12886. void OnEvent(Object, StringHash, VariantMap&);
  12887. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12888. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12889. void OnSetEnabled();
  12890. void PrepareNetworkUpdate();
  12891. bool ReadDeltaUpdate(Deserializer&);
  12892. bool ReadLatestDataUpdate(Deserializer&);
  12893. void RebuildChainTrees();
  12894. void RecalculateSegmentLengths();
  12895. operator RefCounted() const;
  12896. int Refs() const;
  12897. void Remove();
  12898. void RemoveAttributeAnimation(const String&);
  12899. void RemoveInstanceDefault();
  12900. void RemoveObjectAnimation();
  12901. void ResetToDefault();
  12902. bool Save(Serializer&) const;
  12903. bool SaveDefaultAttributes() const;
  12904. bool SaveJSON(JSONValue&) const;
  12905. bool SaveXML(XMLElement&) const;
  12906. void SendEvent(StringHash);
  12907. void SendEvent(StringHash, VariantMap&);
  12908. operator Serializable() const;
  12909. void SetAUTO_SOLVE(bool);
  12910. void SetAnimationEnabled(bool);
  12911. void SetAnimationTime(float);
  12912. bool SetAttribute(const String&, const Variant&);
  12913. bool SetAttribute(uint, const Variant&);
  12914. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12915. void SetAttributeAnimationSpeed(const String&, float);
  12916. void SetAttributeAnimationTime(const String&, float);
  12917. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12918. void SetBlockEvents(bool);
  12919. void SetCONSTRAINTS(bool);
  12920. void SetEnabled(bool);
  12921. void SetGlobalVar(StringHash, const Variant&);
  12922. void SetInstanceDefault(bool);
  12923. void SetInterceptNetworkUpdate(const String&, bool);
  12924. void SetJOINT_ROTATIONS(bool);
  12925. void SetMaximumIterations(uint);
  12926. void SetObjectAnimation(ObjectAnimation);
  12927. void SetObjectAnimationAttr(const ResourceRef&);
  12928. void SetTARGET_ROTATIONS(bool);
  12929. void SetTemporary(bool);
  12930. void SetTolerance(float);
  12931. void SetUPDATE_ACTIVE_POSE(bool);
  12932. void SetUPDATE_ORIGINAL_POSE(bool);
  12933. void SetUSE_ORIGINAL_POSE(bool);
  12934. void Solve();
  12935. const String& GetCategory() const;
  12936. const String& GetTypeName() const;
  12937. void UnsubscribeFromAllEvents();
  12938. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12939. void UnsubscribeFromEvent(Object, StringHash);
  12940. void UnsubscribeFromEvent(StringHash);
  12941. void UnsubscribeFromEvents(Object);
  12942. const Variant& GetGlobalVar(StringHash) const;
  12943. const VariantMap& GetGlobalVars() const;
  12944. int WeakRefs() const;
  12945. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12946. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12947. void WriteLatestDataUpdate(Serializer&, uint8);
  12948. operator const Animatable() const;
  12949. operator const Component() const;
  12950. operator const Object() const;
  12951. operator const RefCounted() const;
  12952. operator const Serializable() const;
  12953. // Properties:
  12954. bool AUTO_SOLVE;
  12955. bool CONSTRAINTS;
  12956. bool JOINT_ROTATIONS;
  12957. bool TARGET_ROTATIONS;
  12958. bool UPDATE_ACTIVE_POSE;
  12959. bool UPDATE_ORIGINAL_POSE;
  12960. bool USE_ORIGINAL_POSE;
  12961. IKAlgorithm algorithm;
  12962. bool animationEnabled;
  12963. /* readonly */
  12964. Array<Variant> attributeDefaults;
  12965. /* readonly */
  12966. Array<AttributeInfo> attributeInfos;
  12967. Array<Variant> attributes;
  12968. /* readonly */
  12969. String category;
  12970. bool enabled;
  12971. /* readonly */
  12972. bool enabledEffective;
  12973. Array<Variant> globalVar;
  12974. /* readonly */
  12975. VariantMap globalVars;
  12976. /* readonly */
  12977. uint id;
  12978. uint maximumIterations;
  12979. /* readonly */
  12980. Node node;
  12981. /* readonly */
  12982. uint numAttributes;
  12983. ObjectAnimation objectAnimation;
  12984. /* readonly */
  12985. int refs;
  12986. /* readonly */
  12987. bool replicated;
  12988. bool temporary;
  12989. float tolerance;
  12990. /* readonly */
  12991. StringHash type;
  12992. /* readonly */
  12993. String typeName;
  12994. /* readonly */
  12995. int weakRefs;
  12996. };
  12997. class Image
  12998. {
  12999. public:
  13000. Image();
  13001. // Methods:
  13002. bool BeginLoad(Deserializer&);
  13003. void CleanupLevels();
  13004. void Clear(const Color&);
  13005. void ClearInt(uint);
  13006. Image ConvertToRGBA() const;
  13007. bool EndLoad();
  13008. bool FlipHorizontal();
  13009. bool FlipVertical();
  13010. AsyncLoadState GetAsyncLoadState() const;
  13011. bool GetBlockEvents() const;
  13012. uint GetComponents() const;
  13013. CompressedFormat GetCompressedFormat() const;
  13014. CompressedLevel GetCompressedLevel(uint) const;
  13015. Image GetDecompressedImage() const;
  13016. int GetDepth() const;
  13017. VariantMap& GetEventDataMap() const;
  13018. Object GetEventSender() const;
  13019. int GetHeight() const;
  13020. uint GetMemoryUse() const;
  13021. StringHash GetNameHash() const;
  13022. Image GetNextLevel() const;
  13023. Image GetNextSibling() const;
  13024. uint GetNumCompressedLevels() const;
  13025. Color GetPixel(int, int) const;
  13026. Color GetPixel(int, int, int) const;
  13027. Color GetPixelBilinear(float, float) const;
  13028. uint GetPixelInt(int, int) const;
  13029. uint GetPixelInt(int, int, int) const;
  13030. Color GetPixelTrilinear(float, float, float) const;
  13031. Image GetSubimage(const IntRect&) const;
  13032. Object GetSubsystem(StringHash) const;
  13033. StringHash GetType() const;
  13034. uint GetUseTimer();
  13035. int GetWidth() const;
  13036. bool HasAlphaChannel() const;
  13037. bool HasEventHandlers() const;
  13038. bool HasSubscribedToEvent(Object, StringHash) const;
  13039. bool HasSubscribedToEvent(StringHash) const;
  13040. bool IsArray() const;
  13041. bool IsCompressed() const;
  13042. bool IsCubemap() const;
  13043. bool IsInstanceOf(StringHash) const;
  13044. bool IsSRGB() const;
  13045. bool Load(Deserializer&);
  13046. bool Load(File);
  13047. bool Load(VectorBuffer&);
  13048. bool Load(const String&);
  13049. bool LoadColorLUT(Deserializer&);
  13050. bool LoadFile(const String&);
  13051. operator Object() const;
  13052. void OnEvent(Object, StringHash, VariantMap&);
  13053. void PrecalculateLevels();
  13054. operator RefCounted() const;
  13055. int Refs() const;
  13056. void ResetUseTimer();
  13057. bool Resize(int, int);
  13058. operator Resource() const;
  13059. bool Save(File) const;
  13060. bool Save(Serializer&) const;
  13061. bool Save(VectorBuffer&) const;
  13062. bool Save(const String&) const;
  13063. bool SaveBMP(const String&) const;
  13064. bool SaveDDS(const String&) const;
  13065. bool SaveFile(const String&) const;
  13066. bool SaveJPG(const String&, int) const;
  13067. bool SavePNG(const String&) const;
  13068. bool SaveTGA(const String&) const;
  13069. bool SaveWEBP(const String&, float = 0.0f) const;
  13070. void SendEvent(StringHash);
  13071. void SendEvent(StringHash, VariantMap&);
  13072. void SetAsyncLoadState(AsyncLoadState);
  13073. void SetBlockEvents(bool);
  13074. void SetGlobalVar(StringHash, const Variant&);
  13075. void SetMemoryUse(uint);
  13076. void SetName(const String&);
  13077. void SetPixel(int, int, const Color&);
  13078. void SetPixel(int, int, int, const Color&);
  13079. void SetPixelInt(int, int, int, uint);
  13080. void SetPixelInt(int, int, uint);
  13081. bool SetSize(int, int, int, uint);
  13082. bool SetSize(int, int, uint);
  13083. bool SetSubimage(Image, const IntRect&);
  13084. const String& GetCategory() const;
  13085. const String& GetName() const;
  13086. const String& GetTypeName() const;
  13087. void UnsubscribeFromAllEvents();
  13088. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13089. void UnsubscribeFromEvent(Object, StringHash);
  13090. void UnsubscribeFromEvent(StringHash);
  13091. void UnsubscribeFromEvents(Object);
  13092. const Variant& GetGlobalVar(StringHash) const;
  13093. const VariantMap& GetGlobalVars() const;
  13094. int WeakRefs() const;
  13095. operator const Object() const;
  13096. operator const RefCounted() const;
  13097. operator const Resource() const;
  13098. // Properties:
  13099. /* readonly */
  13100. bool array;
  13101. /* readonly */
  13102. String category;
  13103. /* readonly */
  13104. uint components;
  13105. /* readonly */
  13106. bool compressed;
  13107. /* readonly */
  13108. CompressedFormat compressedFormat;
  13109. /* readonly */
  13110. bool cubemap;
  13111. /* readonly */
  13112. int depth;
  13113. Array<Variant> globalVar;
  13114. /* readonly */
  13115. VariantMap globalVars;
  13116. /* readonly */
  13117. bool hasAlphaChannel;
  13118. /* readonly */
  13119. int height;
  13120. /* readonly */
  13121. uint memoryUse;
  13122. String name;
  13123. /* readonly */
  13124. uint numCompressedLevels;
  13125. /* readonly */
  13126. int refs;
  13127. /* readonly */
  13128. bool sRGB;
  13129. /* readonly */
  13130. StringHash type;
  13131. /* readonly */
  13132. String typeName;
  13133. /* readonly */
  13134. uint useTimer;
  13135. /* readonly */
  13136. int weakRefs;
  13137. /* readonly */
  13138. int width;
  13139. };
  13140. class IndexBuffer
  13141. {
  13142. public:
  13143. IndexBuffer(bool = false);
  13144. // Methods:
  13145. void ClearDataLost();
  13146. bool GetBlockEvents() const;
  13147. VectorBuffer GetData();
  13148. VariantMap& GetEventDataMap() const;
  13149. Object GetEventSender() const;
  13150. uint GetGPUObjectName() const;
  13151. Graphics GetGraphics() const;
  13152. uint GetIndexCount() const;
  13153. uint GetIndexSize() const;
  13154. Object GetSubsystem(StringHash) const;
  13155. StringHash GetType() const;
  13156. bool GetUsedVertexRange(uint, uint, uint&, uint&);
  13157. bool HasEventHandlers() const;
  13158. bool HasPendingData() const;
  13159. bool HasSubscribedToEvent(Object, StringHash) const;
  13160. bool HasSubscribedToEvent(StringHash) const;
  13161. bool IsDataLost() const;
  13162. bool IsDynamic() const;
  13163. bool IsInstanceOf(StringHash) const;
  13164. bool IsLocked() const;
  13165. bool IsShadowed() const;
  13166. operator Object() const;
  13167. void OnDeviceLost();
  13168. void OnDeviceReset();
  13169. void OnEvent(Object, StringHash, VariantMap&);
  13170. operator RefCounted() const;
  13171. int Refs() const;
  13172. void Release();
  13173. void SendEvent(StringHash);
  13174. void SendEvent(StringHash, VariantMap&);
  13175. void SetBlockEvents(bool);
  13176. bool SetData(VectorBuffer&);
  13177. bool SetDataRange(VectorBuffer&, uint, uint, bool discard = false);
  13178. void SetGlobalVar(StringHash, const Variant&);
  13179. void SetShadowed(bool);
  13180. bool SetSize(uint, bool, bool = false);
  13181. const String& GetCategory() const;
  13182. const String& GetTypeName() const;
  13183. void Unlock();
  13184. void UnsubscribeFromAllEvents();
  13185. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13186. void UnsubscribeFromEvent(Object, StringHash);
  13187. void UnsubscribeFromEvent(StringHash);
  13188. void UnsubscribeFromEvents(Object);
  13189. const Variant& GetGlobalVar(StringHash) const;
  13190. const VariantMap& GetGlobalVars() const;
  13191. int WeakRefs() const;
  13192. operator const Object() const;
  13193. operator const RefCounted() const;
  13194. // Properties:
  13195. /* readonly */
  13196. String category;
  13197. /* readonly */
  13198. bool dataLost;
  13199. /* readonly */
  13200. bool dynamic;
  13201. Array<Variant> globalVar;
  13202. /* readonly */
  13203. VariantMap globalVars;
  13204. /* readonly */
  13205. uint indexCount;
  13206. /* readonly */
  13207. uint indexSize;
  13208. /* readonly */
  13209. int refs;
  13210. bool shadowed;
  13211. /* readonly */
  13212. StringHash type;
  13213. /* readonly */
  13214. String typeName;
  13215. /* readonly */
  13216. int weakRefs;
  13217. };
  13218. class IndexBufferDesc
  13219. {
  13220. public:
  13221. ~IndexBufferDesc();
  13222. IndexBufferDesc();
  13223. // Methods:
  13224. IndexBufferDesc& operator=(const IndexBufferDesc&);
  13225. // Properties:
  13226. uint dataSize;
  13227. uint indexCount;
  13228. uint indexSize;
  13229. };
  13230. class Input
  13231. {
  13232. public:
  13233. Input();
  13234. // Methods:
  13235. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  13236. void CenterMousePosition();
  13237. bool GetBlockEvents() const;
  13238. VariantMap& GetEventDataMap() const;
  13239. Object GetEventSender() const;
  13240. Vector2 GetInputScale() const;
  13241. JoystickState GetJoystick(int);
  13242. JoystickState GetJoystickByIndex(uint);
  13243. JoystickState GetJoystickByName(const String&);
  13244. bool GetKeyDown(uint) const;
  13245. uint GetKeyFromName(const String&) const;
  13246. uint GetKeyFromScancode(uint) const;
  13247. String GetKeyName(uint) const;
  13248. bool GetKeyPress(uint) const;
  13249. bool GetMouseButtonDown(uint) const;
  13250. bool GetMouseButtonPress(uint) const;
  13251. MouseMode GetMouseMode() const;
  13252. IntVector2 GetMouseMove() const;
  13253. int GetMouseMoveWheel() const;
  13254. int GetMouseMoveX() const;
  13255. int GetMouseMoveY() const;
  13256. IntVector2 GetMousePosition() const;
  13257. uint GetNumJoysticks() const;
  13258. uint GetNumTouches() const;
  13259. bool GetQualifierDown(uint) const;
  13260. bool GetQualifierPress(uint) const;
  13261. uint GetQualifiers() const;
  13262. bool GetScancodeDown(uint) const;
  13263. uint GetScancodeFromKey(uint) const;
  13264. uint GetScancodeFromName(const String&) const;
  13265. String GetScancodeName(uint) const;
  13266. bool GetScancodePress(uint) const;
  13267. bool GetScreenKeyboardSupport() const;
  13268. Object GetSubsystem(StringHash) const;
  13269. bool GetToggleFullscreen() const;
  13270. TouchState GetTouch(uint) const;
  13271. bool GetTouchEmulation() const;
  13272. StringHash GetType() const;
  13273. bool HasEventHandlers() const;
  13274. bool HasFocus();
  13275. bool HasSubscribedToEvent(Object, StringHash) const;
  13276. bool HasSubscribedToEvent(StringHash) const;
  13277. bool IsInstanceOf(StringHash) const;
  13278. bool IsMinimized() const;
  13279. bool IsMouseGrabbed() const;
  13280. bool IsMouseLocked() const;
  13281. bool IsMouseVisible() const;
  13282. bool IsScreenJoystickVisible(int) const;
  13283. bool IsScreenKeyboardVisible() const;
  13284. uint LoadGestures(Deserializer&);
  13285. uint LoadGestures(File);
  13286. uint LoadGestures(VectorBuffer&);
  13287. operator Object() const;
  13288. void OnEvent(Object, StringHash, VariantMap&);
  13289. bool RecordGesture();
  13290. operator RefCounted() const;
  13291. int Refs() const;
  13292. void RemoveAllGestures();
  13293. bool RemoveGesture(uint);
  13294. bool RemoveScreenJoystick(int);
  13295. void ResetMouseGrabbed();
  13296. void ResetMouseMode();
  13297. void ResetMouseVisible();
  13298. bool SaveGesture(File, uint);
  13299. bool SaveGesture(Serializer&, uint);
  13300. bool SaveGesture(VectorBuffer&, uint);
  13301. bool SaveGestures(File);
  13302. bool SaveGestures(Serializer&);
  13303. bool SaveGestures(VectorBuffer&);
  13304. void SendEvent(StringHash);
  13305. void SendEvent(StringHash, VariantMap&);
  13306. void SetBlockEvents(bool);
  13307. void SetGlobalVar(StringHash, const Variant&);
  13308. void SetMouseGrabbed(bool, bool = false);
  13309. void SetMouseMode(MouseMode, bool = false);
  13310. void SetMousePosition(const IntVector2&);
  13311. void SetMouseVisible(bool, bool = false);
  13312. void SetScreenJoystickVisible(int, bool);
  13313. void SetScreenKeyboardVisible(bool);
  13314. void SetToggleFullscreen(bool);
  13315. void SetTouchEmulation(bool);
  13316. const String& GetCategory() const;
  13317. const String& GetTypeName() const;
  13318. void UnsubscribeFromAllEvents();
  13319. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13320. void UnsubscribeFromEvent(Object, StringHash);
  13321. void UnsubscribeFromEvent(StringHash);
  13322. void UnsubscribeFromEvents(Object);
  13323. void Update();
  13324. const Variant& GetGlobalVar(StringHash) const;
  13325. const VariantMap& GetGlobalVars() const;
  13326. int WeakRefs() const;
  13327. operator const Object() const;
  13328. operator const RefCounted() const;
  13329. // Properties:
  13330. /* readonly */
  13331. String category;
  13332. /* readonly */
  13333. bool focus;
  13334. Array<Variant> globalVar;
  13335. /* readonly */
  13336. VariantMap globalVars;
  13337. /* readonly */
  13338. Vector2 inputScale;
  13339. /* readonly */
  13340. Array<JoystickState> joysticks;
  13341. /* readonly */
  13342. Array<JoystickState> joysticksByIndex;
  13343. /* readonly */
  13344. Array<JoystickState> joysticksByName;
  13345. /* readonly */
  13346. Array<bool> keyDown;
  13347. /* readonly */
  13348. Array<bool> keyPress;
  13349. /* readonly */
  13350. bool minimized;
  13351. /* readonly */
  13352. Array<bool> mouseButtonDown;
  13353. /* readonly */
  13354. Array<bool> mouseButtonPress;
  13355. bool mouseGrabbed;
  13356. /* readonly */
  13357. bool mouseLocked;
  13358. MouseMode mouseMode;
  13359. /* readonly */
  13360. IntVector2 mouseMove;
  13361. /* readonly */
  13362. int mouseMoveWheel;
  13363. /* readonly */
  13364. int mouseMoveX;
  13365. /* readonly */
  13366. int mouseMoveY;
  13367. IntVector2 mousePosition;
  13368. bool mouseVisible;
  13369. /* readonly */
  13370. uint numJoysticks;
  13371. /* readonly */
  13372. uint numTouches;
  13373. /* readonly */
  13374. Array<bool> qualifierDown;
  13375. /* readonly */
  13376. Array<bool> qualifierPress;
  13377. /* readonly */
  13378. uint qualifiers;
  13379. /* readonly */
  13380. int refs;
  13381. /* readonly */
  13382. Array<bool> scancodeDown;
  13383. /* readonly */
  13384. Array<bool> scancodePress;
  13385. Array<bool> screenJoystickVisible;
  13386. /* readonly */
  13387. bool screenKeyboardSupport;
  13388. bool screenKeyboardVisible;
  13389. bool toggleFullscreen;
  13390. bool touchEmulation;
  13391. /* readonly */
  13392. Array<TouchState> touches;
  13393. /* readonly */
  13394. StringHash type;
  13395. /* readonly */
  13396. String typeName;
  13397. /* readonly */
  13398. int weakRefs;
  13399. };
  13400. class InstanceData
  13401. {
  13402. public:
  13403. ~InstanceData();
  13404. InstanceData();
  13405. // Methods:
  13406. InstanceData& operator=(const InstanceData&);
  13407. // Properties:
  13408. float distance;
  13409. };
  13410. class IntRect
  13411. {
  13412. public:
  13413. IntRect();
  13414. IntRect(const IntVector2&in, const IntVector2&in);
  13415. IntRect(int, int, int, int);
  13416. IntRect(int[]&inout);
  13417. // Methods:
  13418. IntRect operator+(const IntRect&) const;
  13419. IntRect& operator+=(const IntRect&);
  13420. IntRect& operator=(const IntRect&);
  13421. bool operator==(const IntRect&) const;
  13422. int Bottom() const;
  13423. void Clip(const IntRect&);
  13424. int Height() const;
  13425. Intersection IsInside(const IntRect&) const;
  13426. Intersection IsInside(const IntVector2&) const;
  13427. int Left() const;
  13428. IntVector2 Max() const;
  13429. void Merge(const IntRect&);
  13430. IntVector2 Min() const;
  13431. int Right() const;
  13432. IntVector2 Size() const;
  13433. String ToString() const;
  13434. int Top() const;
  13435. int Width() const;
  13436. // Properties:
  13437. int bottom;
  13438. /* readonly */
  13439. Array<int> data;
  13440. /* readonly */
  13441. int height;
  13442. int left;
  13443. int right;
  13444. /* readonly */
  13445. IntVector2 size;
  13446. int top;
  13447. /* readonly */
  13448. int width;
  13449. // Constants:
  13450. static const IntRect ZERO;
  13451. };
  13452. class IntVector2
  13453. {
  13454. public:
  13455. IntVector2();
  13456. IntVector2(int, int);
  13457. IntVector2(const IntVector2&in);
  13458. IntVector2(int[]&inout);
  13459. // Methods:
  13460. IntVector2 operator+(const IntVector2&) const;
  13461. IntVector2& operator+=(const IntVector2&);
  13462. IntVector2& operator=(const IntVector2&);
  13463. bool operator==(const IntVector2&) const;
  13464. float Length() const;
  13465. uint ToHash() const;
  13466. String ToString() const;
  13467. // Properties:
  13468. /* readonly */
  13469. Array<int> data;
  13470. int x;
  13471. int y;
  13472. // Constants:
  13473. static const IntVector2 DOWN;
  13474. static const IntVector2 LEFT;
  13475. static const IntVector2 ONE;
  13476. static const IntVector2 RIGHT;
  13477. static const IntVector2 UP;
  13478. static const IntVector2 ZERO;
  13479. };
  13480. class IntVector3
  13481. {
  13482. public:
  13483. IntVector3();
  13484. IntVector3(int, int, int);
  13485. IntVector3(const IntVector3&in);
  13486. IntVector3(int[]&inout);
  13487. // Methods:
  13488. IntVector3 operator+(const IntVector3&) const;
  13489. IntVector3& operator+=(const IntVector3&);
  13490. IntVector3& operator=(const IntVector3&);
  13491. bool operator==(const IntVector3&) const;
  13492. float Length() const;
  13493. uint ToHash() const;
  13494. String ToString() const;
  13495. // Properties:
  13496. /* readonly */
  13497. Array<int> data;
  13498. int x;
  13499. int y;
  13500. int z;
  13501. // Constants:
  13502. static const IntVector3 BACK;
  13503. static const IntVector3 DOWN;
  13504. static const IntVector3 FORWARD;
  13505. static const IntVector3 LEFT;
  13506. static const IntVector3 ONE;
  13507. static const IntVector3 RIGHT;
  13508. static const IntVector3 UP;
  13509. static const IntVector3 ZERO;
  13510. };
  13511. class JSONFile
  13512. {
  13513. public:
  13514. JSONFile();
  13515. // Methods:
  13516. bool BeginLoad(Deserializer&);
  13517. bool EndLoad();
  13518. bool FromString(const String&);
  13519. AsyncLoadState GetAsyncLoadState() const;
  13520. bool GetBlockEvents() const;
  13521. VariantMap& GetEventDataMap() const;
  13522. Object GetEventSender() const;
  13523. uint GetMemoryUse() const;
  13524. StringHash GetNameHash() const;
  13525. JSONValue& GetRoot();
  13526. Object GetSubsystem(StringHash) const;
  13527. StringHash GetType() const;
  13528. uint GetUseTimer();
  13529. bool HasEventHandlers() const;
  13530. bool HasSubscribedToEvent(Object, StringHash) const;
  13531. bool HasSubscribedToEvent(StringHash) const;
  13532. bool IsInstanceOf(StringHash) const;
  13533. const JSONValue& GetRoot() const;
  13534. bool Load(Deserializer&);
  13535. bool Load(File);
  13536. bool Load(VectorBuffer&);
  13537. bool Load(const String&);
  13538. bool LoadFile(const String&);
  13539. operator Object() const;
  13540. void OnEvent(Object, StringHash, VariantMap&);
  13541. operator RefCounted() const;
  13542. int Refs() const;
  13543. void ResetUseTimer();
  13544. operator Resource() const;
  13545. bool Save(File) const;
  13546. bool Save(Serializer&) const;
  13547. bool Save(Serializer&, const String&) const;
  13548. bool Save(VectorBuffer&) const;
  13549. bool Save(const String&) const;
  13550. bool SaveFile(const String&) const;
  13551. void SendEvent(StringHash);
  13552. void SendEvent(StringHash, VariantMap&);
  13553. void SetAsyncLoadState(AsyncLoadState);
  13554. void SetBlockEvents(bool);
  13555. void SetGlobalVar(StringHash, const Variant&);
  13556. void SetMemoryUse(uint);
  13557. void SetName(const String&);
  13558. const String& GetCategory() const;
  13559. const String& GetName() const;
  13560. const String& GetTypeName() const;
  13561. String ToString(const String& = "\t") const;
  13562. void UnsubscribeFromAllEvents();
  13563. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13564. void UnsubscribeFromEvent(Object, StringHash);
  13565. void UnsubscribeFromEvent(StringHash);
  13566. void UnsubscribeFromEvents(Object);
  13567. const Variant& GetGlobalVar(StringHash) const;
  13568. const VariantMap& GetGlobalVars() const;
  13569. int WeakRefs() const;
  13570. operator const Object() const;
  13571. operator const RefCounted() const;
  13572. operator const Resource() const;
  13573. // Properties:
  13574. /* readonly */
  13575. String category;
  13576. Array<Variant> globalVar;
  13577. /* readonly */
  13578. VariantMap globalVars;
  13579. /* readonly */
  13580. uint memoryUse;
  13581. String name;
  13582. /* readonly */
  13583. int refs;
  13584. /* readonly */
  13585. JSONValue root;
  13586. /* readonly */
  13587. StringHash type;
  13588. /* readonly */
  13589. String typeName;
  13590. /* readonly */
  13591. uint useTimer;
  13592. /* readonly */
  13593. int weakRefs;
  13594. };
  13595. class JSONValue
  13596. {
  13597. public:
  13598. ~JSONValue();
  13599. JSONValue();
  13600. JSONValue(bool);
  13601. JSONValue(int);
  13602. JSONValue(uint);
  13603. JSONValue(float);
  13604. JSONValue(double);
  13605. JSONValue(const String&in);
  13606. JSONValue(const JSONValue&in);
  13607. // Methods:
  13608. JSONValue& operator=(bool);
  13609. JSONValue& operator=(const JSONValue&);
  13610. JSONValue& operator=(const String&);
  13611. JSONValue& operator=(double);
  13612. JSONValue& operator=(float);
  13613. JSONValue& operator=(int);
  13614. JSONValue& operator=(uint);
  13615. JSONValue& operator[](const String&);
  13616. JSONValue& operator[](uint);
  13617. void Clear();
  13618. bool Contains(const String&) const;
  13619. bool Erase(const String&);
  13620. void Erase(uint, uint = 1);
  13621. bool GetBool(bool = false) const;
  13622. double GetDouble(double = 0.0) const;
  13623. float GetFloat(float = 0.0f) const;
  13624. int GetInt(int = 0) const;
  13625. JSONNumberType GetNumberType() const;
  13626. String GetNumberTypeName() const;
  13627. uint GetUInt(uint = 0) const;
  13628. JSONValueType GetValueType() const;
  13629. String GetValueTypeName() const;
  13630. Variant GetVariant() const;
  13631. VariantMap GetVariantMap() const;
  13632. Variant GetVariantValue(VariantType) const;
  13633. void Insert(uint, const JSONValue&);
  13634. bool IsArray() const;
  13635. bool IsBool() const;
  13636. bool IsNull() const;
  13637. bool IsNumber() const;
  13638. bool IsObject() const;
  13639. bool IsString() const;
  13640. const JSONValue& operator[](const String&) const;
  13641. const JSONValue& operator[](uint) const;
  13642. const JSONValue& Get(const String&) const;
  13643. void Pop();
  13644. void Push(const JSONValue&);
  13645. void Resize(uint);
  13646. void Set(const String&, const JSONValue&);
  13647. void SetType(JSONValueType, JSONNumberType = JSONNT_NAN);
  13648. void SetVariant(const Variant&);
  13649. void SetVariantMap(const VariantMap&);
  13650. void SetVariantValue(const Variant&);
  13651. uint Size() const;
  13652. const String& GetString(const String& = String :: EMPTY) const;
  13653. // Properties:
  13654. /* readonly */
  13655. bool isArray;
  13656. /* readonly */
  13657. bool isBool;
  13658. /* readonly */
  13659. bool isNull;
  13660. /* readonly */
  13661. bool isNumber;
  13662. /* readonly */
  13663. bool isObject;
  13664. /* readonly */
  13665. bool isString;
  13666. /* readonly */
  13667. Array<String> keys;
  13668. /* readonly */
  13669. JSONNumberType numberType;
  13670. /* readonly */
  13671. String numberTypeName;
  13672. /* readonly */
  13673. uint size;
  13674. /* readonly */
  13675. JSONValueType valueType;
  13676. /* readonly */
  13677. String valueTypeName;
  13678. /* readonly */
  13679. Array<JSONValue> values;
  13680. // Constants:
  13681. static const JSONValue EMPTY;
  13682. };
  13683. class JoystickState
  13684. {
  13685. public:
  13686. // Methods:
  13687. JoystickState& operator=(const JoystickState&);
  13688. float GetAxisPosition(uint) const;
  13689. bool GetButtonDown(uint) const;
  13690. bool GetButtonPress(uint) const;
  13691. int GetHatPosition(uint) const;
  13692. uint GetNumAxes() const;
  13693. uint GetNumButtons() const;
  13694. uint GetNumHats() const;
  13695. void Initialize(uint, uint, uint);
  13696. bool IsController() const;
  13697. void Reset();
  13698. // Properties:
  13699. /* readonly */
  13700. Array<float> axisPosition;
  13701. /* readonly */
  13702. Array<bool> buttonDown;
  13703. /* readonly */
  13704. Array<bool> buttonPress;
  13705. /* readonly */
  13706. bool controller;
  13707. /* readonly */
  13708. Array<int> hatPosition;
  13709. int joystickID;
  13710. String name;
  13711. /* readonly */
  13712. uint numAxes;
  13713. /* readonly */
  13714. uint numButtons;
  13715. /* readonly */
  13716. uint numHats;
  13717. };
  13718. class Light
  13719. {
  13720. public:
  13721. Light();
  13722. // Methods:
  13723. void AddLight(Light);
  13724. void AddVertexLight(Light);
  13725. void AllocateNetworkState();
  13726. operator Animatable() const;
  13727. void ApplyAttributes();
  13728. const BiasParameters& GetShadowBias() const;
  13729. const BoundingBox& GetBoundingBox() const;
  13730. const BoundingBox& GetWorldBoundingBox();
  13731. const CascadeParameters& GetShadowCascade() const;
  13732. void CleanupConnection(Connection);
  13733. const Color& GetColor() const;
  13734. operator Component() const;
  13735. void DrawDebugGeometry(DebugRenderer, bool);
  13736. bool DrawOcclusion(OcclusionBuffer);
  13737. operator Drawable() const;
  13738. const FocusParameters& GetShadowFocus() const;
  13739. bool GetAnimationEnabled() const;
  13740. float GetAspectRatio() const;
  13741. Variant GetAttribute(const String&) const;
  13742. Variant GetAttribute(uint) const;
  13743. ValueAnimation GetAttributeAnimation(const String&) const;
  13744. float GetAttributeAnimationSpeed(const String&) const;
  13745. float GetAttributeAnimationTime(const String&) const;
  13746. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13747. Variant GetAttributeDefault(const String&) const;
  13748. Variant GetAttributeDefault(uint) const;
  13749. bool GetBlockEvents() const;
  13750. float GetBrightness() const;
  13751. bool GetCastShadows() const;
  13752. Color GetColorFromTemperature() const;
  13753. Component GetComponent(StringHash) const;
  13754. float GetDistance() const;
  13755. float GetDrawDistance() const;
  13756. uint8 GetDrawableFlags() const;
  13757. Color GetEffectiveColor() const;
  13758. float GetEffectiveSpecularIntensity() const;
  13759. VariantMap& GetEventDataMap() const;
  13760. Object GetEventSender() const;
  13761. float GetFadeDistance() const;
  13762. Light GetFirstLight() const;
  13763. float GetFov() const;
  13764. Frustum GetFrustum() const;
  13765. uint GetID() const;
  13766. float GetIntensityDivisor(float = 1.0f) const;
  13767. bool GetInterceptNetworkUpdate(const String&) const;
  13768. float GetLength() const;
  13769. uint GetLightMask() const;
  13770. LightType GetLightType() const;
  13771. Array<Light> GetLights() const;
  13772. float GetLodBias() const;
  13773. float GetLodDistance() const;
  13774. Geometry GetLodGeometry(uint, uint);
  13775. uint GetMaxLights() const;
  13776. float GetMaxZ() const;
  13777. float GetMinZ() const;
  13778. Node GetNode() const;
  13779. uint GetNumAttributes() const;
  13780. uint GetNumNetworkAttributes() const;
  13781. uint GetNumOccluderTriangles();
  13782. int GetNumShadowSplits() const;
  13783. ObjectAnimation GetObjectAnimation() const;
  13784. ResourceRef GetObjectAnimationAttr() const;
  13785. bool GetPerVertex() const;
  13786. float GetRadius() const;
  13787. Texture GetRampTexture() const;
  13788. ResourceRef GetRampTextureAttr() const;
  13789. float GetRange() const;
  13790. Scene GetScene() const;
  13791. float GetShadowDistance() const;
  13792. float GetShadowFadeDistance() const;
  13793. float GetShadowIntensity() const;
  13794. uint GetShadowMask() const;
  13795. float GetShadowMaxExtrusion() const;
  13796. float GetShadowNearFarRatio() const;
  13797. float GetShadowResolution() const;
  13798. Texture GetShapeTexture() const;
  13799. ResourceRef GetShapeTextureAttr() const;
  13800. float GetSortValue() const;
  13801. float GetSpecularIntensity() const;
  13802. Object GetSubsystem(StringHash) const;
  13803. float GetTemperature() const;
  13804. StringHash GetType() const;
  13805. UpdateGeometryType GetUpdateGeometryType();
  13806. bool GetUsePhysicalValues() const;
  13807. Array<Light> GetVertexLights() const;
  13808. uint GetViewMask() const;
  13809. Frustum GetViewSpaceFrustum(const Matrix3x4&) const;
  13810. Zone GetZone() const;
  13811. uint GetZoneMask() const;
  13812. bool HasBasePass(uint) const;
  13813. bool HasEventHandlers() const;
  13814. bool HasSubscribedToEvent(Object, StringHash) const;
  13815. bool HasSubscribedToEvent(StringHash) const;
  13816. bool IsEnabled() const;
  13817. bool IsEnabledEffective() const;
  13818. bool IsInView() const;
  13819. bool IsInView(Camera) const;
  13820. bool IsInView(const FrameInfo&, bool = false) const;
  13821. bool IsInstanceOf(StringHash) const;
  13822. bool IsNegative() const;
  13823. bool IsOccludee() const;
  13824. bool IsOccluder() const;
  13825. bool IsReplicated() const;
  13826. bool IsTemporary() const;
  13827. bool IsZoneDirty() const;
  13828. void LimitLights();
  13829. void LimitVertexLights(bool);
  13830. bool Load(Deserializer&);
  13831. bool LoadJSON(const JSONValue&);
  13832. bool LoadXML(const XMLElement&);
  13833. void MarkForUpdate();
  13834. void MarkInView(const FrameInfo&);
  13835. void MarkInView(uint);
  13836. void MarkNetworkUpdate();
  13837. const Matrix3x4& GetVolumeTransform(Camera);
  13838. operator Object() const;
  13839. void OnEvent(Object, StringHash, VariantMap&);
  13840. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  13841. void OnSetAttribute(const AttributeInfo&, const Variant&);
  13842. void OnSetEnabled();
  13843. void PrepareNetworkUpdate();
  13844. bool ReadDeltaUpdate(Deserializer&);
  13845. bool ReadLatestDataUpdate(Deserializer&);
  13846. operator RefCounted() const;
  13847. int Refs() const;
  13848. void Remove();
  13849. void RemoveAttributeAnimation(const String&);
  13850. void RemoveInstanceDefault();
  13851. void RemoveObjectAnimation();
  13852. void ResetToDefault();
  13853. bool Save(Serializer&) const;
  13854. bool SaveDefaultAttributes() const;
  13855. bool SaveJSON(JSONValue&) const;
  13856. bool SaveXML(XMLElement&) const;
  13857. void SendEvent(StringHash);
  13858. void SendEvent(StringHash, VariantMap&);
  13859. operator Serializable() const;
  13860. void SetAnimationEnabled(bool);
  13861. void SetAnimationTime(float);
  13862. void SetAspectRatio(float);
  13863. bool SetAttribute(const String&, const Variant&);
  13864. bool SetAttribute(uint, const Variant&);
  13865. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13866. void SetAttributeAnimationSpeed(const String&, float);
  13867. void SetAttributeAnimationTime(const String&, float);
  13868. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13869. void SetBasePass(uint);
  13870. void SetBlockEvents(bool);
  13871. void SetBrightness(float);
  13872. void SetCastShadows(bool);
  13873. void SetColor(const Color&);
  13874. void SetDrawDistance(float);
  13875. void SetEnabled(bool);
  13876. void SetFadeDistance(float);
  13877. void SetFov(float);
  13878. void SetGlobalVar(StringHash, const Variant&);
  13879. void SetInstanceDefault(bool);
  13880. void SetIntensitySortValue(const BoundingBox&);
  13881. void SetIntensitySortValue(float);
  13882. void SetInterceptNetworkUpdate(const String&, bool);
  13883. void SetLength(float);
  13884. void SetLightMask(uint);
  13885. void SetLightType(LightType);
  13886. void SetLodBias(float);
  13887. void SetMaxLights(uint);
  13888. void SetMinMaxZ(float, float);
  13889. void SetObjectAnimation(ObjectAnimation);
  13890. void SetObjectAnimationAttr(const ResourceRef&);
  13891. void SetOccludee(bool);
  13892. void SetOccluder(bool);
  13893. void SetPerVertex(bool);
  13894. void SetRadius(float);
  13895. void SetRampTexture(Texture);
  13896. void SetRampTextureAttr(const ResourceRef&);
  13897. void SetRange(float);
  13898. void SetShadowBias(const BiasParameters&);
  13899. void SetShadowCascade(const CascadeParameters&);
  13900. void SetShadowDistance(float);
  13901. void SetShadowFadeDistance(float);
  13902. void SetShadowFocus(const FocusParameters&);
  13903. void SetShadowIntensity(float);
  13904. void SetShadowMask(uint);
  13905. void SetShadowMaxExtrusion(float);
  13906. void SetShadowNearFarRatio(float);
  13907. void SetShadowResolution(float);
  13908. void SetShapeTexture(Texture);
  13909. void SetShapeTextureAttr(const ResourceRef&);
  13910. void SetSortValue(float);
  13911. void SetSpecularIntensity(float);
  13912. void SetTemperature(float);
  13913. void SetTemporary(bool);
  13914. void SetUsePhysicalValues(bool);
  13915. void SetViewMask(uint);
  13916. void SetZone(Zone, bool = false);
  13917. void SetZoneMask(uint);
  13918. const String& GetCategory() const;
  13919. const String& GetTypeName() const;
  13920. void UnsubscribeFromAllEvents();
  13921. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13922. void UnsubscribeFromEvent(Object, StringHash);
  13923. void UnsubscribeFromEvent(StringHash);
  13924. void UnsubscribeFromEvents(Object);
  13925. void Update(const FrameInfo&);
  13926. void UpdateBatches(const FrameInfo&);
  13927. void UpdateGeometry(const FrameInfo&);
  13928. const Variant& GetGlobalVar(StringHash) const;
  13929. const VariantMap& GetGlobalVars() const;
  13930. int WeakRefs() const;
  13931. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  13932. void WriteInitialDeltaUpdate(Serializer&, uint8);
  13933. void WriteLatestDataUpdate(Serializer&, uint8);
  13934. operator const Animatable() const;
  13935. operator const Component() const;
  13936. operator const Drawable() const;
  13937. operator const Object() const;
  13938. operator const RefCounted() const;
  13939. operator const Serializable() const;
  13940. // Properties:
  13941. bool animationEnabled;
  13942. float aspectRatio;
  13943. /* readonly */
  13944. Array<Variant> attributeDefaults;
  13945. /* readonly */
  13946. Array<AttributeInfo> attributeInfos;
  13947. Array<Variant> attributes;
  13948. /* readonly */
  13949. BoundingBox boundingBox;
  13950. float brightness;
  13951. bool castShadows;
  13952. /* readonly */
  13953. String category;
  13954. Color color;
  13955. /* readonly */
  13956. Color colorFromTemperature;
  13957. float drawDistance;
  13958. /* readonly */
  13959. Color effectiveColor;
  13960. /* readonly */
  13961. float effectiveSpecularIntensity;
  13962. bool enabled;
  13963. /* readonly */
  13964. bool enabledEffective;
  13965. float fadeDistance;
  13966. float fov;
  13967. /* readonly */
  13968. Frustum frustum;
  13969. Array<Variant> globalVar;
  13970. /* readonly */
  13971. VariantMap globalVars;
  13972. /* readonly */
  13973. uint id;
  13974. /* readonly */
  13975. bool inView;
  13976. float length;
  13977. uint lightMask;
  13978. LightType lightType;
  13979. float lodBias;
  13980. uint maxLights;
  13981. /* readonly */
  13982. bool negative;
  13983. /* readonly */
  13984. Node node;
  13985. /* readonly */
  13986. uint numAttributes;
  13987. /* readonly */
  13988. int numShadowSplits;
  13989. ObjectAnimation objectAnimation;
  13990. bool occludee;
  13991. bool occluder;
  13992. bool perVertex;
  13993. float radius;
  13994. Texture rampTexture;
  13995. float range;
  13996. /* readonly */
  13997. int refs;
  13998. /* readonly */
  13999. bool replicated;
  14000. BiasParameters shadowBias;
  14001. CascadeParameters shadowCascade;
  14002. float shadowDistance;
  14003. float shadowFadeDistance;
  14004. FocusParameters shadowFocus;
  14005. float shadowIntensity;
  14006. uint shadowMask;
  14007. float shadowMaxExtrusion;
  14008. float shadowNearFarRatio;
  14009. float shadowResolution;
  14010. Texture shapeTexture;
  14011. float specularIntensity;
  14012. float temperature;
  14013. bool temporary;
  14014. /* readonly */
  14015. StringHash type;
  14016. /* readonly */
  14017. String typeName;
  14018. bool usePhysicalValues;
  14019. uint viewMask;
  14020. /* readonly */
  14021. int weakRefs;
  14022. /* readonly */
  14023. BoundingBox worldBoundingBox;
  14024. /* readonly */
  14025. Zone zone;
  14026. uint zoneMask;
  14027. };
  14028. class LightBatchQueue
  14029. {
  14030. public:
  14031. ~LightBatchQueue();
  14032. LightBatchQueue();
  14033. // Methods:
  14034. LightBatchQueue& operator=(const LightBatchQueue&);
  14035. // Properties:
  14036. BatchQueue litBaseBatches;
  14037. BatchQueue litBatches;
  14038. bool negative;
  14039. };
  14040. class LightQueryResult
  14041. {
  14042. public:
  14043. ~LightQueryResult();
  14044. LightQueryResult();
  14045. // Methods:
  14046. LightQueryResult& operator=(const LightQueryResult&);
  14047. // Properties:
  14048. uint numSplits;
  14049. };
  14050. class LineEdit
  14051. {
  14052. public:
  14053. LineEdit();
  14054. // Methods:
  14055. void AddChild(UIElement);
  14056. void AddTag(const String&);
  14057. void AddTags(Array<String>);
  14058. void AddTags(const String&, int8 = ';');
  14059. void AdjustScissor(IntRect&);
  14060. void AllocateNetworkState();
  14061. operator Animatable() const;
  14062. void ApplyAttributes();
  14063. operator BorderImage() const;
  14064. void BringToFront();
  14065. const Color& GetColor(Corner) const;
  14066. const Color& GetColorAttr() const;
  14067. const Color& GetDerivedColor() const;
  14068. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  14069. void DisableLayoutUpdate();
  14070. IntVector2 ElementToScreen(const IntVector2&);
  14071. void EnableLayoutUpdate();
  14072. bool FilterAttributes(XMLElement&) const;
  14073. uint FindChild(UIElement) const;
  14074. bool GetAnimationEnabled() const;
  14075. Variant GetAttribute(const String&) const;
  14076. Variant GetAttribute(uint) const;
  14077. ValueAnimation GetAttributeAnimation(const String&) const;
  14078. float GetAttributeAnimationSpeed(const String&) const;
  14079. float GetAttributeAnimationTime(const String&) const;
  14080. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14081. Variant GetAttributeDefault(const String&) const;
  14082. Variant GetAttributeDefault(uint) const;
  14083. BlendMode GetBlendMode() const;
  14084. bool GetBlockEvents() const;
  14085. bool GetBringToBack() const;
  14086. bool GetBringToFront() const;
  14087. UIElement GetChild(const String&, bool = false) const;
  14088. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  14089. UIElement GetChild(uint) const;
  14090. Array<UIElement> GetChildren() const;
  14091. Array<UIElement> GetChildren(bool) const;
  14092. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14093. bool GetClipChildren() const;
  14094. IntRect GetCombinedScreenRect();
  14095. BorderImage GetCursor() const;
  14096. float GetCursorBlinkRate() const;
  14097. uint GetCursorPosition() const;
  14098. XMLFile GetDefaultStyle(bool = true) const;
  14099. float GetDerivedOpacity() const;
  14100. uint GetDragButtonCombo() const;
  14101. uint GetDragButtonCount() const;
  14102. uint GetDragDropMode() const;
  14103. uint GetEchoCharacter() const;
  14104. IntVector2 GetEffectiveMinSize() const;
  14105. UIElement GetElementEventSender() const;
  14106. bool GetEnableAnchor() const;
  14107. VariantMap& GetEventDataMap() const;
  14108. Object GetEventSender() const;
  14109. FocusMode GetFocusMode() const;
  14110. int GetHeight() const;
  14111. HorizontalAlignment GetHorizontalAlignment() const;
  14112. int GetIndent() const;
  14113. int GetIndentSpacing() const;
  14114. int GetIndentWidth() const;
  14115. bool GetInterceptNetworkUpdate(const String&) const;
  14116. int GetLayoutElementMaxSize() const;
  14117. LayoutMode GetLayoutMode() const;
  14118. int GetLayoutSpacing() const;
  14119. Material GetMaterial() const;
  14120. ResourceRef GetMaterialAttr() const;
  14121. int GetMaxHeight() const;
  14122. uint GetMaxLength() const;
  14123. int GetMaxWidth() const;
  14124. int GetMinHeight() const;
  14125. int GetMinWidth() const;
  14126. uint GetNumAttributes() const;
  14127. uint GetNumChildren(bool = false) const;
  14128. uint GetNumNetworkAttributes() const;
  14129. ObjectAnimation GetObjectAnimation() const;
  14130. ResourceRef GetObjectAnimationAttr() const;
  14131. float GetOpacity() const;
  14132. UIElement GetParent() const;
  14133. int GetPriority() const;
  14134. UIElement GetRoot() const;
  14135. bool GetSortChildren() const;
  14136. Object GetSubsystem(StringHash) const;
  14137. Array<String> GetTags() const;
  14138. Text GetTextElement() const;
  14139. Texture GetTexture() const;
  14140. ResourceRef GetTextureAttr() const;
  14141. TraversalMode GetTraversalMode() const;
  14142. StringHash GetType() const;
  14143. bool GetUseDerivedOpacity() const;
  14144. VerticalAlignment GetVerticalAlignment() const;
  14145. int GetWidth() const;
  14146. bool HasColorGradient() const;
  14147. bool HasEventHandlers() const;
  14148. bool HasFocus() const;
  14149. bool HasSubscribedToEvent(Object, StringHash) const;
  14150. bool HasSubscribedToEvent(StringHash) const;
  14151. bool HasTag(const String&) const;
  14152. void InsertChild(uint, UIElement);
  14153. const IntRect& GetBorder() const;
  14154. const IntRect& GetClipBorder() const;
  14155. const IntRect& GetImageBorder() const;
  14156. const IntRect& GetImageRect() const;
  14157. const IntRect& GetLayoutBorder() const;
  14158. const IntVector2& GetChildOffset() const;
  14159. const IntVector2& GetDisabledOffset() const;
  14160. const IntVector2& GetHoverOffset() const;
  14161. const IntVector2& GetMaxOffset() const;
  14162. const IntVector2& GetMaxSize() const;
  14163. const IntVector2& GetMinOffset() const;
  14164. const IntVector2& GetMinSize() const;
  14165. const IntVector2& GetPosition() const;
  14166. const IntVector2& GetScreenPosition() const;
  14167. const IntVector2& GetSize() const;
  14168. bool IsChildOf(UIElement) const;
  14169. bool IsCursorMovable() const;
  14170. bool IsEditable() const;
  14171. bool IsElementEventSender() const;
  14172. bool IsEnabled() const;
  14173. bool IsEnabledSelf() const;
  14174. bool IsFixedHeight() const;
  14175. bool IsFixedSize() const;
  14176. bool IsFixedWidth() const;
  14177. bool IsHovering() const;
  14178. bool IsInside(IntVector2, bool);
  14179. bool IsInsideCombined(IntVector2, bool);
  14180. bool IsInstanceOf(StringHash) const;
  14181. bool IsInternal() const;
  14182. bool IsSelected() const;
  14183. bool IsTemporary() const;
  14184. bool IsTextCopyable() const;
  14185. bool IsTextSelectable() const;
  14186. bool IsTiled() const;
  14187. bool IsVisible() const;
  14188. bool IsVisibleEffective() const;
  14189. bool IsWheelHandler() const;
  14190. bool IsWithinScissor(const IntRect&);
  14191. bool Load(Deserializer&);
  14192. UIElement LoadChildXML(XMLFile, XMLFile);
  14193. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14194. bool LoadJSON(const JSONValue&);
  14195. bool LoadXML(Deserializer&);
  14196. bool LoadXML(File);
  14197. bool LoadXML(VectorBuffer&);
  14198. bool LoadXML(XMLFile, XMLFile);
  14199. bool LoadXML(const XMLElement&);
  14200. bool LoadXML(const XMLElement&, XMLFile);
  14201. void MarkNetworkUpdate();
  14202. operator Object() const;
  14203. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14204. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  14205. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14206. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14207. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14208. bool OnDragDropFinish(UIElement);
  14209. bool OnDragDropTest(UIElement);
  14210. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14211. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14212. void OnEvent(Object, StringHash, VariantMap&);
  14213. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  14214. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14215. void OnIndentSet();
  14216. void OnKey(uint, uint, uint);
  14217. void OnPositionSet(const IntVector2&);
  14218. void OnResize(const IntVector2&, const IntVector2&);
  14219. void OnSetAttribute(const AttributeInfo&, const Variant&);
  14220. void OnSetEditable();
  14221. void OnTextInput(const String&);
  14222. void OnWheel(int, uint, uint);
  14223. bool ReadDeltaUpdate(Deserializer&);
  14224. bool ReadLatestDataUpdate(Deserializer&);
  14225. operator RefCounted() const;
  14226. int Refs() const;
  14227. void Remove();
  14228. void RemoveAllChildren();
  14229. void RemoveAllTags();
  14230. void RemoveAttributeAnimation(const String&);
  14231. void RemoveChild(UIElement, uint = 0);
  14232. void RemoveChild(uint);
  14233. void RemoveChildAtIndex(uint);
  14234. void RemoveInstanceDefault();
  14235. void RemoveObjectAnimation();
  14236. bool RemoveTag(const String&);
  14237. void ResetDeepEnabled();
  14238. void ResetToDefault();
  14239. bool Save(Serializer&) const;
  14240. bool SaveDefaultAttributes() const;
  14241. bool SaveJSON(JSONValue&) const;
  14242. bool SaveXML(File, const String& indentation = "\t");
  14243. bool SaveXML(Serializer&, const String& = "\t") const;
  14244. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  14245. bool SaveXML(XMLElement&) const;
  14246. IntVector2 ScreenToElement(const IntVector2&);
  14247. void SendEvent(StringHash);
  14248. void SendEvent(StringHash, VariantMap&);
  14249. operator Serializable() const;
  14250. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14251. void SetAnimationEnabled(bool);
  14252. void SetAnimationTime(float);
  14253. bool SetAttribute(const String&, const Variant&);
  14254. bool SetAttribute(uint, const Variant&);
  14255. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14256. void SetAttributeAnimationSpeed(const String&, float);
  14257. void SetAttributeAnimationTime(const String&, float);
  14258. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14259. void SetBlendMode(BlendMode);
  14260. void SetBlockEvents(bool);
  14261. void SetBorder(const IntRect&);
  14262. void SetBringToBack(bool);
  14263. void SetBringToFront(bool);
  14264. void SetChildOffset(const IntVector2&);
  14265. void SetClipBorder(const IntRect&);
  14266. void SetClipChildren(bool);
  14267. void SetColor(Corner, const Color&);
  14268. void SetColor(const Color&);
  14269. void SetCursorBlinkRate(float);
  14270. void SetCursorMovable(bool);
  14271. void SetCursorPosition(uint);
  14272. void SetDeepEnabled(bool);
  14273. void SetDefaultStyle(XMLFile);
  14274. void SetDisabledOffset(const IntVector2&);
  14275. void SetDisabledOffset(int, int);
  14276. void SetDragDropMode(uint);
  14277. void SetEchoCharacter(uint);
  14278. void SetEditable(bool);
  14279. void SetElementEventSender(bool);
  14280. void SetEnableAnchor(bool);
  14281. void SetEnabled(bool);
  14282. void SetEnabledRecursive(bool);
  14283. void SetFixedHeight(int);
  14284. void SetFixedSize(const IntVector2&);
  14285. void SetFixedSize(int, int);
  14286. void SetFixedWidth(int);
  14287. void SetFocus(bool);
  14288. void SetFocusMode(FocusMode);
  14289. void SetFullImageRect();
  14290. void SetGlobalVar(StringHash, const Variant&);
  14291. void SetHeight(int);
  14292. void SetHorizontalAlignment(HorizontalAlignment);
  14293. void SetHoverOffset(const IntVector2&);
  14294. void SetHoverOffset(int, int);
  14295. void SetHovering(bool);
  14296. void SetImageBorder(const IntRect&);
  14297. void SetImageRect(const IntRect&);
  14298. void SetIndent(int);
  14299. void SetIndentSpacing(int);
  14300. void SetInstanceDefault(bool);
  14301. void SetInterceptNetworkUpdate(const String&, bool);
  14302. void SetInternal(bool);
  14303. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  14304. void SetLayoutBorder(const IntRect&);
  14305. void SetLayoutFlexScale(const Vector2&);
  14306. void SetLayoutMode(LayoutMode);
  14307. void SetLayoutSpacing(int);
  14308. void SetMaterial(Material);
  14309. void SetMaterialAttr(const ResourceRef&);
  14310. void SetMaxAnchor(const Vector2&);
  14311. void SetMaxAnchor(float, float);
  14312. void SetMaxHeight(int);
  14313. void SetMaxLength(uint);
  14314. void SetMaxOffset(const IntVector2&);
  14315. void SetMaxSize(const IntVector2&);
  14316. void SetMaxSize(int, int);
  14317. void SetMaxWidth(int);
  14318. void SetMinAnchor(const Vector2&);
  14319. void SetMinAnchor(float, float);
  14320. void SetMinHeight(int);
  14321. void SetMinOffset(const IntVector2&);
  14322. void SetMinSize(const IntVector2&);
  14323. void SetMinSize(int, int);
  14324. void SetMinWidth(int);
  14325. void SetName(const String&);
  14326. void SetObjectAnimation(ObjectAnimation);
  14327. void SetObjectAnimationAttr(const ResourceRef&);
  14328. void SetOpacity(float);
  14329. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14330. void SetPivot(const Vector2&);
  14331. void SetPivot(float, float);
  14332. void SetPosition(const IntVector2&);
  14333. void SetPosition(int, int);
  14334. void SetPriority(int);
  14335. void SetRenderTexture(Texture2D);
  14336. void SetSelected(bool);
  14337. void SetSize(const IntVector2&);
  14338. void SetSize(int, int);
  14339. void SetSortChildren(bool);
  14340. bool SetStyle(const String&, XMLFile = null);
  14341. bool SetStyle(const XMLElement&);
  14342. bool SetStyleAuto(XMLFile = null);
  14343. void SetTags(Array<String>);
  14344. void SetTemporary(bool);
  14345. void SetText(const String&);
  14346. void SetTextCopyable(bool);
  14347. void SetTextSelectable(bool);
  14348. void SetTexture(Texture);
  14349. void SetTextureAttr(const ResourceRef&);
  14350. void SetTiled(bool);
  14351. void SetTraversalMode(TraversalMode);
  14352. void SetUseDerivedOpacity(bool);
  14353. void SetVar(StringHash, const Variant&);
  14354. void SetVerticalAlignment(VerticalAlignment);
  14355. void SetVisible(bool);
  14356. void SetWidth(int);
  14357. void SortChildren();
  14358. const String& GetAppliedStyle() const;
  14359. const String& GetCategory() const;
  14360. const String& GetName() const;
  14361. const String& GetText() const;
  14362. const String& GetTypeName() const;
  14363. operator UIElement() const;
  14364. void UnsubscribeFromAllEvents();
  14365. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  14366. void UnsubscribeFromEvent(Object, StringHash);
  14367. void UnsubscribeFromEvent(StringHash);
  14368. void UnsubscribeFromEvents(Object);
  14369. void Update(float);
  14370. void UpdateLayout();
  14371. const Variant& GetGlobalVar(StringHash) const;
  14372. const Variant& GetVar(const StringHash&) const;
  14373. const VariantMap& GetGlobalVars() const;
  14374. const VariantMap& GetVars() const;
  14375. const Vector2& GetLayoutFlexScale() const;
  14376. const Vector2& GetMaxAnchor() const;
  14377. const Vector2& GetMinAnchor() const;
  14378. const Vector2& GetPivot() const;
  14379. int WeakRefs() const;
  14380. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  14381. void WriteInitialDeltaUpdate(Serializer&, uint8);
  14382. void WriteLatestDataUpdate(Serializer&, uint8);
  14383. operator const Animatable() const;
  14384. operator const BorderImage() const;
  14385. operator const Object() const;
  14386. operator const RefCounted() const;
  14387. operator const Serializable() const;
  14388. operator const UIElement() const;
  14389. // Properties:
  14390. bool animationEnabled;
  14391. /* readonly */
  14392. Array<Variant> attributeDefaults;
  14393. /* readonly */
  14394. Array<AttributeInfo> attributeInfos;
  14395. Array<Variant> attributes;
  14396. BlendMode blendMode;
  14397. IntRect border;
  14398. bool bringToBack;
  14399. bool bringToFront;
  14400. /* readonly */
  14401. String category;
  14402. /* readonly */
  14403. IntVector2 childOffset;
  14404. /* readonly */
  14405. Array<UIElement> children;
  14406. IntRect clipBorder;
  14407. bool clipChildren;
  14408. /* writeonly */
  14409. Color color;
  14410. /* readonly */
  14411. bool colorGradient;
  14412. Array<Color> colors;
  14413. /* readonly */
  14414. IntRect combinedScreenRect;
  14415. /* readonly */
  14416. BorderImage cursor;
  14417. float cursorBlinkRate;
  14418. bool cursorMovable;
  14419. uint cursorPosition;
  14420. XMLFile defaultStyle;
  14421. /* readonly */
  14422. float derivedOpacity;
  14423. IntVector2 disabledOffset;
  14424. /* readonly */
  14425. uint dragButtonCombo;
  14426. /* readonly */
  14427. uint dragButtonCount;
  14428. uint dragDropMode;
  14429. uint echoCharacter;
  14430. bool editable;
  14431. bool elementEventSender;
  14432. bool enableAnchor;
  14433. bool enabled;
  14434. /* readonly */
  14435. bool enabledSelf;
  14436. /* readonly */
  14437. bool fixedHeight;
  14438. /* readonly */
  14439. bool fixedSize;
  14440. /* readonly */
  14441. bool fixedWidth;
  14442. bool focus;
  14443. FocusMode focusMode;
  14444. Array<Variant> globalVar;
  14445. /* readonly */
  14446. VariantMap globalVars;
  14447. int height;
  14448. HorizontalAlignment horizontalAlignment;
  14449. IntVector2 hoverOffset;
  14450. /* readonly */
  14451. bool hovering;
  14452. IntRect imageBorder;
  14453. IntRect imageRect;
  14454. int indent;
  14455. int indentSpacing;
  14456. /* readonly */
  14457. int indentWidth;
  14458. bool internal;
  14459. IntRect layoutBorder;
  14460. Vector2 layoutFlexScale;
  14461. LayoutMode layoutMode;
  14462. int layoutSpacing;
  14463. Material material;
  14464. Vector2 maxAnchor;
  14465. int maxHeight;
  14466. uint maxLength;
  14467. IntVector2 maxOffset;
  14468. IntVector2 maxSize;
  14469. int maxWidth;
  14470. Vector2 minAnchor;
  14471. int minHeight;
  14472. IntVector2 minOffset;
  14473. IntVector2 minSize;
  14474. int minWidth;
  14475. String name;
  14476. /* readonly */
  14477. uint numAllChildren;
  14478. /* readonly */
  14479. uint numAttributes;
  14480. /* readonly */
  14481. uint numChildren;
  14482. ObjectAnimation objectAnimation;
  14483. float opacity;
  14484. UIElement parent;
  14485. Vector2 pivot;
  14486. IntVector2 position;
  14487. int priority;
  14488. /* readonly */
  14489. int refs;
  14490. /* readonly */
  14491. UIElement root;
  14492. /* readonly */
  14493. IntVector2 screenPosition;
  14494. bool selected;
  14495. IntVector2 size;
  14496. bool sortChildren;
  14497. String style;
  14498. /* readonly */
  14499. Array<String> tags;
  14500. bool temporary;
  14501. String text;
  14502. bool textCopyable;
  14503. /* readonly */
  14504. Text textElement;
  14505. bool textSelectable;
  14506. Texture texture;
  14507. bool tiled;
  14508. TraversalMode traversalMode;
  14509. /* readonly */
  14510. StringHash type;
  14511. /* readonly */
  14512. String typeName;
  14513. bool useDerivedOpacity;
  14514. /* readonly */
  14515. VariantMap vars;
  14516. VerticalAlignment verticalAlignment;
  14517. bool visible;
  14518. /* readonly */
  14519. bool visibleEffective;
  14520. /* readonly */
  14521. int weakRefs;
  14522. int width;
  14523. };
  14524. class LinkedListNode
  14525. {
  14526. public:
  14527. ~LinkedListNode();
  14528. LinkedListNode();
  14529. // Methods:
  14530. LinkedListNode& operator=(const LinkedListNode&);
  14531. };
  14532. class ListBase
  14533. {
  14534. public:
  14535. ~ListBase();
  14536. ListBase();
  14537. // Methods:
  14538. ListBase& operator=(const ListBase&);
  14539. void Swap(ListBase&);
  14540. };
  14541. class ListIteratorBase
  14542. {
  14543. public:
  14544. ~ListIteratorBase();
  14545. ListIteratorBase();
  14546. // Methods:
  14547. ListIteratorBase& operator=(const ListIteratorBase&);
  14548. bool operator==(const ListIteratorBase&) const;
  14549. void GotoNext();
  14550. void GotoPrev();
  14551. };
  14552. class ListNodeBase
  14553. {
  14554. public:
  14555. ~ListNodeBase();
  14556. ListNodeBase();
  14557. // Methods:
  14558. ListNodeBase& operator=(const ListNodeBase&);
  14559. };
  14560. class ListView
  14561. {
  14562. public:
  14563. ListView();
  14564. // Methods:
  14565. void AddChild(UIElement);
  14566. void AddItem(UIElement);
  14567. void AddSelection(uint);
  14568. void AddTag(const String&);
  14569. void AddTags(Array<String>);
  14570. void AddTags(const String&, int8 = ';');
  14571. void AdjustScissor(IntRect&);
  14572. void AllocateNetworkState();
  14573. operator Animatable() const;
  14574. void ApplyAttributes();
  14575. void BringToFront();
  14576. void ChangeSelection(int, bool = false);
  14577. void ClearSelection();
  14578. const Color& GetColor(Corner) const;
  14579. const Color& GetColorAttr() const;
  14580. const Color& GetDerivedColor() const;
  14581. void CopySelectedItemsToClipboard() const;
  14582. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  14583. void DisableInternalLayoutUpdate();
  14584. void DisableLayoutUpdate();
  14585. IntVector2 ElementToScreen(const IntVector2&);
  14586. void EnableInternalLayoutUpdate();
  14587. void EnableLayoutUpdate();
  14588. void EnsureItemVisibility(UIElement);
  14589. void EnsureItemVisibility(uint);
  14590. void Expand(uint, bool, bool = false);
  14591. bool FilterAttributes(XMLElement&) const;
  14592. uint FindChild(UIElement) const;
  14593. uint FindItem(UIElement) const;
  14594. bool GetAnimationEnabled() const;
  14595. Variant GetAttribute(const String&) const;
  14596. Variant GetAttribute(uint) const;
  14597. ValueAnimation GetAttributeAnimation(const String&) const;
  14598. float GetAttributeAnimationSpeed(const String&) const;
  14599. float GetAttributeAnimationTime(const String&) const;
  14600. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14601. Variant GetAttributeDefault(const String&) const;
  14602. Variant GetAttributeDefault(uint) const;
  14603. bool GetAutoDisableChildren() const;
  14604. float GetAutoDisableThreshold() const;
  14605. int GetBaseIndent() const;
  14606. bool GetBlockEvents() const;
  14607. bool GetBringToBack() const;
  14608. bool GetBringToFront() const;
  14609. UIElement GetChild(const String&, bool = false) const;
  14610. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  14611. UIElement GetChild(uint) const;
  14612. Array<UIElement> GetChildren() const;
  14613. Array<UIElement> GetChildren(bool) const;
  14614. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14615. bool GetClearSelectionOnDefocus() const;
  14616. bool GetClipChildren() const;
  14617. IntRect GetCombinedScreenRect();
  14618. UIElement GetContentElement() const;
  14619. XMLFile GetDefaultStyle(bool = true) const;
  14620. float GetDerivedOpacity() const;
  14621. uint GetDragButtonCombo() const;
  14622. uint GetDragButtonCount() const;
  14623. uint GetDragDropMode() const;
  14624. IntVector2 GetEffectiveMinSize() const;
  14625. UIElement GetElementEventSender() const;
  14626. bool GetEnableAnchor() const;
  14627. VariantMap& GetEventDataMap() const;
  14628. Object GetEventSender() const;
  14629. FocusMode GetFocusMode() const;
  14630. int GetHeight() const;
  14631. bool GetHierarchyMode() const;
  14632. HighlightMode GetHighlightMode() const;
  14633. HorizontalAlignment GetHorizontalAlignment() const;
  14634. ScrollBar GetHorizontalScrollBar() const;
  14635. bool GetHorizontalScrollBarVisible() const;
  14636. int GetIndent() const;
  14637. int GetIndentSpacing() const;
  14638. int GetIndentWidth() const;
  14639. bool GetInterceptNetworkUpdate(const String&) const;
  14640. UIElement GetItem(uint) const;
  14641. Array<UIElement> GetItems() const;
  14642. int GetLayoutElementMaxSize() const;
  14643. LayoutMode GetLayoutMode() const;
  14644. int GetLayoutSpacing() const;
  14645. int GetMaxHeight() const;
  14646. int GetMaxWidth() const;
  14647. int GetMinHeight() const;
  14648. int GetMinWidth() const;
  14649. bool GetMultiselect() const;
  14650. uint GetNumAttributes() const;
  14651. uint GetNumChildren(bool = false) const;
  14652. uint GetNumItems() const;
  14653. uint GetNumNetworkAttributes() const;
  14654. ObjectAnimation GetObjectAnimation() const;
  14655. ResourceRef GetObjectAnimationAttr() const;
  14656. float GetOpacity() const;
  14657. float GetPageStep() const;
  14658. UIElement GetParent() const;
  14659. int GetPriority() const;
  14660. UIElement GetRoot() const;
  14661. bool GetScrollBarsAutoVisible() const;
  14662. float GetScrollDeceleration() const;
  14663. BorderImage GetScrollPanel() const;
  14664. float GetScrollSnapEpsilon() const;
  14665. float GetScrollStep() const;
  14666. bool GetSelectOnClickEnd() const;
  14667. UIElement GetSelectedItem() const;
  14668. Array<UIElement> GetSelectedItems() const;
  14669. uint GetSelection() const;
  14670. Array<uint> GetSelections() const;
  14671. bool GetSortChildren() const;
  14672. Object GetSubsystem(StringHash) const;
  14673. Array<String> GetTags() const;
  14674. TraversalMode GetTraversalMode() const;
  14675. StringHash GetType() const;
  14676. bool GetUseDerivedOpacity() const;
  14677. VerticalAlignment GetVerticalAlignment() const;
  14678. ScrollBar GetVerticalScrollBar() const;
  14679. bool GetVerticalScrollBarVisible() const;
  14680. int GetWidth() const;
  14681. bool HasColorGradient() const;
  14682. bool HasEventHandlers() const;
  14683. bool HasFocus() const;
  14684. bool HasSubscribedToEvent(Object, StringHash) const;
  14685. bool HasSubscribedToEvent(StringHash) const;
  14686. bool HasTag(const String&) const;
  14687. void InsertChild(uint, UIElement);
  14688. void InsertItem(uint, UIElement, UIElement = null);
  14689. const IntRect& GetClipBorder() const;
  14690. const IntRect& GetLayoutBorder() const;
  14691. const IntVector2& GetChildOffset() const;
  14692. const IntVector2& GetMaxOffset() const;
  14693. const IntVector2& GetMaxSize() const;
  14694. const IntVector2& GetMinOffset() const;
  14695. const IntVector2& GetMinSize() const;
  14696. const IntVector2& GetPosition() const;
  14697. const IntVector2& GetScreenPosition() const;
  14698. const IntVector2& GetSize() const;
  14699. const IntVector2& GetViewPosition() const;
  14700. bool IsChildOf(UIElement) const;
  14701. bool IsEditable() const;
  14702. bool IsElementEventSender() const;
  14703. bool IsEnabled() const;
  14704. bool IsEnabledSelf() const;
  14705. bool IsExpanded(uint) const;
  14706. bool IsFixedHeight() const;
  14707. bool IsFixedSize() const;
  14708. bool IsFixedWidth() const;
  14709. bool IsHovering() const;
  14710. bool IsInside(IntVector2, bool);
  14711. bool IsInsideCombined(IntVector2, bool);
  14712. bool IsInstanceOf(StringHash) const;
  14713. bool IsInternal() const;
  14714. bool IsSelected(uint) const;
  14715. bool IsTemporary() const;
  14716. bool IsVisible() const;
  14717. bool IsVisibleEffective() const;
  14718. bool IsWheelHandler() const;
  14719. bool IsWithinScissor(const IntRect&);
  14720. bool Load(Deserializer&);
  14721. UIElement LoadChildXML(XMLFile, XMLFile);
  14722. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14723. bool LoadJSON(const JSONValue&);
  14724. bool LoadXML(Deserializer&);
  14725. bool LoadXML(File);
  14726. bool LoadXML(VectorBuffer&);
  14727. bool LoadXML(XMLFile, XMLFile);
  14728. bool LoadXML(const XMLElement&);
  14729. bool LoadXML(const XMLElement&, XMLFile);
  14730. void MarkNetworkUpdate();
  14731. operator Object() const;
  14732. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14733. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  14734. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14735. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14736. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14737. bool OnDragDropFinish(UIElement);
  14738. bool OnDragDropTest(UIElement);
  14739. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14740. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14741. void OnEvent(Object, StringHash, VariantMap&);
  14742. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  14743. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14744. void OnIndentSet();
  14745. void OnKey(uint, uint, uint);
  14746. void OnPositionSet(const IntVector2&);
  14747. void OnResize(const IntVector2&, const IntVector2&);
  14748. void OnSetAttribute(const AttributeInfo&, const Variant&);
  14749. void OnSetEditable();
  14750. void OnTextInput(const String&);
  14751. void OnWheel(int, uint, uint);
  14752. bool ReadDeltaUpdate(Deserializer&);
  14753. bool ReadLatestDataUpdate(Deserializer&);
  14754. operator RefCounted() const;
  14755. int Refs() const;
  14756. void Remove();
  14757. void RemoveAllChildren();
  14758. void RemoveAllItems();
  14759. void RemoveAllTags();
  14760. void RemoveAttributeAnimation(const String&);
  14761. void RemoveChild(UIElement, uint = 0);
  14762. void RemoveChild(uint);
  14763. void RemoveChildAtIndex(uint);
  14764. void RemoveInstanceDefault();
  14765. void RemoveItem(UIElement, uint = 0);
  14766. void RemoveItem(uint);
  14767. void RemoveObjectAnimation();
  14768. void RemoveSelection(uint);
  14769. bool RemoveTag(const String&);
  14770. void ResetDeepEnabled();
  14771. void ResetToDefault();
  14772. bool Save(Serializer&) const;
  14773. bool SaveDefaultAttributes() const;
  14774. bool SaveJSON(JSONValue&) const;
  14775. bool SaveXML(File, const String& indentation = "\t");
  14776. bool SaveXML(Serializer&, const String& = "\t") const;
  14777. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  14778. bool SaveXML(XMLElement&) const;
  14779. IntVector2 ScreenToElement(const IntVector2&);
  14780. operator ScrollView() const;
  14781. void SendEvent(StringHash);
  14782. void SendEvent(StringHash, VariantMap&);
  14783. operator Serializable() const;
  14784. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14785. void SetAnimationEnabled(bool);
  14786. void SetAnimationTime(float);
  14787. bool SetAttribute(const String&, const Variant&);
  14788. bool SetAttribute(uint, const Variant&);
  14789. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14790. void SetAttributeAnimationSpeed(const String&, float);
  14791. void SetAttributeAnimationTime(const String&, float);
  14792. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14793. void SetAutoDisableChildren(bool);
  14794. void SetAutoDisableThreshold(float);
  14795. void SetBaseIndent(int);
  14796. void SetBlockEvents(bool);
  14797. void SetBringToBack(bool);
  14798. void SetBringToFront(bool);
  14799. void SetChildOffset(const IntVector2&);
  14800. void SetClearSelectionOnDefocus(bool);
  14801. void SetClipBorder(const IntRect&);
  14802. void SetClipChildren(bool);
  14803. void SetColor(Corner, const Color&);
  14804. void SetColor(const Color&);
  14805. void SetContentElement(UIElement);
  14806. void SetDeepEnabled(bool);
  14807. void SetDefaultStyle(XMLFile);
  14808. void SetDragDropMode(uint);
  14809. void SetEditable(bool);
  14810. void SetElementEventSender(bool);
  14811. void SetEnableAnchor(bool);
  14812. void SetEnabled(bool);
  14813. void SetEnabledRecursive(bool);
  14814. void SetFixedHeight(int);
  14815. void SetFixedSize(const IntVector2&);
  14816. void SetFixedSize(int, int);
  14817. void SetFixedWidth(int);
  14818. void SetFocus(bool);
  14819. void SetFocusMode(FocusMode);
  14820. void SetGlobalVar(StringHash, const Variant&);
  14821. void SetHeight(int);
  14822. void SetHierarchyMode(bool);
  14823. void SetHighlightMode(HighlightMode);
  14824. void SetHorizontalAlignment(HorizontalAlignment);
  14825. void SetHorizontalScrollBarVisible(bool);
  14826. void SetHovering(bool);
  14827. void SetIndent(int);
  14828. void SetIndentSpacing(int);
  14829. void SetInstanceDefault(bool);
  14830. void SetInterceptNetworkUpdate(const String&, bool);
  14831. void SetInternal(bool);
  14832. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  14833. void SetLayoutBorder(const IntRect&);
  14834. void SetLayoutFlexScale(const Vector2&);
  14835. void SetLayoutMode(LayoutMode);
  14836. void SetLayoutSpacing(int);
  14837. void SetMaxAnchor(const Vector2&);
  14838. void SetMaxAnchor(float, float);
  14839. void SetMaxHeight(int);
  14840. void SetMaxOffset(const IntVector2&);
  14841. void SetMaxSize(const IntVector2&);
  14842. void SetMaxSize(int, int);
  14843. void SetMaxWidth(int);
  14844. void SetMinAnchor(const Vector2&);
  14845. void SetMinAnchor(float, float);
  14846. void SetMinHeight(int);
  14847. void SetMinOffset(const IntVector2&);
  14848. void SetMinSize(const IntVector2&);
  14849. void SetMinSize(int, int);
  14850. void SetMinWidth(int);
  14851. void SetMultiselect(bool);
  14852. void SetName(const String&);
  14853. void SetObjectAnimation(ObjectAnimation);
  14854. void SetObjectAnimationAttr(const ResourceRef&);
  14855. void SetOpacity(float);
  14856. void SetPageStep(float);
  14857. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  14858. void SetPivot(const Vector2&);
  14859. void SetPivot(float, float);
  14860. void SetPosition(const IntVector2&);
  14861. void SetPosition(int, int);
  14862. void SetPriority(int);
  14863. void SetRenderTexture(Texture2D);
  14864. void SetScrollBarsAutoVisible(bool);
  14865. void SetScrollBarsVisible(bool, bool);
  14866. void SetScrollDeceleration(float);
  14867. void SetScrollSnapEpsilon(float);
  14868. void SetScrollStep(float);
  14869. void SetSelectOnClickEnd(bool);
  14870. void SetSelected(bool);
  14871. void SetSelection(uint);
  14872. void SetSelections(Array<uint>);
  14873. void SetSize(const IntVector2&);
  14874. void SetSize(int, int);
  14875. void SetSortChildren(bool);
  14876. bool SetStyle(const String&, XMLFile = null);
  14877. bool SetStyle(const XMLElement&);
  14878. bool SetStyleAuto(XMLFile = null);
  14879. void SetTags(Array<String>);
  14880. void SetTemporary(bool);
  14881. void SetTraversalMode(TraversalMode);
  14882. void SetUseDerivedOpacity(bool);
  14883. void SetVar(StringHash, const Variant&);
  14884. void SetVerticalAlignment(VerticalAlignment);
  14885. void SetVerticalScrollBarVisible(bool);
  14886. void SetViewPosition(const IntVector2&);
  14887. void SetViewPosition(int, int);
  14888. void SetViewPositionAttr(const IntVector2&);
  14889. void SetVisible(bool);
  14890. void SetWidth(int);
  14891. void SortChildren();
  14892. const String& GetAppliedStyle() const;
  14893. const String& GetCategory() const;
  14894. const String& GetName() const;
  14895. const String& GetTypeName() const;
  14896. void ToggleExpand(uint, bool = false);
  14897. void ToggleSelection(uint);
  14898. operator UIElement() const;
  14899. void UnsubscribeFromAllEvents();
  14900. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  14901. void UnsubscribeFromEvent(Object, StringHash);
  14902. void UnsubscribeFromEvent(StringHash);
  14903. void UnsubscribeFromEvents(Object);
  14904. void Update(float);
  14905. void UpdateInternalLayout();
  14906. void UpdateLayout();
  14907. const Variant& GetGlobalVar(StringHash) const;
  14908. const Variant& GetVar(const StringHash&) const;
  14909. const VariantMap& GetGlobalVars() const;
  14910. const VariantMap& GetVars() const;
  14911. const Vector2& GetLayoutFlexScale() const;
  14912. const Vector2& GetMaxAnchor() const;
  14913. const Vector2& GetMinAnchor() const;
  14914. const Vector2& GetPivot() const;
  14915. int WeakRefs() const;
  14916. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  14917. void WriteInitialDeltaUpdate(Serializer&, uint8);
  14918. void WriteLatestDataUpdate(Serializer&, uint8);
  14919. operator const Animatable() const;
  14920. operator const Object() const;
  14921. operator const RefCounted() const;
  14922. operator const ScrollView() const;
  14923. operator const Serializable() const;
  14924. operator const UIElement() const;
  14925. // Properties:
  14926. bool animationEnabled;
  14927. /* readonly */
  14928. Array<Variant> attributeDefaults;
  14929. /* readonly */
  14930. Array<AttributeInfo> attributeInfos;
  14931. Array<Variant> attributes;
  14932. bool autoDisableChildren;
  14933. float autoDisableThreshold;
  14934. int baseIndent;
  14935. bool bringToBack;
  14936. bool bringToFront;
  14937. /* readonly */
  14938. String category;
  14939. /* readonly */
  14940. IntVector2 childOffset;
  14941. /* readonly */
  14942. Array<UIElement> children;
  14943. bool clearSelectionOnDefocus;
  14944. IntRect clipBorder;
  14945. bool clipChildren;
  14946. /* writeonly */
  14947. Color color;
  14948. /* readonly */
  14949. bool colorGradient;
  14950. Array<Color> colors;
  14951. /* readonly */
  14952. IntRect combinedScreenRect;
  14953. UIElement contentElement;
  14954. XMLFile defaultStyle;
  14955. /* readonly */
  14956. float derivedOpacity;
  14957. /* readonly */
  14958. uint dragButtonCombo;
  14959. /* readonly */
  14960. uint dragButtonCount;
  14961. uint dragDropMode;
  14962. bool editable;
  14963. bool elementEventSender;
  14964. bool enableAnchor;
  14965. bool enabled;
  14966. /* readonly */
  14967. bool enabledSelf;
  14968. /* readonly */
  14969. bool fixedHeight;
  14970. /* readonly */
  14971. bool fixedSize;
  14972. /* readonly */
  14973. bool fixedWidth;
  14974. bool focus;
  14975. FocusMode focusMode;
  14976. Array<Variant> globalVar;
  14977. /* readonly */
  14978. VariantMap globalVars;
  14979. int height;
  14980. bool hierarchyMode;
  14981. HighlightMode highlightMode;
  14982. HorizontalAlignment horizontalAlignment;
  14983. /* readonly */
  14984. ScrollBar horizontalScrollBar;
  14985. bool horizontalScrollBarVisible;
  14986. /* readonly */
  14987. bool hovering;
  14988. int indent;
  14989. int indentSpacing;
  14990. /* readonly */
  14991. int indentWidth;
  14992. bool internal;
  14993. /* readonly */
  14994. Array<UIElement> items;
  14995. IntRect layoutBorder;
  14996. Vector2 layoutFlexScale;
  14997. LayoutMode layoutMode;
  14998. int layoutSpacing;
  14999. Vector2 maxAnchor;
  15000. int maxHeight;
  15001. IntVector2 maxOffset;
  15002. IntVector2 maxSize;
  15003. int maxWidth;
  15004. Vector2 minAnchor;
  15005. int minHeight;
  15006. IntVector2 minOffset;
  15007. IntVector2 minSize;
  15008. int minWidth;
  15009. bool multiselect;
  15010. String name;
  15011. /* readonly */
  15012. uint numAllChildren;
  15013. /* readonly */
  15014. uint numAttributes;
  15015. /* readonly */
  15016. uint numChildren;
  15017. /* readonly */
  15018. uint numItems;
  15019. ObjectAnimation objectAnimation;
  15020. float opacity;
  15021. float pageStep;
  15022. UIElement parent;
  15023. Vector2 pivot;
  15024. IntVector2 position;
  15025. int priority;
  15026. /* readonly */
  15027. int refs;
  15028. /* readonly */
  15029. UIElement root;
  15030. /* readonly */
  15031. IntVector2 screenPosition;
  15032. bool scrollBarsAutoVisible;
  15033. float scrollDeceleration;
  15034. /* readonly */
  15035. BorderImage scrollPanel;
  15036. float scrollSnapEpsilon;
  15037. float scrollStep;
  15038. bool selectOnClickEnd;
  15039. /* writeonly */
  15040. bool selected;
  15041. /* readonly */
  15042. UIElement selectedItem;
  15043. /* readonly */
  15044. Array<UIElement> selectedItems;
  15045. uint selection;
  15046. /* readonly */
  15047. Array<uint> selections;
  15048. IntVector2 size;
  15049. bool sortChildren;
  15050. String style;
  15051. /* readonly */
  15052. Array<String> tags;
  15053. bool temporary;
  15054. TraversalMode traversalMode;
  15055. /* readonly */
  15056. StringHash type;
  15057. /* readonly */
  15058. String typeName;
  15059. bool useDerivedOpacity;
  15060. /* readonly */
  15061. VariantMap vars;
  15062. VerticalAlignment verticalAlignment;
  15063. /* readonly */
  15064. ScrollBar verticalScrollBar;
  15065. bool verticalScrollBarVisible;
  15066. IntVector2 viewPosition;
  15067. bool visible;
  15068. /* readonly */
  15069. bool visibleEffective;
  15070. /* readonly */
  15071. int weakRefs;
  15072. int width;
  15073. };
  15074. class Localization
  15075. {
  15076. public:
  15077. Localization();
  15078. // Methods:
  15079. String Get(const String&);
  15080. bool GetBlockEvents() const;
  15081. VariantMap& GetEventDataMap() const;
  15082. Object GetEventSender() const;
  15083. String GetLanguage();
  15084. String GetLanguage(int);
  15085. int GetLanguageIndex() const;
  15086. int GetLanguageIndex(const String&);
  15087. int GetNumLanguages() const;
  15088. Object GetSubsystem(StringHash) const;
  15089. StringHash GetType() const;
  15090. bool HasEventHandlers() const;
  15091. bool HasSubscribedToEvent(Object, StringHash) const;
  15092. bool HasSubscribedToEvent(StringHash) const;
  15093. bool IsInstanceOf(StringHash) const;
  15094. void LoadJSONFile(const String&, const String& = String :: EMPTY);
  15095. void LoadMultipleLanguageJSON(const JSONValue&);
  15096. void LoadSingleLanguageJSON(const JSONValue&, const String& = String :: EMPTY);
  15097. operator Object() const;
  15098. void OnEvent(Object, StringHash, VariantMap&);
  15099. operator RefCounted() const;
  15100. int Refs() const;
  15101. void Reset();
  15102. void SendEvent(StringHash);
  15103. void SendEvent(StringHash, VariantMap&);
  15104. void SetBlockEvents(bool);
  15105. void SetGlobalVar(StringHash, const Variant&);
  15106. void SetLanguage(const String&);
  15107. void SetLanguage(int);
  15108. const String& GetCategory() const;
  15109. const String& GetTypeName() const;
  15110. void UnsubscribeFromAllEvents();
  15111. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15112. void UnsubscribeFromEvent(Object, StringHash);
  15113. void UnsubscribeFromEvent(StringHash);
  15114. void UnsubscribeFromEvents(Object);
  15115. const Variant& GetGlobalVar(StringHash) const;
  15116. const VariantMap& GetGlobalVars() const;
  15117. int WeakRefs() const;
  15118. operator const Object() const;
  15119. operator const RefCounted() const;
  15120. // Properties:
  15121. /* readonly */
  15122. String category;
  15123. Array<Variant> globalVar;
  15124. /* readonly */
  15125. VariantMap globalVars;
  15126. /* readonly */
  15127. String language;
  15128. /* readonly */
  15129. int languageIndex;
  15130. /* readonly */
  15131. int numLanguages;
  15132. /* readonly */
  15133. int refs;
  15134. /* readonly */
  15135. StringHash type;
  15136. /* readonly */
  15137. String typeName;
  15138. /* readonly */
  15139. int weakRefs;
  15140. };
  15141. class Log
  15142. {
  15143. public:
  15144. Log();
  15145. // Methods:
  15146. void Close();
  15147. void Debug(const String&);
  15148. void Error(const String&);
  15149. bool GetBlockEvents() const;
  15150. VariantMap& GetEventDataMap() const;
  15151. Object GetEventSender() const;
  15152. String GetLastMessage() const;
  15153. int GetLevel() const;
  15154. Object GetSubsystem(StringHash) const;
  15155. bool GetTimeStamp() const;
  15156. StringHash GetType() const;
  15157. bool HasEventHandlers() const;
  15158. bool HasSubscribedToEvent(Object, StringHash) const;
  15159. bool HasSubscribedToEvent(StringHash) const;
  15160. void Info(const String&);
  15161. bool IsInstanceOf(StringHash) const;
  15162. bool IsQuiet() const;
  15163. operator Object() const;
  15164. void OnEvent(Object, StringHash, VariantMap&);
  15165. void Open(const String&);
  15166. operator RefCounted() const;
  15167. int Refs() const;
  15168. void SendEvent(StringHash);
  15169. void SendEvent(StringHash, VariantMap&);
  15170. void SetBlockEvents(bool);
  15171. void SetGlobalVar(StringHash, const Variant&);
  15172. void SetLevel(int);
  15173. void SetQuiet(bool);
  15174. void SetTimeStamp(bool);
  15175. const String& GetCategory() const;
  15176. const String& GetTypeName() const;
  15177. void Trace(const String&);
  15178. void UnsubscribeFromAllEvents();
  15179. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15180. void UnsubscribeFromEvent(Object, StringHash);
  15181. void UnsubscribeFromEvent(StringHash);
  15182. void UnsubscribeFromEvents(Object);
  15183. const Variant& GetGlobalVar(StringHash) const;
  15184. const VariantMap& GetGlobalVars() const;
  15185. void Warning(const String&);
  15186. int WeakRefs() const;
  15187. void Write(const String&, bool error = false);
  15188. operator const Object() const;
  15189. operator const RefCounted() const;
  15190. // Properties:
  15191. /* readonly */
  15192. String category;
  15193. Array<Variant> globalVar;
  15194. /* readonly */
  15195. VariantMap globalVars;
  15196. /* readonly */
  15197. String lastMessage;
  15198. int level;
  15199. bool quiet;
  15200. /* readonly */
  15201. int refs;
  15202. bool timeStamp;
  15203. /* readonly */
  15204. StringHash type;
  15205. /* readonly */
  15206. String typeName;
  15207. /* readonly */
  15208. int weakRefs;
  15209. };
  15210. class LogicComponent
  15211. {
  15212. public:
  15213. // Methods:
  15214. void AllocateNetworkState();
  15215. operator Animatable() const;
  15216. void ApplyAttributes();
  15217. void CleanupConnection(Connection);
  15218. operator Component() const;
  15219. void DrawDebugGeometry(DebugRenderer, bool);
  15220. bool GetAnimationEnabled() const;
  15221. Variant GetAttribute(const String&) const;
  15222. Variant GetAttribute(uint) const;
  15223. ValueAnimation GetAttributeAnimation(const String&) const;
  15224. float GetAttributeAnimationSpeed(const String&) const;
  15225. float GetAttributeAnimationTime(const String&) const;
  15226. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15227. Variant GetAttributeDefault(const String&) const;
  15228. Variant GetAttributeDefault(uint) const;
  15229. bool GetBlockEvents() const;
  15230. Component GetComponent(StringHash) const;
  15231. VariantMap& GetEventDataMap() const;
  15232. Object GetEventSender() const;
  15233. uint GetID() const;
  15234. bool GetInterceptNetworkUpdate(const String&) const;
  15235. Node GetNode() const;
  15236. uint GetNumAttributes() const;
  15237. uint GetNumNetworkAttributes() const;
  15238. ObjectAnimation GetObjectAnimation() const;
  15239. ResourceRef GetObjectAnimationAttr() const;
  15240. Scene GetScene() const;
  15241. Object GetSubsystem(StringHash) const;
  15242. StringHash GetType() const;
  15243. bool HasEventHandlers() const;
  15244. bool HasSubscribedToEvent(Object, StringHash) const;
  15245. bool HasSubscribedToEvent(StringHash) const;
  15246. bool IsEnabled() const;
  15247. bool IsEnabledEffective() const;
  15248. bool IsInstanceOf(StringHash) const;
  15249. bool IsReplicated() const;
  15250. bool IsTemporary() const;
  15251. bool Load(Deserializer&);
  15252. bool LoadJSON(const JSONValue&);
  15253. bool LoadXML(const XMLElement&);
  15254. void MarkNetworkUpdate();
  15255. operator Object() const;
  15256. void OnEvent(Object, StringHash, VariantMap&);
  15257. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  15258. void OnSetAttribute(const AttributeInfo&, const Variant&);
  15259. void PrepareNetworkUpdate();
  15260. operator RaycastVehicle() const;
  15261. bool ReadDeltaUpdate(Deserializer&);
  15262. bool ReadLatestDataUpdate(Deserializer&);
  15263. operator RefCounted() const;
  15264. int Refs() const;
  15265. void Remove();
  15266. void RemoveAttributeAnimation(const String&);
  15267. void RemoveInstanceDefault();
  15268. void RemoveObjectAnimation();
  15269. void ResetToDefault();
  15270. bool Save(Serializer&) const;
  15271. bool SaveDefaultAttributes() const;
  15272. bool SaveJSON(JSONValue&) const;
  15273. bool SaveXML(XMLElement&) const;
  15274. void SendEvent(StringHash);
  15275. void SendEvent(StringHash, VariantMap&);
  15276. operator Serializable() const;
  15277. void SetAnimationEnabled(bool);
  15278. void SetAnimationTime(float);
  15279. bool SetAttribute(const String&, const Variant&);
  15280. bool SetAttribute(uint, const Variant&);
  15281. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15282. void SetAttributeAnimationSpeed(const String&, float);
  15283. void SetAttributeAnimationTime(const String&, float);
  15284. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15285. void SetBlockEvents(bool);
  15286. void SetEnabled(bool);
  15287. void SetGlobalVar(StringHash, const Variant&);
  15288. void SetInstanceDefault(bool);
  15289. void SetInterceptNetworkUpdate(const String&, bool);
  15290. void SetObjectAnimation(ObjectAnimation);
  15291. void SetObjectAnimationAttr(const ResourceRef&);
  15292. void SetTemporary(bool);
  15293. const String& GetCategory() const;
  15294. const String& GetTypeName() const;
  15295. void UnsubscribeFromAllEvents();
  15296. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15297. void UnsubscribeFromEvent(Object, StringHash);
  15298. void UnsubscribeFromEvent(StringHash);
  15299. void UnsubscribeFromEvents(Object);
  15300. const Variant& GetGlobalVar(StringHash) const;
  15301. const VariantMap& GetGlobalVars() const;
  15302. int WeakRefs() const;
  15303. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  15304. void WriteInitialDeltaUpdate(Serializer&, uint8);
  15305. void WriteLatestDataUpdate(Serializer&, uint8);
  15306. operator const Animatable() const;
  15307. operator const Component() const;
  15308. operator const Object() const;
  15309. operator const RaycastVehicle() const;
  15310. operator const RefCounted() const;
  15311. operator const Serializable() const;
  15312. // Properties:
  15313. bool animationEnabled;
  15314. /* readonly */
  15315. Array<Variant> attributeDefaults;
  15316. /* readonly */
  15317. Array<AttributeInfo> attributeInfos;
  15318. Array<Variant> attributes;
  15319. /* readonly */
  15320. String category;
  15321. bool enabled;
  15322. /* readonly */
  15323. bool enabledEffective;
  15324. Array<Variant> globalVar;
  15325. /* readonly */
  15326. VariantMap globalVars;
  15327. /* readonly */
  15328. uint id;
  15329. /* readonly */
  15330. Node node;
  15331. /* readonly */
  15332. uint numAttributes;
  15333. ObjectAnimation objectAnimation;
  15334. /* readonly */
  15335. int refs;
  15336. /* readonly */
  15337. bool replicated;
  15338. bool temporary;
  15339. /* readonly */
  15340. StringHash type;
  15341. /* readonly */
  15342. String typeName;
  15343. /* readonly */
  15344. int weakRefs;
  15345. };
  15346. class ManifoldPair
  15347. {
  15348. public:
  15349. ~ManifoldPair();
  15350. ManifoldPair();
  15351. // Methods:
  15352. ManifoldPair& operator=(const ManifoldPair&);
  15353. };
  15354. class Material
  15355. {
  15356. public:
  15357. Material();
  15358. // Methods:
  15359. bool BeginLoad(Deserializer&);
  15360. const BiasParameters& GetDepthBias() const;
  15361. Material Clone(const String& = String :: EMPTY) const;
  15362. bool EndLoad();
  15363. bool GetAlphaToCoverage() const;
  15364. AsyncLoadState GetAsyncLoadState() const;
  15365. uint GetAuxViewFrameNumber() const;
  15366. bool GetBlockEvents() const;
  15367. CullMode GetCullMode() const;
  15368. VariantMap& GetEventDataMap() const;
  15369. Object GetEventSender() const;
  15370. FillMode GetFillMode() const;
  15371. bool GetLineAntiAlias() const;
  15372. uint GetMemoryUse() const;
  15373. StringHash GetNameHash() const;
  15374. uint GetNumTechniques() const;
  15375. bool GetOcclusion() const;
  15376. Pass GetPass(uint, const String&) const;
  15377. uint8 GetRenderOrder() const;
  15378. Scene GetScene() const;
  15379. ValueAnimation GetShaderParameterAnimation(const String&) const;
  15380. float GetShaderParameterAnimationSpeed(const String&) const;
  15381. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  15382. uint GetShaderParameterHash() const;
  15383. CullMode GetShadowCullMode() const;
  15384. bool GetSpecular() const;
  15385. Object GetSubsystem(StringHash) const;
  15386. Technique GetTechnique(uint) const;
  15387. Texture GetTexture(TextureUnit) const;
  15388. StringHash GetType() const;
  15389. uint GetUseTimer();
  15390. bool HasEventHandlers() const;
  15391. bool HasSubscribedToEvent(Object, StringHash) const;
  15392. bool HasSubscribedToEvent(StringHash) const;
  15393. bool IsInstanceOf(StringHash) const;
  15394. bool Load(Deserializer&);
  15395. bool Load(File);
  15396. bool Load(VectorBuffer&);
  15397. bool Load(const JSONValue&);
  15398. bool Load(const String&);
  15399. bool Load(const XMLElement&);
  15400. bool LoadFile(const String&);
  15401. void MarkForAuxView(uint);
  15402. operator Object() const;
  15403. void OnEvent(Object, StringHash, VariantMap&);
  15404. operator RefCounted() const;
  15405. int Refs() const;
  15406. void ReleaseShaders();
  15407. void RemoveShaderParameter(const String&);
  15408. void ResetUseTimer();
  15409. operator Resource() const;
  15410. bool Save(File) const;
  15411. bool Save(JSONValue&) const;
  15412. bool Save(Serializer&) const;
  15413. bool Save(VectorBuffer&) const;
  15414. bool Save(XMLElement&) const;
  15415. bool Save(const String&) const;
  15416. bool SaveFile(const String&) const;
  15417. void SendEvent(StringHash);
  15418. void SendEvent(StringHash, VariantMap&);
  15419. void SetAlphaToCoverage(bool);
  15420. void SetAsyncLoadState(AsyncLoadState);
  15421. void SetBlockEvents(bool);
  15422. void SetCullMode(CullMode);
  15423. void SetDepthBias(const BiasParameters&);
  15424. void SetFillMode(FillMode);
  15425. void SetGlobalVar(StringHash, const Variant&);
  15426. void SetLineAntiAlias(bool);
  15427. void SetMemoryUse(uint);
  15428. void SetName(const String&);
  15429. void SetNumTechniques(uint);
  15430. void SetOcclusion(bool);
  15431. void SetPixelShaderDefines(const String&);
  15432. void SetRenderOrder(uint8);
  15433. void SetScene(Scene);
  15434. void SetShaderParameter(const String&, const Variant&);
  15435. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15436. void SetShaderParameterAnimationSpeed(const String&, float);
  15437. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  15438. void SetShadowCullMode(CullMode);
  15439. void SetTechnique(uint, Technique, uint = QUALITY_LOW, float = 0.0f);
  15440. void SetTexture(TextureUnit, Texture);
  15441. void SetUVTransform(const Vector2&, float, const Vector2&);
  15442. void SetUVTransform(const Vector2&, float, float);
  15443. void SetVertexShaderDefines(const String&);
  15444. void SortTechniques();
  15445. const String& GetCategory() const;
  15446. const String& GetName() const;
  15447. const String& GetPixelShaderDefines() const;
  15448. const String& GetTypeName() const;
  15449. const String& GetVertexShaderDefines() const;
  15450. const TechniqueEntry& GetTechniqueEntry(uint) const;
  15451. void UnsubscribeFromAllEvents();
  15452. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15453. void UnsubscribeFromEvent(Object, StringHash);
  15454. void UnsubscribeFromEvent(StringHash);
  15455. void UnsubscribeFromEvents(Object);
  15456. const Variant& GetGlobalVar(StringHash) const;
  15457. const Variant& GetShaderParameter(const String&) const;
  15458. const VariantMap& GetGlobalVars() const;
  15459. int WeakRefs() const;
  15460. operator const Object() const;
  15461. operator const RefCounted() const;
  15462. operator const Resource() const;
  15463. // Properties:
  15464. bool alphaToCoverage;
  15465. /* readonly */
  15466. String category;
  15467. CullMode cullMode;
  15468. BiasParameters depthBias;
  15469. FillMode fillMode;
  15470. Array<Variant> globalVar;
  15471. /* readonly */
  15472. VariantMap globalVars;
  15473. bool lineAntiAlias;
  15474. /* readonly */
  15475. uint memoryUse;
  15476. String name;
  15477. uint numTechniques;
  15478. bool occlusion;
  15479. String pixelShaderDefines;
  15480. /* readonly */
  15481. int refs;
  15482. uint8 renderOrder;
  15483. Scene scene;
  15484. /* readonly */
  15485. Array<String> shaderParameterNames;
  15486. Array<Variant> shaderParameters;
  15487. CullMode shadowCullMode;
  15488. /* readonly */
  15489. Array<TechniqueEntry> techniqueEntries;
  15490. /* readonly */
  15491. Array<Technique> techniques;
  15492. Array<Texture> textures;
  15493. /* readonly */
  15494. StringHash type;
  15495. /* readonly */
  15496. String typeName;
  15497. /* readonly */
  15498. uint useTimer;
  15499. String vertexShaderDefines;
  15500. /* readonly */
  15501. int weakRefs;
  15502. };
  15503. class MaterialShaderParameter
  15504. {
  15505. public:
  15506. ~MaterialShaderParameter();
  15507. MaterialShaderParameter();
  15508. // Methods:
  15509. MaterialShaderParameter& operator=(const MaterialShaderParameter&);
  15510. // Properties:
  15511. String name;
  15512. Variant value;
  15513. };
  15514. class Matrix2
  15515. {
  15516. public:
  15517. Matrix2();
  15518. Matrix2(const Matrix2&in);
  15519. Matrix2(float, float, float, float);
  15520. // Methods:
  15521. Matrix2 operator+(const Matrix2&) const;
  15522. Matrix2& operator=(const Matrix2&);
  15523. bool operator==(const Matrix2&) const;
  15524. bool Equals(const Matrix2&) const;
  15525. Matrix2 Inverse() const;
  15526. bool IsInf() const;
  15527. bool IsNaN() const;
  15528. Vector2 Scale() const;
  15529. Matrix2 Scaled(const Vector2&) const;
  15530. void SetScale(const Vector2&);
  15531. void SetScale(float);
  15532. String ToString() const;
  15533. Matrix2 Transpose() const;
  15534. // Properties:
  15535. float m00;
  15536. float m01;
  15537. float m10;
  15538. float m11;
  15539. // Constants:
  15540. static const Matrix2 IDENTITY;
  15541. static const Matrix2 ZERO;
  15542. };
  15543. class Matrix3
  15544. {
  15545. public:
  15546. Matrix3();
  15547. Matrix3(const Matrix3&in);
  15548. Matrix3(float, float, float, float, float, float, float, float, float);
  15549. // Methods:
  15550. Matrix3 operator+(const Matrix3&) const;
  15551. Matrix3& operator=(const Matrix3&);
  15552. bool operator==(const Matrix3&) const;
  15553. Vector3 Column(uint) const;
  15554. float Element(uint, uint) const;
  15555. bool Equals(const Matrix3&) const;
  15556. Matrix3 Inverse() const;
  15557. bool IsInf() const;
  15558. bool IsNaN() const;
  15559. Vector3 Row(uint) const;
  15560. Vector3 Scale() const;
  15561. Matrix3 Scaled(const Vector3&) const;
  15562. void SetScale(const Vector3&);
  15563. void SetScale(float);
  15564. Vector3 SignedScale(const Matrix3&) const;
  15565. String ToString() const;
  15566. Matrix3 Transpose() const;
  15567. // Properties:
  15568. float m00;
  15569. float m01;
  15570. float m02;
  15571. float m10;
  15572. float m11;
  15573. float m12;
  15574. float m20;
  15575. float m21;
  15576. float m22;
  15577. // Constants:
  15578. static const Matrix3 IDENTITY;
  15579. static const Matrix3 ZERO;
  15580. };
  15581. class Matrix3x4
  15582. {
  15583. public:
  15584. Matrix3x4();
  15585. Matrix3x4(const Matrix3x4&in);
  15586. Matrix3x4(const Matrix3&in);
  15587. Matrix3x4(const Matrix4&in);
  15588. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  15589. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  15590. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  15591. // Methods:
  15592. Matrix3x4 operator+(const Matrix3x4&) const;
  15593. Matrix3x4& operator=(const Matrix3&);
  15594. Matrix3x4& operator=(const Matrix3x4&);
  15595. Matrix3x4& operator=(const Matrix4&);
  15596. bool operator==(const Matrix3x4&) const;
  15597. Vector3 Column(uint) const;
  15598. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  15599. float Element(uint, uint) const;
  15600. bool Equals(const Matrix3x4&) const;
  15601. Matrix3x4 Inverse() const;
  15602. bool IsInf() const;
  15603. bool IsNaN() const;
  15604. Quaternion Rotation() const;
  15605. Matrix3 RotationMatrix() const;
  15606. Vector4 Row(uint) const;
  15607. Vector3 Scale() const;
  15608. void SetRotation(const Matrix3&);
  15609. void SetScale(const Vector3&);
  15610. void SetScale(float);
  15611. void SetTranslation(const Vector3&);
  15612. Vector3 SignedScale(const Matrix3&) const;
  15613. Matrix3 ToMatrix3() const;
  15614. Matrix4 ToMatrix4() const;
  15615. String ToString() const;
  15616. Vector3 Translation() const;
  15617. // Properties:
  15618. float m00;
  15619. float m01;
  15620. float m02;
  15621. float m03;
  15622. float m10;
  15623. float m11;
  15624. float m12;
  15625. float m13;
  15626. float m20;
  15627. float m21;
  15628. float m22;
  15629. float m23;
  15630. // Constants:
  15631. static const Matrix3x4 IDENTITY;
  15632. static const Matrix3x4 ZERO;
  15633. };
  15634. class Matrix4
  15635. {
  15636. public:
  15637. Matrix4();
  15638. Matrix4(const Matrix4&in);
  15639. Matrix4(const Matrix3&in);
  15640. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  15641. // Methods:
  15642. Matrix4 operator+(const Matrix4&) const;
  15643. Matrix4& operator=(const Matrix3&);
  15644. Matrix4& operator=(const Matrix4&);
  15645. bool operator==(const Matrix4&) const;
  15646. Vector4 Column(uint) const;
  15647. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  15648. float Element(uint, uint) const;
  15649. bool Equals(const Matrix4&) const;
  15650. Matrix4 Inverse() const;
  15651. bool IsInf() const;
  15652. bool IsNaN() const;
  15653. Quaternion Rotation() const;
  15654. Matrix3 RotationMatrix() const;
  15655. Vector4 Row(uint) const;
  15656. Vector3 Scale() const;
  15657. void SetRotation(const Matrix3&);
  15658. void SetScale(const Vector3&);
  15659. void SetScale(float);
  15660. void SetTranslation(const Vector3&);
  15661. Vector3 SignedScale(const Matrix3&) const;
  15662. Matrix3 ToMatrix3() const;
  15663. String ToString() const;
  15664. Vector3 Translation() const;
  15665. Matrix4 Transpose() const;
  15666. // Properties:
  15667. float m00;
  15668. float m01;
  15669. float m02;
  15670. float m03;
  15671. float m10;
  15672. float m11;
  15673. float m12;
  15674. float m13;
  15675. float m20;
  15676. float m21;
  15677. float m22;
  15678. float m23;
  15679. float m30;
  15680. float m31;
  15681. float m32;
  15682. float m33;
  15683. // Constants:
  15684. static const Matrix4 IDENTITY;
  15685. static const Matrix4 ZERO;
  15686. };
  15687. class Menu
  15688. {
  15689. public:
  15690. Menu();
  15691. Menu(const String&in);
  15692. // Methods:
  15693. void AddChild(UIElement);
  15694. void AddTag(const String&);
  15695. void AddTags(Array<String>);
  15696. void AddTags(const String&, int8 = ';');
  15697. void AdjustScissor(IntRect&);
  15698. void AllocateNetworkState();
  15699. operator Animatable() const;
  15700. void ApplyAttributes();
  15701. operator BorderImage() const;
  15702. void BringToFront();
  15703. operator Button() const;
  15704. const Color& GetColor(Corner) const;
  15705. const Color& GetColorAttr() const;
  15706. const Color& GetDerivedColor() const;
  15707. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  15708. void DisableLayoutUpdate();
  15709. operator DropDownList() const;
  15710. IntVector2 ElementToScreen(const IntVector2&);
  15711. void EnableLayoutUpdate();
  15712. bool FilterAttributes(XMLElement&) const;
  15713. uint FindChild(UIElement) const;
  15714. int GetAcceleratorKey() const;
  15715. int GetAcceleratorQualifiers() const;
  15716. bool GetAnimationEnabled() const;
  15717. Variant GetAttribute(const String&) const;
  15718. Variant GetAttribute(uint) const;
  15719. ValueAnimation GetAttributeAnimation(const String&) const;
  15720. float GetAttributeAnimationSpeed(const String&) const;
  15721. float GetAttributeAnimationTime(const String&) const;
  15722. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15723. Variant GetAttributeDefault(const String&) const;
  15724. Variant GetAttributeDefault(uint) const;
  15725. BlendMode GetBlendMode() const;
  15726. bool GetBlockEvents() const;
  15727. bool GetBringToBack() const;
  15728. bool GetBringToFront() const;
  15729. UIElement GetChild(const String&, bool = false) const;
  15730. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  15731. UIElement GetChild(uint) const;
  15732. Array<UIElement> GetChildren() const;
  15733. Array<UIElement> GetChildren(bool) const;
  15734. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  15735. bool GetClipChildren() const;
  15736. IntRect GetCombinedScreenRect();
  15737. XMLFile GetDefaultStyle(bool = true) const;
  15738. float GetDerivedOpacity() const;
  15739. uint GetDragButtonCombo() const;
  15740. uint GetDragButtonCount() const;
  15741. uint GetDragDropMode() const;
  15742. IntVector2 GetEffectiveMinSize() const;
  15743. UIElement GetElementEventSender() const;
  15744. bool GetEnableAnchor() const;
  15745. VariantMap& GetEventDataMap() const;
  15746. Object GetEventSender() const;
  15747. FocusMode GetFocusMode() const;
  15748. int GetHeight() const;
  15749. HorizontalAlignment GetHorizontalAlignment() const;
  15750. int GetIndent() const;
  15751. int GetIndentSpacing() const;
  15752. int GetIndentWidth() const;
  15753. bool GetInterceptNetworkUpdate(const String&) const;
  15754. int GetLayoutElementMaxSize() const;
  15755. LayoutMode GetLayoutMode() const;
  15756. int GetLayoutSpacing() const;
  15757. Material GetMaterial() const;
  15758. ResourceRef GetMaterialAttr() const;
  15759. int GetMaxHeight() const;
  15760. int GetMaxWidth() const;
  15761. int GetMinHeight() const;
  15762. int GetMinWidth() const;
  15763. uint GetNumAttributes() const;
  15764. uint GetNumChildren(bool = false) const;
  15765. uint GetNumNetworkAttributes() const;
  15766. ObjectAnimation GetObjectAnimation() const;
  15767. ResourceRef GetObjectAnimationAttr() const;
  15768. float GetOpacity() const;
  15769. UIElement GetParent() const;
  15770. UIElement GetPopup() const;
  15771. int GetPriority() const;
  15772. float GetRepeatDelay() const;
  15773. float GetRepeatRate() const;
  15774. UIElement GetRoot() const;
  15775. bool GetShowPopup() const;
  15776. bool GetSortChildren() const;
  15777. Object GetSubsystem(StringHash) const;
  15778. Array<String> GetTags() const;
  15779. Texture GetTexture() const;
  15780. ResourceRef GetTextureAttr() const;
  15781. TraversalMode GetTraversalMode() const;
  15782. StringHash GetType() const;
  15783. bool GetUseDerivedOpacity() const;
  15784. VerticalAlignment GetVerticalAlignment() const;
  15785. int GetWidth() const;
  15786. bool HasColorGradient() const;
  15787. bool HasEventHandlers() const;
  15788. bool HasFocus() const;
  15789. bool HasSubscribedToEvent(Object, StringHash) const;
  15790. bool HasSubscribedToEvent(StringHash) const;
  15791. bool HasTag(const String&) const;
  15792. void InsertChild(uint, UIElement);
  15793. const IntRect& GetBorder() const;
  15794. const IntRect& GetClipBorder() const;
  15795. const IntRect& GetImageBorder() const;
  15796. const IntRect& GetImageRect() const;
  15797. const IntRect& GetLayoutBorder() const;
  15798. const IntVector2& GetChildOffset() const;
  15799. const IntVector2& GetDisabledOffset() const;
  15800. const IntVector2& GetHoverOffset() const;
  15801. const IntVector2& GetMaxOffset() const;
  15802. const IntVector2& GetMaxSize() const;
  15803. const IntVector2& GetMinOffset() const;
  15804. const IntVector2& GetMinSize() const;
  15805. const IntVector2& GetPopupOffset() const;
  15806. const IntVector2& GetPosition() const;
  15807. const IntVector2& GetPressedChildOffset() const;
  15808. const IntVector2& GetPressedOffset() const;
  15809. const IntVector2& GetScreenPosition() const;
  15810. const IntVector2& GetSize() const;
  15811. bool IsChildOf(UIElement) const;
  15812. bool IsEditable() const;
  15813. bool IsElementEventSender() const;
  15814. bool IsEnabled() const;
  15815. bool IsEnabledSelf() const;
  15816. bool IsFixedHeight() const;
  15817. bool IsFixedSize() const;
  15818. bool IsFixedWidth() const;
  15819. bool IsHovering() const;
  15820. bool IsInside(IntVector2, bool);
  15821. bool IsInsideCombined(IntVector2, bool);
  15822. bool IsInstanceOf(StringHash) const;
  15823. bool IsInternal() const;
  15824. bool IsPressed() const;
  15825. bool IsSelected() const;
  15826. bool IsTemporary() const;
  15827. bool IsTiled() const;
  15828. bool IsVisible() const;
  15829. bool IsVisibleEffective() const;
  15830. bool IsWheelHandler() const;
  15831. bool IsWithinScissor(const IntRect&);
  15832. bool Load(Deserializer&);
  15833. UIElement LoadChildXML(XMLFile, XMLFile);
  15834. UIElement LoadChildXML(const XMLElement&, XMLFile);
  15835. bool LoadJSON(const JSONValue&);
  15836. bool LoadXML(Deserializer&);
  15837. bool LoadXML(File);
  15838. bool LoadXML(VectorBuffer&);
  15839. bool LoadXML(XMLFile, XMLFile);
  15840. bool LoadXML(const XMLElement&);
  15841. bool LoadXML(const XMLElement&, XMLFile);
  15842. void MarkNetworkUpdate();
  15843. operator Object() const;
  15844. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  15845. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  15846. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  15847. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15848. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15849. bool OnDragDropFinish(UIElement);
  15850. bool OnDragDropTest(UIElement);
  15851. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15852. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15853. void OnEvent(Object, StringHash, VariantMap&);
  15854. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  15855. void OnHidePopup();
  15856. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15857. void OnIndentSet();
  15858. void OnKey(uint, uint, uint);
  15859. void OnPositionSet(const IntVector2&);
  15860. void OnResize(const IntVector2&, const IntVector2&);
  15861. void OnSetAttribute(const AttributeInfo&, const Variant&);
  15862. void OnSetEditable();
  15863. void OnShowPopup();
  15864. void OnTextInput(const String&);
  15865. void OnWheel(int, uint, uint);
  15866. bool ReadDeltaUpdate(Deserializer&);
  15867. bool ReadLatestDataUpdate(Deserializer&);
  15868. operator RefCounted() const;
  15869. int Refs() const;
  15870. void Remove();
  15871. void RemoveAllChildren();
  15872. void RemoveAllTags();
  15873. void RemoveAttributeAnimation(const String&);
  15874. void RemoveChild(UIElement, uint = 0);
  15875. void RemoveChild(uint);
  15876. void RemoveChildAtIndex(uint);
  15877. void RemoveInstanceDefault();
  15878. void RemoveObjectAnimation();
  15879. bool RemoveTag(const String&);
  15880. void ResetDeepEnabled();
  15881. void ResetToDefault();
  15882. bool Save(Serializer&) const;
  15883. bool SaveDefaultAttributes() const;
  15884. bool SaveJSON(JSONValue&) const;
  15885. bool SaveXML(File, const String& indentation = "\t");
  15886. bool SaveXML(Serializer&, const String& = "\t") const;
  15887. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  15888. bool SaveXML(XMLElement&) const;
  15889. IntVector2 ScreenToElement(const IntVector2&);
  15890. void SendEvent(StringHash);
  15891. void SendEvent(StringHash, VariantMap&);
  15892. operator Serializable() const;
  15893. void SetAccelerator(int, int);
  15894. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  15895. void SetAnimationEnabled(bool);
  15896. void SetAnimationTime(float);
  15897. bool SetAttribute(const String&, const Variant&);
  15898. bool SetAttribute(uint, const Variant&);
  15899. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15900. void SetAttributeAnimationSpeed(const String&, float);
  15901. void SetAttributeAnimationTime(const String&, float);
  15902. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15903. void SetBlendMode(BlendMode);
  15904. void SetBlockEvents(bool);
  15905. void SetBorder(const IntRect&);
  15906. void SetBringToBack(bool);
  15907. void SetBringToFront(bool);
  15908. void SetChildOffset(const IntVector2&);
  15909. void SetClipBorder(const IntRect&);
  15910. void SetClipChildren(bool);
  15911. void SetColor(Corner, const Color&);
  15912. void SetColor(const Color&);
  15913. void SetDeepEnabled(bool);
  15914. void SetDefaultStyle(XMLFile);
  15915. void SetDisabledOffset(const IntVector2&);
  15916. void SetDisabledOffset(int, int);
  15917. void SetDragDropMode(uint);
  15918. void SetEditable(bool);
  15919. void SetElementEventSender(bool);
  15920. void SetEnableAnchor(bool);
  15921. void SetEnabled(bool);
  15922. void SetEnabledRecursive(bool);
  15923. void SetFixedHeight(int);
  15924. void SetFixedSize(const IntVector2&);
  15925. void SetFixedSize(int, int);
  15926. void SetFixedWidth(int);
  15927. void SetFocus(bool);
  15928. void SetFocusMode(FocusMode);
  15929. void SetFullImageRect();
  15930. void SetGlobalVar(StringHash, const Variant&);
  15931. void SetHeight(int);
  15932. void SetHorizontalAlignment(HorizontalAlignment);
  15933. void SetHoverOffset(const IntVector2&);
  15934. void SetHoverOffset(int, int);
  15935. void SetHovering(bool);
  15936. void SetImageBorder(const IntRect&);
  15937. void SetImageRect(const IntRect&);
  15938. void SetIndent(int);
  15939. void SetIndentSpacing(int);
  15940. void SetInstanceDefault(bool);
  15941. void SetInterceptNetworkUpdate(const String&, bool);
  15942. void SetInternal(bool);
  15943. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  15944. void SetLayoutBorder(const IntRect&);
  15945. void SetLayoutFlexScale(const Vector2&);
  15946. void SetLayoutMode(LayoutMode);
  15947. void SetLayoutSpacing(int);
  15948. void SetMaterial(Material);
  15949. void SetMaterialAttr(const ResourceRef&);
  15950. void SetMaxAnchor(const Vector2&);
  15951. void SetMaxAnchor(float, float);
  15952. void SetMaxHeight(int);
  15953. void SetMaxOffset(const IntVector2&);
  15954. void SetMaxSize(const IntVector2&);
  15955. void SetMaxSize(int, int);
  15956. void SetMaxWidth(int);
  15957. void SetMinAnchor(const Vector2&);
  15958. void SetMinAnchor(float, float);
  15959. void SetMinHeight(int);
  15960. void SetMinOffset(const IntVector2&);
  15961. void SetMinSize(const IntVector2&);
  15962. void SetMinSize(int, int);
  15963. void SetMinWidth(int);
  15964. void SetName(const String&);
  15965. void SetObjectAnimation(ObjectAnimation);
  15966. void SetObjectAnimationAttr(const ResourceRef&);
  15967. void SetOpacity(float);
  15968. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  15969. void SetPivot(const Vector2&);
  15970. void SetPivot(float, float);
  15971. void SetPopup(UIElement);
  15972. void SetPopupOffset(const IntVector2&);
  15973. void SetPopupOffset(int, int);
  15974. void SetPosition(const IntVector2&);
  15975. void SetPosition(int, int);
  15976. void SetPressedChildOffset(const IntVector2&);
  15977. void SetPressedChildOffset(int, int);
  15978. void SetPressedOffset(const IntVector2&);
  15979. void SetPressedOffset(int, int);
  15980. void SetPriority(int);
  15981. void SetRenderTexture(Texture2D);
  15982. void SetRepeat(float, float);
  15983. void SetRepeatDelay(float);
  15984. void SetRepeatRate(float);
  15985. void SetSelected(bool);
  15986. void SetSize(const IntVector2&);
  15987. void SetSize(int, int);
  15988. void SetSortChildren(bool);
  15989. bool SetStyle(const String&, XMLFile = null);
  15990. bool SetStyle(const XMLElement&);
  15991. bool SetStyleAuto(XMLFile = null);
  15992. void SetTags(Array<String>);
  15993. void SetTemporary(bool);
  15994. void SetTexture(Texture);
  15995. void SetTextureAttr(const ResourceRef&);
  15996. void SetTiled(bool);
  15997. void SetTraversalMode(TraversalMode);
  15998. void SetUseDerivedOpacity(bool);
  15999. void SetVar(StringHash, const Variant&);
  16000. void SetVerticalAlignment(VerticalAlignment);
  16001. void SetVisible(bool);
  16002. void SetWidth(int);
  16003. void ShowPopup(bool);
  16004. void SortChildren();
  16005. const String& GetAppliedStyle() const;
  16006. const String& GetCategory() const;
  16007. const String& GetName() const;
  16008. const String& GetTypeName() const;
  16009. operator UIElement() const;
  16010. void UnsubscribeFromAllEvents();
  16011. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16012. void UnsubscribeFromEvent(Object, StringHash);
  16013. void UnsubscribeFromEvent(StringHash);
  16014. void UnsubscribeFromEvents(Object);
  16015. void Update(float);
  16016. void UpdateLayout();
  16017. const Variant& GetGlobalVar(StringHash) const;
  16018. const Variant& GetVar(const StringHash&) const;
  16019. const VariantMap& GetGlobalVars() const;
  16020. const VariantMap& GetVars() const;
  16021. const Vector2& GetLayoutFlexScale() const;
  16022. const Vector2& GetMaxAnchor() const;
  16023. const Vector2& GetMinAnchor() const;
  16024. const Vector2& GetPivot() const;
  16025. int WeakRefs() const;
  16026. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16027. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16028. void WriteLatestDataUpdate(Serializer&, uint8);
  16029. operator const Animatable() const;
  16030. operator const BorderImage() const;
  16031. operator const Button() const;
  16032. operator const DropDownList() const;
  16033. operator const Object() const;
  16034. operator const RefCounted() const;
  16035. operator const Serializable() const;
  16036. operator const UIElement() const;
  16037. // Properties:
  16038. /* readonly */
  16039. int acceleratorKey;
  16040. /* readonly */
  16041. int acceleratorQualifiers;
  16042. bool animationEnabled;
  16043. /* readonly */
  16044. Array<Variant> attributeDefaults;
  16045. /* readonly */
  16046. Array<AttributeInfo> attributeInfos;
  16047. Array<Variant> attributes;
  16048. BlendMode blendMode;
  16049. IntRect border;
  16050. bool bringToBack;
  16051. bool bringToFront;
  16052. /* readonly */
  16053. String category;
  16054. /* readonly */
  16055. IntVector2 childOffset;
  16056. /* readonly */
  16057. Array<UIElement> children;
  16058. IntRect clipBorder;
  16059. bool clipChildren;
  16060. /* writeonly */
  16061. Color color;
  16062. /* readonly */
  16063. bool colorGradient;
  16064. Array<Color> colors;
  16065. /* readonly */
  16066. IntRect combinedScreenRect;
  16067. XMLFile defaultStyle;
  16068. /* readonly */
  16069. float derivedOpacity;
  16070. IntVector2 disabledOffset;
  16071. /* readonly */
  16072. uint dragButtonCombo;
  16073. /* readonly */
  16074. uint dragButtonCount;
  16075. uint dragDropMode;
  16076. bool editable;
  16077. bool elementEventSender;
  16078. bool enableAnchor;
  16079. bool enabled;
  16080. /* readonly */
  16081. bool enabledSelf;
  16082. /* readonly */
  16083. bool fixedHeight;
  16084. /* readonly */
  16085. bool fixedSize;
  16086. /* readonly */
  16087. bool fixedWidth;
  16088. bool focus;
  16089. FocusMode focusMode;
  16090. Array<Variant> globalVar;
  16091. /* readonly */
  16092. VariantMap globalVars;
  16093. int height;
  16094. HorizontalAlignment horizontalAlignment;
  16095. IntVector2 hoverOffset;
  16096. /* readonly */
  16097. bool hovering;
  16098. IntRect imageBorder;
  16099. IntRect imageRect;
  16100. int indent;
  16101. int indentSpacing;
  16102. /* readonly */
  16103. int indentWidth;
  16104. bool internal;
  16105. IntRect layoutBorder;
  16106. Vector2 layoutFlexScale;
  16107. LayoutMode layoutMode;
  16108. int layoutSpacing;
  16109. Material material;
  16110. Vector2 maxAnchor;
  16111. int maxHeight;
  16112. IntVector2 maxOffset;
  16113. IntVector2 maxSize;
  16114. int maxWidth;
  16115. Vector2 minAnchor;
  16116. int minHeight;
  16117. IntVector2 minOffset;
  16118. IntVector2 minSize;
  16119. int minWidth;
  16120. String name;
  16121. /* readonly */
  16122. uint numAllChildren;
  16123. /* readonly */
  16124. uint numAttributes;
  16125. /* readonly */
  16126. uint numChildren;
  16127. ObjectAnimation objectAnimation;
  16128. float opacity;
  16129. UIElement parent;
  16130. Vector2 pivot;
  16131. UIElement popup;
  16132. IntVector2 popupOffset;
  16133. IntVector2 position;
  16134. /* readonly */
  16135. bool pressed;
  16136. IntVector2 pressedChildOffset;
  16137. IntVector2 pressedOffset;
  16138. int priority;
  16139. /* readonly */
  16140. int refs;
  16141. float repeatDelay;
  16142. float repeatRate;
  16143. /* readonly */
  16144. UIElement root;
  16145. /* readonly */
  16146. IntVector2 screenPosition;
  16147. bool selected;
  16148. bool showPopup;
  16149. IntVector2 size;
  16150. bool sortChildren;
  16151. String style;
  16152. /* readonly */
  16153. Array<String> tags;
  16154. bool temporary;
  16155. Texture texture;
  16156. bool tiled;
  16157. TraversalMode traversalMode;
  16158. /* readonly */
  16159. StringHash type;
  16160. /* readonly */
  16161. String typeName;
  16162. bool useDerivedOpacity;
  16163. /* readonly */
  16164. VariantMap vars;
  16165. VerticalAlignment verticalAlignment;
  16166. bool visible;
  16167. /* readonly */
  16168. bool visibleEffective;
  16169. /* readonly */
  16170. int weakRefs;
  16171. int width;
  16172. };
  16173. class MessageBox
  16174. {
  16175. public:
  16176. MessageBox(const String&in = String :: EMPTY, const String&in = String :: EMPTY, XMLFile& = null, XMLFile& = null);
  16177. // Methods:
  16178. bool GetBlockEvents() const;
  16179. VariantMap& GetEventDataMap() const;
  16180. Object GetEventSender() const;
  16181. Object GetSubsystem(StringHash) const;
  16182. StringHash GetType() const;
  16183. UIElement GetWindow() const;
  16184. bool HasEventHandlers() const;
  16185. bool HasSubscribedToEvent(Object, StringHash) const;
  16186. bool HasSubscribedToEvent(StringHash) const;
  16187. bool IsInstanceOf(StringHash) const;
  16188. operator Object() const;
  16189. void OnEvent(Object, StringHash, VariantMap&);
  16190. operator RefCounted() const;
  16191. int Refs() const;
  16192. void SendEvent(StringHash);
  16193. void SendEvent(StringHash, VariantMap&);
  16194. void SetBlockEvents(bool);
  16195. void SetGlobalVar(StringHash, const Variant&);
  16196. void SetMessage(const String&);
  16197. void SetTitle(const String&);
  16198. const String& GetCategory() const;
  16199. const String& GetMessage() const;
  16200. const String& GetTitle() const;
  16201. const String& GetTypeName() const;
  16202. void UnsubscribeFromAllEvents();
  16203. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16204. void UnsubscribeFromEvent(Object, StringHash);
  16205. void UnsubscribeFromEvent(StringHash);
  16206. void UnsubscribeFromEvents(Object);
  16207. const Variant& GetGlobalVar(StringHash) const;
  16208. const VariantMap& GetGlobalVars() const;
  16209. int WeakRefs() const;
  16210. operator const Object() const;
  16211. operator const RefCounted() const;
  16212. // Properties:
  16213. /* readonly */
  16214. String category;
  16215. Array<Variant> globalVar;
  16216. /* readonly */
  16217. VariantMap globalVars;
  16218. String message;
  16219. /* readonly */
  16220. int refs;
  16221. String title;
  16222. /* readonly */
  16223. StringHash type;
  16224. /* readonly */
  16225. String typeName;
  16226. /* readonly */
  16227. int weakRefs;
  16228. /* readonly */
  16229. UIElement window;
  16230. };
  16231. class Model
  16232. {
  16233. public:
  16234. Model();
  16235. // Methods:
  16236. void AddMetadata(const String&, const Variant&);
  16237. bool BeginLoad(Deserializer&);
  16238. const BoundingBox& GetBoundingBox() const;
  16239. Model Clone(const String& = String :: EMPTY) const;
  16240. bool EndLoad();
  16241. AsyncLoadState GetAsyncLoadState() const;
  16242. bool GetBlockEvents() const;
  16243. VariantMap& GetEventDataMap() const;
  16244. Object GetEventSender() const;
  16245. Geometry GetGeometry(uint, uint) const;
  16246. Array<Vector3> GetGeometryCenters() const;
  16247. Array<IndexBuffer> GetIndexBuffers() const;
  16248. uint GetMemoryUse() const;
  16249. uint GetMorphRangeCount(uint) const;
  16250. uint GetMorphRangeStart(uint) const;
  16251. StringHash GetNameHash() const;
  16252. uint GetNumGeometries() const;
  16253. uint GetNumGeometryLodLevels(uint) const;
  16254. uint GetNumMorphs() const;
  16255. Skeleton& GetSkeleton();
  16256. Object GetSubsystem(StringHash) const;
  16257. StringHash GetType() const;
  16258. uint GetUseTimer();
  16259. Array<VertexBuffer> GetVertexBuffers() const;
  16260. bool HasEventHandlers() const;
  16261. bool HasMetadata() const;
  16262. bool HasSubscribedToEvent(Object, StringHash) const;
  16263. bool HasSubscribedToEvent(StringHash) const;
  16264. bool IsInstanceOf(StringHash) const;
  16265. bool Load(Deserializer&);
  16266. bool Load(File);
  16267. bool Load(VectorBuffer&);
  16268. bool Load(const String&);
  16269. bool LoadFile(const String&);
  16270. operator Object() const;
  16271. void OnEvent(Object, StringHash, VariantMap&);
  16272. operator RefCounted() const;
  16273. int Refs() const;
  16274. void RemoveAllMetadata();
  16275. void RemoveMetadata(const String&);
  16276. void ResetUseTimer();
  16277. operator Resource() const;
  16278. operator ResourceWithMetadata() const;
  16279. bool Save(File) const;
  16280. bool Save(Serializer&) const;
  16281. bool Save(VectorBuffer&) const;
  16282. bool Save(const String&) const;
  16283. bool SaveFile(const String&) const;
  16284. void SendEvent(StringHash);
  16285. void SendEvent(StringHash, VariantMap&);
  16286. void SetAsyncLoadState(AsyncLoadState);
  16287. void SetBlockEvents(bool);
  16288. void SetBoundingBox(const BoundingBox&);
  16289. bool SetGeometry(uint, uint, Geometry);
  16290. bool SetGeometryCenter(uint, const Vector3&);
  16291. void SetGlobalVar(StringHash, const Variant&);
  16292. bool SetIndexBuffers(Array<IndexBuffer>);
  16293. void SetMemoryUse(uint);
  16294. void SetName(const String&);
  16295. void SetNumGeometries(uint);
  16296. bool SetNumGeometryLodLevels(uint, uint);
  16297. void SetSkeleton(const Skeleton&);
  16298. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  16299. const String& GetCategory() const;
  16300. const String& GetName() const;
  16301. const String& GetTypeName() const;
  16302. void UnsubscribeFromAllEvents();
  16303. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16304. void UnsubscribeFromEvent(Object, StringHash);
  16305. void UnsubscribeFromEvent(StringHash);
  16306. void UnsubscribeFromEvents(Object);
  16307. const Variant& GetGlobalVar(StringHash) const;
  16308. const Variant& GetMetadata(const String&) const;
  16309. const VariantMap& GetGlobalVars() const;
  16310. const Vector3& GetGeometryCenter(uint) const;
  16311. int WeakRefs() const;
  16312. operator const Object() const;
  16313. operator const RefCounted() const;
  16314. operator const Resource() const;
  16315. operator const ResourceWithMetadata() const;
  16316. // Properties:
  16317. BoundingBox boundingBox;
  16318. /* readonly */
  16319. String category;
  16320. Array<Vector3> geometryCenters;
  16321. Array<Variant> globalVar;
  16322. /* readonly */
  16323. VariantMap globalVars;
  16324. /* readonly */
  16325. bool hasMetadata;
  16326. /* readonly */
  16327. uint memoryUse;
  16328. Array<Variant> metadata;
  16329. String name;
  16330. uint numGeometries;
  16331. Array<uint> numGeometryLodLevels;
  16332. /* readonly */
  16333. uint numMorphs;
  16334. /* readonly */
  16335. int refs;
  16336. /* readonly */
  16337. Skeleton skeleton;
  16338. /* readonly */
  16339. StringHash type;
  16340. /* readonly */
  16341. String typeName;
  16342. /* readonly */
  16343. uint useTimer;
  16344. /* readonly */
  16345. int weakRefs;
  16346. };
  16347. class ModelMorph
  16348. {
  16349. public:
  16350. ~ModelMorph();
  16351. ModelMorph();
  16352. // Methods:
  16353. ModelMorph& operator=(const ModelMorph&);
  16354. // Properties:
  16355. String name;
  16356. StringHash nameHash;
  16357. float weight;
  16358. };
  16359. class Mutex
  16360. {
  16361. public:
  16362. ~Mutex();
  16363. Mutex();
  16364. // Methods:
  16365. Mutex& operator=(const Mutex&);
  16366. void Acquire();
  16367. void Release();
  16368. bool TryAcquire();
  16369. };
  16370. class MutexLock
  16371. {
  16372. public:
  16373. ~MutexLock();
  16374. MutexLock(Mutex&inout);
  16375. };
  16376. class NamedPipe
  16377. {
  16378. public:
  16379. NamedPipe();
  16380. NamedPipe(const String&in, bool);
  16381. // Methods:
  16382. void Close();
  16383. operator Deserializer() const;
  16384. bool GetBlockEvents() const;
  16385. uint GetChecksum();
  16386. VariantMap& GetEventDataMap() const;
  16387. Object GetEventSender() const;
  16388. uint GetPosition() const;
  16389. uint GetSize() const;
  16390. Object GetSubsystem(StringHash) const;
  16391. StringHash GetType() const;
  16392. bool HasEventHandlers() const;
  16393. bool HasSubscribedToEvent(Object, StringHash) const;
  16394. bool HasSubscribedToEvent(StringHash) const;
  16395. bool IsEof() const;
  16396. bool IsInstanceOf(StringHash) const;
  16397. bool IsOpen() const;
  16398. bool IsServer() const;
  16399. operator Object() const;
  16400. void OnEvent(Object, StringHash, VariantMap&);
  16401. bool Open(const String&, bool);
  16402. Array<uint8> Read(uint);
  16403. bool ReadBool();
  16404. BoundingBox ReadBoundingBox();
  16405. int8 ReadByte();
  16406. Color ReadColor();
  16407. double ReadDouble();
  16408. String ReadFileID();
  16409. float ReadFloat();
  16410. int ReadInt();
  16411. int64 ReadInt64();
  16412. IntRect ReadIntRect();
  16413. IntVector2 ReadIntVector2();
  16414. IntVector3 ReadIntVector3();
  16415. String ReadLine();
  16416. Matrix3 ReadMatrix3();
  16417. Matrix3x4 ReadMatrix3x4();
  16418. Matrix4 ReadMatrix4();
  16419. uint ReadNetID();
  16420. Quaternion ReadPackedQuaternion();
  16421. Vector3 ReadPackedVector3(float);
  16422. Quaternion ReadQuaternion();
  16423. Rect ReadRect();
  16424. ResourceRef ReadResourceRef();
  16425. ResourceRefList ReadResourceRefList();
  16426. int16 ReadShort();
  16427. String ReadString();
  16428. StringHash ReadStringHash();
  16429. Array<String> ReadStringVector();
  16430. uint8 ReadUByte();
  16431. uint ReadUInt();
  16432. uint64 ReadUInt64();
  16433. uint16 ReadUShort();
  16434. uint ReadVLE();
  16435. Variant ReadVariant();
  16436. Variant ReadVariant(VariantType);
  16437. VariantMap ReadVariantMap();
  16438. Vector2 ReadVector2();
  16439. Vector3 ReadVector3();
  16440. Vector4 ReadVector4();
  16441. VectorBuffer ReadVectorBuffer(uint);
  16442. operator RefCounted() const;
  16443. int Refs() const;
  16444. uint Seek(uint);
  16445. uint SeekRelative(int);
  16446. void SendEvent(StringHash);
  16447. void SendEvent(StringHash, VariantMap&);
  16448. operator Serializer() const;
  16449. void SetBlockEvents(bool);
  16450. void SetGlobalVar(StringHash, const Variant&);
  16451. void SetName(const String&);
  16452. const String& GetCategory() const;
  16453. const String& GetName() const;
  16454. const String& GetTypeName() const;
  16455. uint Tell() const;
  16456. void UnsubscribeFromAllEvents();
  16457. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16458. void UnsubscribeFromEvent(Object, StringHash);
  16459. void UnsubscribeFromEvent(StringHash);
  16460. void UnsubscribeFromEvents(Object);
  16461. const Variant& GetGlobalVar(StringHash) const;
  16462. const VariantMap& GetGlobalVars() const;
  16463. int WeakRefs() const;
  16464. uint Write(Array<uint8>);
  16465. bool WriteBool(bool);
  16466. bool WriteBoundingBox(const BoundingBox&);
  16467. bool WriteByte(int8);
  16468. bool WriteColor(const Color&);
  16469. bool WriteDouble(double);
  16470. bool WriteFileID(const String&);
  16471. bool WriteFloat(float);
  16472. bool WriteInt(int);
  16473. bool WriteInt64(int64);
  16474. bool WriteIntRect(const IntRect&);
  16475. bool WriteIntVector2(const IntVector2&);
  16476. bool WriteIntVector3(const IntVector3&);
  16477. bool WriteLine(const String&);
  16478. bool WriteMatrix3(const Matrix3&);
  16479. bool WriteMatrix3x4(const Matrix3x4&);
  16480. bool WriteMatrix4(const Matrix4&);
  16481. bool WriteNetID(uint);
  16482. bool WritePackedQuaternion(const Quaternion&);
  16483. bool WritePackedVector3(const Vector3&, float);
  16484. bool WriteQuaternion(const Quaternion&);
  16485. bool WriteRect(const Rect&);
  16486. bool WriteResourceRef(const ResourceRef&);
  16487. bool WriteResourceRefList(const ResourceRefList&);
  16488. bool WriteShort(int16);
  16489. bool WriteString(const String&);
  16490. bool WriteStringHash(const StringHash&);
  16491. bool WriteStringVector(Array<String>);
  16492. bool WriteUByte(uint8);
  16493. bool WriteUInt(uint);
  16494. bool WriteUInt64(uint64);
  16495. bool WriteUShort(uint16);
  16496. bool WriteVLE(uint);
  16497. bool WriteVariant(const Variant&);
  16498. bool WriteVariantData(const Variant&);
  16499. bool WriteVariantMap(const VariantMap&);
  16500. bool WriteVector2(const Vector2&);
  16501. bool WriteVector3(const Vector3&);
  16502. bool WriteVector4(const Vector4&);
  16503. bool WriteVectorBuffer(const VectorBuffer&);
  16504. operator const Deserializer() const;
  16505. operator const Object() const;
  16506. operator const RefCounted() const;
  16507. operator const Serializer() const;
  16508. // Properties:
  16509. /* readonly */
  16510. String category;
  16511. /* readonly */
  16512. uint checksum;
  16513. /* readonly */
  16514. bool eof;
  16515. Array<Variant> globalVar;
  16516. /* readonly */
  16517. VariantMap globalVars;
  16518. String name;
  16519. /* readonly */
  16520. bool open;
  16521. /* readonly */
  16522. uint position;
  16523. /* readonly */
  16524. int refs;
  16525. /* readonly */
  16526. bool server;
  16527. /* readonly */
  16528. uint size;
  16529. /* readonly */
  16530. StringHash type;
  16531. /* readonly */
  16532. String typeName;
  16533. /* readonly */
  16534. int weakRefs;
  16535. };
  16536. class NavArea
  16537. {
  16538. public:
  16539. NavArea();
  16540. // Methods:
  16541. void AllocateNetworkState();
  16542. operator Animatable() const;
  16543. void ApplyAttributes();
  16544. void CleanupConnection(Connection);
  16545. operator Component() const;
  16546. void DrawDebugGeometry(DebugRenderer, bool);
  16547. bool GetAnimationEnabled() const;
  16548. uint GetAreaID() const;
  16549. Variant GetAttribute(const String&) const;
  16550. Variant GetAttribute(uint) const;
  16551. ValueAnimation GetAttributeAnimation(const String&) const;
  16552. float GetAttributeAnimationSpeed(const String&) const;
  16553. float GetAttributeAnimationTime(const String&) const;
  16554. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16555. Variant GetAttributeDefault(const String&) const;
  16556. Variant GetAttributeDefault(uint) const;
  16557. bool GetBlockEvents() const;
  16558. BoundingBox GetBoundingBox() const;
  16559. Component GetComponent(StringHash) const;
  16560. VariantMap& GetEventDataMap() const;
  16561. Object GetEventSender() const;
  16562. uint GetID() const;
  16563. bool GetInterceptNetworkUpdate(const String&) const;
  16564. Node GetNode() const;
  16565. uint GetNumAttributes() const;
  16566. uint GetNumNetworkAttributes() const;
  16567. ObjectAnimation GetObjectAnimation() const;
  16568. ResourceRef GetObjectAnimationAttr() const;
  16569. Scene GetScene() const;
  16570. Object GetSubsystem(StringHash) const;
  16571. StringHash GetType() const;
  16572. BoundingBox GetWorldBoundingBox() const;
  16573. bool HasEventHandlers() const;
  16574. bool HasSubscribedToEvent(Object, StringHash) const;
  16575. bool HasSubscribedToEvent(StringHash) const;
  16576. bool IsEnabled() const;
  16577. bool IsEnabledEffective() const;
  16578. bool IsInstanceOf(StringHash) const;
  16579. bool IsReplicated() const;
  16580. bool IsTemporary() const;
  16581. bool Load(Deserializer&);
  16582. bool LoadJSON(const JSONValue&);
  16583. bool LoadXML(const XMLElement&);
  16584. void MarkNetworkUpdate();
  16585. operator Object() const;
  16586. void OnEvent(Object, StringHash, VariantMap&);
  16587. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16588. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16589. void OnSetEnabled();
  16590. void PrepareNetworkUpdate();
  16591. bool ReadDeltaUpdate(Deserializer&);
  16592. bool ReadLatestDataUpdate(Deserializer&);
  16593. operator RefCounted() const;
  16594. int Refs() const;
  16595. void Remove();
  16596. void RemoveAttributeAnimation(const String&);
  16597. void RemoveInstanceDefault();
  16598. void RemoveObjectAnimation();
  16599. void ResetToDefault();
  16600. bool Save(Serializer&) const;
  16601. bool SaveDefaultAttributes() const;
  16602. bool SaveJSON(JSONValue&) const;
  16603. bool SaveXML(XMLElement&) const;
  16604. void SendEvent(StringHash);
  16605. void SendEvent(StringHash, VariantMap&);
  16606. operator Serializable() const;
  16607. void SetAnimationEnabled(bool);
  16608. void SetAnimationTime(float);
  16609. void SetAreaID(uint);
  16610. bool SetAttribute(const String&, const Variant&);
  16611. bool SetAttribute(uint, const Variant&);
  16612. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16613. void SetAttributeAnimationSpeed(const String&, float);
  16614. void SetAttributeAnimationTime(const String&, float);
  16615. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16616. void SetBlockEvents(bool);
  16617. void SetBoundingBox(const BoundingBox&);
  16618. void SetEnabled(bool);
  16619. void SetGlobalVar(StringHash, const Variant&);
  16620. void SetInstanceDefault(bool);
  16621. void SetInterceptNetworkUpdate(const String&, bool);
  16622. void SetObjectAnimation(ObjectAnimation);
  16623. void SetObjectAnimationAttr(const ResourceRef&);
  16624. void SetTemporary(bool);
  16625. const String& GetCategory() const;
  16626. const String& GetTypeName() const;
  16627. void UnsubscribeFromAllEvents();
  16628. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16629. void UnsubscribeFromEvent(Object, StringHash);
  16630. void UnsubscribeFromEvent(StringHash);
  16631. void UnsubscribeFromEvents(Object);
  16632. const Variant& GetGlobalVar(StringHash) const;
  16633. const VariantMap& GetGlobalVars() const;
  16634. int WeakRefs() const;
  16635. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16636. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16637. void WriteLatestDataUpdate(Serializer&, uint8);
  16638. operator const Animatable() const;
  16639. operator const Component() const;
  16640. operator const Object() const;
  16641. operator const RefCounted() const;
  16642. operator const Serializable() const;
  16643. // Properties:
  16644. bool animationEnabled;
  16645. uint areaID;
  16646. /* readonly */
  16647. Array<Variant> attributeDefaults;
  16648. /* readonly */
  16649. Array<AttributeInfo> attributeInfos;
  16650. Array<Variant> attributes;
  16651. BoundingBox boundingBox;
  16652. /* readonly */
  16653. String category;
  16654. bool enabled;
  16655. /* readonly */
  16656. bool enabledEffective;
  16657. Array<Variant> globalVar;
  16658. /* readonly */
  16659. VariantMap globalVars;
  16660. /* readonly */
  16661. uint id;
  16662. /* readonly */
  16663. Node node;
  16664. /* readonly */
  16665. uint numAttributes;
  16666. ObjectAnimation objectAnimation;
  16667. /* readonly */
  16668. int refs;
  16669. /* readonly */
  16670. bool replicated;
  16671. bool temporary;
  16672. /* readonly */
  16673. StringHash type;
  16674. /* readonly */
  16675. String typeName;
  16676. /* readonly */
  16677. int weakRefs;
  16678. /* readonly */
  16679. BoundingBox worldBoundingBox;
  16680. };
  16681. class NavAreaStub
  16682. {
  16683. public:
  16684. ~NavAreaStub();
  16685. NavAreaStub();
  16686. // Methods:
  16687. NavAreaStub& operator=(const NavAreaStub&);
  16688. // Properties:
  16689. uint8 areaID;
  16690. BoundingBox bounds;
  16691. };
  16692. class NavBuildData
  16693. {
  16694. public:
  16695. ~NavBuildData();
  16696. NavBuildData();
  16697. // Methods:
  16698. NavBuildData& operator=(const NavBuildData&);
  16699. // Properties:
  16700. BoundingBox worldBoundingBox;
  16701. };
  16702. class Navigable
  16703. {
  16704. public:
  16705. Navigable();
  16706. // Methods:
  16707. void AllocateNetworkState();
  16708. operator Animatable() const;
  16709. void ApplyAttributes();
  16710. void CleanupConnection(Connection);
  16711. operator Component() const;
  16712. void DrawDebugGeometry(DebugRenderer, bool);
  16713. bool GetAnimationEnabled() const;
  16714. Variant GetAttribute(const String&) const;
  16715. Variant GetAttribute(uint) const;
  16716. ValueAnimation GetAttributeAnimation(const String&) const;
  16717. float GetAttributeAnimationSpeed(const String&) const;
  16718. float GetAttributeAnimationTime(const String&) const;
  16719. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16720. Variant GetAttributeDefault(const String&) const;
  16721. Variant GetAttributeDefault(uint) const;
  16722. bool GetBlockEvents() const;
  16723. Component GetComponent(StringHash) const;
  16724. VariantMap& GetEventDataMap() const;
  16725. Object GetEventSender() const;
  16726. uint GetID() const;
  16727. bool GetInterceptNetworkUpdate(const String&) const;
  16728. Node GetNode() const;
  16729. uint GetNumAttributes() const;
  16730. uint GetNumNetworkAttributes() const;
  16731. ObjectAnimation GetObjectAnimation() const;
  16732. ResourceRef GetObjectAnimationAttr() const;
  16733. Scene GetScene() const;
  16734. Object GetSubsystem(StringHash) const;
  16735. StringHash GetType() const;
  16736. bool HasEventHandlers() const;
  16737. bool HasSubscribedToEvent(Object, StringHash) const;
  16738. bool HasSubscribedToEvent(StringHash) const;
  16739. bool IsEnabled() const;
  16740. bool IsEnabledEffective() const;
  16741. bool IsInstanceOf(StringHash) const;
  16742. bool IsRecursive() const;
  16743. bool IsReplicated() const;
  16744. bool IsTemporary() const;
  16745. bool Load(Deserializer&);
  16746. bool LoadJSON(const JSONValue&);
  16747. bool LoadXML(const XMLElement&);
  16748. void MarkNetworkUpdate();
  16749. operator Object() const;
  16750. void OnEvent(Object, StringHash, VariantMap&);
  16751. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16752. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16753. void OnSetEnabled();
  16754. void PrepareNetworkUpdate();
  16755. bool ReadDeltaUpdate(Deserializer&);
  16756. bool ReadLatestDataUpdate(Deserializer&);
  16757. operator RefCounted() const;
  16758. int Refs() const;
  16759. void Remove();
  16760. void RemoveAttributeAnimation(const String&);
  16761. void RemoveInstanceDefault();
  16762. void RemoveObjectAnimation();
  16763. void ResetToDefault();
  16764. bool Save(Serializer&) const;
  16765. bool SaveDefaultAttributes() const;
  16766. bool SaveJSON(JSONValue&) const;
  16767. bool SaveXML(XMLElement&) const;
  16768. void SendEvent(StringHash);
  16769. void SendEvent(StringHash, VariantMap&);
  16770. operator Serializable() const;
  16771. void SetAnimationEnabled(bool);
  16772. void SetAnimationTime(float);
  16773. bool SetAttribute(const String&, const Variant&);
  16774. bool SetAttribute(uint, const Variant&);
  16775. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16776. void SetAttributeAnimationSpeed(const String&, float);
  16777. void SetAttributeAnimationTime(const String&, float);
  16778. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16779. void SetBlockEvents(bool);
  16780. void SetEnabled(bool);
  16781. void SetGlobalVar(StringHash, const Variant&);
  16782. void SetInstanceDefault(bool);
  16783. void SetInterceptNetworkUpdate(const String&, bool);
  16784. void SetObjectAnimation(ObjectAnimation);
  16785. void SetObjectAnimationAttr(const ResourceRef&);
  16786. void SetRecursive(bool);
  16787. void SetTemporary(bool);
  16788. const String& GetCategory() const;
  16789. const String& GetTypeName() const;
  16790. void UnsubscribeFromAllEvents();
  16791. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16792. void UnsubscribeFromEvent(Object, StringHash);
  16793. void UnsubscribeFromEvent(StringHash);
  16794. void UnsubscribeFromEvents(Object);
  16795. const Variant& GetGlobalVar(StringHash) const;
  16796. const VariantMap& GetGlobalVars() const;
  16797. int WeakRefs() const;
  16798. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16799. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16800. void WriteLatestDataUpdate(Serializer&, uint8);
  16801. operator const Animatable() const;
  16802. operator const Component() const;
  16803. operator const Object() const;
  16804. operator const RefCounted() const;
  16805. operator const Serializable() const;
  16806. // Properties:
  16807. bool animationEnabled;
  16808. /* readonly */
  16809. Array<Variant> attributeDefaults;
  16810. /* readonly */
  16811. Array<AttributeInfo> attributeInfos;
  16812. Array<Variant> attributes;
  16813. /* readonly */
  16814. String category;
  16815. bool enabled;
  16816. /* readonly */
  16817. bool enabledEffective;
  16818. Array<Variant> globalVar;
  16819. /* readonly */
  16820. VariantMap globalVars;
  16821. /* readonly */
  16822. uint id;
  16823. /* readonly */
  16824. Node node;
  16825. /* readonly */
  16826. uint numAttributes;
  16827. ObjectAnimation objectAnimation;
  16828. bool recursive;
  16829. /* readonly */
  16830. int refs;
  16831. /* readonly */
  16832. bool replicated;
  16833. bool temporary;
  16834. /* readonly */
  16835. StringHash type;
  16836. /* readonly */
  16837. String typeName;
  16838. /* readonly */
  16839. int weakRefs;
  16840. };
  16841. class NavigationGeometryInfo
  16842. {
  16843. public:
  16844. ~NavigationGeometryInfo();
  16845. NavigationGeometryInfo();
  16846. // Methods:
  16847. NavigationGeometryInfo& operator=(const NavigationGeometryInfo&);
  16848. // Properties:
  16849. BoundingBox boundingBox;
  16850. uint lodLevel;
  16851. Matrix3x4 transform;
  16852. };
  16853. class NavigationMesh
  16854. {
  16855. public:
  16856. NavigationMesh();
  16857. // Methods:
  16858. bool AddTile(const VectorBuffer&) const;
  16859. bool Allocate(const BoundingBox&, uint);
  16860. void AllocateNetworkState();
  16861. operator Animatable() const;
  16862. void ApplyAttributes();
  16863. const BoundingBox& GetBoundingBox() const;
  16864. bool Build();
  16865. bool Build(const BoundingBox&);
  16866. bool Build(const IntVector2&, const IntVector2&);
  16867. void CleanupConnection(Connection);
  16868. operator Component() const;
  16869. void DrawDebugGeometry(DebugRenderer, bool);
  16870. void DrawDebugGeometry(bool);
  16871. operator DynamicNavigationMesh() const;
  16872. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 :: ONE);
  16873. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& extents = Vector3 :: ONE);
  16874. float GetAgentHeight() const;
  16875. float GetAgentMaxClimb() const;
  16876. float GetAgentMaxSlope() const;
  16877. float GetAgentRadius() const;
  16878. bool GetAnimationEnabled() const;
  16879. float GetAreaCost(uint) const;
  16880. Variant GetAttribute(const String&) const;
  16881. Variant GetAttribute(uint) const;
  16882. ValueAnimation GetAttributeAnimation(const String&) const;
  16883. float GetAttributeAnimationSpeed(const String&) const;
  16884. float GetAttributeAnimationTime(const String&) const;
  16885. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16886. Variant GetAttributeDefault(const String&) const;
  16887. Variant GetAttributeDefault(uint) const;
  16888. bool GetBlockEvents() const;
  16889. float GetCellHeight() const;
  16890. float GetCellSize() const;
  16891. Component GetComponent(StringHash) const;
  16892. float GetDetailSampleDistance() const;
  16893. float GetDetailSampleMaxError() const;
  16894. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  16895. bool GetDrawNavAreas() const;
  16896. bool GetDrawOffMeshConnections() const;
  16897. float GetEdgeMaxError() const;
  16898. float GetEdgeMaxLength() const;
  16899. VariantMap& GetEventDataMap() const;
  16900. Object GetEventSender() const;
  16901. uint GetID() const;
  16902. bool GetInterceptNetworkUpdate(const String&) const;
  16903. String GetMeshName() const;
  16904. Node GetNode() const;
  16905. uint GetNumAttributes() const;
  16906. uint GetNumNetworkAttributes() const;
  16907. IntVector2 GetNumTiles() const;
  16908. ObjectAnimation GetObjectAnimation() const;
  16909. ResourceRef GetObjectAnimationAttr() const;
  16910. NavmeshPartitionType GetPartitionType() const;
  16911. Vector3 GetRandomPoint();
  16912. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  16913. float GetRegionMergeSize() const;
  16914. float GetRegionMinSize() const;
  16915. Scene GetScene() const;
  16916. Object GetSubsystem(StringHash) const;
  16917. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  16918. VectorBuffer GetTileData(const IntVector2&) const;
  16919. IntVector2 GetTileIndex(const Vector3&) const;
  16920. int GetTileSize() const;
  16921. StringHash GetType() const;
  16922. BoundingBox GetWorldBoundingBox() const;
  16923. bool HasEventHandlers() const;
  16924. bool HasSubscribedToEvent(Object, StringHash) const;
  16925. bool HasSubscribedToEvent(StringHash) const;
  16926. bool HasTile(const IntVector2&) const;
  16927. bool IsEnabled() const;
  16928. bool IsEnabledEffective() const;
  16929. bool IsInitialized() const;
  16930. bool IsInstanceOf(StringHash) const;
  16931. bool IsReplicated() const;
  16932. bool IsTemporary() const;
  16933. bool Load(Deserializer&);
  16934. bool LoadJSON(const JSONValue&);
  16935. bool LoadXML(const XMLElement&);
  16936. void MarkNetworkUpdate();
  16937. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE, int = 3);
  16938. operator Object() const;
  16939. void OnEvent(Object, StringHash, VariantMap&);
  16940. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16941. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16942. void OnSetEnabled();
  16943. void PrepareNetworkUpdate();
  16944. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE);
  16945. bool ReadDeltaUpdate(Deserializer&);
  16946. bool ReadLatestDataUpdate(Deserializer&);
  16947. operator RefCounted() const;
  16948. int Refs() const;
  16949. void Remove();
  16950. void RemoveAllTiles();
  16951. void RemoveAttributeAnimation(const String&);
  16952. void RemoveInstanceDefault();
  16953. void RemoveObjectAnimation();
  16954. void RemoveTile(const IntVector2&);
  16955. void ResetToDefault();
  16956. bool Save(Serializer&) const;
  16957. bool SaveDefaultAttributes() const;
  16958. bool SaveJSON(JSONValue&) const;
  16959. bool SaveXML(XMLElement&) const;
  16960. void SendEvent(StringHash);
  16961. void SendEvent(StringHash, VariantMap&);
  16962. operator Serializable() const;
  16963. void SetAgentHeight(float);
  16964. void SetAgentMaxClimb(float);
  16965. void SetAgentMaxSlope(float);
  16966. void SetAgentRadius(float);
  16967. void SetAnimationEnabled(bool);
  16968. void SetAnimationTime(float);
  16969. void SetAreaCost(uint, float);
  16970. bool SetAttribute(const String&, const Variant&);
  16971. bool SetAttribute(uint, const Variant&);
  16972. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16973. void SetAttributeAnimationSpeed(const String&, float);
  16974. void SetAttributeAnimationTime(const String&, float);
  16975. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16976. void SetBlockEvents(bool);
  16977. void SetCellHeight(float);
  16978. void SetCellSize(float);
  16979. void SetDetailSampleDistance(float);
  16980. void SetDetailSampleMaxError(float);
  16981. void SetDrawNavAreas(bool);
  16982. void SetDrawOffMeshConnections(bool);
  16983. void SetEdgeMaxError(float);
  16984. void SetEdgeMaxLength(float);
  16985. void SetEnabled(bool);
  16986. void SetGlobalVar(StringHash, const Variant&);
  16987. void SetInstanceDefault(bool);
  16988. void SetInterceptNetworkUpdate(const String&, bool);
  16989. void SetMeshName(const String&);
  16990. void SetObjectAnimation(ObjectAnimation);
  16991. void SetObjectAnimationAttr(const ResourceRef&);
  16992. void SetPadding(const Vector3&);
  16993. void SetPartitionType(NavmeshPartitionType);
  16994. void SetRegionMergeSize(float);
  16995. void SetRegionMinSize(float);
  16996. void SetTemporary(bool);
  16997. void SetTileSize(int);
  16998. const String& GetCategory() const;
  16999. const String& GetTypeName() const;
  17000. void UnsubscribeFromAllEvents();
  17001. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17002. void UnsubscribeFromEvent(Object, StringHash);
  17003. void UnsubscribeFromEvent(StringHash);
  17004. void UnsubscribeFromEvents(Object);
  17005. const Variant& GetGlobalVar(StringHash) const;
  17006. const VariantMap& GetGlobalVars() const;
  17007. const Vector3& GetPadding() const;
  17008. int WeakRefs() const;
  17009. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  17010. void WriteInitialDeltaUpdate(Serializer&, uint8);
  17011. void WriteLatestDataUpdate(Serializer&, uint8);
  17012. operator const Animatable() const;
  17013. operator const Component() const;
  17014. operator const DynamicNavigationMesh() const;
  17015. operator const Object() const;
  17016. operator const RefCounted() const;
  17017. operator const Serializable() const;
  17018. // Properties:
  17019. float agentHeight;
  17020. float agentMaxClimb;
  17021. float agentMaxSlope;
  17022. float agentRadius;
  17023. bool animationEnabled;
  17024. /* readonly */
  17025. Array<Variant> attributeDefaults;
  17026. /* readonly */
  17027. Array<AttributeInfo> attributeInfos;
  17028. Array<Variant> attributes;
  17029. /* readonly */
  17030. BoundingBox boundingBox;
  17031. /* readonly */
  17032. String category;
  17033. float cellHeight;
  17034. float cellSize;
  17035. float detailSampleDistance;
  17036. float detailSampleMaxError;
  17037. bool drawNavAreas;
  17038. bool drawOffMeshConnections;
  17039. float edgeMaxError;
  17040. float edgeMaxLength;
  17041. bool enabled;
  17042. /* readonly */
  17043. bool enabledEffective;
  17044. Array<Variant> globalVar;
  17045. /* readonly */
  17046. VariantMap globalVars;
  17047. /* readonly */
  17048. uint id;
  17049. /* readonly */
  17050. bool initialized;
  17051. /* readonly */
  17052. Node node;
  17053. /* readonly */
  17054. uint numAttributes;
  17055. /* readonly */
  17056. IntVector2 numTiles;
  17057. ObjectAnimation objectAnimation;
  17058. Vector3 padding;
  17059. NavmeshPartitionType partitionType;
  17060. /* readonly */
  17061. int refs;
  17062. float regionMergeSize;
  17063. float regionMinSize;
  17064. /* readonly */
  17065. bool replicated;
  17066. bool temporary;
  17067. int tileSize;
  17068. /* readonly */
  17069. StringHash type;
  17070. /* readonly */
  17071. String typeName;
  17072. /* readonly */
  17073. int weakRefs;
  17074. /* readonly */
  17075. BoundingBox worldBoundingBox;
  17076. };
  17077. class NavigationPathPoint
  17078. {
  17079. public:
  17080. ~NavigationPathPoint();
  17081. NavigationPathPoint();
  17082. // Methods:
  17083. NavigationPathPoint& operator=(const NavigationPathPoint&);
  17084. // Properties:
  17085. uint8 areaID;
  17086. NavigationPathPointFlag flag;
  17087. Vector3 position;
  17088. };
  17089. class Network
  17090. {
  17091. public:
  17092. Network();
  17093. // Methods:
  17094. void AttemptNATPunchtrough(const String&, Scene, const VariantMap& = VariantMap ( ));
  17095. void BanAddress(const String&);
  17096. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  17097. void BroadcastRemoteEvent(Node, StringHash, bool, const VariantMap& = VariantMap ( ));
  17098. void BroadcastRemoteEvent(Scene, StringHash, bool, const VariantMap& = VariantMap ( ));
  17099. void BroadcastRemoteEvent(StringHash, bool, const VariantMap& = VariantMap ( ));
  17100. bool CheckRemoteEvent(StringHash) const;
  17101. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  17102. void Disconnect(int = 0);
  17103. void DiscoverHosts(uint);
  17104. bool GetBlockEvents() const;
  17105. Array<Connection> GetClientConnections() const;
  17106. VariantMap& GetEventDataMap() const;
  17107. Object GetEventSender() const;
  17108. Connection GetServerConnection() const;
  17109. int GetSimulatedLatency() const;
  17110. float GetSimulatedPacketLoss() const;
  17111. Object GetSubsystem(StringHash) const;
  17112. StringHash GetType() const;
  17113. int GetUpdateFps() const;
  17114. bool HasEventHandlers() const;
  17115. bool HasSubscribedToEvent(Object, StringHash) const;
  17116. bool HasSubscribedToEvent(StringHash) const;
  17117. bool IsInstanceOf(StringHash) const;
  17118. bool IsServerRunning() const;
  17119. HttpRequest MakeHttpRequest(const String&, const String& = String :: EMPTY, Array<String> = null, const String& = String :: EMPTY);
  17120. operator Object() const;
  17121. void OnEvent(Object, StringHash, VariantMap&);
  17122. void PostUpdate(float);
  17123. operator RefCounted() const;
  17124. int Refs() const;
  17125. void RegisterRemoteEvent(StringHash);
  17126. void SendEvent(StringHash);
  17127. void SendEvent(StringHash, VariantMap&);
  17128. void SendPackageToClients(Scene, PackageFile);
  17129. void SetBlockEvents(bool);
  17130. void SetDiscoveryBeacon(const VariantMap&);
  17131. void SetGlobalVar(StringHash, const Variant&);
  17132. void SetNATServerInfo(const String&, uint16);
  17133. void SetPackageCacheDir(const String&);
  17134. void SetPassword(const String&);
  17135. void SetSimulatedLatency(int);
  17136. void SetSimulatedPacketLoss(float);
  17137. void SetUpdateFps(int);
  17138. void StartNATClient();
  17139. bool StartServer(uint16, uint = 128);
  17140. void StopServer();
  17141. const String& GetCategory() const;
  17142. const String& GetGUID() const;
  17143. const String& GetPackageCacheDir() const;
  17144. const String& GetTypeName() const;
  17145. void UnregisterAllRemoteEvents();
  17146. void UnregisterRemoteEvent(StringHash);
  17147. void UnsubscribeFromAllEvents();
  17148. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17149. void UnsubscribeFromEvent(Object, StringHash);
  17150. void UnsubscribeFromEvent(StringHash);
  17151. void UnsubscribeFromEvents(Object);
  17152. void Update(float);
  17153. const Variant& GetGlobalVar(StringHash) const;
  17154. const VariantMap& GetGlobalVars() const;
  17155. int WeakRefs() const;
  17156. operator const Object() const;
  17157. operator const RefCounted() const;
  17158. // Properties:
  17159. /* readonly */
  17160. String category;
  17161. /* readonly */
  17162. Array<Connection> clientConnections;
  17163. Array<Variant> globalVar;
  17164. /* readonly */
  17165. VariantMap globalVars;
  17166. /* readonly */
  17167. String guid;
  17168. String packageCacheDir;
  17169. /* readonly */
  17170. int refs;
  17171. /* readonly */
  17172. Connection serverConnection;
  17173. /* readonly */
  17174. bool serverRunning;
  17175. int simulatedLatency;
  17176. float simulatedPacketLoss;
  17177. /* readonly */
  17178. StringHash type;
  17179. /* readonly */
  17180. String typeName;
  17181. int updateFps;
  17182. /* readonly */
  17183. int weakRefs;
  17184. };
  17185. class NetworkPriority
  17186. {
  17187. public:
  17188. NetworkPriority();
  17189. // Methods:
  17190. void AllocateNetworkState();
  17191. operator Animatable() const;
  17192. void ApplyAttributes();
  17193. bool CheckUpdate(float, float&);
  17194. void CleanupConnection(Connection);
  17195. operator Component() const;
  17196. void DrawDebugGeometry(DebugRenderer, bool);
  17197. bool GetAlwaysUpdateOwner() const;
  17198. bool GetAnimationEnabled() const;
  17199. Variant GetAttribute(const String&) const;
  17200. Variant GetAttribute(uint) const;
  17201. ValueAnimation GetAttributeAnimation(const String&) const;
  17202. float GetAttributeAnimationSpeed(const String&) const;
  17203. float GetAttributeAnimationTime(const String&) const;
  17204. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  17205. Variant GetAttributeDefault(const String&) const;
  17206. Variant GetAttributeDefault(uint) const;
  17207. float GetBasePriority() const;
  17208. bool GetBlockEvents() const;
  17209. Component GetComponent(StringHash) const;
  17210. float GetDistanceFactor() const;
  17211. VariantMap& GetEventDataMap() const;
  17212. Object GetEventSender() const;
  17213. uint GetID() const;
  17214. bool GetInterceptNetworkUpdate(const String&) const;
  17215. float GetMinPriority() const;
  17216. Node GetNode() const;
  17217. uint GetNumAttributes() const;
  17218. uint GetNumNetworkAttributes() const;
  17219. ObjectAnimation GetObjectAnimation() const;
  17220. ResourceRef GetObjectAnimationAttr() const;
  17221. Scene GetScene() const;
  17222. Object GetSubsystem(StringHash) const;
  17223. StringHash GetType() const;
  17224. bool HasEventHandlers() const;
  17225. bool HasSubscribedToEvent(Object, StringHash) const;
  17226. bool HasSubscribedToEvent(StringHash) const;
  17227. bool IsEnabled() const;
  17228. bool IsEnabledEffective() const;
  17229. bool IsInstanceOf(StringHash) const;
  17230. bool IsReplicated() const;
  17231. bool IsTemporary() const;
  17232. bool Load(Deserializer&);
  17233. bool LoadJSON(const JSONValue&);
  17234. bool LoadXML(const XMLElement&);
  17235. void MarkNetworkUpdate();
  17236. operator Object() const;
  17237. void OnEvent(Object, StringHash, VariantMap&);
  17238. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  17239. void OnSetAttribute(const AttributeInfo&, const Variant&);
  17240. void OnSetEnabled();
  17241. void PrepareNetworkUpdate();
  17242. bool ReadDeltaUpdate(Deserializer&);
  17243. bool ReadLatestDataUpdate(Deserializer&);
  17244. operator RefCounted() const;
  17245. int Refs() const;
  17246. void Remove();
  17247. void RemoveAttributeAnimation(const String&);
  17248. void RemoveInstanceDefault();
  17249. void RemoveObjectAnimation();
  17250. void ResetToDefault();
  17251. bool Save(Serializer&) const;
  17252. bool SaveDefaultAttributes() const;
  17253. bool SaveJSON(JSONValue&) const;
  17254. bool SaveXML(XMLElement&) const;
  17255. void SendEvent(StringHash);
  17256. void SendEvent(StringHash, VariantMap&);
  17257. operator Serializable() const;
  17258. void SetAlwaysUpdateOwner(bool);
  17259. void SetAnimationEnabled(bool);
  17260. void SetAnimationTime(float);
  17261. bool SetAttribute(const String&, const Variant&);
  17262. bool SetAttribute(uint, const Variant&);
  17263. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  17264. void SetAttributeAnimationSpeed(const String&, float);
  17265. void SetAttributeAnimationTime(const String&, float);
  17266. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  17267. void SetBasePriority(float);
  17268. void SetBlockEvents(bool);
  17269. void SetDistanceFactor(float);
  17270. void SetEnabled(bool);
  17271. void SetGlobalVar(StringHash, const Variant&);
  17272. void SetInstanceDefault(bool);
  17273. void SetInterceptNetworkUpdate(const String&, bool);
  17274. void SetMinPriority(float);
  17275. void SetObjectAnimation(ObjectAnimation);
  17276. void SetObjectAnimationAttr(const ResourceRef&);
  17277. void SetTemporary(bool);
  17278. const String& GetCategory() const;
  17279. const String& GetTypeName() const;
  17280. void UnsubscribeFromAllEvents();
  17281. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17282. void UnsubscribeFromEvent(Object, StringHash);
  17283. void UnsubscribeFromEvent(StringHash);
  17284. void UnsubscribeFromEvents(Object);
  17285. const Variant& GetGlobalVar(StringHash) const;
  17286. const VariantMap& GetGlobalVars() const;
  17287. int WeakRefs() const;
  17288. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  17289. void WriteInitialDeltaUpdate(Serializer&, uint8);
  17290. void WriteLatestDataUpdate(Serializer&, uint8);
  17291. operator const Animatable() const;
  17292. operator const Component() const;
  17293. operator const Object() const;
  17294. operator const RefCounted() const;
  17295. operator const Serializable() const;
  17296. // Properties:
  17297. bool alwaysUpdateOwner;
  17298. bool animationEnabled;
  17299. /* readonly */
  17300. Array<Variant> attributeDefaults;
  17301. /* readonly */
  17302. Array<AttributeInfo> attributeInfos;
  17303. Array<Variant> attributes;
  17304. float basePriority;
  17305. /* readonly */
  17306. String category;
  17307. float distanceFactor;
  17308. bool enabled;
  17309. /* readonly */
  17310. bool enabledEffective;
  17311. Array<Variant> globalVar;
  17312. /* readonly */
  17313. VariantMap globalVars;
  17314. /* readonly */
  17315. uint id;
  17316. float minPriority;
  17317. /* readonly */
  17318. Node node;
  17319. /* readonly */
  17320. uint numAttributes;
  17321. ObjectAnimation objectAnimation;
  17322. /* readonly */
  17323. int refs;
  17324. /* readonly */
  17325. bool replicated;
  17326. bool temporary;
  17327. /* readonly */
  17328. StringHash type;
  17329. /* readonly */
  17330. String typeName;
  17331. /* readonly */
  17332. int weakRefs;
  17333. };
  17334. class NetworkState
  17335. {
  17336. public:
  17337. ~NetworkState();
  17338. NetworkState();
  17339. // Methods:
  17340. NetworkState& operator=(const NetworkState&);
  17341. // Properties:
  17342. uint64 interceptMask;
  17343. VariantMap previousVars;
  17344. };
  17345. class Node
  17346. {
  17347. public:
  17348. Node();
  17349. Node(const String&in);
  17350. // Methods:
  17351. void AddChild(Node, uint = M_MAX_UNSIGNED);
  17352. void AddComponent(Component, uint, CreateMode);
  17353. void AddListener(Component);
  17354. void AddTag(const String&);
  17355. void AddTags(Array<String>);
  17356. void AddTags(const String&, int8 = ';');
  17357. void AllocateNetworkState();
  17358. operator Animatable() const;
  17359. void ApplyAttributes();
  17360. void CleanupConnection(Connection);
  17361. Node Clone(CreateMode = REPLICATED);
  17362. Component CloneComponent(Component, CreateMode, uint = 0);
  17363. Component CloneComponent(Component, uint = 0);
  17364. Node CreateChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0, bool = false);
  17365. Node CreateChild(uint, CreateMode, bool = false);
  17366. Component CreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  17367. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode mode = REPLICATED);
  17368. ScriptObject CreateScriptObject(const String&, const String&, CreateMode mode = REPLICATED);
  17369. Node CreateTemporaryChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0);
  17370. bool GetAnimationEnabled() const;
  17371. Variant GetAttribute(const String&) const;
  17372. Variant GetAttribute(uint) const;
  17373. ValueAnimation GetAttributeAnimation(const String&) const;
  17374. float GetAttributeAnimationSpeed(const String&) const;
  17375. float GetAttributeAnimationTime(const String&) const;
  17376. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  17377. Variant GetAttributeDefault(const String&) const;
  17378. Variant GetAttributeDefault(uint) const;
  17379. bool GetBlockEvents() const;
  17380. Node GetChild(StringHash, bool = false) const;
  17381. Node GetChild(const String&, bool = false) const;
  17382. Node GetChild(uint) const;
  17383. Array<Node> GetChildren() const;
  17384. Array<Node> GetChildren(bool) const;
  17385. Array<Node> GetChildrenWithComponent(StringHash, bool = false) const;
  17386. Array<Node> GetChildrenWithScript(bool = false) const;
  17387. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  17388. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  17389. Component GetComponent(StringHash, bool = false) const;
  17390. Array<Component> GetComponents() const;
  17391. Array<Component> GetComponents(const String&, bool = false) const;
  17392. Array<Node> GetDependencyNodes() const;
  17393. Vector3 GetDirection() const;
  17394. VariantMap& GetEventDataMap() const;
  17395. Object GetEventSender() const;
  17396. uint GetID() const;
  17397. bool GetInterceptNetworkUpdate(const String&) const;
  17398. StringHash GetNameHash() const;
  17399. uint GetNumAttributes() const;
  17400. uint GetNumChildren(bool = false) const;
  17401. uint GetNumComponents() const;
  17402. uint GetNumNetworkAttributes() const;
  17403. uint GetNumNetworkComponents() const;
  17404. uint GetNumPersistentChildren() const;
  17405. uint GetNumPersistentComponents() const;
  17406. ObjectAnimation GetObjectAnimation() const;
  17407. ResourceRef GetObjectAnimationAttr() const;
  17408. Component GetOrCreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  17409. Connection GetOwner() const;
  17410. Node GetParent() const;
  17411. Component GetParentComponent(StringHash, bool = false) const;
  17412. Vector2 GetPosition2D() const;
  17413. Vector3 GetRight() const;
  17414. float GetRotation2D() const;
  17415. Vector2 GetScale2D() const;
  17416. Scene GetScene() const;
  17417. ScriptObject GetScriptObject() const;
  17418. ScriptObject GetScriptObject(const String&) const;
  17419. Vector3 GetSignedWorldScale() const;
  17420. Object GetSubsystem(StringHash) const;
  17421. Array<String> GetTags() const;
  17422. Matrix3x4 GetTransform() const;
  17423. StringHash GetType() const;
  17424. Vector3 GetUp() const;
  17425. Vector3 GetWorldDirection() const;
  17426. Vector3 GetWorldPosition() const;
  17427. Vector2 GetWorldPosition2D() const;
  17428. Vector3 GetWorldRight() const;
  17429. Quaternion GetWorldRotation() const;
  17430. float GetWorldRotation2D() const;
  17431. Vector3 GetWorldScale() const;
  17432. Vector2 GetWorldScale2D() const;
  17433. Vector3 GetWorldUp() const;
  17434. bool HasComponent(StringHash) const;
  17435. bool HasEventHandlers() const;
  17436. bool HasSubscribedToEvent(Object, StringHash) const;
  17437. bool HasSubscribedToEvent(StringHash) const;
  17438. bool HasTag(const String&) const;
  17439. bool IsChildOf(Node) const;
  17440. bool IsDirty() const;
  17441. bool IsEnabled() const;
  17442. bool IsEnabledSelf() const;
  17443. bool IsInstanceOf(StringHash) const;
  17444. bool IsReplicated() const;
  17445. bool IsTemporary() const;
  17446. bool Load(Deserializer&);
  17447. bool Load(Deserializer&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17448. bool LoadJSON(const JSONValue&);
  17449. bool LoadJSON(const JSONValue&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17450. bool LoadXML(const XMLElement&);
  17451. bool LoadXML(const XMLElement&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17452. Vector3 LocalToWorld(const Vector3&) const;
  17453. Vector3 LocalToWorld(const Vector4&) const;
  17454. Vector2 LocalToWorld2D(const Vector2&) const;
  17455. bool LookAt(const Vector3&, const Vector3& = Vector3 :: UP, TransformSpace = TS_WORLD);
  17456. void MarkDirty();
  17457. void MarkNetworkUpdate();
  17458. void MarkReplicationDirty();
  17459. const Matrix3x4& GetWorldTransform() const;
  17460. operator Object() const;
  17461. void OnEvent(Object, StringHash, VariantMap&);
  17462. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  17463. void OnSetAttribute(const AttributeInfo&, const Variant&);
  17464. void Pitch(float, TransformSpace = TS_LOCAL);
  17465. void PrepareNetworkUpdate();
  17466. const Quaternion& GetRotation() const;
  17467. bool ReadDeltaUpdate(Deserializer&);
  17468. bool ReadLatestDataUpdate(Deserializer&);
  17469. operator RefCounted() const;
  17470. int Refs() const;
  17471. void Remove();
  17472. void RemoveAllChildren();
  17473. void RemoveAllComponents();
  17474. void RemoveAllTags();
  17475. void RemoveAttributeAnimation(const String&);
  17476. void RemoveChild(Node);
  17477. void RemoveChildren(bool, bool, bool);
  17478. void RemoveComponent(Component);
  17479. void RemoveComponent(StringHash);
  17480. void RemoveComponents(StringHash);
  17481. void RemoveComponents(bool, bool);
  17482. void RemoveInstanceDefault();
  17483. void RemoveListener(Component);
  17484. void RemoveObjectAnimation();
  17485. bool RemoveTag(const String&);
  17486. void ReorderComponent(Component, uint);
  17487. void ResetDeepEnabled();
  17488. void ResetScene();
  17489. void ResetToDefault();
  17490. void Roll(float, TransformSpace = TS_LOCAL);
  17491. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  17492. void Rotate2D(float, TransformSpace = TS_LOCAL);
  17493. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  17494. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  17495. bool Save(Serializer&) const;
  17496. bool SaveDefaultAttributes() const;
  17497. bool SaveJSON(File);
  17498. bool SaveJSON(JSONValue&) const;
  17499. bool SaveJSON(Serializer&, const String& = "\t") const;
  17500. bool SaveJSON(VectorBuffer&);
  17501. bool SaveXML(File, const String& = "\t");
  17502. bool SaveXML(Serializer&, const String& = "\t") const;
  17503. bool SaveXML(VectorBuffer&, const String& = "\t");
  17504. bool SaveXML(XMLElement&) const;
  17505. void Scale(const Vector3&);
  17506. void Scale(float);
  17507. void Scale2D(const Vector2&);
  17508. operator Scene() const;
  17509. void SendEvent(StringHash);
  17510. void SendEvent(StringHash, VariantMap&);
  17511. operator Serializable() const;
  17512. void SetAnimationEnabled(bool);
  17513. void SetAnimationTime(float);
  17514. bool SetAttribute(const String&, const Variant&);
  17515. bool SetAttribute(uint, const Variant&);
  17516. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  17517. void SetAttributeAnimationSpeed(const String&, float);
  17518. void SetAttributeAnimationTime(const String&, float);
  17519. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  17520. void SetBlockEvents(bool);
  17521. void SetDeepEnabled(bool);
  17522. void SetDirection(const Vector3&);
  17523. void SetEnabled(bool);
  17524. void SetEnabledRecursive(bool);
  17525. void SetGlobalVar(StringHash, const Variant&);
  17526. void SetID(uint);
  17527. void SetInstanceDefault(bool);
  17528. void SetInterceptNetworkUpdate(const String&, bool);
  17529. void SetName(const String&);
  17530. void SetNetPositionAttr(const Vector3&);
  17531. void SetObjectAnimation(ObjectAnimation);
  17532. void SetObjectAnimationAttr(const ResourceRef&);
  17533. void SetOwner(Connection);
  17534. void SetParent(Node);
  17535. void SetPosition(const Vector3&);
  17536. void SetPosition2D(const Vector2&);
  17537. void SetPosition2D(float, float);
  17538. void SetPositionSilent(const Vector3&);
  17539. void SetRotation(const Quaternion&);
  17540. void SetRotation2D(float);
  17541. void SetRotationSilent(const Quaternion&);
  17542. void SetScale(const Vector3&);
  17543. void SetScale(float);
  17544. void SetScale2D(const Vector2&);
  17545. void SetScale2D(float, float);
  17546. void SetScaleSilent(const Vector3&);
  17547. void SetScene(Scene);
  17548. void SetTags(Array<String>);
  17549. void SetTemporary(bool);
  17550. void SetTransform(const Matrix3x4&);
  17551. void SetTransform(const Vector3&, const Quaternion&);
  17552. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  17553. void SetTransform(const Vector3&, const Quaternion&, float);
  17554. void SetTransform2D(const Vector2&, float);
  17555. void SetTransform2D(const Vector2&, float, const Vector2&);
  17556. void SetTransform2D(const Vector2&, float, float);
  17557. void SetTransformSilent(const Vector3&, const Quaternion&, const Vector3&);
  17558. void SetVar(StringHash, const Variant&);
  17559. void SetWorldDirection(const Vector3&);
  17560. void SetWorldPosition(const Vector3&);
  17561. void SetWorldPosition2D(const Vector2&);
  17562. void SetWorldPosition2D(float, float);
  17563. void SetWorldRotation(const Quaternion&);
  17564. void SetWorldRotation2D(float);
  17565. void SetWorldScale(const Vector3&);
  17566. void SetWorldScale(float);
  17567. void SetWorldScale2D(const Vector2&);
  17568. void SetWorldScale2D(float, float);
  17569. void SetWorldTransform(const Matrix3x4&);
  17570. void SetWorldTransform(const Vector3&, const Quaternion&);
  17571. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  17572. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  17573. void SetWorldTransform2D(const Vector2&, float);
  17574. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  17575. void SetWorldTransform2D(const Vector2&, float, float);
  17576. const String& GetCategory() const;
  17577. const String& GetName() const;
  17578. const String& GetTypeName() const;
  17579. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  17580. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  17581. void UnsubscribeFromAllEvents();
  17582. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17583. void UnsubscribeFromEvent(Object, StringHash);
  17584. void UnsubscribeFromEvent(StringHash);
  17585. void UnsubscribeFromEvents(Object);
  17586. const Variant& GetGlobalVar(StringHash) const;
  17587. const Variant& GetVar(StringHash) const;
  17588. const VariantMap& GetGlobalVars() const;
  17589. const VariantMap& GetVars() const;
  17590. const Vector3& GetNetPositionAttr() const;
  17591. const Vector3& GetPosition() const;
  17592. const Vector3& GetScale() const;
  17593. int WeakRefs() const;
  17594. Vector3 WorldToLocal(const Vector3&) const;
  17595. Vector3 WorldToLocal(const Vector4&) const;
  17596. Vector2 WorldToLocal2D(const Vector2&) const;
  17597. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  17598. void WriteInitialDeltaUpdate(Serializer&, uint8);
  17599. void WriteLatestDataUpdate(Serializer&, uint8);
  17600. void Yaw(float, TransformSpace = TS_LOCAL);
  17601. operator const Animatable() const;
  17602. operator const Object() const;
  17603. operator const RefCounted() const;
  17604. operator const Scene() const;
  17605. operator const Serializable() const;
  17606. // Properties:
  17607. /* readonly */
  17608. Array<Node> allChildrenByName;
  17609. bool animationEnabled;
  17610. /* readonly */
  17611. Array<Variant> attributeDefaults;
  17612. /* readonly */
  17613. Array<AttributeInfo> attributeInfos;
  17614. Array<Variant> attributes;
  17615. /* readonly */
  17616. String category;
  17617. /* readonly */
  17618. Array<Node> children;
  17619. /* readonly */
  17620. Array<Node> childrenByName;
  17621. /* readonly */
  17622. Array<Component> components;
  17623. Vector3 direction;
  17624. bool enabled;
  17625. /* readonly */
  17626. bool enabledSelf;
  17627. Array<Variant> globalVar;
  17628. /* readonly */
  17629. VariantMap globalVars;
  17630. uint id;
  17631. String name;
  17632. /* readonly */
  17633. uint numAllChildren;
  17634. /* readonly */
  17635. uint numAttributes;
  17636. /* readonly */
  17637. uint numChildren;
  17638. /* readonly */
  17639. uint numComponents;
  17640. ObjectAnimation objectAnimation;
  17641. Connection owner;
  17642. Node parent;
  17643. Vector3 position;
  17644. Vector2 position2D;
  17645. /* readonly */
  17646. int refs;
  17647. /* readonly */
  17648. bool replicated;
  17649. /* readonly */
  17650. Vector3 right;
  17651. Quaternion rotation;
  17652. float rotation2D;
  17653. Vector3 scale;
  17654. Vector2 scale2D;
  17655. /* readonly */
  17656. Scene scene;
  17657. /* readonly */
  17658. ScriptObject scriptObject;
  17659. /* readonly */
  17660. Vector3 signedWorldScale;
  17661. /* readonly */
  17662. Array<String> tags;
  17663. bool temporary;
  17664. /* readonly */
  17665. Matrix3x4 transform;
  17666. /* readonly */
  17667. StringHash type;
  17668. /* readonly */
  17669. String typeName;
  17670. /* readonly */
  17671. Vector3 up;
  17672. /* readonly */
  17673. VariantMap vars;
  17674. /* readonly */
  17675. int weakRefs;
  17676. Vector3 worldDirection;
  17677. Vector3 worldPosition;
  17678. Vector2 worldPosition2D;
  17679. /* readonly */
  17680. Vector3 worldRight;
  17681. Quaternion worldRotation;
  17682. float worldRotation2D;
  17683. Vector3 worldScale;
  17684. Vector2 worldScale2D;
  17685. /* readonly */
  17686. Matrix3x4 worldTransform;
  17687. /* readonly */
  17688. Vector3 worldUp;
  17689. };
  17690. class NodeImpl
  17691. {
  17692. public:
  17693. ~NodeImpl();
  17694. NodeImpl();
  17695. // Methods:
  17696. NodeImpl& operator=(const NodeImpl&);
  17697. // Properties:
  17698. VectorBuffer attrBuffer;
  17699. String name;
  17700. StringHash nameHash;
  17701. };
  17702. class NodeReplicationState
  17703. {
  17704. public:
  17705. ~NodeReplicationState();
  17706. NodeReplicationState();
  17707. // Methods:
  17708. NodeReplicationState& operator=(const NodeReplicationState&);
  17709. // Properties:
  17710. DirtyBits dirtyAttributes;
  17711. bool markedDirty;
  17712. float priorityAcc;
  17713. };
  17714. class Object
  17715. {
  17716. public:
  17717. // Methods:
  17718. operator Animatable() const;
  17719. operator AnimatedModel() const;
  17720. operator AnimatedSprite2D() const;
  17721. operator Animation() const;
  17722. operator AnimationController() const;
  17723. operator AnimationSet2D() const;
  17724. operator Audio() const;
  17725. operator BillboardSet() const;
  17726. operator BorderImage() const;
  17727. operator Button() const;
  17728. operator Camera() const;
  17729. operator CheckBox() const;
  17730. operator CollisionBox2D() const;
  17731. operator CollisionChain2D() const;
  17732. operator CollisionCircle2D() const;
  17733. operator CollisionEdge2D() const;
  17734. operator CollisionPolygon2D() const;
  17735. operator CollisionShape2D() const;
  17736. operator CollisionShape() const;
  17737. operator Component() const;
  17738. operator Connection() const;
  17739. operator Console() const;
  17740. operator ConstantBuffer() const;
  17741. operator Constraint2D() const;
  17742. operator Constraint() const;
  17743. operator ConstraintDistance2D() const;
  17744. operator ConstraintFriction2D() const;
  17745. operator ConstraintGear2D() const;
  17746. operator ConstraintMotor2D() const;
  17747. operator ConstraintMouse2D() const;
  17748. operator ConstraintPrismatic2D() const;
  17749. operator ConstraintPulley2D() const;
  17750. operator ConstraintRevolute2D() const;
  17751. operator ConstraintRope2D() const;
  17752. operator ConstraintWeld2D() const;
  17753. operator ConstraintWheel2D() const;
  17754. operator CrowdAgent() const;
  17755. operator CrowdManager() const;
  17756. operator Cursor() const;
  17757. operator CustomGeometry() const;
  17758. operator Database() const;
  17759. operator DebugHud() const;
  17760. operator DebugRenderer() const;
  17761. operator DecalSet() const;
  17762. operator Drawable2D() const;
  17763. operator Drawable() const;
  17764. operator DropDownList() const;
  17765. operator DynamicNavigationMesh() const;
  17766. operator Engine() const;
  17767. operator EventProfiler() const;
  17768. operator File() const;
  17769. operator FileSelector() const;
  17770. operator FileSystem() const;
  17771. operator FileWatcher() const;
  17772. operator Font() const;
  17773. operator Geometry() const;
  17774. bool GetBlockEvents() const;
  17775. VariantMap& GetEventDataMap() const;
  17776. Object GetEventSender() const;
  17777. Object GetSubsystem(StringHash) const;
  17778. StringHash GetType() const;
  17779. operator Graphics() const;
  17780. bool HasEventHandlers() const;
  17781. bool HasSubscribedToEvent(Object, StringHash) const;
  17782. bool HasSubscribedToEvent(StringHash) const;
  17783. operator IKConstraint() const;
  17784. operator IKEffector() const;
  17785. operator IKSolver() const;
  17786. operator Image() const;
  17787. operator IndexBuffer() const;
  17788. operator Input() const;
  17789. bool IsInstanceOf(StringHash) const;
  17790. operator JSONFile() const;
  17791. operator Light() const;
  17792. operator LineEdit() const;
  17793. operator ListView() const;
  17794. operator Localization() const;
  17795. operator Log() const;
  17796. operator LogicComponent() const;
  17797. operator Material() const;
  17798. operator Menu() const;
  17799. operator MessageBox() const;
  17800. operator Model() const;
  17801. operator NamedPipe() const;
  17802. operator NavArea() const;
  17803. operator Navigable() const;
  17804. operator NavigationMesh() const;
  17805. operator Network() const;
  17806. operator NetworkPriority() const;
  17807. operator Node() const;
  17808. operator ObjectAnimation() const;
  17809. operator Obstacle() const;
  17810. operator OcclusionBuffer() const;
  17811. operator Octree() const;
  17812. operator OffMeshConnection() const;
  17813. void OnEvent(Object, StringHash, VariantMap&);
  17814. operator PackageFile() const;
  17815. operator ParticleEffect2D() const;
  17816. operator ParticleEffect() const;
  17817. operator ParticleEmitter2D() const;
  17818. operator ParticleEmitter() const;
  17819. operator PhysicsWorld2D() const;
  17820. operator PhysicsWorld() const;
  17821. operator Profiler() const;
  17822. operator ProgressBar() const;
  17823. operator RaycastVehicle() const;
  17824. operator RefCounted() const;
  17825. int Refs() const;
  17826. operator Renderer2D() const;
  17827. operator Renderer() const;
  17828. operator Resource() const;
  17829. operator ResourceCache() const;
  17830. operator ResourceWithMetadata() const;
  17831. operator RibbonTrail() const;
  17832. operator RigidBody2D() const;
  17833. operator RigidBody() const;
  17834. operator Scene() const;
  17835. operator ScriptInstance() const;
  17836. operator ScrollBar() const;
  17837. operator ScrollView() const;
  17838. void SendEvent(StringHash);
  17839. void SendEvent(StringHash, VariantMap&);
  17840. operator Serializable() const;
  17841. void SetBlockEvents(bool);
  17842. void SetGlobalVar(StringHash, const Variant&);
  17843. operator Shader() const;
  17844. operator ShaderPrecache() const;
  17845. operator Skybox() const;
  17846. operator Slider() const;
  17847. operator SmoothedTransform() const;
  17848. operator Sound() const;
  17849. operator SoundListener() const;
  17850. operator SoundSource3D() const;
  17851. operator SoundSource() const;
  17852. operator SplinePath() const;
  17853. operator Sprite2D() const;
  17854. operator Sprite() const;
  17855. operator SpriteSheet2D() const;
  17856. operator StaticModel() const;
  17857. operator StaticModelGroup() const;
  17858. operator StaticSprite2D() const;
  17859. operator StretchableSprite2D() const;
  17860. const String& GetCategory() const;
  17861. const String& GetTypeName() const;
  17862. operator Technique() const;
  17863. operator Terrain() const;
  17864. operator TerrainPatch() const;
  17865. operator Text3D() const;
  17866. operator Text() const;
  17867. operator Texture2D() const;
  17868. operator Texture2DArray() const;
  17869. operator Texture3D() const;
  17870. operator Texture() const;
  17871. operator TextureCube() const;
  17872. operator TileMap2D() const;
  17873. operator TileMapLayer2D() const;
  17874. operator Time() const;
  17875. operator TmxFile2D() const;
  17876. operator ToolTip() const;
  17877. operator UI() const;
  17878. operator UIComponent() const;
  17879. operator UIElement() const;
  17880. operator UISelectable() const;
  17881. operator UnknownComponent() const;
  17882. void UnsubscribeFromAllEvents();
  17883. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17884. void UnsubscribeFromEvent(Object, StringHash);
  17885. void UnsubscribeFromEvent(StringHash);
  17886. void UnsubscribeFromEvents(Object);
  17887. operator ValueAnimation() const;
  17888. const Variant& GetGlobalVar(StringHash) const;
  17889. const VariantMap& GetGlobalVars() const;
  17890. operator VertexBuffer() const;
  17891. operator View3D() const;
  17892. operator View() const;
  17893. operator Viewport() const;
  17894. int WeakRefs() const;
  17895. operator Window() const;
  17896. operator WorkQueue() const;
  17897. operator XMLFile() const;
  17898. operator Zone() const;
  17899. operator const Animatable() const;
  17900. operator const AnimatedModel() const;
  17901. operator const AnimatedSprite2D() const;
  17902. operator const Animation() const;
  17903. operator const AnimationController() const;
  17904. operator const AnimationSet2D() const;
  17905. operator const Audio() const;
  17906. operator const BillboardSet() const;
  17907. operator const BorderImage() const;
  17908. operator const Button() const;
  17909. operator const Camera() const;
  17910. operator const CheckBox() const;
  17911. operator const CollisionBox2D() const;
  17912. operator const CollisionChain2D() const;
  17913. operator const CollisionCircle2D() const;
  17914. operator const CollisionEdge2D() const;
  17915. operator const CollisionPolygon2D() const;
  17916. operator const CollisionShape2D() const;
  17917. operator const CollisionShape() const;
  17918. operator const Component() const;
  17919. operator const Connection() const;
  17920. operator const Console() const;
  17921. operator const ConstantBuffer() const;
  17922. operator const Constraint2D() const;
  17923. operator const Constraint() const;
  17924. operator const ConstraintDistance2D() const;
  17925. operator const ConstraintFriction2D() const;
  17926. operator const ConstraintGear2D() const;
  17927. operator const ConstraintMotor2D() const;
  17928. operator const ConstraintMouse2D() const;
  17929. operator const ConstraintPrismatic2D() const;
  17930. operator const ConstraintPulley2D() const;
  17931. operator const ConstraintRevolute2D() const;
  17932. operator const ConstraintRope2D() const;
  17933. operator const ConstraintWeld2D() const;
  17934. operator const ConstraintWheel2D() const;
  17935. operator const CrowdAgent() const;
  17936. operator const CrowdManager() const;
  17937. operator const Cursor() const;
  17938. operator const CustomGeometry() const;
  17939. operator const Database() const;
  17940. operator const DebugHud() const;
  17941. operator const DebugRenderer() const;
  17942. operator const DecalSet() const;
  17943. operator const Drawable2D() const;
  17944. operator const Drawable() const;
  17945. operator const DropDownList() const;
  17946. operator const DynamicNavigationMesh() const;
  17947. operator const Engine() const;
  17948. operator const EventProfiler() const;
  17949. operator const File() const;
  17950. operator const FileSelector() const;
  17951. operator const FileSystem() const;
  17952. operator const FileWatcher() const;
  17953. operator const Font() const;
  17954. operator const Geometry() const;
  17955. operator const Graphics() const;
  17956. operator const IKConstraint() const;
  17957. operator const IKEffector() const;
  17958. operator const IKSolver() const;
  17959. operator const Image() const;
  17960. operator const IndexBuffer() const;
  17961. operator const Input() const;
  17962. operator const JSONFile() const;
  17963. operator const Light() const;
  17964. operator const LineEdit() const;
  17965. operator const ListView() const;
  17966. operator const Localization() const;
  17967. operator const Log() const;
  17968. operator const LogicComponent() const;
  17969. operator const Material() const;
  17970. operator const Menu() const;
  17971. operator const MessageBox() const;
  17972. operator const Model() const;
  17973. operator const NamedPipe() const;
  17974. operator const NavArea() const;
  17975. operator const Navigable() const;
  17976. operator const NavigationMesh() const;
  17977. operator const Network() const;
  17978. operator const NetworkPriority() const;
  17979. operator const Node() const;
  17980. operator const ObjectAnimation() const;
  17981. operator const Obstacle() const;
  17982. operator const OcclusionBuffer() const;
  17983. operator const Octree() const;
  17984. operator const OffMeshConnection() const;
  17985. operator const PackageFile() const;
  17986. operator const ParticleEffect2D() const;
  17987. operator const ParticleEffect() const;
  17988. operator const ParticleEmitter2D() const;
  17989. operator const ParticleEmitter() const;
  17990. operator const PhysicsWorld2D() const;
  17991. operator const PhysicsWorld() const;
  17992. operator const Profiler() const;
  17993. operator const ProgressBar() const;
  17994. operator const RaycastVehicle() const;
  17995. operator const RefCounted() const;
  17996. operator const Renderer2D() const;
  17997. operator const Renderer() const;
  17998. operator const Resource() const;
  17999. operator const ResourceCache() const;
  18000. operator const ResourceWithMetadata() const;
  18001. operator const RibbonTrail() const;
  18002. operator const RigidBody2D() const;
  18003. operator const RigidBody() const;
  18004. operator const Scene() const;
  18005. operator const ScriptInstance() const;
  18006. operator const ScrollBar() const;
  18007. operator const ScrollView() const;
  18008. operator const Serializable() const;
  18009. operator const Shader() const;
  18010. operator const ShaderPrecache() const;
  18011. operator const Skybox() const;
  18012. operator const Slider() const;
  18013. operator const SmoothedTransform() const;
  18014. operator const Sound() const;
  18015. operator const SoundListener() const;
  18016. operator const SoundSource3D() const;
  18017. operator const SoundSource() const;
  18018. operator const SplinePath() const;
  18019. operator const Sprite2D() const;
  18020. operator const Sprite() const;
  18021. operator const SpriteSheet2D() const;
  18022. operator const StaticModel() const;
  18023. operator const StaticModelGroup() const;
  18024. operator const StaticSprite2D() const;
  18025. operator const StretchableSprite2D() const;
  18026. operator const Technique() const;
  18027. operator const Terrain() const;
  18028. operator const TerrainPatch() const;
  18029. operator const Text3D() const;
  18030. operator const Text() const;
  18031. operator const Texture2D() const;
  18032. operator const Texture2DArray() const;
  18033. operator const Texture3D() const;
  18034. operator const Texture() const;
  18035. operator const TextureCube() const;
  18036. operator const TileMap2D() const;
  18037. operator const TileMapLayer2D() const;
  18038. operator const Time() const;
  18039. operator const TmxFile2D() const;
  18040. operator const ToolTip() const;
  18041. operator const UI() const;
  18042. operator const UIComponent() const;
  18043. operator const UIElement() const;
  18044. operator const UISelectable() const;
  18045. operator const UnknownComponent() const;
  18046. operator const ValueAnimation() const;
  18047. operator const VertexBuffer() const;
  18048. operator const View3D() const;
  18049. operator const View() const;
  18050. operator const Viewport() const;
  18051. operator const Window() const;
  18052. operator const WorkQueue() const;
  18053. operator const XMLFile() const;
  18054. operator const Zone() const;
  18055. // Properties:
  18056. /* readonly */
  18057. String category;
  18058. Array<Variant> globalVar;
  18059. /* readonly */
  18060. VariantMap globalVars;
  18061. /* readonly */
  18062. int refs;
  18063. /* readonly */
  18064. StringHash type;
  18065. /* readonly */
  18066. String typeName;
  18067. /* readonly */
  18068. int weakRefs;
  18069. };
  18070. class ObjectAnimation
  18071. {
  18072. public:
  18073. ObjectAnimation();
  18074. // Methods:
  18075. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18076. bool BeginLoad(Deserializer&);
  18077. bool EndLoad();
  18078. AsyncLoadState GetAsyncLoadState() const;
  18079. ValueAnimation GetAttributeAnimation(const String&) const;
  18080. ValueAnimationInfo GetAttributeAnimationInfo(const String&) const;
  18081. float GetAttributeAnimationSpeed(const String&) const;
  18082. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18083. bool GetBlockEvents() const;
  18084. VariantMap& GetEventDataMap() const;
  18085. Object GetEventSender() const;
  18086. uint GetMemoryUse() const;
  18087. StringHash GetNameHash() const;
  18088. Object GetSubsystem(StringHash) const;
  18089. StringHash GetType() const;
  18090. uint GetUseTimer();
  18091. bool HasEventHandlers() const;
  18092. bool HasSubscribedToEvent(Object, StringHash) const;
  18093. bool HasSubscribedToEvent(StringHash) const;
  18094. bool IsInstanceOf(StringHash) const;
  18095. bool Load(Deserializer&);
  18096. bool Load(File);
  18097. bool Load(VectorBuffer&);
  18098. bool Load(const String&);
  18099. bool LoadFile(const String&);
  18100. bool LoadJSON(const JSONValue&);
  18101. bool LoadXML(const XMLElement&);
  18102. operator Object() const;
  18103. void OnEvent(Object, StringHash, VariantMap&);
  18104. operator RefCounted() const;
  18105. int Refs() const;
  18106. void RemoveAttributeAnimation(ValueAnimation);
  18107. void RemoveAttributeAnimation(const String&);
  18108. void ResetUseTimer();
  18109. operator Resource() const;
  18110. bool Save(File) const;
  18111. bool Save(Serializer&) const;
  18112. bool Save(VectorBuffer&) const;
  18113. bool Save(const String&) const;
  18114. bool SaveFile(const String&) const;
  18115. bool SaveJSON(JSONValue&) const;
  18116. bool SaveXML(XMLElement&) const;
  18117. void SendEvent(StringHash);
  18118. void SendEvent(StringHash, VariantMap&);
  18119. void SetAsyncLoadState(AsyncLoadState);
  18120. void SetBlockEvents(bool);
  18121. void SetGlobalVar(StringHash, const Variant&);
  18122. void SetMemoryUse(uint);
  18123. void SetName(const String&);
  18124. const String& GetCategory() const;
  18125. const String& GetName() const;
  18126. const String& GetTypeName() const;
  18127. void UnsubscribeFromAllEvents();
  18128. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18129. void UnsubscribeFromEvent(Object, StringHash);
  18130. void UnsubscribeFromEvent(StringHash);
  18131. void UnsubscribeFromEvents(Object);
  18132. const Variant& GetGlobalVar(StringHash) const;
  18133. const VariantMap& GetGlobalVars() const;
  18134. int WeakRefs() const;
  18135. operator const Object() const;
  18136. operator const RefCounted() const;
  18137. operator const Resource() const;
  18138. // Properties:
  18139. /* readonly */
  18140. Array<ValueAnimation> attributeAnimations;
  18141. /* readonly */
  18142. String category;
  18143. Array<Variant> globalVar;
  18144. /* readonly */
  18145. VariantMap globalVars;
  18146. /* readonly */
  18147. uint memoryUse;
  18148. String name;
  18149. /* readonly */
  18150. int refs;
  18151. /* readonly */
  18152. Array<float> speeds;
  18153. /* readonly */
  18154. StringHash type;
  18155. /* readonly */
  18156. String typeName;
  18157. /* readonly */
  18158. uint useTimer;
  18159. /* readonly */
  18160. int weakRefs;
  18161. /* readonly */
  18162. Array<WrapMode> wrapModes;
  18163. };
  18164. class ObjectFactory
  18165. {
  18166. public:
  18167. // Methods:
  18168. Object CreateObject();
  18169. StringHash GetType() const;
  18170. operator RefCounted() const;
  18171. int Refs() const;
  18172. const String& GetTypeName() const;
  18173. int WeakRefs() const;
  18174. operator const RefCounted() const;
  18175. // Properties:
  18176. /* readonly */
  18177. int refs;
  18178. /* readonly */
  18179. int weakRefs;
  18180. };
  18181. class Obstacle
  18182. {
  18183. public:
  18184. Obstacle();
  18185. // Methods:
  18186. void AllocateNetworkState();
  18187. operator Animatable() const;
  18188. void ApplyAttributes();
  18189. void CleanupConnection(Connection);
  18190. operator Component() const;
  18191. void DrawDebugGeometry(DebugRenderer, bool);
  18192. void DrawDebugGeometry(bool);
  18193. bool GetAnimationEnabled() const;
  18194. Variant GetAttribute(const String&) const;
  18195. Variant GetAttribute(uint) const;
  18196. ValueAnimation GetAttributeAnimation(const String&) const;
  18197. float GetAttributeAnimationSpeed(const String&) const;
  18198. float GetAttributeAnimationTime(const String&) const;
  18199. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18200. Variant GetAttributeDefault(const String&) const;
  18201. Variant GetAttributeDefault(uint) const;
  18202. bool GetBlockEvents() const;
  18203. Component GetComponent(StringHash) const;
  18204. VariantMap& GetEventDataMap() const;
  18205. Object GetEventSender() const;
  18206. float GetHeight() const;
  18207. uint GetID() const;
  18208. bool GetInterceptNetworkUpdate(const String&) const;
  18209. Node GetNode() const;
  18210. uint GetNumAttributes() const;
  18211. uint GetNumNetworkAttributes() const;
  18212. ObjectAnimation GetObjectAnimation() const;
  18213. ResourceRef GetObjectAnimationAttr() const;
  18214. uint GetObstacleID() const;
  18215. float GetRadius() const;
  18216. Scene GetScene() const;
  18217. Object GetSubsystem(StringHash) const;
  18218. StringHash GetType() const;
  18219. bool HasEventHandlers() const;
  18220. bool HasSubscribedToEvent(Object, StringHash) const;
  18221. bool HasSubscribedToEvent(StringHash) const;
  18222. bool IsEnabled() const;
  18223. bool IsEnabledEffective() const;
  18224. bool IsInstanceOf(StringHash) const;
  18225. bool IsReplicated() const;
  18226. bool IsTemporary() const;
  18227. bool Load(Deserializer&);
  18228. bool LoadJSON(const JSONValue&);
  18229. bool LoadXML(const XMLElement&);
  18230. void MarkNetworkUpdate();
  18231. operator Object() const;
  18232. void OnEvent(Object, StringHash, VariantMap&);
  18233. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18234. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18235. void OnSetEnabled();
  18236. void PrepareNetworkUpdate();
  18237. bool ReadDeltaUpdate(Deserializer&);
  18238. bool ReadLatestDataUpdate(Deserializer&);
  18239. operator RefCounted() const;
  18240. int Refs() const;
  18241. void Remove();
  18242. void RemoveAttributeAnimation(const String&);
  18243. void RemoveInstanceDefault();
  18244. void RemoveObjectAnimation();
  18245. void ResetToDefault();
  18246. bool Save(Serializer&) const;
  18247. bool SaveDefaultAttributes() const;
  18248. bool SaveJSON(JSONValue&) const;
  18249. bool SaveXML(XMLElement&) const;
  18250. void SendEvent(StringHash);
  18251. void SendEvent(StringHash, VariantMap&);
  18252. operator Serializable() const;
  18253. void SetAnimationEnabled(bool);
  18254. void SetAnimationTime(float);
  18255. bool SetAttribute(const String&, const Variant&);
  18256. bool SetAttribute(uint, const Variant&);
  18257. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18258. void SetAttributeAnimationSpeed(const String&, float);
  18259. void SetAttributeAnimationTime(const String&, float);
  18260. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18261. void SetBlockEvents(bool);
  18262. void SetEnabled(bool);
  18263. void SetGlobalVar(StringHash, const Variant&);
  18264. void SetHeight(float);
  18265. void SetInstanceDefault(bool);
  18266. void SetInterceptNetworkUpdate(const String&, bool);
  18267. void SetObjectAnimation(ObjectAnimation);
  18268. void SetObjectAnimationAttr(const ResourceRef&);
  18269. void SetRadius(float);
  18270. void SetTemporary(bool);
  18271. const String& GetCategory() const;
  18272. const String& GetTypeName() const;
  18273. void UnsubscribeFromAllEvents();
  18274. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18275. void UnsubscribeFromEvent(Object, StringHash);
  18276. void UnsubscribeFromEvent(StringHash);
  18277. void UnsubscribeFromEvents(Object);
  18278. const Variant& GetGlobalVar(StringHash) const;
  18279. const VariantMap& GetGlobalVars() const;
  18280. int WeakRefs() const;
  18281. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18282. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18283. void WriteLatestDataUpdate(Serializer&, uint8);
  18284. operator const Animatable() const;
  18285. operator const Component() const;
  18286. operator const Object() const;
  18287. operator const RefCounted() const;
  18288. operator const Serializable() const;
  18289. // Properties:
  18290. bool animationEnabled;
  18291. /* readonly */
  18292. Array<Variant> attributeDefaults;
  18293. /* readonly */
  18294. Array<AttributeInfo> attributeInfos;
  18295. Array<Variant> attributes;
  18296. /* readonly */
  18297. String category;
  18298. bool enabled;
  18299. /* readonly */
  18300. bool enabledEffective;
  18301. Array<Variant> globalVar;
  18302. /* readonly */
  18303. VariantMap globalVars;
  18304. float height;
  18305. /* readonly */
  18306. uint id;
  18307. /* readonly */
  18308. Node node;
  18309. /* readonly */
  18310. uint numAttributes;
  18311. ObjectAnimation objectAnimation;
  18312. /* readonly */
  18313. uint obstacleId;
  18314. float radius;
  18315. /* readonly */
  18316. int refs;
  18317. /* readonly */
  18318. bool replicated;
  18319. bool temporary;
  18320. /* readonly */
  18321. StringHash type;
  18322. /* readonly */
  18323. String typeName;
  18324. /* readonly */
  18325. int weakRefs;
  18326. };
  18327. class OcclusionBatch
  18328. {
  18329. public:
  18330. ~OcclusionBatch();
  18331. OcclusionBatch();
  18332. // Methods:
  18333. OcclusionBatch& operator=(const OcclusionBatch&);
  18334. // Properties:
  18335. uint drawCount;
  18336. uint drawStart;
  18337. uint indexSize;
  18338. Matrix3x4 model;
  18339. uint vertexSize;
  18340. };
  18341. class OcclusionBuffer
  18342. {
  18343. public:
  18344. OcclusionBuffer();
  18345. // Methods:
  18346. void BuildDepthHierarchy();
  18347. void Clear();
  18348. void DrawBatch(const OcclusionBatch&, uint);
  18349. void DrawTriangles();
  18350. bool GetBlockEvents() const;
  18351. CullMode GetCullMode() const;
  18352. VariantMap& GetEventDataMap() const;
  18353. Object GetEventSender() const;
  18354. int GetHeight() const;
  18355. uint GetMaxTriangles() const;
  18356. uint GetNumTriangles() const;
  18357. Object GetSubsystem(StringHash) const;
  18358. StringHash GetType() const;
  18359. uint GetUseTimer();
  18360. int GetWidth() const;
  18361. bool HasEventHandlers() const;
  18362. bool HasSubscribedToEvent(Object, StringHash) const;
  18363. bool HasSubscribedToEvent(StringHash) const;
  18364. bool IsInstanceOf(StringHash) const;
  18365. bool IsThreaded() const;
  18366. bool IsVisible(const BoundingBox&) const;
  18367. const Matrix3x4& GetView() const;
  18368. const Matrix4& GetProjection() const;
  18369. operator Object() const;
  18370. void OnEvent(Object, StringHash, VariantMap&);
  18371. operator RefCounted() const;
  18372. int Refs() const;
  18373. void Reset();
  18374. void ResetUseTimer();
  18375. void SendEvent(StringHash);
  18376. void SendEvent(StringHash, VariantMap&);
  18377. void SetBlockEvents(bool);
  18378. void SetCullMode(CullMode);
  18379. void SetGlobalVar(StringHash, const Variant&);
  18380. void SetMaxTriangles(uint);
  18381. bool SetSize(int, int, bool);
  18382. void SetView(Camera);
  18383. const String& GetCategory() const;
  18384. const String& GetTypeName() const;
  18385. void UnsubscribeFromAllEvents();
  18386. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18387. void UnsubscribeFromEvent(Object, StringHash);
  18388. void UnsubscribeFromEvent(StringHash);
  18389. void UnsubscribeFromEvents(Object);
  18390. const Variant& GetGlobalVar(StringHash) const;
  18391. const VariantMap& GetGlobalVars() const;
  18392. int WeakRefs() const;
  18393. operator const Object() const;
  18394. operator const RefCounted() const;
  18395. // Properties:
  18396. /* readonly */
  18397. String category;
  18398. Array<Variant> globalVar;
  18399. /* readonly */
  18400. VariantMap globalVars;
  18401. /* readonly */
  18402. int refs;
  18403. /* readonly */
  18404. StringHash type;
  18405. /* readonly */
  18406. String typeName;
  18407. /* readonly */
  18408. int weakRefs;
  18409. };
  18410. class OcclusionBufferData
  18411. {
  18412. public:
  18413. ~OcclusionBufferData();
  18414. OcclusionBufferData();
  18415. // Methods:
  18416. OcclusionBufferData& operator=(const OcclusionBufferData&);
  18417. // Properties:
  18418. bool used;
  18419. };
  18420. class Octree
  18421. {
  18422. public:
  18423. Octree();
  18424. // Methods:
  18425. void AddDrawable(Drawable);
  18426. void AddManualDrawable(Drawable);
  18427. void AllocateNetworkState();
  18428. operator Animatable() const;
  18429. void ApplyAttributes();
  18430. const BoundingBox& GetCullingBox() const;
  18431. const BoundingBox& GetWorldBoundingBox() const;
  18432. void CancelUpdate(Drawable);
  18433. bool CheckDrawableFit(const BoundingBox&) const;
  18434. void CleanupConnection(Connection);
  18435. operator Component() const;
  18436. void DeleteChild(uint);
  18437. void DrawDebugGeometry(DebugRenderer, bool);
  18438. void DrawDebugGeometry(bool);
  18439. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18440. bool GetAnimationEnabled() const;
  18441. Variant GetAttribute(const String&) const;
  18442. Variant GetAttribute(uint) const;
  18443. ValueAnimation GetAttributeAnimation(const String&) const;
  18444. float GetAttributeAnimationSpeed(const String&) const;
  18445. float GetAttributeAnimationTime(const String&) const;
  18446. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18447. Variant GetAttributeDefault(const String&) const;
  18448. Variant GetAttributeDefault(uint) const;
  18449. bool GetBlockEvents() const;
  18450. Component GetComponent(StringHash) const;
  18451. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18452. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18453. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18454. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18455. VariantMap& GetEventDataMap() const;
  18456. Object GetEventSender() const;
  18457. uint GetID() const;
  18458. bool GetInterceptNetworkUpdate(const String&) const;
  18459. uint GetLevel() const;
  18460. Node GetNode() const;
  18461. uint GetNumAttributes() const;
  18462. uint GetNumDrawables() const;
  18463. uint GetNumLevels() const;
  18464. uint GetNumNetworkAttributes() const;
  18465. ObjectAnimation GetObjectAnimation() const;
  18466. ResourceRef GetObjectAnimationAttr() const;
  18467. Octree GetRoot() const;
  18468. Scene GetScene() const;
  18469. Object GetSubsystem(StringHash) const;
  18470. StringHash GetType() const;
  18471. bool HasEventHandlers() const;
  18472. bool HasSubscribedToEvent(Object, StringHash) const;
  18473. bool HasSubscribedToEvent(StringHash) const;
  18474. void InsertDrawable(Drawable);
  18475. bool IsEmpty();
  18476. bool IsEnabled() const;
  18477. bool IsEnabledEffective() const;
  18478. bool IsInstanceOf(StringHash) const;
  18479. bool IsReplicated() const;
  18480. bool IsTemporary() const;
  18481. bool Load(Deserializer&);
  18482. bool LoadJSON(const JSONValue&);
  18483. bool LoadXML(const XMLElement&);
  18484. void MarkNetworkUpdate();
  18485. operator Object() const;
  18486. void OnEvent(Object, StringHash, VariantMap&);
  18487. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18488. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18489. void OnSetEnabled();
  18490. void PrepareNetworkUpdate();
  18491. void QueueUpdate(Drawable);
  18492. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  18493. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  18494. bool ReadDeltaUpdate(Deserializer&);
  18495. bool ReadLatestDataUpdate(Deserializer&);
  18496. operator RefCounted() const;
  18497. int Refs() const;
  18498. void Remove();
  18499. void RemoveAttributeAnimation(const String&);
  18500. void RemoveDrawable(Drawable, bool = true);
  18501. void RemoveInstanceDefault();
  18502. void RemoveManualDrawable(Drawable);
  18503. void RemoveObjectAnimation();
  18504. void ResetRoot();
  18505. void ResetToDefault();
  18506. bool Save(Serializer&) const;
  18507. bool SaveDefaultAttributes() const;
  18508. bool SaveJSON(JSONValue&) const;
  18509. bool SaveXML(XMLElement&) const;
  18510. void SendEvent(StringHash);
  18511. void SendEvent(StringHash, VariantMap&);
  18512. operator Serializable() const;
  18513. void SetAnimationEnabled(bool);
  18514. void SetAnimationTime(float);
  18515. bool SetAttribute(const String&, const Variant&);
  18516. bool SetAttribute(uint, const Variant&);
  18517. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18518. void SetAttributeAnimationSpeed(const String&, float);
  18519. void SetAttributeAnimationTime(const String&, float);
  18520. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18521. void SetBlockEvents(bool);
  18522. void SetEnabled(bool);
  18523. void SetGlobalVar(StringHash, const Variant&);
  18524. void SetInstanceDefault(bool);
  18525. void SetInterceptNetworkUpdate(const String&, bool);
  18526. void SetObjectAnimation(ObjectAnimation);
  18527. void SetObjectAnimationAttr(const ResourceRef&);
  18528. void SetSize(const BoundingBox&, uint);
  18529. void SetTemporary(bool);
  18530. const String& GetCategory() const;
  18531. const String& GetTypeName() const;
  18532. void UnsubscribeFromAllEvents();
  18533. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18534. void UnsubscribeFromEvent(Object, StringHash);
  18535. void UnsubscribeFromEvent(StringHash);
  18536. void UnsubscribeFromEvents(Object);
  18537. void Update(const FrameInfo&);
  18538. const Variant& GetGlobalVar(StringHash) const;
  18539. const VariantMap& GetGlobalVars() const;
  18540. int WeakRefs() const;
  18541. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18542. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18543. void WriteLatestDataUpdate(Serializer&, uint8);
  18544. operator const Animatable() const;
  18545. operator const Component() const;
  18546. operator const Object() const;
  18547. operator const RefCounted() const;
  18548. operator const Serializable() const;
  18549. // Properties:
  18550. bool animationEnabled;
  18551. /* readonly */
  18552. Array<Variant> attributeDefaults;
  18553. /* readonly */
  18554. Array<AttributeInfo> attributeInfos;
  18555. Array<Variant> attributes;
  18556. /* readonly */
  18557. String category;
  18558. bool enabled;
  18559. /* readonly */
  18560. bool enabledEffective;
  18561. Array<Variant> globalVar;
  18562. /* readonly */
  18563. VariantMap globalVars;
  18564. /* readonly */
  18565. uint id;
  18566. /* readonly */
  18567. Node node;
  18568. /* readonly */
  18569. uint numAttributes;
  18570. /* readonly */
  18571. uint numLevels;
  18572. ObjectAnimation objectAnimation;
  18573. /* readonly */
  18574. int refs;
  18575. /* readonly */
  18576. bool replicated;
  18577. bool temporary;
  18578. /* readonly */
  18579. StringHash type;
  18580. /* readonly */
  18581. String typeName;
  18582. /* readonly */
  18583. int weakRefs;
  18584. /* readonly */
  18585. BoundingBox worldBoundingBox;
  18586. };
  18587. class OctreeQueryResult
  18588. {
  18589. public:
  18590. ~OctreeQueryResult();
  18591. OctreeQueryResult();
  18592. // Methods:
  18593. OctreeQueryResult& operator=(const OctreeQueryResult&);
  18594. };
  18595. class OffMeshConnection
  18596. {
  18597. public:
  18598. OffMeshConnection();
  18599. // Methods:
  18600. void AllocateNetworkState();
  18601. operator Animatable() const;
  18602. void ApplyAttributes();
  18603. void CleanupConnection(Connection);
  18604. operator Component() const;
  18605. void DrawDebugGeometry(DebugRenderer, bool);
  18606. bool GetAnimationEnabled() const;
  18607. uint GetAreaID() const;
  18608. Variant GetAttribute(const String&) const;
  18609. Variant GetAttribute(uint) const;
  18610. ValueAnimation GetAttributeAnimation(const String&) const;
  18611. float GetAttributeAnimationSpeed(const String&) const;
  18612. float GetAttributeAnimationTime(const String&) const;
  18613. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18614. Variant GetAttributeDefault(const String&) const;
  18615. Variant GetAttributeDefault(uint) const;
  18616. bool GetBlockEvents() const;
  18617. Component GetComponent(StringHash) const;
  18618. Node GetEndPoint() const;
  18619. VariantMap& GetEventDataMap() const;
  18620. Object GetEventSender() const;
  18621. uint GetID() const;
  18622. bool GetInterceptNetworkUpdate(const String&) const;
  18623. uint GetMask() const;
  18624. Node GetNode() const;
  18625. uint GetNumAttributes() const;
  18626. uint GetNumNetworkAttributes() const;
  18627. ObjectAnimation GetObjectAnimation() const;
  18628. ResourceRef GetObjectAnimationAttr() const;
  18629. float GetRadius() const;
  18630. Scene GetScene() const;
  18631. Object GetSubsystem(StringHash) const;
  18632. StringHash GetType() const;
  18633. bool HasEventHandlers() const;
  18634. bool HasSubscribedToEvent(Object, StringHash) const;
  18635. bool HasSubscribedToEvent(StringHash) const;
  18636. bool IsBidirectional() const;
  18637. bool IsEnabled() const;
  18638. bool IsEnabledEffective() const;
  18639. bool IsInstanceOf(StringHash) const;
  18640. bool IsReplicated() const;
  18641. bool IsTemporary() const;
  18642. bool Load(Deserializer&);
  18643. bool LoadJSON(const JSONValue&);
  18644. bool LoadXML(const XMLElement&);
  18645. void MarkNetworkUpdate();
  18646. operator Object() const;
  18647. void OnEvent(Object, StringHash, VariantMap&);
  18648. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18649. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18650. void OnSetEnabled();
  18651. void PrepareNetworkUpdate();
  18652. bool ReadDeltaUpdate(Deserializer&);
  18653. bool ReadLatestDataUpdate(Deserializer&);
  18654. operator RefCounted() const;
  18655. int Refs() const;
  18656. void Remove();
  18657. void RemoveAttributeAnimation(const String&);
  18658. void RemoveInstanceDefault();
  18659. void RemoveObjectAnimation();
  18660. void ResetToDefault();
  18661. bool Save(Serializer&) const;
  18662. bool SaveDefaultAttributes() const;
  18663. bool SaveJSON(JSONValue&) const;
  18664. bool SaveXML(XMLElement&) const;
  18665. void SendEvent(StringHash);
  18666. void SendEvent(StringHash, VariantMap&);
  18667. operator Serializable() const;
  18668. void SetAnimationEnabled(bool);
  18669. void SetAnimationTime(float);
  18670. void SetAreaID(uint);
  18671. bool SetAttribute(const String&, const Variant&);
  18672. bool SetAttribute(uint, const Variant&);
  18673. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18674. void SetAttributeAnimationSpeed(const String&, float);
  18675. void SetAttributeAnimationTime(const String&, float);
  18676. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18677. void SetBidirectional(bool);
  18678. void SetBlockEvents(bool);
  18679. void SetEnabled(bool);
  18680. void SetEndPoint(Node);
  18681. void SetGlobalVar(StringHash, const Variant&);
  18682. void SetInstanceDefault(bool);
  18683. void SetInterceptNetworkUpdate(const String&, bool);
  18684. void SetMask(uint);
  18685. void SetObjectAnimation(ObjectAnimation);
  18686. void SetObjectAnimationAttr(const ResourceRef&);
  18687. void SetRadius(float);
  18688. void SetTemporary(bool);
  18689. const String& GetCategory() const;
  18690. const String& GetTypeName() const;
  18691. void UnsubscribeFromAllEvents();
  18692. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18693. void UnsubscribeFromEvent(Object, StringHash);
  18694. void UnsubscribeFromEvent(StringHash);
  18695. void UnsubscribeFromEvents(Object);
  18696. const Variant& GetGlobalVar(StringHash) const;
  18697. const VariantMap& GetGlobalVars() const;
  18698. int WeakRefs() const;
  18699. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18700. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18701. void WriteLatestDataUpdate(Serializer&, uint8);
  18702. operator const Animatable() const;
  18703. operator const Component() const;
  18704. operator const Object() const;
  18705. operator const RefCounted() const;
  18706. operator const Serializable() const;
  18707. // Properties:
  18708. bool animationEnabled;
  18709. uint areaID;
  18710. /* readonly */
  18711. Array<Variant> attributeDefaults;
  18712. /* readonly */
  18713. Array<AttributeInfo> attributeInfos;
  18714. Array<Variant> attributes;
  18715. bool bidirectional;
  18716. /* readonly */
  18717. String category;
  18718. bool enabled;
  18719. /* readonly */
  18720. bool enabledEffective;
  18721. Node endPoint;
  18722. Array<Variant> globalVar;
  18723. /* readonly */
  18724. VariantMap globalVars;
  18725. /* readonly */
  18726. uint id;
  18727. uint mask;
  18728. /* readonly */
  18729. Node node;
  18730. /* readonly */
  18731. uint numAttributes;
  18732. ObjectAnimation objectAnimation;
  18733. float radius;
  18734. /* readonly */
  18735. int refs;
  18736. /* readonly */
  18737. bool replicated;
  18738. bool temporary;
  18739. /* readonly */
  18740. StringHash type;
  18741. /* readonly */
  18742. String typeName;
  18743. /* readonly */
  18744. int weakRefs;
  18745. };
  18746. class OggVorbisSoundStream
  18747. {
  18748. public:
  18749. OggVorbisSoundStream(Sound&);
  18750. // Methods:
  18751. float GetFrequency() const;
  18752. uint GetIntFrequency() const;
  18753. uint GetSampleSize() const;
  18754. bool GetStopAtEnd() const;
  18755. bool IsSixteenBit() const;
  18756. bool IsStereo() const;
  18757. operator RefCounted() const;
  18758. int Refs() const;
  18759. bool Seek(uint);
  18760. void SetFormat(uint, bool, bool);
  18761. void SetStopAtEnd(bool);
  18762. operator SoundStream() const;
  18763. int WeakRefs() const;
  18764. operator const RefCounted() const;
  18765. operator const SoundStream() const;
  18766. // Properties:
  18767. /* readonly */
  18768. int refs;
  18769. /* readonly */
  18770. int weakRefs;
  18771. };
  18772. class PackageDownload
  18773. {
  18774. public:
  18775. ~PackageDownload();
  18776. PackageDownload();
  18777. // Methods:
  18778. PackageDownload& operator=(const PackageDownload&);
  18779. // Properties:
  18780. uint checksum;
  18781. bool initiated;
  18782. String name;
  18783. uint totalFragments;
  18784. };
  18785. class PackageEntry
  18786. {
  18787. public:
  18788. // Methods:
  18789. PackageEntry& operator=(const PackageEntry&);
  18790. // Properties:
  18791. uint checksum;
  18792. uint offset;
  18793. uint size;
  18794. };
  18795. class PackageFile
  18796. {
  18797. public:
  18798. PackageFile();
  18799. PackageFile(const String&in, uint = 0);
  18800. // Methods:
  18801. bool Exists(const String&) const;
  18802. bool GetBlockEvents() const;
  18803. uint GetChecksum() const;
  18804. Array<String> GetEntryNames() const;
  18805. VariantMap& GetEventDataMap() const;
  18806. Object GetEventSender() const;
  18807. StringHash GetNameHash() const;
  18808. uint GetNumFiles() const;
  18809. Object GetSubsystem(StringHash) const;
  18810. uint GetTotalDataSize() const;
  18811. uint GetTotalSize() const;
  18812. StringHash GetType() const;
  18813. bool HasEventHandlers() const;
  18814. bool HasSubscribedToEvent(Object, StringHash) const;
  18815. bool HasSubscribedToEvent(StringHash) const;
  18816. bool IsCompressed() const;
  18817. bool IsInstanceOf(StringHash) const;
  18818. operator Object() const;
  18819. void OnEvent(Object, StringHash, VariantMap&);
  18820. bool Open(const String&, uint = 0);
  18821. operator RefCounted() const;
  18822. int Refs() const;
  18823. void SendEvent(StringHash);
  18824. void SendEvent(StringHash, VariantMap&);
  18825. void SetBlockEvents(bool);
  18826. void SetGlobalVar(StringHash, const Variant&);
  18827. const String& GetCategory() const;
  18828. const String& GetName() const;
  18829. const String& GetTypeName() const;
  18830. void UnsubscribeFromAllEvents();
  18831. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18832. void UnsubscribeFromEvent(Object, StringHash);
  18833. void UnsubscribeFromEvent(StringHash);
  18834. void UnsubscribeFromEvents(Object);
  18835. const Variant& GetGlobalVar(StringHash) const;
  18836. const VariantMap& GetGlobalVars() const;
  18837. int WeakRefs() const;
  18838. operator const Object() const;
  18839. operator const RefCounted() const;
  18840. // Properties:
  18841. /* readonly */
  18842. String category;
  18843. /* readonly */
  18844. uint checksum;
  18845. /* readonly */
  18846. bool compressed;
  18847. Array<Variant> globalVar;
  18848. /* readonly */
  18849. VariantMap globalVars;
  18850. /* readonly */
  18851. String name;
  18852. /* readonly */
  18853. uint numFiles;
  18854. /* readonly */
  18855. int refs;
  18856. /* readonly */
  18857. uint totalDataSize;
  18858. /* readonly */
  18859. uint totalSize;
  18860. /* readonly */
  18861. StringHash type;
  18862. /* readonly */
  18863. String typeName;
  18864. /* readonly */
  18865. int weakRefs;
  18866. };
  18867. class PackageUpload
  18868. {
  18869. public:
  18870. ~PackageUpload();
  18871. PackageUpload();
  18872. // Methods:
  18873. PackageUpload& operator=(const PackageUpload&);
  18874. // Properties:
  18875. uint fragment;
  18876. uint totalFragments;
  18877. };
  18878. class Particle
  18879. {
  18880. public:
  18881. ~Particle();
  18882. Particle();
  18883. // Methods:
  18884. Particle& operator=(const Particle&);
  18885. // Properties:
  18886. uint colorIndex;
  18887. float rotationSpeed;
  18888. float scale;
  18889. Vector2 size;
  18890. uint texIndex;
  18891. float timeToLive;
  18892. float timer;
  18893. Vector3 velocity;
  18894. };
  18895. class Particle2D
  18896. {
  18897. public:
  18898. ~Particle2D();
  18899. Particle2D();
  18900. // Methods:
  18901. Particle2D& operator=(const Particle2D&);
  18902. // Properties:
  18903. Color color;
  18904. Color colorDelta;
  18905. float emitRadius;
  18906. float emitRadiusDelta;
  18907. float emitRotation;
  18908. float emitRotationDelta;
  18909. Vector3 position;
  18910. float radialAcceleration;
  18911. float rotation;
  18912. float rotationDelta;
  18913. float size;
  18914. float sizeDelta;
  18915. Vector2 startPos;
  18916. float tangentialAcceleration;
  18917. float timeToLive;
  18918. Vector2 velocity;
  18919. };
  18920. class ParticleEffect
  18921. {
  18922. public:
  18923. ParticleEffect();
  18924. // Methods:
  18925. void AddColorFrame(const ColorFrame&);
  18926. void AddColorTime(const Color&, float);
  18927. void AddTextureFrame(const TextureFrame&);
  18928. void AddTextureTime(const Rect&, float);
  18929. bool BeginLoad(Deserializer&);
  18930. ParticleEffect Clone(const String& = String :: EMPTY) const;
  18931. bool EndLoad();
  18932. float GetActiveTime() const;
  18933. float GetAnimationLodBias() const;
  18934. AsyncLoadState GetAsyncLoadState() const;
  18935. bool GetBlockEvents() const;
  18936. ColorFrame GetColorFrame(uint) const;
  18937. float GetDampingForce() const;
  18938. EmitterType GetEmitterType() const;
  18939. VariantMap& GetEventDataMap() const;
  18940. Object GetEventSender() const;
  18941. FaceCameraMode GetFaceCameraMode() const;
  18942. float GetInactiveTime() const;
  18943. Material GetMaterial() const;
  18944. float GetMaxEmissionRate() const;
  18945. float GetMaxRotation() const;
  18946. float GetMaxRotationSpeed() const;
  18947. float GetMaxTimeToLive() const;
  18948. float GetMaxVelocity() const;
  18949. uint GetMemoryUse() const;
  18950. float GetMinEmissionRate() const;
  18951. float GetMinRotation() const;
  18952. float GetMinRotationSpeed() const;
  18953. float GetMinTimeToLive() const;
  18954. float GetMinVelocity() const;
  18955. StringHash GetNameHash() const;
  18956. uint GetNumColorFrames() const;
  18957. uint GetNumParticles() const;
  18958. uint GetNumTextureFrames() const;
  18959. Vector3 GetRandomDirection() const;
  18960. float GetRandomRotation() const;
  18961. float GetRandomRotationSpeed() const;
  18962. Vector2 GetRandomSize() const;
  18963. float GetRandomTimeToLive() const;
  18964. float GetRandomVelocity() const;
  18965. float GetSizeAdd() const;
  18966. float GetSizeMul() const;
  18967. Object GetSubsystem(StringHash) const;
  18968. TextureFrame GetTextureFrame(uint) const;
  18969. StringHash GetType() const;
  18970. bool GetUpdateInvisible() const;
  18971. uint GetUseTimer();
  18972. bool HasEventHandlers() const;
  18973. bool HasSubscribedToEvent(Object, StringHash) const;
  18974. bool HasSubscribedToEvent(StringHash) const;
  18975. bool IsFixedScreenSize() const;
  18976. bool IsInstanceOf(StringHash) const;
  18977. bool IsRelative() const;
  18978. bool IsScaled() const;
  18979. bool IsSorted() const;
  18980. bool Load(Deserializer&);
  18981. bool Load(File);
  18982. bool Load(VectorBuffer&);
  18983. bool Load(const String&);
  18984. bool Load(const XMLElement&);
  18985. bool LoadFile(const String&);
  18986. operator Object() const;
  18987. void OnEvent(Object, StringHash, VariantMap&);
  18988. operator RefCounted() const;
  18989. int Refs() const;
  18990. void RemoveColorFrame(uint);
  18991. void RemoveTextureFrame(uint);
  18992. void ResetUseTimer();
  18993. operator Resource() const;
  18994. bool Save(File) const;
  18995. bool Save(Serializer&) const;
  18996. bool Save(VectorBuffer&) const;
  18997. bool Save(XMLElement&) const;
  18998. bool Save(const String&) const;
  18999. bool SaveFile(const String&) const;
  19000. void SendEvent(StringHash);
  19001. void SendEvent(StringHash, VariantMap&);
  19002. void SetActiveTime(float);
  19003. void SetAnimationLodBias(float);
  19004. void SetAsyncLoadState(AsyncLoadState);
  19005. void SetBlockEvents(bool);
  19006. void SetColorFrame(uint, const ColorFrame&);
  19007. void SetConstantForce(const Vector3&);
  19008. void SetDampingForce(float);
  19009. void SetEmitterSize(const Vector3&);
  19010. void SetEmitterType(EmitterType);
  19011. void SetFaceCameraMode(FaceCameraMode);
  19012. void SetFixedScreenSize(bool);
  19013. void SetGlobalVar(StringHash, const Variant&);
  19014. void SetInactiveTime(float);
  19015. void SetMaterial(Material);
  19016. void SetMaxDirection(const Vector3&);
  19017. void SetMaxEmissionRate(float);
  19018. void SetMaxParticleSize(const Vector2&);
  19019. void SetMaxRotation(float);
  19020. void SetMaxRotationSpeed(float);
  19021. void SetMaxTimeToLive(float);
  19022. void SetMaxVelocity(float);
  19023. void SetMemoryUse(uint);
  19024. void SetMinDirection(const Vector3&);
  19025. void SetMinEmissionRate(float);
  19026. void SetMinParticleSize(const Vector2&);
  19027. void SetMinRotation(float);
  19028. void SetMinRotationSpeed(float);
  19029. void SetMinTimeToLive(float);
  19030. void SetMinVelocity(float);
  19031. void SetName(const String&);
  19032. void SetNumColorFrames(uint);
  19033. void SetNumParticles(uint);
  19034. void SetNumTextureFrames(uint);
  19035. void SetRelative(bool);
  19036. void SetScaled(bool);
  19037. void SetSizeAdd(float);
  19038. void SetSizeMul(float);
  19039. void SetSorted(bool);
  19040. void SetTextureFrame(uint, const TextureFrame&);
  19041. void SetUpdateInvisible(bool);
  19042. void SortColorFrames();
  19043. void SortTextureFrames();
  19044. const String& GetCategory() const;
  19045. const String& GetName() const;
  19046. const String& GetTypeName() const;
  19047. void UnsubscribeFromAllEvents();
  19048. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19049. void UnsubscribeFromEvent(Object, StringHash);
  19050. void UnsubscribeFromEvent(StringHash);
  19051. void UnsubscribeFromEvents(Object);
  19052. const Variant& GetGlobalVar(StringHash) const;
  19053. const VariantMap& GetGlobalVars() const;
  19054. const Vector2& GetMaxParticleSize() const;
  19055. const Vector2& GetMinParticleSize() const;
  19056. const Vector3& GetConstantForce() const;
  19057. const Vector3& GetEmitterSize() const;
  19058. const Vector3& GetMaxDirection() const;
  19059. const Vector3& GetMinDirection() const;
  19060. int WeakRefs() const;
  19061. operator const Object() const;
  19062. operator const RefCounted() const;
  19063. operator const Resource() const;
  19064. // Properties:
  19065. float activeTime;
  19066. float animationLodBias;
  19067. /* readonly */
  19068. String category;
  19069. Vector3 constantForce;
  19070. float dampingForce;
  19071. Vector3 emitterSize;
  19072. EmitterType emitterType;
  19073. FaceCameraMode faceCameraMode;
  19074. bool fixedScreenSize;
  19075. Array<Variant> globalVar;
  19076. /* readonly */
  19077. VariantMap globalVars;
  19078. float inactiveTime;
  19079. Material material;
  19080. Vector3 maxDirection;
  19081. float maxEmissionRate;
  19082. Vector2 maxParticleSize;
  19083. float maxRotation;
  19084. float maxRotationSpeed;
  19085. float maxTimeToLive;
  19086. float maxVelocity;
  19087. /* readonly */
  19088. uint memoryUse;
  19089. Vector3 minDirection;
  19090. float minEmissionRate;
  19091. Vector2 minParticleSize;
  19092. float minRotation;
  19093. float minRotationSpeed;
  19094. float minTimeToLive;
  19095. float minVelocity;
  19096. String name;
  19097. uint numColorFrames;
  19098. uint numParticles;
  19099. uint numTextureFrames;
  19100. /* readonly */
  19101. int refs;
  19102. bool relative;
  19103. bool scaled;
  19104. float sizeAdd;
  19105. float sizeMul;
  19106. bool sorted;
  19107. /* readonly */
  19108. StringHash type;
  19109. /* readonly */
  19110. String typeName;
  19111. bool updateInvisible;
  19112. /* readonly */
  19113. uint useTimer;
  19114. /* readonly */
  19115. int weakRefs;
  19116. };
  19117. class ParticleEffect2D
  19118. {
  19119. public:
  19120. ParticleEffect2D();
  19121. // Methods:
  19122. bool BeginLoad(Deserializer&);
  19123. ParticleEffect2D Clone(const String& = String :: EMPTY) const;
  19124. const Color& GetFinishColor() const;
  19125. const Color& GetFinishColorVariance() const;
  19126. const Color& GetStartColor() const;
  19127. const Color& GetStartColorVariance() const;
  19128. bool EndLoad();
  19129. float GetAngle() const;
  19130. float GetAngleVariance() const;
  19131. AsyncLoadState GetAsyncLoadState() const;
  19132. BlendMode GetBlendMode() const;
  19133. bool GetBlockEvents() const;
  19134. float GetDuration() const;
  19135. EmitterType2D GetEmitterType() const;
  19136. VariantMap& GetEventDataMap() const;
  19137. Object GetEventSender() const;
  19138. float GetFinishParticleSize() const;
  19139. float GetFinishParticleSizeVariance() const;
  19140. int GetMaxParticles() const;
  19141. float GetMaxRadius() const;
  19142. float GetMaxRadiusVariance() const;
  19143. uint GetMemoryUse() const;
  19144. float GetMinRadius() const;
  19145. float GetMinRadiusVariance() const;
  19146. StringHash GetNameHash() const;
  19147. float GetParticleLifeSpan() const;
  19148. float GetParticleLifespanVariance() const;
  19149. float GetRadialAccelVariance() const;
  19150. float GetRadialAcceleration() const;
  19151. float GetRotatePerSecond() const;
  19152. float GetRotatePerSecondVariance() const;
  19153. float GetRotationEnd() const;
  19154. float GetRotationEndVariance() const;
  19155. float GetRotationStart() const;
  19156. float GetRotationStartVariance() const;
  19157. float GetSpeed() const;
  19158. float GetSpeedVariance() const;
  19159. Sprite2D GetSprite() const;
  19160. float GetStartParticleSize() const;
  19161. float GetStartParticleSizeVariance() const;
  19162. Object GetSubsystem(StringHash) const;
  19163. float GetTangentialAccelVariance() const;
  19164. float GetTangentialAcceleration() const;
  19165. StringHash GetType() const;
  19166. uint GetUseTimer();
  19167. bool HasEventHandlers() const;
  19168. bool HasSubscribedToEvent(Object, StringHash) const;
  19169. bool HasSubscribedToEvent(StringHash) const;
  19170. bool IsInstanceOf(StringHash) const;
  19171. bool Load(Deserializer&);
  19172. bool Load(File);
  19173. bool Load(VectorBuffer&);
  19174. bool Load(const String&);
  19175. bool LoadFile(const String&);
  19176. operator Object() const;
  19177. void OnEvent(Object, StringHash, VariantMap&);
  19178. operator RefCounted() const;
  19179. int Refs() const;
  19180. void ResetUseTimer();
  19181. operator Resource() const;
  19182. bool Save(File) const;
  19183. bool Save(Serializer&) const;
  19184. bool Save(VectorBuffer&) const;
  19185. bool Save(const String&) const;
  19186. bool SaveFile(const String&) const;
  19187. void SendEvent(StringHash);
  19188. void SendEvent(StringHash, VariantMap&);
  19189. void SetAngle(float);
  19190. void SetAngleVariance(float);
  19191. void SetAsyncLoadState(AsyncLoadState);
  19192. void SetBlendMode(BlendMode);
  19193. void SetBlockEvents(bool);
  19194. void SetDuration(float);
  19195. void SetEmitterType(EmitterType2D);
  19196. void SetFinishColor(const Color&);
  19197. void SetFinishColorVariance(const Color&);
  19198. void SetFinishParticleSize(float);
  19199. void SetFinishParticleSizeVariance(float);
  19200. void SetGlobalVar(StringHash, const Variant&);
  19201. void SetGravity(const Vector2&);
  19202. void SetMaxParticles(int);
  19203. void SetMaxRadius(float);
  19204. void SetMaxRadiusVariance(float);
  19205. void SetMemoryUse(uint);
  19206. void SetMinRadius(float);
  19207. void SetMinRadiusVariance(float);
  19208. void SetName(const String&);
  19209. void SetParticleLifeSpan(float);
  19210. void SetParticleLifespanVariance(float);
  19211. void SetRadialAccelVariance(float);
  19212. void SetRadialAcceleration(float);
  19213. void SetRotatePerSecond(float);
  19214. void SetRotatePerSecondVariance(float);
  19215. void SetRotationEnd(float);
  19216. void SetRotationEndVariance(float);
  19217. void SetRotationStart(float);
  19218. void SetRotationStartVariance(float);
  19219. void SetSourcePositionVariance(const Vector2&);
  19220. void SetSpeed(float);
  19221. void SetSpeedVariance(float);
  19222. void SetSprite(Sprite2D);
  19223. void SetStartColor(const Color&);
  19224. void SetStartColorVariance(const Color&);
  19225. void SetStartParticleSize(float);
  19226. void SetStartParticleSizeVariance(float);
  19227. void SetTangentialAccelVariance(float);
  19228. void SetTangentialAcceleration(float);
  19229. const String& GetCategory() const;
  19230. const String& GetName() const;
  19231. const String& GetTypeName() const;
  19232. void UnsubscribeFromAllEvents();
  19233. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19234. void UnsubscribeFromEvent(Object, StringHash);
  19235. void UnsubscribeFromEvent(StringHash);
  19236. void UnsubscribeFromEvents(Object);
  19237. const Variant& GetGlobalVar(StringHash) const;
  19238. const VariantMap& GetGlobalVars() const;
  19239. const Vector2& GetGravity() const;
  19240. const Vector2& GetSourcePositionVariance() const;
  19241. int WeakRefs() const;
  19242. operator const Object() const;
  19243. operator const RefCounted() const;
  19244. operator const Resource() const;
  19245. // Properties:
  19246. /* readonly */
  19247. String category;
  19248. Array<Variant> globalVar;
  19249. /* readonly */
  19250. VariantMap globalVars;
  19251. /* readonly */
  19252. uint memoryUse;
  19253. String name;
  19254. /* readonly */
  19255. int refs;
  19256. /* readonly */
  19257. StringHash type;
  19258. /* readonly */
  19259. String typeName;
  19260. /* readonly */
  19261. uint useTimer;
  19262. /* readonly */
  19263. int weakRefs;
  19264. };
  19265. class ParticleEmitter
  19266. {
  19267. public:
  19268. ParticleEmitter();
  19269. // Methods:
  19270. void AddLight(Light);
  19271. void AddVertexLight(Light);
  19272. void AllocateNetworkState();
  19273. operator Animatable() const;
  19274. void ApplyAttributes();
  19275. void ApplyEffect();
  19276. operator BillboardSet() const;
  19277. const BoundingBox& GetBoundingBox() const;
  19278. const BoundingBox& GetWorldBoundingBox();
  19279. void CleanupConnection(Connection);
  19280. void Commit();
  19281. operator Component() const;
  19282. void DrawDebugGeometry(DebugRenderer, bool);
  19283. bool DrawOcclusion(OcclusionBuffer);
  19284. operator Drawable() const;
  19285. bool GetAnimationEnabled() const;
  19286. float GetAnimationLodBias() const;
  19287. Variant GetAttribute(const String&) const;
  19288. Variant GetAttribute(uint) const;
  19289. ValueAnimation GetAttributeAnimation(const String&) const;
  19290. float GetAttributeAnimationSpeed(const String&) const;
  19291. float GetAttributeAnimationTime(const String&) const;
  19292. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19293. Variant GetAttributeDefault(const String&) const;
  19294. Variant GetAttributeDefault(uint) const;
  19295. AutoRemoveMode GetAutoRemoveMode() const;
  19296. Billboard GetBillboard(uint);
  19297. bool GetBlockEvents() const;
  19298. bool GetCastShadows() const;
  19299. Component GetComponent(StringHash) const;
  19300. float GetDistance() const;
  19301. float GetDrawDistance() const;
  19302. uint8 GetDrawableFlags() const;
  19303. ParticleEffect GetEffect() const;
  19304. ResourceRef GetEffectAttr() const;
  19305. VariantMap& GetEventDataMap() const;
  19306. Object GetEventSender() const;
  19307. FaceCameraMode GetFaceCameraMode() const;
  19308. Light GetFirstLight() const;
  19309. uint GetID() const;
  19310. bool GetInterceptNetworkUpdate(const String&) const;
  19311. uint GetLightMask() const;
  19312. Array<Light> GetLights() const;
  19313. float GetLodBias() const;
  19314. float GetLodDistance() const;
  19315. Geometry GetLodGeometry(uint, uint);
  19316. Material GetMaterial() const;
  19317. ResourceRef GetMaterialAttr() const;
  19318. uint GetMaxLights() const;
  19319. float GetMaxZ() const;
  19320. float GetMinAngle() const;
  19321. float GetMinZ() const;
  19322. Node GetNode() const;
  19323. uint GetNumAttributes() const;
  19324. uint GetNumBillboards() const;
  19325. uint GetNumNetworkAttributes() const;
  19326. uint GetNumOccluderTriangles();
  19327. uint GetNumParticles() const;
  19328. ObjectAnimation GetObjectAnimation() const;
  19329. ResourceRef GetObjectAnimationAttr() const;
  19330. Scene GetScene() const;
  19331. bool GetSerializeParticles() const;
  19332. float GetShadowDistance() const;
  19333. uint GetShadowMask() const;
  19334. float GetSortValue() const;
  19335. Object GetSubsystem(StringHash) const;
  19336. StringHash GetType() const;
  19337. UpdateGeometryType GetUpdateGeometryType();
  19338. Array<Light> GetVertexLights() const;
  19339. uint GetViewMask() const;
  19340. Zone GetZone() const;
  19341. uint GetZoneMask() const;
  19342. bool HasBasePass(uint) const;
  19343. bool HasEventHandlers() const;
  19344. bool HasSubscribedToEvent(Object, StringHash) const;
  19345. bool HasSubscribedToEvent(StringHash) const;
  19346. bool IsEmitting() const;
  19347. bool IsEnabled() const;
  19348. bool IsEnabledEffective() const;
  19349. bool IsFixedScreenSize() const;
  19350. bool IsInView() const;
  19351. bool IsInView(Camera) const;
  19352. bool IsInView(const FrameInfo&, bool = false) const;
  19353. bool IsInstanceOf(StringHash) const;
  19354. bool IsOccludee() const;
  19355. bool IsOccluder() const;
  19356. bool IsRelative() const;
  19357. bool IsReplicated() const;
  19358. bool IsScaled() const;
  19359. bool IsSorted() const;
  19360. bool IsTemporary() const;
  19361. bool IsZoneDirty() const;
  19362. void LimitLights();
  19363. void LimitVertexLights(bool);
  19364. bool Load(Deserializer&);
  19365. bool LoadJSON(const JSONValue&);
  19366. bool LoadXML(const XMLElement&);
  19367. void MarkForUpdate();
  19368. void MarkInView(const FrameInfo&);
  19369. void MarkInView(uint);
  19370. void MarkNetworkUpdate();
  19371. operator Object() const;
  19372. void OnEvent(Object, StringHash, VariantMap&);
  19373. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19374. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19375. void OnSetEnabled();
  19376. void PrepareNetworkUpdate();
  19377. bool ReadDeltaUpdate(Deserializer&);
  19378. bool ReadLatestDataUpdate(Deserializer&);
  19379. operator RefCounted() const;
  19380. int Refs() const;
  19381. void Remove();
  19382. void RemoveAllParticles();
  19383. void RemoveAttributeAnimation(const String&);
  19384. void RemoveInstanceDefault();
  19385. void RemoveObjectAnimation();
  19386. void Reset();
  19387. void ResetEmissionTimer();
  19388. void ResetToDefault();
  19389. bool Save(Serializer&) const;
  19390. bool SaveDefaultAttributes() const;
  19391. bool SaveJSON(JSONValue&) const;
  19392. bool SaveXML(XMLElement&) const;
  19393. void SendEvent(StringHash);
  19394. void SendEvent(StringHash, VariantMap&);
  19395. operator Serializable() const;
  19396. void SetAnimationEnabled(bool);
  19397. void SetAnimationLodBias(float);
  19398. void SetAnimationTime(float);
  19399. bool SetAttribute(const String&, const Variant&);
  19400. bool SetAttribute(uint, const Variant&);
  19401. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19402. void SetAttributeAnimationSpeed(const String&, float);
  19403. void SetAttributeAnimationTime(const String&, float);
  19404. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19405. void SetAutoRemoveMode(AutoRemoveMode);
  19406. void SetBasePass(uint);
  19407. void SetBlockEvents(bool);
  19408. void SetCastShadows(bool);
  19409. void SetDrawDistance(float);
  19410. void SetEffect(ParticleEffect);
  19411. void SetEffectAttr(const ResourceRef&);
  19412. void SetEmitting(bool);
  19413. void SetEnabled(bool);
  19414. void SetFaceCameraMode(FaceCameraMode);
  19415. void SetFixedScreenSize(bool);
  19416. void SetGlobalVar(StringHash, const Variant&);
  19417. void SetInstanceDefault(bool);
  19418. void SetInterceptNetworkUpdate(const String&, bool);
  19419. void SetLightMask(uint);
  19420. void SetLodBias(float);
  19421. void SetMaterial(Material);
  19422. void SetMaterialAttr(const ResourceRef&);
  19423. void SetMaxLights(uint);
  19424. void SetMinAngle(float);
  19425. void SetMinMaxZ(float, float);
  19426. void SetNumBillboards(uint);
  19427. void SetNumParticles(uint);
  19428. void SetObjectAnimation(ObjectAnimation);
  19429. void SetObjectAnimationAttr(const ResourceRef&);
  19430. void SetOccludee(bool);
  19431. void SetOccluder(bool);
  19432. void SetRelative(bool);
  19433. void SetScaled(bool);
  19434. void SetSerializeParticles(bool);
  19435. void SetShadowDistance(float);
  19436. void SetShadowMask(uint);
  19437. void SetSortValue(float);
  19438. void SetSorted(bool);
  19439. void SetTemporary(bool);
  19440. void SetViewMask(uint);
  19441. void SetZone(Zone, bool = false);
  19442. void SetZoneMask(uint);
  19443. const String& GetCategory() const;
  19444. const String& GetTypeName() const;
  19445. void UnsubscribeFromAllEvents();
  19446. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19447. void UnsubscribeFromEvent(Object, StringHash);
  19448. void UnsubscribeFromEvent(StringHash);
  19449. void UnsubscribeFromEvents(Object);
  19450. void Update(const FrameInfo&);
  19451. void UpdateBatches(const FrameInfo&);
  19452. void UpdateGeometry(const FrameInfo&);
  19453. const Variant& GetGlobalVar(StringHash) const;
  19454. const VariantMap& GetGlobalVars() const;
  19455. int WeakRefs() const;
  19456. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  19457. void WriteInitialDeltaUpdate(Serializer&, uint8);
  19458. void WriteLatestDataUpdate(Serializer&, uint8);
  19459. operator const Animatable() const;
  19460. operator const BillboardSet() const;
  19461. operator const Component() const;
  19462. operator const Drawable() const;
  19463. operator const Object() const;
  19464. operator const RefCounted() const;
  19465. operator const Serializable() const;
  19466. // Properties:
  19467. bool animationEnabled;
  19468. float animationLodBias;
  19469. /* readonly */
  19470. Array<Variant> attributeDefaults;
  19471. /* readonly */
  19472. Array<AttributeInfo> attributeInfos;
  19473. Array<Variant> attributes;
  19474. AutoRemoveMode autoRemoveMode;
  19475. /* readonly */
  19476. Array<Billboard> billboards;
  19477. /* readonly */
  19478. BoundingBox boundingBox;
  19479. bool castShadows;
  19480. /* readonly */
  19481. String category;
  19482. float drawDistance;
  19483. ParticleEffect effect;
  19484. bool emitting;
  19485. bool enabled;
  19486. /* readonly */
  19487. bool enabledEffective;
  19488. FaceCameraMode faceCameraMode;
  19489. bool fixedScreenSize;
  19490. Array<Variant> globalVar;
  19491. /* readonly */
  19492. VariantMap globalVars;
  19493. /* readonly */
  19494. uint id;
  19495. /* readonly */
  19496. bool inView;
  19497. uint lightMask;
  19498. float lodBias;
  19499. Material material;
  19500. uint maxLights;
  19501. float minAngle;
  19502. /* readonly */
  19503. Node node;
  19504. /* readonly */
  19505. uint numAttributes;
  19506. uint numBillboards;
  19507. uint numParticles;
  19508. ObjectAnimation objectAnimation;
  19509. bool occludee;
  19510. bool occluder;
  19511. /* readonly */
  19512. int refs;
  19513. bool relative;
  19514. /* readonly */
  19515. bool replicated;
  19516. bool scaled;
  19517. bool serializeParticles;
  19518. float shadowDistance;
  19519. uint shadowMask;
  19520. bool sorted;
  19521. bool temporary;
  19522. /* readonly */
  19523. StringHash type;
  19524. /* readonly */
  19525. String typeName;
  19526. uint viewMask;
  19527. /* readonly */
  19528. int weakRefs;
  19529. /* readonly */
  19530. BoundingBox worldBoundingBox;
  19531. /* readonly */
  19532. Zone zone;
  19533. uint zoneMask;
  19534. };
  19535. class ParticleEmitter2D
  19536. {
  19537. public:
  19538. ParticleEmitter2D();
  19539. // Methods:
  19540. void AddLight(Light);
  19541. void AddVertexLight(Light);
  19542. void AllocateNetworkState();
  19543. operator Animatable() const;
  19544. void ApplyAttributes();
  19545. const BoundingBox& GetBoundingBox() const;
  19546. const BoundingBox& GetWorldBoundingBox();
  19547. void CleanupConnection(Connection);
  19548. operator Component() const;
  19549. void DrawDebugGeometry(DebugRenderer, bool);
  19550. bool DrawOcclusion(OcclusionBuffer);
  19551. operator Drawable2D() const;
  19552. operator Drawable() const;
  19553. bool GetAnimationEnabled() const;
  19554. Variant GetAttribute(const String&) const;
  19555. Variant GetAttribute(uint) const;
  19556. ValueAnimation GetAttributeAnimation(const String&) const;
  19557. float GetAttributeAnimationSpeed(const String&) const;
  19558. float GetAttributeAnimationTime(const String&) const;
  19559. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19560. Variant GetAttributeDefault(const String&) const;
  19561. Variant GetAttributeDefault(uint) const;
  19562. BlendMode GetBlendMode() const;
  19563. bool GetBlockEvents() const;
  19564. bool GetCastShadows() const;
  19565. Component GetComponent(StringHash) const;
  19566. float GetDistance() const;
  19567. float GetDrawDistance() const;
  19568. uint8 GetDrawableFlags() const;
  19569. ParticleEffect2D GetEffect() const;
  19570. VariantMap& GetEventDataMap() const;
  19571. Object GetEventSender() const;
  19572. Light GetFirstLight() const;
  19573. uint GetID() const;
  19574. bool GetInterceptNetworkUpdate(const String&) const;
  19575. int GetLayer() const;
  19576. uint GetLightMask() const;
  19577. Array<Light> GetLights() const;
  19578. float GetLodBias() const;
  19579. float GetLodDistance() const;
  19580. Geometry GetLodGeometry(uint, uint);
  19581. uint GetMaxLights() const;
  19582. uint GetMaxParticles() const;
  19583. float GetMaxZ() const;
  19584. float GetMinZ() const;
  19585. Node GetNode() const;
  19586. uint GetNumAttributes() const;
  19587. uint GetNumNetworkAttributes() const;
  19588. uint GetNumOccluderTriangles();
  19589. ObjectAnimation GetObjectAnimation() const;
  19590. ResourceRef GetObjectAnimationAttr() const;
  19591. int GetOrderInLayer() const;
  19592. ResourceRef GetParticleEffectAttr() const;
  19593. Scene GetScene() const;
  19594. float GetShadowDistance() const;
  19595. uint GetShadowMask() const;
  19596. float GetSortValue() const;
  19597. Sprite2D GetSprite() const;
  19598. ResourceRef GetSpriteAttr() const;
  19599. Object GetSubsystem(StringHash) const;
  19600. StringHash GetType() const;
  19601. UpdateGeometryType GetUpdateGeometryType();
  19602. Array<Light> GetVertexLights() const;
  19603. uint GetViewMask() const;
  19604. Zone GetZone() const;
  19605. uint GetZoneMask() const;
  19606. bool HasBasePass(uint) const;
  19607. bool HasEventHandlers() const;
  19608. bool HasSubscribedToEvent(Object, StringHash) const;
  19609. bool HasSubscribedToEvent(StringHash) const;
  19610. bool IsEmitting() const;
  19611. bool IsEnabled() const;
  19612. bool IsEnabledEffective() const;
  19613. bool IsInView() const;
  19614. bool IsInView(Camera) const;
  19615. bool IsInView(const FrameInfo&, bool = false) const;
  19616. bool IsInstanceOf(StringHash) const;
  19617. bool IsOccludee() const;
  19618. bool IsOccluder() const;
  19619. bool IsReplicated() const;
  19620. bool IsTemporary() const;
  19621. bool IsZoneDirty() const;
  19622. void LimitLights();
  19623. void LimitVertexLights(bool);
  19624. bool Load(Deserializer&);
  19625. bool LoadJSON(const JSONValue&);
  19626. bool LoadXML(const XMLElement&);
  19627. void MarkForUpdate();
  19628. void MarkInView(const FrameInfo&);
  19629. void MarkInView(uint);
  19630. void MarkNetworkUpdate();
  19631. operator Object() const;
  19632. void OnEvent(Object, StringHash, VariantMap&);
  19633. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19634. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19635. void OnSetEnabled();
  19636. void PrepareNetworkUpdate();
  19637. bool ReadDeltaUpdate(Deserializer&);
  19638. bool ReadLatestDataUpdate(Deserializer&);
  19639. operator RefCounted() const;
  19640. int Refs() const;
  19641. void Remove();
  19642. void RemoveAttributeAnimation(const String&);
  19643. void RemoveInstanceDefault();
  19644. void RemoveObjectAnimation();
  19645. void ResetToDefault();
  19646. bool Save(Serializer&) const;
  19647. bool SaveDefaultAttributes() const;
  19648. bool SaveJSON(JSONValue&) const;
  19649. bool SaveXML(XMLElement&) const;
  19650. void SendEvent(StringHash);
  19651. void SendEvent(StringHash, VariantMap&);
  19652. operator Serializable() const;
  19653. void SetAnimationEnabled(bool);
  19654. void SetAnimationTime(float);
  19655. bool SetAttribute(const String&, const Variant&);
  19656. bool SetAttribute(uint, const Variant&);
  19657. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19658. void SetAttributeAnimationSpeed(const String&, float);
  19659. void SetAttributeAnimationTime(const String&, float);
  19660. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19661. void SetBasePass(uint);
  19662. void SetBlendMode(BlendMode);
  19663. void SetBlockEvents(bool);
  19664. void SetCastShadows(bool);
  19665. void SetDrawDistance(float);
  19666. void SetEffect(ParticleEffect2D);
  19667. void SetEmitting(bool);
  19668. void SetEnabled(bool);
  19669. void SetGlobalVar(StringHash, const Variant&);
  19670. void SetInstanceDefault(bool);
  19671. void SetInterceptNetworkUpdate(const String&, bool);
  19672. void SetLayer(int);
  19673. void SetLightMask(uint);
  19674. void SetLodBias(float);
  19675. void SetMaxLights(uint);
  19676. void SetMaxParticles(uint);
  19677. void SetMinMaxZ(float, float);
  19678. void SetObjectAnimation(ObjectAnimation);
  19679. void SetObjectAnimationAttr(const ResourceRef&);
  19680. void SetOccludee(bool);
  19681. void SetOccluder(bool);
  19682. void SetOrderInLayer(int);
  19683. void SetParticleEffectAttr(const ResourceRef&);
  19684. void SetShadowDistance(float);
  19685. void SetShadowMask(uint);
  19686. void SetSortValue(float);
  19687. void SetSprite(Sprite2D);
  19688. void SetSpriteAttr(const ResourceRef&);
  19689. void SetTemporary(bool);
  19690. void SetViewMask(uint);
  19691. void SetZone(Zone, bool = false);
  19692. void SetZoneMask(uint);
  19693. const String& GetCategory() const;
  19694. const String& GetTypeName() const;
  19695. void UnsubscribeFromAllEvents();
  19696. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19697. void UnsubscribeFromEvent(Object, StringHash);
  19698. void UnsubscribeFromEvent(StringHash);
  19699. void UnsubscribeFromEvents(Object);
  19700. void UpdateBatches(const FrameInfo&);
  19701. void UpdateGeometry(const FrameInfo&);
  19702. const Variant& GetGlobalVar(StringHash) const;
  19703. const VariantMap& GetGlobalVars() const;
  19704. int WeakRefs() const;
  19705. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  19706. void WriteInitialDeltaUpdate(Serializer&, uint8);
  19707. void WriteLatestDataUpdate(Serializer&, uint8);
  19708. operator const Animatable() const;
  19709. operator const Component() const;
  19710. operator const Drawable2D() const;
  19711. operator const Drawable() const;
  19712. operator const Object() const;
  19713. operator const RefCounted() const;
  19714. operator const Serializable() const;
  19715. // Properties:
  19716. bool animationEnabled;
  19717. /* readonly */
  19718. Array<Variant> attributeDefaults;
  19719. /* readonly */
  19720. Array<AttributeInfo> attributeInfos;
  19721. Array<Variant> attributes;
  19722. BlendMode blendMode;
  19723. /* readonly */
  19724. BoundingBox boundingBox;
  19725. bool castShadows;
  19726. /* readonly */
  19727. String category;
  19728. float drawDistance;
  19729. ParticleEffect2D effect;
  19730. bool emitting;
  19731. bool enabled;
  19732. /* readonly */
  19733. bool enabledEffective;
  19734. Array<Variant> globalVar;
  19735. /* readonly */
  19736. VariantMap globalVars;
  19737. /* readonly */
  19738. uint id;
  19739. /* readonly */
  19740. bool inView;
  19741. int layer;
  19742. uint lightMask;
  19743. float lodBias;
  19744. uint maxLights;
  19745. /* readonly */
  19746. Node node;
  19747. /* readonly */
  19748. uint numAttributes;
  19749. ObjectAnimation objectAnimation;
  19750. bool occludee;
  19751. bool occluder;
  19752. int orderInLayer;
  19753. /* readonly */
  19754. int refs;
  19755. /* readonly */
  19756. bool replicated;
  19757. float shadowDistance;
  19758. uint shadowMask;
  19759. Sprite2D sprite;
  19760. bool temporary;
  19761. /* readonly */
  19762. StringHash type;
  19763. /* readonly */
  19764. String typeName;
  19765. uint viewMask;
  19766. /* readonly */
  19767. int weakRefs;
  19768. /* readonly */
  19769. BoundingBox worldBoundingBox;
  19770. /* readonly */
  19771. Zone zone;
  19772. uint zoneMask;
  19773. };
  19774. class Pass
  19775. {
  19776. public:
  19777. Pass(const String&in);
  19778. // Methods:
  19779. bool GetAlphaToCoverage() const;
  19780. BlendMode GetBlendMode() const;
  19781. CullMode GetCullMode() const;
  19782. CompareMode GetDepthTestMode() const;
  19783. bool GetDepthWrite() const;
  19784. String GetEffectivePixelShaderDefines() const;
  19785. String GetEffectiveVertexShaderDefines() const;
  19786. uint GetIndex() const;
  19787. PassLightingMode GetLightingMode() const;
  19788. Array<ShaderVariation> GetPixelShaders();
  19789. Array<ShaderVariation> GetPixelShaders(const StringHash&);
  19790. uint GetShadersLoadedFrameNumber() const;
  19791. Array<ShaderVariation> GetVertexShaders();
  19792. Array<ShaderVariation> GetVertexShaders(const StringHash&);
  19793. bool IsDesktop() const;
  19794. void MarkShadersLoaded(uint);
  19795. operator RefCounted() const;
  19796. int Refs() const;
  19797. void ReleaseShaders();
  19798. void SetAlphaToCoverage(bool);
  19799. void SetBlendMode(BlendMode);
  19800. void SetCullMode(CullMode);
  19801. void SetDepthTestMode(CompareMode);
  19802. void SetDepthWrite(bool);
  19803. void SetIsDesktop(bool);
  19804. void SetLightingMode(PassLightingMode);
  19805. void SetPixelShader(const String&);
  19806. void SetPixelShaderDefineExcludes(const String&);
  19807. void SetPixelShaderDefines(const String&);
  19808. void SetVertexShader(const String&);
  19809. void SetVertexShaderDefineExcludes(const String&);
  19810. void SetVertexShaderDefines(const String&);
  19811. const String& GetName() const;
  19812. const String& GetPixelShader() const;
  19813. const String& GetPixelShaderDefineExcludes() const;
  19814. const String& GetPixelShaderDefines() const;
  19815. const String& GetVertexShader() const;
  19816. const String& GetVertexShaderDefineExcludes() const;
  19817. const String& GetVertexShaderDefines() const;
  19818. int WeakRefs() const;
  19819. operator const RefCounted() const;
  19820. // Properties:
  19821. bool alphaToCoverage;
  19822. BlendMode blendMode;
  19823. CullMode cullMode;
  19824. CompareMode depthTestMode;
  19825. bool depthWrite;
  19826. bool desktop;
  19827. PassLightingMode lightingMode;
  19828. String pixelShader;
  19829. String pixelShaderDefineExcludes;
  19830. String pixelShaderDefines;
  19831. /* readonly */
  19832. int refs;
  19833. String vertexShader;
  19834. String vertexShaderDefineExcludes;
  19835. String vertexShaderDefines;
  19836. /* readonly */
  19837. int weakRefs;
  19838. };
  19839. class PerThreadSceneResult
  19840. {
  19841. public:
  19842. ~PerThreadSceneResult();
  19843. PerThreadSceneResult();
  19844. // Methods:
  19845. PerThreadSceneResult& operator=(const PerThreadSceneResult&);
  19846. // Properties:
  19847. float maxZ;
  19848. float minZ;
  19849. };
  19850. class PhysicsRaycastResult
  19851. {
  19852. public:
  19853. ~PhysicsRaycastResult();
  19854. PhysicsRaycastResult();
  19855. // Methods:
  19856. PhysicsRaycastResult& operator=(const PhysicsRaycastResult&);
  19857. // Properties:
  19858. /* readonly */
  19859. RigidBody body;
  19860. float distance;
  19861. float hitFraction;
  19862. Vector3 normal;
  19863. Vector3 position;
  19864. };
  19865. class PhysicsRaycastResult2D
  19866. {
  19867. public:
  19868. ~PhysicsRaycastResult2D();
  19869. PhysicsRaycastResult2D();
  19870. // Methods:
  19871. PhysicsRaycastResult2D& operator=(const PhysicsRaycastResult2D&);
  19872. // Properties:
  19873. /* readonly */
  19874. RigidBody2D body;
  19875. float distance;
  19876. Vector2 normal;
  19877. Vector2 position;
  19878. };
  19879. class PhysicsWorld
  19880. {
  19881. public:
  19882. PhysicsWorld();
  19883. // Methods:
  19884. void AddCollisionShape(CollisionShape);
  19885. void AddConstraint(Constraint);
  19886. void AddDelayedWorldTransform(const DelayedWorldTransform&);
  19887. void AddRigidBody(RigidBody);
  19888. void AllocateNetworkState();
  19889. operator Animatable() const;
  19890. void ApplyAttributes();
  19891. void CleanupConnection(Connection);
  19892. void CleanupGeometryCache();
  19893. operator Component() const;
  19894. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  19895. void ConvexCast(PhysicsRaycastResult&, CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = M_MAX_UNSIGNED);
  19896. void DrawDebugGeometry(DebugRenderer, bool);
  19897. void DrawDebugGeometry(bool);
  19898. bool GetAnimationEnabled() const;
  19899. Variant GetAttribute(const String&) const;
  19900. Variant GetAttribute(uint) const;
  19901. ValueAnimation GetAttributeAnimation(const String&) const;
  19902. float GetAttributeAnimationSpeed(const String&) const;
  19903. float GetAttributeAnimationTime(const String&) const;
  19904. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19905. Variant GetAttributeDefault(const String&) const;
  19906. Variant GetAttributeDefault(uint) const;
  19907. bool GetBlockEvents() const;
  19908. Array<RigidBody> GetCollidingBodies(RigidBody);
  19909. Component GetComponent(StringHash) const;
  19910. VariantMap& GetEventDataMap() const;
  19911. Object GetEventSender() const;
  19912. int GetFps() const;
  19913. Vector3 GetGravity() const;
  19914. uint GetID() const;
  19915. bool GetInterceptNetworkUpdate(const String&) const;
  19916. bool GetInternalEdge() const;
  19917. bool GetInterpolation() const;
  19918. float GetMaxNetworkAngularVelocity() const;
  19919. int GetMaxSubSteps() const;
  19920. Node GetNode() const;
  19921. uint GetNumAttributes() const;
  19922. int GetNumIterations() const;
  19923. uint GetNumNetworkAttributes() const;
  19924. ObjectAnimation GetObjectAnimation() const;
  19925. ResourceRef GetObjectAnimationAttr() const;
  19926. Array<RigidBody> GetRigidBodies(RigidBody);
  19927. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint collisionMask = 0xffff);
  19928. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  19929. Scene GetScene() const;
  19930. bool GetSplitImpulse() const;
  19931. Object GetSubsystem(StringHash) const;
  19932. StringHash GetType() const;
  19933. bool HasEventHandlers() const;
  19934. bool HasSubscribedToEvent(Object, StringHash) const;
  19935. bool HasSubscribedToEvent(StringHash) const;
  19936. bool IsApplyingTransforms() const;
  19937. bool IsEnabled() const;
  19938. bool IsEnabledEffective() const;
  19939. bool IsInstanceOf(StringHash) const;
  19940. bool IsReplicated() const;
  19941. bool IsSimulating() const;
  19942. bool IsTemporary() const;
  19943. bool IsUpdateEnabled() const;
  19944. bool Load(Deserializer&);
  19945. bool LoadJSON(const JSONValue&);
  19946. bool LoadXML(const XMLElement&);
  19947. void MarkNetworkUpdate();
  19948. operator Object() const;
  19949. void OnEvent(Object, StringHash, VariantMap&);
  19950. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19951. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19952. void OnSetEnabled();
  19953. void PrepareNetworkUpdate();
  19954. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  19955. void RaycastSingle(PhysicsRaycastResult&, const Ray&, float, uint = M_MAX_UNSIGNED);
  19956. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  19957. void RaycastSingleSegmented(PhysicsRaycastResult&, const Ray&, float, float, uint = M_MAX_UNSIGNED, float = 0.1f);
  19958. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint collisionMask = 0xffff, float overlapDistance = 0.1f);
  19959. bool ReadDeltaUpdate(Deserializer&);
  19960. bool ReadLatestDataUpdate(Deserializer&);
  19961. operator RefCounted() const;
  19962. int Refs() const;
  19963. void Remove();
  19964. void RemoveAttributeAnimation(const String&);
  19965. void RemoveCachedGeometry(Model);
  19966. void RemoveCollisionShape(CollisionShape);
  19967. void RemoveConstraint(Constraint);
  19968. void RemoveInstanceDefault();
  19969. void RemoveObjectAnimation();
  19970. void RemoveRigidBody(RigidBody);
  19971. void ResetToDefault();
  19972. bool Save(Serializer&) const;
  19973. bool SaveDefaultAttributes() const;
  19974. bool SaveJSON(JSONValue&) const;
  19975. bool SaveXML(XMLElement&) const;
  19976. void SendEvent(StringHash);
  19977. void SendEvent(StringHash, VariantMap&);
  19978. operator Serializable() const;
  19979. void SetAnimationEnabled(bool);
  19980. void SetAnimationTime(float);
  19981. void SetApplyingTransforms(bool);
  19982. bool SetAttribute(const String&, const Variant&);
  19983. bool SetAttribute(uint, const Variant&);
  19984. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19985. void SetAttributeAnimationSpeed(const String&, float);
  19986. void SetAttributeAnimationTime(const String&, float);
  19987. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19988. void SetBlockEvents(bool);
  19989. void SetDebugDepthTest(bool);
  19990. void SetDebugRenderer(DebugRenderer);
  19991. void SetEnabled(bool);
  19992. void SetFps(int);
  19993. void SetGlobalVar(StringHash, const Variant&);
  19994. void SetGravity(const Vector3&);
  19995. void SetInstanceDefault(bool);
  19996. void SetInterceptNetworkUpdate(const String&, bool);
  19997. void SetInternalEdge(bool);
  19998. void SetInterpolation(bool);
  19999. void SetMaxNetworkAngularVelocity(float);
  20000. void SetMaxSubSteps(int);
  20001. void SetNumIterations(int);
  20002. void SetObjectAnimation(ObjectAnimation);
  20003. void SetObjectAnimationAttr(const ResourceRef&);
  20004. void SetSplitImpulse(bool);
  20005. void SetTemporary(bool);
  20006. void SetUpdateEnabled(bool);
  20007. void SphereCast(PhysicsRaycastResult&, const Ray&, float, float, uint = M_MAX_UNSIGNED);
  20008. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint collisionMask = 0xffff);
  20009. const String& GetCategory() const;
  20010. const String& GetTypeName() const;
  20011. void UnsubscribeFromAllEvents();
  20012. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20013. void UnsubscribeFromEvent(Object, StringHash);
  20014. void UnsubscribeFromEvent(StringHash);
  20015. void UnsubscribeFromEvents(Object);
  20016. void Update(float);
  20017. void UpdateCollisions();
  20018. const Variant& GetGlobalVar(StringHash) const;
  20019. const VariantMap& GetGlobalVars() const;
  20020. int WeakRefs() const;
  20021. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  20022. void WriteInitialDeltaUpdate(Serializer&, uint8);
  20023. void WriteLatestDataUpdate(Serializer&, uint8);
  20024. operator const Animatable() const;
  20025. operator const Component() const;
  20026. operator const Object() const;
  20027. operator const RefCounted() const;
  20028. operator const Serializable() const;
  20029. int getDebugMode() const;
  20030. void setDebugMode(int);
  20031. // Properties:
  20032. bool animationEnabled;
  20033. /* readonly */
  20034. Array<Variant> attributeDefaults;
  20035. /* readonly */
  20036. Array<AttributeInfo> attributeInfos;
  20037. Array<Variant> attributes;
  20038. /* readonly */
  20039. String category;
  20040. bool enabled;
  20041. /* readonly */
  20042. bool enabledEffective;
  20043. int fps;
  20044. Array<Variant> globalVar;
  20045. /* readonly */
  20046. VariantMap globalVars;
  20047. Vector3 gravity;
  20048. /* readonly */
  20049. uint id;
  20050. bool internalEdge;
  20051. bool interpolation;
  20052. int maxSubSteps;
  20053. /* readonly */
  20054. Node node;
  20055. /* readonly */
  20056. uint numAttributes;
  20057. int numIterations;
  20058. ObjectAnimation objectAnimation;
  20059. /* readonly */
  20060. int refs;
  20061. /* readonly */
  20062. bool replicated;
  20063. bool splitImpulse;
  20064. bool temporary;
  20065. /* readonly */
  20066. StringHash type;
  20067. /* readonly */
  20068. String typeName;
  20069. bool updateEnabled;
  20070. /* readonly */
  20071. int weakRefs;
  20072. };
  20073. class PhysicsWorld2D
  20074. {
  20075. public:
  20076. PhysicsWorld2D();
  20077. // Methods:
  20078. void AddDelayedWorldTransform(const DelayedWorldTransform2D&);
  20079. void AddRigidBody(RigidBody2D);
  20080. void AllocateNetworkState();
  20081. operator Animatable() const;
  20082. void ApplyAttributes();
  20083. void CleanupConnection(Connection);
  20084. operator Component() const;
  20085. void DrawDebugGeometry();
  20086. void DrawDebugGeometry(DebugRenderer, bool);
  20087. bool GetAllowSleeping() const;
  20088. bool GetAnimationEnabled() const;
  20089. Variant GetAttribute(const String&) const;
  20090. Variant GetAttribute(uint) const;
  20091. ValueAnimation GetAttributeAnimation(const String&) const;
  20092. float GetAttributeAnimationSpeed(const String&) const;
  20093. float GetAttributeAnimationTime(const String&) const;
  20094. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  20095. Variant GetAttributeDefault(const String&) const;
  20096. Variant GetAttributeDefault(uint) const;
  20097. bool GetAutoClearForces() const;
  20098. bool GetBlockEvents() const;
  20099. Component GetComponent(StringHash) const;
  20100. bool GetContinuousPhysics() const;
  20101. bool GetDrawAabb() const;
  20102. bool GetDrawCenterOfMass() const;
  20103. bool GetDrawJoint() const;
  20104. bool GetDrawPair() const;
  20105. bool GetDrawShape() const;
  20106. VariantMap& GetEventDataMap() const;
  20107. Object GetEventSender() const;
  20108. uint GetID() const;
  20109. bool GetInterceptNetworkUpdate(const String&) const;
  20110. Node GetNode() const;
  20111. uint GetNumAttributes() const;
  20112. uint GetNumNetworkAttributes() const;
  20113. ObjectAnimation GetObjectAnimation() const;
  20114. ResourceRef GetObjectAnimationAttr() const;
  20115. int GetPositionIterations() const;
  20116. Array<RigidBody2D> GetRigidBodies(const Rect&, uint = 0xffff);
  20117. RigidBody2D GetRigidBody(const Vector2&, uint = M_MAX_UNSIGNED);
  20118. RigidBody2D GetRigidBody(int, int, uint = M_MAX_UNSIGNED);
  20119. Scene GetScene() const;
  20120. bool GetSubStepping() const;
  20121. Object GetSubsystem(StringHash) const;
  20122. StringHash GetType() const;
  20123. int GetVelocityIterations() const;
  20124. bool GetWarmStarting() const;
  20125. bool HasEventHandlers() const;
  20126. bool HasSubscribedToEvent(Object, StringHash) const;
  20127. bool HasSubscribedToEvent(StringHash) const;
  20128. bool IsApplyingTransforms() const;
  20129. bool IsEnabled() const;
  20130. bool IsEnabledEffective() const;
  20131. bool IsInstanceOf(StringHash) const;
  20132. bool IsReplicated() const;
  20133. bool IsTemporary() const;
  20134. bool IsUpdateEnabled() const;
  20135. bool Load(Deserializer&);
  20136. bool LoadJSON(const JSONValue&);
  20137. bool LoadXML(const XMLElement&);
  20138. void MarkNetworkUpdate();
  20139. operator Object() const;
  20140. void OnEvent(Object, StringHash, VariantMap&);
  20141. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  20142. void OnSetAttribute(const AttributeInfo&, const Variant&);
  20143. void OnSetEnabled();
  20144. void PrepareNetworkUpdate();
  20145. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint = 0xffff);
  20146. void RaycastSingle(PhysicsRaycastResult2D&, const Vector2&, const Vector2&, uint = M_MAX_UNSIGNED);
  20147. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint = 0xffff);
  20148. bool ReadDeltaUpdate(Deserializer&);
  20149. bool ReadLatestDataUpdate(Deserializer&);
  20150. operator RefCounted() const;
  20151. int Refs() const;
  20152. void Remove();
  20153. void RemoveAttributeAnimation(const String&);
  20154. void RemoveInstanceDefault();
  20155. void RemoveObjectAnimation();
  20156. void RemoveRigidBody(RigidBody2D);
  20157. void ResetToDefault();
  20158. bool Save(Serializer&) const;
  20159. bool SaveDefaultAttributes() const;
  20160. bool SaveJSON(JSONValue&) const;
  20161. bool SaveXML(XMLElement&) const;
  20162. void SendEvent(StringHash);
  20163. void SendEvent(StringHash, VariantMap&);
  20164. operator Serializable() const;
  20165. void SetAllowSleeping(bool);
  20166. void SetAnimationEnabled(bool);
  20167. void SetAnimationTime(float);
  20168. void SetApplyingTransforms(bool);
  20169. bool SetAttribute(const String&, const Variant&);
  20170. bool SetAttribute(uint, const Variant&);
  20171. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  20172. void SetAttributeAnimationSpeed(const String&, float);
  20173. void SetAttributeAnimationTime(const String&, float);
  20174. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  20175. void SetAutoClearForces(bool);
  20176. void SetBlockEvents(bool);
  20177. void SetContinuousPhysics(bool);
  20178. void SetDrawAabb(bool);
  20179. void SetDrawCenterOfMass(bool);
  20180. void SetDrawJoint(bool);
  20181. void SetDrawPair(bool);
  20182. void SetDrawShape(bool);
  20183. void SetEnabled(bool);
  20184. void SetGlobalVar(StringHash, const Variant&);
  20185. void SetGravity(const Vector2&);
  20186. void SetInstanceDefault(bool);
  20187. void SetInterceptNetworkUpdate(const String&, bool);
  20188. void SetObjectAnimation(ObjectAnimation);
  20189. void SetObjectAnimationAttr(const ResourceRef&);
  20190. void SetPositionIterations(int);
  20191. void SetSubStepping(bool);
  20192. void SetTemporary(bool);
  20193. void SetUpdateEnabled(bool);
  20194. void SetVelocityIterations(int);
  20195. void SetWarmStarting(bool);
  20196. const String& GetCategory() const;
  20197. const String& GetTypeName() const;
  20198. void UnsubscribeFromAllEvents();
  20199. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20200. void UnsubscribeFromEvent(Object, StringHash);
  20201. void UnsubscribeFromEvent(StringHash);
  20202. void UnsubscribeFromEvents(Object);
  20203. void Update(float);
  20204. const Variant& GetGlobalVar(StringHash) const;
  20205. const VariantMap& GetGlobalVars() const;
  20206. const Vector2& GetGravity() const;
  20207. int WeakRefs() const;
  20208. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  20209. void WriteInitialDeltaUpdate(Serializer&, uint8);
  20210. void WriteLatestDataUpdate(Serializer&, uint8);
  20211. operator const Animatable() const;
  20212. operator const Component() const;
  20213. operator const Object() const;
  20214. operator const RefCounted() const;
  20215. operator const Serializable() const;
  20216. // Properties:
  20217. bool allowSleeping;
  20218. bool animationEnabled;
  20219. /* readonly */
  20220. Array<Variant> attributeDefaults;
  20221. /* readonly */
  20222. Array<AttributeInfo> attributeInfos;
  20223. Array<Variant> attributes;
  20224. bool autoClearForces;
  20225. /* readonly */
  20226. String category;
  20227. bool continuousPhysics;
  20228. bool drawAabb;
  20229. bool drawCenterOfMass;
  20230. bool drawJoint;
  20231. bool drawPair;
  20232. bool drawShape;
  20233. bool enabled;
  20234. /* readonly */
  20235. bool enabledEffective;
  20236. Array<Variant> globalVar;
  20237. /* readonly */
  20238. VariantMap globalVars;
  20239. Vector2 gravity;
  20240. /* readonly */
  20241. uint id;
  20242. /* readonly */
  20243. Node node;
  20244. /* readonly */
  20245. uint numAttributes;
  20246. ObjectAnimation objectAnimation;
  20247. int positionIterations;
  20248. /* readonly */
  20249. int refs;
  20250. /* readonly */
  20251. bool replicated;
  20252. bool subStepping;
  20253. bool temporary;
  20254. /* readonly */
  20255. StringHash type;
  20256. /* readonly */
  20257. String typeName;
  20258. bool updateEnabled;
  20259. int velocityIterations;
  20260. bool warmStarting;
  20261. /* readonly */
  20262. int weakRefs;
  20263. };
  20264. class PhysicsWorldConfig
  20265. {
  20266. public:
  20267. ~PhysicsWorldConfig();
  20268. PhysicsWorldConfig();
  20269. // Methods:
  20270. PhysicsWorldConfig& operator=(const PhysicsWorldConfig&);
  20271. };
  20272. class Plane
  20273. {
  20274. public:
  20275. Plane();
  20276. Plane(const Plane&in);
  20277. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  20278. Plane(const Vector3&in, const Vector3&in);
  20279. Plane(const Vector4&in);
  20280. // Methods:
  20281. Plane& operator=(const Plane&);
  20282. void Define(const Vector3&, const Vector3&);
  20283. void Define(const Vector3&, const Vector3&, const Vector3&);
  20284. void Define(const Vector4&);
  20285. float Distance(const Vector3&) const;
  20286. Vector3 Project(const Vector3&) const;
  20287. Vector3 Reflect(const Vector3&) const;
  20288. Matrix3x4 ReflectionMatrix() const;
  20289. Vector4 ToVector4() const;
  20290. void Transform(const Matrix3&);
  20291. void Transform(const Matrix3x4&);
  20292. void Transform(const Matrix4&);
  20293. Plane Transformed(const Matrix3&) const;
  20294. Plane Transformed(const Matrix3x4&) const;
  20295. Plane Transformed(const Matrix4&) const;
  20296. // Properties:
  20297. Vector3 absNormal;
  20298. float d;
  20299. Vector3 normal;
  20300. /* readonly */
  20301. Matrix3x4 reflectionMatrix;
  20302. // Constants:
  20303. static const Plane UP;
  20304. };
  20305. class Polyhedron
  20306. {
  20307. public:
  20308. ~Polyhedron();
  20309. Polyhedron();
  20310. Polyhedron(const Polyhedron&in);
  20311. Polyhedron(const BoundingBox&in);
  20312. Polyhedron(const Frustum&in);
  20313. // Methods:
  20314. Polyhedron& operator=(const Polyhedron&);
  20315. void AddFace(Array<Vector3>);
  20316. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  20317. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  20318. void Clear();
  20319. void Clip(const BoundingBox&);
  20320. void Clip(const Frustum&);
  20321. void Clip(const Plane&);
  20322. void Define(const BoundingBox&);
  20323. void Define(const Frustum&);
  20324. bool Empty() const;
  20325. void Transform(const Matrix3&);
  20326. void Transform(const Matrix3x4&);
  20327. Polyhedron Transformed(const Matrix3&) const;
  20328. Polyhedron Transformed(const Matrix3x4&) const;
  20329. // Properties:
  20330. /* readonly */
  20331. Array<Array<Vector3>> face;
  20332. /* readonly */
  20333. uint numFaces;
  20334. };
  20335. class Profiler
  20336. {
  20337. public:
  20338. Profiler();
  20339. // Methods:
  20340. void BeginFrame();
  20341. void BeginInterval();
  20342. void EndBlock();
  20343. void EndFrame();
  20344. operator EventProfiler() const;
  20345. bool GetBlockEvents() const;
  20346. VariantMap& GetEventDataMap() const;
  20347. Object GetEventSender() const;
  20348. Object GetSubsystem(StringHash) const;
  20349. StringHash GetType() const;
  20350. bool HasEventHandlers() const;
  20351. bool HasSubscribedToEvent(Object, StringHash) const;
  20352. bool HasSubscribedToEvent(StringHash) const;
  20353. bool IsInstanceOf(StringHash) const;
  20354. operator Object() const;
  20355. void OnEvent(Object, StringHash, VariantMap&);
  20356. operator RefCounted() const;
  20357. int Refs() const;
  20358. void SendEvent(StringHash);
  20359. void SendEvent(StringHash, VariantMap&);
  20360. void SetBlockEvents(bool);
  20361. void SetGlobalVar(StringHash, const Variant&);
  20362. const String& GetCategory() const;
  20363. const String& GetTypeName() const;
  20364. const String& PrintData(bool = false, bool = false, uint = M_MAX_UNSIGNED) const;
  20365. void UnsubscribeFromAllEvents();
  20366. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20367. void UnsubscribeFromEvent(Object, StringHash);
  20368. void UnsubscribeFromEvent(StringHash);
  20369. void UnsubscribeFromEvents(Object);
  20370. const Variant& GetGlobalVar(StringHash) const;
  20371. const VariantMap& GetGlobalVars() const;
  20372. int WeakRefs() const;
  20373. operator const EventProfiler() const;
  20374. operator const Object() const;
  20375. operator const RefCounted() const;
  20376. // Properties:
  20377. /* readonly */
  20378. String category;
  20379. Array<Variant> globalVar;
  20380. /* readonly */
  20381. VariantMap globalVars;
  20382. /* readonly */
  20383. int refs;
  20384. /* readonly */
  20385. StringHash type;
  20386. /* readonly */
  20387. String typeName;
  20388. /* readonly */
  20389. int weakRefs;
  20390. };
  20391. class ProgressBar
  20392. {
  20393. public:
  20394. ProgressBar();
  20395. // Methods:
  20396. void AddChild(UIElement);
  20397. void AddTag(const String&);
  20398. void AddTags(Array<String>);
  20399. void AddTags(const String&, int8 = ';');
  20400. void AdjustScissor(IntRect&);
  20401. void AllocateNetworkState();
  20402. operator Animatable() const;
  20403. void ApplyAttributes();
  20404. operator BorderImage() const;
  20405. void BringToFront();
  20406. void ChangeValue(float);
  20407. const Color& GetColor(Corner) const;
  20408. const Color& GetColorAttr() const;
  20409. const Color& GetDerivedColor() const;
  20410. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  20411. void DisableLayoutUpdate();
  20412. IntVector2 ElementToScreen(const IntVector2&);
  20413. void EnableLayoutUpdate();
  20414. bool FilterAttributes(XMLElement&) const;
  20415. uint FindChild(UIElement) const;
  20416. bool GetAnimationEnabled() const;
  20417. Variant GetAttribute(const String&) const;
  20418. Variant GetAttribute(uint) const;
  20419. ValueAnimation GetAttributeAnimation(const String&) const;
  20420. float GetAttributeAnimationSpeed(const String&) const;
  20421. float GetAttributeAnimationTime(const String&) const;
  20422. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  20423. Variant GetAttributeDefault(const String&) const;
  20424. Variant GetAttributeDefault(uint) const;
  20425. BlendMode GetBlendMode() const;
  20426. bool GetBlockEvents() const;
  20427. bool GetBringToBack() const;
  20428. bool GetBringToFront() const;
  20429. UIElement GetChild(const String&, bool = false) const;
  20430. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  20431. UIElement GetChild(uint) const;
  20432. Array<UIElement> GetChildren() const;
  20433. Array<UIElement> GetChildren(bool) const;
  20434. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  20435. bool GetClipChildren() const;
  20436. IntRect GetCombinedScreenRect();
  20437. XMLFile GetDefaultStyle(bool = true) const;
  20438. float GetDerivedOpacity() const;
  20439. uint GetDragButtonCombo() const;
  20440. uint GetDragButtonCount() const;
  20441. uint GetDragDropMode() const;
  20442. IntVector2 GetEffectiveMinSize() const;
  20443. UIElement GetElementEventSender() const;
  20444. bool GetEnableAnchor() const;
  20445. VariantMap& GetEventDataMap() const;
  20446. Object GetEventSender() const;
  20447. FocusMode GetFocusMode() const;
  20448. int GetHeight() const;
  20449. HorizontalAlignment GetHorizontalAlignment() const;
  20450. int GetIndent() const;
  20451. int GetIndentSpacing() const;
  20452. int GetIndentWidth() const;
  20453. bool GetInterceptNetworkUpdate(const String&) const;
  20454. BorderImage GetKnob() const;
  20455. int GetLayoutElementMaxSize() const;
  20456. LayoutMode GetLayoutMode() const;
  20457. int GetLayoutSpacing() const;
  20458. Material GetMaterial() const;
  20459. ResourceRef GetMaterialAttr() const;
  20460. int GetMaxHeight() const;
  20461. int GetMaxWidth() const;
  20462. int GetMinHeight() const;
  20463. int GetMinWidth() const;
  20464. uint GetNumAttributes() const;
  20465. uint GetNumChildren(bool = false) const;
  20466. uint GetNumNetworkAttributes() const;
  20467. ObjectAnimation GetObjectAnimation() const;
  20468. ResourceRef GetObjectAnimationAttr() const;
  20469. float GetOpacity() const;
  20470. Orientation GetOrientation() const;
  20471. UIElement GetParent() const;
  20472. int GetPriority() const;
  20473. float GetRange() const;
  20474. UIElement GetRoot() const;
  20475. bool GetShowPercentText() const;
  20476. bool GetSortChildren() const;
  20477. Object GetSubsystem(StringHash) const;
  20478. Array<String> GetTags() const;
  20479. Texture GetTexture() const;
  20480. ResourceRef GetTextureAttr() const;
  20481. TraversalMode GetTraversalMode() const;
  20482. StringHash GetType() const;
  20483. bool GetUseDerivedOpacity() const;
  20484. float GetValue() const;
  20485. VerticalAlignment GetVerticalAlignment() const;
  20486. int GetWidth() const;
  20487. bool HasColorGradient() const;
  20488. bool HasEventHandlers() const;
  20489. bool HasFocus() const;
  20490. bool HasSubscribedToEvent(Object, StringHash) const;
  20491. bool HasSubscribedToEvent(StringHash) const;
  20492. bool HasTag(const String&) const;
  20493. void InsertChild(uint, UIElement);
  20494. const IntRect& GetBorder() const;
  20495. const IntRect& GetClipBorder() const;
  20496. const IntRect& GetImageBorder() const;
  20497. const IntRect& GetImageRect() const;
  20498. const IntRect& GetLayoutBorder() const;
  20499. const IntVector2& GetChildOffset() const;
  20500. const IntVector2& GetDisabledOffset() const;
  20501. const IntVector2& GetHoverOffset() const;
  20502. const IntVector2& GetMaxOffset() const;
  20503. const IntVector2& GetMaxSize() const;
  20504. const IntVector2& GetMinOffset() const;
  20505. const IntVector2& GetMinSize() const;
  20506. const IntVector2& GetPosition() const;
  20507. const IntVector2& GetScreenPosition() const;
  20508. const IntVector2& GetSize() const;
  20509. bool IsChildOf(UIElement) const;
  20510. bool IsEditable() const;
  20511. bool IsElementEventSender() const;
  20512. bool IsEnabled() const;
  20513. bool IsEnabledSelf() const;
  20514. bool IsFixedHeight() const;
  20515. bool IsFixedSize() const;
  20516. bool IsFixedWidth() const;
  20517. bool IsHovering() const;
  20518. bool IsInside(IntVector2, bool);
  20519. bool IsInsideCombined(IntVector2, bool);
  20520. bool IsInstanceOf(StringHash) const;
  20521. bool IsInternal() const;
  20522. bool IsSelected() const;
  20523. bool IsTemporary() const;
  20524. bool IsTiled() const;
  20525. bool IsVisible() const;
  20526. bool IsVisibleEffective() const;
  20527. bool IsWheelHandler() const;
  20528. bool IsWithinScissor(const IntRect&);
  20529. bool Load(Deserializer&);
  20530. UIElement LoadChildXML(XMLFile, XMLFile);
  20531. UIElement LoadChildXML(const XMLElement&, XMLFile);
  20532. bool LoadJSON(const JSONValue&);
  20533. bool LoadXML(Deserializer&);
  20534. bool LoadXML(File);
  20535. bool LoadXML(VectorBuffer&);
  20536. bool LoadXML(XMLFile, XMLFile);
  20537. bool LoadXML(const XMLElement&);
  20538. bool LoadXML(const XMLElement&, XMLFile);
  20539. void MarkNetworkUpdate();
  20540. operator Object() const;
  20541. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  20542. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  20543. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  20544. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20545. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20546. bool OnDragDropFinish(UIElement);
  20547. bool OnDragDropTest(UIElement);
  20548. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20549. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20550. void OnEvent(Object, StringHash, VariantMap&);
  20551. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  20552. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20553. void OnIndentSet();
  20554. void OnKey(uint, uint, uint);
  20555. void OnPositionSet(const IntVector2&);
  20556. void OnResize(const IntVector2&, const IntVector2&);
  20557. void OnSetAttribute(const AttributeInfo&, const Variant&);
  20558. void OnSetEditable();
  20559. void OnTextInput(const String&);
  20560. void OnWheel(int, uint, uint);
  20561. bool ReadDeltaUpdate(Deserializer&);
  20562. bool ReadLatestDataUpdate(Deserializer&);
  20563. operator RefCounted() const;
  20564. int Refs() const;
  20565. void Remove();
  20566. void RemoveAllChildren();
  20567. void RemoveAllTags();
  20568. void RemoveAttributeAnimation(const String&);
  20569. void RemoveChild(UIElement, uint = 0);
  20570. void RemoveChild(uint);
  20571. void RemoveChildAtIndex(uint);
  20572. void RemoveInstanceDefault();
  20573. void RemoveObjectAnimation();
  20574. bool RemoveTag(const String&);
  20575. void ResetDeepEnabled();
  20576. void ResetToDefault();
  20577. bool Save(Serializer&) const;
  20578. bool SaveDefaultAttributes() const;
  20579. bool SaveJSON(JSONValue&) const;
  20580. bool SaveXML(File, const String& indentation = "\t");
  20581. bool SaveXML(Serializer&, const String& = "\t") const;
  20582. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  20583. bool SaveXML(XMLElement&) const;
  20584. IntVector2 ScreenToElement(const IntVector2&);
  20585. void SendEvent(StringHash);
  20586. void SendEvent(StringHash, VariantMap&);
  20587. operator Serializable() const;
  20588. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  20589. void SetAnimationEnabled(bool);
  20590. void SetAnimationTime(float);
  20591. bool SetAttribute(const String&, const Variant&);
  20592. bool SetAttribute(uint, const Variant&);
  20593. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  20594. void SetAttributeAnimationSpeed(const String&, float);
  20595. void SetAttributeAnimationTime(const String&, float);
  20596. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  20597. void SetBlendMode(BlendMode);
  20598. void SetBlockEvents(bool);
  20599. void SetBorder(const IntRect&);
  20600. void SetBringToBack(bool);
  20601. void SetBringToFront(bool);
  20602. void SetChildOffset(const IntVector2&);
  20603. void SetClipBorder(const IntRect&);
  20604. void SetClipChildren(bool);
  20605. void SetColor(Corner, const Color&);
  20606. void SetColor(const Color&);
  20607. void SetDeepEnabled(bool);
  20608. void SetDefaultStyle(XMLFile);
  20609. void SetDisabledOffset(const IntVector2&);
  20610. void SetDisabledOffset(int, int);
  20611. void SetDragDropMode(uint);
  20612. void SetEditable(bool);
  20613. void SetElementEventSender(bool);
  20614. void SetEnableAnchor(bool);
  20615. void SetEnabled(bool);
  20616. void SetEnabledRecursive(bool);
  20617. void SetFixedHeight(int);
  20618. void SetFixedSize(const IntVector2&);
  20619. void SetFixedSize(int, int);
  20620. void SetFixedWidth(int);
  20621. void SetFocus(bool);
  20622. void SetFocusMode(FocusMode);
  20623. void SetFullImageRect();
  20624. void SetGlobalVar(StringHash, const Variant&);
  20625. void SetHeight(int);
  20626. void SetHorizontalAlignment(HorizontalAlignment);
  20627. void SetHoverOffset(const IntVector2&);
  20628. void SetHoverOffset(int, int);
  20629. void SetHovering(bool);
  20630. void SetImageBorder(const IntRect&);
  20631. void SetImageRect(const IntRect&);
  20632. void SetIndent(int);
  20633. void SetIndentSpacing(int);
  20634. void SetInstanceDefault(bool);
  20635. void SetInterceptNetworkUpdate(const String&, bool);
  20636. void SetInternal(bool);
  20637. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  20638. void SetLayoutBorder(const IntRect&);
  20639. void SetLayoutFlexScale(const Vector2&);
  20640. void SetLayoutMode(LayoutMode);
  20641. void SetLayoutSpacing(int);
  20642. void SetLoadingPercentStyle(const String&);
  20643. void SetMaterial(Material);
  20644. void SetMaterialAttr(const ResourceRef&);
  20645. void SetMaxAnchor(const Vector2&);
  20646. void SetMaxAnchor(float, float);
  20647. void SetMaxHeight(int);
  20648. void SetMaxOffset(const IntVector2&);
  20649. void SetMaxSize(const IntVector2&);
  20650. void SetMaxSize(int, int);
  20651. void SetMaxWidth(int);
  20652. void SetMinAnchor(const Vector2&);
  20653. void SetMinAnchor(float, float);
  20654. void SetMinHeight(int);
  20655. void SetMinOffset(const IntVector2&);
  20656. void SetMinSize(const IntVector2&);
  20657. void SetMinSize(int, int);
  20658. void SetMinWidth(int);
  20659. void SetName(const String&);
  20660. void SetObjectAnimation(ObjectAnimation);
  20661. void SetObjectAnimationAttr(const ResourceRef&);
  20662. void SetOpacity(float);
  20663. void SetOrientation(Orientation);
  20664. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  20665. void SetPivot(const Vector2&);
  20666. void SetPivot(float, float);
  20667. void SetPosition(const IntVector2&);
  20668. void SetPosition(int, int);
  20669. void SetPriority(int);
  20670. void SetRange(float);
  20671. void SetRenderTexture(Texture2D);
  20672. void SetSelected(bool);
  20673. void SetShowPercentText(bool);
  20674. void SetSize(const IntVector2&);
  20675. void SetSize(int, int);
  20676. void SetSortChildren(bool);
  20677. bool SetStyle(const String&, XMLFile = null);
  20678. bool SetStyle(const XMLElement&);
  20679. bool SetStyleAuto(XMLFile = null);
  20680. void SetTags(Array<String>);
  20681. void SetTemporary(bool);
  20682. void SetTexture(Texture);
  20683. void SetTextureAttr(const ResourceRef&);
  20684. void SetTiled(bool);
  20685. void SetTraversalMode(TraversalMode);
  20686. void SetUseDerivedOpacity(bool);
  20687. void SetValue(float);
  20688. void SetVar(StringHash, const Variant&);
  20689. void SetVerticalAlignment(VerticalAlignment);
  20690. void SetVisible(bool);
  20691. void SetWidth(int);
  20692. void SortChildren();
  20693. const String& GetAppliedStyle() const;
  20694. const String& GetCategory() const;
  20695. const String& GetLoadingPercentStyle() const;
  20696. const String& GetName() const;
  20697. const String& GetTypeName() const;
  20698. operator UIElement() const;
  20699. void UnsubscribeFromAllEvents();
  20700. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20701. void UnsubscribeFromEvent(Object, StringHash);
  20702. void UnsubscribeFromEvent(StringHash);
  20703. void UnsubscribeFromEvents(Object);
  20704. void Update(float);
  20705. void UpdateLayout();
  20706. const Variant& GetGlobalVar(StringHash) const;
  20707. const Variant& GetVar(const StringHash&) const;
  20708. const VariantMap& GetGlobalVars() const;
  20709. const VariantMap& GetVars() const;
  20710. const Vector2& GetLayoutFlexScale() const;
  20711. const Vector2& GetMaxAnchor() const;
  20712. const Vector2& GetMinAnchor() const;
  20713. const Vector2& GetPivot() const;
  20714. int WeakRefs() const;
  20715. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  20716. void WriteInitialDeltaUpdate(Serializer&, uint8);
  20717. void WriteLatestDataUpdate(Serializer&, uint8);
  20718. operator const Animatable() const;
  20719. operator const BorderImage() const;
  20720. operator const Object() const;
  20721. operator const RefCounted() const;
  20722. operator const Serializable() const;
  20723. operator const UIElement() const;
  20724. // Properties:
  20725. bool animationEnabled;
  20726. /* readonly */
  20727. Array<Variant> attributeDefaults;
  20728. /* readonly */
  20729. Array<AttributeInfo> attributeInfos;
  20730. Array<Variant> attributes;
  20731. BlendMode blendMode;
  20732. IntRect border;
  20733. bool bringToBack;
  20734. bool bringToFront;
  20735. /* readonly */
  20736. String category;
  20737. /* readonly */
  20738. IntVector2 childOffset;
  20739. /* readonly */
  20740. Array<UIElement> children;
  20741. IntRect clipBorder;
  20742. bool clipChildren;
  20743. /* writeonly */
  20744. Color color;
  20745. /* readonly */
  20746. bool colorGradient;
  20747. Array<Color> colors;
  20748. /* readonly */
  20749. IntRect combinedScreenRect;
  20750. XMLFile defaultStyle;
  20751. /* readonly */
  20752. float derivedOpacity;
  20753. IntVector2 disabledOffset;
  20754. /* readonly */
  20755. uint dragButtonCombo;
  20756. /* readonly */
  20757. uint dragButtonCount;
  20758. uint dragDropMode;
  20759. bool editable;
  20760. bool elementEventSender;
  20761. bool enableAnchor;
  20762. bool enabled;
  20763. /* readonly */
  20764. bool enabledSelf;
  20765. /* readonly */
  20766. bool fixedHeight;
  20767. /* readonly */
  20768. bool fixedSize;
  20769. /* readonly */
  20770. bool fixedWidth;
  20771. bool focus;
  20772. FocusMode focusMode;
  20773. Array<Variant> globalVar;
  20774. /* readonly */
  20775. VariantMap globalVars;
  20776. int height;
  20777. HorizontalAlignment horizontalAlignment;
  20778. IntVector2 hoverOffset;
  20779. /* readonly */
  20780. bool hovering;
  20781. IntRect imageBorder;
  20782. IntRect imageRect;
  20783. int indent;
  20784. int indentSpacing;
  20785. /* readonly */
  20786. int indentWidth;
  20787. bool internal;
  20788. /* readonly */
  20789. BorderImage knob;
  20790. IntRect layoutBorder;
  20791. Vector2 layoutFlexScale;
  20792. LayoutMode layoutMode;
  20793. int layoutSpacing;
  20794. Material material;
  20795. Vector2 maxAnchor;
  20796. int maxHeight;
  20797. IntVector2 maxOffset;
  20798. IntVector2 maxSize;
  20799. int maxWidth;
  20800. Vector2 minAnchor;
  20801. int minHeight;
  20802. IntVector2 minOffset;
  20803. IntVector2 minSize;
  20804. int minWidth;
  20805. String name;
  20806. /* readonly */
  20807. uint numAllChildren;
  20808. /* readonly */
  20809. uint numAttributes;
  20810. /* readonly */
  20811. uint numChildren;
  20812. ObjectAnimation objectAnimation;
  20813. float opacity;
  20814. Orientation orientation;
  20815. UIElement parent;
  20816. Vector2 pivot;
  20817. IntVector2 position;
  20818. int priority;
  20819. float range;
  20820. /* readonly */
  20821. int refs;
  20822. /* readonly */
  20823. UIElement root;
  20824. /* readonly */
  20825. IntVector2 screenPosition;
  20826. bool selected;
  20827. bool showPercentText;
  20828. IntVector2 size;
  20829. bool sortChildren;
  20830. String style;
  20831. /* readonly */
  20832. Array<String> tags;
  20833. bool temporary;
  20834. Texture texture;
  20835. bool tiled;
  20836. TraversalMode traversalMode;
  20837. /* readonly */
  20838. StringHash type;
  20839. /* readonly */
  20840. String typeName;
  20841. bool useDerivedOpacity;
  20842. float value;
  20843. /* readonly */
  20844. VariantMap vars;
  20845. VerticalAlignment verticalAlignment;
  20846. bool visible;
  20847. /* readonly */
  20848. bool visibleEffective;
  20849. /* readonly */
  20850. int weakRefs;
  20851. int width;
  20852. };
  20853. class PropertySet2D
  20854. {
  20855. public:
  20856. PropertySet2D();
  20857. // Methods:
  20858. bool HasProperty(const String&) const;
  20859. void Load(const XMLElement&);
  20860. operator RefCounted() const;
  20861. int Refs() const;
  20862. const String& GetProperty(const String&) const;
  20863. int WeakRefs() const;
  20864. operator const RefCounted() const;
  20865. // Properties:
  20866. /* readonly */
  20867. int refs;
  20868. /* readonly */
  20869. int weakRefs;
  20870. };
  20871. class Quaternion
  20872. {
  20873. public:
  20874. Quaternion();
  20875. Quaternion(const Quaternion&in);
  20876. Quaternion(float, float, float, float);
  20877. Quaternion(float, const Vector3&in);
  20878. Quaternion(float);
  20879. Quaternion(float, float, float);
  20880. Quaternion(const Vector3&in);
  20881. Quaternion(const Vector3&in, const Vector3&in);
  20882. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  20883. Quaternion(const Matrix3&in);
  20884. // Methods:
  20885. Quaternion operator+(const Quaternion&) const;
  20886. Quaternion& operator+=(const Quaternion&);
  20887. Quaternion& operator=(const Quaternion&);
  20888. bool operator==(const Quaternion&) const;
  20889. float Angle() const;
  20890. Vector3 Axis() const;
  20891. Quaternion Conjugate() const;
  20892. float DotProduct(const Quaternion&) const;
  20893. bool Equals(const Quaternion&) const;
  20894. Vector3 EulerAngles() const;
  20895. void FromAngleAxis(float, const Vector3&);
  20896. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  20897. void FromEulerAngles(float, float, float);
  20898. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 :: UP);
  20899. void FromRotationMatrix(const Matrix3&);
  20900. void FromRotationTo(const Vector3&, const Vector3&);
  20901. Quaternion Inverse() const;
  20902. bool IsInf() const;
  20903. bool IsNaN() const;
  20904. float LengthSquared() const;
  20905. Quaternion Nlerp(const Quaternion&, float, bool = false) const;
  20906. void Normalize();
  20907. Quaternion Normalized() const;
  20908. float PitchAngle() const;
  20909. float RollAngle() const;
  20910. Matrix3 RotationMatrix() const;
  20911. Quaternion Slerp(const Quaternion&, float) const;
  20912. String ToString() const;
  20913. float YawAngle() const;
  20914. // Properties:
  20915. /* readonly */
  20916. float angle;
  20917. /* readonly */
  20918. Vector3 axis;
  20919. /* readonly */
  20920. Vector3 eulerAngles;
  20921. /* readonly */
  20922. float pitch;
  20923. /* readonly */
  20924. float roll;
  20925. /* readonly */
  20926. Matrix3 rotationMatrix;
  20927. float w;
  20928. float x;
  20929. float y;
  20930. /* readonly */
  20931. float yaw;
  20932. float z;
  20933. // Constants:
  20934. static const Quaternion IDENTITY;
  20935. };
  20936. class Ray
  20937. {
  20938. public:
  20939. Ray();
  20940. Ray(const Vector3&in, const Vector3&in);
  20941. Ray(const Ray&in);
  20942. // Methods:
  20943. Ray& operator=(const Ray&);
  20944. bool operator==(const Ray&) const;
  20945. Vector3 ClosestPoint(const Ray&) const;
  20946. void Define(const Vector3&, const Vector3&);
  20947. float Distance(const Vector3&) const;
  20948. float HitDistance(const BoundingBox&) const;
  20949. float HitDistance(const Frustum&, bool = true) const;
  20950. float HitDistance(const Plane&) const;
  20951. float HitDistance(const Sphere&) const;
  20952. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  20953. Vector3 Project(const Vector3&) const;
  20954. Ray Transformed(const Matrix3x4&) const;
  20955. // Properties:
  20956. Vector3 direction;
  20957. Vector3 origin;
  20958. };
  20959. class RayQueryResult
  20960. {
  20961. public:
  20962. ~RayQueryResult();
  20963. RayQueryResult();
  20964. // Methods:
  20965. RayQueryResult& operator=(const RayQueryResult&);
  20966. // Properties:
  20967. float distance;
  20968. /* readonly */
  20969. Drawable drawable;
  20970. /* readonly */
  20971. Node node;
  20972. Vector3 normal;
  20973. Vector3 position;
  20974. uint subObject;
  20975. Vector2 textureUV;
  20976. };
  20977. class RaycastVehicle
  20978. {
  20979. public:
  20980. // Methods:
  20981. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  20982. void AllocateNetworkState();
  20983. operator Animatable() const;
  20984. void ApplyAttributes();
  20985. void CleanupConnection(Connection);
  20986. operator Component() const;
  20987. void DrawDebugGeometry(DebugRenderer, bool);
  20988. void FixedPostUpdate(float);
  20989. void FixedUpdate(float);
  20990. bool GetAnimationEnabled() const;
  20991. Variant GetAttribute(const String&) const;
  20992. Variant GetAttribute(uint) const;
  20993. ValueAnimation GetAttributeAnimation(const String&) const;
  20994. float GetAttributeAnimationSpeed(const String&) const;
  20995. float GetAttributeAnimationTime(const String&) const;
  20996. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  20997. Variant GetAttributeDefault(const String&) const;
  20998. Variant GetAttributeDefault(uint) const;
  20999. bool GetBlockEvents() const;
  21000. float GetBrake(int) const;
  21001. Component GetComponent(StringHash) const;
  21002. Vector3 GetContactNormal(int) const;
  21003. Vector3 GetContactPosition(int) const;
  21004. IntVector3 GetCoordinateSystem() const;
  21005. float GetEngineForce(int) const;
  21006. VariantMap& GetEventDataMap() const;
  21007. Object GetEventSender() const;
  21008. uint GetID() const;
  21009. float GetInAirRPM() const;
  21010. bool GetInterceptNetworkUpdate(const String&) const;
  21011. float GetMaxSideSlipSpeed() const;
  21012. float GetMaxSuspensionTravel(int);
  21013. Node GetNode() const;
  21014. uint GetNumAttributes() const;
  21015. uint GetNumNetworkAttributes() const;
  21016. int GetNumWheels() const;
  21017. ObjectAnimation GetObjectAnimation() const;
  21018. ResourceRef GetObjectAnimationAttr() const;
  21019. Scene GetScene() const;
  21020. float GetSteeringValue(int) const;
  21021. Object GetSubsystem(StringHash) const;
  21022. StringHash GetType() const;
  21023. Vector3 GetWheelAxle(int) const;
  21024. Vector3 GetWheelConnectionPoint(int) const;
  21025. float GetWheelDampingCompression(int) const;
  21026. float GetWheelDampingRelaxation(int) const;
  21027. Vector3 GetWheelDirection(int) const;
  21028. float GetWheelFrictionSlip(int) const;
  21029. float GetWheelMaxSuspensionForce(int) const;
  21030. Node GetWheelNode(int) const;
  21031. Vector3 GetWheelPosition(int);
  21032. float GetWheelRadius(int) const;
  21033. float GetWheelRestLength(int) const;
  21034. float GetWheelRollInfluence(int) const;
  21035. Quaternion GetWheelRotation(int);
  21036. float GetWheelSideSlipSpeed(int) const;
  21037. float GetWheelSkidInfo(int) const;
  21038. float GetWheelSkidInfoCumulative(int) const;
  21039. float GetWheelSuspensionStiffness(int) const;
  21040. bool HasEventHandlers() const;
  21041. bool HasSubscribedToEvent(Object, StringHash) const;
  21042. bool HasSubscribedToEvent(StringHash) const;
  21043. void Init();
  21044. bool IsEnabled() const;
  21045. bool IsEnabledEffective() const;
  21046. bool IsFrontWheel(int) const;
  21047. bool IsInstanceOf(StringHash) const;
  21048. bool IsReplicated() const;
  21049. bool IsTemporary() const;
  21050. bool Load(Deserializer&);
  21051. bool LoadJSON(const JSONValue&);
  21052. bool LoadXML(const XMLElement&);
  21053. operator LogicComponent() const;
  21054. void MarkNetworkUpdate();
  21055. operator Object() const;
  21056. void OnEvent(Object, StringHash, VariantMap&);
  21057. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  21058. void OnSetAttribute(const AttributeInfo&, const Variant&);
  21059. void OnSetEnabled();
  21060. void PostUpdate(float);
  21061. void PrepareNetworkUpdate();
  21062. bool ReadDeltaUpdate(Deserializer&);
  21063. bool ReadLatestDataUpdate(Deserializer&);
  21064. operator RefCounted() const;
  21065. int Refs() const;
  21066. void Remove();
  21067. void RemoveAttributeAnimation(const String&);
  21068. void RemoveInstanceDefault();
  21069. void RemoveObjectAnimation();
  21070. void ResetSuspension();
  21071. void ResetToDefault();
  21072. void ResetWheels();
  21073. bool Save(Serializer&) const;
  21074. bool SaveDefaultAttributes() const;
  21075. bool SaveJSON(JSONValue&) const;
  21076. bool SaveXML(XMLElement&) const;
  21077. void SendEvent(StringHash);
  21078. void SendEvent(StringHash, VariantMap&);
  21079. operator Serializable() const;
  21080. void SetAnimationEnabled(bool);
  21081. void SetAnimationTime(float);
  21082. bool SetAttribute(const String&, const Variant&);
  21083. bool SetAttribute(uint, const Variant&);
  21084. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  21085. void SetAttributeAnimationSpeed(const String&, float);
  21086. void SetAttributeAnimationTime(const String&, float);
  21087. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  21088. void SetBlockEvents(bool);
  21089. void SetBrake(int, float);
  21090. void SetCoordinateSystem(const IntVector3& = RIGHT_FORWARD_UP);
  21091. void SetEnabled(bool);
  21092. void SetEngineForce(int, float);
  21093. void SetGlobalVar(StringHash, const Variant&);
  21094. void SetInAirRPM(float);
  21095. void SetInstanceDefault(bool);
  21096. void SetInterceptNetworkUpdate(const String&, bool);
  21097. void SetMaxSideSlipSpeed(float);
  21098. void SetMaxSuspensionTravel(int, float);
  21099. void SetObjectAnimation(ObjectAnimation);
  21100. void SetObjectAnimationAttr(const ResourceRef&);
  21101. void SetSteeringValue(int, float);
  21102. void SetTemporary(bool);
  21103. void SetWheelAxle(int, Vector3);
  21104. void SetWheelDampingCompression(int, float);
  21105. void SetWheelDampingRelaxation(int, float);
  21106. void SetWheelDirection(int, Vector3);
  21107. void SetWheelFrictionSlip(int, float);
  21108. void SetWheelMaxSuspensionForce(int, float);
  21109. void SetWheelRadius(int, float);
  21110. void SetWheelRestLength(int, float);
  21111. void SetWheelRollInfluence(int, float);
  21112. void SetWheelSkidInfo(int, float);
  21113. void SetWheelSkidInfoCumulative(int, float);
  21114. void SetWheelSuspensionStiffness(int, float);
  21115. const String& GetCategory() const;
  21116. const String& GetTypeName() const;
  21117. void UnsubscribeFromAllEvents();
  21118. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  21119. void UnsubscribeFromEvent(Object, StringHash);
  21120. void UnsubscribeFromEvent(StringHash);
  21121. void UnsubscribeFromEvents(Object);
  21122. void UpdateWheelTransform(int, bool);
  21123. const Variant& GetGlobalVar(StringHash) const;
  21124. const VariantMap& GetGlobalVars() const;
  21125. int WeakRefs() const;
  21126. bool WheelIsGrounded(int) const;
  21127. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  21128. void WriteInitialDeltaUpdate(Serializer&, uint8);
  21129. void WriteLatestDataUpdate(Serializer&, uint8);
  21130. operator const Animatable() const;
  21131. operator const Component() const;
  21132. operator const LogicComponent() const;
  21133. operator const Object() const;
  21134. operator const RefCounted() const;
  21135. operator const Serializable() const;
  21136. // Properties:
  21137. bool animationEnabled;
  21138. /* readonly */
  21139. Array<Variant> attributeDefaults;
  21140. /* readonly */
  21141. Array<AttributeInfo> attributeInfos;
  21142. Array<Variant> attributes;
  21143. /* readonly */
  21144. String category;
  21145. IntVector3 coordinateSystem;
  21146. bool enabled;
  21147. /* readonly */
  21148. bool enabledEffective;
  21149. Array<Variant> globalVar;
  21150. /* readonly */
  21151. VariantMap globalVars;
  21152. /* readonly */
  21153. uint id;
  21154. float inAirRPM;
  21155. float maxSideSlipSpeed;
  21156. /* readonly */
  21157. Node node;
  21158. /* readonly */
  21159. uint numAttributes;
  21160. /* readonly */
  21161. int numWheels;
  21162. ObjectAnimation objectAnimation;
  21163. /* readonly */
  21164. int refs;
  21165. /* readonly */
  21166. bool replicated;
  21167. bool temporary;
  21168. /* readonly */
  21169. StringHash type;
  21170. /* readonly */
  21171. String typeName;
  21172. /* readonly */
  21173. int weakRefs;
  21174. // Constants:
  21175. static const IntVector3 FORWARD_RIGHT_UP;
  21176. static const IntVector3 FORWARD_UP_RIGHT;
  21177. static const IntVector3 RIGHT_FORWARD_UP;
  21178. static const IntVector3 RIGHT_UP_FORWARD;
  21179. static const IntVector3 UP_FORWARD_RIGHT;
  21180. static const IntVector3 UP_RIGHT_FORWARD;
  21181. };
  21182. class Rect
  21183. {
  21184. public:
  21185. Rect();
  21186. Rect(const Vector2&in, const Vector2&in);
  21187. Rect(float, float, float, float);
  21188. Rect(const Vector4&in);
  21189. Rect(const Rect&in);
  21190. // Methods:
  21191. Rect operator+(const Rect&) const;
  21192. Rect& operator+=(const Rect&);
  21193. Rect& operator=(const Rect&);
  21194. bool operator==(const Rect&) const;
  21195. float Bottom() const;
  21196. Vector2 Center() const;
  21197. void Clear();
  21198. void Clip(const Rect&);
  21199. void Define(const Rect&);
  21200. void Define(const Vector2&);
  21201. void Define(const Vector2&, const Vector2&);
  21202. bool Defined() const;
  21203. bool Equals(const Rect&) const;
  21204. Vector2 HalfSize() const;
  21205. Intersection IsInside(const Rect&) const;
  21206. Intersection IsInside(const Vector2&) const;
  21207. float Left() const;
  21208. Vector2 Max() const;
  21209. void Merge(const Rect&);
  21210. void Merge(const Vector2&);
  21211. Vector2 Min() const;
  21212. float Right() const;
  21213. Vector2 Size() const;
  21214. String ToString() const;
  21215. Vector4 ToVector4() const;
  21216. float Top() const;
  21217. // Properties:
  21218. /* readonly */
  21219. float bottom;
  21220. /* readonly */
  21221. Vector2 center;
  21222. /* readonly */
  21223. Vector2 halfSize;
  21224. /* readonly */
  21225. float left;
  21226. Vector2 max;
  21227. Vector2 min;
  21228. /* readonly */
  21229. float right;
  21230. /* readonly */
  21231. Vector2 size;
  21232. /* readonly */
  21233. float top;
  21234. // Constants:
  21235. static const Rect FULL;
  21236. static const Rect POSITIVE;
  21237. static const Rect ZERO;
  21238. };
  21239. class RefCount
  21240. {
  21241. public:
  21242. ~RefCount();
  21243. RefCount();
  21244. // Methods:
  21245. RefCount& operator=(const RefCount&);
  21246. // Properties:
  21247. int refs;
  21248. int weakRefs;
  21249. };
  21250. class RefCounted
  21251. {
  21252. public:
  21253. RefCounted();
  21254. // Methods:
  21255. operator Animatable() const;
  21256. operator AnimatedModel() const;
  21257. operator AnimatedSprite2D() const;
  21258. operator Animation() const;
  21259. operator AnimationController() const;
  21260. operator AnimationSet2D() const;
  21261. operator AnimationState() const;
  21262. operator AttributeAccessor() const;
  21263. operator AttributeAnimationInfo() const;
  21264. operator Audio() const;
  21265. operator BillboardSet() const;
  21266. operator BorderImage() const;
  21267. operator BufferedSoundStream() const;
  21268. operator Button() const;
  21269. operator Camera() const;
  21270. operator CheckBox() const;
  21271. operator CollisionBox2D() const;
  21272. operator CollisionChain2D() const;
  21273. operator CollisionCircle2D() const;
  21274. operator CollisionEdge2D() const;
  21275. operator CollisionGeometryData() const;
  21276. operator CollisionPolygon2D() const;
  21277. operator CollisionShape2D() const;
  21278. operator CollisionShape() const;
  21279. operator Component() const;
  21280. operator Connection() const;
  21281. operator Console() const;
  21282. operator ConstantBuffer() const;
  21283. operator Constraint2D() const;
  21284. operator Constraint() const;
  21285. operator ConstraintDistance2D() const;
  21286. operator ConstraintFriction2D() const;
  21287. operator ConstraintGear2D() const;
  21288. operator ConstraintMotor2D() const;
  21289. operator ConstraintMouse2D() const;
  21290. operator ConstraintPrismatic2D() const;
  21291. operator ConstraintPulley2D() const;
  21292. operator ConstraintRevolute2D() const;
  21293. operator ConstraintRope2D() const;
  21294. operator ConstraintWeld2D() const;
  21295. operator ConstraintWheel2D() const;
  21296. operator Context() const;
  21297. operator ConvexData() const;
  21298. operator CrowdAgent() const;
  21299. operator CrowdManager() const;
  21300. operator Cursor() const;
  21301. operator CustomGeometry() const;
  21302. operator Database() const;
  21303. operator DebugHud() const;
  21304. operator DebugRenderer() const;
  21305. operator DecalSet() const;
  21306. operator Drawable2D() const;
  21307. operator Drawable() const;
  21308. operator DropDownList() const;
  21309. operator DynamicNavigationMesh() const;
  21310. operator Engine() const;
  21311. operator EventProfiler() const;
  21312. operator EventReceiverGroup() const;
  21313. operator File() const;
  21314. operator FileSelector() const;
  21315. operator FileSystem() const;
  21316. operator FileWatcher() const;
  21317. operator Font() const;
  21318. operator FontFace() const;
  21319. operator FontFaceBitmap() const;
  21320. operator FontFaceFreeType() const;
  21321. operator GImpactMeshData() const;
  21322. operator Geometry() const;
  21323. operator Graphics() const;
  21324. operator HeightfieldData() const;
  21325. operator HttpRequest() const;
  21326. operator IKConstraint() const;
  21327. operator IKEffector() const;
  21328. operator IKSolver() const;
  21329. operator Image() const;
  21330. operator IndexBuffer() const;
  21331. operator Input() const;
  21332. operator JSONFile() const;
  21333. operator Light() const;
  21334. operator LineEdit() const;
  21335. operator ListView() const;
  21336. operator Localization() const;
  21337. operator Log() const;
  21338. operator LogicComponent() const;
  21339. operator Material() const;
  21340. operator Menu() const;
  21341. operator MessageBox() const;
  21342. operator Model() const;
  21343. operator NamedPipe() const;
  21344. operator NavArea() const;
  21345. operator Navigable() const;
  21346. operator NavigationMesh() const;
  21347. operator Network() const;
  21348. operator NetworkPriority() const;
  21349. operator Node() const;
  21350. operator Object() const;
  21351. operator ObjectAnimation() const;
  21352. operator ObjectFactory() const;
  21353. operator Obstacle() const;
  21354. operator OcclusionBuffer() const;
  21355. operator Octree() const;
  21356. operator OffMeshConnection() const;
  21357. operator OggVorbisSoundStream() const;
  21358. operator PackageFile() const;
  21359. operator ParticleEffect2D() const;
  21360. operator ParticleEffect() const;
  21361. operator ParticleEmitter2D() const;
  21362. operator ParticleEmitter() const;
  21363. operator Pass() const;
  21364. operator PhysicsWorld2D() const;
  21365. operator PhysicsWorld() const;
  21366. operator Profiler() const;
  21367. operator ProgressBar() const;
  21368. operator PropertySet2D() const;
  21369. operator RaycastVehicle() const;
  21370. int Refs() const;
  21371. operator RenderPath() const;
  21372. operator RenderSurface() const;
  21373. operator Renderer2D() const;
  21374. operator Renderer() const;
  21375. operator Resource() const;
  21376. operator ResourceCache() const;
  21377. operator ResourceWithMetadata() const;
  21378. operator RibbonTrail() const;
  21379. operator RigidBody2D() const;
  21380. operator RigidBody() const;
  21381. operator Scene() const;
  21382. operator ScriptInstance() const;
  21383. operator ScrollBar() const;
  21384. operator ScrollView() const;
  21385. operator Serializable() const;
  21386. operator Shader() const;
  21387. operator ShaderParameterAnimationInfo() const;
  21388. operator ShaderPrecache() const;
  21389. operator ShaderVariation() const;
  21390. operator Skybox() const;
  21391. operator Slider() const;
  21392. operator SmoothedTransform() const;
  21393. operator Sound() const;
  21394. operator SoundListener() const;
  21395. operator SoundSource3D() const;
  21396. operator SoundSource() const;
  21397. operator SoundStream() const;
  21398. operator SplinePath() const;
  21399. operator Sprite2D() const;
  21400. operator Sprite() const;
  21401. operator SpriteSheet2D() const;
  21402. operator StaticModel() const;
  21403. operator StaticModelGroup() const;
  21404. operator StaticSprite2D() const;
  21405. operator StretchableSprite2D() const;
  21406. operator Technique() const;
  21407. operator Terrain() const;
  21408. operator TerrainPatch() const;
  21409. operator Text3D() const;
  21410. operator Text() const;
  21411. operator Texture2D() const;
  21412. operator Texture2DArray() const;
  21413. operator Texture3D() const;
  21414. operator Texture() const;
  21415. operator TextureCube() const;
  21416. operator Tile2D() const;
  21417. operator TileMap2D() const;
  21418. operator TileMapLayer2D() const;
  21419. operator TileMapObject2D() const;
  21420. operator Time() const;
  21421. operator TmxFile2D() const;
  21422. operator TmxImageLayer2D() const;
  21423. operator TmxLayer2D() const;
  21424. operator TmxObjectGroup2D() const;
  21425. operator TmxTileLayer2D() const;
  21426. operator ToolTip() const;
  21427. operator TriangleMeshData() const;
  21428. operator UI() const;
  21429. operator UIComponent() const;
  21430. operator UIElement() const;
  21431. operator UISelectable() const;
  21432. operator UnknownComponent() const;
  21433. operator ValueAnimation() const;
  21434. operator ValueAnimationInfo() const;
  21435. operator VertexBuffer() const;
  21436. operator View3D() const;
  21437. operator View() const;
  21438. operator Viewport() const;
  21439. int WeakRefs() const;
  21440. operator Window() const;
  21441. operator WorkQueue() const;
  21442. operator XMLFile() const;
  21443. operator Zone() const;
  21444. operator const Animatable() const;
  21445. operator const AnimatedModel() const;
  21446. operator const AnimatedSprite2D() const;
  21447. operator const Animation() const;
  21448. operator const AnimationController() const;
  21449. operator const AnimationSet2D() const;
  21450. operator const AnimationState() const;
  21451. operator const AttributeAccessor() const;
  21452. operator const AttributeAnimationInfo() const;
  21453. operator const Audio() const;
  21454. operator const BillboardSet() const;
  21455. operator const BorderImage() const;
  21456. operator const BufferedSoundStream() const;
  21457. operator const Button() const;
  21458. operator const Camera() const;
  21459. operator const CheckBox() const;
  21460. operator const CollisionBox2D() const;
  21461. operator const CollisionChain2D() const;
  21462. operator const CollisionCircle2D() const;
  21463. operator const CollisionEdge2D() const;
  21464. operator const CollisionGeometryData() const;
  21465. operator const CollisionPolygon2D() const;
  21466. operator const CollisionShape2D() const;
  21467. operator const CollisionShape() const;
  21468. operator const Component() const;
  21469. operator const Connection() const;
  21470. operator const Console() const;
  21471. operator const ConstantBuffer() const;
  21472. operator const Constraint2D() const;
  21473. operator const Constraint() const;
  21474. operator const ConstraintDistance2D() const;
  21475. operator const ConstraintFriction2D() const;
  21476. operator const ConstraintGear2D() const;
  21477. operator const ConstraintMotor2D() const;
  21478. operator const ConstraintMouse2D() const;
  21479. operator const ConstraintPrismatic2D() const;
  21480. operator const ConstraintPulley2D() const;
  21481. operator const ConstraintRevolute2D() const;
  21482. operator const ConstraintRope2D() const;
  21483. operator const ConstraintWeld2D() const;
  21484. operator const ConstraintWheel2D() const;
  21485. operator const Context() const;
  21486. operator const ConvexData() const;
  21487. operator const CrowdAgent() const;
  21488. operator const CrowdManager() const;
  21489. operator const Cursor() const;
  21490. operator const CustomGeometry() const;
  21491. operator const Database() const;
  21492. operator const DebugHud() const;
  21493. operator const DebugRenderer() const;
  21494. operator const DecalSet() const;
  21495. operator const Drawable2D() const;
  21496. operator const Drawable() const;
  21497. operator const DropDownList() const;
  21498. operator const DynamicNavigationMesh() const;
  21499. operator const Engine() const;
  21500. operator const EventProfiler() const;
  21501. operator const EventReceiverGroup() const;
  21502. operator const File() const;
  21503. operator const FileSelector() const;
  21504. operator const FileSystem() const;
  21505. operator const FileWatcher() const;
  21506. operator const Font() const;
  21507. operator const FontFace() const;
  21508. operator const FontFaceBitmap() const;
  21509. operator const FontFaceFreeType() const;
  21510. operator const GImpactMeshData() const;
  21511. operator const Geometry() const;
  21512. operator const Graphics() const;
  21513. operator const HeightfieldData() const;
  21514. operator const HttpRequest() const;
  21515. operator const IKConstraint() const;
  21516. operator const IKEffector() const;
  21517. operator const IKSolver() const;
  21518. operator const Image() const;
  21519. operator const IndexBuffer() const;
  21520. operator const Input() const;
  21521. operator const JSONFile() const;
  21522. operator const Light() const;
  21523. operator const LineEdit() const;
  21524. operator const ListView() const;
  21525. operator const Localization() const;
  21526. operator const Log() const;
  21527. operator const LogicComponent() const;
  21528. operator const Material() const;
  21529. operator const Menu() const;
  21530. operator const MessageBox() const;
  21531. operator const Model() const;
  21532. operator const NamedPipe() const;
  21533. operator const NavArea() const;
  21534. operator const Navigable() const;
  21535. operator const NavigationMesh() const;
  21536. operator const Network() const;
  21537. operator const NetworkPriority() const;
  21538. operator const Node() const;
  21539. operator const Object() const;
  21540. operator const ObjectAnimation() const;
  21541. operator const ObjectFactory() const;
  21542. operator const Obstacle() const;
  21543. operator const OcclusionBuffer() const;
  21544. operator const Octree() const;
  21545. operator const OffMeshConnection() const;
  21546. operator const OggVorbisSoundStream() const;
  21547. operator const PackageFile() const;
  21548. operator const ParticleEffect2D() const;
  21549. operator const ParticleEffect() const;
  21550. operator const ParticleEmitter2D() const;
  21551. operator const ParticleEmitter() const;
  21552. operator const Pass() const;
  21553. operator const PhysicsWorld2D() const;
  21554. operator const PhysicsWorld() const;
  21555. operator const Profiler() const;
  21556. operator const ProgressBar() const;
  21557. operator const PropertySet2D() const;
  21558. operator const RaycastVehicle() const;
  21559. operator const RenderPath() const;
  21560. operator const RenderSurface() const;
  21561. operator const Renderer2D() const;
  21562. operator const Renderer() const;
  21563. operator const Resource() const;
  21564. operator const ResourceCache() const;
  21565. operator const ResourceWithMetadata() const;
  21566. operator const RibbonTrail() const;
  21567. operator const RigidBody2D() const;
  21568. operator const RigidBody() const;
  21569. operator const Scene() const;
  21570. operator const ScriptInstance() const;
  21571. operator const ScrollBar() const;
  21572. operator const ScrollView() const;
  21573. operator const Serializable() const;
  21574. operator const Shader() const;
  21575. operator const ShaderParameterAnimationInfo() const;
  21576. operator const ShaderPrecache() const;
  21577. operator const ShaderVariation() const;
  21578. operator const Skybox() const;
  21579. operator const Slider() const;
  21580. operator const SmoothedTransform() const;
  21581. operator const Sound() const;
  21582. operator const SoundListener() const;
  21583. operator const SoundSource3D() const;
  21584. operator const SoundSource() const;
  21585. operator const SoundStream() const;
  21586. operator const SplinePath() const;
  21587. operator const Sprite2D() const;
  21588. operator const Sprite() const;
  21589. operator const SpriteSheet2D() const;
  21590. operator const StaticModel() const;
  21591. operator const StaticModelGroup() const;
  21592. operator const StaticSprite2D() const;
  21593. operator const StretchableSprite2D() const;
  21594. operator const Technique() const;
  21595. operator const Terrain() const;
  21596. operator const TerrainPatch() const;
  21597. operator const Text3D() const;
  21598. operator const Text() const;
  21599. operator const Texture2D() const;
  21600. operator const Texture2DArray() const;
  21601. operator const Texture3D() const;
  21602. operator const Texture() const;
  21603. operator const TextureCube() const;
  21604. operator const Tile2D() const;
  21605. operator const TileMap2D() const;
  21606. operator const TileMapLayer2D() const;
  21607. operator const TileMapObject2D() const;
  21608. operator const Time() const;
  21609. operator const TmxFile2D() const;
  21610. operator const TmxImageLayer2D() const;
  21611. operator const TmxLayer2D() const;
  21612. operator const TmxObjectGroup2D() const;
  21613. operator const TmxTileLayer2D() const;
  21614. operator const ToolTip() const;
  21615. operator const TriangleMeshData() const;
  21616. operator const UI() const;
  21617. operator const UIComponent() const;
  21618. operator const UIElement() const;
  21619. operator const UISelectable() const;
  21620. operator const UnknownComponent() const;
  21621. operator const ValueAnimation() const;
  21622. operator const ValueAnimationInfo() const;
  21623. operator const VertexBuffer() const;
  21624. operator const View3D() const;
  21625. operator const View() const;
  21626. operator const Viewport() const;
  21627. operator const Window() const;
  21628. operator const WorkQueue() const;
  21629. operator const XMLFile() const;
  21630. operator const Zone() const;
  21631. // Properties:
  21632. /* readonly */
  21633. int refs;
  21634. /* readonly */
  21635. int weakRefs;
  21636. };
  21637. class RemoteEvent
  21638. {
  21639. public:
  21640. ~RemoteEvent();
  21641. RemoteEvent();
  21642. // Methods:
  21643. RemoteEvent& operator=(const RemoteEvent&);
  21644. // Properties:
  21645. VariantMap eventData;
  21646. StringHash eventType;
  21647. bool inOrder;
  21648. uint senderID;
  21649. };
  21650. class RenderPath
  21651. {
  21652. public:
  21653. RenderPath();
  21654. // Methods:
  21655. void AddCommand(const RenderPathCommand&);
  21656. void AddRenderTarget(const RenderTargetInfo&);
  21657. bool Append(XMLFile);
  21658. RenderPath Clone();
  21659. uint GetNumCommands() const;
  21660. uint GetNumRenderTargets() const;
  21661. void InsertCommand(uint, const RenderPathCommand&);
  21662. bool IsAdded(const String&) const;
  21663. bool IsEnabled(const String&) const;
  21664. bool Load(XMLFile);
  21665. operator RefCounted() const;
  21666. int Refs() const;
  21667. void RemoveCommand(uint);
  21668. void RemoveCommands(const String&);
  21669. void RemoveRenderTarget(const String&);
  21670. void RemoveRenderTarget(uint);
  21671. void RemoveRenderTargets(const String&);
  21672. void SetCommand(uint, const RenderPathCommand&);
  21673. void SetEnabled(const String&, bool);
  21674. void SetRenderTarget(uint, const RenderTargetInfo&);
  21675. void SetShaderParameter(const String&, const Variant&);
  21676. void ToggleEnabled(const String&);
  21677. const Variant& GetShaderParameter(const String&) const;
  21678. int WeakRefs() const;
  21679. operator const RefCounted() const;
  21680. // Properties:
  21681. /* readonly */
  21682. Array<bool> added;
  21683. Array<RenderPathCommand> commands;
  21684. /* readonly */
  21685. Array<bool> enabled;
  21686. /* readonly */
  21687. uint numCommands;
  21688. /* readonly */
  21689. uint numRenderTargets;
  21690. /* readonly */
  21691. int refs;
  21692. Array<RenderTargetInfo> renderTargets;
  21693. Array<Variant> shaderParameters;
  21694. /* readonly */
  21695. int weakRefs;
  21696. };
  21697. class RenderPathCommand
  21698. {
  21699. public:
  21700. ~RenderPathCommand();
  21701. RenderPathCommand();
  21702. // Methods:
  21703. RenderPathCommand& operator=(const RenderPathCommand&);
  21704. uint GetNumOutputs() const;
  21705. CubeMapFace GetOutputFace(uint) const;
  21706. void Load(const XMLElement&);
  21707. void RemoveShaderParameter(const String&);
  21708. void SetDepthStencilName(const String&);
  21709. void SetNumOutputs(uint);
  21710. void SetOutput(uint, const String&, CubeMapFace = FACE_POSITIVE_X);
  21711. void SetOutputFace(uint, CubeMapFace);
  21712. void SetOutputName(uint, const String&);
  21713. void SetShaderParameter(const String&, const Variant&);
  21714. void SetTextureName(TextureUnit, const String&);
  21715. const String& GetDepthStencilName() const;
  21716. const String& GetOutputName(uint) const;
  21717. const String& GetTextureName(TextureUnit) const;
  21718. const Variant& GetShaderParameter(const String&) const;
  21719. // Properties:
  21720. BlendMode blendMode;
  21721. Color clearColor;
  21722. float clearDepth;
  21723. uint clearFlags;
  21724. uint clearStencil;
  21725. String depthStencilName;
  21726. String depthStencilName;
  21727. bool enabled;
  21728. String eventName;
  21729. bool markToStencil;
  21730. String metadata;
  21731. uint numOutputs;
  21732. Array<CubeMapFace> outputFaces;
  21733. Array<String> outputNames;
  21734. String pass;
  21735. uint passIndex;
  21736. String pixelShaderDefines;
  21737. String pixelShaderName;
  21738. Array<Variant> shaderParameters;
  21739. RenderCommandSortMode sortMode;
  21740. String tag;
  21741. Array<String> textureNames;
  21742. RenderCommandType type;
  21743. bool useFogColor;
  21744. bool useLitBase;
  21745. bool vertexLights;
  21746. String vertexShaderDefines;
  21747. String vertexShaderName;
  21748. };
  21749. class RenderSurface
  21750. {
  21751. public:
  21752. RenderSurface(Texture&);
  21753. // Methods:
  21754. bool CreateRenderBuffer(uint, uint, uint, int);
  21755. bool GetAutoResolve() const;
  21756. int GetHeight() const;
  21757. RenderSurface GetLinkedDepthStencil() const;
  21758. RenderSurface GetLinkedRenderTarget() const;
  21759. int GetMultiSample() const;
  21760. uint GetNumViewports() const;
  21761. Texture GetParentTexture() const;
  21762. uint GetRenderBuffer() const;
  21763. uint GetTarget() const;
  21764. RenderSurfaceUpdateMode GetUpdateMode() const;
  21765. TextureUsage GetUsage() const;
  21766. Viewport GetViewport(uint) const;
  21767. int GetWidth() const;
  21768. bool IsResolveDirty() const;
  21769. bool IsUpdateQueued() const;
  21770. void OnDeviceLost();
  21771. void QueueUpdate();
  21772. operator RefCounted() const;
  21773. int Refs() const;
  21774. void Release();
  21775. void ResetUpdateQueued();
  21776. void SetLinkedDepthStencil(RenderSurface);
  21777. void SetLinkedRenderTarget(RenderSurface);
  21778. void SetNumViewports(uint);
  21779. void SetResolveDirty(bool);
  21780. void SetUpdateMode(RenderSurfaceUpdateMode);
  21781. void SetViewport(uint, Viewport);
  21782. int WeakRefs() const;
  21783. operator const RefCounted() const;
  21784. // Properties:
  21785. /* readonly */
  21786. int height;
  21787. RenderSurface linkedDepthStencil;
  21788. RenderSurface linkedRenderTarget;
  21789. uint numViewports;
  21790. /* readonly */
  21791. Texture parentTexture;
  21792. /* readonly */
  21793. int refs;
  21794. /* readonly */
  21795. bool resolveDirty;
  21796. RenderSurfaceUpdateMode updateMode;
  21797. /* readonly */
  21798. TextureUsage usage;
  21799. Array<Viewport> viewports;
  21800. /* readonly */
  21801. int weakRefs;
  21802. /* readonly */
  21803. int width;
  21804. };
  21805. class RenderTargetInfo
  21806. {
  21807. public:
  21808. ~RenderTargetInfo();
  21809. RenderTargetInfo();
  21810. // Methods:
  21811. RenderTargetInfo& operator=(const RenderTargetInfo&);
  21812. void Load(const XMLElement&);
  21813. // Properties:
  21814. bool autoResolve;
  21815. bool cubemap;
  21816. bool enabled;
  21817. bool filtered;
  21818. uint format;
  21819. int multiSample;
  21820. String name;
  21821. bool persistent;
  21822. bool sRGB;
  21823. Vector2 size;
  21824. RenderTargetSizeMode sizeMode;
  21825. String tag;
  21826. };
  21827. class Renderer
  21828. {
  21829. public:
  21830. Renderer();
  21831. // Methods:
  21832. void ApplyShadowMapFilter(View, Texture2D, float);
  21833. void DrawDebugGeometry(bool);
  21834. const FrameInfo& GetFrameInfo() const;
  21835. bool GetBlockEvents() const;
  21836. Texture2D GetDefaultLightRamp() const;
  21837. Texture2D GetDefaultLightSpot() const;
  21838. Material GetDefaultMaterial() const;
  21839. RenderPath GetDefaultRenderPath() const;
  21840. Technique GetDefaultTechnique() const;
  21841. Zone GetDefaultZone() const;
  21842. RenderSurface GetDepthStencil(int, int, int, bool);
  21843. bool GetDrawShadows() const;
  21844. bool GetDynamicInstancing() const;
  21845. VariantMap& GetEventDataMap() const;
  21846. Object GetEventSender() const;
  21847. TextureCube GetFaceSelectCubeMap() const;
  21848. bool GetHDRRendering() const;
  21849. TextureCube GetIndirectionCubeMap() const;
  21850. VertexBuffer GetInstancingBuffer() const;
  21851. Geometry GetLightGeometry(Light);
  21852. uint GetMaterialQuality() const;
  21853. int GetMaxOccluderTriangles() const;
  21854. int GetMaxShadowMaps() const;
  21855. int GetMaxSortedInstances() const;
  21856. int GetMinInstances() const;
  21857. float GetMobileNormalOffsetMul() const;
  21858. float GetMobileShadowBiasAdd() const;
  21859. float GetMobileShadowBiasMul() const;
  21860. uint GetNumBatches() const;
  21861. int GetNumExtraInstancingBufferElements() const;
  21862. uint GetNumGeometries(bool = false) const;
  21863. uint GetNumLights(bool = false) const;
  21864. uint GetNumOccluders(bool = false) const;
  21865. uint GetNumPrimitives() const;
  21866. uint GetNumShadowMaps(bool = false) const;
  21867. uint GetNumViewports() const;
  21868. uint GetNumViews() const;
  21869. float GetOccluderSizeThreshold() const;
  21870. OcclusionBuffer GetOcclusionBuffer(Camera);
  21871. int GetOcclusionBufferSize() const;
  21872. View GetPreparedView(Camera);
  21873. Geometry GetQuadGeometry();
  21874. bool GetReuseShadowMaps() const;
  21875. Texture GetScreenBuffer(int, int, uint, int, bool, bool, bool, bool, uint = 0);
  21876. Camera GetShadowCamera();
  21877. Texture2D GetShadowMap(Light, Camera, uint, uint);
  21878. int GetShadowMapSize() const;
  21879. ShadowQuality GetShadowQuality() const;
  21880. float GetShadowSoftness() const;
  21881. bool GetSpecularLighting() const;
  21882. Object GetSubsystem(StringHash) const;
  21883. int GetTextureAnisotropy() const;
  21884. TextureFilterMode GetTextureFilterMode() const;
  21885. uint GetTextureQuality() const;
  21886. bool GetThreadedOcclusion() const;
  21887. StringHash GetType() const;
  21888. int GetVSMMultiSample() const;
  21889. Vector2 GetVSMShadowParameters() const;
  21890. Viewport GetViewport(uint) const;
  21891. Viewport GetViewportForScene(Scene, uint) const;
  21892. bool HasEventHandlers() const;
  21893. bool HasSubscribedToEvent(Object, StringHash) const;
  21894. bool HasSubscribedToEvent(StringHash) const;
  21895. bool IsInstanceOf(StringHash) const;
  21896. operator Object() const;
  21897. void OnEvent(Object, StringHash, VariantMap&);
  21898. void OptimizeLightByScissor(Light, Camera);
  21899. void OptimizeLightByStencil(Light, Camera);
  21900. void QueueRenderSurface(RenderSurface);
  21901. void QueueViewport(RenderSurface, Viewport);
  21902. const Rect& GetLightScissor(Light, Camera);
  21903. operator RefCounted() const;
  21904. int Refs() const;
  21905. void ReloadShaders();
  21906. void Render();
  21907. bool ResizeInstancingBuffer(uint);
  21908. void SendEvent(StringHash);
  21909. void SendEvent(StringHash, VariantMap&);
  21910. void SetBatchShaders(Batch&, Technique, bool, const BatchQueue&);
  21911. void SetBlockEvents(bool);
  21912. void SetCullMode(CullMode, Camera);
  21913. void SetDefaultRenderPath(RenderPath);
  21914. void SetDefaultRenderPath(XMLFile);
  21915. void SetDefaultTechnique(Technique);
  21916. void SetDrawShadows(bool);
  21917. void SetDynamicInstancing(bool);
  21918. void SetGlobalVar(StringHash, const Variant&);
  21919. void SetHDRRendering(bool);
  21920. void SetLightVolumeBatchShaders(Batch&, Camera, const String&, const String&, const String&, const String&);
  21921. void SetMaterialQuality(uint);
  21922. void SetMaxOccluderTriangles(int);
  21923. void SetMaxShadowMaps(int);
  21924. void SetMaxSortedInstances(int);
  21925. void SetMinInstances(int);
  21926. void SetMobileNormalOffsetMul(float);
  21927. void SetMobileShadowBiasAdd(float);
  21928. void SetMobileShadowBiasMul(float);
  21929. void SetNumExtraInstancingBufferElements(int);
  21930. void SetNumViewports(uint);
  21931. void SetOccluderSizeThreshold(float);
  21932. void SetOcclusionBufferSize(int);
  21933. void SetReuseShadowMaps(bool);
  21934. void SetShadowMapSize(int);
  21935. void SetShadowQuality(ShadowQuality);
  21936. void SetShadowSoftness(float);
  21937. void SetSpecularLighting(bool);
  21938. void SetTextureAnisotropy(int);
  21939. void SetTextureFilterMode(TextureFilterMode);
  21940. void SetTextureQuality(uint);
  21941. void SetThreadedOcclusion(bool);
  21942. void SetVSMMultiSample(int);
  21943. void SetVSMShadowParameters(float, float);
  21944. void SetViewport(uint, Viewport);
  21945. void StorePreparedView(View, Camera);
  21946. const String& GetCategory() const;
  21947. const String& GetTypeName() const;
  21948. void UnsubscribeFromAllEvents();
  21949. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  21950. void UnsubscribeFromEvent(Object, StringHash);
  21951. void UnsubscribeFromEvent(StringHash);
  21952. void UnsubscribeFromEvents(Object);
  21953. void Update(float);
  21954. const Variant& GetGlobalVar(StringHash) const;
  21955. const VariantMap& GetGlobalVars() const;
  21956. int WeakRefs() const;
  21957. operator const Object() const;
  21958. operator const RefCounted() const;
  21959. // Properties:
  21960. /* readonly */
  21961. String category;
  21962. /* readonly */
  21963. Texture2D defaultLightRamp;
  21964. /* readonly */
  21965. Texture2D defaultLightSpot;
  21966. /* readonly */
  21967. Material defaultMaterial;
  21968. RenderPath defaultRenderPath;
  21969. Technique defaultTechnique;
  21970. /* readonly */
  21971. Zone defaultZone;
  21972. bool drawShadows;
  21973. bool dynamicInstancing;
  21974. Array<Variant> globalVar;
  21975. /* readonly */
  21976. VariantMap globalVars;
  21977. bool hdrRendering;
  21978. uint materialQuality;
  21979. int maxOccluderTriangles;
  21980. int maxShadowMaps;
  21981. int maxSortedInstances;
  21982. int minInstances;
  21983. float mobileNormalOffsetMul;
  21984. float mobileShadowBiasAdd;
  21985. float mobileShadowBiasMul;
  21986. /* readonly */
  21987. uint numBatches;
  21988. int numExtraInstancingBufferElements;
  21989. /* readonly */
  21990. Array<uint> numGeometries;
  21991. /* readonly */
  21992. Array<uint> numLights;
  21993. /* readonly */
  21994. Array<uint> numOccluders;
  21995. /* readonly */
  21996. uint numPrimitives;
  21997. /* readonly */
  21998. Array<uint> numShadowMaps;
  21999. uint numViewports;
  22000. /* readonly */
  22001. uint numViews;
  22002. float occluderSizeThreshold;
  22003. int occlusionBufferSize;
  22004. /* readonly */
  22005. int refs;
  22006. bool reuseShadowMaps;
  22007. int shadowMapSize;
  22008. ShadowQuality shadowQuality;
  22009. float shadowSoftness;
  22010. bool specularLighting;
  22011. int textureAnisotropy;
  22012. TextureFilterMode textureFilterMode;
  22013. uint textureQuality;
  22014. bool threadedOcclusion;
  22015. /* readonly */
  22016. StringHash type;
  22017. /* readonly */
  22018. String typeName;
  22019. Array<Viewport> viewports;
  22020. int vsmMultiSample;
  22021. Vector2 vsmShadowParameters;
  22022. /* readonly */
  22023. int weakRefs;
  22024. };
  22025. class Renderer2D
  22026. {
  22027. public:
  22028. Renderer2D();
  22029. // Methods:
  22030. void AddDrawable(Drawable2D);
  22031. void AddLight(Light);
  22032. void AddVertexLight(Light);
  22033. void AllocateNetworkState();
  22034. operator Animatable() const;
  22035. void ApplyAttributes();
  22036. const BoundingBox& GetBoundingBox() const;
  22037. const BoundingBox& GetWorldBoundingBox();
  22038. bool CheckVisibility(Drawable2D) const;
  22039. void CleanupConnection(Connection);
  22040. operator Component() const;
  22041. void DrawDebugGeometry(DebugRenderer, bool);
  22042. bool DrawOcclusion(OcclusionBuffer);
  22043. operator Drawable() const;
  22044. bool GetAnimationEnabled() const;
  22045. Variant GetAttribute(const String&) const;
  22046. Variant GetAttribute(uint) const;
  22047. ValueAnimation GetAttributeAnimation(const String&) const;
  22048. float GetAttributeAnimationSpeed(const String&) const;
  22049. float GetAttributeAnimationTime(const String&) const;
  22050. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  22051. Variant GetAttributeDefault(const String&) const;
  22052. Variant GetAttributeDefault(uint) const;
  22053. bool GetBlockEvents() const;
  22054. bool GetCastShadows() const;
  22055. Component GetComponent(StringHash) const;
  22056. float GetDistance() const;
  22057. float GetDrawDistance() const;
  22058. uint8 GetDrawableFlags() const;
  22059. VariantMap& GetEventDataMap() const;
  22060. Object GetEventSender() const;
  22061. Light GetFirstLight() const;
  22062. uint GetID() const;
  22063. bool GetInterceptNetworkUpdate(const String&) const;
  22064. uint GetLightMask() const;
  22065. Array<Light> GetLights() const;
  22066. float GetLodBias() const;
  22067. float GetLodDistance() const;
  22068. Geometry GetLodGeometry(uint, uint);
  22069. Material GetMaterial(Texture2D, BlendMode);
  22070. uint GetMaxLights() const;
  22071. float GetMaxZ() const;
  22072. float GetMinZ() const;
  22073. Node GetNode() const;
  22074. uint GetNumAttributes() const;
  22075. uint GetNumNetworkAttributes() const;
  22076. uint GetNumOccluderTriangles();
  22077. ObjectAnimation GetObjectAnimation() const;
  22078. ResourceRef GetObjectAnimationAttr() const;
  22079. Scene GetScene() const;
  22080. float GetShadowDistance() const;
  22081. uint GetShadowMask() const;
  22082. float GetSortValue() const;
  22083. Object GetSubsystem(StringHash) const;
  22084. StringHash GetType() const;
  22085. UpdateGeometryType GetUpdateGeometryType();
  22086. Array<Light> GetVertexLights() const;
  22087. uint GetViewMask() const;
  22088. Zone GetZone() const;
  22089. uint GetZoneMask() const;
  22090. bool HasBasePass(uint) const;
  22091. bool HasEventHandlers() const;
  22092. bool HasSubscribedToEvent(Object, StringHash) const;
  22093. bool HasSubscribedToEvent(StringHash) const;
  22094. bool IsEnabled() const;
  22095. bool IsEnabledEffective() const;
  22096. bool IsInView() const;
  22097. bool IsInView(Camera) const;
  22098. bool IsInView(const FrameInfo&, bool = false) const;
  22099. bool IsInstanceOf(StringHash) const;
  22100. bool IsOccludee() const;
  22101. bool IsOccluder() const;
  22102. bool IsReplicated() const;
  22103. bool IsTemporary() const;
  22104. bool IsZoneDirty() const;
  22105. void LimitLights();
  22106. void LimitVertexLights(bool);
  22107. bool Load(Deserializer&);
  22108. bool LoadJSON(const JSONValue&);
  22109. bool LoadXML(const XMLElement&);
  22110. void MarkForUpdate();
  22111. void MarkInView(const FrameInfo&);
  22112. void MarkInView(uint);
  22113. void MarkNetworkUpdate();
  22114. operator Object() const;
  22115. void OnEvent(Object, StringHash, VariantMap&);
  22116. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  22117. void OnSetAttribute(const AttributeInfo&, const Variant&);
  22118. void OnSetEnabled();
  22119. void PrepareNetworkUpdate();
  22120. bool ReadDeltaUpdate(Deserializer&);
  22121. bool ReadLatestDataUpdate(Deserializer&);
  22122. operator RefCounted() const;
  22123. int Refs() const;
  22124. void Remove();
  22125. void RemoveAttributeAnimation(const String&);
  22126. void RemoveDrawable(Drawable2D);
  22127. void RemoveInstanceDefault();
  22128. void RemoveObjectAnimation();
  22129. void ResetToDefault();
  22130. bool Save(Serializer&) const;
  22131. bool SaveDefaultAttributes() const;
  22132. bool SaveJSON(JSONValue&) const;
  22133. bool SaveXML(XMLElement&) const;
  22134. void SendEvent(StringHash);
  22135. void SendEvent(StringHash, VariantMap&);
  22136. operator Serializable() const;
  22137. void SetAnimationEnabled(bool);
  22138. void SetAnimationTime(float);
  22139. bool SetAttribute(const String&, const Variant&);
  22140. bool SetAttribute(uint, const Variant&);
  22141. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  22142. void SetAttributeAnimationSpeed(const String&, float);
  22143. void SetAttributeAnimationTime(const String&, float);
  22144. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  22145. void SetBasePass(uint);
  22146. void SetBlockEvents(bool);
  22147. void SetCastShadows(bool);
  22148. void SetDrawDistance(float);
  22149. void SetEnabled(bool);
  22150. void SetGlobalVar(StringHash, const Variant&);
  22151. void SetInstanceDefault(bool);
  22152. void SetInterceptNetworkUpdate(const String&, bool);
  22153. void SetLightMask(uint);
  22154. void SetLodBias(float);
  22155. void SetMaxLights(uint);
  22156. void SetMinMaxZ(float, float);
  22157. void SetObjectAnimation(ObjectAnimation);
  22158. void SetObjectAnimationAttr(const ResourceRef&);
  22159. void SetOccludee(bool);
  22160. void SetOccluder(bool);
  22161. void SetShadowDistance(float);
  22162. void SetShadowMask(uint);
  22163. void SetSortValue(float);
  22164. void SetTemporary(bool);
  22165. void SetViewMask(uint);
  22166. void SetZone(Zone, bool = false);
  22167. void SetZoneMask(uint);
  22168. const String& GetCategory() const;
  22169. const String& GetTypeName() const;
  22170. void UnsubscribeFromAllEvents();
  22171. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22172. void UnsubscribeFromEvent(Object, StringHash);
  22173. void UnsubscribeFromEvent(StringHash);
  22174. void UnsubscribeFromEvents(Object);
  22175. void Update(const FrameInfo&);
  22176. void UpdateBatches(const FrameInfo&);
  22177. void UpdateGeometry(const FrameInfo&);
  22178. const Variant& GetGlobalVar(StringHash) const;
  22179. const VariantMap& GetGlobalVars() const;
  22180. int WeakRefs() const;
  22181. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  22182. void WriteInitialDeltaUpdate(Serializer&, uint8);
  22183. void WriteLatestDataUpdate(Serializer&, uint8);
  22184. operator const Animatable() const;
  22185. operator const Component() const;
  22186. operator const Drawable() const;
  22187. operator const Object() const;
  22188. operator const RefCounted() const;
  22189. operator const Serializable() const;
  22190. // Properties:
  22191. bool animationEnabled;
  22192. /* readonly */
  22193. Array<Variant> attributeDefaults;
  22194. /* readonly */
  22195. Array<AttributeInfo> attributeInfos;
  22196. Array<Variant> attributes;
  22197. /* readonly */
  22198. BoundingBox boundingBox;
  22199. bool castShadows;
  22200. /* readonly */
  22201. String category;
  22202. float drawDistance;
  22203. bool enabled;
  22204. /* readonly */
  22205. bool enabledEffective;
  22206. Array<Variant> globalVar;
  22207. /* readonly */
  22208. VariantMap globalVars;
  22209. /* readonly */
  22210. uint id;
  22211. /* readonly */
  22212. bool inView;
  22213. uint lightMask;
  22214. float lodBias;
  22215. uint maxLights;
  22216. /* readonly */
  22217. Node node;
  22218. /* readonly */
  22219. uint numAttributes;
  22220. ObjectAnimation objectAnimation;
  22221. bool occludee;
  22222. bool occluder;
  22223. /* readonly */
  22224. int refs;
  22225. /* readonly */
  22226. bool replicated;
  22227. float shadowDistance;
  22228. uint shadowMask;
  22229. bool temporary;
  22230. /* readonly */
  22231. StringHash type;
  22232. /* readonly */
  22233. String typeName;
  22234. uint viewMask;
  22235. /* readonly */
  22236. int weakRefs;
  22237. /* readonly */
  22238. BoundingBox worldBoundingBox;
  22239. /* readonly */
  22240. Zone zone;
  22241. uint zoneMask;
  22242. };
  22243. class ReplicationState
  22244. {
  22245. public:
  22246. ~ReplicationState();
  22247. ReplicationState();
  22248. // Methods:
  22249. ReplicationState& operator=(const ReplicationState&);
  22250. };
  22251. class Resource
  22252. {
  22253. public:
  22254. Resource();
  22255. // Methods:
  22256. operator Animation() const;
  22257. operator AnimationSet2D() const;
  22258. bool BeginLoad(Deserializer&);
  22259. bool EndLoad();
  22260. operator Font() const;
  22261. AsyncLoadState GetAsyncLoadState() const;
  22262. bool GetBlockEvents() const;
  22263. VariantMap& GetEventDataMap() const;
  22264. Object GetEventSender() const;
  22265. uint GetMemoryUse() const;
  22266. StringHash GetNameHash() const;
  22267. Object GetSubsystem(StringHash) const;
  22268. StringHash GetType() const;
  22269. uint GetUseTimer();
  22270. bool HasEventHandlers() const;
  22271. bool HasSubscribedToEvent(Object, StringHash) const;
  22272. bool HasSubscribedToEvent(StringHash) const;
  22273. operator Image() const;
  22274. bool IsInstanceOf(StringHash) const;
  22275. operator JSONFile() const;
  22276. bool Load(Deserializer&);
  22277. bool Load(File);
  22278. bool Load(VectorBuffer&);
  22279. bool Load(const String&);
  22280. bool LoadFile(const String&);
  22281. operator Material() const;
  22282. operator Model() const;
  22283. operator Object() const;
  22284. operator ObjectAnimation() const;
  22285. void OnEvent(Object, StringHash, VariantMap&);
  22286. operator ParticleEffect2D() const;
  22287. operator ParticleEffect() const;
  22288. operator RefCounted() const;
  22289. int Refs() const;
  22290. void ResetUseTimer();
  22291. operator ResourceWithMetadata() const;
  22292. bool Save(File) const;
  22293. bool Save(Serializer&) const;
  22294. bool Save(VectorBuffer&) const;
  22295. bool Save(const String&) const;
  22296. bool SaveFile(const String&) const;
  22297. void SendEvent(StringHash);
  22298. void SendEvent(StringHash, VariantMap&);
  22299. void SetAsyncLoadState(AsyncLoadState);
  22300. void SetBlockEvents(bool);
  22301. void SetGlobalVar(StringHash, const Variant&);
  22302. void SetMemoryUse(uint);
  22303. void SetName(const String&);
  22304. operator Shader() const;
  22305. operator Sound() const;
  22306. operator Sprite2D() const;
  22307. operator SpriteSheet2D() const;
  22308. const String& GetCategory() const;
  22309. const String& GetName() const;
  22310. const String& GetTypeName() const;
  22311. operator Technique() const;
  22312. operator Texture2D() const;
  22313. operator Texture2DArray() const;
  22314. operator Texture3D() const;
  22315. operator Texture() const;
  22316. operator TextureCube() const;
  22317. operator TmxFile2D() const;
  22318. void UnsubscribeFromAllEvents();
  22319. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22320. void UnsubscribeFromEvent(Object, StringHash);
  22321. void UnsubscribeFromEvent(StringHash);
  22322. void UnsubscribeFromEvents(Object);
  22323. operator ValueAnimation() const;
  22324. const Variant& GetGlobalVar(StringHash) const;
  22325. const VariantMap& GetGlobalVars() const;
  22326. int WeakRefs() const;
  22327. operator XMLFile() const;
  22328. operator const Animation() const;
  22329. operator const AnimationSet2D() const;
  22330. operator const Font() const;
  22331. operator const Image() const;
  22332. operator const JSONFile() const;
  22333. operator const Material() const;
  22334. operator const Model() const;
  22335. operator const Object() const;
  22336. operator const ObjectAnimation() const;
  22337. operator const ParticleEffect2D() const;
  22338. operator const ParticleEffect() const;
  22339. operator const RefCounted() const;
  22340. operator const ResourceWithMetadata() const;
  22341. operator const Shader() const;
  22342. operator const Sound() const;
  22343. operator const Sprite2D() const;
  22344. operator const SpriteSheet2D() const;
  22345. operator const Technique() const;
  22346. operator const Texture2D() const;
  22347. operator const Texture2DArray() const;
  22348. operator const Texture3D() const;
  22349. operator const Texture() const;
  22350. operator const TextureCube() const;
  22351. operator const TmxFile2D() const;
  22352. operator const ValueAnimation() const;
  22353. operator const XMLFile() const;
  22354. // Properties:
  22355. /* readonly */
  22356. String category;
  22357. Array<Variant> globalVar;
  22358. /* readonly */
  22359. VariantMap globalVars;
  22360. /* readonly */
  22361. uint memoryUse;
  22362. String name;
  22363. /* readonly */
  22364. int refs;
  22365. /* readonly */
  22366. StringHash type;
  22367. /* readonly */
  22368. String typeName;
  22369. /* readonly */
  22370. uint useTimer;
  22371. /* readonly */
  22372. int weakRefs;
  22373. };
  22374. class ResourceCache
  22375. {
  22376. public:
  22377. ResourceCache();
  22378. // Methods:
  22379. bool AddManualResource(Resource);
  22380. bool AddPackageFile(PackageFile, uint = PRIORITY_LAST);
  22381. bool AddPackageFile(const String&, uint = PRIORITY_LAST);
  22382. bool AddResourceDir(const String&, uint = PRIORITY_LAST);
  22383. bool BackgroundLoadResource(StringHash, const String&, bool = true, Resource = null);
  22384. bool Exists(const String&) const;
  22385. bool GetAutoReloadResources() const;
  22386. bool GetBlockEvents() const;
  22387. VariantMap& GetEventDataMap() const;
  22388. Object GetEventSender() const;
  22389. Resource GetExistingResource(StringHash, const String&);
  22390. File GetFile(const String&, bool = true);
  22391. int GetFinishBackgroundResourcesMs() const;
  22392. uint64 GetMemoryBudget(StringHash) const;
  22393. uint64 GetMemoryUse(StringHash) const;
  22394. uint GetNumBackgroundLoadResources() const;
  22395. Array<PackageFile> GetPackageFiles() const;
  22396. String GetPreferredResourceDir(const String&) const;
  22397. Resource GetResource(StringHash, const String&, bool = true);
  22398. Array<String> GetResourceDirs() const;
  22399. String GetResourceFileName(const String&) const;
  22400. Array<Resource> GetResources(StringHash);
  22401. bool GetReturnFailedResources() const;
  22402. bool GetSearchPackagesFirst() const;
  22403. Object GetSubsystem(StringHash) const;
  22404. Resource GetTempResource(StringHash, const String&, bool = true);
  22405. uint64 GetTotalMemoryUse() const;
  22406. StringHash GetType() const;
  22407. bool HasEventHandlers() const;
  22408. bool HasSubscribedToEvent(Object, StringHash) const;
  22409. bool HasSubscribedToEvent(StringHash) const;
  22410. bool IsInstanceOf(StringHash) const;
  22411. operator Object() const;
  22412. void OnEvent(Object, StringHash, VariantMap&);
  22413. String PrintMemoryUsage() const;
  22414. operator RefCounted() const;
  22415. int Refs() const;
  22416. void ReleaseAllResources(bool = false);
  22417. void ReleaseResource(StringHash, const String&, bool = false);
  22418. void ReleaseResources(StringHash, bool = false);
  22419. void ReleaseResources(StringHash, const String&, bool = false);
  22420. void ReleaseResources(const String&, bool = false);
  22421. bool ReloadResource(Resource);
  22422. void ReloadResourceWithDependencies(const String&);
  22423. void RemovePackageFile(PackageFile, bool = true, bool = false);
  22424. void RemovePackageFile(const String&, bool = true, bool = false);
  22425. void RemoveResourceDir(const String&);
  22426. void ResetDependencies(Resource);
  22427. String SanitateResourceDirName(const String&) const;
  22428. String SanitateResourceName(const String&) const;
  22429. void SendEvent(StringHash);
  22430. void SendEvent(StringHash, VariantMap&);
  22431. void SetAutoReloadResources(bool);
  22432. void SetBlockEvents(bool);
  22433. void SetFinishBackgroundResourcesMs(int);
  22434. void SetGlobalVar(StringHash, const Variant&);
  22435. void SetMemoryBudget(StringHash, uint64);
  22436. void SetReturnFailedResources(bool);
  22437. void SetSearchPackagesFirst(bool);
  22438. void StoreResourceDependency(Resource, const String&);
  22439. const String& GetCategory() const;
  22440. const String& GetTypeName() const;
  22441. void UnsubscribeFromAllEvents();
  22442. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22443. void UnsubscribeFromEvent(Object, StringHash);
  22444. void UnsubscribeFromEvent(StringHash);
  22445. void UnsubscribeFromEvents(Object);
  22446. const Variant& GetGlobalVar(StringHash) const;
  22447. const VariantMap& GetGlobalVars() const;
  22448. int WeakRefs() const;
  22449. operator const Object() const;
  22450. operator const RefCounted() const;
  22451. // Properties:
  22452. bool autoReloadResources;
  22453. /* readonly */
  22454. String category;
  22455. int finishBackgroundResourcesMs;
  22456. Array<Variant> globalVar;
  22457. /* readonly */
  22458. VariantMap globalVars;
  22459. Array<uint64> memoryBudget;
  22460. /* readonly */
  22461. Array<uint64> memoryUse;
  22462. /* readonly */
  22463. uint numBackgroundLoadResources;
  22464. /* readonly */
  22465. Array<PackageFile> packageFiles;
  22466. /* readonly */
  22467. int refs;
  22468. /* readonly */
  22469. Array<String> resourceDirs;
  22470. bool returnFailedResources;
  22471. bool searchPackagesFirst;
  22472. /* readonly */
  22473. uint64 totalMemoryUse;
  22474. /* readonly */
  22475. StringHash type;
  22476. /* readonly */
  22477. String typeName;
  22478. /* readonly */
  22479. int weakRefs;
  22480. };
  22481. class ResourceGroup
  22482. {
  22483. public:
  22484. ~ResourceGroup();
  22485. ResourceGroup();
  22486. // Methods:
  22487. ResourceGroup& operator=(const ResourceGroup&);
  22488. // Properties:
  22489. uint64 memoryBudget;
  22490. uint64 memoryUse;
  22491. };
  22492. class ResourceRef
  22493. {
  22494. public:
  22495. ~ResourceRef();
  22496. ResourceRef();
  22497. ResourceRef(StringHash);
  22498. ResourceRef(StringHash, const String&in);
  22499. ResourceRef(const String&in, const String&in);
  22500. ResourceRef(const ResourceRef&in);
  22501. // Methods:
  22502. ResourceRef& operator=(const ResourceRef&);
  22503. bool operator==(const ResourceRef&) const;
  22504. // Properties:
  22505. String name;
  22506. StringHash type;
  22507. };
  22508. class ResourceRefList
  22509. {
  22510. public:
  22511. ~ResourceRefList();
  22512. ResourceRefList();
  22513. ResourceRefList(StringHash);
  22514. ResourceRefList(StringHash, String[]@);
  22515. // Methods:
  22516. ResourceRefList& operator=(const ResourceRefList&);
  22517. bool operator==(const ResourceRefList&) const;
  22518. void Resize(uint);
  22519. // Properties:
  22520. /* readonly */
  22521. bool empty;
  22522. /* readonly */
  22523. uint length;
  22524. Array<String> names;
  22525. StringHash type;
  22526. };
  22527. class ResourceWithMetadata
  22528. {
  22529. public:
  22530. ResourceWithMetadata();
  22531. // Methods:
  22532. void AddMetadata(const String&, const Variant&);
  22533. operator Animation() const;
  22534. bool BeginLoad(Deserializer&);
  22535. bool EndLoad();
  22536. AsyncLoadState GetAsyncLoadState() const;
  22537. bool GetBlockEvents() const;
  22538. VariantMap& GetEventDataMap() const;
  22539. Object GetEventSender() const;
  22540. uint GetMemoryUse() const;
  22541. StringHash GetNameHash() const;
  22542. Object GetSubsystem(StringHash) const;
  22543. StringHash GetType() const;
  22544. uint GetUseTimer();
  22545. bool HasEventHandlers() const;
  22546. bool HasMetadata() const;
  22547. bool HasSubscribedToEvent(Object, StringHash) const;
  22548. bool HasSubscribedToEvent(StringHash) const;
  22549. bool IsInstanceOf(StringHash) const;
  22550. bool Load(Deserializer&);
  22551. bool Load(File);
  22552. bool Load(VectorBuffer&);
  22553. bool Load(const String&);
  22554. bool LoadFile(const String&);
  22555. operator Model() const;
  22556. operator Object() const;
  22557. void OnEvent(Object, StringHash, VariantMap&);
  22558. operator RefCounted() const;
  22559. int Refs() const;
  22560. void RemoveAllMetadata();
  22561. void RemoveMetadata(const String&);
  22562. void ResetUseTimer();
  22563. operator Resource() const;
  22564. bool Save(File) const;
  22565. bool Save(Serializer&) const;
  22566. bool Save(VectorBuffer&) const;
  22567. bool Save(const String&) const;
  22568. bool SaveFile(const String&) const;
  22569. void SendEvent(StringHash);
  22570. void SendEvent(StringHash, VariantMap&);
  22571. void SetAsyncLoadState(AsyncLoadState);
  22572. void SetBlockEvents(bool);
  22573. void SetGlobalVar(StringHash, const Variant&);
  22574. void SetMemoryUse(uint);
  22575. void SetName(const String&);
  22576. operator Sound() const;
  22577. const String& GetCategory() const;
  22578. const String& GetName() const;
  22579. const String& GetTypeName() const;
  22580. operator Texture2D() const;
  22581. operator Texture2DArray() const;
  22582. operator Texture3D() const;
  22583. operator Texture() const;
  22584. operator TextureCube() const;
  22585. void UnsubscribeFromAllEvents();
  22586. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22587. void UnsubscribeFromEvent(Object, StringHash);
  22588. void UnsubscribeFromEvent(StringHash);
  22589. void UnsubscribeFromEvents(Object);
  22590. const Variant& GetGlobalVar(StringHash) const;
  22591. const Variant& GetMetadata(const String&) const;
  22592. const VariantMap& GetGlobalVars() const;
  22593. int WeakRefs() const;
  22594. operator const Animation() const;
  22595. operator const Model() const;
  22596. operator const Object() const;
  22597. operator const RefCounted() const;
  22598. operator const Resource() const;
  22599. operator const Sound() const;
  22600. operator const Texture2D() const;
  22601. operator const Texture2DArray() const;
  22602. operator const Texture3D() const;
  22603. operator const Texture() const;
  22604. operator const TextureCube() const;
  22605. // Properties:
  22606. /* readonly */
  22607. String category;
  22608. Array<Variant> globalVar;
  22609. /* readonly */
  22610. VariantMap globalVars;
  22611. /* readonly */
  22612. bool hasMetadata;
  22613. /* readonly */
  22614. uint memoryUse;
  22615. Array<Variant> metadata;
  22616. String name;
  22617. /* readonly */
  22618. int refs;
  22619. /* readonly */
  22620. StringHash type;
  22621. /* readonly */
  22622. String typeName;
  22623. /* readonly */
  22624. uint useTimer;
  22625. /* readonly */
  22626. int weakRefs;
  22627. };
  22628. class RibbonTrail
  22629. {
  22630. public:
  22631. RibbonTrail();
  22632. // Methods:
  22633. void AddLight(Light);
  22634. void AddVertexLight(Light);
  22635. void AllocateNetworkState();
  22636. operator Animatable() const;
  22637. void ApplyAttributes();
  22638. const BoundingBox& GetBoundingBox() const;
  22639. const BoundingBox& GetWorldBoundingBox();
  22640. void CleanupConnection(Connection);
  22641. const Color& GetEndColor() const;
  22642. const Color& GetStartColor() const;
  22643. void Commit();
  22644. operator Component() const;
  22645. void DrawDebugGeometry(DebugRenderer, bool);
  22646. bool DrawOcclusion(OcclusionBuffer);
  22647. operator Drawable() const;
  22648. bool GetAnimationEnabled() const;
  22649. float GetAnimationLodBias() const;
  22650. Variant GetAttribute(const String&) const;
  22651. Variant GetAttribute(uint) const;
  22652. ValueAnimation GetAttributeAnimation(const String&) const;
  22653. float GetAttributeAnimationSpeed(const String&) const;
  22654. float GetAttributeAnimationTime(const String&) const;
  22655. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  22656. Variant GetAttributeDefault(const String&) const;
  22657. Variant GetAttributeDefault(uint) const;
  22658. bool GetBlockEvents() const;
  22659. bool GetCastShadows() const;
  22660. Component GetComponent(StringHash) const;
  22661. float GetDistance() const;
  22662. float GetDrawDistance() const;
  22663. uint8 GetDrawableFlags() const;
  22664. float GetEndScale() const;
  22665. VariantMap& GetEventDataMap() const;
  22666. Object GetEventSender() const;
  22667. Light GetFirstLight() const;
  22668. uint GetID() const;
  22669. bool GetInterceptNetworkUpdate(const String&) const;
  22670. float GetLifetime() const;
  22671. uint GetLightMask() const;
  22672. Array<Light> GetLights() const;
  22673. float GetLodBias() const;
  22674. float GetLodDistance() const;
  22675. Geometry GetLodGeometry(uint, uint);
  22676. Material GetMaterial() const;
  22677. ResourceRef GetMaterialAttr() const;
  22678. uint GetMaxLights() const;
  22679. float GetMaxZ() const;
  22680. float GetMinZ() const;
  22681. Node GetNode() const;
  22682. uint GetNumAttributes() const;
  22683. uint GetNumNetworkAttributes() const;
  22684. uint GetNumOccluderTriangles();
  22685. ObjectAnimation GetObjectAnimation() const;
  22686. ResourceRef GetObjectAnimationAttr() const;
  22687. Scene GetScene() const;
  22688. float GetShadowDistance() const;
  22689. uint GetShadowMask() const;
  22690. float GetSortValue() const;
  22691. float GetStartScale() const;
  22692. Object GetSubsystem(StringHash) const;
  22693. uint GetTailColumn() const;
  22694. TrailType GetTrailType() const;
  22695. StringHash GetType() const;
  22696. UpdateGeometryType GetUpdateGeometryType();
  22697. bool GetUpdateInvisible() const;
  22698. float GetVertexDistance() const;
  22699. Array<Light> GetVertexLights() const;
  22700. uint GetViewMask() const;
  22701. float GetWidth() const;
  22702. Zone GetZone() const;
  22703. uint GetZoneMask() const;
  22704. bool HasBasePass(uint) const;
  22705. bool HasEventHandlers() const;
  22706. bool HasSubscribedToEvent(Object, StringHash) const;
  22707. bool HasSubscribedToEvent(StringHash) const;
  22708. bool IsEmitting() const;
  22709. bool IsEnabled() const;
  22710. bool IsEnabledEffective() const;
  22711. bool IsInView() const;
  22712. bool IsInView(Camera) const;
  22713. bool IsInView(const FrameInfo&, bool = false) const;
  22714. bool IsInstanceOf(StringHash) const;
  22715. bool IsOccludee() const;
  22716. bool IsOccluder() const;
  22717. bool IsReplicated() const;
  22718. bool IsSorted() const;
  22719. bool IsTemporary() const;
  22720. bool IsZoneDirty() const;
  22721. void LimitLights();
  22722. void LimitVertexLights(bool);
  22723. bool Load(Deserializer&);
  22724. bool LoadJSON(const JSONValue&);
  22725. bool LoadXML(const XMLElement&);
  22726. void MarkForUpdate();
  22727. void MarkInView(const FrameInfo&);
  22728. void MarkInView(uint);
  22729. void MarkNetworkUpdate();
  22730. operator Object() const;
  22731. void OnEvent(Object, StringHash, VariantMap&);
  22732. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  22733. void OnSetAttribute(const AttributeInfo&, const Variant&);
  22734. void OnSetEnabled();
  22735. void PrepareNetworkUpdate();
  22736. bool ReadDeltaUpdate(Deserializer&);
  22737. bool ReadLatestDataUpdate(Deserializer&);
  22738. operator RefCounted() const;
  22739. int Refs() const;
  22740. void Remove();
  22741. void RemoveAttributeAnimation(const String&);
  22742. void RemoveInstanceDefault();
  22743. void RemoveObjectAnimation();
  22744. void ResetToDefault();
  22745. bool Save(Serializer&) const;
  22746. bool SaveDefaultAttributes() const;
  22747. bool SaveJSON(JSONValue&) const;
  22748. bool SaveXML(XMLElement&) const;
  22749. void SendEvent(StringHash);
  22750. void SendEvent(StringHash, VariantMap&);
  22751. operator Serializable() const;
  22752. void SetAnimationEnabled(bool);
  22753. void SetAnimationLodBias(float);
  22754. void SetAnimationTime(float);
  22755. bool SetAttribute(const String&, const Variant&);
  22756. bool SetAttribute(uint, const Variant&);
  22757. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  22758. void SetAttributeAnimationSpeed(const String&, float);
  22759. void SetAttributeAnimationTime(const String&, float);
  22760. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  22761. void SetBasePass(uint);
  22762. void SetBaseVelocity(const Vector3&);
  22763. void SetBlockEvents(bool);
  22764. void SetCastShadows(bool);
  22765. void SetDrawDistance(float);
  22766. void SetEmitting(bool);
  22767. void SetEnabled(bool);
  22768. void SetEndColor(const Color&);
  22769. void SetEndScale(float);
  22770. void SetGlobalVar(StringHash, const Variant&);
  22771. void SetInstanceDefault(bool);
  22772. void SetInterceptNetworkUpdate(const String&, bool);
  22773. void SetLifetime(float);
  22774. void SetLightMask(uint);
  22775. void SetLodBias(float);
  22776. void SetMaterial(Material);
  22777. void SetMaterialAttr(const ResourceRef&);
  22778. void SetMaxLights(uint);
  22779. void SetMinMaxZ(float, float);
  22780. void SetObjectAnimation(ObjectAnimation);
  22781. void SetObjectAnimationAttr(const ResourceRef&);
  22782. void SetOccludee(bool);
  22783. void SetOccluder(bool);
  22784. void SetShadowDistance(float);
  22785. void SetShadowMask(uint);
  22786. void SetSortValue(float);
  22787. void SetSorted(bool);
  22788. void SetStartColor(const Color&);
  22789. void SetStartScale(float);
  22790. void SetTailColumn(uint);
  22791. void SetTemporary(bool);
  22792. void SetTrailType(TrailType);
  22793. void SetUpdateInvisible(bool);
  22794. void SetVertexDistance(float);
  22795. void SetViewMask(uint);
  22796. void SetWidth(float);
  22797. void SetZone(Zone, bool = false);
  22798. void SetZoneMask(uint);
  22799. const String& GetCategory() const;
  22800. const String& GetTypeName() const;
  22801. void UnsubscribeFromAllEvents();
  22802. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22803. void UnsubscribeFromEvent(Object, StringHash);
  22804. void UnsubscribeFromEvent(StringHash);
  22805. void UnsubscribeFromEvents(Object);
  22806. void Update(const FrameInfo&);
  22807. void UpdateBatches(const FrameInfo&);
  22808. void UpdateGeometry(const FrameInfo&);
  22809. const Variant& GetGlobalVar(StringHash) const;
  22810. const VariantMap& GetGlobalVars() const;
  22811. const Vector3& GetBaseVelocity() const;
  22812. int WeakRefs() const;
  22813. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  22814. void WriteInitialDeltaUpdate(Serializer&, uint8);
  22815. void WriteLatestDataUpdate(Serializer&, uint8);
  22816. operator const Animatable() const;
  22817. operator const Component() const;
  22818. operator const Drawable() const;
  22819. operator const Object() const;
  22820. operator const RefCounted() const;
  22821. operator const Serializable() const;
  22822. // Properties:
  22823. bool animationEnabled;
  22824. float animationLodBias;
  22825. /* readonly */
  22826. Array<Variant> attributeDefaults;
  22827. /* readonly */
  22828. Array<AttributeInfo> attributeInfos;
  22829. Array<Variant> attributes;
  22830. Vector3 baseVelocity;
  22831. /* readonly */
  22832. BoundingBox boundingBox;
  22833. bool castShadows;
  22834. /* readonly */
  22835. String category;
  22836. float drawDistance;
  22837. bool emitting;
  22838. bool enabled;
  22839. /* readonly */
  22840. bool enabledEffective;
  22841. Color endColor;
  22842. float endScale;
  22843. Array<Variant> globalVar;
  22844. /* readonly */
  22845. VariantMap globalVars;
  22846. /* readonly */
  22847. uint id;
  22848. /* readonly */
  22849. bool inView;
  22850. float lifetime;
  22851. uint lightMask;
  22852. float lodBias;
  22853. Material material;
  22854. uint maxLights;
  22855. /* readonly */
  22856. Node node;
  22857. /* readonly */
  22858. uint numAttributes;
  22859. ObjectAnimation objectAnimation;
  22860. bool occludee;
  22861. bool occluder;
  22862. /* readonly */
  22863. int refs;
  22864. /* readonly */
  22865. bool replicated;
  22866. float shadowDistance;
  22867. uint shadowMask;
  22868. bool sorted;
  22869. Color startColor;
  22870. float startScale;
  22871. uint tailColumn;
  22872. bool temporary;
  22873. TrailType trailType;
  22874. /* readonly */
  22875. StringHash type;
  22876. /* readonly */
  22877. String typeName;
  22878. bool updateInvisible;
  22879. float vertexDistance;
  22880. uint viewMask;
  22881. /* readonly */
  22882. int weakRefs;
  22883. float width;
  22884. /* readonly */
  22885. BoundingBox worldBoundingBox;
  22886. /* readonly */
  22887. Zone zone;
  22888. uint zoneMask;
  22889. };
  22890. class RigidBody
  22891. {
  22892. public:
  22893. RigidBody();
  22894. // Methods:
  22895. void Activate();
  22896. void AddConstraint(Constraint);
  22897. void AllocateNetworkState();
  22898. operator Animatable() const;
  22899. void ApplyAttributes();
  22900. void ApplyForce(const Vector3&);
  22901. void ApplyForce(const Vector3&, const Vector3&);
  22902. void ApplyImpulse(const Vector3&);
  22903. void ApplyImpulse(const Vector3&, const Vector3&);
  22904. void ApplyTorque(const Vector3&);
  22905. void ApplyTorqueImpulse(const Vector3&);
  22906. void ApplyWorldTransform(const Vector3&, const Quaternion&);
  22907. void CleanupConnection(Connection);
  22908. operator Component() const;
  22909. void DisableMassUpdate();
  22910. void DrawDebugGeometry(DebugRenderer, bool);
  22911. void EnableMassUpdate();
  22912. float GetAngularDamping() const;
  22913. Vector3 GetAngularFactor() const;
  22914. float GetAngularRestThreshold() const;
  22915. Vector3 GetAngularVelocity() const;
  22916. bool GetAnimationEnabled() const;
  22917. Vector3 GetAnisotropicFriction() const;
  22918. Variant GetAttribute(const String&) const;
  22919. Variant GetAttribute(uint) const;
  22920. ValueAnimation GetAttributeAnimation(const String&) const;
  22921. float GetAttributeAnimationSpeed(const String&) const;
  22922. float GetAttributeAnimationTime(const String&) const;
  22923. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  22924. Variant GetAttributeDefault(const String&) const;
  22925. Variant GetAttributeDefault(uint) const;
  22926. bool GetBlockEvents() const;
  22927. float GetCcdMotionThreshold() const;
  22928. float GetCcdRadius() const;
  22929. CollisionEventMode GetCollisionEventMode() const;
  22930. uint GetCollisionLayer() const;
  22931. uint GetCollisionMask() const;
  22932. Component GetComponent(StringHash) const;
  22933. float GetContactProcessingThreshold() const;
  22934. VariantMap& GetEventDataMap() const;
  22935. Object GetEventSender() const;
  22936. float GetFriction() const;
  22937. uint GetID() const;
  22938. bool GetInterceptNetworkUpdate(const String&) const;
  22939. float GetLinearDamping() const;
  22940. Vector3 GetLinearFactor() const;
  22941. float GetLinearRestThreshold() const;
  22942. Vector3 GetLinearVelocity() const;
  22943. float GetMass() const;
  22944. Node GetNode() const;
  22945. uint GetNumAttributes() const;
  22946. uint GetNumNetworkAttributes() const;
  22947. ObjectAnimation GetObjectAnimation() const;
  22948. ResourceRef GetObjectAnimationAttr() const;
  22949. PhysicsWorld GetPhysicsWorld() const;
  22950. Vector3 GetPosition() const;
  22951. float GetRestitution() const;
  22952. float GetRollingFriction() const;
  22953. Quaternion GetRotation() const;
  22954. Scene GetScene() const;
  22955. Object GetSubsystem(StringHash) const;
  22956. StringHash GetType() const;
  22957. bool GetUseGravity() const;
  22958. Vector3 GetVelocityAtPoint(const Vector3&) const;
  22959. bool HasEventHandlers() const;
  22960. bool HasSubscribedToEvent(Object, StringHash) const;
  22961. bool HasSubscribedToEvent(StringHash) const;
  22962. bool IsActive() const;
  22963. bool IsEnabled() const;
  22964. bool IsEnabledEffective() const;
  22965. bool IsInstanceOf(StringHash) const;
  22966. bool IsKinematic() const;
  22967. bool IsReplicated() const;
  22968. bool IsTemporary() const;
  22969. bool IsTrigger() const;
  22970. bool Load(Deserializer&);
  22971. bool LoadJSON(const JSONValue&);
  22972. bool LoadXML(const XMLElement&);
  22973. void MarkNetworkUpdate();
  22974. operator Object() const;
  22975. void OnEvent(Object, StringHash, VariantMap&);
  22976. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  22977. void OnSetAttribute(const AttributeInfo&, const Variant&);
  22978. void OnSetEnabled();
  22979. void PrepareNetworkUpdate();
  22980. void ReAddBodyToWorld();
  22981. bool ReadDeltaUpdate(Deserializer&);
  22982. bool ReadLatestDataUpdate(Deserializer&);
  22983. operator RefCounted() const;
  22984. int Refs() const;
  22985. void ReleaseBody();
  22986. void Remove();
  22987. void RemoveAttributeAnimation(const String&);
  22988. void RemoveConstraint(Constraint);
  22989. void RemoveInstanceDefault();
  22990. void RemoveObjectAnimation();
  22991. void ResetForces();
  22992. void ResetToDefault();
  22993. bool Save(Serializer&) const;
  22994. bool SaveDefaultAttributes() const;
  22995. bool SaveJSON(JSONValue&) const;
  22996. bool SaveXML(XMLElement&) const;
  22997. void SendEvent(StringHash);
  22998. void SendEvent(StringHash, VariantMap&);
  22999. operator Serializable() const;
  23000. void SetAngularDamping(float);
  23001. void SetAngularFactor(const Vector3&);
  23002. void SetAngularRestThreshold(float);
  23003. void SetAngularVelocity(const Vector3&);
  23004. void SetAnimationEnabled(bool);
  23005. void SetAnimationTime(float);
  23006. void SetAnisotropicFriction(const Vector3&);
  23007. bool SetAttribute(const String&, const Variant&);
  23008. bool SetAttribute(uint, const Variant&);
  23009. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23010. void SetAttributeAnimationSpeed(const String&, float);
  23011. void SetAttributeAnimationTime(const String&, float);
  23012. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23013. void SetBlockEvents(bool);
  23014. void SetCcdMotionThreshold(float);
  23015. void SetCcdRadius(float);
  23016. void SetCollisionEventMode(CollisionEventMode);
  23017. void SetCollisionLayer(uint);
  23018. void SetCollisionLayerAndMask(uint, uint);
  23019. void SetCollisionMask(uint);
  23020. void SetContactProcessingThreshold(float);
  23021. void SetEnabled(bool);
  23022. void SetFriction(float);
  23023. void SetGlobalVar(StringHash, const Variant&);
  23024. void SetGravityOverride(const Vector3&);
  23025. void SetInstanceDefault(bool);
  23026. void SetInterceptNetworkUpdate(const String&, bool);
  23027. void SetKinematic(bool);
  23028. void SetLinearDamping(float);
  23029. void SetLinearFactor(const Vector3&);
  23030. void SetLinearRestThreshold(float);
  23031. void SetLinearVelocity(const Vector3&);
  23032. void SetMass(float);
  23033. void SetObjectAnimation(ObjectAnimation);
  23034. void SetObjectAnimationAttr(const ResourceRef&);
  23035. void SetPosition(const Vector3&);
  23036. void SetRestitution(float);
  23037. void SetRollingFriction(float);
  23038. void SetRotation(const Quaternion&);
  23039. void SetTemporary(bool);
  23040. void SetTransform(const Vector3&, const Quaternion&);
  23041. void SetTrigger(bool);
  23042. void SetUseGravity(bool);
  23043. const String& GetCategory() const;
  23044. const String& GetTypeName() const;
  23045. void UnsubscribeFromAllEvents();
  23046. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23047. void UnsubscribeFromEvent(Object, StringHash);
  23048. void UnsubscribeFromEvent(StringHash);
  23049. void UnsubscribeFromEvents(Object);
  23050. void UpdateGravity();
  23051. void UpdateMass();
  23052. const Variant& GetGlobalVar(StringHash) const;
  23053. const VariantMap& GetGlobalVars() const;
  23054. const Vector3& GetCenterOfMass() const;
  23055. const Vector3& GetGravityOverride() const;
  23056. int WeakRefs() const;
  23057. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23058. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23059. void WriteLatestDataUpdate(Serializer&, uint8);
  23060. operator const Animatable() const;
  23061. operator const Component() const;
  23062. operator const Object() const;
  23063. operator const RefCounted() const;
  23064. operator const Serializable() const;
  23065. // Properties:
  23066. /* readonly */
  23067. bool active;
  23068. float angularDamping;
  23069. Vector3 angularFactor;
  23070. float angularRestThreshold;
  23071. Vector3 angularVelocity;
  23072. bool animationEnabled;
  23073. Vector3 anisotropicFriction;
  23074. /* readonly */
  23075. Array<Variant> attributeDefaults;
  23076. /* readonly */
  23077. Array<AttributeInfo> attributeInfos;
  23078. Array<Variant> attributes;
  23079. /* readonly */
  23080. String category;
  23081. float ccdMotionThreshold;
  23082. float ccdRadius;
  23083. /* readonly */
  23084. Vector3 centerOfMass;
  23085. /* readonly */
  23086. Array<RigidBody> collidingBodies;
  23087. CollisionEventMode collisionEventMode;
  23088. uint collisionLayer;
  23089. uint collisionMask;
  23090. float contactProcessingThreshold;
  23091. bool enabled;
  23092. /* readonly */
  23093. bool enabledEffective;
  23094. float friction;
  23095. Array<Variant> globalVar;
  23096. /* readonly */
  23097. VariantMap globalVars;
  23098. Vector3 gravityOverride;
  23099. /* readonly */
  23100. uint id;
  23101. bool kinematic;
  23102. float linearDamping;
  23103. Vector3 linearFactor;
  23104. float linearRestThreshold;
  23105. Vector3 linearVelocity;
  23106. float mass;
  23107. /* readonly */
  23108. Node node;
  23109. /* readonly */
  23110. uint numAttributes;
  23111. ObjectAnimation objectAnimation;
  23112. Vector3 position;
  23113. /* readonly */
  23114. int refs;
  23115. /* readonly */
  23116. bool replicated;
  23117. float restitution;
  23118. float rollingFriction;
  23119. Quaternion rotation;
  23120. bool temporary;
  23121. bool trigger;
  23122. /* readonly */
  23123. StringHash type;
  23124. /* readonly */
  23125. String typeName;
  23126. bool useGravity;
  23127. /* readonly */
  23128. int weakRefs;
  23129. };
  23130. class RigidBody2D
  23131. {
  23132. public:
  23133. RigidBody2D();
  23134. // Methods:
  23135. void AddCollisionShape2D(CollisionShape2D);
  23136. void AddConstraint2D(Constraint2D);
  23137. void AllocateNetworkState();
  23138. operator Animatable() const;
  23139. void ApplyAngularImpulse(float, bool);
  23140. void ApplyAttributes();
  23141. void ApplyForce(const Vector2&, const Vector2&, bool);
  23142. void ApplyForceToCenter(const Vector2&, bool);
  23143. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  23144. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  23145. void ApplyTorque(float, bool);
  23146. void ApplyWorldTransform();
  23147. void ApplyWorldTransform(const Vector3&, const Quaternion&);
  23148. void CleanupConnection(Connection);
  23149. operator Component() const;
  23150. void CreateBody();
  23151. void DrawDebugGeometry(DebugRenderer, bool);
  23152. float GetAngularDamping() const;
  23153. float GetAngularVelocity() const;
  23154. bool GetAnimationEnabled() const;
  23155. Variant GetAttribute(const String&) const;
  23156. Variant GetAttribute(uint) const;
  23157. ValueAnimation GetAttributeAnimation(const String&) const;
  23158. float GetAttributeAnimationSpeed(const String&) const;
  23159. float GetAttributeAnimationTime(const String&) const;
  23160. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23161. Variant GetAttributeDefault(const String&) const;
  23162. Variant GetAttributeDefault(uint) const;
  23163. bool GetBlockEvents() const;
  23164. BodyType2D GetBodyType() const;
  23165. Component GetComponent(StringHash) const;
  23166. VariantMap& GetEventDataMap() const;
  23167. Object GetEventSender() const;
  23168. float GetGravityScale() const;
  23169. uint GetID() const;
  23170. float GetInertia() const;
  23171. bool GetInterceptNetworkUpdate(const String&) const;
  23172. float GetLinearDamping() const;
  23173. Vector2 GetLinearVelocity() const;
  23174. float GetMass() const;
  23175. Vector2 GetMassCenter() const;
  23176. Node GetNode() const;
  23177. uint GetNumAttributes() const;
  23178. uint GetNumNetworkAttributes() const;
  23179. ObjectAnimation GetObjectAnimation() const;
  23180. ResourceRef GetObjectAnimationAttr() const;
  23181. Scene GetScene() const;
  23182. Object GetSubsystem(StringHash) const;
  23183. StringHash GetType() const;
  23184. bool GetUseFixtureMass() const;
  23185. bool HasEventHandlers() const;
  23186. bool HasSubscribedToEvent(Object, StringHash) const;
  23187. bool HasSubscribedToEvent(StringHash) const;
  23188. bool IsAllowSleep() const;
  23189. bool IsAwake() const;
  23190. bool IsBullet() const;
  23191. bool IsEnabled() const;
  23192. bool IsEnabledEffective() const;
  23193. bool IsFixedRotation() const;
  23194. bool IsInstanceOf(StringHash) const;
  23195. bool IsReplicated() const;
  23196. bool IsTemporary() const;
  23197. bool Load(Deserializer&);
  23198. bool LoadJSON(const JSONValue&);
  23199. bool LoadXML(const XMLElement&);
  23200. void MarkNetworkUpdate();
  23201. operator Object() const;
  23202. void OnEvent(Object, StringHash, VariantMap&);
  23203. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  23204. void OnSetAttribute(const AttributeInfo&, const Variant&);
  23205. void OnSetEnabled();
  23206. void PrepareNetworkUpdate();
  23207. bool ReadDeltaUpdate(Deserializer&);
  23208. bool ReadLatestDataUpdate(Deserializer&);
  23209. operator RefCounted() const;
  23210. int Refs() const;
  23211. void ReleaseBody();
  23212. void Remove();
  23213. void RemoveAttributeAnimation(const String&);
  23214. void RemoveCollisionShape2D(CollisionShape2D);
  23215. void RemoveConstraint2D(Constraint2D);
  23216. void RemoveInstanceDefault();
  23217. void RemoveObjectAnimation();
  23218. void ResetToDefault();
  23219. bool Save(Serializer&) const;
  23220. bool SaveDefaultAttributes() const;
  23221. bool SaveJSON(JSONValue&) const;
  23222. bool SaveXML(XMLElement&) const;
  23223. void SendEvent(StringHash);
  23224. void SendEvent(StringHash, VariantMap&);
  23225. operator Serializable() const;
  23226. void SetAllowSleep(bool);
  23227. void SetAngularDamping(float);
  23228. void SetAngularVelocity(float);
  23229. void SetAnimationEnabled(bool);
  23230. void SetAnimationTime(float);
  23231. bool SetAttribute(const String&, const Variant&);
  23232. bool SetAttribute(uint, const Variant&);
  23233. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23234. void SetAttributeAnimationSpeed(const String&, float);
  23235. void SetAttributeAnimationTime(const String&, float);
  23236. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23237. void SetAwake(bool);
  23238. void SetBlockEvents(bool);
  23239. void SetBodyType(BodyType2D);
  23240. void SetBullet(bool);
  23241. void SetEnabled(bool);
  23242. void SetFixedRotation(bool);
  23243. void SetGlobalVar(StringHash, const Variant&);
  23244. void SetGravityScale(float);
  23245. void SetInertia(float);
  23246. void SetInstanceDefault(bool);
  23247. void SetInterceptNetworkUpdate(const String&, bool);
  23248. void SetLinearDamping(float);
  23249. void SetLinearVelocity(const Vector2&);
  23250. void SetMass(float);
  23251. void SetMassCenter(const Vector2&);
  23252. void SetObjectAnimation(ObjectAnimation);
  23253. void SetObjectAnimationAttr(const ResourceRef&);
  23254. void SetTemporary(bool);
  23255. void SetUseFixtureMass(bool);
  23256. const String& GetCategory() const;
  23257. const String& GetTypeName() const;
  23258. void UnsubscribeFromAllEvents();
  23259. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23260. void UnsubscribeFromEvent(Object, StringHash);
  23261. void UnsubscribeFromEvent(StringHash);
  23262. void UnsubscribeFromEvents(Object);
  23263. const Variant& GetGlobalVar(StringHash) const;
  23264. const VariantMap& GetGlobalVars() const;
  23265. int WeakRefs() const;
  23266. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23267. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23268. void WriteLatestDataUpdate(Serializer&, uint8);
  23269. operator const Animatable() const;
  23270. operator const Component() const;
  23271. operator const Object() const;
  23272. operator const RefCounted() const;
  23273. operator const Serializable() const;
  23274. // Properties:
  23275. bool allowSleep;
  23276. float angularDamping;
  23277. bool animationEnabled;
  23278. /* readonly */
  23279. Array<Variant> attributeDefaults;
  23280. /* readonly */
  23281. Array<AttributeInfo> attributeInfos;
  23282. Array<Variant> attributes;
  23283. bool awake;
  23284. BodyType2D bodyType;
  23285. bool bullet;
  23286. /* readonly */
  23287. String category;
  23288. bool enabled;
  23289. /* readonly */
  23290. bool enabledEffective;
  23291. bool fixedRotation;
  23292. Array<Variant> globalVar;
  23293. /* readonly */
  23294. VariantMap globalVars;
  23295. float gravityScale;
  23296. /* readonly */
  23297. uint id;
  23298. float inertia;
  23299. float linearDamping;
  23300. Vector2 linearVelocity;
  23301. float mass;
  23302. Vector2 massCenter;
  23303. /* readonly */
  23304. Node node;
  23305. /* readonly */
  23306. uint numAttributes;
  23307. ObjectAnimation objectAnimation;
  23308. /* readonly */
  23309. int refs;
  23310. /* readonly */
  23311. bool replicated;
  23312. bool temporary;
  23313. /* readonly */
  23314. StringHash type;
  23315. /* readonly */
  23316. String typeName;
  23317. bool useFixtureMass;
  23318. /* readonly */
  23319. int weakRefs;
  23320. };
  23321. class Scene
  23322. {
  23323. public:
  23324. Scene();
  23325. Scene(const String&in);
  23326. // Methods:
  23327. void AddChild(Node, uint = M_MAX_UNSIGNED);
  23328. void AddComponent(Component, uint, CreateMode);
  23329. void AddListener(Component);
  23330. void AddRequiredPackageFile(PackageFile);
  23331. void AddTag(const String&);
  23332. void AddTags(Array<String>);
  23333. void AddTags(const String&, int8 = ';');
  23334. void AllocateNetworkState();
  23335. operator Animatable() const;
  23336. void ApplyAttributes();
  23337. void BeginThreadedUpdate();
  23338. void CleanupConnection(Connection);
  23339. void Clear(bool = true, bool = true);
  23340. void ClearRequiredPackageFiles();
  23341. Node Clone(CreateMode = REPLICATED);
  23342. Component CloneComponent(Component, CreateMode, uint = 0);
  23343. Component CloneComponent(Component, uint = 0);
  23344. void ComponentAdded(Component);
  23345. void ComponentRemoved(Component);
  23346. Node CreateChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0, bool = false);
  23347. Node CreateChild(uint, CreateMode, bool = false);
  23348. Component CreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  23349. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode mode = REPLICATED);
  23350. ScriptObject CreateScriptObject(const String&, const String&, CreateMode mode = REPLICATED);
  23351. Node CreateTemporaryChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0);
  23352. void DelayedMarkedDirty(Component);
  23353. void EndThreadedUpdate();
  23354. bool GetAnimationEnabled() const;
  23355. LoadMode GetAsyncLoadMode() const;
  23356. int GetAsyncLoadingMs() const;
  23357. float GetAsyncProgress() const;
  23358. Variant GetAttribute(const String&) const;
  23359. Variant GetAttribute(uint) const;
  23360. ValueAnimation GetAttributeAnimation(const String&) const;
  23361. float GetAttributeAnimationSpeed(const String&) const;
  23362. float GetAttributeAnimationTime(const String&) const;
  23363. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23364. Variant GetAttributeDefault(const String&) const;
  23365. Variant GetAttributeDefault(uint) const;
  23366. bool GetBlockEvents() const;
  23367. uint GetChecksum() const;
  23368. Node GetChild(StringHash, bool = false) const;
  23369. Node GetChild(const String&, bool = false) const;
  23370. Node GetChild(uint) const;
  23371. Array<Node> GetChildren() const;
  23372. Array<Node> GetChildren(bool) const;
  23373. Array<Node> GetChildrenWithComponent(StringHash, bool = false) const;
  23374. Array<Node> GetChildrenWithScript(bool = false) const;
  23375. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  23376. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  23377. Component GetComponent(StringHash, bool = false) const;
  23378. Component GetComponent(uint) const;
  23379. Array<Component> GetComponents() const;
  23380. Array<Component> GetComponents(const String&, bool = false) const;
  23381. Array<Node> GetDependencyNodes() const;
  23382. Vector3 GetDirection() const;
  23383. float GetElapsedTime() const;
  23384. VariantMap& GetEventDataMap() const;
  23385. Object GetEventSender() const;
  23386. uint GetFreeComponentID(CreateMode);
  23387. uint GetFreeNodeID(CreateMode);
  23388. uint GetID() const;
  23389. bool GetInterceptNetworkUpdate(const String&) const;
  23390. StringHash GetNameHash() const;
  23391. Node GetNode(uint) const;
  23392. Array<Node> GetNodesWithTag(const String&) const;
  23393. uint GetNumAttributes() const;
  23394. uint GetNumChildren(bool = false) const;
  23395. uint GetNumComponents() const;
  23396. uint GetNumNetworkAttributes() const;
  23397. uint GetNumNetworkComponents() const;
  23398. uint GetNumPersistentChildren() const;
  23399. uint GetNumPersistentComponents() const;
  23400. ObjectAnimation GetObjectAnimation() const;
  23401. ResourceRef GetObjectAnimationAttr() const;
  23402. Component GetOrCreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  23403. Connection GetOwner() const;
  23404. Node GetParent() const;
  23405. Component GetParentComponent(StringHash, bool = false) const;
  23406. Vector2 GetPosition2D() const;
  23407. Array<PackageFile> GetRequiredPackageFiles() const;
  23408. Vector3 GetRight() const;
  23409. float GetRotation2D() const;
  23410. Vector2 GetScale2D() const;
  23411. Scene GetScene() const;
  23412. ScriptObject GetScriptObject() const;
  23413. ScriptObject GetScriptObject(const String&) const;
  23414. Vector3 GetSignedWorldScale() const;
  23415. float GetSmoothingConstant() const;
  23416. float GetSnapThreshold() const;
  23417. Object GetSubsystem(StringHash) const;
  23418. Array<String> GetTags() const;
  23419. float GetTimeScale() const;
  23420. Matrix3x4 GetTransform() const;
  23421. StringHash GetType() const;
  23422. Vector3 GetUp() const;
  23423. String GetVarNamesAttr() const;
  23424. Vector3 GetWorldDirection() const;
  23425. Vector3 GetWorldPosition() const;
  23426. Vector2 GetWorldPosition2D() const;
  23427. Vector3 GetWorldRight() const;
  23428. Quaternion GetWorldRotation() const;
  23429. float GetWorldRotation2D() const;
  23430. Vector3 GetWorldScale() const;
  23431. Vector2 GetWorldScale2D() const;
  23432. Vector3 GetWorldUp() const;
  23433. bool HasComponent(StringHash) const;
  23434. bool HasEventHandlers() const;
  23435. bool HasSubscribedToEvent(Object, StringHash) const;
  23436. bool HasSubscribedToEvent(StringHash) const;
  23437. bool HasTag(const String&) const;
  23438. Node Instantiate(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23439. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23440. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23441. Node InstantiateJSON(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23442. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23443. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23444. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23445. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23446. Node InstantiateXML(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23447. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23448. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23449. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23450. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23451. bool IsAsyncLoading() const;
  23452. bool IsChildOf(Node) const;
  23453. bool IsDirty() const;
  23454. bool IsEnabled() const;
  23455. bool IsEnabledSelf() const;
  23456. bool IsInstanceOf(StringHash) const;
  23457. bool IsReplicated() const;
  23458. bool IsTemporary() const;
  23459. bool IsThreadedUpdate() const;
  23460. bool IsUpdateEnabled() const;
  23461. bool Load(Deserializer&);
  23462. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23463. bool LoadAsyncJSON(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23464. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23465. bool LoadJSON(Deserializer&);
  23466. bool LoadJSON(File);
  23467. bool LoadJSON(VectorBuffer&);
  23468. bool LoadJSON(const JSONValue&);
  23469. bool LoadXML(Deserializer&);
  23470. bool LoadXML(File);
  23471. bool LoadXML(VectorBuffer&);
  23472. bool LoadXML(const XMLElement&);
  23473. Vector3 LocalToWorld(const Vector3&) const;
  23474. Vector3 LocalToWorld(const Vector4&) const;
  23475. Vector2 LocalToWorld2D(const Vector2&) const;
  23476. bool LookAt(const Vector3&, const Vector3& = Vector3 :: UP, TransformSpace = TS_WORLD);
  23477. void MarkDirty();
  23478. void MarkNetworkUpdate();
  23479. void MarkNetworkUpdate(Component);
  23480. void MarkNetworkUpdate(Node);
  23481. void MarkReplicationDirty(Node);
  23482. const Matrix3x4& GetWorldTransform() const;
  23483. operator Node() const;
  23484. void NodeAdded(Node);
  23485. void NodeRemoved(Node);
  23486. void NodeTagAdded(Node, const String&);
  23487. void NodeTagRemoved(Node, const String&);
  23488. operator Object() const;
  23489. void OnEvent(Object, StringHash, VariantMap&);
  23490. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  23491. void OnSetAttribute(const AttributeInfo&, const Variant&);
  23492. void Pitch(float, TransformSpace = TS_LOCAL);
  23493. void PrepareNetworkUpdate();
  23494. const Quaternion& GetRotation() const;
  23495. bool ReadDeltaUpdate(Deserializer&);
  23496. bool ReadLatestDataUpdate(Deserializer&);
  23497. operator RefCounted() const;
  23498. int Refs() const;
  23499. void RegisterVar(const String&);
  23500. void Remove();
  23501. void RemoveAllChildren();
  23502. void RemoveAllComponents();
  23503. void RemoveAllTags();
  23504. void RemoveAttributeAnimation(const String&);
  23505. void RemoveChild(Node);
  23506. void RemoveChildren(bool, bool, bool);
  23507. void RemoveComponent(Component);
  23508. void RemoveComponent(StringHash);
  23509. void RemoveComponents(StringHash);
  23510. void RemoveComponents(bool, bool);
  23511. void RemoveInstanceDefault();
  23512. void RemoveListener(Component);
  23513. void RemoveObjectAnimation();
  23514. bool RemoveTag(const String&);
  23515. void ReorderComponent(Component, uint);
  23516. void ResetDeepEnabled();
  23517. void ResetScene();
  23518. void ResetToDefault();
  23519. void Roll(float, TransformSpace = TS_LOCAL);
  23520. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  23521. void Rotate2D(float, TransformSpace = TS_LOCAL);
  23522. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  23523. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  23524. bool Save(Serializer&) const;
  23525. bool SaveDefaultAttributes() const;
  23526. bool SaveJSON(File);
  23527. bool SaveJSON(JSONValue&) const;
  23528. bool SaveJSON(Serializer&, const String& = "\t") const;
  23529. bool SaveJSON(VectorBuffer&);
  23530. bool SaveXML(File, const String& = "\t");
  23531. bool SaveXML(Serializer&, const String& = "\t") const;
  23532. bool SaveXML(VectorBuffer&, const String& = "\t");
  23533. bool SaveXML(XMLElement&) const;
  23534. void Scale(const Vector3&);
  23535. void Scale(float);
  23536. void Scale2D(const Vector2&);
  23537. void SendEvent(StringHash);
  23538. void SendEvent(StringHash, VariantMap&);
  23539. operator Serializable() const;
  23540. void SetAnimationEnabled(bool);
  23541. void SetAnimationTime(float);
  23542. void SetAsyncLoadingMs(int);
  23543. bool SetAttribute(const String&, const Variant&);
  23544. bool SetAttribute(uint, const Variant&);
  23545. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23546. void SetAttributeAnimationSpeed(const String&, float);
  23547. void SetAttributeAnimationTime(const String&, float);
  23548. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23549. void SetBlockEvents(bool);
  23550. void SetDeepEnabled(bool);
  23551. void SetDirection(const Vector3&);
  23552. void SetElapsedTime(float);
  23553. void SetEnabled(bool);
  23554. void SetEnabledRecursive(bool);
  23555. void SetGlobalVar(StringHash, const Variant&);
  23556. void SetID(uint);
  23557. void SetInstanceDefault(bool);
  23558. void SetInterceptNetworkUpdate(const String&, bool);
  23559. void SetName(const String&);
  23560. void SetNetPositionAttr(const Vector3&);
  23561. void SetObjectAnimation(ObjectAnimation);
  23562. void SetObjectAnimationAttr(const ResourceRef&);
  23563. void SetOwner(Connection);
  23564. void SetParent(Node);
  23565. void SetPosition(const Vector3&);
  23566. void SetPosition2D(const Vector2&);
  23567. void SetPosition2D(float, float);
  23568. void SetPositionSilent(const Vector3&);
  23569. void SetRotation(const Quaternion&);
  23570. void SetRotation2D(float);
  23571. void SetRotationSilent(const Quaternion&);
  23572. void SetScale(const Vector3&);
  23573. void SetScale(float);
  23574. void SetScale2D(const Vector2&);
  23575. void SetScale2D(float, float);
  23576. void SetScaleSilent(const Vector3&);
  23577. void SetScene(Scene);
  23578. void SetSmoothingConstant(float);
  23579. void SetSnapThreshold(float);
  23580. void SetTags(Array<String>);
  23581. void SetTemporary(bool);
  23582. void SetTimeScale(float);
  23583. void SetTransform(const Matrix3x4&);
  23584. void SetTransform(const Vector3&, const Quaternion&);
  23585. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  23586. void SetTransform(const Vector3&, const Quaternion&, float);
  23587. void SetTransform2D(const Vector2&, float);
  23588. void SetTransform2D(const Vector2&, float, const Vector2&);
  23589. void SetTransform2D(const Vector2&, float, float);
  23590. void SetTransformSilent(const Vector3&, const Quaternion&, const Vector3&);
  23591. void SetUpdateEnabled(bool);
  23592. void SetVar(StringHash, const Variant&);
  23593. void SetVarNamesAttr(const String&);
  23594. void SetWorldDirection(const Vector3&);
  23595. void SetWorldPosition(const Vector3&);
  23596. void SetWorldPosition2D(const Vector2&);
  23597. void SetWorldPosition2D(float, float);
  23598. void SetWorldRotation(const Quaternion&);
  23599. void SetWorldRotation2D(float);
  23600. void SetWorldScale(const Vector3&);
  23601. void SetWorldScale(float);
  23602. void SetWorldScale2D(const Vector2&);
  23603. void SetWorldScale2D(float, float);
  23604. void SetWorldTransform(const Matrix3x4&);
  23605. void SetWorldTransform(const Vector3&, const Quaternion&);
  23606. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  23607. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  23608. void SetWorldTransform2D(const Vector2&, float);
  23609. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  23610. void SetWorldTransform2D(const Vector2&, float, float);
  23611. void StopAsyncLoading();
  23612. const String& GetCategory() const;
  23613. const String& GetFileName() const;
  23614. const String& GetName() const;
  23615. const String& GetTypeName() const;
  23616. const String& GetVarName(StringHash) const;
  23617. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  23618. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  23619. void UnregisterAllVars();
  23620. void UnregisterVar(const String&);
  23621. void UnsubscribeFromAllEvents();
  23622. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23623. void UnsubscribeFromEvent(Object, StringHash);
  23624. void UnsubscribeFromEvent(StringHash);
  23625. void UnsubscribeFromEvents(Object);
  23626. void Update(float);
  23627. const Variant& GetGlobalVar(StringHash) const;
  23628. const Variant& GetVar(StringHash) const;
  23629. const VariantMap& GetGlobalVars() const;
  23630. const VariantMap& GetVars() const;
  23631. const Vector3& GetNetPositionAttr() const;
  23632. const Vector3& GetPosition() const;
  23633. const Vector3& GetScale() const;
  23634. int WeakRefs() const;
  23635. Vector3 WorldToLocal(const Vector3&) const;
  23636. Vector3 WorldToLocal(const Vector4&) const;
  23637. Vector2 WorldToLocal2D(const Vector2&) const;
  23638. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23639. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23640. void WriteLatestDataUpdate(Serializer&, uint8);
  23641. void Yaw(float, TransformSpace = TS_LOCAL);
  23642. operator const Animatable() const;
  23643. operator const Node() const;
  23644. operator const Object() const;
  23645. operator const RefCounted() const;
  23646. operator const Serializable() const;
  23647. // Properties:
  23648. /* readonly */
  23649. Array<Node> allChildrenByName;
  23650. bool animationEnabled;
  23651. /* readonly */
  23652. LoadMode asyncLoadMode;
  23653. /* readonly */
  23654. bool asyncLoading;
  23655. int asyncLoadingMs;
  23656. /* readonly */
  23657. float asyncProgress;
  23658. /* readonly */
  23659. Array<Variant> attributeDefaults;
  23660. /* readonly */
  23661. Array<AttributeInfo> attributeInfos;
  23662. Array<Variant> attributes;
  23663. /* readonly */
  23664. String category;
  23665. /* readonly */
  23666. uint checksum;
  23667. /* readonly */
  23668. Array<Node> children;
  23669. /* readonly */
  23670. Array<Node> childrenByName;
  23671. /* readonly */
  23672. Array<Component> components;
  23673. /* readonly */
  23674. DebugRenderer debugRenderer;
  23675. Vector3 direction;
  23676. float elapsedTime;
  23677. bool enabled;
  23678. /* readonly */
  23679. bool enabledSelf;
  23680. /* readonly */
  23681. String fileName;
  23682. Array<Variant> globalVar;
  23683. /* readonly */
  23684. VariantMap globalVars;
  23685. uint id;
  23686. String name;
  23687. /* readonly */
  23688. uint numAllChildren;
  23689. /* readonly */
  23690. uint numAttributes;
  23691. /* readonly */
  23692. uint numChildren;
  23693. /* readonly */
  23694. uint numComponents;
  23695. ObjectAnimation objectAnimation;
  23696. /* readonly */
  23697. Octree octree;
  23698. Connection owner;
  23699. Node parent;
  23700. /* readonly */
  23701. PhysicsWorld physicsWorld;
  23702. /* readonly */
  23703. PhysicsWorld2D physicsWorld2D;
  23704. Vector3 position;
  23705. Vector2 position2D;
  23706. /* readonly */
  23707. int refs;
  23708. /* readonly */
  23709. bool replicated;
  23710. /* readonly */
  23711. Array<PackageFile> requiredPackageFiles;
  23712. /* readonly */
  23713. Vector3 right;
  23714. Quaternion rotation;
  23715. float rotation2D;
  23716. Vector3 scale;
  23717. Vector2 scale2D;
  23718. /* readonly */
  23719. Scene scene;
  23720. /* readonly */
  23721. ScriptObject scriptObject;
  23722. /* readonly */
  23723. Vector3 signedWorldScale;
  23724. float smoothingConstant;
  23725. float snapThreshold;
  23726. /* readonly */
  23727. Array<String> tags;
  23728. bool temporary;
  23729. float timeScale;
  23730. /* readonly */
  23731. Matrix3x4 transform;
  23732. /* readonly */
  23733. StringHash type;
  23734. /* readonly */
  23735. String typeName;
  23736. /* readonly */
  23737. Vector3 up;
  23738. bool updateEnabled;
  23739. /* readonly */
  23740. VariantMap vars;
  23741. /* readonly */
  23742. int weakRefs;
  23743. Vector3 worldDirection;
  23744. Vector3 worldPosition;
  23745. Vector2 worldPosition2D;
  23746. /* readonly */
  23747. Vector3 worldRight;
  23748. Quaternion worldRotation;
  23749. float worldRotation2D;
  23750. Vector3 worldScale;
  23751. Vector2 worldScale2D;
  23752. /* readonly */
  23753. Matrix3x4 worldTransform;
  23754. /* readonly */
  23755. Vector3 worldUp;
  23756. };
  23757. class ScenePassInfo
  23758. {
  23759. public:
  23760. ~ScenePassInfo();
  23761. ScenePassInfo();
  23762. // Methods:
  23763. ScenePassInfo& operator=(const ScenePassInfo&);
  23764. // Properties:
  23765. bool allowInstancing;
  23766. bool markToStencil;
  23767. uint passIndex;
  23768. bool vertexLights;
  23769. };
  23770. class SceneReplicationState
  23771. {
  23772. public:
  23773. ~SceneReplicationState();
  23774. SceneReplicationState();
  23775. // Methods:
  23776. SceneReplicationState& operator=(const SceneReplicationState&);
  23777. void Clear();
  23778. };
  23779. class SceneResolver
  23780. {
  23781. public:
  23782. ~SceneResolver();
  23783. SceneResolver();
  23784. // Methods:
  23785. SceneResolver& operator=(const SceneResolver&);
  23786. void AddComponent(uint, Component);
  23787. void AddNode(uint, Node);
  23788. void Reset();
  23789. void Resolve();
  23790. };
  23791. class ScratchBuffer
  23792. {
  23793. public:
  23794. ~ScratchBuffer();
  23795. ScratchBuffer();
  23796. // Methods:
  23797. ScratchBuffer& operator=(const ScratchBuffer&);
  23798. // Properties:
  23799. bool reserved;
  23800. uint size;
  23801. };
  23802. class ScreenModeParams
  23803. {
  23804. public:
  23805. ~ScreenModeParams();
  23806. ScreenModeParams();
  23807. // Methods:
  23808. ScreenModeParams& operator=(const ScreenModeParams&);
  23809. bool operator==(const ScreenModeParams&) const;
  23810. bool EqualsExceptVSync(const ScreenModeParams&) const;
  23811. // Properties:
  23812. bool borderless;
  23813. bool fullscreen;
  23814. bool highDPI;
  23815. int monitor;
  23816. int multiSample;
  23817. int refreshRate;
  23818. bool resizable;
  23819. bool tripleBuffer;
  23820. bool vsync;
  23821. };
  23822. class Script
  23823. {
  23824. public:
  23825. Script();
  23826. // Methods:
  23827. void DumpAPI(DumpMode mode = DOXYGEN, const String& sourceTree = String ( ));
  23828. bool Execute(const String&);
  23829. bool GetBlockEvents() const;
  23830. VariantMap& GetEventDataMap() const;
  23831. Object GetEventSender() const;
  23832. Object GetSubsystem(StringHash) const;
  23833. StringHash GetType() const;
  23834. bool HasEventHandlers() const;
  23835. bool HasSubscribedToEvent(Object, StringHash) const;
  23836. bool HasSubscribedToEvent(StringHash) const;
  23837. bool IsInstanceOf(StringHash) const;
  23838. void OnEvent(Object, StringHash, VariantMap&);
  23839. int Refs() const;
  23840. void SendEvent(StringHash);
  23841. void SendEvent(StringHash, VariantMap&);
  23842. void SetBlockEvents(bool);
  23843. void SetGlobalVar(StringHash, const Variant&);
  23844. const String& GetCategory() const;
  23845. const String& GetTypeName() const;
  23846. void UnsubscribeFromAllEvents();
  23847. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23848. void UnsubscribeFromEvent(Object, StringHash);
  23849. void UnsubscribeFromEvent(StringHash);
  23850. void UnsubscribeFromEvents(Object);
  23851. const Variant& GetGlobalVar(StringHash) const;
  23852. const VariantMap& GetGlobalVars() const;
  23853. int WeakRefs() const;
  23854. // Properties:
  23855. /* readonly */
  23856. String category;
  23857. Scene defaultScene;
  23858. ScriptFile defaultScriptFile;
  23859. bool executeConsoleCommands;
  23860. Array<Variant> globalVar;
  23861. /* readonly */
  23862. VariantMap globalVars;
  23863. /* readonly */
  23864. int refs;
  23865. /* readonly */
  23866. StringHash type;
  23867. /* readonly */
  23868. String typeName;
  23869. /* readonly */
  23870. int weakRefs;
  23871. };
  23872. class ScriptFile
  23873. {
  23874. public:
  23875. ScriptFile();
  23876. // Methods:
  23877. bool BeginLoad(Deserializer&);
  23878. void ClearDelayedExecute(const String& declaration = String ( ));
  23879. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  23880. bool EndLoad();
  23881. bool Execute(const String&, const Array<Variant> params = null);
  23882. AsyncLoadState GetAsyncLoadState() const;
  23883. bool GetBlockEvents() const;
  23884. VariantMap& GetEventDataMap() const;
  23885. Object GetEventSender() const;
  23886. uint GetMemoryUse() const;
  23887. StringHash GetNameHash() const;
  23888. Object GetSubsystem(StringHash) const;
  23889. StringHash GetType() const;
  23890. uint GetUseTimer();
  23891. bool HasEventHandlers() const;
  23892. bool HasSubscribedToEvent(Object, StringHash) const;
  23893. bool HasSubscribedToEvent(StringHash) const;
  23894. bool IsInstanceOf(StringHash) const;
  23895. bool Load(Deserializer&);
  23896. bool Load(File);
  23897. bool Load(VectorBuffer&);
  23898. bool Load(const String&);
  23899. bool LoadFile(const String&);
  23900. void OnEvent(Object, StringHash, VariantMap&);
  23901. int Refs() const;
  23902. void ResetUseTimer();
  23903. bool Save(File) const;
  23904. bool Save(Serializer&) const;
  23905. bool Save(VectorBuffer&) const;
  23906. bool Save(const String&) const;
  23907. bool SaveFile(const String&) const;
  23908. void SendEvent(StringHash);
  23909. void SendEvent(StringHash, VariantMap&);
  23910. void SetAsyncLoadState(AsyncLoadState);
  23911. void SetBlockEvents(bool);
  23912. void SetGlobalVar(StringHash, const Variant&);
  23913. void SetMemoryUse(uint);
  23914. void SetName(const String&);
  23915. const String& GetCategory() const;
  23916. const String& GetName() const;
  23917. const String& GetTypeName() const;
  23918. void UnsubscribeFromAllEvents();
  23919. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23920. void UnsubscribeFromEvent(Object, StringHash);
  23921. void UnsubscribeFromEvent(StringHash);
  23922. void UnsubscribeFromEvents(Object);
  23923. const Variant& GetGlobalVar(StringHash) const;
  23924. const VariantMap& GetGlobalVars() const;
  23925. int WeakRefs() const;
  23926. // Properties:
  23927. /* readonly */
  23928. String category;
  23929. /* readonly */
  23930. bool compiled;
  23931. Array<Variant> globalVar;
  23932. /* readonly */
  23933. VariantMap globalVars;
  23934. /* readonly */
  23935. uint memoryUse;
  23936. String name;
  23937. /* readonly */
  23938. int refs;
  23939. /* readonly */
  23940. StringHash type;
  23941. /* readonly */
  23942. String typeName;
  23943. /* readonly */
  23944. uint useTimer;
  23945. /* readonly */
  23946. int weakRefs;
  23947. };
  23948. class ScriptInstance
  23949. {
  23950. public:
  23951. ScriptInstance();
  23952. // Methods:
  23953. void AllocateNetworkState();
  23954. operator Animatable() const;
  23955. void ApplyAttributes();
  23956. void CleanupConnection(Connection);
  23957. void ClearDelayedExecute(const String& declaration = String ( ));
  23958. operator Component() const;
  23959. bool CreateObject(ScriptFile, const String&);
  23960. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  23961. bool Execute(const String&, const Array<Variant> params = null);
  23962. bool GetAnimationEnabled() const;
  23963. Variant GetAttribute(const String&) const;
  23964. Variant GetAttribute(uint) const;
  23965. ValueAnimation GetAttributeAnimation(const String&) const;
  23966. float GetAttributeAnimationSpeed(const String&) const;
  23967. float GetAttributeAnimationTime(const String&) const;
  23968. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23969. Variant GetAttributeDefault(const String&) const;
  23970. Variant GetAttributeDefault(uint) const;
  23971. bool GetBlockEvents() const;
  23972. Component GetComponent(StringHash) const;
  23973. VariantMap& GetEventDataMap() const;
  23974. Object GetEventSender() const;
  23975. uint GetID() const;
  23976. bool GetInterceptNetworkUpdate(const String&) const;
  23977. Node GetNode() const;
  23978. uint GetNumAttributes() const;
  23979. uint GetNumNetworkAttributes() const;
  23980. ObjectAnimation GetObjectAnimation() const;
  23981. ResourceRef GetObjectAnimationAttr() const;
  23982. Scene GetScene() const;
  23983. Object GetSubsystem(StringHash) const;
  23984. StringHash GetType() const;
  23985. bool HasEventHandlers() const;
  23986. bool HasMethod(const String& declaration) const;
  23987. bool HasSubscribedToEvent(Object, StringHash) const;
  23988. bool HasSubscribedToEvent(StringHash) const;
  23989. bool IsA(const String& declaration) const;
  23990. bool IsEnabled() const;
  23991. bool IsEnabledEffective() const;
  23992. bool IsInstanceOf(StringHash) const;
  23993. bool IsReplicated() const;
  23994. bool IsTemporary() const;
  23995. bool Load(Deserializer&);
  23996. bool LoadJSON(const JSONValue&);
  23997. bool LoadXML(const XMLElement&);
  23998. void MarkNetworkUpdate();
  23999. operator Object() const;
  24000. void OnEvent(Object, StringHash, VariantMap&);
  24001. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  24002. void OnSetAttribute(const AttributeInfo&, const Variant&);
  24003. void PrepareNetworkUpdate();
  24004. bool ReadDeltaUpdate(Deserializer&);
  24005. bool ReadLatestDataUpdate(Deserializer&);
  24006. operator RefCounted() const;
  24007. int Refs() const;
  24008. void Remove();
  24009. void RemoveAttributeAnimation(const String&);
  24010. void RemoveInstanceDefault();
  24011. void RemoveObjectAnimation();
  24012. void ResetToDefault();
  24013. bool Save(Serializer&) const;
  24014. bool SaveDefaultAttributes() const;
  24015. bool SaveJSON(JSONValue&) const;
  24016. bool SaveXML(XMLElement&) const;
  24017. void SendEvent(StringHash);
  24018. void SendEvent(StringHash, VariantMap&);
  24019. operator Serializable() const;
  24020. void SetAnimationEnabled(bool);
  24021. void SetAnimationTime(float);
  24022. bool SetAttribute(const String&, const Variant&);
  24023. bool SetAttribute(uint, const Variant&);
  24024. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  24025. void SetAttributeAnimationSpeed(const String&, float);
  24026. void SetAttributeAnimationTime(const String&, float);
  24027. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  24028. void SetBlockEvents(bool);
  24029. void SetEnabled(bool);
  24030. void SetGlobalVar(StringHash, const Variant&);
  24031. void SetInstanceDefault(bool);
  24032. void SetInterceptNetworkUpdate(const String&, bool);
  24033. void SetObjectAnimation(ObjectAnimation);
  24034. void SetObjectAnimationAttr(const ResourceRef&);
  24035. void SetTemporary(bool);
  24036. const String& GetCategory() const;
  24037. const String& GetTypeName() const;
  24038. void UnsubscribeFromAllEvents();
  24039. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  24040. void UnsubscribeFromEvent(Object, StringHash);
  24041. void UnsubscribeFromEvent(StringHash);
  24042. void UnsubscribeFromEvents(Object);
  24043. const Variant& GetGlobalVar(StringHash) const;
  24044. const VariantMap& GetGlobalVars() const;
  24045. int WeakRefs() const;
  24046. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  24047. void WriteInitialDeltaUpdate(Serializer&, uint8);
  24048. void WriteLatestDataUpdate(Serializer&, uint8);
  24049. operator const Animatable() const;
  24050. operator const Component() const;
  24051. operator const Object() const;
  24052. operator const RefCounted() const;
  24053. operator const Serializable() const;
  24054. // Properties:
  24055. bool animationEnabled;
  24056. /* readonly */
  24057. Array<Variant> attributeDefaults;
  24058. /* readonly */
  24059. Array<AttributeInfo> attributeInfos;
  24060. Array<Variant> attributes;
  24061. /* readonly */
  24062. String category;
  24063. String className;
  24064. bool enabled;
  24065. /* readonly */
  24066. bool enabledEffective;
  24067. Array<Variant> globalVar;
  24068. /* readonly */
  24069. VariantMap globalVars;
  24070. /* readonly */
  24071. uint id;
  24072. /* readonly */
  24073. Node node;
  24074. /* readonly */
  24075. uint numAttributes;
  24076. ObjectAnimation objectAnimation;
  24077. /* readonly */
  24078. int refs;
  24079. /* readonly */
  24080. bool replicated;
  24081. ScriptFile scriptFile;
  24082. /* readonly */
  24083. ScriptObject scriptObject;
  24084. bool temporary;
  24085. /* readonly */
  24086. StringHash type;
  24087. /* readonly */
  24088. String typeName;
  24089. /* readonly */
  24090. int weakRefs;
  24091. };
  24092. class ScriptObject
  24093. {
  24094. public:
  24095. };
  24096. class ScrollBar
  24097. {
  24098. public:
  24099. ScrollBar();
  24100. // Methods:
  24101. void AddChild(UIElement);
  24102. void AddTag(const String&);
  24103. void AddTags(Array<String>);
  24104. void AddTags(const String&, int8 = ';');
  24105. void AdjustScissor(IntRect&);
  24106. void AllocateNetworkState();
  24107. operator Animatable() const;
  24108. void ApplyAttributes();
  24109. operator BorderImage() const;
  24110. void BringToFront();
  24111. void ChangeValue(float);
  24112. const Color& GetColor(Corner) const;
  24113. const Color& GetColorAttr() const;
  24114. const Color& GetDerivedColor() const;
  24115. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  24116. void DisableLayoutUpdate();
  24117. IntVector2 ElementToScreen(const IntVector2&);
  24118. void EnableLayoutUpdate();
  24119. bool FilterAttributes(XMLElement&) const;
  24120. uint FindChild(UIElement) const;
  24121. bool GetAnimationEnabled() const;
  24122. Variant GetAttribute(const String&) const;
  24123. Variant GetAttribute(uint) const;
  24124. ValueAnimation GetAttributeAnimation(const String&) const;
  24125. float GetAttributeAnimationSpeed(const String&) const;
  24126. float GetAttributeAnimationTime(const String&) const;
  24127. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  24128. Variant GetAttributeDefault(const String&) const;
  24129. Variant GetAttributeDefault(uint) const;
  24130. Button GetBackButton() const;
  24131. BlendMode GetBlendMode() const;
  24132. bool GetBlockEvents() const;
  24133. bool GetBringToBack() const;
  24134. bool GetBringToFront() const;
  24135. UIElement GetChild(const String&, bool = false) const;
  24136. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  24137. UIElement GetChild(uint) const;
  24138. Array<UIElement> GetChildren() const;
  24139. Array<UIElement> GetChildren(bool) const;
  24140. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  24141. bool GetClipChildren() const;
  24142. IntRect GetCombinedScreenRect();
  24143. XMLFile GetDefaultStyle(bool = true) const;
  24144. float GetDerivedOpacity() const;
  24145. uint GetDragButtonCombo() const;
  24146. uint GetDragButtonCount() const;
  24147. uint GetDragDropMode() const;
  24148. IntVector2 GetEffectiveMinSize() const;
  24149. float GetEffectiveScrollStep() const;
  24150. UIElement GetElementEventSender() const;
  24151. bool GetEnableAnchor() const;
  24152. VariantMap& GetEventDataMap() const;
  24153. Object GetEventSender() const;
  24154. FocusMode GetFocusMode() const;
  24155. Button GetForwardButton() const;
  24156. int GetHeight() const;
  24157. HorizontalAlignment GetHorizontalAlignment() const;
  24158. int GetIndent() const;
  24159. int GetIndentSpacing() const;
  24160. int GetIndentWidth() const;
  24161. bool GetInterceptNetworkUpdate(const String&) const;
  24162. int GetLayoutElementMaxSize() const;
  24163. LayoutMode GetLayoutMode() const;
  24164. int GetLayoutSpacing() const;
  24165. Material GetMaterial() const;
  24166. ResourceRef GetMaterialAttr() const;
  24167. int GetMaxHeight() const;
  24168. int GetMaxWidth() const;
  24169. int GetMinHeight() const;
  24170. int GetMinWidth() const;
  24171. uint GetNumAttributes() const;
  24172. uint GetNumChildren(bool = false) const;
  24173. uint GetNumNetworkAttributes() const;
  24174. ObjectAnimation GetObjectAnimation() const;
  24175. ResourceRef GetObjectAnimationAttr() const;
  24176. float GetOpacity() const;
  24177. Orientation GetOrientation() const;
  24178. UIElement GetParent() const;
  24179. int GetPriority() const;
  24180. float GetRange() const;
  24181. UIElement GetRoot() const;
  24182. float GetScrollStep() const;
  24183. Slider GetSlider() const;
  24184. bool GetSortChildren() const;
  24185. float GetStepFactor() const;
  24186. Object GetSubsystem(StringHash) const;
  24187. Array<String> GetTags() const;
  24188. Texture GetTexture() const;
  24189. ResourceRef GetTextureAttr() const;
  24190. TraversalMode GetTraversalMode() const;
  24191. StringHash GetType() const;
  24192. bool GetUseDerivedOpacity() const;
  24193. float GetValue() const;
  24194. VerticalAlignment GetVerticalAlignment() const;
  24195. int GetWidth() const;
  24196. bool HasColorGradient() const;
  24197. bool HasEventHandlers() const;
  24198. bool HasFocus() const;
  24199. bool HasSubscribedToEvent(Object, StringHash) const;
  24200. bool HasSubscribedToEvent(StringHash) const;
  24201. bool HasTag(const String&) const;
  24202. void InsertChild(uint, UIElement);
  24203. const IntRect& GetBorder() const;
  24204. const IntRect& GetClipBorder() const;
  24205. const IntRect& GetImageBorder() const;
  24206. const IntRect& GetImageRect() const;
  24207. const IntRect& GetLayoutBorder() const;
  24208. const IntVector2& GetChildOffset() const;
  24209. const IntVector2& GetDisabledOffset() const;
  24210. const IntVector2& GetHoverOffset() const;
  24211. const IntVector2& GetMaxOffset() const;
  24212. const IntVector2& GetMaxSize() const;
  24213. const IntVector2& GetMinOffset() const;
  24214. const IntVector2& GetMinSize() const;
  24215. const IntVector2& GetPosition() const;
  24216. const IntVector2& GetScreenPosition() const;
  24217. const IntVector2& GetSize() const;
  24218. bool IsChildOf(UIElement) const;
  24219. bool IsEditable() const;
  24220. bool IsElementEventSender() const;
  24221. bool IsEnabled() const;
  24222. bool IsEnabledSelf() const;
  24223. bool IsFixedHeight() const;
  24224. bool IsFixedSize() const;
  24225. bool IsFixedWidth() const;
  24226. bool IsHovering() const;
  24227. bool IsInside(IntVector2, bool);
  24228. bool IsInsideCombined(IntVector2, bool);
  24229. bool IsInstanceOf(StringHash) const;
  24230. bool IsInternal() const;
  24231. bool IsSelected() const;
  24232. bool IsTemporary() const;
  24233. bool IsTiled() const;
  24234. bool IsVisible() const;
  24235. bool IsVisibleEffective() const;
  24236. bool IsWheelHandler() const;
  24237. bool IsWithinScissor(const IntRect&);
  24238. bool Load(Deserializer&);
  24239. UIElement LoadChildXML(XMLFile, XMLFile);
  24240. UIElement LoadChildXML(const XMLElement&, XMLFile);
  24241. bool LoadJSON(const JSONValue&);
  24242. bool LoadXML(Deserializer&);
  24243. bool LoadXML(File);
  24244. bool LoadXML(VectorBuffer&);
  24245. bool LoadXML(XMLFile, XMLFile);
  24246. bool LoadXML(const XMLElement&);
  24247. bool LoadXML(const XMLElement&, XMLFile);
  24248. void MarkNetworkUpdate();
  24249. operator Object() const;
  24250. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24251. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  24252. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24253. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24254. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24255. bool OnDragDropFinish(UIElement);
  24256. bool OnDragDropTest(UIElement);
  24257. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24258. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24259. void OnEvent(Object, StringHash, VariantMap&);
  24260. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  24261. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24262. void OnIndentSet();
  24263. void OnKey(uint, uint, uint);
  24264. void OnPositionSet(const IntVector2&);
  24265. void OnResize(const IntVector2&, const IntVector2&);
  24266. void OnSetAttribute(const AttributeInfo&, const Variant&);
  24267. void OnSetEditable();
  24268. void OnTextInput(const String&);
  24269. void OnWheel(int, uint, uint);
  24270. bool ReadDeltaUpdate(Deserializer&);
  24271. bool ReadLatestDataUpdate(Deserializer&);
  24272. operator RefCounted() const;
  24273. int Refs() const;
  24274. void Remove();
  24275. void RemoveAllChildren();
  24276. void RemoveAllTags();
  24277. void RemoveAttributeAnimation(const String&);
  24278. void RemoveChild(UIElement, uint = 0);
  24279. void RemoveChild(uint);
  24280. void RemoveChildAtIndex(uint);
  24281. void RemoveInstanceDefault();
  24282. void RemoveObjectAnimation();
  24283. bool RemoveTag(const String&);
  24284. void ResetDeepEnabled();
  24285. void ResetToDefault();
  24286. bool Save(Serializer&) const;
  24287. bool SaveDefaultAttributes() const;
  24288. bool SaveJSON(JSONValue&) const;
  24289. bool SaveXML(File, const String& indentation = "\t");
  24290. bool SaveXML(Serializer&, const String& = "\t") const;
  24291. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  24292. bool SaveXML(XMLElement&) const;
  24293. IntVector2 ScreenToElement(const IntVector2&);
  24294. void SendEvent(StringHash);
  24295. void SendEvent(StringHash, VariantMap&);
  24296. operator Serializable() const;
  24297. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  24298. void SetAnimationEnabled(bool);
  24299. void SetAnimationTime(float);
  24300. bool SetAttribute(const String&, const Variant&);
  24301. bool SetAttribute(uint, const Variant&);
  24302. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  24303. void SetAttributeAnimationSpeed(const String&, float);
  24304. void SetAttributeAnimationTime(const String&, float);
  24305. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  24306. void SetBlendMode(BlendMode);
  24307. void SetBlockEvents(bool);
  24308. void SetBorder(const IntRect&);
  24309. void SetBringToBack(bool);
  24310. void SetBringToFront(bool);
  24311. void SetChildOffset(const IntVector2&);
  24312. void SetClipBorder(const IntRect&);
  24313. void SetClipChildren(bool);
  24314. void SetColor(Corner, const Color&);
  24315. void SetColor(const Color&);
  24316. void SetDeepEnabled(bool);
  24317. void SetDefaultStyle(XMLFile);
  24318. void SetDisabledOffset(const IntVector2&);
  24319. void SetDisabledOffset(int, int);
  24320. void SetDragDropMode(uint);
  24321. void SetEditable(bool);
  24322. void SetElementEventSender(bool);
  24323. void SetEnableAnchor(bool);
  24324. void SetEnabled(bool);
  24325. void SetEnabledRecursive(bool);
  24326. void SetFixedHeight(int);
  24327. void SetFixedSize(const IntVector2&);
  24328. void SetFixedSize(int, int);
  24329. void SetFixedWidth(int);
  24330. void SetFocus(bool);
  24331. void SetFocusMode(FocusMode);
  24332. void SetFullImageRect();
  24333. void SetGlobalVar(StringHash, const Variant&);
  24334. void SetHeight(int);
  24335. void SetHorizontalAlignment(HorizontalAlignment);
  24336. void SetHoverOffset(const IntVector2&);
  24337. void SetHoverOffset(int, int);
  24338. void SetHovering(bool);
  24339. void SetImageBorder(const IntRect&);
  24340. void SetImageRect(const IntRect&);
  24341. void SetIndent(int);
  24342. void SetIndentSpacing(int);
  24343. void SetInstanceDefault(bool);
  24344. void SetInterceptNetworkUpdate(const String&, bool);
  24345. void SetInternal(bool);
  24346. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  24347. void SetLayoutBorder(const IntRect&);
  24348. void SetLayoutFlexScale(const Vector2&);
  24349. void SetLayoutMode(LayoutMode);
  24350. void SetLayoutSpacing(int);
  24351. void SetMaterial(Material);
  24352. void SetMaterialAttr(const ResourceRef&);
  24353. void SetMaxAnchor(const Vector2&);
  24354. void SetMaxAnchor(float, float);
  24355. void SetMaxHeight(int);
  24356. void SetMaxOffset(const IntVector2&);
  24357. void SetMaxSize(const IntVector2&);
  24358. void SetMaxSize(int, int);
  24359. void SetMaxWidth(int);
  24360. void SetMinAnchor(const Vector2&);
  24361. void SetMinAnchor(float, float);
  24362. void SetMinHeight(int);
  24363. void SetMinOffset(const IntVector2&);
  24364. void SetMinSize(const IntVector2&);
  24365. void SetMinSize(int, int);
  24366. void SetMinWidth(int);
  24367. void SetName(const String&);
  24368. void SetObjectAnimation(ObjectAnimation);
  24369. void SetObjectAnimationAttr(const ResourceRef&);
  24370. void SetOpacity(float);
  24371. void SetOrientation(Orientation);
  24372. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  24373. void SetPivot(const Vector2&);
  24374. void SetPivot(float, float);
  24375. void SetPosition(const IntVector2&);
  24376. void SetPosition(int, int);
  24377. void SetPriority(int);
  24378. void SetRange(float);
  24379. void SetRenderTexture(Texture2D);
  24380. void SetScrollStep(float);
  24381. void SetSelected(bool);
  24382. void SetSize(const IntVector2&);
  24383. void SetSize(int, int);
  24384. void SetSortChildren(bool);
  24385. void SetStepFactor(float);
  24386. bool SetStyle(const String&, XMLFile = null);
  24387. bool SetStyle(const XMLElement&);
  24388. bool SetStyleAuto(XMLFile = null);
  24389. void SetTags(Array<String>);
  24390. void SetTemporary(bool);
  24391. void SetTexture(Texture);
  24392. void SetTextureAttr(const ResourceRef&);
  24393. void SetTiled(bool);
  24394. void SetTraversalMode(TraversalMode);
  24395. void SetUseDerivedOpacity(bool);
  24396. void SetValue(float);
  24397. void SetVar(StringHash, const Variant&);
  24398. void SetVerticalAlignment(VerticalAlignment);
  24399. void SetVisible(bool);
  24400. void SetWidth(int);
  24401. void SortChildren();
  24402. void StepBack();
  24403. void StepForward();
  24404. const String& GetAppliedStyle() const;
  24405. const String& GetCategory() const;
  24406. const String& GetName() const;
  24407. const String& GetTypeName() const;
  24408. operator UIElement() const;
  24409. void UnsubscribeFromAllEvents();
  24410. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  24411. void UnsubscribeFromEvent(Object, StringHash);
  24412. void UnsubscribeFromEvent(StringHash);
  24413. void UnsubscribeFromEvents(Object);
  24414. void Update(float);
  24415. void UpdateLayout();
  24416. const Variant& GetGlobalVar(StringHash) const;
  24417. const Variant& GetVar(const StringHash&) const;
  24418. const VariantMap& GetGlobalVars() const;
  24419. const VariantMap& GetVars() const;
  24420. const Vector2& GetLayoutFlexScale() const;
  24421. const Vector2& GetMaxAnchor() const;
  24422. const Vector2& GetMinAnchor() const;
  24423. const Vector2& GetPivot() const;
  24424. int WeakRefs() const;
  24425. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  24426. void WriteInitialDeltaUpdate(Serializer&, uint8);
  24427. void WriteLatestDataUpdate(Serializer&, uint8);
  24428. operator const Animatable() const;
  24429. operator const BorderImage() const;
  24430. operator const Object() const;
  24431. operator const RefCounted() const;
  24432. operator const Serializable() const;
  24433. operator const UIElement() const;
  24434. // Properties:
  24435. bool animationEnabled;
  24436. /* readonly */
  24437. Array<Variant> attributeDefaults;
  24438. /* readonly */
  24439. Array<AttributeInfo> attributeInfos;
  24440. Array<Variant> attributes;
  24441. /* readonly */
  24442. Button backButton;
  24443. BlendMode blendMode;
  24444. IntRect border;
  24445. bool bringToBack;
  24446. bool bringToFront;
  24447. /* readonly */
  24448. String category;
  24449. /* readonly */
  24450. IntVector2 childOffset;
  24451. /* readonly */
  24452. Array<UIElement> children;
  24453. IntRect clipBorder;
  24454. bool clipChildren;
  24455. /* writeonly */
  24456. Color color;
  24457. /* readonly */
  24458. bool colorGradient;
  24459. Array<Color> colors;
  24460. /* readonly */
  24461. IntRect combinedScreenRect;
  24462. XMLFile defaultStyle;
  24463. /* readonly */
  24464. float derivedOpacity;
  24465. IntVector2 disabledOffset;
  24466. /* readonly */
  24467. uint dragButtonCombo;
  24468. /* readonly */
  24469. uint dragButtonCount;
  24470. uint dragDropMode;
  24471. bool editable;
  24472. /* readonly */
  24473. float effectiveScrollStep;
  24474. bool elementEventSender;
  24475. bool enableAnchor;
  24476. bool enabled;
  24477. /* readonly */
  24478. bool enabledSelf;
  24479. /* readonly */
  24480. bool fixedHeight;
  24481. /* readonly */
  24482. bool fixedSize;
  24483. /* readonly */
  24484. bool fixedWidth;
  24485. bool focus;
  24486. FocusMode focusMode;
  24487. /* readonly */
  24488. Button forwardButton;
  24489. Array<Variant> globalVar;
  24490. /* readonly */
  24491. VariantMap globalVars;
  24492. int height;
  24493. HorizontalAlignment horizontalAlignment;
  24494. IntVector2 hoverOffset;
  24495. /* readonly */
  24496. bool hovering;
  24497. IntRect imageBorder;
  24498. IntRect imageRect;
  24499. int indent;
  24500. int indentSpacing;
  24501. /* readonly */
  24502. int indentWidth;
  24503. bool internal;
  24504. IntRect layoutBorder;
  24505. Vector2 layoutFlexScale;
  24506. LayoutMode layoutMode;
  24507. int layoutSpacing;
  24508. Material material;
  24509. Vector2 maxAnchor;
  24510. int maxHeight;
  24511. IntVector2 maxOffset;
  24512. IntVector2 maxSize;
  24513. int maxWidth;
  24514. Vector2 minAnchor;
  24515. int minHeight;
  24516. IntVector2 minOffset;
  24517. IntVector2 minSize;
  24518. int minWidth;
  24519. String name;
  24520. /* readonly */
  24521. uint numAllChildren;
  24522. /* readonly */
  24523. uint numAttributes;
  24524. /* readonly */
  24525. uint numChildren;
  24526. ObjectAnimation objectAnimation;
  24527. float opacity;
  24528. Orientation orientation;
  24529. UIElement parent;
  24530. Vector2 pivot;
  24531. IntVector2 position;
  24532. int priority;
  24533. float range;
  24534. /* readonly */
  24535. int refs;
  24536. /* readonly */
  24537. UIElement root;
  24538. /* readonly */
  24539. IntVector2 screenPosition;
  24540. float scrollStep;
  24541. bool selected;
  24542. IntVector2 size;
  24543. /* readonly */
  24544. Slider slider;
  24545. bool sortChildren;
  24546. float stepFactor;
  24547. String style;
  24548. /* readonly */
  24549. Array<String> tags;
  24550. bool temporary;
  24551. Texture texture;
  24552. bool tiled;
  24553. TraversalMode traversalMode;
  24554. /* readonly */
  24555. StringHash type;
  24556. /* readonly */
  24557. String typeName;
  24558. bool useDerivedOpacity;
  24559. float value;
  24560. /* readonly */
  24561. VariantMap vars;
  24562. VerticalAlignment verticalAlignment;
  24563. bool visible;
  24564. /* readonly */
  24565. bool visibleEffective;
  24566. /* readonly */
  24567. int weakRefs;
  24568. int width;
  24569. };
  24570. class ScrollView
  24571. {
  24572. public:
  24573. ScrollView();
  24574. // Methods:
  24575. void AddChild(UIElement);
  24576. void AddTag(const String&);
  24577. void AddTags(Array<String>);
  24578. void AddTags(const String&, int8 = ';');
  24579. void AdjustScissor(IntRect&);
  24580. void AllocateNetworkState();
  24581. operator Animatable() const;
  24582. void ApplyAttributes();
  24583. void BringToFront();
  24584. const Color& GetColor(Corner) const;
  24585. const Color& GetColorAttr() const;
  24586. const Color& GetDerivedColor() const;
  24587. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  24588. void DisableLayoutUpdate();
  24589. IntVector2 ElementToScreen(const IntVector2&);
  24590. void EnableLayoutUpdate();
  24591. bool FilterAttributes(XMLElement&) const;
  24592. uint FindChild(UIElement) const;
  24593. bool GetAnimationEnabled() const;
  24594. Variant GetAttribute(const String&) const;
  24595. Variant GetAttribute(uint) const;
  24596. ValueAnimation GetAttributeAnimation(const String&) const;
  24597. float GetAttributeAnimationSpeed(const String&) const;
  24598. float GetAttributeAnimationTime(const String&) const;
  24599. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  24600. Variant GetAttributeDefault(const String&) const;
  24601. Variant GetAttributeDefault(uint) const;
  24602. bool GetAutoDisableChildren() const;
  24603. float GetAutoDisableThreshold() const;
  24604. bool GetBlockEvents() const;
  24605. bool GetBringToBack() const;
  24606. bool GetBringToFront() const;
  24607. UIElement GetChild(const String&, bool = false) const;
  24608. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  24609. UIElement GetChild(uint) const;
  24610. Array<UIElement> GetChildren() const;
  24611. Array<UIElement> GetChildren(bool) const;
  24612. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  24613. bool GetClipChildren() const;
  24614. IntRect GetCombinedScreenRect();
  24615. UIElement GetContentElement() const;
  24616. XMLFile GetDefaultStyle(bool = true) const;
  24617. float GetDerivedOpacity() const;
  24618. uint GetDragButtonCombo() const;
  24619. uint GetDragButtonCount() const;
  24620. uint GetDragDropMode() const;
  24621. IntVector2 GetEffectiveMinSize() const;
  24622. UIElement GetElementEventSender() const;
  24623. bool GetEnableAnchor() const;
  24624. VariantMap& GetEventDataMap() const;
  24625. Object GetEventSender() const;
  24626. FocusMode GetFocusMode() const;
  24627. int GetHeight() const;
  24628. HorizontalAlignment GetHorizontalAlignment() const;
  24629. ScrollBar GetHorizontalScrollBar() const;
  24630. bool GetHorizontalScrollBarVisible() const;
  24631. int GetIndent() const;
  24632. int GetIndentSpacing() const;
  24633. int GetIndentWidth() const;
  24634. bool GetInterceptNetworkUpdate(const String&) const;
  24635. int GetLayoutElementMaxSize() const;
  24636. LayoutMode GetLayoutMode() const;
  24637. int GetLayoutSpacing() const;
  24638. int GetMaxHeight() const;
  24639. int GetMaxWidth() const;
  24640. int GetMinHeight() const;
  24641. int GetMinWidth() const;
  24642. uint GetNumAttributes() const;
  24643. uint GetNumChildren(bool = false) const;
  24644. uint GetNumNetworkAttributes() const;
  24645. ObjectAnimation GetObjectAnimation() const;
  24646. ResourceRef GetObjectAnimationAttr() const;
  24647. float GetOpacity() const;
  24648. float GetPageStep() const;
  24649. UIElement GetParent() const;
  24650. int GetPriority() const;
  24651. UIElement GetRoot() const;
  24652. bool GetScrollBarsAutoVisible() const;
  24653. float GetScrollDeceleration() const;
  24654. BorderImage GetScrollPanel() const;
  24655. float GetScrollSnapEpsilon() const;
  24656. float GetScrollStep() const;
  24657. bool GetSortChildren() const;
  24658. Object GetSubsystem(StringHash) const;
  24659. Array<String> GetTags() const;
  24660. TraversalMode GetTraversalMode() const;
  24661. StringHash GetType() const;
  24662. bool GetUseDerivedOpacity() const;
  24663. VerticalAlignment GetVerticalAlignment() const;
  24664. ScrollBar GetVerticalScrollBar() const;
  24665. bool GetVerticalScrollBarVisible() const;
  24666. int GetWidth() const;
  24667. bool HasColorGradient() const;
  24668. bool HasEventHandlers() const;
  24669. bool HasFocus() const;
  24670. bool HasSubscribedToEvent(Object, StringHash) const;
  24671. bool HasSubscribedToEvent(StringHash) const;
  24672. bool HasTag(const String&) const;
  24673. void InsertChild(uint, UIElement);
  24674. const IntRect& GetClipBorder() const;
  24675. const IntRect& GetLayoutBorder() const;
  24676. const IntVector2& GetChildOffset() const;
  24677. const IntVector2& GetMaxOffset() const;
  24678. const IntVector2& GetMaxSize() const;
  24679. const IntVector2& GetMinOffset() const;
  24680. const IntVector2& GetMinSize() const;
  24681. const IntVector2& GetPosition() const;
  24682. const IntVector2& GetScreenPosition() const;
  24683. const IntVector2& GetSize() const;
  24684. const IntVector2& GetViewPosition() const;
  24685. bool IsChildOf(UIElement) const;
  24686. bool IsEditable() const;
  24687. bool IsElementEventSender() const;
  24688. bool IsEnabled() const;
  24689. bool IsEnabledSelf() const;
  24690. bool IsFixedHeight() const;
  24691. bool IsFixedSize() const;
  24692. bool IsFixedWidth() const;
  24693. bool IsHovering() const;
  24694. bool IsInside(IntVector2, bool);
  24695. bool IsInsideCombined(IntVector2, bool);
  24696. bool IsInstanceOf(StringHash) const;
  24697. bool IsInternal() const;
  24698. bool IsSelected() const;
  24699. bool IsTemporary() const;
  24700. bool IsVisible() const;
  24701. bool IsVisibleEffective() const;
  24702. bool IsWheelHandler() const;
  24703. bool IsWithinScissor(const IntRect&);
  24704. operator ListView() const;
  24705. bool Load(Deserializer&);
  24706. UIElement LoadChildXML(XMLFile, XMLFile);
  24707. UIElement LoadChildXML(const XMLElement&, XMLFile);
  24708. bool LoadJSON(const JSONValue&);
  24709. bool LoadXML(Deserializer&);
  24710. bool LoadXML(File);
  24711. bool LoadXML(VectorBuffer&);
  24712. bool LoadXML(XMLFile, XMLFile);
  24713. bool LoadXML(const XMLElement&);
  24714. bool LoadXML(const XMLElement&, XMLFile);
  24715. void MarkNetworkUpdate();
  24716. operator Object() const;
  24717. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24718. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  24719. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24720. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24721. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24722. bool OnDragDropFinish(UIElement);
  24723. bool OnDragDropTest(UIElement);
  24724. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24725. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24726. void OnEvent(Object, StringHash, VariantMap&);
  24727. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  24728. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24729. void OnIndentSet();
  24730. void OnKey(uint, uint, uint);
  24731. void OnPositionSet(const IntVector2&);
  24732. void OnResize(const IntVector2&, const IntVector2&);
  24733. void OnSetAttribute(const AttributeInfo&, const Variant&);
  24734. void OnSetEditable();
  24735. void OnTextInput(const String&);
  24736. void OnWheel(int, uint, uint);
  24737. bool ReadDeltaUpdate(Deserializer&);
  24738. bool ReadLatestDataUpdate(Deserializer&);
  24739. operator RefCounted() const;
  24740. int Refs() const;
  24741. void Remove();
  24742. void RemoveAllChildren();
  24743. void RemoveAllTags();
  24744. void RemoveAttributeAnimation(const String&);
  24745. void RemoveChild(UIElement, uint = 0);
  24746. void RemoveChild(uint);
  24747. void RemoveChildAtIndex(uint);
  24748. void RemoveInstanceDefault();
  24749. void RemoveObjectAnimation();
  24750. bool RemoveTag(const String&);
  24751. void ResetDeepEnabled();
  24752. void ResetToDefault();
  24753. bool Save(Serializer&) const;
  24754. bool SaveDefaultAttributes() const;
  24755. bool SaveJSON(JSONValue&) const;
  24756. bool SaveXML(File, const String& indentation = "\t");
  24757. bool SaveXML(Serializer&, const String& = "\t") const;
  24758. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  24759. bool SaveXML(XMLElement&) const;
  24760. IntVector2 ScreenToElement(const IntVector2&);
  24761. void SendEvent(StringHash);
  24762. void SendEvent(StringHash, VariantMap&);
  24763. operator Serializable() const;
  24764. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  24765. void SetAnimationEnabled(bool);
  24766. void SetAnimationTime(float);
  24767. bool SetAttribute(const String&, const Variant&);
  24768. bool SetAttribute(uint, const Variant&);
  24769. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  24770. void SetAttributeAnimationSpeed(const String&, float);
  24771. void SetAttributeAnimationTime(const String&, float);
  24772. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  24773. void SetAutoDisableChildren(bool);
  24774. void SetAutoDisableThreshold(float);
  24775. void SetBlockEvents(bool);
  24776. void SetBringToBack(bool);
  24777. void SetBringToFront(bool);
  24778. void SetChildOffset(const IntVector2&);
  24779. void SetClipBorder(const IntRect&);
  24780. void SetClipChildren(bool);
  24781. void SetColor(Corner, const Color&);
  24782. void SetColor(const Color&);
  24783. void SetContentElement(UIElement);
  24784. void SetDeepEnabled(bool);
  24785. void SetDefaultStyle(XMLFile);
  24786. void SetDragDropMode(uint);
  24787. void SetEditable(bool);
  24788. void SetElementEventSender(bool);
  24789. void SetEnableAnchor(bool);
  24790. void SetEnabled(bool);
  24791. void SetEnabledRecursive(bool);
  24792. void SetFixedHeight(int);
  24793. void SetFixedSize(const IntVector2&);
  24794. void SetFixedSize(int, int);
  24795. void SetFixedWidth(int);
  24796. void SetFocus(bool);
  24797. void SetFocusMode(FocusMode);
  24798. void SetGlobalVar(StringHash, const Variant&);
  24799. void SetHeight(int);
  24800. void SetHorizontalAlignment(HorizontalAlignment);
  24801. void SetHorizontalScrollBarVisible(bool);
  24802. void SetHovering(bool);
  24803. void SetIndent(int);
  24804. void SetIndentSpacing(int);
  24805. void SetInstanceDefault(bool);
  24806. void SetInterceptNetworkUpdate(const String&, bool);
  24807. void SetInternal(bool);
  24808. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  24809. void SetLayoutBorder(const IntRect&);
  24810. void SetLayoutFlexScale(const Vector2&);
  24811. void SetLayoutMode(LayoutMode);
  24812. void SetLayoutSpacing(int);
  24813. void SetMaxAnchor(const Vector2&);
  24814. void SetMaxAnchor(float, float);
  24815. void SetMaxHeight(int);
  24816. void SetMaxOffset(const IntVector2&);
  24817. void SetMaxSize(const IntVector2&);
  24818. void SetMaxSize(int, int);
  24819. void SetMaxWidth(int);
  24820. void SetMinAnchor(const Vector2&);
  24821. void SetMinAnchor(float, float);
  24822. void SetMinHeight(int);
  24823. void SetMinOffset(const IntVector2&);
  24824. void SetMinSize(const IntVector2&);
  24825. void SetMinSize(int, int);
  24826. void SetMinWidth(int);
  24827. void SetName(const String&);
  24828. void SetObjectAnimation(ObjectAnimation);
  24829. void SetObjectAnimationAttr(const ResourceRef&);
  24830. void SetOpacity(float);
  24831. void SetPageStep(float);
  24832. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  24833. void SetPivot(const Vector2&);
  24834. void SetPivot(float, float);
  24835. void SetPosition(const IntVector2&);
  24836. void SetPosition(int, int);
  24837. void SetPriority(int);
  24838. void SetRenderTexture(Texture2D);
  24839. void SetScrollBarsAutoVisible(bool);
  24840. void SetScrollBarsVisible(bool, bool);
  24841. void SetScrollDeceleration(float);
  24842. void SetScrollSnapEpsilon(float);
  24843. void SetScrollStep(float);
  24844. void SetSelected(bool);
  24845. void SetSize(const IntVector2&);
  24846. void SetSize(int, int);
  24847. void SetSortChildren(bool);
  24848. bool SetStyle(const String&, XMLFile = null);
  24849. bool SetStyle(const XMLElement&);
  24850. bool SetStyleAuto(XMLFile = null);
  24851. void SetTags(Array<String>);
  24852. void SetTemporary(bool);
  24853. void SetTraversalMode(TraversalMode);
  24854. void SetUseDerivedOpacity(bool);
  24855. void SetVar(StringHash, const Variant&);
  24856. void SetVerticalAlignment(VerticalAlignment);
  24857. void SetVerticalScrollBarVisible(bool);
  24858. void SetViewPosition(const IntVector2&);
  24859. void SetViewPosition(int, int);
  24860. void SetViewPositionAttr(const IntVector2&);
  24861. void SetVisible(bool);
  24862. void SetWidth(int);
  24863. void SortChildren();
  24864. const String& GetAppliedStyle() const;
  24865. const String& GetCategory() const;
  24866. const String& GetName() const;
  24867. const String& GetTypeName() const;
  24868. operator UIElement() const;
  24869. void UnsubscribeFromAllEvents();
  24870. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  24871. void UnsubscribeFromEvent(Object, StringHash);
  24872. void UnsubscribeFromEvent(StringHash);
  24873. void UnsubscribeFromEvents(Object);
  24874. void Update(float);
  24875. void UpdateLayout();
  24876. const Variant& GetGlobalVar(StringHash) const;
  24877. const Variant& GetVar(const StringHash&) const;
  24878. const VariantMap& GetGlobalVars() const;
  24879. const VariantMap& GetVars() const;
  24880. const Vector2& GetLayoutFlexScale() const;
  24881. const Vector2& GetMaxAnchor() const;
  24882. const Vector2& GetMinAnchor() const;
  24883. const Vector2& GetPivot() const;
  24884. int WeakRefs() const;
  24885. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  24886. void WriteInitialDeltaUpdate(Serializer&, uint8);
  24887. void WriteLatestDataUpdate(Serializer&, uint8);
  24888. operator const Animatable() const;
  24889. operator const ListView() const;
  24890. operator const Object() const;
  24891. operator const RefCounted() const;
  24892. operator const Serializable() const;
  24893. operator const UIElement() const;
  24894. // Properties:
  24895. bool animationEnabled;
  24896. /* readonly */
  24897. Array<Variant> attributeDefaults;
  24898. /* readonly */
  24899. Array<AttributeInfo> attributeInfos;
  24900. Array<Variant> attributes;
  24901. bool autoDisableChildren;
  24902. float autoDisableThreshold;
  24903. bool bringToBack;
  24904. bool bringToFront;
  24905. /* readonly */
  24906. String category;
  24907. /* readonly */
  24908. IntVector2 childOffset;
  24909. /* readonly */
  24910. Array<UIElement> children;
  24911. IntRect clipBorder;
  24912. bool clipChildren;
  24913. /* writeonly */
  24914. Color color;
  24915. /* readonly */
  24916. bool colorGradient;
  24917. Array<Color> colors;
  24918. /* readonly */
  24919. IntRect combinedScreenRect;
  24920. UIElement contentElement;
  24921. XMLFile defaultStyle;
  24922. /* readonly */
  24923. float derivedOpacity;
  24924. /* readonly */
  24925. uint dragButtonCombo;
  24926. /* readonly */
  24927. uint dragButtonCount;
  24928. uint dragDropMode;
  24929. bool editable;
  24930. bool elementEventSender;
  24931. bool enableAnchor;
  24932. bool enabled;
  24933. /* readonly */
  24934. bool enabledSelf;
  24935. /* readonly */
  24936. bool fixedHeight;
  24937. /* readonly */
  24938. bool fixedSize;
  24939. /* readonly */
  24940. bool fixedWidth;
  24941. bool focus;
  24942. FocusMode focusMode;
  24943. Array<Variant> globalVar;
  24944. /* readonly */
  24945. VariantMap globalVars;
  24946. int height;
  24947. HorizontalAlignment horizontalAlignment;
  24948. /* readonly */
  24949. ScrollBar horizontalScrollBar;
  24950. bool horizontalScrollBarVisible;
  24951. /* readonly */
  24952. bool hovering;
  24953. int indent;
  24954. int indentSpacing;
  24955. /* readonly */
  24956. int indentWidth;
  24957. bool internal;
  24958. IntRect layoutBorder;
  24959. Vector2 layoutFlexScale;
  24960. LayoutMode layoutMode;
  24961. int layoutSpacing;
  24962. Vector2 maxAnchor;
  24963. int maxHeight;
  24964. IntVector2 maxOffset;
  24965. IntVector2 maxSize;
  24966. int maxWidth;
  24967. Vector2 minAnchor;
  24968. int minHeight;
  24969. IntVector2 minOffset;
  24970. IntVector2 minSize;
  24971. int minWidth;
  24972. String name;
  24973. /* readonly */
  24974. uint numAllChildren;
  24975. /* readonly */
  24976. uint numAttributes;
  24977. /* readonly */
  24978. uint numChildren;
  24979. ObjectAnimation objectAnimation;
  24980. float opacity;
  24981. float pageStep;
  24982. UIElement parent;
  24983. Vector2 pivot;
  24984. IntVector2 position;
  24985. int priority;
  24986. /* readonly */
  24987. int refs;
  24988. /* readonly */
  24989. UIElement root;
  24990. /* readonly */
  24991. IntVector2 screenPosition;
  24992. bool scrollBarsAutoVisible;
  24993. float scrollDeceleration;
  24994. /* readonly */
  24995. BorderImage scrollPanel;
  24996. float scrollSnapEpsilon;
  24997. float scrollStep;
  24998. bool selected;
  24999. IntVector2 size;
  25000. bool sortChildren;
  25001. String style;
  25002. /* readonly */
  25003. Array<String> tags;
  25004. bool temporary;
  25005. TraversalMode traversalMode;
  25006. /* readonly */
  25007. StringHash type;
  25008. /* readonly */
  25009. String typeName;
  25010. bool useDerivedOpacity;
  25011. /* readonly */
  25012. VariantMap vars;
  25013. VerticalAlignment verticalAlignment;
  25014. /* readonly */
  25015. ScrollBar verticalScrollBar;
  25016. bool verticalScrollBarVisible;
  25017. IntVector2 viewPosition;
  25018. bool visible;
  25019. /* readonly */
  25020. bool visibleEffective;
  25021. /* readonly */
  25022. int weakRefs;
  25023. int width;
  25024. };
  25025. class Serializable
  25026. {
  25027. public:
  25028. Serializable();
  25029. // Methods:
  25030. void AllocateNetworkState();
  25031. operator Animatable() const;
  25032. operator AnimatedModel() const;
  25033. operator AnimatedSprite2D() const;
  25034. operator AnimationController() const;
  25035. void ApplyAttributes();
  25036. operator BillboardSet() const;
  25037. operator BorderImage() const;
  25038. operator Button() const;
  25039. operator Camera() const;
  25040. operator CheckBox() const;
  25041. operator CollisionBox2D() const;
  25042. operator CollisionChain2D() const;
  25043. operator CollisionCircle2D() const;
  25044. operator CollisionEdge2D() const;
  25045. operator CollisionPolygon2D() const;
  25046. operator CollisionShape2D() const;
  25047. operator CollisionShape() const;
  25048. operator Component() const;
  25049. operator Constraint2D() const;
  25050. operator Constraint() const;
  25051. operator ConstraintDistance2D() const;
  25052. operator ConstraintFriction2D() const;
  25053. operator ConstraintGear2D() const;
  25054. operator ConstraintMotor2D() const;
  25055. operator ConstraintMouse2D() const;
  25056. operator ConstraintPrismatic2D() const;
  25057. operator ConstraintPulley2D() const;
  25058. operator ConstraintRevolute2D() const;
  25059. operator ConstraintRope2D() const;
  25060. operator ConstraintWeld2D() const;
  25061. operator ConstraintWheel2D() const;
  25062. operator CrowdAgent() const;
  25063. operator CrowdManager() const;
  25064. operator Cursor() const;
  25065. operator CustomGeometry() const;
  25066. operator DebugRenderer() const;
  25067. operator DecalSet() const;
  25068. operator Drawable2D() const;
  25069. operator Drawable() const;
  25070. operator DropDownList() const;
  25071. operator DynamicNavigationMesh() const;
  25072. Variant GetAttribute(const String&) const;
  25073. Variant GetAttribute(uint) const;
  25074. Variant GetAttributeDefault(const String&) const;
  25075. Variant GetAttributeDefault(uint) const;
  25076. bool GetBlockEvents() const;
  25077. VariantMap& GetEventDataMap() const;
  25078. Object GetEventSender() const;
  25079. bool GetInterceptNetworkUpdate(const String&) const;
  25080. uint GetNumAttributes() const;
  25081. uint GetNumNetworkAttributes() const;
  25082. Object GetSubsystem(StringHash) const;
  25083. StringHash GetType() const;
  25084. bool HasEventHandlers() const;
  25085. bool HasSubscribedToEvent(Object, StringHash) const;
  25086. bool HasSubscribedToEvent(StringHash) const;
  25087. operator IKConstraint() const;
  25088. operator IKEffector() const;
  25089. operator IKSolver() const;
  25090. bool IsInstanceOf(StringHash) const;
  25091. bool IsTemporary() const;
  25092. operator Light() const;
  25093. operator LineEdit() const;
  25094. operator ListView() const;
  25095. bool Load(Deserializer&);
  25096. bool LoadJSON(const JSONValue&);
  25097. bool LoadXML(const XMLElement&);
  25098. operator LogicComponent() const;
  25099. void MarkNetworkUpdate();
  25100. operator Menu() const;
  25101. operator NavArea() const;
  25102. operator Navigable() const;
  25103. operator NavigationMesh() const;
  25104. operator NetworkPriority() const;
  25105. operator Node() const;
  25106. operator Object() const;
  25107. operator Obstacle() const;
  25108. operator Octree() const;
  25109. operator OffMeshConnection() const;
  25110. void OnEvent(Object, StringHash, VariantMap&);
  25111. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  25112. void OnSetAttribute(const AttributeInfo&, const Variant&);
  25113. operator ParticleEmitter2D() const;
  25114. operator ParticleEmitter() const;
  25115. operator PhysicsWorld2D() const;
  25116. operator PhysicsWorld() const;
  25117. operator ProgressBar() const;
  25118. operator RaycastVehicle() const;
  25119. bool ReadDeltaUpdate(Deserializer&);
  25120. bool ReadLatestDataUpdate(Deserializer&);
  25121. operator RefCounted() const;
  25122. int Refs() const;
  25123. void RemoveInstanceDefault();
  25124. operator Renderer2D() const;
  25125. void ResetToDefault();
  25126. operator RibbonTrail() const;
  25127. operator RigidBody2D() const;
  25128. operator RigidBody() const;
  25129. bool Save(Serializer&) const;
  25130. bool SaveDefaultAttributes() const;
  25131. bool SaveJSON(JSONValue&) const;
  25132. bool SaveXML(XMLElement&) const;
  25133. operator Scene() const;
  25134. operator ScriptInstance() const;
  25135. operator ScrollBar() const;
  25136. operator ScrollView() const;
  25137. void SendEvent(StringHash);
  25138. void SendEvent(StringHash, VariantMap&);
  25139. bool SetAttribute(const String&, const Variant&);
  25140. bool SetAttribute(uint, const Variant&);
  25141. void SetBlockEvents(bool);
  25142. void SetGlobalVar(StringHash, const Variant&);
  25143. void SetInstanceDefault(bool);
  25144. void SetInterceptNetworkUpdate(const String&, bool);
  25145. void SetTemporary(bool);
  25146. operator Skybox() const;
  25147. operator Slider() const;
  25148. operator SmoothedTransform() const;
  25149. operator SoundListener() const;
  25150. operator SoundSource3D() const;
  25151. operator SoundSource() const;
  25152. operator SplinePath() const;
  25153. operator Sprite() const;
  25154. operator StaticModel() const;
  25155. operator StaticModelGroup() const;
  25156. operator StaticSprite2D() const;
  25157. operator StretchableSprite2D() const;
  25158. const String& GetCategory() const;
  25159. const String& GetTypeName() const;
  25160. operator Terrain() const;
  25161. operator TerrainPatch() const;
  25162. operator Text3D() const;
  25163. operator Text() const;
  25164. operator TileMap2D() const;
  25165. operator TileMapLayer2D() const;
  25166. operator ToolTip() const;
  25167. operator UIComponent() const;
  25168. operator UIElement() const;
  25169. operator UISelectable() const;
  25170. operator UnknownComponent() const;
  25171. void UnsubscribeFromAllEvents();
  25172. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25173. void UnsubscribeFromEvent(Object, StringHash);
  25174. void UnsubscribeFromEvent(StringHash);
  25175. void UnsubscribeFromEvents(Object);
  25176. const Variant& GetGlobalVar(StringHash) const;
  25177. const VariantMap& GetGlobalVars() const;
  25178. operator View3D() const;
  25179. int WeakRefs() const;
  25180. operator Window() const;
  25181. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  25182. void WriteInitialDeltaUpdate(Serializer&, uint8);
  25183. void WriteLatestDataUpdate(Serializer&, uint8);
  25184. operator Zone() const;
  25185. operator const Animatable() const;
  25186. operator const AnimatedModel() const;
  25187. operator const AnimatedSprite2D() const;
  25188. operator const AnimationController() const;
  25189. operator const BillboardSet() const;
  25190. operator const BorderImage() const;
  25191. operator const Button() const;
  25192. operator const Camera() const;
  25193. operator const CheckBox() const;
  25194. operator const CollisionBox2D() const;
  25195. operator const CollisionChain2D() const;
  25196. operator const CollisionCircle2D() const;
  25197. operator const CollisionEdge2D() const;
  25198. operator const CollisionPolygon2D() const;
  25199. operator const CollisionShape2D() const;
  25200. operator const CollisionShape() const;
  25201. operator const Component() const;
  25202. operator const Constraint2D() const;
  25203. operator const Constraint() const;
  25204. operator const ConstraintDistance2D() const;
  25205. operator const ConstraintFriction2D() const;
  25206. operator const ConstraintGear2D() const;
  25207. operator const ConstraintMotor2D() const;
  25208. operator const ConstraintMouse2D() const;
  25209. operator const ConstraintPrismatic2D() const;
  25210. operator const ConstraintPulley2D() const;
  25211. operator const ConstraintRevolute2D() const;
  25212. operator const ConstraintRope2D() const;
  25213. operator const ConstraintWeld2D() const;
  25214. operator const ConstraintWheel2D() const;
  25215. operator const CrowdAgent() const;
  25216. operator const CrowdManager() const;
  25217. operator const Cursor() const;
  25218. operator const CustomGeometry() const;
  25219. operator const DebugRenderer() const;
  25220. operator const DecalSet() const;
  25221. operator const Drawable2D() const;
  25222. operator const Drawable() const;
  25223. operator const DropDownList() const;
  25224. operator const DynamicNavigationMesh() const;
  25225. operator const IKConstraint() const;
  25226. operator const IKEffector() const;
  25227. operator const IKSolver() const;
  25228. operator const Light() const;
  25229. operator const LineEdit() const;
  25230. operator const ListView() const;
  25231. operator const LogicComponent() const;
  25232. operator const Menu() const;
  25233. operator const NavArea() const;
  25234. operator const Navigable() const;
  25235. operator const NavigationMesh() const;
  25236. operator const NetworkPriority() const;
  25237. operator const Node() const;
  25238. operator const Object() const;
  25239. operator const Obstacle() const;
  25240. operator const Octree() const;
  25241. operator const OffMeshConnection() const;
  25242. operator const ParticleEmitter2D() const;
  25243. operator const ParticleEmitter() const;
  25244. operator const PhysicsWorld2D() const;
  25245. operator const PhysicsWorld() const;
  25246. operator const ProgressBar() const;
  25247. operator const RaycastVehicle() const;
  25248. operator const RefCounted() const;
  25249. operator const Renderer2D() const;
  25250. operator const RibbonTrail() const;
  25251. operator const RigidBody2D() const;
  25252. operator const RigidBody() const;
  25253. operator const Scene() const;
  25254. operator const ScriptInstance() const;
  25255. operator const ScrollBar() const;
  25256. operator const ScrollView() const;
  25257. operator const Skybox() const;
  25258. operator const Slider() const;
  25259. operator const SmoothedTransform() const;
  25260. operator const SoundListener() const;
  25261. operator const SoundSource3D() const;
  25262. operator const SoundSource() const;
  25263. operator const SplinePath() const;
  25264. operator const Sprite() const;
  25265. operator const StaticModel() const;
  25266. operator const StaticModelGroup() const;
  25267. operator const StaticSprite2D() const;
  25268. operator const StretchableSprite2D() const;
  25269. operator const Terrain() const;
  25270. operator const TerrainPatch() const;
  25271. operator const Text3D() const;
  25272. operator const Text() const;
  25273. operator const TileMap2D() const;
  25274. operator const TileMapLayer2D() const;
  25275. operator const ToolTip() const;
  25276. operator const UIComponent() const;
  25277. operator const UIElement() const;
  25278. operator const UISelectable() const;
  25279. operator const UnknownComponent() const;
  25280. operator const View3D() const;
  25281. operator const Window() const;
  25282. operator const Zone() const;
  25283. // Properties:
  25284. /* readonly */
  25285. Array<Variant> attributeDefaults;
  25286. /* readonly */
  25287. Array<AttributeInfo> attributeInfos;
  25288. Array<Variant> attributes;
  25289. /* readonly */
  25290. String category;
  25291. Array<Variant> globalVar;
  25292. /* readonly */
  25293. VariantMap globalVars;
  25294. /* readonly */
  25295. uint numAttributes;
  25296. /* readonly */
  25297. int refs;
  25298. bool temporary;
  25299. /* readonly */
  25300. StringHash type;
  25301. /* readonly */
  25302. String typeName;
  25303. /* readonly */
  25304. int weakRefs;
  25305. };
  25306. class Serializer
  25307. {
  25308. public:
  25309. // Methods:
  25310. Serializer& operator=(const Serializer&);
  25311. operator File() const;
  25312. operator NamedPipe() const;
  25313. uint Write(Array<uint8>);
  25314. bool WriteBool(bool);
  25315. bool WriteBoundingBox(const BoundingBox&);
  25316. bool WriteByte(int8);
  25317. bool WriteColor(const Color&);
  25318. bool WriteDouble(double);
  25319. bool WriteFileID(const String&);
  25320. bool WriteFloat(float);
  25321. bool WriteInt(int);
  25322. bool WriteInt64(int64);
  25323. bool WriteIntRect(const IntRect&);
  25324. bool WriteIntVector2(const IntVector2&);
  25325. bool WriteIntVector3(const IntVector3&);
  25326. bool WriteLine(const String&);
  25327. bool WriteMatrix3(const Matrix3&);
  25328. bool WriteMatrix3x4(const Matrix3x4&);
  25329. bool WriteMatrix4(const Matrix4&);
  25330. bool WriteNetID(uint);
  25331. bool WritePackedQuaternion(const Quaternion&);
  25332. bool WritePackedVector3(const Vector3&, float);
  25333. bool WriteQuaternion(const Quaternion&);
  25334. bool WriteRect(const Rect&);
  25335. bool WriteResourceRef(const ResourceRef&);
  25336. bool WriteResourceRefList(const ResourceRefList&);
  25337. bool WriteShort(int16);
  25338. bool WriteString(const String&);
  25339. bool WriteStringHash(const StringHash&);
  25340. bool WriteStringVector(Array<String>);
  25341. bool WriteUByte(uint8);
  25342. bool WriteUInt(uint);
  25343. bool WriteUInt64(uint64);
  25344. bool WriteUShort(uint16);
  25345. bool WriteVLE(uint);
  25346. bool WriteVariant(const Variant&);
  25347. bool WriteVariantData(const Variant&);
  25348. bool WriteVariantMap(const VariantMap&);
  25349. bool WriteVector2(const Vector2&);
  25350. bool WriteVector3(const Vector3&);
  25351. bool WriteVector4(const Vector4&);
  25352. bool WriteVectorBuffer(const VectorBuffer&);
  25353. operator const File() const;
  25354. operator const NamedPipe() const;
  25355. };
  25356. class Shader
  25357. {
  25358. public:
  25359. Shader();
  25360. // Methods:
  25361. bool BeginLoad(Deserializer&);
  25362. bool EndLoad();
  25363. AsyncLoadState GetAsyncLoadState() const;
  25364. bool GetBlockEvents() const;
  25365. VariantMap& GetEventDataMap() const;
  25366. Object GetEventSender() const;
  25367. uint GetMemoryUse() const;
  25368. StringHash GetNameHash() const;
  25369. Object GetSubsystem(StringHash) const;
  25370. uint GetTimeStamp() const;
  25371. StringHash GetType() const;
  25372. uint GetUseTimer();
  25373. ShaderVariation GetVariation(ShaderType, const String&);
  25374. bool HasEventHandlers() const;
  25375. bool HasSubscribedToEvent(Object, StringHash) const;
  25376. bool HasSubscribedToEvent(StringHash) const;
  25377. bool IsInstanceOf(StringHash) const;
  25378. bool Load(Deserializer&);
  25379. bool Load(File);
  25380. bool Load(VectorBuffer&);
  25381. bool Load(const String&);
  25382. bool LoadFile(const String&);
  25383. operator Object() const;
  25384. void OnEvent(Object, StringHash, VariantMap&);
  25385. operator RefCounted() const;
  25386. int Refs() const;
  25387. void ResetUseTimer();
  25388. operator Resource() const;
  25389. bool Save(File) const;
  25390. bool Save(Serializer&) const;
  25391. bool Save(VectorBuffer&) const;
  25392. bool Save(const String&) const;
  25393. bool SaveFile(const String&) const;
  25394. void SendEvent(StringHash);
  25395. void SendEvent(StringHash, VariantMap&);
  25396. void SetAsyncLoadState(AsyncLoadState);
  25397. void SetBlockEvents(bool);
  25398. void SetGlobalVar(StringHash, const Variant&);
  25399. void SetMemoryUse(uint);
  25400. void SetName(const String&);
  25401. const String& GetCategory() const;
  25402. const String& GetName() const;
  25403. const String& GetSourceCode(ShaderType) const;
  25404. const String& GetTypeName() const;
  25405. void UnsubscribeFromAllEvents();
  25406. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25407. void UnsubscribeFromEvent(Object, StringHash);
  25408. void UnsubscribeFromEvent(StringHash);
  25409. void UnsubscribeFromEvents(Object);
  25410. const Variant& GetGlobalVar(StringHash) const;
  25411. const VariantMap& GetGlobalVars() const;
  25412. int WeakRefs() const;
  25413. operator const Object() const;
  25414. operator const RefCounted() const;
  25415. operator const Resource() const;
  25416. // Properties:
  25417. /* readonly */
  25418. String category;
  25419. Array<Variant> globalVar;
  25420. /* readonly */
  25421. VariantMap globalVars;
  25422. /* readonly */
  25423. uint memoryUse;
  25424. String name;
  25425. /* readonly */
  25426. int refs;
  25427. /* readonly */
  25428. StringHash type;
  25429. /* readonly */
  25430. String typeName;
  25431. /* readonly */
  25432. uint useTimer;
  25433. /* readonly */
  25434. int weakRefs;
  25435. };
  25436. class ShaderParameter
  25437. {
  25438. public:
  25439. ~ShaderParameter();
  25440. ShaderParameter();
  25441. ShaderParameter(const String&in, uint, int);
  25442. ShaderParameter(ShaderType, const String&in, uint, uint, uint);
  25443. ShaderParameter(ShaderType, const String&in, uint, uint);
  25444. // Methods:
  25445. ShaderParameter& operator=(const ShaderParameter&);
  25446. // Properties:
  25447. uint buffer;
  25448. uint glType;
  25449. int location;
  25450. String name;
  25451. uint offset;
  25452. uint regCount;
  25453. uint register;
  25454. uint size;
  25455. ShaderType type;
  25456. };
  25457. class ShaderParameterAnimationInfo
  25458. {
  25459. public:
  25460. ShaderParameterAnimationInfo(Material&, const String&in, ValueAnimation&, WrapMode, float);
  25461. ShaderParameterAnimationInfo(const ShaderParameterAnimationInfo&in);
  25462. // Methods:
  25463. ValueAnimation GetAnimation() const;
  25464. float GetSpeed() const;
  25465. Object GetTarget() const;
  25466. float GetTime() const;
  25467. WrapMode GetWrapMode() const;
  25468. operator RefCounted() const;
  25469. int Refs() const;
  25470. void SetSpeed(float);
  25471. bool SetTime(float);
  25472. void SetWrapMode(WrapMode);
  25473. const String& GetName() const;
  25474. bool Update(float);
  25475. operator ValueAnimationInfo() const;
  25476. int WeakRefs() const;
  25477. operator const RefCounted() const;
  25478. operator const ValueAnimationInfo() const;
  25479. // Properties:
  25480. /* readonly */
  25481. int refs;
  25482. /* readonly */
  25483. int weakRefs;
  25484. };
  25485. class ShaderPrecache
  25486. {
  25487. public:
  25488. ShaderPrecache(const String&in);
  25489. // Methods:
  25490. bool GetBlockEvents() const;
  25491. VariantMap& GetEventDataMap() const;
  25492. Object GetEventSender() const;
  25493. Object GetSubsystem(StringHash) const;
  25494. StringHash GetType() const;
  25495. bool HasEventHandlers() const;
  25496. bool HasSubscribedToEvent(Object, StringHash) const;
  25497. bool HasSubscribedToEvent(StringHash) const;
  25498. bool IsInstanceOf(StringHash) const;
  25499. operator Object() const;
  25500. void OnEvent(Object, StringHash, VariantMap&);
  25501. operator RefCounted() const;
  25502. int Refs() const;
  25503. void SendEvent(StringHash);
  25504. void SendEvent(StringHash, VariantMap&);
  25505. void SetBlockEvents(bool);
  25506. void SetGlobalVar(StringHash, const Variant&);
  25507. void StoreShaders(ShaderVariation, ShaderVariation);
  25508. const String& GetCategory() const;
  25509. const String& GetTypeName() const;
  25510. void UnsubscribeFromAllEvents();
  25511. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25512. void UnsubscribeFromEvent(Object, StringHash);
  25513. void UnsubscribeFromEvent(StringHash);
  25514. void UnsubscribeFromEvents(Object);
  25515. const Variant& GetGlobalVar(StringHash) const;
  25516. const VariantMap& GetGlobalVars() const;
  25517. int WeakRefs() const;
  25518. operator const Object() const;
  25519. operator const RefCounted() const;
  25520. // Properties:
  25521. /* readonly */
  25522. String category;
  25523. Array<Variant> globalVar;
  25524. /* readonly */
  25525. VariantMap globalVars;
  25526. /* readonly */
  25527. int refs;
  25528. /* readonly */
  25529. StringHash type;
  25530. /* readonly */
  25531. String typeName;
  25532. /* readonly */
  25533. int weakRefs;
  25534. };
  25535. class ShaderVariation
  25536. {
  25537. public:
  25538. ShaderVariation(Shader&, ShaderType);
  25539. // Methods:
  25540. void ClearDataLost();
  25541. bool Create();
  25542. uint64 GetElementHash() const;
  25543. String GetFullName() const;
  25544. uint GetGPUObjectName() const;
  25545. Graphics GetGraphics() const;
  25546. Shader GetOwner() const;
  25547. ShaderType GetShaderType() const;
  25548. bool HasParameter(StringHash) const;
  25549. bool HasPendingData() const;
  25550. bool HasTextureUnit(TextureUnit) const;
  25551. bool IsDataLost() const;
  25552. void OnDeviceLost();
  25553. void OnDeviceReset();
  25554. operator RefCounted() const;
  25555. int Refs() const;
  25556. void Release();
  25557. void SetDefines(const String&);
  25558. void SetName(const String&);
  25559. const String& GetCompilerOutput() const;
  25560. const String& GetDefines() const;
  25561. const String& GetDefinesClipPlane();
  25562. const String& GetName() const;
  25563. int WeakRefs() const;
  25564. operator const RefCounted() const;
  25565. // Properties:
  25566. /* readonly */
  25567. bool dataLost;
  25568. /* readonly */
  25569. int refs;
  25570. /* readonly */
  25571. int weakRefs;
  25572. };
  25573. class ShadowBatchQueue
  25574. {
  25575. public:
  25576. ~ShadowBatchQueue();
  25577. ShadowBatchQueue();
  25578. // Methods:
  25579. ShadowBatchQueue& operator=(const ShadowBatchQueue&);
  25580. // Properties:
  25581. float farSplit;
  25582. float nearSplit;
  25583. BatchQueue shadowBatches;
  25584. IntRect shadowViewport;
  25585. };
  25586. class SimpleNavBuildData
  25587. {
  25588. public:
  25589. ~SimpleNavBuildData();
  25590. SimpleNavBuildData();
  25591. // Methods:
  25592. SimpleNavBuildData& operator=(const SimpleNavBuildData&);
  25593. // Properties:
  25594. BoundingBox worldBoundingBox;
  25595. };
  25596. class Skeleton
  25597. {
  25598. public:
  25599. // Methods:
  25600. Skeleton& operator=(const Skeleton&);
  25601. void ClearBones();
  25602. void Define(const Skeleton&);
  25603. Bone GetBone(const String&);
  25604. Bone GetBone(const StringHash&);
  25605. Bone GetBone(uint);
  25606. uint GetBoneIndex(Bone) const;
  25607. uint GetBoneIndex(const String&) const;
  25608. uint GetBoneIndex(const StringHash&) const;
  25609. Bone GetBoneParent(Bone);
  25610. uint GetNumBones() const;
  25611. Bone GetRootBone();
  25612. bool Load(Deserializer&);
  25613. void Reset();
  25614. void ResetSilent();
  25615. bool Save(Serializer&) const;
  25616. void SetRootBoneIndex(uint);
  25617. // Properties:
  25618. /* readonly */
  25619. Array<Bone> bones;
  25620. /* readonly */
  25621. uint numBones;
  25622. /* readonly */
  25623. Bone rootBone;
  25624. };
  25625. class Skybox
  25626. {
  25627. public:
  25628. Skybox();
  25629. // Methods:
  25630. void AddLight(Light);
  25631. void AddVertexLight(Light);
  25632. void AllocateNetworkState();
  25633. operator Animatable() const;
  25634. void ApplyAttributes();
  25635. void ApplyMaterialList(const String& = String :: EMPTY);
  25636. const BoundingBox& GetBoundingBox() const;
  25637. const BoundingBox& GetWorldBoundingBox();
  25638. void CleanupConnection(Connection);
  25639. operator Component() const;
  25640. void DrawDebugGeometry(DebugRenderer, bool);
  25641. bool DrawOcclusion(OcclusionBuffer);
  25642. operator Drawable() const;
  25643. bool GetAnimationEnabled() const;
  25644. Variant GetAttribute(const String&) const;
  25645. Variant GetAttribute(uint) const;
  25646. ValueAnimation GetAttributeAnimation(const String&) const;
  25647. float GetAttributeAnimationSpeed(const String&) const;
  25648. float GetAttributeAnimationTime(const String&) const;
  25649. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  25650. Variant GetAttributeDefault(const String&) const;
  25651. Variant GetAttributeDefault(uint) const;
  25652. bool GetBlockEvents() const;
  25653. bool GetCastShadows() const;
  25654. Component GetComponent(StringHash) const;
  25655. float GetDistance() const;
  25656. float GetDrawDistance() const;
  25657. uint8 GetDrawableFlags() const;
  25658. VariantMap& GetEventDataMap() const;
  25659. Object GetEventSender() const;
  25660. Light GetFirstLight() const;
  25661. uint GetID() const;
  25662. bool GetInterceptNetworkUpdate(const String&) const;
  25663. uint GetLightMask() const;
  25664. Array<Light> GetLights() const;
  25665. float GetLodBias() const;
  25666. float GetLodDistance() const;
  25667. Geometry GetLodGeometry(uint, uint);
  25668. Material GetMaterial() const;
  25669. Material GetMaterial(uint) const;
  25670. uint GetMaxLights() const;
  25671. float GetMaxZ() const;
  25672. float GetMinZ() const;
  25673. Model GetModel() const;
  25674. ResourceRef GetModelAttr() const;
  25675. Node GetNode() const;
  25676. uint GetNumAttributes() const;
  25677. uint GetNumGeometries() const;
  25678. uint GetNumNetworkAttributes() const;
  25679. uint GetNumOccluderTriangles();
  25680. ObjectAnimation GetObjectAnimation() const;
  25681. ResourceRef GetObjectAnimationAttr() const;
  25682. uint GetOcclusionLodLevel() const;
  25683. Scene GetScene() const;
  25684. float GetShadowDistance() const;
  25685. uint GetShadowMask() const;
  25686. float GetSortValue() const;
  25687. Object GetSubsystem(StringHash) const;
  25688. StringHash GetType() const;
  25689. UpdateGeometryType GetUpdateGeometryType();
  25690. Array<Light> GetVertexLights() const;
  25691. uint GetViewMask() const;
  25692. Zone GetZone() const;
  25693. uint GetZoneMask() const;
  25694. bool HasBasePass(uint) const;
  25695. bool HasEventHandlers() const;
  25696. bool HasSubscribedToEvent(Object, StringHash) const;
  25697. bool HasSubscribedToEvent(StringHash) const;
  25698. bool IsEnabled() const;
  25699. bool IsEnabledEffective() const;
  25700. bool IsInView() const;
  25701. bool IsInView(Camera) const;
  25702. bool IsInView(const FrameInfo&, bool = false) const;
  25703. bool IsInside(const Vector3&) const;
  25704. bool IsInsideLocal(const Vector3&) const;
  25705. bool IsInstanceOf(StringHash) const;
  25706. bool IsOccludee() const;
  25707. bool IsOccluder() const;
  25708. bool IsReplicated() const;
  25709. bool IsTemporary() const;
  25710. bool IsZoneDirty() const;
  25711. void LimitLights();
  25712. void LimitVertexLights(bool);
  25713. bool Load(Deserializer&);
  25714. bool LoadJSON(const JSONValue&);
  25715. bool LoadXML(const XMLElement&);
  25716. void MarkForUpdate();
  25717. void MarkInView(const FrameInfo&);
  25718. void MarkInView(uint);
  25719. void MarkNetworkUpdate();
  25720. operator Object() const;
  25721. void OnEvent(Object, StringHash, VariantMap&);
  25722. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  25723. void OnSetAttribute(const AttributeInfo&, const Variant&);
  25724. void OnSetEnabled();
  25725. void PrepareNetworkUpdate();
  25726. bool ReadDeltaUpdate(Deserializer&);
  25727. bool ReadLatestDataUpdate(Deserializer&);
  25728. operator RefCounted() const;
  25729. int Refs() const;
  25730. void Remove();
  25731. void RemoveAttributeAnimation(const String&);
  25732. void RemoveInstanceDefault();
  25733. void RemoveObjectAnimation();
  25734. void ResetToDefault();
  25735. const ResourceRefList& GetMaterialsAttr() const;
  25736. bool Save(Serializer&) const;
  25737. bool SaveDefaultAttributes() const;
  25738. bool SaveJSON(JSONValue&) const;
  25739. bool SaveXML(XMLElement&) const;
  25740. void SendEvent(StringHash);
  25741. void SendEvent(StringHash, VariantMap&);
  25742. operator Serializable() const;
  25743. void SetAnimationEnabled(bool);
  25744. void SetAnimationTime(float);
  25745. bool SetAttribute(const String&, const Variant&);
  25746. bool SetAttribute(uint, const Variant&);
  25747. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  25748. void SetAttributeAnimationSpeed(const String&, float);
  25749. void SetAttributeAnimationTime(const String&, float);
  25750. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  25751. void SetBasePass(uint);
  25752. void SetBlockEvents(bool);
  25753. void SetCastShadows(bool);
  25754. void SetDrawDistance(float);
  25755. void SetEnabled(bool);
  25756. void SetGlobalVar(StringHash, const Variant&);
  25757. void SetInstanceDefault(bool);
  25758. void SetInterceptNetworkUpdate(const String&, bool);
  25759. void SetLightMask(uint);
  25760. void SetLodBias(float);
  25761. void SetMaterial(Material);
  25762. bool SetMaterial(uint, Material);
  25763. void SetMaterialsAttr(const ResourceRefList&);
  25764. void SetMaxLights(uint);
  25765. void SetMinMaxZ(float, float);
  25766. void SetModel(Model);
  25767. void SetModelAttr(const ResourceRef&);
  25768. void SetObjectAnimation(ObjectAnimation);
  25769. void SetObjectAnimationAttr(const ResourceRef&);
  25770. void SetOccludee(bool);
  25771. void SetOccluder(bool);
  25772. void SetOcclusionLodLevel(uint);
  25773. void SetShadowDistance(float);
  25774. void SetShadowMask(uint);
  25775. void SetSortValue(float);
  25776. void SetTemporary(bool);
  25777. void SetViewMask(uint);
  25778. void SetZone(Zone, bool = false);
  25779. void SetZoneMask(uint);
  25780. operator StaticModel() const;
  25781. const String& GetCategory() const;
  25782. const String& GetTypeName() const;
  25783. void UnsubscribeFromAllEvents();
  25784. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25785. void UnsubscribeFromEvent(Object, StringHash);
  25786. void UnsubscribeFromEvent(StringHash);
  25787. void UnsubscribeFromEvents(Object);
  25788. void Update(const FrameInfo&);
  25789. void UpdateBatches(const FrameInfo&);
  25790. void UpdateGeometry(const FrameInfo&);
  25791. const Variant& GetGlobalVar(StringHash) const;
  25792. const VariantMap& GetGlobalVars() const;
  25793. int WeakRefs() const;
  25794. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  25795. void WriteInitialDeltaUpdate(Serializer&, uint8);
  25796. void WriteLatestDataUpdate(Serializer&, uint8);
  25797. operator const Animatable() const;
  25798. operator const Component() const;
  25799. operator const Drawable() const;
  25800. operator const Object() const;
  25801. operator const RefCounted() const;
  25802. operator const Serializable() const;
  25803. operator const StaticModel() const;
  25804. // Properties:
  25805. bool animationEnabled;
  25806. /* readonly */
  25807. Array<Variant> attributeDefaults;
  25808. /* readonly */
  25809. Array<AttributeInfo> attributeInfos;
  25810. Array<Variant> attributes;
  25811. /* readonly */
  25812. BoundingBox boundingBox;
  25813. bool castShadows;
  25814. /* readonly */
  25815. String category;
  25816. float drawDistance;
  25817. bool enabled;
  25818. /* readonly */
  25819. bool enabledEffective;
  25820. Array<Variant> globalVar;
  25821. /* readonly */
  25822. VariantMap globalVars;
  25823. /* readonly */
  25824. uint id;
  25825. /* readonly */
  25826. bool inView;
  25827. uint lightMask;
  25828. float lodBias;
  25829. Material material;
  25830. Array<Material> materials;
  25831. uint maxLights;
  25832. Model model;
  25833. /* readonly */
  25834. Node node;
  25835. /* readonly */
  25836. uint numAttributes;
  25837. /* readonly */
  25838. uint numGeometries;
  25839. ObjectAnimation objectAnimation;
  25840. bool occludee;
  25841. bool occluder;
  25842. uint occlusionLodLevel;
  25843. /* readonly */
  25844. int refs;
  25845. /* readonly */
  25846. bool replicated;
  25847. float shadowDistance;
  25848. uint shadowMask;
  25849. bool temporary;
  25850. /* readonly */
  25851. StringHash type;
  25852. /* readonly */
  25853. String typeName;
  25854. uint viewMask;
  25855. /* readonly */
  25856. int weakRefs;
  25857. /* readonly */
  25858. BoundingBox worldBoundingBox;
  25859. /* readonly */
  25860. Zone zone;
  25861. uint zoneMask;
  25862. };
  25863. class Slider
  25864. {
  25865. public:
  25866. Slider();
  25867. // Methods:
  25868. void AddChild(UIElement);
  25869. void AddTag(const String&);
  25870. void AddTags(Array<String>);
  25871. void AddTags(const String&, int8 = ';');
  25872. void AdjustScissor(IntRect&);
  25873. void AllocateNetworkState();
  25874. operator Animatable() const;
  25875. void ApplyAttributes();
  25876. operator BorderImage() const;
  25877. void BringToFront();
  25878. void ChangeValue(float);
  25879. const Color& GetColor(Corner) const;
  25880. const Color& GetColorAttr() const;
  25881. const Color& GetDerivedColor() const;
  25882. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  25883. void DisableLayoutUpdate();
  25884. IntVector2 ElementToScreen(const IntVector2&);
  25885. void EnableLayoutUpdate();
  25886. bool FilterAttributes(XMLElement&) const;
  25887. uint FindChild(UIElement) const;
  25888. bool GetAnimationEnabled() const;
  25889. Variant GetAttribute(const String&) const;
  25890. Variant GetAttribute(uint) const;
  25891. ValueAnimation GetAttributeAnimation(const String&) const;
  25892. float GetAttributeAnimationSpeed(const String&) const;
  25893. float GetAttributeAnimationTime(const String&) const;
  25894. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  25895. Variant GetAttributeDefault(const String&) const;
  25896. Variant GetAttributeDefault(uint) const;
  25897. BlendMode GetBlendMode() const;
  25898. bool GetBlockEvents() const;
  25899. bool GetBringToBack() const;
  25900. bool GetBringToFront() const;
  25901. UIElement GetChild(const String&, bool = false) const;
  25902. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  25903. UIElement GetChild(uint) const;
  25904. Array<UIElement> GetChildren() const;
  25905. Array<UIElement> GetChildren(bool) const;
  25906. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  25907. bool GetClipChildren() const;
  25908. IntRect GetCombinedScreenRect();
  25909. XMLFile GetDefaultStyle(bool = true) const;
  25910. float GetDerivedOpacity() const;
  25911. uint GetDragButtonCombo() const;
  25912. uint GetDragButtonCount() const;
  25913. uint GetDragDropMode() const;
  25914. IntVector2 GetEffectiveMinSize() const;
  25915. UIElement GetElementEventSender() const;
  25916. bool GetEnableAnchor() const;
  25917. VariantMap& GetEventDataMap() const;
  25918. Object GetEventSender() const;
  25919. FocusMode GetFocusMode() const;
  25920. int GetHeight() const;
  25921. HorizontalAlignment GetHorizontalAlignment() const;
  25922. int GetIndent() const;
  25923. int GetIndentSpacing() const;
  25924. int GetIndentWidth() const;
  25925. bool GetInterceptNetworkUpdate(const String&) const;
  25926. BorderImage GetKnob() const;
  25927. int GetLayoutElementMaxSize() const;
  25928. LayoutMode GetLayoutMode() const;
  25929. int GetLayoutSpacing() const;
  25930. Material GetMaterial() const;
  25931. ResourceRef GetMaterialAttr() const;
  25932. int GetMaxHeight() const;
  25933. int GetMaxWidth() const;
  25934. int GetMinHeight() const;
  25935. int GetMinWidth() const;
  25936. uint GetNumAttributes() const;
  25937. uint GetNumChildren(bool = false) const;
  25938. uint GetNumNetworkAttributes() const;
  25939. ObjectAnimation GetObjectAnimation() const;
  25940. ResourceRef GetObjectAnimationAttr() const;
  25941. float GetOpacity() const;
  25942. Orientation GetOrientation() const;
  25943. UIElement GetParent() const;
  25944. int GetPriority() const;
  25945. float GetRange() const;
  25946. float GetRepeatRate() const;
  25947. UIElement GetRoot() const;
  25948. bool GetSortChildren() const;
  25949. Object GetSubsystem(StringHash) const;
  25950. Array<String> GetTags() const;
  25951. Texture GetTexture() const;
  25952. ResourceRef GetTextureAttr() const;
  25953. TraversalMode GetTraversalMode() const;
  25954. StringHash GetType() const;
  25955. bool GetUseDerivedOpacity() const;
  25956. float GetValue() const;
  25957. VerticalAlignment GetVerticalAlignment() const;
  25958. int GetWidth() const;
  25959. bool HasColorGradient() const;
  25960. bool HasEventHandlers() const;
  25961. bool HasFocus() const;
  25962. bool HasSubscribedToEvent(Object, StringHash) const;
  25963. bool HasSubscribedToEvent(StringHash) const;
  25964. bool HasTag(const String&) const;
  25965. void InsertChild(uint, UIElement);
  25966. const IntRect& GetBorder() const;
  25967. const IntRect& GetClipBorder() const;
  25968. const IntRect& GetImageBorder() const;
  25969. const IntRect& GetImageRect() const;
  25970. const IntRect& GetLayoutBorder() const;
  25971. const IntVector2& GetChildOffset() const;
  25972. const IntVector2& GetDisabledOffset() const;
  25973. const IntVector2& GetHoverOffset() const;
  25974. const IntVector2& GetMaxOffset() const;
  25975. const IntVector2& GetMaxSize() const;
  25976. const IntVector2& GetMinOffset() const;
  25977. const IntVector2& GetMinSize() const;
  25978. const IntVector2& GetPosition() const;
  25979. const IntVector2& GetScreenPosition() const;
  25980. const IntVector2& GetSize() const;
  25981. bool IsChildOf(UIElement) const;
  25982. bool IsEditable() const;
  25983. bool IsElementEventSender() const;
  25984. bool IsEnabled() const;
  25985. bool IsEnabledSelf() const;
  25986. bool IsFixedHeight() const;
  25987. bool IsFixedSize() const;
  25988. bool IsFixedWidth() const;
  25989. bool IsHovering() const;
  25990. bool IsInside(IntVector2, bool);
  25991. bool IsInsideCombined(IntVector2, bool);
  25992. bool IsInstanceOf(StringHash) const;
  25993. bool IsInternal() const;
  25994. bool IsSelected() const;
  25995. bool IsTemporary() const;
  25996. bool IsTiled() const;
  25997. bool IsVisible() const;
  25998. bool IsVisibleEffective() const;
  25999. bool IsWheelHandler() const;
  26000. bool IsWithinScissor(const IntRect&);
  26001. bool Load(Deserializer&);
  26002. UIElement LoadChildXML(XMLFile, XMLFile);
  26003. UIElement LoadChildXML(const XMLElement&, XMLFile);
  26004. bool LoadJSON(const JSONValue&);
  26005. bool LoadXML(Deserializer&);
  26006. bool LoadXML(File);
  26007. bool LoadXML(VectorBuffer&);
  26008. bool LoadXML(XMLFile, XMLFile);
  26009. bool LoadXML(const XMLElement&);
  26010. bool LoadXML(const XMLElement&, XMLFile);
  26011. void MarkNetworkUpdate();
  26012. operator Object() const;
  26013. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  26014. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  26015. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  26016. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  26017. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  26018. bool OnDragDropFinish(UIElement);
  26019. bool OnDragDropTest(UIElement);
  26020. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  26021. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  26022. void OnEvent(Object, StringHash, VariantMap&);
  26023. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26024. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  26025. void OnIndentSet();
  26026. void OnKey(uint, uint, uint);
  26027. void OnPositionSet(const IntVector2&);
  26028. void OnResize(const IntVector2&, const IntVector2&);
  26029. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26030. void OnSetEditable();
  26031. void OnTextInput(const String&);
  26032. void OnWheel(int, uint, uint);
  26033. bool ReadDeltaUpdate(Deserializer&);
  26034. bool ReadLatestDataUpdate(Deserializer&);
  26035. operator RefCounted() const;
  26036. int Refs() const;
  26037. void Remove();
  26038. void RemoveAllChildren();
  26039. void RemoveAllTags();
  26040. void RemoveAttributeAnimation(const String&);
  26041. void RemoveChild(UIElement, uint = 0);
  26042. void RemoveChild(uint);
  26043. void RemoveChildAtIndex(uint);
  26044. void RemoveInstanceDefault();
  26045. void RemoveObjectAnimation();
  26046. bool RemoveTag(const String&);
  26047. void ResetDeepEnabled();
  26048. void ResetToDefault();
  26049. bool Save(Serializer&) const;
  26050. bool SaveDefaultAttributes() const;
  26051. bool SaveJSON(JSONValue&) const;
  26052. bool SaveXML(File, const String& indentation = "\t");
  26053. bool SaveXML(Serializer&, const String& = "\t") const;
  26054. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  26055. bool SaveXML(XMLElement&) const;
  26056. IntVector2 ScreenToElement(const IntVector2&);
  26057. void SendEvent(StringHash);
  26058. void SendEvent(StringHash, VariantMap&);
  26059. operator Serializable() const;
  26060. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  26061. void SetAnimationEnabled(bool);
  26062. void SetAnimationTime(float);
  26063. bool SetAttribute(const String&, const Variant&);
  26064. bool SetAttribute(uint, const Variant&);
  26065. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26066. void SetAttributeAnimationSpeed(const String&, float);
  26067. void SetAttributeAnimationTime(const String&, float);
  26068. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26069. void SetBlendMode(BlendMode);
  26070. void SetBlockEvents(bool);
  26071. void SetBorder(const IntRect&);
  26072. void SetBringToBack(bool);
  26073. void SetBringToFront(bool);
  26074. void SetChildOffset(const IntVector2&);
  26075. void SetClipBorder(const IntRect&);
  26076. void SetClipChildren(bool);
  26077. void SetColor(Corner, const Color&);
  26078. void SetColor(const Color&);
  26079. void SetDeepEnabled(bool);
  26080. void SetDefaultStyle(XMLFile);
  26081. void SetDisabledOffset(const IntVector2&);
  26082. void SetDisabledOffset(int, int);
  26083. void SetDragDropMode(uint);
  26084. void SetEditable(bool);
  26085. void SetElementEventSender(bool);
  26086. void SetEnableAnchor(bool);
  26087. void SetEnabled(bool);
  26088. void SetEnabledRecursive(bool);
  26089. void SetFixedHeight(int);
  26090. void SetFixedSize(const IntVector2&);
  26091. void SetFixedSize(int, int);
  26092. void SetFixedWidth(int);
  26093. void SetFocus(bool);
  26094. void SetFocusMode(FocusMode);
  26095. void SetFullImageRect();
  26096. void SetGlobalVar(StringHash, const Variant&);
  26097. void SetHeight(int);
  26098. void SetHorizontalAlignment(HorizontalAlignment);
  26099. void SetHoverOffset(const IntVector2&);
  26100. void SetHoverOffset(int, int);
  26101. void SetHovering(bool);
  26102. void SetImageBorder(const IntRect&);
  26103. void SetImageRect(const IntRect&);
  26104. void SetIndent(int);
  26105. void SetIndentSpacing(int);
  26106. void SetInstanceDefault(bool);
  26107. void SetInterceptNetworkUpdate(const String&, bool);
  26108. void SetInternal(bool);
  26109. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  26110. void SetLayoutBorder(const IntRect&);
  26111. void SetLayoutFlexScale(const Vector2&);
  26112. void SetLayoutMode(LayoutMode);
  26113. void SetLayoutSpacing(int);
  26114. void SetMaterial(Material);
  26115. void SetMaterialAttr(const ResourceRef&);
  26116. void SetMaxAnchor(const Vector2&);
  26117. void SetMaxAnchor(float, float);
  26118. void SetMaxHeight(int);
  26119. void SetMaxOffset(const IntVector2&);
  26120. void SetMaxSize(const IntVector2&);
  26121. void SetMaxSize(int, int);
  26122. void SetMaxWidth(int);
  26123. void SetMinAnchor(const Vector2&);
  26124. void SetMinAnchor(float, float);
  26125. void SetMinHeight(int);
  26126. void SetMinOffset(const IntVector2&);
  26127. void SetMinSize(const IntVector2&);
  26128. void SetMinSize(int, int);
  26129. void SetMinWidth(int);
  26130. void SetName(const String&);
  26131. void SetObjectAnimation(ObjectAnimation);
  26132. void SetObjectAnimationAttr(const ResourceRef&);
  26133. void SetOpacity(float);
  26134. void SetOrientation(Orientation);
  26135. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  26136. void SetPivot(const Vector2&);
  26137. void SetPivot(float, float);
  26138. void SetPosition(const IntVector2&);
  26139. void SetPosition(int, int);
  26140. void SetPriority(int);
  26141. void SetRange(float);
  26142. void SetRenderTexture(Texture2D);
  26143. void SetRepeatRate(float);
  26144. void SetSelected(bool);
  26145. void SetSize(const IntVector2&);
  26146. void SetSize(int, int);
  26147. void SetSortChildren(bool);
  26148. bool SetStyle(const String&, XMLFile = null);
  26149. bool SetStyle(const XMLElement&);
  26150. bool SetStyleAuto(XMLFile = null);
  26151. void SetTags(Array<String>);
  26152. void SetTemporary(bool);
  26153. void SetTexture(Texture);
  26154. void SetTextureAttr(const ResourceRef&);
  26155. void SetTiled(bool);
  26156. void SetTraversalMode(TraversalMode);
  26157. void SetUseDerivedOpacity(bool);
  26158. void SetValue(float);
  26159. void SetVar(StringHash, const Variant&);
  26160. void SetVerticalAlignment(VerticalAlignment);
  26161. void SetVisible(bool);
  26162. void SetWidth(int);
  26163. void SortChildren();
  26164. const String& GetAppliedStyle() const;
  26165. const String& GetCategory() const;
  26166. const String& GetName() const;
  26167. const String& GetTypeName() const;
  26168. operator UIElement() const;
  26169. void UnsubscribeFromAllEvents();
  26170. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26171. void UnsubscribeFromEvent(Object, StringHash);
  26172. void UnsubscribeFromEvent(StringHash);
  26173. void UnsubscribeFromEvents(Object);
  26174. void Update(float);
  26175. void UpdateLayout();
  26176. const Variant& GetGlobalVar(StringHash) const;
  26177. const Variant& GetVar(const StringHash&) const;
  26178. const VariantMap& GetGlobalVars() const;
  26179. const VariantMap& GetVars() const;
  26180. const Vector2& GetLayoutFlexScale() const;
  26181. const Vector2& GetMaxAnchor() const;
  26182. const Vector2& GetMinAnchor() const;
  26183. const Vector2& GetPivot() const;
  26184. int WeakRefs() const;
  26185. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26186. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26187. void WriteLatestDataUpdate(Serializer&, uint8);
  26188. operator const Animatable() const;
  26189. operator const BorderImage() const;
  26190. operator const Object() const;
  26191. operator const RefCounted() const;
  26192. operator const Serializable() const;
  26193. operator const UIElement() const;
  26194. // Properties:
  26195. bool animationEnabled;
  26196. /* readonly */
  26197. Array<Variant> attributeDefaults;
  26198. /* readonly */
  26199. Array<AttributeInfo> attributeInfos;
  26200. Array<Variant> attributes;
  26201. BlendMode blendMode;
  26202. IntRect border;
  26203. bool bringToBack;
  26204. bool bringToFront;
  26205. /* readonly */
  26206. String category;
  26207. /* readonly */
  26208. IntVector2 childOffset;
  26209. /* readonly */
  26210. Array<UIElement> children;
  26211. IntRect clipBorder;
  26212. bool clipChildren;
  26213. /* writeonly */
  26214. Color color;
  26215. /* readonly */
  26216. bool colorGradient;
  26217. Array<Color> colors;
  26218. /* readonly */
  26219. IntRect combinedScreenRect;
  26220. XMLFile defaultStyle;
  26221. /* readonly */
  26222. float derivedOpacity;
  26223. IntVector2 disabledOffset;
  26224. /* readonly */
  26225. uint dragButtonCombo;
  26226. /* readonly */
  26227. uint dragButtonCount;
  26228. uint dragDropMode;
  26229. bool editable;
  26230. bool elementEventSender;
  26231. bool enableAnchor;
  26232. bool enabled;
  26233. /* readonly */
  26234. bool enabledSelf;
  26235. /* readonly */
  26236. bool fixedHeight;
  26237. /* readonly */
  26238. bool fixedSize;
  26239. /* readonly */
  26240. bool fixedWidth;
  26241. bool focus;
  26242. FocusMode focusMode;
  26243. Array<Variant> globalVar;
  26244. /* readonly */
  26245. VariantMap globalVars;
  26246. int height;
  26247. HorizontalAlignment horizontalAlignment;
  26248. IntVector2 hoverOffset;
  26249. /* readonly */
  26250. bool hovering;
  26251. IntRect imageBorder;
  26252. IntRect imageRect;
  26253. int indent;
  26254. int indentSpacing;
  26255. /* readonly */
  26256. int indentWidth;
  26257. bool internal;
  26258. /* readonly */
  26259. BorderImage knob;
  26260. IntRect layoutBorder;
  26261. Vector2 layoutFlexScale;
  26262. LayoutMode layoutMode;
  26263. int layoutSpacing;
  26264. Material material;
  26265. Vector2 maxAnchor;
  26266. int maxHeight;
  26267. IntVector2 maxOffset;
  26268. IntVector2 maxSize;
  26269. int maxWidth;
  26270. Vector2 minAnchor;
  26271. int minHeight;
  26272. IntVector2 minOffset;
  26273. IntVector2 minSize;
  26274. int minWidth;
  26275. String name;
  26276. /* readonly */
  26277. uint numAllChildren;
  26278. /* readonly */
  26279. uint numAttributes;
  26280. /* readonly */
  26281. uint numChildren;
  26282. ObjectAnimation objectAnimation;
  26283. float opacity;
  26284. Orientation orientation;
  26285. UIElement parent;
  26286. Vector2 pivot;
  26287. IntVector2 position;
  26288. int priority;
  26289. float range;
  26290. /* readonly */
  26291. int refs;
  26292. float repeatRate;
  26293. /* readonly */
  26294. UIElement root;
  26295. /* readonly */
  26296. IntVector2 screenPosition;
  26297. bool selected;
  26298. IntVector2 size;
  26299. bool sortChildren;
  26300. String style;
  26301. /* readonly */
  26302. Array<String> tags;
  26303. bool temporary;
  26304. Texture texture;
  26305. bool tiled;
  26306. TraversalMode traversalMode;
  26307. /* readonly */
  26308. StringHash type;
  26309. /* readonly */
  26310. String typeName;
  26311. bool useDerivedOpacity;
  26312. float value;
  26313. /* readonly */
  26314. VariantMap vars;
  26315. VerticalAlignment verticalAlignment;
  26316. bool visible;
  26317. /* readonly */
  26318. bool visibleEffective;
  26319. /* readonly */
  26320. int weakRefs;
  26321. int width;
  26322. };
  26323. class SmoothedTransform
  26324. {
  26325. public:
  26326. SmoothedTransform();
  26327. // Methods:
  26328. void AllocateNetworkState();
  26329. operator Animatable() const;
  26330. void ApplyAttributes();
  26331. void CleanupConnection(Connection);
  26332. operator Component() const;
  26333. void DrawDebugGeometry(DebugRenderer, bool);
  26334. bool GetAnimationEnabled() const;
  26335. Variant GetAttribute(const String&) const;
  26336. Variant GetAttribute(uint) const;
  26337. ValueAnimation GetAttributeAnimation(const String&) const;
  26338. float GetAttributeAnimationSpeed(const String&) const;
  26339. float GetAttributeAnimationTime(const String&) const;
  26340. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26341. Variant GetAttributeDefault(const String&) const;
  26342. Variant GetAttributeDefault(uint) const;
  26343. bool GetBlockEvents() const;
  26344. Component GetComponent(StringHash) const;
  26345. VariantMap& GetEventDataMap() const;
  26346. Object GetEventSender() const;
  26347. uint GetID() const;
  26348. bool GetInterceptNetworkUpdate(const String&) const;
  26349. Node GetNode() const;
  26350. uint GetNumAttributes() const;
  26351. uint GetNumNetworkAttributes() const;
  26352. ObjectAnimation GetObjectAnimation() const;
  26353. ResourceRef GetObjectAnimationAttr() const;
  26354. Scene GetScene() const;
  26355. Object GetSubsystem(StringHash) const;
  26356. Vector3 GetTargetWorldPosition() const;
  26357. Quaternion GetTargetWorldRotation() const;
  26358. StringHash GetType() const;
  26359. bool HasEventHandlers() const;
  26360. bool HasSubscribedToEvent(Object, StringHash) const;
  26361. bool HasSubscribedToEvent(StringHash) const;
  26362. bool IsEnabled() const;
  26363. bool IsEnabledEffective() const;
  26364. bool IsInProgress() const;
  26365. bool IsInstanceOf(StringHash) const;
  26366. bool IsReplicated() const;
  26367. bool IsTemporary() const;
  26368. bool Load(Deserializer&);
  26369. bool LoadJSON(const JSONValue&);
  26370. bool LoadXML(const XMLElement&);
  26371. void MarkNetworkUpdate();
  26372. operator Object() const;
  26373. void OnEvent(Object, StringHash, VariantMap&);
  26374. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26375. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26376. void OnSetEnabled();
  26377. void PrepareNetworkUpdate();
  26378. const Quaternion& GetTargetRotation() const;
  26379. bool ReadDeltaUpdate(Deserializer&);
  26380. bool ReadLatestDataUpdate(Deserializer&);
  26381. operator RefCounted() const;
  26382. int Refs() const;
  26383. void Remove();
  26384. void RemoveAttributeAnimation(const String&);
  26385. void RemoveInstanceDefault();
  26386. void RemoveObjectAnimation();
  26387. void ResetToDefault();
  26388. bool Save(Serializer&) const;
  26389. bool SaveDefaultAttributes() const;
  26390. bool SaveJSON(JSONValue&) const;
  26391. bool SaveXML(XMLElement&) const;
  26392. void SendEvent(StringHash);
  26393. void SendEvent(StringHash, VariantMap&);
  26394. operator Serializable() const;
  26395. void SetAnimationEnabled(bool);
  26396. void SetAnimationTime(float);
  26397. bool SetAttribute(const String&, const Variant&);
  26398. bool SetAttribute(uint, const Variant&);
  26399. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26400. void SetAttributeAnimationSpeed(const String&, float);
  26401. void SetAttributeAnimationTime(const String&, float);
  26402. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26403. void SetBlockEvents(bool);
  26404. void SetEnabled(bool);
  26405. void SetGlobalVar(StringHash, const Variant&);
  26406. void SetInstanceDefault(bool);
  26407. void SetInterceptNetworkUpdate(const String&, bool);
  26408. void SetObjectAnimation(ObjectAnimation);
  26409. void SetObjectAnimationAttr(const ResourceRef&);
  26410. void SetTargetPosition(const Vector3&);
  26411. void SetTargetRotation(const Quaternion&);
  26412. void SetTargetWorldPosition(const Vector3&);
  26413. void SetTargetWorldRotation(const Quaternion&);
  26414. void SetTemporary(bool);
  26415. const String& GetCategory() const;
  26416. const String& GetTypeName() const;
  26417. void UnsubscribeFromAllEvents();
  26418. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26419. void UnsubscribeFromEvent(Object, StringHash);
  26420. void UnsubscribeFromEvent(StringHash);
  26421. void UnsubscribeFromEvents(Object);
  26422. void Update(float, float);
  26423. const Variant& GetGlobalVar(StringHash) const;
  26424. const VariantMap& GetGlobalVars() const;
  26425. const Vector3& GetTargetPosition() const;
  26426. int WeakRefs() const;
  26427. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26428. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26429. void WriteLatestDataUpdate(Serializer&, uint8);
  26430. operator const Animatable() const;
  26431. operator const Component() const;
  26432. operator const Object() const;
  26433. operator const RefCounted() const;
  26434. operator const Serializable() const;
  26435. // Properties:
  26436. bool animationEnabled;
  26437. /* readonly */
  26438. Array<Variant> attributeDefaults;
  26439. /* readonly */
  26440. Array<AttributeInfo> attributeInfos;
  26441. Array<Variant> attributes;
  26442. /* readonly */
  26443. String category;
  26444. bool enabled;
  26445. /* readonly */
  26446. bool enabledEffective;
  26447. Array<Variant> globalVar;
  26448. /* readonly */
  26449. VariantMap globalVars;
  26450. /* readonly */
  26451. uint id;
  26452. /* readonly */
  26453. bool inProgress;
  26454. /* readonly */
  26455. Node node;
  26456. /* readonly */
  26457. uint numAttributes;
  26458. ObjectAnimation objectAnimation;
  26459. /* readonly */
  26460. int refs;
  26461. /* readonly */
  26462. bool replicated;
  26463. Vector3 targetPosition;
  26464. Quaternion targetRotation;
  26465. Vector3 targetWorldPosition;
  26466. Quaternion targetWorldRotation;
  26467. bool temporary;
  26468. /* readonly */
  26469. StringHash type;
  26470. /* readonly */
  26471. String typeName;
  26472. /* readonly */
  26473. int weakRefs;
  26474. };
  26475. class Sound
  26476. {
  26477. public:
  26478. Sound();
  26479. // Methods:
  26480. void AddMetadata(const String&, const Variant&);
  26481. bool BeginLoad(Deserializer&);
  26482. bool EndLoad();
  26483. void FixInterpolation();
  26484. AsyncLoadState GetAsyncLoadState() const;
  26485. bool GetBlockEvents() const;
  26486. uint GetDataSize() const;
  26487. SoundStream GetDecoderStream() const;
  26488. VariantMap& GetEventDataMap() const;
  26489. Object GetEventSender() const;
  26490. float GetFrequency() const;
  26491. uint GetIntFrequency() const;
  26492. float GetLength() const;
  26493. uint GetMemoryUse() const;
  26494. StringHash GetNameHash() const;
  26495. uint GetSampleSize() const;
  26496. Object GetSubsystem(StringHash) const;
  26497. StringHash GetType() const;
  26498. uint GetUseTimer();
  26499. bool HasEventHandlers() const;
  26500. bool HasMetadata() const;
  26501. bool HasSubscribedToEvent(Object, StringHash) const;
  26502. bool HasSubscribedToEvent(StringHash) const;
  26503. bool IsCompressed() const;
  26504. bool IsInstanceOf(StringHash) const;
  26505. bool IsLooped() const;
  26506. bool IsSixteenBit() const;
  26507. bool IsStereo() const;
  26508. bool Load(Deserializer&);
  26509. bool Load(File);
  26510. bool Load(VectorBuffer&);
  26511. bool Load(const String&);
  26512. bool LoadFile(const String&);
  26513. bool LoadOggVorbis(Deserializer&);
  26514. bool LoadRaw(Deserializer&);
  26515. bool LoadWav(Deserializer&);
  26516. operator Object() const;
  26517. void OnEvent(Object, StringHash, VariantMap&);
  26518. operator RefCounted() const;
  26519. int Refs() const;
  26520. void RemoveAllMetadata();
  26521. void RemoveMetadata(const String&);
  26522. void ResetUseTimer();
  26523. operator Resource() const;
  26524. operator ResourceWithMetadata() const;
  26525. bool Save(File) const;
  26526. bool Save(Serializer&) const;
  26527. bool Save(VectorBuffer&) const;
  26528. bool Save(const String&) const;
  26529. bool SaveFile(const String&) const;
  26530. void SendEvent(StringHash);
  26531. void SendEvent(StringHash, VariantMap&);
  26532. void SetAsyncLoadState(AsyncLoadState);
  26533. void SetBlockEvents(bool);
  26534. void SetFormat(uint, bool, bool);
  26535. void SetGlobalVar(StringHash, const Variant&);
  26536. void SetLoop(uint, uint);
  26537. void SetLooped(bool);
  26538. void SetMemoryUse(uint);
  26539. void SetName(const String&);
  26540. void SetSize(uint);
  26541. const String& GetCategory() const;
  26542. const String& GetName() const;
  26543. const String& GetTypeName() const;
  26544. void UnsubscribeFromAllEvents();
  26545. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26546. void UnsubscribeFromEvent(Object, StringHash);
  26547. void UnsubscribeFromEvent(StringHash);
  26548. void UnsubscribeFromEvents(Object);
  26549. const Variant& GetGlobalVar(StringHash) const;
  26550. const Variant& GetMetadata(const String&) const;
  26551. const VariantMap& GetGlobalVars() const;
  26552. int WeakRefs() const;
  26553. operator const Object() const;
  26554. operator const RefCounted() const;
  26555. operator const Resource() const;
  26556. operator const ResourceWithMetadata() const;
  26557. // Properties:
  26558. /* readonly */
  26559. String category;
  26560. /* readonly */
  26561. bool compressed;
  26562. /* readonly */
  26563. float frequency;
  26564. Array<Variant> globalVar;
  26565. /* readonly */
  26566. VariantMap globalVars;
  26567. /* readonly */
  26568. bool hasMetadata;
  26569. /* readonly */
  26570. float length;
  26571. bool looped;
  26572. /* readonly */
  26573. uint memoryUse;
  26574. Array<Variant> metadata;
  26575. String name;
  26576. /* readonly */
  26577. int refs;
  26578. /* readonly */
  26579. uint sampleSize;
  26580. /* readonly */
  26581. bool sixteenBit;
  26582. /* readonly */
  26583. bool stereo;
  26584. /* readonly */
  26585. StringHash type;
  26586. /* readonly */
  26587. String typeName;
  26588. /* readonly */
  26589. uint useTimer;
  26590. /* readonly */
  26591. int weakRefs;
  26592. };
  26593. class SoundListener
  26594. {
  26595. public:
  26596. SoundListener();
  26597. // Methods:
  26598. void AllocateNetworkState();
  26599. operator Animatable() const;
  26600. void ApplyAttributes();
  26601. void CleanupConnection(Connection);
  26602. operator Component() const;
  26603. void DrawDebugGeometry(DebugRenderer, bool);
  26604. bool GetAnimationEnabled() const;
  26605. Variant GetAttribute(const String&) const;
  26606. Variant GetAttribute(uint) const;
  26607. ValueAnimation GetAttributeAnimation(const String&) const;
  26608. float GetAttributeAnimationSpeed(const String&) const;
  26609. float GetAttributeAnimationTime(const String&) const;
  26610. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26611. Variant GetAttributeDefault(const String&) const;
  26612. Variant GetAttributeDefault(uint) const;
  26613. bool GetBlockEvents() const;
  26614. Component GetComponent(StringHash) const;
  26615. VariantMap& GetEventDataMap() const;
  26616. Object GetEventSender() const;
  26617. uint GetID() const;
  26618. bool GetInterceptNetworkUpdate(const String&) const;
  26619. Node GetNode() const;
  26620. uint GetNumAttributes() const;
  26621. uint GetNumNetworkAttributes() const;
  26622. ObjectAnimation GetObjectAnimation() const;
  26623. ResourceRef GetObjectAnimationAttr() const;
  26624. Scene GetScene() const;
  26625. Object GetSubsystem(StringHash) const;
  26626. StringHash GetType() const;
  26627. bool HasEventHandlers() const;
  26628. bool HasSubscribedToEvent(Object, StringHash) const;
  26629. bool HasSubscribedToEvent(StringHash) const;
  26630. bool IsEnabled() const;
  26631. bool IsEnabledEffective() const;
  26632. bool IsInstanceOf(StringHash) const;
  26633. bool IsReplicated() const;
  26634. bool IsTemporary() const;
  26635. bool Load(Deserializer&);
  26636. bool LoadJSON(const JSONValue&);
  26637. bool LoadXML(const XMLElement&);
  26638. void MarkNetworkUpdate();
  26639. operator Object() const;
  26640. void OnEvent(Object, StringHash, VariantMap&);
  26641. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26642. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26643. void OnSetEnabled();
  26644. void PrepareNetworkUpdate();
  26645. bool ReadDeltaUpdate(Deserializer&);
  26646. bool ReadLatestDataUpdate(Deserializer&);
  26647. operator RefCounted() const;
  26648. int Refs() const;
  26649. void Remove();
  26650. void RemoveAttributeAnimation(const String&);
  26651. void RemoveInstanceDefault();
  26652. void RemoveObjectAnimation();
  26653. void ResetToDefault();
  26654. bool Save(Serializer&) const;
  26655. bool SaveDefaultAttributes() const;
  26656. bool SaveJSON(JSONValue&) const;
  26657. bool SaveXML(XMLElement&) const;
  26658. void SendEvent(StringHash);
  26659. void SendEvent(StringHash, VariantMap&);
  26660. operator Serializable() const;
  26661. void SetAnimationEnabled(bool);
  26662. void SetAnimationTime(float);
  26663. bool SetAttribute(const String&, const Variant&);
  26664. bool SetAttribute(uint, const Variant&);
  26665. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26666. void SetAttributeAnimationSpeed(const String&, float);
  26667. void SetAttributeAnimationTime(const String&, float);
  26668. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26669. void SetBlockEvents(bool);
  26670. void SetEnabled(bool);
  26671. void SetGlobalVar(StringHash, const Variant&);
  26672. void SetInstanceDefault(bool);
  26673. void SetInterceptNetworkUpdate(const String&, bool);
  26674. void SetObjectAnimation(ObjectAnimation);
  26675. void SetObjectAnimationAttr(const ResourceRef&);
  26676. void SetTemporary(bool);
  26677. const String& GetCategory() const;
  26678. const String& GetTypeName() const;
  26679. void UnsubscribeFromAllEvents();
  26680. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26681. void UnsubscribeFromEvent(Object, StringHash);
  26682. void UnsubscribeFromEvent(StringHash);
  26683. void UnsubscribeFromEvents(Object);
  26684. const Variant& GetGlobalVar(StringHash) const;
  26685. const VariantMap& GetGlobalVars() const;
  26686. int WeakRefs() const;
  26687. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26688. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26689. void WriteLatestDataUpdate(Serializer&, uint8);
  26690. operator const Animatable() const;
  26691. operator const Component() const;
  26692. operator const Object() const;
  26693. operator const RefCounted() const;
  26694. operator const Serializable() const;
  26695. // Properties:
  26696. bool animationEnabled;
  26697. /* readonly */
  26698. Array<Variant> attributeDefaults;
  26699. /* readonly */
  26700. Array<AttributeInfo> attributeInfos;
  26701. Array<Variant> attributes;
  26702. /* readonly */
  26703. String category;
  26704. bool enabled;
  26705. /* readonly */
  26706. bool enabledEffective;
  26707. Array<Variant> globalVar;
  26708. /* readonly */
  26709. VariantMap globalVars;
  26710. /* readonly */
  26711. uint id;
  26712. /* readonly */
  26713. Node node;
  26714. /* readonly */
  26715. uint numAttributes;
  26716. ObjectAnimation objectAnimation;
  26717. /* readonly */
  26718. int refs;
  26719. /* readonly */
  26720. bool replicated;
  26721. bool temporary;
  26722. /* readonly */
  26723. StringHash type;
  26724. /* readonly */
  26725. String typeName;
  26726. /* readonly */
  26727. int weakRefs;
  26728. };
  26729. class SoundSource
  26730. {
  26731. public:
  26732. SoundSource();
  26733. // Methods:
  26734. void AllocateNetworkState();
  26735. operator Animatable() const;
  26736. void ApplyAttributes();
  26737. void CleanupConnection(Connection);
  26738. operator Component() const;
  26739. void DrawDebugGeometry(DebugRenderer, bool);
  26740. bool GetAnimationEnabled() const;
  26741. float GetAttenuation() const;
  26742. Variant GetAttribute(const String&) const;
  26743. Variant GetAttribute(uint) const;
  26744. ValueAnimation GetAttributeAnimation(const String&) const;
  26745. float GetAttributeAnimationSpeed(const String&) const;
  26746. float GetAttributeAnimationTime(const String&) const;
  26747. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26748. Variant GetAttributeDefault(const String&) const;
  26749. Variant GetAttributeDefault(uint) const;
  26750. AutoRemoveMode GetAutoRemoveMode() const;
  26751. bool GetBlockEvents() const;
  26752. Component GetComponent(StringHash) const;
  26753. VariantMap& GetEventDataMap() const;
  26754. Object GetEventSender() const;
  26755. float GetFrequency() const;
  26756. float GetGain() const;
  26757. uint GetID() const;
  26758. bool GetInterceptNetworkUpdate(const String&) const;
  26759. Node GetNode() const;
  26760. uint GetNumAttributes() const;
  26761. uint GetNumNetworkAttributes() const;
  26762. ObjectAnimation GetObjectAnimation() const;
  26763. ResourceRef GetObjectAnimationAttr() const;
  26764. float GetPanning() const;
  26765. int GetPositionAttr() const;
  26766. Scene GetScene() const;
  26767. Sound GetSound() const;
  26768. ResourceRef GetSoundAttr() const;
  26769. String GetSoundType() const;
  26770. Object GetSubsystem(StringHash) const;
  26771. float GetTimePosition() const;
  26772. StringHash GetType() const;
  26773. bool HasEventHandlers() const;
  26774. bool HasSubscribedToEvent(Object, StringHash) const;
  26775. bool HasSubscribedToEvent(StringHash) const;
  26776. bool IsEnabled() const;
  26777. bool IsEnabledEffective() const;
  26778. bool IsInstanceOf(StringHash) const;
  26779. bool IsPlaying() const;
  26780. bool IsReplicated() const;
  26781. bool IsTemporary() const;
  26782. bool Load(Deserializer&);
  26783. bool LoadJSON(const JSONValue&);
  26784. bool LoadXML(const XMLElement&);
  26785. void MarkNetworkUpdate();
  26786. operator Object() const;
  26787. void OnEvent(Object, StringHash, VariantMap&);
  26788. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26789. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26790. void OnSetEnabled();
  26791. void Play(Sound);
  26792. void Play(Sound, float);
  26793. void Play(Sound, float, float);
  26794. void Play(Sound, float, float, float);
  26795. void Play(SoundStream);
  26796. void PrepareNetworkUpdate();
  26797. bool ReadDeltaUpdate(Deserializer&);
  26798. bool ReadLatestDataUpdate(Deserializer&);
  26799. operator RefCounted() const;
  26800. int Refs() const;
  26801. void Remove();
  26802. void RemoveAttributeAnimation(const String&);
  26803. void RemoveInstanceDefault();
  26804. void RemoveObjectAnimation();
  26805. void ResetToDefault();
  26806. bool Save(Serializer&) const;
  26807. bool SaveDefaultAttributes() const;
  26808. bool SaveJSON(JSONValue&) const;
  26809. bool SaveXML(XMLElement&) const;
  26810. void Seek(float);
  26811. void SendEvent(StringHash);
  26812. void SendEvent(StringHash, VariantMap&);
  26813. operator Serializable() const;
  26814. void SetAnimationEnabled(bool);
  26815. void SetAnimationTime(float);
  26816. void SetAttenuation(float);
  26817. bool SetAttribute(const String&, const Variant&);
  26818. bool SetAttribute(uint, const Variant&);
  26819. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26820. void SetAttributeAnimationSpeed(const String&, float);
  26821. void SetAttributeAnimationTime(const String&, float);
  26822. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26823. void SetAutoRemoveMode(AutoRemoveMode);
  26824. void SetBlockEvents(bool);
  26825. void SetEnabled(bool);
  26826. void SetFrequency(float);
  26827. void SetGain(float);
  26828. void SetGlobalVar(StringHash, const Variant&);
  26829. void SetInstanceDefault(bool);
  26830. void SetInterceptNetworkUpdate(const String&, bool);
  26831. void SetObjectAnimation(ObjectAnimation);
  26832. void SetObjectAnimationAttr(const ResourceRef&);
  26833. void SetPanning(float);
  26834. void SetPlayingAttr(bool);
  26835. void SetPositionAttr(int);
  26836. void SetSoundAttr(const ResourceRef&);
  26837. void SetSoundType(const String&);
  26838. void SetTemporary(bool);
  26839. operator SoundSource3D() const;
  26840. void Stop();
  26841. const String& GetCategory() const;
  26842. const String& GetTypeName() const;
  26843. void UnsubscribeFromAllEvents();
  26844. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26845. void UnsubscribeFromEvent(Object, StringHash);
  26846. void UnsubscribeFromEvent(StringHash);
  26847. void UnsubscribeFromEvents(Object);
  26848. void Update(float);
  26849. void UpdateMasterGain();
  26850. const Variant& GetGlobalVar(StringHash) const;
  26851. const VariantMap& GetGlobalVars() const;
  26852. int WeakRefs() const;
  26853. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26854. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26855. void WriteLatestDataUpdate(Serializer&, uint8);
  26856. operator const Animatable() const;
  26857. operator const Component() const;
  26858. operator const Object() const;
  26859. operator const RefCounted() const;
  26860. operator const Serializable() const;
  26861. operator const SoundSource3D() const;
  26862. // Properties:
  26863. bool animationEnabled;
  26864. /* readonly */
  26865. float attenuation;
  26866. /* readonly */
  26867. Array<Variant> attributeDefaults;
  26868. /* readonly */
  26869. Array<AttributeInfo> attributeInfos;
  26870. Array<Variant> attributes;
  26871. AutoRemoveMode autoRemoveMode;
  26872. /* readonly */
  26873. String category;
  26874. bool enabled;
  26875. /* readonly */
  26876. bool enabledEffective;
  26877. float frequency;
  26878. float gain;
  26879. Array<Variant> globalVar;
  26880. /* readonly */
  26881. VariantMap globalVars;
  26882. /* readonly */
  26883. uint id;
  26884. /* readonly */
  26885. Node node;
  26886. /* readonly */
  26887. uint numAttributes;
  26888. ObjectAnimation objectAnimation;
  26889. float panning;
  26890. /* readonly */
  26891. bool playing;
  26892. /* readonly */
  26893. int refs;
  26894. /* readonly */
  26895. bool replicated;
  26896. /* readonly */
  26897. Sound sound;
  26898. String soundType;
  26899. bool temporary;
  26900. /* readonly */
  26901. float timePosition;
  26902. /* readonly */
  26903. StringHash type;
  26904. /* readonly */
  26905. String typeName;
  26906. /* readonly */
  26907. int weakRefs;
  26908. };
  26909. class SoundSource3D
  26910. {
  26911. public:
  26912. SoundSource3D();
  26913. // Methods:
  26914. void AllocateNetworkState();
  26915. operator Animatable() const;
  26916. void ApplyAttributes();
  26917. void CalculateAttenuation();
  26918. void CleanupConnection(Connection);
  26919. operator Component() const;
  26920. void DrawDebugGeometry(DebugRenderer, bool);
  26921. bool GetAnimationEnabled() const;
  26922. float GetAttenuation() const;
  26923. Variant GetAttribute(const String&) const;
  26924. Variant GetAttribute(uint) const;
  26925. ValueAnimation GetAttributeAnimation(const String&) const;
  26926. float GetAttributeAnimationSpeed(const String&) const;
  26927. float GetAttributeAnimationTime(const String&) const;
  26928. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26929. Variant GetAttributeDefault(const String&) const;
  26930. Variant GetAttributeDefault(uint) const;
  26931. AutoRemoveMode GetAutoRemoveMode() const;
  26932. bool GetBlockEvents() const;
  26933. Component GetComponent(StringHash) const;
  26934. VariantMap& GetEventDataMap() const;
  26935. Object GetEventSender() const;
  26936. float GetFarDistance() const;
  26937. float GetFrequency() const;
  26938. float GetGain() const;
  26939. uint GetID() const;
  26940. float GetInnerAngle() const;
  26941. bool GetInterceptNetworkUpdate(const String&) const;
  26942. float GetNearDistance() const;
  26943. Node GetNode() const;
  26944. uint GetNumAttributes() const;
  26945. uint GetNumNetworkAttributes() const;
  26946. ObjectAnimation GetObjectAnimation() const;
  26947. ResourceRef GetObjectAnimationAttr() const;
  26948. float GetOuterAngle() const;
  26949. float GetPanning() const;
  26950. int GetPositionAttr() const;
  26951. Scene GetScene() const;
  26952. Sound GetSound() const;
  26953. ResourceRef GetSoundAttr() const;
  26954. String GetSoundType() const;
  26955. Object GetSubsystem(StringHash) const;
  26956. float GetTimePosition() const;
  26957. StringHash GetType() const;
  26958. bool HasEventHandlers() const;
  26959. bool HasSubscribedToEvent(Object, StringHash) const;
  26960. bool HasSubscribedToEvent(StringHash) const;
  26961. bool IsEnabled() const;
  26962. bool IsEnabledEffective() const;
  26963. bool IsInstanceOf(StringHash) const;
  26964. bool IsPlaying() const;
  26965. bool IsReplicated() const;
  26966. bool IsTemporary() const;
  26967. bool Load(Deserializer&);
  26968. bool LoadJSON(const JSONValue&);
  26969. bool LoadXML(const XMLElement&);
  26970. void MarkNetworkUpdate();
  26971. operator Object() const;
  26972. void OnEvent(Object, StringHash, VariantMap&);
  26973. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26974. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26975. void OnSetEnabled();
  26976. void Play(Sound);
  26977. void Play(Sound, float);
  26978. void Play(Sound, float, float);
  26979. void Play(Sound, float, float, float);
  26980. void Play(SoundStream);
  26981. void PrepareNetworkUpdate();
  26982. bool ReadDeltaUpdate(Deserializer&);
  26983. bool ReadLatestDataUpdate(Deserializer&);
  26984. operator RefCounted() const;
  26985. int Refs() const;
  26986. void Remove();
  26987. void RemoveAttributeAnimation(const String&);
  26988. void RemoveInstanceDefault();
  26989. void RemoveObjectAnimation();
  26990. void ResetToDefault();
  26991. float RollAngleoffFactor() const;
  26992. bool Save(Serializer&) const;
  26993. bool SaveDefaultAttributes() const;
  26994. bool SaveJSON(JSONValue&) const;
  26995. bool SaveXML(XMLElement&) const;
  26996. void Seek(float);
  26997. void SendEvent(StringHash);
  26998. void SendEvent(StringHash, VariantMap&);
  26999. operator Serializable() const;
  27000. void SetAngleAttenuation(float, float);
  27001. void SetAnimationEnabled(bool);
  27002. void SetAnimationTime(float);
  27003. void SetAttenuation(float);
  27004. bool SetAttribute(const String&, const Variant&);
  27005. bool SetAttribute(uint, const Variant&);
  27006. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  27007. void SetAttributeAnimationSpeed(const String&, float);
  27008. void SetAttributeAnimationTime(const String&, float);
  27009. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  27010. void SetAutoRemoveMode(AutoRemoveMode);
  27011. void SetBlockEvents(bool);
  27012. void SetDistanceAttenuation(float, float, float);
  27013. void SetEnabled(bool);
  27014. void SetFarDistance(float);
  27015. void SetFrequency(float);
  27016. void SetGain(float);
  27017. void SetGlobalVar(StringHash, const Variant&);
  27018. void SetInnerAngle(float);
  27019. void SetInstanceDefault(bool);
  27020. void SetInterceptNetworkUpdate(const String&, bool);
  27021. void SetNearDistance(float);
  27022. void SetObjectAnimation(ObjectAnimation);
  27023. void SetObjectAnimationAttr(const ResourceRef&);
  27024. void SetOuterAngle(float);
  27025. void SetPanning(float);
  27026. void SetPlayingAttr(bool);
  27027. void SetPositionAttr(int);
  27028. void SetRolloffFactor(float);
  27029. void SetSoundAttr(const ResourceRef&);
  27030. void SetSoundType(const String&);
  27031. void SetTemporary(bool);
  27032. operator SoundSource() const;
  27033. void Stop();
  27034. const String& GetCategory() const;
  27035. const String& GetTypeName() const;
  27036. void UnsubscribeFromAllEvents();
  27037. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27038. void UnsubscribeFromEvent(Object, StringHash);
  27039. void UnsubscribeFromEvent(StringHash);
  27040. void UnsubscribeFromEvents(Object);
  27041. void Update(float);
  27042. void UpdateMasterGain();
  27043. const Variant& GetGlobalVar(StringHash) const;
  27044. const VariantMap& GetGlobalVars() const;
  27045. int WeakRefs() const;
  27046. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  27047. void WriteInitialDeltaUpdate(Serializer&, uint8);
  27048. void WriteLatestDataUpdate(Serializer&, uint8);
  27049. operator const Animatable() const;
  27050. operator const Component() const;
  27051. operator const Object() const;
  27052. operator const RefCounted() const;
  27053. operator const Serializable() const;
  27054. operator const SoundSource() const;
  27055. // Properties:
  27056. bool animationEnabled;
  27057. /* readonly */
  27058. float attenuation;
  27059. /* readonly */
  27060. Array<Variant> attributeDefaults;
  27061. /* readonly */
  27062. Array<AttributeInfo> attributeInfos;
  27063. Array<Variant> attributes;
  27064. AutoRemoveMode autoRemoveMode;
  27065. /* readonly */
  27066. String category;
  27067. bool enabled;
  27068. /* readonly */
  27069. bool enabledEffective;
  27070. float farDistance;
  27071. float frequency;
  27072. float gain;
  27073. Array<Variant> globalVar;
  27074. /* readonly */
  27075. VariantMap globalVars;
  27076. /* readonly */
  27077. uint id;
  27078. float innerAngle;
  27079. float nearDistance;
  27080. /* readonly */
  27081. Node node;
  27082. /* readonly */
  27083. uint numAttributes;
  27084. ObjectAnimation objectAnimation;
  27085. float outerAngle;
  27086. float panning;
  27087. /* readonly */
  27088. bool playing;
  27089. /* readonly */
  27090. int refs;
  27091. /* readonly */
  27092. bool replicated;
  27093. float rolloffFactor;
  27094. /* readonly */
  27095. Sound sound;
  27096. String soundType;
  27097. bool temporary;
  27098. /* readonly */
  27099. float timePosition;
  27100. /* readonly */
  27101. StringHash type;
  27102. /* readonly */
  27103. String typeName;
  27104. /* readonly */
  27105. int weakRefs;
  27106. };
  27107. class SoundStream
  27108. {
  27109. public:
  27110. // Methods:
  27111. operator BufferedSoundStream() const;
  27112. float GetFrequency() const;
  27113. uint GetIntFrequency() const;
  27114. uint GetSampleSize() const;
  27115. bool GetStopAtEnd() const;
  27116. bool IsSixteenBit() const;
  27117. bool IsStereo() const;
  27118. operator OggVorbisSoundStream() const;
  27119. operator RefCounted() const;
  27120. int Refs() const;
  27121. bool Seek(uint);
  27122. void SetFormat(uint, bool, bool);
  27123. void SetStopAtEnd(bool);
  27124. int WeakRefs() const;
  27125. operator const BufferedSoundStream() const;
  27126. operator const OggVorbisSoundStream() const;
  27127. operator const RefCounted() const;
  27128. // Properties:
  27129. /* readonly */
  27130. int refs;
  27131. /* readonly */
  27132. int weakRefs;
  27133. };
  27134. class SourceBatch
  27135. {
  27136. public:
  27137. ~SourceBatch();
  27138. SourceBatch();
  27139. SourceBatch(const SourceBatch&in);
  27140. // Methods:
  27141. SourceBatch& operator=(const SourceBatch&);
  27142. // Properties:
  27143. float distance;
  27144. GeometryType geometryType;
  27145. uint numWorldTransforms;
  27146. };
  27147. class SourceBatch2D
  27148. {
  27149. public:
  27150. ~SourceBatch2D();
  27151. SourceBatch2D();
  27152. // Methods:
  27153. SourceBatch2D& operator=(const SourceBatch2D&);
  27154. // Properties:
  27155. float distance;
  27156. int drawOrder;
  27157. };
  27158. class Sphere
  27159. {
  27160. public:
  27161. Sphere();
  27162. Sphere(const Sphere&in);
  27163. Sphere(const Vector3&in, float);
  27164. Sphere(const BoundingBox&in);
  27165. Sphere(const Frustum&in);
  27166. Sphere(const Polyhedron&in);
  27167. // Methods:
  27168. Sphere& operator=(const Sphere&);
  27169. bool operator==(const Sphere&) const;
  27170. void Clear();
  27171. void Define(const BoundingBox&);
  27172. void Define(const Frustum&);
  27173. void Define(const Polyhedron&);
  27174. void Define(const Sphere&);
  27175. void Define(const Vector3&, float);
  27176. bool Defined() const;
  27177. float Distance(const Vector3&) const;
  27178. Vector3 GetLocalPoint(float, float) const;
  27179. Vector3 GetPoint(float, float) const;
  27180. Intersection IsInside(const BoundingBox&) const;
  27181. Intersection IsInside(const Sphere&) const;
  27182. Intersection IsInside(const Vector3&) const;
  27183. Intersection IsInsideFast(const BoundingBox&) const;
  27184. Intersection IsInsideFast(const Sphere&) const;
  27185. void Merge(const BoundingBox&);
  27186. void Merge(const Frustum&);
  27187. void Merge(const Polyhedron&);
  27188. void Merge(const Sphere&);
  27189. void Merge(const Vector3&);
  27190. // Properties:
  27191. Vector3 center;
  27192. float radius;
  27193. };
  27194. class Spline
  27195. {
  27196. public:
  27197. ~Spline();
  27198. Spline();
  27199. Spline(InterpolationMode);
  27200. Spline(const Spline&in);
  27201. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  27202. // Methods:
  27203. Spline& operator=(const Spline&);
  27204. bool operator==(const Spline&) const;
  27205. void AddKnot(const Variant&);
  27206. void AddKnot(const Variant&, uint);
  27207. void Clear();
  27208. InterpolationMode GetInterpolationMode() const;
  27209. Variant GetKnot(uint) const;
  27210. Variant GetPoint(float) const;
  27211. void RemoveKnot();
  27212. void RemoveKnot(uint);
  27213. void SetInterpolationMode(InterpolationMode);
  27214. void SetKnot(const Variant&, uint);
  27215. // Properties:
  27216. InterpolationMode interpolationMode;
  27217. Array<Variant> knot;
  27218. Array<Variant> knots;
  27219. };
  27220. class SplinePath
  27221. {
  27222. public:
  27223. SplinePath();
  27224. // Methods:
  27225. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  27226. void AllocateNetworkState();
  27227. operator Animatable() const;
  27228. void ApplyAttributes();
  27229. void CleanupConnection(Connection);
  27230. void ClearControlPoints();
  27231. operator Component() const;
  27232. void DrawDebugGeometry(DebugRenderer, bool);
  27233. bool GetAnimationEnabled() const;
  27234. Variant GetAttribute(const String&) const;
  27235. Variant GetAttribute(uint) const;
  27236. ValueAnimation GetAttributeAnimation(const String&) const;
  27237. float GetAttributeAnimationSpeed(const String&) const;
  27238. float GetAttributeAnimationTime(const String&) const;
  27239. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  27240. Variant GetAttributeDefault(const String&) const;
  27241. Variant GetAttributeDefault(uint) const;
  27242. bool GetBlockEvents() const;
  27243. Component GetComponent(StringHash) const;
  27244. uint GetControlledIdAttr() const;
  27245. Node GetControlledNode() const;
  27246. VariantMap& GetEventDataMap() const;
  27247. Object GetEventSender() const;
  27248. uint GetID() const;
  27249. bool GetInterceptNetworkUpdate(const String&) const;
  27250. InterpolationMode GetInterpolationMode() const;
  27251. float GetLength() const;
  27252. Node GetNode() const;
  27253. uint GetNumAttributes() const;
  27254. uint GetNumNetworkAttributes() const;
  27255. ObjectAnimation GetObjectAnimation() const;
  27256. ResourceRef GetObjectAnimationAttr() const;
  27257. Vector3 GetPoint(float) const;
  27258. Vector3 GetPosition() const;
  27259. Scene GetScene() const;
  27260. float GetSpeed() const;
  27261. Object GetSubsystem(StringHash) const;
  27262. StringHash GetType() const;
  27263. bool HasEventHandlers() const;
  27264. bool HasSubscribedToEvent(Object, StringHash) const;
  27265. bool HasSubscribedToEvent(StringHash) const;
  27266. bool IsEnabled() const;
  27267. bool IsEnabledEffective() const;
  27268. bool IsFinished() const;
  27269. bool IsInstanceOf(StringHash) const;
  27270. bool IsReplicated() const;
  27271. bool IsTemporary() const;
  27272. bool Load(Deserializer&);
  27273. bool LoadJSON(const JSONValue&);
  27274. bool LoadXML(const XMLElement&);
  27275. void MarkNetworkUpdate();
  27276. void Move(float);
  27277. operator Object() const;
  27278. void OnEvent(Object, StringHash, VariantMap&);
  27279. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  27280. void OnSetAttribute(const AttributeInfo&, const Variant&);
  27281. void OnSetEnabled();
  27282. void PrepareNetworkUpdate();
  27283. bool ReadDeltaUpdate(Deserializer&);
  27284. bool ReadLatestDataUpdate(Deserializer&);
  27285. operator RefCounted() const;
  27286. int Refs() const;
  27287. void Remove();
  27288. void RemoveAttributeAnimation(const String&);
  27289. void RemoveControlPoint(Node);
  27290. void RemoveInstanceDefault();
  27291. void RemoveObjectAnimation();
  27292. void Reset();
  27293. void ResetToDefault();
  27294. bool Save(Serializer&) const;
  27295. bool SaveDefaultAttributes() const;
  27296. bool SaveJSON(JSONValue&) const;
  27297. bool SaveXML(XMLElement&) const;
  27298. void SendEvent(StringHash);
  27299. void SendEvent(StringHash, VariantMap&);
  27300. operator Serializable() const;
  27301. void SetAnimationEnabled(bool);
  27302. void SetAnimationTime(float);
  27303. bool SetAttribute(const String&, const Variant&);
  27304. bool SetAttribute(uint, const Variant&);
  27305. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  27306. void SetAttributeAnimationSpeed(const String&, float);
  27307. void SetAttributeAnimationTime(const String&, float);
  27308. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  27309. void SetBlockEvents(bool);
  27310. void SetControlledIdAttr(uint);
  27311. void SetControlledNode(Node);
  27312. void SetEnabled(bool);
  27313. void SetGlobalVar(StringHash, const Variant&);
  27314. void SetInstanceDefault(bool);
  27315. void SetInterceptNetworkUpdate(const String&, bool);
  27316. void SetInterpolationMode(InterpolationMode);
  27317. void SetObjectAnimation(ObjectAnimation);
  27318. void SetObjectAnimationAttr(const ResourceRef&);
  27319. void SetPosition(float);
  27320. void SetSpeed(float);
  27321. void SetTemporary(bool);
  27322. const String& GetCategory() const;
  27323. const String& GetTypeName() const;
  27324. void UnsubscribeFromAllEvents();
  27325. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27326. void UnsubscribeFromEvent(Object, StringHash);
  27327. void UnsubscribeFromEvent(StringHash);
  27328. void UnsubscribeFromEvents(Object);
  27329. const Variant& GetGlobalVar(StringHash) const;
  27330. const VariantMap& GetGlobalVars() const;
  27331. int WeakRefs() const;
  27332. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  27333. void WriteInitialDeltaUpdate(Serializer&, uint8);
  27334. void WriteLatestDataUpdate(Serializer&, uint8);
  27335. operator const Animatable() const;
  27336. operator const Component() const;
  27337. operator const Object() const;
  27338. operator const RefCounted() const;
  27339. operator const Serializable() const;
  27340. // Properties:
  27341. bool animationEnabled;
  27342. /* readonly */
  27343. Array<Variant> attributeDefaults;
  27344. /* readonly */
  27345. Array<AttributeInfo> attributeInfos;
  27346. Array<Variant> attributes;
  27347. /* readonly */
  27348. String category;
  27349. Node controlledNode;
  27350. bool enabled;
  27351. /* readonly */
  27352. bool enabledEffective;
  27353. Array<Variant> globalVar;
  27354. /* readonly */
  27355. VariantMap globalVars;
  27356. /* readonly */
  27357. uint id;
  27358. InterpolationMode interpolationMode;
  27359. /* readonly */
  27360. bool isFinished;
  27361. /* readonly */
  27362. float length;
  27363. /* readonly */
  27364. Node node;
  27365. /* readonly */
  27366. uint numAttributes;
  27367. ObjectAnimation objectAnimation;
  27368. /* readonly */
  27369. int refs;
  27370. /* readonly */
  27371. bool replicated;
  27372. float speed;
  27373. bool temporary;
  27374. /* readonly */
  27375. StringHash type;
  27376. /* readonly */
  27377. String typeName;
  27378. /* readonly */
  27379. int weakRefs;
  27380. };
  27381. class Sprite
  27382. {
  27383. public:
  27384. Sprite();
  27385. // Methods:
  27386. void AddChild(UIElement);
  27387. void AddTag(const String&);
  27388. void AddTags(Array<String>);
  27389. void AddTags(const String&, int8 = ';');
  27390. void AdjustScissor(IntRect&);
  27391. void AllocateNetworkState();
  27392. operator Animatable() const;
  27393. void ApplyAttributes();
  27394. void BringToFront();
  27395. const Color& GetColor(Corner) const;
  27396. const Color& GetColorAttr() const;
  27397. const Color& GetDerivedColor() const;
  27398. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  27399. void DisableLayoutUpdate();
  27400. IntVector2 ElementToScreen(const IntVector2&);
  27401. void EnableLayoutUpdate();
  27402. bool FilterAttributes(XMLElement&) const;
  27403. uint FindChild(UIElement) const;
  27404. bool GetAnimationEnabled() const;
  27405. Variant GetAttribute(const String&) const;
  27406. Variant GetAttribute(uint) const;
  27407. ValueAnimation GetAttributeAnimation(const String&) const;
  27408. float GetAttributeAnimationSpeed(const String&) const;
  27409. float GetAttributeAnimationTime(const String&) const;
  27410. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  27411. Variant GetAttributeDefault(const String&) const;
  27412. Variant GetAttributeDefault(uint) const;
  27413. BlendMode GetBlendMode() const;
  27414. bool GetBlockEvents() const;
  27415. bool GetBringToBack() const;
  27416. bool GetBringToFront() const;
  27417. UIElement GetChild(const String&, bool = false) const;
  27418. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  27419. UIElement GetChild(uint) const;
  27420. Array<UIElement> GetChildren() const;
  27421. Array<UIElement> GetChildren(bool) const;
  27422. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  27423. bool GetClipChildren() const;
  27424. IntRect GetCombinedScreenRect();
  27425. XMLFile GetDefaultStyle(bool = true) const;
  27426. float GetDerivedOpacity() const;
  27427. uint GetDragButtonCombo() const;
  27428. uint GetDragButtonCount() const;
  27429. uint GetDragDropMode() const;
  27430. IntVector2 GetEffectiveMinSize() const;
  27431. UIElement GetElementEventSender() const;
  27432. bool GetEnableAnchor() const;
  27433. VariantMap& GetEventDataMap() const;
  27434. Object GetEventSender() const;
  27435. FocusMode GetFocusMode() const;
  27436. int GetHeight() const;
  27437. HorizontalAlignment GetHorizontalAlignment() const;
  27438. int GetIndent() const;
  27439. int GetIndentSpacing() const;
  27440. int GetIndentWidth() const;
  27441. bool GetInterceptNetworkUpdate(const String&) const;
  27442. int GetLayoutElementMaxSize() const;
  27443. LayoutMode GetLayoutMode() const;
  27444. int GetLayoutSpacing() const;
  27445. int GetMaxHeight() const;
  27446. int GetMaxWidth() const;
  27447. int GetMinHeight() const;
  27448. int GetMinWidth() const;
  27449. uint GetNumAttributes() const;
  27450. uint GetNumChildren(bool = false) const;
  27451. uint GetNumNetworkAttributes() const;
  27452. ObjectAnimation GetObjectAnimation() const;
  27453. ResourceRef GetObjectAnimationAttr() const;
  27454. float GetOpacity() const;
  27455. UIElement GetParent() const;
  27456. int GetPriority() const;
  27457. UIElement GetRoot() const;
  27458. float GetRotation() const;
  27459. bool GetSortChildren() const;
  27460. Object GetSubsystem(StringHash) const;
  27461. Array<String> GetTags() const;
  27462. Texture GetTexture() const;
  27463. ResourceRef GetTextureAttr() const;
  27464. TraversalMode GetTraversalMode() const;
  27465. StringHash GetType() const;
  27466. bool GetUseDerivedOpacity() const;
  27467. VerticalAlignment GetVerticalAlignment() const;
  27468. int GetWidth() const;
  27469. bool HasColorGradient() const;
  27470. bool HasEventHandlers() const;
  27471. bool HasFocus() const;
  27472. bool HasSubscribedToEvent(Object, StringHash) const;
  27473. bool HasSubscribedToEvent(StringHash) const;
  27474. bool HasTag(const String&) const;
  27475. void InsertChild(uint, UIElement);
  27476. const IntRect& GetClipBorder() const;
  27477. const IntRect& GetImageRect() const;
  27478. const IntRect& GetLayoutBorder() const;
  27479. const IntVector2& GetChildOffset() const;
  27480. const IntVector2& GetHotSpot() const;
  27481. const IntVector2& GetMaxOffset() const;
  27482. const IntVector2& GetMaxSize() const;
  27483. const IntVector2& GetMinOffset() const;
  27484. const IntVector2& GetMinSize() const;
  27485. const IntVector2& GetScreenPosition() const;
  27486. const IntVector2& GetSize() const;
  27487. bool IsChildOf(UIElement) const;
  27488. bool IsEditable() const;
  27489. bool IsElementEventSender() const;
  27490. bool IsEnabled() const;
  27491. bool IsEnabledSelf() const;
  27492. bool IsFixedHeight() const;
  27493. bool IsFixedSize() const;
  27494. bool IsFixedWidth() const;
  27495. bool IsHovering() const;
  27496. bool IsInside(IntVector2, bool);
  27497. bool IsInsideCombined(IntVector2, bool);
  27498. bool IsInstanceOf(StringHash) const;
  27499. bool IsInternal() const;
  27500. bool IsSelected() const;
  27501. bool IsTemporary() const;
  27502. bool IsVisible() const;
  27503. bool IsVisibleEffective() const;
  27504. bool IsWheelHandler() const;
  27505. bool IsWithinScissor(const IntRect&);
  27506. bool Load(Deserializer&);
  27507. UIElement LoadChildXML(XMLFile, XMLFile);
  27508. UIElement LoadChildXML(const XMLElement&, XMLFile);
  27509. bool LoadJSON(const JSONValue&);
  27510. bool LoadXML(Deserializer&);
  27511. bool LoadXML(File);
  27512. bool LoadXML(VectorBuffer&);
  27513. bool LoadXML(XMLFile, XMLFile);
  27514. bool LoadXML(const XMLElement&);
  27515. bool LoadXML(const XMLElement&, XMLFile);
  27516. void MarkNetworkUpdate();
  27517. const Matrix3x4& GetTransform() const;
  27518. operator Object() const;
  27519. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  27520. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  27521. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  27522. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27523. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27524. bool OnDragDropFinish(UIElement);
  27525. bool OnDragDropTest(UIElement);
  27526. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27527. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27528. void OnEvent(Object, StringHash, VariantMap&);
  27529. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  27530. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27531. void OnIndentSet();
  27532. void OnKey(uint, uint, uint);
  27533. void OnPositionSet(const IntVector2&);
  27534. void OnResize(const IntVector2&, const IntVector2&);
  27535. void OnSetAttribute(const AttributeInfo&, const Variant&);
  27536. void OnSetEditable();
  27537. void OnTextInput(const String&);
  27538. void OnWheel(int, uint, uint);
  27539. bool ReadDeltaUpdate(Deserializer&);
  27540. bool ReadLatestDataUpdate(Deserializer&);
  27541. operator RefCounted() const;
  27542. int Refs() const;
  27543. void Remove();
  27544. void RemoveAllChildren();
  27545. void RemoveAllTags();
  27546. void RemoveAttributeAnimation(const String&);
  27547. void RemoveChild(UIElement, uint = 0);
  27548. void RemoveChild(uint);
  27549. void RemoveChildAtIndex(uint);
  27550. void RemoveInstanceDefault();
  27551. void RemoveObjectAnimation();
  27552. bool RemoveTag(const String&);
  27553. void ResetDeepEnabled();
  27554. void ResetToDefault();
  27555. bool Save(Serializer&) const;
  27556. bool SaveDefaultAttributes() const;
  27557. bool SaveJSON(JSONValue&) const;
  27558. bool SaveXML(File, const String& indentation = "\t");
  27559. bool SaveXML(Serializer&, const String& = "\t") const;
  27560. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  27561. bool SaveXML(XMLElement&) const;
  27562. IntVector2 ScreenToElement(const IntVector2&);
  27563. void SendEvent(StringHash);
  27564. void SendEvent(StringHash, VariantMap&);
  27565. operator Serializable() const;
  27566. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  27567. void SetAnimationEnabled(bool);
  27568. void SetAnimationTime(float);
  27569. bool SetAttribute(const String&, const Variant&);
  27570. bool SetAttribute(uint, const Variant&);
  27571. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  27572. void SetAttributeAnimationSpeed(const String&, float);
  27573. void SetAttributeAnimationTime(const String&, float);
  27574. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  27575. void SetBlendMode(BlendMode);
  27576. void SetBlockEvents(bool);
  27577. void SetBringToBack(bool);
  27578. void SetBringToFront(bool);
  27579. void SetChildOffset(const IntVector2&);
  27580. void SetClipBorder(const IntRect&);
  27581. void SetClipChildren(bool);
  27582. void SetColor(Corner, const Color&);
  27583. void SetColor(const Color&);
  27584. void SetDeepEnabled(bool);
  27585. void SetDefaultStyle(XMLFile);
  27586. void SetDragDropMode(uint);
  27587. void SetEditable(bool);
  27588. void SetElementEventSender(bool);
  27589. void SetEnableAnchor(bool);
  27590. void SetEnabled(bool);
  27591. void SetEnabledRecursive(bool);
  27592. void SetFixedHeight(int);
  27593. void SetFixedSize(const IntVector2&);
  27594. void SetFixedSize(int, int);
  27595. void SetFixedWidth(int);
  27596. void SetFocus(bool);
  27597. void SetFocusMode(FocusMode);
  27598. void SetFullImageRect();
  27599. void SetGlobalVar(StringHash, const Variant&);
  27600. void SetHeight(int);
  27601. void SetHorizontalAlignment(HorizontalAlignment);
  27602. void SetHotSpot(const IntVector2&);
  27603. void SetHotSpot(int, int);
  27604. void SetHovering(bool);
  27605. void SetImageRect(const IntRect&);
  27606. void SetIndent(int);
  27607. void SetIndentSpacing(int);
  27608. void SetInstanceDefault(bool);
  27609. void SetInterceptNetworkUpdate(const String&, bool);
  27610. void SetInternal(bool);
  27611. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  27612. void SetLayoutBorder(const IntRect&);
  27613. void SetLayoutFlexScale(const Vector2&);
  27614. void SetLayoutMode(LayoutMode);
  27615. void SetLayoutSpacing(int);
  27616. void SetMaxAnchor(const Vector2&);
  27617. void SetMaxAnchor(float, float);
  27618. void SetMaxHeight(int);
  27619. void SetMaxOffset(const IntVector2&);
  27620. void SetMaxSize(const IntVector2&);
  27621. void SetMaxSize(int, int);
  27622. void SetMaxWidth(int);
  27623. void SetMinAnchor(const Vector2&);
  27624. void SetMinAnchor(float, float);
  27625. void SetMinHeight(int);
  27626. void SetMinOffset(const IntVector2&);
  27627. void SetMinSize(const IntVector2&);
  27628. void SetMinSize(int, int);
  27629. void SetMinWidth(int);
  27630. void SetName(const String&);
  27631. void SetObjectAnimation(ObjectAnimation);
  27632. void SetObjectAnimationAttr(const ResourceRef&);
  27633. void SetOpacity(float);
  27634. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  27635. void SetPivot(const Vector2&);
  27636. void SetPivot(float, float);
  27637. void SetPosition(const Vector2&);
  27638. void SetPosition(float, float);
  27639. void SetPriority(int);
  27640. void SetRenderTexture(Texture2D);
  27641. void SetRotation(float);
  27642. void SetScale(const Vector2&);
  27643. void SetScale(float);
  27644. void SetScale(float, float);
  27645. void SetSelected(bool);
  27646. void SetSize(const IntVector2&);
  27647. void SetSize(int, int);
  27648. void SetSortChildren(bool);
  27649. bool SetStyle(const String&, XMLFile = null);
  27650. bool SetStyle(const XMLElement&);
  27651. bool SetStyleAuto(XMLFile = null);
  27652. void SetTags(Array<String>);
  27653. void SetTemporary(bool);
  27654. void SetTexture(Texture);
  27655. void SetTextureAttr(const ResourceRef&);
  27656. void SetTraversalMode(TraversalMode);
  27657. void SetUseDerivedOpacity(bool);
  27658. void SetVar(StringHash, const Variant&);
  27659. void SetVerticalAlignment(VerticalAlignment);
  27660. void SetVisible(bool);
  27661. void SetWidth(int);
  27662. void SortChildren();
  27663. const String& GetAppliedStyle() const;
  27664. const String& GetCategory() const;
  27665. const String& GetName() const;
  27666. const String& GetTypeName() const;
  27667. operator UIElement() const;
  27668. void UnsubscribeFromAllEvents();
  27669. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27670. void UnsubscribeFromEvent(Object, StringHash);
  27671. void UnsubscribeFromEvent(StringHash);
  27672. void UnsubscribeFromEvents(Object);
  27673. void Update(float);
  27674. void UpdateLayout();
  27675. const Variant& GetGlobalVar(StringHash) const;
  27676. const Variant& GetVar(const StringHash&) const;
  27677. const VariantMap& GetGlobalVars() const;
  27678. const VariantMap& GetVars() const;
  27679. const Vector2& GetLayoutFlexScale() const;
  27680. const Vector2& GetMaxAnchor() const;
  27681. const Vector2& GetMinAnchor() const;
  27682. const Vector2& GetPivot() const;
  27683. const Vector2& GetPosition() const;
  27684. const Vector2& GetScale() const;
  27685. int WeakRefs() const;
  27686. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  27687. void WriteInitialDeltaUpdate(Serializer&, uint8);
  27688. void WriteLatestDataUpdate(Serializer&, uint8);
  27689. operator const Animatable() const;
  27690. operator const Object() const;
  27691. operator const RefCounted() const;
  27692. operator const Serializable() const;
  27693. operator const UIElement() const;
  27694. // Properties:
  27695. bool animationEnabled;
  27696. /* readonly */
  27697. Array<Variant> attributeDefaults;
  27698. /* readonly */
  27699. Array<AttributeInfo> attributeInfos;
  27700. Array<Variant> attributes;
  27701. BlendMode blendMode;
  27702. bool bringToBack;
  27703. bool bringToFront;
  27704. /* readonly */
  27705. String category;
  27706. /* readonly */
  27707. IntVector2 childOffset;
  27708. /* readonly */
  27709. Array<UIElement> children;
  27710. IntRect clipBorder;
  27711. bool clipChildren;
  27712. /* writeonly */
  27713. Color color;
  27714. /* readonly */
  27715. bool colorGradient;
  27716. Array<Color> colors;
  27717. /* readonly */
  27718. IntRect combinedScreenRect;
  27719. XMLFile defaultStyle;
  27720. /* readonly */
  27721. float derivedOpacity;
  27722. /* readonly */
  27723. uint dragButtonCombo;
  27724. /* readonly */
  27725. uint dragButtonCount;
  27726. uint dragDropMode;
  27727. bool editable;
  27728. bool elementEventSender;
  27729. bool enableAnchor;
  27730. bool enabled;
  27731. /* readonly */
  27732. bool enabledSelf;
  27733. /* readonly */
  27734. bool fixedHeight;
  27735. /* readonly */
  27736. bool fixedSize;
  27737. /* readonly */
  27738. bool fixedWidth;
  27739. bool focus;
  27740. FocusMode focusMode;
  27741. Array<Variant> globalVar;
  27742. /* readonly */
  27743. VariantMap globalVars;
  27744. int height;
  27745. HorizontalAlignment horizontalAlignment;
  27746. IntVector2 hotSpot;
  27747. /* readonly */
  27748. bool hovering;
  27749. IntRect imageRect;
  27750. int indent;
  27751. int indentSpacing;
  27752. /* readonly */
  27753. int indentWidth;
  27754. bool internal;
  27755. IntRect layoutBorder;
  27756. Vector2 layoutFlexScale;
  27757. LayoutMode layoutMode;
  27758. int layoutSpacing;
  27759. Vector2 maxAnchor;
  27760. int maxHeight;
  27761. IntVector2 maxOffset;
  27762. IntVector2 maxSize;
  27763. int maxWidth;
  27764. Vector2 minAnchor;
  27765. int minHeight;
  27766. IntVector2 minOffset;
  27767. IntVector2 minSize;
  27768. int minWidth;
  27769. String name;
  27770. /* readonly */
  27771. uint numAllChildren;
  27772. /* readonly */
  27773. uint numAttributes;
  27774. /* readonly */
  27775. uint numChildren;
  27776. ObjectAnimation objectAnimation;
  27777. float opacity;
  27778. UIElement parent;
  27779. Vector2 pivot;
  27780. Vector2 position;
  27781. int priority;
  27782. /* readonly */
  27783. int refs;
  27784. /* readonly */
  27785. UIElement root;
  27786. float rotation;
  27787. Vector2 scale;
  27788. /* readonly */
  27789. IntVector2 screenPosition;
  27790. bool selected;
  27791. IntVector2 size;
  27792. bool sortChildren;
  27793. String style;
  27794. /* readonly */
  27795. Array<String> tags;
  27796. bool temporary;
  27797. Texture texture;
  27798. TraversalMode traversalMode;
  27799. /* readonly */
  27800. StringHash type;
  27801. /* readonly */
  27802. String typeName;
  27803. bool useDerivedOpacity;
  27804. /* readonly */
  27805. VariantMap vars;
  27806. VerticalAlignment verticalAlignment;
  27807. bool visible;
  27808. /* readonly */
  27809. bool visibleEffective;
  27810. /* readonly */
  27811. int weakRefs;
  27812. int width;
  27813. };
  27814. class Sprite2D
  27815. {
  27816. public:
  27817. Sprite2D();
  27818. // Methods:
  27819. bool BeginLoad(Deserializer&);
  27820. bool EndLoad();
  27821. AsyncLoadState GetAsyncLoadState() const;
  27822. bool GetBlockEvents() const;
  27823. bool GetDrawRectangle(Rect&, bool = false, bool = false) const;
  27824. bool GetDrawRectangle(Rect&, const Vector2&, bool = false, bool = false) const;
  27825. VariantMap& GetEventDataMap() const;
  27826. Object GetEventSender() const;
  27827. uint GetMemoryUse() const;
  27828. StringHash GetNameHash() const;
  27829. SpriteSheet2D GetSpriteSheet() const;
  27830. Object GetSubsystem(StringHash) const;
  27831. Texture2D GetTexture() const;
  27832. float GetTextureEdgeOffset() const;
  27833. bool GetTextureRectangle(Rect&, bool = false, bool = false) const;
  27834. StringHash GetType() const;
  27835. uint GetUseTimer();
  27836. bool HasEventHandlers() const;
  27837. bool HasSubscribedToEvent(Object, StringHash) const;
  27838. bool HasSubscribedToEvent(StringHash) const;
  27839. const IntRect& GetRectangle() const;
  27840. const IntVector2& GetOffset() const;
  27841. bool IsInstanceOf(StringHash) const;
  27842. bool Load(Deserializer&);
  27843. bool Load(File);
  27844. bool Load(VectorBuffer&);
  27845. bool Load(const String&);
  27846. bool LoadFile(const String&);
  27847. operator Object() const;
  27848. void OnEvent(Object, StringHash, VariantMap&);
  27849. operator RefCounted() const;
  27850. int Refs() const;
  27851. void ResetUseTimer();
  27852. operator Resource() const;
  27853. bool Save(File) const;
  27854. bool Save(Serializer&) const;
  27855. bool Save(VectorBuffer&) const;
  27856. bool Save(const String&) const;
  27857. bool SaveFile(const String&) const;
  27858. void SendEvent(StringHash);
  27859. void SendEvent(StringHash, VariantMap&);
  27860. void SetAsyncLoadState(AsyncLoadState);
  27861. void SetBlockEvents(bool);
  27862. void SetGlobalVar(StringHash, const Variant&);
  27863. void SetHotSpot(const Vector2&);
  27864. void SetMemoryUse(uint);
  27865. void SetName(const String&);
  27866. void SetOffset(const IntVector2&);
  27867. void SetRectangle(const IntRect&);
  27868. void SetSpriteSheet(SpriteSheet2D);
  27869. void SetTexture(Texture2D);
  27870. void SetTextureEdgeOffset(float);
  27871. const String& GetCategory() const;
  27872. const String& GetName() const;
  27873. const String& GetTypeName() const;
  27874. void UnsubscribeFromAllEvents();
  27875. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27876. void UnsubscribeFromEvent(Object, StringHash);
  27877. void UnsubscribeFromEvent(StringHash);
  27878. void UnsubscribeFromEvents(Object);
  27879. const Variant& GetGlobalVar(StringHash) const;
  27880. const VariantMap& GetGlobalVars() const;
  27881. const Vector2& GetHotSpot() const;
  27882. int WeakRefs() const;
  27883. operator const Object() const;
  27884. operator const RefCounted() const;
  27885. operator const Resource() const;
  27886. // Properties:
  27887. /* readonly */
  27888. String category;
  27889. Array<Variant> globalVar;
  27890. /* readonly */
  27891. VariantMap globalVars;
  27892. Vector2 hotSpot;
  27893. /* readonly */
  27894. uint memoryUse;
  27895. String name;
  27896. IntVector2 offset;
  27897. IntRect rectangle;
  27898. /* readonly */
  27899. int refs;
  27900. Texture2D texture;
  27901. float textureEdgeOffset;
  27902. /* readonly */
  27903. StringHash type;
  27904. /* readonly */
  27905. String typeName;
  27906. /* readonly */
  27907. uint useTimer;
  27908. /* readonly */
  27909. int weakRefs;
  27910. };
  27911. class SpriteSheet2D
  27912. {
  27913. public:
  27914. SpriteSheet2D();
  27915. // Methods:
  27916. bool BeginLoad(Deserializer&);
  27917. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  27918. bool EndLoad();
  27919. AsyncLoadState GetAsyncLoadState() const;
  27920. bool GetBlockEvents() const;
  27921. VariantMap& GetEventDataMap() const;
  27922. Object GetEventSender() const;
  27923. uint GetMemoryUse() const;
  27924. StringHash GetNameHash() const;
  27925. Sprite2D GetSprite(const String&) const;
  27926. Object GetSubsystem(StringHash) const;
  27927. Texture2D GetTexture() const;
  27928. StringHash GetType() const;
  27929. uint GetUseTimer();
  27930. bool HasEventHandlers() const;
  27931. bool HasSubscribedToEvent(Object, StringHash) const;
  27932. bool HasSubscribedToEvent(StringHash) const;
  27933. bool IsInstanceOf(StringHash) const;
  27934. bool Load(Deserializer&);
  27935. bool Load(File);
  27936. bool Load(VectorBuffer&);
  27937. bool Load(const String&);
  27938. bool LoadFile(const String&);
  27939. operator Object() const;
  27940. void OnEvent(Object, StringHash, VariantMap&);
  27941. operator RefCounted() const;
  27942. int Refs() const;
  27943. void ResetUseTimer();
  27944. operator Resource() const;
  27945. bool Save(File) const;
  27946. bool Save(Serializer&) const;
  27947. bool Save(VectorBuffer&) const;
  27948. bool Save(const String&) const;
  27949. bool SaveFile(const String&) const;
  27950. void SendEvent(StringHash);
  27951. void SendEvent(StringHash, VariantMap&);
  27952. void SetAsyncLoadState(AsyncLoadState);
  27953. void SetBlockEvents(bool);
  27954. void SetGlobalVar(StringHash, const Variant&);
  27955. void SetMemoryUse(uint);
  27956. void SetName(const String&);
  27957. void SetTexture(Texture2D);
  27958. const String& GetCategory() const;
  27959. const String& GetName() const;
  27960. const String& GetTypeName() const;
  27961. void UnsubscribeFromAllEvents();
  27962. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27963. void UnsubscribeFromEvent(Object, StringHash);
  27964. void UnsubscribeFromEvent(StringHash);
  27965. void UnsubscribeFromEvents(Object);
  27966. const Variant& GetGlobalVar(StringHash) const;
  27967. const VariantMap& GetGlobalVars() const;
  27968. int WeakRefs() const;
  27969. operator const Object() const;
  27970. operator const RefCounted() const;
  27971. operator const Resource() const;
  27972. // Properties:
  27973. /* readonly */
  27974. String category;
  27975. Array<Variant> globalVar;
  27976. /* readonly */
  27977. VariantMap globalVars;
  27978. /* readonly */
  27979. uint memoryUse;
  27980. String name;
  27981. /* readonly */
  27982. int refs;
  27983. Texture2D texture;
  27984. /* readonly */
  27985. StringHash type;
  27986. /* readonly */
  27987. String typeName;
  27988. /* readonly */
  27989. uint useTimer;
  27990. /* readonly */
  27991. int weakRefs;
  27992. };
  27993. class StaticModel
  27994. {
  27995. public:
  27996. StaticModel();
  27997. // Methods:
  27998. void AddLight(Light);
  27999. void AddVertexLight(Light);
  28000. void AllocateNetworkState();
  28001. operator Animatable() const;
  28002. operator AnimatedModel() const;
  28003. void ApplyAttributes();
  28004. void ApplyMaterialList(const String& = String :: EMPTY);
  28005. const BoundingBox& GetBoundingBox() const;
  28006. const BoundingBox& GetWorldBoundingBox();
  28007. void CleanupConnection(Connection);
  28008. operator Component() const;
  28009. void DrawDebugGeometry(DebugRenderer, bool);
  28010. bool DrawOcclusion(OcclusionBuffer);
  28011. operator Drawable() const;
  28012. bool GetAnimationEnabled() const;
  28013. Variant GetAttribute(const String&) const;
  28014. Variant GetAttribute(uint) const;
  28015. ValueAnimation GetAttributeAnimation(const String&) const;
  28016. float GetAttributeAnimationSpeed(const String&) const;
  28017. float GetAttributeAnimationTime(const String&) const;
  28018. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28019. Variant GetAttributeDefault(const String&) const;
  28020. Variant GetAttributeDefault(uint) const;
  28021. bool GetBlockEvents() const;
  28022. bool GetCastShadows() const;
  28023. Component GetComponent(StringHash) const;
  28024. float GetDistance() const;
  28025. float GetDrawDistance() const;
  28026. uint8 GetDrawableFlags() const;
  28027. VariantMap& GetEventDataMap() const;
  28028. Object GetEventSender() const;
  28029. Light GetFirstLight() const;
  28030. uint GetID() const;
  28031. bool GetInterceptNetworkUpdate(const String&) const;
  28032. uint GetLightMask() const;
  28033. Array<Light> GetLights() const;
  28034. float GetLodBias() const;
  28035. float GetLodDistance() const;
  28036. Geometry GetLodGeometry(uint, uint);
  28037. Material GetMaterial() const;
  28038. Material GetMaterial(uint) const;
  28039. uint GetMaxLights() const;
  28040. float GetMaxZ() const;
  28041. float GetMinZ() const;
  28042. Model GetModel() const;
  28043. ResourceRef GetModelAttr() const;
  28044. Node GetNode() const;
  28045. uint GetNumAttributes() const;
  28046. uint GetNumGeometries() const;
  28047. uint GetNumNetworkAttributes() const;
  28048. uint GetNumOccluderTriangles();
  28049. ObjectAnimation GetObjectAnimation() const;
  28050. ResourceRef GetObjectAnimationAttr() const;
  28051. uint GetOcclusionLodLevel() const;
  28052. Scene GetScene() const;
  28053. float GetShadowDistance() const;
  28054. uint GetShadowMask() const;
  28055. float GetSortValue() const;
  28056. Object GetSubsystem(StringHash) const;
  28057. StringHash GetType() const;
  28058. UpdateGeometryType GetUpdateGeometryType();
  28059. Array<Light> GetVertexLights() const;
  28060. uint GetViewMask() const;
  28061. Zone GetZone() const;
  28062. uint GetZoneMask() const;
  28063. bool HasBasePass(uint) const;
  28064. bool HasEventHandlers() const;
  28065. bool HasSubscribedToEvent(Object, StringHash) const;
  28066. bool HasSubscribedToEvent(StringHash) const;
  28067. bool IsEnabled() const;
  28068. bool IsEnabledEffective() const;
  28069. bool IsInView() const;
  28070. bool IsInView(Camera) const;
  28071. bool IsInView(const FrameInfo&, bool = false) const;
  28072. bool IsInside(const Vector3&) const;
  28073. bool IsInsideLocal(const Vector3&) const;
  28074. bool IsInstanceOf(StringHash) const;
  28075. bool IsOccludee() const;
  28076. bool IsOccluder() const;
  28077. bool IsReplicated() const;
  28078. bool IsTemporary() const;
  28079. bool IsZoneDirty() const;
  28080. void LimitLights();
  28081. void LimitVertexLights(bool);
  28082. bool Load(Deserializer&);
  28083. bool LoadJSON(const JSONValue&);
  28084. bool LoadXML(const XMLElement&);
  28085. void MarkForUpdate();
  28086. void MarkInView(const FrameInfo&);
  28087. void MarkInView(uint);
  28088. void MarkNetworkUpdate();
  28089. operator Object() const;
  28090. void OnEvent(Object, StringHash, VariantMap&);
  28091. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28092. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28093. void OnSetEnabled();
  28094. void PrepareNetworkUpdate();
  28095. bool ReadDeltaUpdate(Deserializer&);
  28096. bool ReadLatestDataUpdate(Deserializer&);
  28097. operator RefCounted() const;
  28098. int Refs() const;
  28099. void Remove();
  28100. void RemoveAttributeAnimation(const String&);
  28101. void RemoveInstanceDefault();
  28102. void RemoveObjectAnimation();
  28103. void ResetToDefault();
  28104. const ResourceRefList& GetMaterialsAttr() const;
  28105. bool Save(Serializer&) const;
  28106. bool SaveDefaultAttributes() const;
  28107. bool SaveJSON(JSONValue&) const;
  28108. bool SaveXML(XMLElement&) const;
  28109. void SendEvent(StringHash);
  28110. void SendEvent(StringHash, VariantMap&);
  28111. operator Serializable() const;
  28112. void SetAnimationEnabled(bool);
  28113. void SetAnimationTime(float);
  28114. bool SetAttribute(const String&, const Variant&);
  28115. bool SetAttribute(uint, const Variant&);
  28116. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28117. void SetAttributeAnimationSpeed(const String&, float);
  28118. void SetAttributeAnimationTime(const String&, float);
  28119. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28120. void SetBasePass(uint);
  28121. void SetBlockEvents(bool);
  28122. void SetCastShadows(bool);
  28123. void SetDrawDistance(float);
  28124. void SetEnabled(bool);
  28125. void SetGlobalVar(StringHash, const Variant&);
  28126. void SetInstanceDefault(bool);
  28127. void SetInterceptNetworkUpdate(const String&, bool);
  28128. void SetLightMask(uint);
  28129. void SetLodBias(float);
  28130. void SetMaterial(Material);
  28131. bool SetMaterial(uint, Material);
  28132. void SetMaterialsAttr(const ResourceRefList&);
  28133. void SetMaxLights(uint);
  28134. void SetMinMaxZ(float, float);
  28135. void SetModel(Model);
  28136. void SetModelAttr(const ResourceRef&);
  28137. void SetObjectAnimation(ObjectAnimation);
  28138. void SetObjectAnimationAttr(const ResourceRef&);
  28139. void SetOccludee(bool);
  28140. void SetOccluder(bool);
  28141. void SetOcclusionLodLevel(uint);
  28142. void SetShadowDistance(float);
  28143. void SetShadowMask(uint);
  28144. void SetSortValue(float);
  28145. void SetTemporary(bool);
  28146. void SetViewMask(uint);
  28147. void SetZone(Zone, bool = false);
  28148. void SetZoneMask(uint);
  28149. operator Skybox() const;
  28150. operator StaticModelGroup() const;
  28151. const String& GetCategory() const;
  28152. const String& GetTypeName() const;
  28153. void UnsubscribeFromAllEvents();
  28154. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28155. void UnsubscribeFromEvent(Object, StringHash);
  28156. void UnsubscribeFromEvent(StringHash);
  28157. void UnsubscribeFromEvents(Object);
  28158. void Update(const FrameInfo&);
  28159. void UpdateBatches(const FrameInfo&);
  28160. void UpdateGeometry(const FrameInfo&);
  28161. const Variant& GetGlobalVar(StringHash) const;
  28162. const VariantMap& GetGlobalVars() const;
  28163. int WeakRefs() const;
  28164. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28165. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28166. void WriteLatestDataUpdate(Serializer&, uint8);
  28167. operator const Animatable() const;
  28168. operator const AnimatedModel() const;
  28169. operator const Component() const;
  28170. operator const Drawable() const;
  28171. operator const Object() const;
  28172. operator const RefCounted() const;
  28173. operator const Serializable() const;
  28174. operator const Skybox() const;
  28175. operator const StaticModelGroup() const;
  28176. // Properties:
  28177. bool animationEnabled;
  28178. /* readonly */
  28179. Array<Variant> attributeDefaults;
  28180. /* readonly */
  28181. Array<AttributeInfo> attributeInfos;
  28182. Array<Variant> attributes;
  28183. /* readonly */
  28184. BoundingBox boundingBox;
  28185. bool castShadows;
  28186. /* readonly */
  28187. String category;
  28188. float drawDistance;
  28189. bool enabled;
  28190. /* readonly */
  28191. bool enabledEffective;
  28192. Array<Variant> globalVar;
  28193. /* readonly */
  28194. VariantMap globalVars;
  28195. /* readonly */
  28196. uint id;
  28197. /* readonly */
  28198. bool inView;
  28199. uint lightMask;
  28200. float lodBias;
  28201. Material material;
  28202. Array<Material> materials;
  28203. uint maxLights;
  28204. Model model;
  28205. /* readonly */
  28206. Node node;
  28207. /* readonly */
  28208. uint numAttributes;
  28209. /* readonly */
  28210. uint numGeometries;
  28211. ObjectAnimation objectAnimation;
  28212. bool occludee;
  28213. bool occluder;
  28214. uint occlusionLodLevel;
  28215. /* readonly */
  28216. int refs;
  28217. /* readonly */
  28218. bool replicated;
  28219. float shadowDistance;
  28220. uint shadowMask;
  28221. bool temporary;
  28222. /* readonly */
  28223. StringHash type;
  28224. /* readonly */
  28225. String typeName;
  28226. uint viewMask;
  28227. /* readonly */
  28228. int weakRefs;
  28229. /* readonly */
  28230. BoundingBox worldBoundingBox;
  28231. /* readonly */
  28232. Zone zone;
  28233. uint zoneMask;
  28234. };
  28235. class StaticModelGeometryData
  28236. {
  28237. public:
  28238. ~StaticModelGeometryData();
  28239. StaticModelGeometryData();
  28240. // Methods:
  28241. StaticModelGeometryData& operator=(const StaticModelGeometryData&);
  28242. // Properties:
  28243. Vector3 center;
  28244. uint lodLevel;
  28245. };
  28246. class StaticModelGroup
  28247. {
  28248. public:
  28249. StaticModelGroup();
  28250. // Methods:
  28251. void AddInstanceNode(Node);
  28252. void AddLight(Light);
  28253. void AddVertexLight(Light);
  28254. void AllocateNetworkState();
  28255. operator Animatable() const;
  28256. void ApplyAttributes();
  28257. void ApplyMaterialList(const String& = String :: EMPTY);
  28258. const BoundingBox& GetBoundingBox() const;
  28259. const BoundingBox& GetWorldBoundingBox();
  28260. void CleanupConnection(Connection);
  28261. operator Component() const;
  28262. void DrawDebugGeometry(DebugRenderer, bool);
  28263. bool DrawOcclusion(OcclusionBuffer);
  28264. operator Drawable() const;
  28265. bool GetAnimationEnabled() const;
  28266. Variant GetAttribute(const String&) const;
  28267. Variant GetAttribute(uint) const;
  28268. ValueAnimation GetAttributeAnimation(const String&) const;
  28269. float GetAttributeAnimationSpeed(const String&) const;
  28270. float GetAttributeAnimationTime(const String&) const;
  28271. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28272. Variant GetAttributeDefault(const String&) const;
  28273. Variant GetAttributeDefault(uint) const;
  28274. bool GetBlockEvents() const;
  28275. bool GetCastShadows() const;
  28276. Component GetComponent(StringHash) const;
  28277. float GetDistance() const;
  28278. float GetDrawDistance() const;
  28279. uint8 GetDrawableFlags() const;
  28280. VariantMap& GetEventDataMap() const;
  28281. Object GetEventSender() const;
  28282. Light GetFirstLight() const;
  28283. uint GetID() const;
  28284. Node GetInstanceNode(uint) const;
  28285. bool GetInterceptNetworkUpdate(const String&) const;
  28286. uint GetLightMask() const;
  28287. Array<Light> GetLights() const;
  28288. float GetLodBias() const;
  28289. float GetLodDistance() const;
  28290. Geometry GetLodGeometry(uint, uint);
  28291. Material GetMaterial() const;
  28292. Material GetMaterial(uint) const;
  28293. uint GetMaxLights() const;
  28294. float GetMaxZ() const;
  28295. float GetMinZ() const;
  28296. Model GetModel() const;
  28297. ResourceRef GetModelAttr() const;
  28298. Node GetNode() const;
  28299. uint GetNumAttributes() const;
  28300. uint GetNumGeometries() const;
  28301. uint GetNumInstanceNodes() const;
  28302. uint GetNumNetworkAttributes() const;
  28303. uint GetNumOccluderTriangles();
  28304. ObjectAnimation GetObjectAnimation() const;
  28305. ResourceRef GetObjectAnimationAttr() const;
  28306. uint GetOcclusionLodLevel() const;
  28307. Scene GetScene() const;
  28308. float GetShadowDistance() const;
  28309. uint GetShadowMask() const;
  28310. float GetSortValue() const;
  28311. Object GetSubsystem(StringHash) const;
  28312. StringHash GetType() const;
  28313. UpdateGeometryType GetUpdateGeometryType();
  28314. Array<Light> GetVertexLights() const;
  28315. uint GetViewMask() const;
  28316. Zone GetZone() const;
  28317. uint GetZoneMask() const;
  28318. bool HasBasePass(uint) const;
  28319. bool HasEventHandlers() const;
  28320. bool HasSubscribedToEvent(Object, StringHash) const;
  28321. bool HasSubscribedToEvent(StringHash) const;
  28322. bool IsEnabled() const;
  28323. bool IsEnabledEffective() const;
  28324. bool IsInView() const;
  28325. bool IsInView(Camera) const;
  28326. bool IsInView(const FrameInfo&, bool = false) const;
  28327. bool IsInside(const Vector3&) const;
  28328. bool IsInsideLocal(const Vector3&) const;
  28329. bool IsInstanceOf(StringHash) const;
  28330. bool IsOccludee() const;
  28331. bool IsOccluder() const;
  28332. bool IsReplicated() const;
  28333. bool IsTemporary() const;
  28334. bool IsZoneDirty() const;
  28335. void LimitLights();
  28336. void LimitVertexLights(bool);
  28337. bool Load(Deserializer&);
  28338. bool LoadJSON(const JSONValue&);
  28339. bool LoadXML(const XMLElement&);
  28340. void MarkForUpdate();
  28341. void MarkInView(const FrameInfo&);
  28342. void MarkInView(uint);
  28343. void MarkNetworkUpdate();
  28344. operator Object() const;
  28345. void OnEvent(Object, StringHash, VariantMap&);
  28346. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28347. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28348. void OnSetEnabled();
  28349. void PrepareNetworkUpdate();
  28350. bool ReadDeltaUpdate(Deserializer&);
  28351. bool ReadLatestDataUpdate(Deserializer&);
  28352. operator RefCounted() const;
  28353. int Refs() const;
  28354. void Remove();
  28355. void RemoveAllInstanceNodes();
  28356. void RemoveAttributeAnimation(const String&);
  28357. void RemoveInstanceDefault();
  28358. void RemoveInstanceNode(Node);
  28359. void RemoveObjectAnimation();
  28360. void ResetToDefault();
  28361. const ResourceRefList& GetMaterialsAttr() const;
  28362. bool Save(Serializer&) const;
  28363. bool SaveDefaultAttributes() const;
  28364. bool SaveJSON(JSONValue&) const;
  28365. bool SaveXML(XMLElement&) const;
  28366. void SendEvent(StringHash);
  28367. void SendEvent(StringHash, VariantMap&);
  28368. operator Serializable() const;
  28369. void SetAnimationEnabled(bool);
  28370. void SetAnimationTime(float);
  28371. bool SetAttribute(const String&, const Variant&);
  28372. bool SetAttribute(uint, const Variant&);
  28373. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28374. void SetAttributeAnimationSpeed(const String&, float);
  28375. void SetAttributeAnimationTime(const String&, float);
  28376. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28377. void SetBasePass(uint);
  28378. void SetBlockEvents(bool);
  28379. void SetCastShadows(bool);
  28380. void SetDrawDistance(float);
  28381. void SetEnabled(bool);
  28382. void SetGlobalVar(StringHash, const Variant&);
  28383. void SetInstanceDefault(bool);
  28384. void SetInterceptNetworkUpdate(const String&, bool);
  28385. void SetLightMask(uint);
  28386. void SetLodBias(float);
  28387. void SetMaterial(Material);
  28388. bool SetMaterial(uint, Material);
  28389. void SetMaterialsAttr(const ResourceRefList&);
  28390. void SetMaxLights(uint);
  28391. void SetMinMaxZ(float, float);
  28392. void SetModel(Model);
  28393. void SetModelAttr(const ResourceRef&);
  28394. void SetObjectAnimation(ObjectAnimation);
  28395. void SetObjectAnimationAttr(const ResourceRef&);
  28396. void SetOccludee(bool);
  28397. void SetOccluder(bool);
  28398. void SetOcclusionLodLevel(uint);
  28399. void SetShadowDistance(float);
  28400. void SetShadowMask(uint);
  28401. void SetSortValue(float);
  28402. void SetTemporary(bool);
  28403. void SetViewMask(uint);
  28404. void SetZone(Zone, bool = false);
  28405. void SetZoneMask(uint);
  28406. operator StaticModel() const;
  28407. const String& GetCategory() const;
  28408. const String& GetTypeName() const;
  28409. void UnsubscribeFromAllEvents();
  28410. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28411. void UnsubscribeFromEvent(Object, StringHash);
  28412. void UnsubscribeFromEvent(StringHash);
  28413. void UnsubscribeFromEvents(Object);
  28414. void Update(const FrameInfo&);
  28415. void UpdateBatches(const FrameInfo&);
  28416. void UpdateGeometry(const FrameInfo&);
  28417. const Variant& GetGlobalVar(StringHash) const;
  28418. const VariantMap& GetGlobalVars() const;
  28419. int WeakRefs() const;
  28420. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28421. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28422. void WriteLatestDataUpdate(Serializer&, uint8);
  28423. operator const Animatable() const;
  28424. operator const Component() const;
  28425. operator const Drawable() const;
  28426. operator const Object() const;
  28427. operator const RefCounted() const;
  28428. operator const Serializable() const;
  28429. operator const StaticModel() const;
  28430. // Properties:
  28431. bool animationEnabled;
  28432. /* readonly */
  28433. Array<Variant> attributeDefaults;
  28434. /* readonly */
  28435. Array<AttributeInfo> attributeInfos;
  28436. Array<Variant> attributes;
  28437. /* readonly */
  28438. BoundingBox boundingBox;
  28439. bool castShadows;
  28440. /* readonly */
  28441. String category;
  28442. float drawDistance;
  28443. bool enabled;
  28444. /* readonly */
  28445. bool enabledEffective;
  28446. Array<Variant> globalVar;
  28447. /* readonly */
  28448. VariantMap globalVars;
  28449. /* readonly */
  28450. uint id;
  28451. /* readonly */
  28452. bool inView;
  28453. /* readonly */
  28454. Array<Node> instanceNodes;
  28455. uint lightMask;
  28456. float lodBias;
  28457. Material material;
  28458. Array<Material> materials;
  28459. uint maxLights;
  28460. Model model;
  28461. /* readonly */
  28462. Node node;
  28463. /* readonly */
  28464. uint numAttributes;
  28465. /* readonly */
  28466. uint numGeometries;
  28467. /* readonly */
  28468. uint numInstanceNodes;
  28469. ObjectAnimation objectAnimation;
  28470. bool occludee;
  28471. bool occluder;
  28472. uint occlusionLodLevel;
  28473. /* readonly */
  28474. int refs;
  28475. /* readonly */
  28476. bool replicated;
  28477. float shadowDistance;
  28478. uint shadowMask;
  28479. bool temporary;
  28480. /* readonly */
  28481. StringHash type;
  28482. /* readonly */
  28483. String typeName;
  28484. uint viewMask;
  28485. /* readonly */
  28486. int weakRefs;
  28487. /* readonly */
  28488. BoundingBox worldBoundingBox;
  28489. /* readonly */
  28490. Zone zone;
  28491. uint zoneMask;
  28492. };
  28493. class StaticSprite2D
  28494. {
  28495. public:
  28496. StaticSprite2D();
  28497. // Methods:
  28498. void AddLight(Light);
  28499. void AddVertexLight(Light);
  28500. void AllocateNetworkState();
  28501. operator Animatable() const;
  28502. operator AnimatedSprite2D() const;
  28503. void ApplyAttributes();
  28504. const BoundingBox& GetBoundingBox() const;
  28505. const BoundingBox& GetWorldBoundingBox();
  28506. void CleanupConnection(Connection);
  28507. const Color& GetColor() const;
  28508. operator Component() const;
  28509. void DrawDebugGeometry(DebugRenderer, bool);
  28510. bool DrawOcclusion(OcclusionBuffer);
  28511. operator Drawable2D() const;
  28512. operator Drawable() const;
  28513. float GetAlpha() const;
  28514. bool GetAnimationEnabled() const;
  28515. Variant GetAttribute(const String&) const;
  28516. Variant GetAttribute(uint) const;
  28517. ValueAnimation GetAttributeAnimation(const String&) const;
  28518. float GetAttributeAnimationSpeed(const String&) const;
  28519. float GetAttributeAnimationTime(const String&) const;
  28520. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28521. Variant GetAttributeDefault(const String&) const;
  28522. Variant GetAttributeDefault(uint) const;
  28523. BlendMode GetBlendMode() const;
  28524. bool GetBlockEvents() const;
  28525. bool GetCastShadows() const;
  28526. Component GetComponent(StringHash) const;
  28527. Material GetCustomMaterial() const;
  28528. ResourceRef GetCustomMaterialAttr() const;
  28529. float GetDistance() const;
  28530. float GetDrawDistance() const;
  28531. uint8 GetDrawableFlags() const;
  28532. VariantMap& GetEventDataMap() const;
  28533. Object GetEventSender() const;
  28534. Light GetFirstLight() const;
  28535. bool GetFlipX() const;
  28536. bool GetFlipY() const;
  28537. uint GetID() const;
  28538. bool GetInterceptNetworkUpdate(const String&) const;
  28539. int GetLayer() const;
  28540. uint GetLightMask() const;
  28541. Array<Light> GetLights() const;
  28542. float GetLodBias() const;
  28543. float GetLodDistance() const;
  28544. Geometry GetLodGeometry(uint, uint);
  28545. uint GetMaxLights() const;
  28546. float GetMaxZ() const;
  28547. float GetMinZ() const;
  28548. Node GetNode() const;
  28549. uint GetNumAttributes() const;
  28550. uint GetNumNetworkAttributes() const;
  28551. uint GetNumOccluderTriangles();
  28552. ObjectAnimation GetObjectAnimation() const;
  28553. ResourceRef GetObjectAnimationAttr() const;
  28554. int GetOrderInLayer() const;
  28555. Scene GetScene() const;
  28556. float GetShadowDistance() const;
  28557. uint GetShadowMask() const;
  28558. float GetSortValue() const;
  28559. Sprite2D GetSprite() const;
  28560. ResourceRef GetSpriteAttr() const;
  28561. Object GetSubsystem(StringHash) const;
  28562. bool GetSwapXY() const;
  28563. StringHash GetType() const;
  28564. UpdateGeometryType GetUpdateGeometryType();
  28565. bool GetUseDrawRect() const;
  28566. bool GetUseHotSpot() const;
  28567. bool GetUseTextureRect() const;
  28568. Array<Light> GetVertexLights() const;
  28569. uint GetViewMask() const;
  28570. Zone GetZone() const;
  28571. uint GetZoneMask() const;
  28572. bool HasBasePass(uint) const;
  28573. bool HasEventHandlers() const;
  28574. bool HasSubscribedToEvent(Object, StringHash) const;
  28575. bool HasSubscribedToEvent(StringHash) const;
  28576. bool IsEnabled() const;
  28577. bool IsEnabledEffective() const;
  28578. bool IsInView() const;
  28579. bool IsInView(Camera) const;
  28580. bool IsInView(const FrameInfo&, bool = false) const;
  28581. bool IsInstanceOf(StringHash) const;
  28582. bool IsOccludee() const;
  28583. bool IsOccluder() const;
  28584. bool IsReplicated() const;
  28585. bool IsTemporary() const;
  28586. bool IsZoneDirty() const;
  28587. void LimitLights();
  28588. void LimitVertexLights(bool);
  28589. bool Load(Deserializer&);
  28590. bool LoadJSON(const JSONValue&);
  28591. bool LoadXML(const XMLElement&);
  28592. void MarkForUpdate();
  28593. void MarkInView(const FrameInfo&);
  28594. void MarkInView(uint);
  28595. void MarkNetworkUpdate();
  28596. operator Object() const;
  28597. void OnEvent(Object, StringHash, VariantMap&);
  28598. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28599. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28600. void OnSetEnabled();
  28601. void PrepareNetworkUpdate();
  28602. bool ReadDeltaUpdate(Deserializer&);
  28603. bool ReadLatestDataUpdate(Deserializer&);
  28604. const Rect& GetDrawRect() const;
  28605. const Rect& GetTextureRect() const;
  28606. operator RefCounted() const;
  28607. int Refs() const;
  28608. void Remove();
  28609. void RemoveAttributeAnimation(const String&);
  28610. void RemoveInstanceDefault();
  28611. void RemoveObjectAnimation();
  28612. void ResetToDefault();
  28613. bool Save(Serializer&) const;
  28614. bool SaveDefaultAttributes() const;
  28615. bool SaveJSON(JSONValue&) const;
  28616. bool SaveXML(XMLElement&) const;
  28617. void SendEvent(StringHash);
  28618. void SendEvent(StringHash, VariantMap&);
  28619. operator Serializable() const;
  28620. void SetAlpha(float);
  28621. void SetAnimationEnabled(bool);
  28622. void SetAnimationTime(float);
  28623. bool SetAttribute(const String&, const Variant&);
  28624. bool SetAttribute(uint, const Variant&);
  28625. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28626. void SetAttributeAnimationSpeed(const String&, float);
  28627. void SetAttributeAnimationTime(const String&, float);
  28628. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28629. void SetBasePass(uint);
  28630. void SetBlendMode(BlendMode);
  28631. void SetBlockEvents(bool);
  28632. void SetCastShadows(bool);
  28633. void SetColor(const Color&);
  28634. void SetCustomMaterial(Material);
  28635. void SetCustomMaterialAttr(const ResourceRef&);
  28636. void SetDrawDistance(float);
  28637. void SetDrawRect(const Rect&);
  28638. void SetEnabled(bool);
  28639. void SetFlip(bool, bool, bool = false);
  28640. void SetFlipX(bool);
  28641. void SetFlipY(bool);
  28642. void SetGlobalVar(StringHash, const Variant&);
  28643. void SetHotSpot(const Vector2&);
  28644. void SetInstanceDefault(bool);
  28645. void SetInterceptNetworkUpdate(const String&, bool);
  28646. void SetLayer(int);
  28647. void SetLightMask(uint);
  28648. void SetLodBias(float);
  28649. void SetMaxLights(uint);
  28650. void SetMinMaxZ(float, float);
  28651. void SetObjectAnimation(ObjectAnimation);
  28652. void SetObjectAnimationAttr(const ResourceRef&);
  28653. void SetOccludee(bool);
  28654. void SetOccluder(bool);
  28655. void SetOrderInLayer(int);
  28656. void SetShadowDistance(float);
  28657. void SetShadowMask(uint);
  28658. void SetSortValue(float);
  28659. void SetSprite(Sprite2D);
  28660. void SetSpriteAttr(const ResourceRef&);
  28661. void SetSwapXY(bool);
  28662. void SetTemporary(bool);
  28663. void SetTextureRect(const Rect&);
  28664. void SetUseDrawRect(bool);
  28665. void SetUseHotSpot(bool);
  28666. void SetUseTextureRect(bool);
  28667. void SetViewMask(uint);
  28668. void SetZone(Zone, bool = false);
  28669. void SetZoneMask(uint);
  28670. operator StretchableSprite2D() const;
  28671. const String& GetCategory() const;
  28672. const String& GetTypeName() const;
  28673. void UnsubscribeFromAllEvents();
  28674. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28675. void UnsubscribeFromEvent(Object, StringHash);
  28676. void UnsubscribeFromEvent(StringHash);
  28677. void UnsubscribeFromEvents(Object);
  28678. void Update(const FrameInfo&);
  28679. void UpdateBatches(const FrameInfo&);
  28680. void UpdateGeometry(const FrameInfo&);
  28681. const Variant& GetGlobalVar(StringHash) const;
  28682. const VariantMap& GetGlobalVars() const;
  28683. const Vector2& GetHotSpot() const;
  28684. int WeakRefs() const;
  28685. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28686. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28687. void WriteLatestDataUpdate(Serializer&, uint8);
  28688. operator const Animatable() const;
  28689. operator const AnimatedSprite2D() const;
  28690. operator const Component() const;
  28691. operator const Drawable2D() const;
  28692. operator const Drawable() const;
  28693. operator const Object() const;
  28694. operator const RefCounted() const;
  28695. operator const Serializable() const;
  28696. operator const StretchableSprite2D() const;
  28697. // Properties:
  28698. float alpha;
  28699. bool animationEnabled;
  28700. /* readonly */
  28701. Array<Variant> attributeDefaults;
  28702. /* readonly */
  28703. Array<AttributeInfo> attributeInfos;
  28704. Array<Variant> attributes;
  28705. BlendMode blendMode;
  28706. /* readonly */
  28707. BoundingBox boundingBox;
  28708. bool castShadows;
  28709. /* readonly */
  28710. String category;
  28711. Color color;
  28712. Material customMaterial;
  28713. float drawDistance;
  28714. Rect drawRect;
  28715. bool enabled;
  28716. /* readonly */
  28717. bool enabledEffective;
  28718. bool flipX;
  28719. bool flipY;
  28720. Array<Variant> globalVar;
  28721. /* readonly */
  28722. VariantMap globalVars;
  28723. Vector2 hotSpot;
  28724. /* readonly */
  28725. uint id;
  28726. /* readonly */
  28727. bool inView;
  28728. int layer;
  28729. uint lightMask;
  28730. float lodBias;
  28731. uint maxLights;
  28732. /* readonly */
  28733. Node node;
  28734. /* readonly */
  28735. uint numAttributes;
  28736. ObjectAnimation objectAnimation;
  28737. bool occludee;
  28738. bool occluder;
  28739. int orderInLayer;
  28740. /* readonly */
  28741. int refs;
  28742. /* readonly */
  28743. bool replicated;
  28744. float shadowDistance;
  28745. uint shadowMask;
  28746. Sprite2D sprite;
  28747. bool swapXY;
  28748. bool temporary;
  28749. Rect textureRect;
  28750. /* readonly */
  28751. StringHash type;
  28752. /* readonly */
  28753. String typeName;
  28754. bool useDrawRect;
  28755. bool useHotSpot;
  28756. bool useTextureRect;
  28757. uint viewMask;
  28758. /* readonly */
  28759. int weakRefs;
  28760. /* readonly */
  28761. BoundingBox worldBoundingBox;
  28762. /* readonly */
  28763. Zone zone;
  28764. uint zoneMask;
  28765. };
  28766. class StoredLogMessage
  28767. {
  28768. public:
  28769. ~StoredLogMessage();
  28770. StoredLogMessage();
  28771. StoredLogMessage(const String&in, int, bool);
  28772. // Methods:
  28773. StoredLogMessage& operator=(const StoredLogMessage&);
  28774. // Properties:
  28775. bool error;
  28776. int level;
  28777. String message;
  28778. };
  28779. class StretchableSprite2D
  28780. {
  28781. public:
  28782. StretchableSprite2D();
  28783. // Methods:
  28784. void AddLight(Light);
  28785. void AddVertexLight(Light);
  28786. void AllocateNetworkState();
  28787. operator Animatable() const;
  28788. void ApplyAttributes();
  28789. const BoundingBox& GetBoundingBox() const;
  28790. const BoundingBox& GetWorldBoundingBox();
  28791. void CleanupConnection(Connection);
  28792. const Color& GetColor() const;
  28793. operator Component() const;
  28794. void DrawDebugGeometry(DebugRenderer, bool);
  28795. bool DrawOcclusion(OcclusionBuffer);
  28796. operator Drawable2D() const;
  28797. operator Drawable() const;
  28798. float GetAlpha() const;
  28799. bool GetAnimationEnabled() const;
  28800. Variant GetAttribute(const String&) const;
  28801. Variant GetAttribute(uint) const;
  28802. ValueAnimation GetAttributeAnimation(const String&) const;
  28803. float GetAttributeAnimationSpeed(const String&) const;
  28804. float GetAttributeAnimationTime(const String&) const;
  28805. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28806. Variant GetAttributeDefault(const String&) const;
  28807. Variant GetAttributeDefault(uint) const;
  28808. BlendMode GetBlendMode() const;
  28809. bool GetBlockEvents() const;
  28810. bool GetCastShadows() const;
  28811. Component GetComponent(StringHash) const;
  28812. Material GetCustomMaterial() const;
  28813. ResourceRef GetCustomMaterialAttr() const;
  28814. float GetDistance() const;
  28815. float GetDrawDistance() const;
  28816. uint8 GetDrawableFlags() const;
  28817. VariantMap& GetEventDataMap() const;
  28818. Object GetEventSender() const;
  28819. Light GetFirstLight() const;
  28820. bool GetFlipX() const;
  28821. bool GetFlipY() const;
  28822. uint GetID() const;
  28823. bool GetInterceptNetworkUpdate(const String&) const;
  28824. int GetLayer() const;
  28825. uint GetLightMask() const;
  28826. Array<Light> GetLights() const;
  28827. float GetLodBias() const;
  28828. float GetLodDistance() const;
  28829. Geometry GetLodGeometry(uint, uint);
  28830. uint GetMaxLights() const;
  28831. float GetMaxZ() const;
  28832. float GetMinZ() const;
  28833. Node GetNode() const;
  28834. uint GetNumAttributes() const;
  28835. uint GetNumNetworkAttributes() const;
  28836. uint GetNumOccluderTriangles();
  28837. ObjectAnimation GetObjectAnimation() const;
  28838. ResourceRef GetObjectAnimationAttr() const;
  28839. int GetOrderInLayer() const;
  28840. Scene GetScene() const;
  28841. float GetShadowDistance() const;
  28842. uint GetShadowMask() const;
  28843. float GetSortValue() const;
  28844. Sprite2D GetSprite() const;
  28845. ResourceRef GetSpriteAttr() const;
  28846. Object GetSubsystem(StringHash) const;
  28847. bool GetSwapXY() const;
  28848. StringHash GetType() const;
  28849. UpdateGeometryType GetUpdateGeometryType();
  28850. bool GetUseDrawRect() const;
  28851. bool GetUseHotSpot() const;
  28852. bool GetUseTextureRect() const;
  28853. Array<Light> GetVertexLights() const;
  28854. uint GetViewMask() const;
  28855. Zone GetZone() const;
  28856. uint GetZoneMask() const;
  28857. bool HasBasePass(uint) const;
  28858. bool HasEventHandlers() const;
  28859. bool HasSubscribedToEvent(Object, StringHash) const;
  28860. bool HasSubscribedToEvent(StringHash) const;
  28861. const IntRect& GetBorder() const;
  28862. bool IsEnabled() const;
  28863. bool IsEnabledEffective() const;
  28864. bool IsInView() const;
  28865. bool IsInView(Camera) const;
  28866. bool IsInView(const FrameInfo&, bool = false) const;
  28867. bool IsInstanceOf(StringHash) const;
  28868. bool IsOccludee() const;
  28869. bool IsOccluder() const;
  28870. bool IsReplicated() const;
  28871. bool IsTemporary() const;
  28872. bool IsZoneDirty() const;
  28873. void LimitLights();
  28874. void LimitVertexLights(bool);
  28875. bool Load(Deserializer&);
  28876. bool LoadJSON(const JSONValue&);
  28877. bool LoadXML(const XMLElement&);
  28878. void MarkForUpdate();
  28879. void MarkInView(const FrameInfo&);
  28880. void MarkInView(uint);
  28881. void MarkNetworkUpdate();
  28882. operator Object() const;
  28883. void OnEvent(Object, StringHash, VariantMap&);
  28884. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28885. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28886. void OnSetEnabled();
  28887. void PrepareNetworkUpdate();
  28888. bool ReadDeltaUpdate(Deserializer&);
  28889. bool ReadLatestDataUpdate(Deserializer&);
  28890. const Rect& GetDrawRect() const;
  28891. const Rect& GetTextureRect() const;
  28892. operator RefCounted() const;
  28893. int Refs() const;
  28894. void Remove();
  28895. void RemoveAttributeAnimation(const String&);
  28896. void RemoveInstanceDefault();
  28897. void RemoveObjectAnimation();
  28898. void ResetToDefault();
  28899. bool Save(Serializer&) const;
  28900. bool SaveDefaultAttributes() const;
  28901. bool SaveJSON(JSONValue&) const;
  28902. bool SaveXML(XMLElement&) const;
  28903. void SendEvent(StringHash);
  28904. void SendEvent(StringHash, VariantMap&);
  28905. operator Serializable() const;
  28906. void SetAlpha(float);
  28907. void SetAnimationEnabled(bool);
  28908. void SetAnimationTime(float);
  28909. bool SetAttribute(const String&, const Variant&);
  28910. bool SetAttribute(uint, const Variant&);
  28911. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28912. void SetAttributeAnimationSpeed(const String&, float);
  28913. void SetAttributeAnimationTime(const String&, float);
  28914. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28915. void SetBasePass(uint);
  28916. void SetBlendMode(BlendMode);
  28917. void SetBlockEvents(bool);
  28918. void SetBorder(const IntRect&);
  28919. void SetCastShadows(bool);
  28920. void SetColor(const Color&);
  28921. void SetCustomMaterial(Material);
  28922. void SetCustomMaterialAttr(const ResourceRef&);
  28923. void SetDrawDistance(float);
  28924. void SetDrawRect(const Rect&);
  28925. void SetEnabled(bool);
  28926. void SetFlip(bool, bool, bool = false);
  28927. void SetFlipX(bool);
  28928. void SetFlipY(bool);
  28929. void SetGlobalVar(StringHash, const Variant&);
  28930. void SetHotSpot(const Vector2&);
  28931. void SetInstanceDefault(bool);
  28932. void SetInterceptNetworkUpdate(const String&, bool);
  28933. void SetLayer(int);
  28934. void SetLightMask(uint);
  28935. void SetLodBias(float);
  28936. void SetMaxLights(uint);
  28937. void SetMinMaxZ(float, float);
  28938. void SetObjectAnimation(ObjectAnimation);
  28939. void SetObjectAnimationAttr(const ResourceRef&);
  28940. void SetOccludee(bool);
  28941. void SetOccluder(bool);
  28942. void SetOrderInLayer(int);
  28943. void SetShadowDistance(float);
  28944. void SetShadowMask(uint);
  28945. void SetSortValue(float);
  28946. void SetSprite(Sprite2D);
  28947. void SetSpriteAttr(const ResourceRef&);
  28948. void SetSwapXY(bool);
  28949. void SetTemporary(bool);
  28950. void SetTextureRect(const Rect&);
  28951. void SetUseDrawRect(bool);
  28952. void SetUseHotSpot(bool);
  28953. void SetUseTextureRect(bool);
  28954. void SetViewMask(uint);
  28955. void SetZone(Zone, bool = false);
  28956. void SetZoneMask(uint);
  28957. operator StaticSprite2D() const;
  28958. const String& GetCategory() const;
  28959. const String& GetTypeName() const;
  28960. void UnsubscribeFromAllEvents();
  28961. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28962. void UnsubscribeFromEvent(Object, StringHash);
  28963. void UnsubscribeFromEvent(StringHash);
  28964. void UnsubscribeFromEvents(Object);
  28965. void Update(const FrameInfo&);
  28966. void UpdateBatches(const FrameInfo&);
  28967. void UpdateGeometry(const FrameInfo&);
  28968. const Variant& GetGlobalVar(StringHash) const;
  28969. const VariantMap& GetGlobalVars() const;
  28970. const Vector2& GetHotSpot() const;
  28971. int WeakRefs() const;
  28972. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28973. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28974. void WriteLatestDataUpdate(Serializer&, uint8);
  28975. operator const Animatable() const;
  28976. operator const Component() const;
  28977. operator const Drawable2D() const;
  28978. operator const Drawable() const;
  28979. operator const Object() const;
  28980. operator const RefCounted() const;
  28981. operator const Serializable() const;
  28982. operator const StaticSprite2D() const;
  28983. // Properties:
  28984. float alpha;
  28985. bool animationEnabled;
  28986. /* readonly */
  28987. Array<Variant> attributeDefaults;
  28988. /* readonly */
  28989. Array<AttributeInfo> attributeInfos;
  28990. Array<Variant> attributes;
  28991. BlendMode blendMode;
  28992. IntRect border;
  28993. /* readonly */
  28994. BoundingBox boundingBox;
  28995. bool castShadows;
  28996. /* readonly */
  28997. String category;
  28998. Color color;
  28999. Material customMaterial;
  29000. float drawDistance;
  29001. Rect drawRect;
  29002. bool enabled;
  29003. /* readonly */
  29004. bool enabledEffective;
  29005. bool flipX;
  29006. bool flipY;
  29007. Array<Variant> globalVar;
  29008. /* readonly */
  29009. VariantMap globalVars;
  29010. Vector2 hotSpot;
  29011. /* readonly */
  29012. uint id;
  29013. /* readonly */
  29014. bool inView;
  29015. int layer;
  29016. uint lightMask;
  29017. float lodBias;
  29018. uint maxLights;
  29019. /* readonly */
  29020. Node node;
  29021. /* readonly */
  29022. uint numAttributes;
  29023. ObjectAnimation objectAnimation;
  29024. bool occludee;
  29025. bool occluder;
  29026. int orderInLayer;
  29027. /* readonly */
  29028. int refs;
  29029. /* readonly */
  29030. bool replicated;
  29031. float shadowDistance;
  29032. uint shadowMask;
  29033. Sprite2D sprite;
  29034. bool swapXY;
  29035. bool temporary;
  29036. Rect textureRect;
  29037. /* readonly */
  29038. StringHash type;
  29039. /* readonly */
  29040. String typeName;
  29041. bool useDrawRect;
  29042. bool useHotSpot;
  29043. bool useTextureRect;
  29044. uint viewMask;
  29045. /* readonly */
  29046. int weakRefs;
  29047. /* readonly */
  29048. BoundingBox worldBoundingBox;
  29049. /* readonly */
  29050. Zone zone;
  29051. uint zoneMask;
  29052. };
  29053. class String
  29054. {
  29055. public:
  29056. ~String();
  29057. String();
  29058. String(const String&in);
  29059. String(int);
  29060. String(int16);
  29061. String(int64);
  29062. String(uint);
  29063. String(uint16);
  29064. String(uint64);
  29065. String(float);
  29066. String(double);
  29067. String(bool);
  29068. String(int8);
  29069. String(int8, uint);
  29070. String(const char*);
  29071. // Methods:
  29072. String operator+(bool) const;
  29073. String operator+(const String&) const;
  29074. String operator+(double) const;
  29075. String operator+(float) const;
  29076. String operator+(int) const;
  29077. String operator+(uint) const;
  29078. String& operator+=(bool);
  29079. String& operator+=(const String&);
  29080. String& operator+=(double);
  29081. String& operator+=(float);
  29082. String& operator+=(int);
  29083. String& operator+=(int16);
  29084. String& operator+=(int64);
  29085. String& operator+=(int8);
  29086. String& operator+=(uint);
  29087. String& operator+=(uint16);
  29088. String& operator+=(uint64);
  29089. int operator<(const String&) const;
  29090. String& operator=(bool);
  29091. String& operator=(const String&);
  29092. String& operator=(double);
  29093. String& operator=(float);
  29094. String& operator=(int);
  29095. String& operator=(uint);
  29096. bool operator==(const String&) const;
  29097. int8& operator[](uint);
  29098. String& Append(const String&);
  29099. String& Append(int8);
  29100. String& AppendUTF8(uint);
  29101. int8& At(uint);
  29102. uint AtUTF8(uint) const;
  29103. int8 Back() const;
  29104. uint ByteOffsetUTF8(uint) const;
  29105. uint Capacity() const;
  29106. void Clear();
  29107. void Compact();
  29108. int Compare(const String&, bool = true) const;
  29109. bool Contains(const String&, bool = true) const;
  29110. bool Contains(int8, bool = true) const;
  29111. bool Empty() const;
  29112. bool EndsWith(const String&, bool = true) const;
  29113. void Erase(uint, uint = 1);
  29114. uint Find(const String&, uint = 0, bool = true) const;
  29115. uint Find(int8, uint = 0, bool = true) const;
  29116. uint FindLast(const String&, uint = String :: NPOS, bool = true) const;
  29117. uint FindLast(int8, uint = String :: NPOS, bool = true) const;
  29118. int8 Front() const;
  29119. void Insert(uint, const String&);
  29120. void Insert(uint, int8);
  29121. void Join(Array<String>, const String&);
  29122. uint Length() const;
  29123. uint LengthUTF8() const;
  29124. uint NextUTF8Char(uint&) const;
  29125. void Replace(const String&, const String&, bool = true);
  29126. void Replace(int8, int8, bool = true);
  29127. void Replace(uint, uint, const String&);
  29128. void ReplaceUTF8(uint, uint);
  29129. String Replaced(const String&, const String&, bool = true) const;
  29130. String Replaced(int8, int8, bool = true) const;
  29131. void Reserve(uint);
  29132. void Resize(uint);
  29133. Array<String> Split(int8, bool = false) const;
  29134. bool StartsWith(const String&, bool = true) const;
  29135. String Substring(uint) const;
  29136. String Substring(uint, uint) const;
  29137. String SubstringUTF8(uint) const;
  29138. String SubstringUTF8(uint, uint) const;
  29139. void Swap(String&);
  29140. bool ToBool() const;
  29141. Color ToColor() const;
  29142. double ToDouble() const;
  29143. float ToFloat() const;
  29144. uint ToHash() const;
  29145. int ToInt(int base = 10) const;
  29146. int64 ToInt64(int base = 10) const;
  29147. IntRect ToIntRect() const;
  29148. IntVector2 ToIntVector2() const;
  29149. IntVector3 ToIntVector3() const;
  29150. String ToLower() const;
  29151. Matrix3 ToMatrix3() const;
  29152. Matrix3x4 ToMatrix3x4() const;
  29153. Matrix4 ToMatrix4() const;
  29154. Quaternion ToQuaternion() const;
  29155. uint ToUInt(int base = 10) const;
  29156. uint64 ToUInt64(int base = 10) const;
  29157. String ToUpper() const;
  29158. Vector2 ToVector2() const;
  29159. Vector3 ToVector3() const;
  29160. Vector4 ToVector4(bool allowMissingCoords = false) const;
  29161. Variant ToVectorVariant() const;
  29162. String Trimmed() const;
  29163. const int8& operator[](uint) const;
  29164. const int8& At(uint) const;
  29165. // Properties:
  29166. /* readonly */
  29167. bool empty;
  29168. /* readonly */
  29169. uint length;
  29170. /* readonly */
  29171. uint utf8Length;
  29172. // Constants:
  29173. static const String EMPTY;
  29174. static const uint MIN_CAPACITY;
  29175. static const uint NPOS;
  29176. };
  29177. class StringHash
  29178. {
  29179. public:
  29180. StringHash();
  29181. StringHash(const StringHash&in);
  29182. StringHash(uint);
  29183. StringHash(const String&in);
  29184. // Methods:
  29185. StringHash operator+(const StringHash&) const;
  29186. StringHash& operator+=(const StringHash&);
  29187. int operator<(const StringHash&) const;
  29188. StringHash& operator=(const StringHash&);
  29189. bool operator==(const StringHash&) const;
  29190. String Reverse() const;
  29191. uint ToHash() const;
  29192. String ToString() const;
  29193. uint Value() const;
  29194. // Properties:
  29195. /* readonly */
  29196. uint value;
  29197. // Constants:
  29198. static const StringHash ZERO;
  29199. };
  29200. class StringHashRegister
  29201. {
  29202. public:
  29203. ~StringHashRegister();
  29204. StringHashRegister(bool);
  29205. // Methods:
  29206. bool Contains(const StringHash&) const;
  29207. String GetStringCopy(const StringHash&) const;
  29208. const String& GetString(const StringHash&) const;
  29209. };
  29210. class Technique
  29211. {
  29212. public:
  29213. Technique();
  29214. // Methods:
  29215. bool BeginLoad(Deserializer&);
  29216. Technique Clone(const String& = String :: EMPTY) const;
  29217. Technique CloneWithDefines(const String&, const String&);
  29218. Pass CreatePass(const String&);
  29219. bool EndLoad();
  29220. AsyncLoadState GetAsyncLoadState() const;
  29221. bool GetBlockEvents() const;
  29222. VariantMap& GetEventDataMap() const;
  29223. Object GetEventSender() const;
  29224. uint GetMemoryUse() const;
  29225. StringHash GetNameHash() const;
  29226. uint GetNumPasses() const;
  29227. Pass GetPass(const String&) const;
  29228. Pass GetPass(uint) const;
  29229. Array<String> GetPassNames() const;
  29230. Array<Pass> GetPasses() const;
  29231. Object GetSubsystem(StringHash) const;
  29232. Pass GetSupportedPass(const String&) const;
  29233. Pass GetSupportedPass(uint) const;
  29234. StringHash GetType() const;
  29235. uint GetUseTimer();
  29236. bool HasEventHandlers() const;
  29237. bool HasPass(const String&) const;
  29238. bool HasPass(uint) const;
  29239. bool HasSubscribedToEvent(Object, StringHash) const;
  29240. bool HasSubscribedToEvent(StringHash) const;
  29241. bool IsDesktop() const;
  29242. bool IsInstanceOf(StringHash) const;
  29243. bool IsSupported() const;
  29244. bool Load(Deserializer&);
  29245. bool Load(File);
  29246. bool Load(VectorBuffer&);
  29247. bool Load(const String&);
  29248. bool LoadFile(const String&);
  29249. operator Object() const;
  29250. void OnEvent(Object, StringHash, VariantMap&);
  29251. operator RefCounted() const;
  29252. int Refs() const;
  29253. void ReleaseShaders();
  29254. void RemovePass(const String&);
  29255. void ResetUseTimer();
  29256. operator Resource() const;
  29257. bool Save(File) const;
  29258. bool Save(Serializer&) const;
  29259. bool Save(VectorBuffer&) const;
  29260. bool Save(const String&) const;
  29261. bool SaveFile(const String&) const;
  29262. void SendEvent(StringHash);
  29263. void SendEvent(StringHash, VariantMap&);
  29264. void SetAsyncLoadState(AsyncLoadState);
  29265. void SetBlockEvents(bool);
  29266. void SetGlobalVar(StringHash, const Variant&);
  29267. void SetIsDesktop(bool);
  29268. void SetMemoryUse(uint);
  29269. void SetName(const String&);
  29270. const String& GetCategory() const;
  29271. const String& GetName() const;
  29272. const String& GetTypeName() const;
  29273. void UnsubscribeFromAllEvents();
  29274. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29275. void UnsubscribeFromEvent(Object, StringHash);
  29276. void UnsubscribeFromEvent(StringHash);
  29277. void UnsubscribeFromEvents(Object);
  29278. const Variant& GetGlobalVar(StringHash) const;
  29279. const VariantMap& GetGlobalVars() const;
  29280. int WeakRefs() const;
  29281. operator const Object() const;
  29282. operator const RefCounted() const;
  29283. operator const Resource() const;
  29284. // Properties:
  29285. /* readonly */
  29286. String category;
  29287. bool desktop;
  29288. Array<Variant> globalVar;
  29289. /* readonly */
  29290. VariantMap globalVars;
  29291. /* readonly */
  29292. uint memoryUse;
  29293. String name;
  29294. /* readonly */
  29295. uint numPasses;
  29296. /* readonly */
  29297. Array<String> passNames;
  29298. /* readonly */
  29299. Array<Pass> passes;
  29300. /* readonly */
  29301. int refs;
  29302. /* readonly */
  29303. bool supported;
  29304. /* readonly */
  29305. StringHash type;
  29306. /* readonly */
  29307. String typeName;
  29308. /* readonly */
  29309. uint useTimer;
  29310. /* readonly */
  29311. int weakRefs;
  29312. // Constants:
  29313. static const uint alphaPassIndex;
  29314. static const uint basePassIndex;
  29315. static const uint deferredPassIndex;
  29316. static const uint lightPassIndex;
  29317. static const uint litAlphaPassIndex;
  29318. static const uint litBasePassIndex;
  29319. static const uint materialPassIndex;
  29320. static const uint shadowPassIndex;
  29321. };
  29322. class TechniqueEntry
  29323. {
  29324. public:
  29325. ~TechniqueEntry();
  29326. TechniqueEntry();
  29327. TechniqueEntry(Technique@, uint, float);
  29328. // Methods:
  29329. TechniqueEntry& operator=(const TechniqueEntry&);
  29330. // Properties:
  29331. float lodDistance;
  29332. uint qualityLevel;
  29333. Technique technique;
  29334. };
  29335. class Terrain
  29336. {
  29337. public:
  29338. Terrain();
  29339. // Methods:
  29340. void AllocateNetworkState();
  29341. operator Animatable() const;
  29342. void ApplyAttributes();
  29343. void ApplyHeightMap();
  29344. void CleanupConnection(Connection);
  29345. operator Component() const;
  29346. void CreatePatchGeometry(TerrainPatch);
  29347. void DrawDebugGeometry(DebugRenderer, bool);
  29348. bool GetAnimationEnabled() const;
  29349. Variant GetAttribute(const String&) const;
  29350. Variant GetAttribute(uint) const;
  29351. ValueAnimation GetAttributeAnimation(const String&) const;
  29352. float GetAttributeAnimationSpeed(const String&) const;
  29353. float GetAttributeAnimationTime(const String&) const;
  29354. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29355. Variant GetAttributeDefault(const String&) const;
  29356. Variant GetAttributeDefault(uint) const;
  29357. bool GetBlockEvents() const;
  29358. bool GetCastShadows() const;
  29359. Component GetComponent(StringHash) const;
  29360. float GetDrawDistance() const;
  29361. Terrain GetEastNeighbor() const;
  29362. VariantMap& GetEventDataMap() const;
  29363. Object GetEventSender() const;
  29364. float GetHeight(const Vector3&) const;
  29365. Image GetHeightMap() const;
  29366. ResourceRef GetHeightMapAttr() const;
  29367. uint GetID() const;
  29368. bool GetInterceptNetworkUpdate(const String&) const;
  29369. uint GetLightMask() const;
  29370. float GetLodBias() const;
  29371. Material GetMaterial() const;
  29372. ResourceRef GetMaterialAttr() const;
  29373. uint GetMaxLights() const;
  29374. uint GetMaxLodLevels() const;
  29375. TerrainPatch GetNeighborPatch(int, int) const;
  29376. Node GetNode() const;
  29377. Vector3 GetNormal(const Vector3&) const;
  29378. Terrain GetNorthNeighbor() const;
  29379. uint GetNumAttributes() const;
  29380. uint GetNumNetworkAttributes() const;
  29381. ObjectAnimation GetObjectAnimation() const;
  29382. ResourceRef GetObjectAnimationAttr() const;
  29383. uint GetOcclusionLodLevel() const;
  29384. TerrainPatch GetPatch(int, int) const;
  29385. TerrainPatch GetPatch(uint) const;
  29386. int GetPatchSize() const;
  29387. Scene GetScene() const;
  29388. float GetShadowDistance() const;
  29389. uint GetShadowMask() const;
  29390. bool GetSmoothing() const;
  29391. Terrain GetSouthNeighbor() const;
  29392. Object GetSubsystem(StringHash) const;
  29393. StringHash GetType() const;
  29394. uint GetViewMask() const;
  29395. Terrain GetWestNeighbor() const;
  29396. uint GetZoneMask() const;
  29397. bool HasEventHandlers() const;
  29398. bool HasSubscribedToEvent(Object, StringHash) const;
  29399. bool HasSubscribedToEvent(StringHash) const;
  29400. Vector3 HeightMapToWorld(const IntVector2&) const;
  29401. const IntVector2& GetNumPatches() const;
  29402. const IntVector2& GetNumVertices() const;
  29403. bool IsEnabled() const;
  29404. bool IsEnabledEffective() const;
  29405. bool IsInstanceOf(StringHash) const;
  29406. bool IsOccludee() const;
  29407. bool IsOccluder() const;
  29408. bool IsReplicated() const;
  29409. bool IsTemporary() const;
  29410. bool IsVisible() const;
  29411. bool Load(Deserializer&);
  29412. bool LoadJSON(const JSONValue&);
  29413. bool LoadXML(const XMLElement&);
  29414. void MarkNetworkUpdate();
  29415. operator Object() const;
  29416. void OnEvent(Object, StringHash, VariantMap&);
  29417. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29418. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29419. void OnSetEnabled();
  29420. void PrepareNetworkUpdate();
  29421. bool ReadDeltaUpdate(Deserializer&);
  29422. bool ReadLatestDataUpdate(Deserializer&);
  29423. operator RefCounted() const;
  29424. int Refs() const;
  29425. void Remove();
  29426. void RemoveAttributeAnimation(const String&);
  29427. void RemoveInstanceDefault();
  29428. void RemoveObjectAnimation();
  29429. void ResetToDefault();
  29430. bool Save(Serializer&) const;
  29431. bool SaveDefaultAttributes() const;
  29432. bool SaveJSON(JSONValue&) const;
  29433. bool SaveXML(XMLElement&) const;
  29434. void SendEvent(StringHash);
  29435. void SendEvent(StringHash, VariantMap&);
  29436. operator Serializable() const;
  29437. void SetAnimationEnabled(bool);
  29438. void SetAnimationTime(float);
  29439. bool SetAttribute(const String&, const Variant&);
  29440. bool SetAttribute(uint, const Variant&);
  29441. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  29442. void SetAttributeAnimationSpeed(const String&, float);
  29443. void SetAttributeAnimationTime(const String&, float);
  29444. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  29445. void SetBlockEvents(bool);
  29446. void SetCastShadows(bool);
  29447. void SetDrawDistance(float);
  29448. void SetEastNeighbor(Terrain);
  29449. void SetEnabled(bool);
  29450. void SetGlobalVar(StringHash, const Variant&);
  29451. bool SetHeightMap(Image);
  29452. void SetHeightMapAttr(const ResourceRef&);
  29453. void SetInstanceDefault(bool);
  29454. void SetInterceptNetworkUpdate(const String&, bool);
  29455. void SetLightMask(uint);
  29456. void SetLodBias(float);
  29457. void SetMaterial(Material);
  29458. void SetMaterialAttr(const ResourceRef&);
  29459. void SetMaxLights(uint);
  29460. void SetMaxLodLevels(uint);
  29461. void SetMaxLodLevelsAttr(uint);
  29462. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  29463. void SetNorthNeighbor(Terrain);
  29464. void SetObjectAnimation(ObjectAnimation);
  29465. void SetObjectAnimationAttr(const ResourceRef&);
  29466. void SetOccludee(bool);
  29467. void SetOccluder(bool);
  29468. void SetOcclusionLodLevel(uint);
  29469. void SetOcclusionLodLevelAttr(uint);
  29470. void SetPatchSize(int);
  29471. void SetPatchSizeAttr(int);
  29472. void SetShadowDistance(float);
  29473. void SetShadowMask(uint);
  29474. void SetSmoothing(bool);
  29475. void SetSouthNeighbor(Terrain);
  29476. void SetSpacing(const Vector3&);
  29477. void SetTemporary(bool);
  29478. void SetViewMask(uint);
  29479. void SetWestNeighbor(Terrain);
  29480. void SetZoneMask(uint);
  29481. const String& GetCategory() const;
  29482. const String& GetTypeName() const;
  29483. void UnsubscribeFromAllEvents();
  29484. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29485. void UnsubscribeFromEvent(Object, StringHash);
  29486. void UnsubscribeFromEvent(StringHash);
  29487. void UnsubscribeFromEvents(Object);
  29488. void UpdatePatchLod(TerrainPatch);
  29489. const Variant& GetGlobalVar(StringHash) const;
  29490. const VariantMap& GetGlobalVars() const;
  29491. const Vector3& GetSpacing() const;
  29492. int WeakRefs() const;
  29493. IntVector2 WorldToHeightMap(const Vector3&) const;
  29494. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  29495. void WriteInitialDeltaUpdate(Serializer&, uint8);
  29496. void WriteLatestDataUpdate(Serializer&, uint8);
  29497. operator const Animatable() const;
  29498. operator const Component() const;
  29499. operator const Object() const;
  29500. operator const RefCounted() const;
  29501. operator const Serializable() const;
  29502. // Properties:
  29503. bool animationEnabled;
  29504. /* readonly */
  29505. Array<Variant> attributeDefaults;
  29506. /* readonly */
  29507. Array<AttributeInfo> attributeInfos;
  29508. Array<Variant> attributes;
  29509. bool castShadows;
  29510. /* readonly */
  29511. String category;
  29512. float drawDistance;
  29513. Terrain eastNeighbor;
  29514. bool enabled;
  29515. /* readonly */
  29516. bool enabledEffective;
  29517. Array<Variant> globalVar;
  29518. /* readonly */
  29519. VariantMap globalVars;
  29520. Image heightMap;
  29521. /* readonly */
  29522. uint id;
  29523. uint lightMask;
  29524. float lodBias;
  29525. Material material;
  29526. uint maxLights;
  29527. uint maxLodLevels;
  29528. /* readonly */
  29529. Node node;
  29530. Terrain northNeighbor;
  29531. /* readonly */
  29532. uint numAttributes;
  29533. /* readonly */
  29534. IntVector2 numPatches;
  29535. /* readonly */
  29536. IntVector2 numVertices;
  29537. ObjectAnimation objectAnimation;
  29538. bool occludee;
  29539. bool occluder;
  29540. uint occlusionLodLevel;
  29541. int patchSize;
  29542. /* readonly */
  29543. Array<TerrainPatch> patches;
  29544. /* readonly */
  29545. int refs;
  29546. /* readonly */
  29547. bool replicated;
  29548. float shadowDistance;
  29549. uint shadowMask;
  29550. bool smoothing;
  29551. Terrain southNeighbor;
  29552. Vector3 spacing;
  29553. bool temporary;
  29554. /* readonly */
  29555. StringHash type;
  29556. /* readonly */
  29557. String typeName;
  29558. uint viewMask;
  29559. /* readonly */
  29560. int weakRefs;
  29561. Terrain westNeighbor;
  29562. uint zoneMask;
  29563. };
  29564. class TerrainPatch
  29565. {
  29566. public:
  29567. TerrainPatch();
  29568. // Methods:
  29569. void AddLight(Light);
  29570. void AddVertexLight(Light);
  29571. void AllocateNetworkState();
  29572. operator Animatable() const;
  29573. void ApplyAttributes();
  29574. const BoundingBox& GetBoundingBox() const;
  29575. const BoundingBox& GetWorldBoundingBox();
  29576. void CleanupConnection(Connection);
  29577. operator Component() const;
  29578. void DrawDebugGeometry(DebugRenderer, bool);
  29579. bool DrawOcclusion(OcclusionBuffer);
  29580. operator Drawable() const;
  29581. bool GetAnimationEnabled() const;
  29582. Variant GetAttribute(const String&) const;
  29583. Variant GetAttribute(uint) const;
  29584. ValueAnimation GetAttributeAnimation(const String&) const;
  29585. float GetAttributeAnimationSpeed(const String&) const;
  29586. float GetAttributeAnimationTime(const String&) const;
  29587. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29588. Variant GetAttributeDefault(const String&) const;
  29589. Variant GetAttributeDefault(uint) const;
  29590. bool GetBlockEvents() const;
  29591. bool GetCastShadows() const;
  29592. Component GetComponent(StringHash) const;
  29593. float GetDistance() const;
  29594. float GetDrawDistance() const;
  29595. uint8 GetDrawableFlags() const;
  29596. TerrainPatch GetEastPatch() const;
  29597. VariantMap& GetEventDataMap() const;
  29598. Object GetEventSender() const;
  29599. Light GetFirstLight() const;
  29600. Geometry GetGeometry() const;
  29601. uint GetID() const;
  29602. bool GetInterceptNetworkUpdate(const String&) const;
  29603. uint GetLightMask() const;
  29604. Array<Light> GetLights() const;
  29605. float GetLodBias() const;
  29606. float GetLodDistance() const;
  29607. Geometry GetLodGeometry(uint, uint);
  29608. uint GetLodLevel() const;
  29609. uint GetMaxLights() const;
  29610. Geometry GetMaxLodGeometry() const;
  29611. float GetMaxZ() const;
  29612. float GetMinZ() const;
  29613. Node GetNode() const;
  29614. TerrainPatch GetNorthPatch() const;
  29615. uint GetNumAttributes() const;
  29616. uint GetNumNetworkAttributes() const;
  29617. uint GetNumOccluderTriangles();
  29618. ObjectAnimation GetObjectAnimation() const;
  29619. ResourceRef GetObjectAnimationAttr() const;
  29620. Geometry GetOcclusionGeometry() const;
  29621. Terrain GetOwner() const;
  29622. Scene GetScene() const;
  29623. float GetShadowDistance() const;
  29624. uint GetShadowMask() const;
  29625. float GetSortValue() const;
  29626. TerrainPatch GetSouthPatch() const;
  29627. Object GetSubsystem(StringHash) const;
  29628. StringHash GetType() const;
  29629. UpdateGeometryType GetUpdateGeometryType();
  29630. VertexBuffer GetVertexBuffer() const;
  29631. Array<Light> GetVertexLights() const;
  29632. uint GetViewMask() const;
  29633. TerrainPatch GetWestPatch() const;
  29634. Zone GetZone() const;
  29635. uint GetZoneMask() const;
  29636. bool HasBasePass(uint) const;
  29637. bool HasEventHandlers() const;
  29638. bool HasSubscribedToEvent(Object, StringHash) const;
  29639. bool HasSubscribedToEvent(StringHash) const;
  29640. const IntVector2& GetCoordinates() const;
  29641. bool IsEnabled() const;
  29642. bool IsEnabledEffective() const;
  29643. bool IsInView() const;
  29644. bool IsInView(Camera) const;
  29645. bool IsInView(const FrameInfo&, bool = false) const;
  29646. bool IsInstanceOf(StringHash) const;
  29647. bool IsOccludee() const;
  29648. bool IsOccluder() const;
  29649. bool IsReplicated() const;
  29650. bool IsTemporary() const;
  29651. bool IsZoneDirty() const;
  29652. void LimitLights();
  29653. void LimitVertexLights(bool);
  29654. bool Load(Deserializer&);
  29655. bool LoadJSON(const JSONValue&);
  29656. bool LoadXML(const XMLElement&);
  29657. void MarkForUpdate();
  29658. void MarkInView(const FrameInfo&);
  29659. void MarkInView(uint);
  29660. void MarkNetworkUpdate();
  29661. operator Object() const;
  29662. void OnEvent(Object, StringHash, VariantMap&);
  29663. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29664. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29665. void OnSetEnabled();
  29666. void PrepareNetworkUpdate();
  29667. bool ReadDeltaUpdate(Deserializer&);
  29668. bool ReadLatestDataUpdate(Deserializer&);
  29669. operator RefCounted() const;
  29670. int Refs() const;
  29671. void Remove();
  29672. void RemoveAttributeAnimation(const String&);
  29673. void RemoveInstanceDefault();
  29674. void RemoveObjectAnimation();
  29675. void ResetLod();
  29676. void ResetToDefault();
  29677. bool Save(Serializer&) const;
  29678. bool SaveDefaultAttributes() const;
  29679. bool SaveJSON(JSONValue&) const;
  29680. bool SaveXML(XMLElement&) const;
  29681. void SendEvent(StringHash);
  29682. void SendEvent(StringHash, VariantMap&);
  29683. operator Serializable() const;
  29684. void SetAnimationEnabled(bool);
  29685. void SetAnimationTime(float);
  29686. bool SetAttribute(const String&, const Variant&);
  29687. bool SetAttribute(uint, const Variant&);
  29688. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  29689. void SetAttributeAnimationSpeed(const String&, float);
  29690. void SetAttributeAnimationTime(const String&, float);
  29691. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  29692. void SetBasePass(uint);
  29693. void SetBlockEvents(bool);
  29694. void SetBoundingBox(const BoundingBox&);
  29695. void SetCastShadows(bool);
  29696. void SetCoordinates(const IntVector2&);
  29697. void SetDrawDistance(float);
  29698. void SetEnabled(bool);
  29699. void SetGlobalVar(StringHash, const Variant&);
  29700. void SetInstanceDefault(bool);
  29701. void SetInterceptNetworkUpdate(const String&, bool);
  29702. void SetLightMask(uint);
  29703. void SetLodBias(float);
  29704. void SetMaterial(Material);
  29705. void SetMaxLights(uint);
  29706. void SetMinMaxZ(float, float);
  29707. void SetNeighbors(TerrainPatch, TerrainPatch, TerrainPatch, TerrainPatch);
  29708. void SetObjectAnimation(ObjectAnimation);
  29709. void SetObjectAnimationAttr(const ResourceRef&);
  29710. void SetOccludee(bool);
  29711. void SetOccluder(bool);
  29712. void SetOwner(Terrain);
  29713. void SetShadowDistance(float);
  29714. void SetShadowMask(uint);
  29715. void SetSortValue(float);
  29716. void SetTemporary(bool);
  29717. void SetViewMask(uint);
  29718. void SetZone(Zone, bool = false);
  29719. void SetZoneMask(uint);
  29720. const String& GetCategory() const;
  29721. const String& GetTypeName() const;
  29722. void UnsubscribeFromAllEvents();
  29723. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29724. void UnsubscribeFromEvent(Object, StringHash);
  29725. void UnsubscribeFromEvent(StringHash);
  29726. void UnsubscribeFromEvents(Object);
  29727. void Update(const FrameInfo&);
  29728. void UpdateBatches(const FrameInfo&);
  29729. void UpdateGeometry(const FrameInfo&);
  29730. const Variant& GetGlobalVar(StringHash) const;
  29731. const VariantMap& GetGlobalVars() const;
  29732. int WeakRefs() const;
  29733. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  29734. void WriteInitialDeltaUpdate(Serializer&, uint8);
  29735. void WriteLatestDataUpdate(Serializer&, uint8);
  29736. operator const Animatable() const;
  29737. operator const Component() const;
  29738. operator const Drawable() const;
  29739. operator const Object() const;
  29740. operator const RefCounted() const;
  29741. operator const Serializable() const;
  29742. // Properties:
  29743. bool animationEnabled;
  29744. /* readonly */
  29745. Array<Variant> attributeDefaults;
  29746. /* readonly */
  29747. Array<AttributeInfo> attributeInfos;
  29748. Array<Variant> attributes;
  29749. /* readonly */
  29750. BoundingBox boundingBox;
  29751. bool castShadows;
  29752. /* readonly */
  29753. String category;
  29754. float drawDistance;
  29755. bool enabled;
  29756. /* readonly */
  29757. bool enabledEffective;
  29758. Array<Variant> globalVar;
  29759. /* readonly */
  29760. VariantMap globalVars;
  29761. /* readonly */
  29762. uint id;
  29763. /* readonly */
  29764. bool inView;
  29765. uint lightMask;
  29766. float lodBias;
  29767. uint maxLights;
  29768. /* readonly */
  29769. Node node;
  29770. /* readonly */
  29771. uint numAttributes;
  29772. ObjectAnimation objectAnimation;
  29773. bool occludee;
  29774. bool occluder;
  29775. /* readonly */
  29776. int refs;
  29777. /* readonly */
  29778. bool replicated;
  29779. float shadowDistance;
  29780. uint shadowMask;
  29781. bool temporary;
  29782. /* readonly */
  29783. StringHash type;
  29784. /* readonly */
  29785. String typeName;
  29786. uint viewMask;
  29787. /* readonly */
  29788. int weakRefs;
  29789. /* readonly */
  29790. BoundingBox worldBoundingBox;
  29791. /* readonly */
  29792. Zone zone;
  29793. uint zoneMask;
  29794. };
  29795. class Text
  29796. {
  29797. public:
  29798. Text();
  29799. // Methods:
  29800. void AddChild(UIElement);
  29801. void AddTag(const String&);
  29802. void AddTags(Array<String>);
  29803. void AddTags(const String&, int8 = ';');
  29804. void AdjustScissor(IntRect&);
  29805. void AllocateNetworkState();
  29806. operator Animatable() const;
  29807. void ApplyAttributes();
  29808. void BringToFront();
  29809. void ClearSelection();
  29810. const Color& GetColor(Corner) const;
  29811. const Color& GetColorAttr() const;
  29812. const Color& GetDerivedColor() const;
  29813. const Color& GetEffectColor() const;
  29814. const Color& GetHoverColor() const;
  29815. const Color& GetSelectionColor() const;
  29816. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  29817. void DisableLayoutUpdate();
  29818. IntVector2 ElementToScreen(const IntVector2&);
  29819. void EnableLayoutUpdate();
  29820. bool FilterAttributes(XMLElement&) const;
  29821. uint FindChild(UIElement) const;
  29822. bool GetAnimationEnabled() const;
  29823. Variant GetAttribute(const String&) const;
  29824. Variant GetAttribute(uint) const;
  29825. ValueAnimation GetAttributeAnimation(const String&) const;
  29826. float GetAttributeAnimationSpeed(const String&) const;
  29827. float GetAttributeAnimationTime(const String&) const;
  29828. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29829. Variant GetAttributeDefault(const String&) const;
  29830. Variant GetAttributeDefault(uint) const;
  29831. bool GetAutoLocalizable() const;
  29832. bool GetBlockEvents() const;
  29833. bool GetBringToBack() const;
  29834. bool GetBringToFront() const;
  29835. Vector2 GetCharPosition(uint);
  29836. Vector2 GetCharSize(uint);
  29837. UIElement GetChild(const String&, bool = false) const;
  29838. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  29839. UIElement GetChild(uint) const;
  29840. Array<UIElement> GetChildren() const;
  29841. Array<UIElement> GetChildren(bool) const;
  29842. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  29843. bool GetClipChildren() const;
  29844. IntRect GetCombinedScreenRect();
  29845. XMLFile GetDefaultStyle(bool = true) const;
  29846. float GetDerivedOpacity() const;
  29847. uint GetDragButtonCombo() const;
  29848. uint GetDragButtonCount() const;
  29849. uint GetDragDropMode() const;
  29850. float GetEffectDepthBias() const;
  29851. bool GetEffectRoundStroke() const;
  29852. int GetEffectStrokeThickness() const;
  29853. IntVector2 GetEffectiveMinSize() const;
  29854. UIElement GetElementEventSender() const;
  29855. bool GetEnableAnchor() const;
  29856. VariantMap& GetEventDataMap() const;
  29857. Object GetEventSender() const;
  29858. FocusMode GetFocusMode() const;
  29859. Font GetFont() const;
  29860. ResourceRef GetFontAttr() const;
  29861. float GetFontSize() const;
  29862. int GetHeight() const;
  29863. HorizontalAlignment GetHorizontalAlignment() const;
  29864. int GetIndent() const;
  29865. int GetIndentSpacing() const;
  29866. int GetIndentWidth() const;
  29867. bool GetInterceptNetworkUpdate(const String&) const;
  29868. int GetLayoutElementMaxSize() const;
  29869. LayoutMode GetLayoutMode() const;
  29870. int GetLayoutSpacing() const;
  29871. int GetMaxHeight() const;
  29872. int GetMaxWidth() const;
  29873. int GetMinHeight() const;
  29874. int GetMinWidth() const;
  29875. uint GetNumAttributes() const;
  29876. uint GetNumChars() const;
  29877. uint GetNumChildren(bool = false) const;
  29878. uint GetNumNetworkAttributes() const;
  29879. uint GetNumRows() const;
  29880. ObjectAnimation GetObjectAnimation() const;
  29881. ResourceRef GetObjectAnimationAttr() const;
  29882. float GetOpacity() const;
  29883. UIElement GetParent() const;
  29884. int GetPriority() const;
  29885. UIElement GetRoot() const;
  29886. float GetRowHeight() const;
  29887. float GetRowSpacing() const;
  29888. float GetRowWidth(uint) const;
  29889. uint GetSelectionLength() const;
  29890. uint GetSelectionStart() const;
  29891. bool GetSortChildren() const;
  29892. Object GetSubsystem(StringHash) const;
  29893. Array<String> GetTags() const;
  29894. HorizontalAlignment GetTextAlignment() const;
  29895. String GetTextAttr() const;
  29896. TextEffect GetTextEffect() const;
  29897. TraversalMode GetTraversalMode() const;
  29898. StringHash GetType() const;
  29899. bool GetUseDerivedOpacity() const;
  29900. VerticalAlignment GetVerticalAlignment() const;
  29901. int GetWidth() const;
  29902. bool GetWordwrap() const;
  29903. bool HasColorGradient() const;
  29904. bool HasEventHandlers() const;
  29905. bool HasFocus() const;
  29906. bool HasSubscribedToEvent(Object, StringHash) const;
  29907. bool HasSubscribedToEvent(StringHash) const;
  29908. bool HasTag(const String&) const;
  29909. void InsertChild(uint, UIElement);
  29910. const IntRect& GetClipBorder() const;
  29911. const IntRect& GetLayoutBorder() const;
  29912. const IntVector2& GetChildOffset() const;
  29913. const IntVector2& GetEffectShadowOffset() const;
  29914. const IntVector2& GetMaxOffset() const;
  29915. const IntVector2& GetMaxSize() const;
  29916. const IntVector2& GetMinOffset() const;
  29917. const IntVector2& GetMinSize() const;
  29918. const IntVector2& GetPosition() const;
  29919. const IntVector2& GetScreenPosition() const;
  29920. const IntVector2& GetSize() const;
  29921. bool IsChildOf(UIElement) const;
  29922. bool IsEditable() const;
  29923. bool IsElementEventSender() const;
  29924. bool IsEnabled() const;
  29925. bool IsEnabledSelf() const;
  29926. bool IsFixedHeight() const;
  29927. bool IsFixedSize() const;
  29928. bool IsFixedWidth() const;
  29929. bool IsHovering() const;
  29930. bool IsInside(IntVector2, bool);
  29931. bool IsInsideCombined(IntVector2, bool);
  29932. bool IsInstanceOf(StringHash) const;
  29933. bool IsInternal() const;
  29934. bool IsSelected() const;
  29935. bool IsTemporary() const;
  29936. bool IsVisible() const;
  29937. bool IsVisibleEffective() const;
  29938. bool IsWheelHandler() const;
  29939. bool IsWithinScissor(const IntRect&);
  29940. bool Load(Deserializer&);
  29941. UIElement LoadChildXML(XMLFile, XMLFile);
  29942. UIElement LoadChildXML(const XMLElement&, XMLFile);
  29943. bool LoadJSON(const JSONValue&);
  29944. bool LoadXML(Deserializer&);
  29945. bool LoadXML(File);
  29946. bool LoadXML(VectorBuffer&);
  29947. bool LoadXML(XMLFile, XMLFile);
  29948. bool LoadXML(const XMLElement&);
  29949. bool LoadXML(const XMLElement&, XMLFile);
  29950. void MarkNetworkUpdate();
  29951. operator Object() const;
  29952. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  29953. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  29954. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  29955. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29956. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29957. bool OnDragDropFinish(UIElement);
  29958. bool OnDragDropTest(UIElement);
  29959. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29960. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29961. void OnEvent(Object, StringHash, VariantMap&);
  29962. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29963. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29964. void OnIndentSet();
  29965. void OnKey(uint, uint, uint);
  29966. void OnPositionSet(const IntVector2&);
  29967. void OnResize(const IntVector2&, const IntVector2&);
  29968. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29969. void OnSetEditable();
  29970. void OnTextInput(const String&);
  29971. void OnWheel(int, uint, uint);
  29972. bool ReadDeltaUpdate(Deserializer&);
  29973. bool ReadLatestDataUpdate(Deserializer&);
  29974. operator RefCounted() const;
  29975. int Refs() const;
  29976. void Remove();
  29977. void RemoveAllChildren();
  29978. void RemoveAllTags();
  29979. void RemoveAttributeAnimation(const String&);
  29980. void RemoveChild(UIElement, uint = 0);
  29981. void RemoveChild(uint);
  29982. void RemoveChildAtIndex(uint);
  29983. void RemoveInstanceDefault();
  29984. void RemoveObjectAnimation();
  29985. bool RemoveTag(const String&);
  29986. void ResetDeepEnabled();
  29987. void ResetToDefault();
  29988. bool Save(Serializer&) const;
  29989. bool SaveDefaultAttributes() const;
  29990. bool SaveJSON(JSONValue&) const;
  29991. bool SaveXML(File, const String& indentation = "\t");
  29992. bool SaveXML(Serializer&, const String& = "\t") const;
  29993. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  29994. bool SaveXML(XMLElement&) const;
  29995. IntVector2 ScreenToElement(const IntVector2&);
  29996. void SendEvent(StringHash);
  29997. void SendEvent(StringHash, VariantMap&);
  29998. operator Serializable() const;
  29999. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  30000. void SetAnimationEnabled(bool);
  30001. void SetAnimationTime(float);
  30002. bool SetAttribute(const String&, const Variant&);
  30003. bool SetAttribute(uint, const Variant&);
  30004. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  30005. void SetAttributeAnimationSpeed(const String&, float);
  30006. void SetAttributeAnimationTime(const String&, float);
  30007. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  30008. void SetAutoLocalizable(bool);
  30009. void SetBlockEvents(bool);
  30010. void SetBringToBack(bool);
  30011. void SetBringToFront(bool);
  30012. void SetChildOffset(const IntVector2&);
  30013. void SetClipBorder(const IntRect&);
  30014. void SetClipChildren(bool);
  30015. void SetColor(Corner, const Color&);
  30016. void SetColor(const Color&);
  30017. void SetDeepEnabled(bool);
  30018. void SetDefaultStyle(XMLFile);
  30019. void SetDragDropMode(uint);
  30020. void SetEditable(bool);
  30021. void SetEffectColor(const Color&);
  30022. void SetEffectDepthBias(float);
  30023. void SetEffectRoundStroke(bool);
  30024. void SetEffectShadowOffset(const IntVector2&);
  30025. void SetEffectStrokeThickness(int);
  30026. void SetElementEventSender(bool);
  30027. void SetEnableAnchor(bool);
  30028. void SetEnabled(bool);
  30029. void SetEnabledRecursive(bool);
  30030. void SetFixedHeight(int);
  30031. void SetFixedSize(const IntVector2&);
  30032. void SetFixedSize(int, int);
  30033. void SetFixedWidth(int);
  30034. void SetFocus(bool);
  30035. void SetFocusMode(FocusMode);
  30036. bool SetFont(Font, float = DEFAULT_FONT_SIZE);
  30037. bool SetFont(const String&, float = DEFAULT_FONT_SIZE);
  30038. void SetFontAttr(const ResourceRef&);
  30039. bool SetFontSize(float);
  30040. void SetGlobalVar(StringHash, const Variant&);
  30041. void SetHeight(int);
  30042. void SetHorizontalAlignment(HorizontalAlignment);
  30043. void SetHoverColor(const Color&);
  30044. void SetHovering(bool);
  30045. void SetIndent(int);
  30046. void SetIndentSpacing(int);
  30047. void SetInstanceDefault(bool);
  30048. void SetInterceptNetworkUpdate(const String&, bool);
  30049. void SetInternal(bool);
  30050. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  30051. void SetLayoutBorder(const IntRect&);
  30052. void SetLayoutFlexScale(const Vector2&);
  30053. void SetLayoutMode(LayoutMode);
  30054. void SetLayoutSpacing(int);
  30055. void SetMaxAnchor(const Vector2&);
  30056. void SetMaxAnchor(float, float);
  30057. void SetMaxHeight(int);
  30058. void SetMaxOffset(const IntVector2&);
  30059. void SetMaxSize(const IntVector2&);
  30060. void SetMaxSize(int, int);
  30061. void SetMaxWidth(int);
  30062. void SetMinAnchor(const Vector2&);
  30063. void SetMinAnchor(float, float);
  30064. void SetMinHeight(int);
  30065. void SetMinOffset(const IntVector2&);
  30066. void SetMinSize(const IntVector2&);
  30067. void SetMinSize(int, int);
  30068. void SetMinWidth(int);
  30069. void SetName(const String&);
  30070. void SetObjectAnimation(ObjectAnimation);
  30071. void SetObjectAnimationAttr(const ResourceRef&);
  30072. void SetOpacity(float);
  30073. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  30074. void SetPivot(const Vector2&);
  30075. void SetPivot(float, float);
  30076. void SetPosition(const IntVector2&);
  30077. void SetPosition(int, int);
  30078. void SetPriority(int);
  30079. void SetRenderTexture(Texture2D);
  30080. void SetRowSpacing(float);
  30081. void SetSelected(bool);
  30082. void SetSelection(uint, uint = M_MAX_UNSIGNED);
  30083. void SetSelectionColor(const Color&);
  30084. void SetSize(const IntVector2&);
  30085. void SetSize(int, int);
  30086. void SetSortChildren(bool);
  30087. bool SetStyle(const String&, XMLFile = null);
  30088. bool SetStyle(const XMLElement&);
  30089. bool SetStyleAuto(XMLFile = null);
  30090. void SetTags(Array<String>);
  30091. void SetTemporary(bool);
  30092. void SetText(const String&);
  30093. void SetTextAlignment(HorizontalAlignment);
  30094. void SetTextAttr(const String&);
  30095. void SetTextEffect(TextEffect);
  30096. void SetTraversalMode(TraversalMode);
  30097. void SetUseDerivedOpacity(bool);
  30098. void SetVar(StringHash, const Variant&);
  30099. void SetVerticalAlignment(VerticalAlignment);
  30100. void SetVisible(bool);
  30101. void SetWidth(int);
  30102. void SetWordwrap(bool);
  30103. void SortChildren();
  30104. const String& GetAppliedStyle() const;
  30105. const String& GetCategory() const;
  30106. const String& GetName() const;
  30107. const String& GetText() const;
  30108. const String& GetTypeName() const;
  30109. operator UIElement() const;
  30110. operator UISelectable() const;
  30111. void UnsubscribeFromAllEvents();
  30112. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30113. void UnsubscribeFromEvent(Object, StringHash);
  30114. void UnsubscribeFromEvent(StringHash);
  30115. void UnsubscribeFromEvents(Object);
  30116. void Update(float);
  30117. void UpdateLayout();
  30118. const Variant& GetGlobalVar(StringHash) const;
  30119. const Variant& GetVar(const StringHash&) const;
  30120. const VariantMap& GetGlobalVars() const;
  30121. const VariantMap& GetVars() const;
  30122. const Vector2& GetLayoutFlexScale() const;
  30123. const Vector2& GetMaxAnchor() const;
  30124. const Vector2& GetMinAnchor() const;
  30125. const Vector2& GetPivot() const;
  30126. int WeakRefs() const;
  30127. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  30128. void WriteInitialDeltaUpdate(Serializer&, uint8);
  30129. void WriteLatestDataUpdate(Serializer&, uint8);
  30130. operator const Animatable() const;
  30131. operator const Object() const;
  30132. operator const RefCounted() const;
  30133. operator const Serializable() const;
  30134. operator const UIElement() const;
  30135. operator const UISelectable() const;
  30136. // Properties:
  30137. bool animationEnabled;
  30138. /* readonly */
  30139. Array<Variant> attributeDefaults;
  30140. /* readonly */
  30141. Array<AttributeInfo> attributeInfos;
  30142. Array<Variant> attributes;
  30143. bool autoLocalizable;
  30144. bool bringToBack;
  30145. bool bringToFront;
  30146. /* readonly */
  30147. String category;
  30148. /* readonly */
  30149. Array<Vector2> charPositions;
  30150. /* readonly */
  30151. Array<Vector2> charSizes;
  30152. /* readonly */
  30153. IntVector2 childOffset;
  30154. /* readonly */
  30155. Array<UIElement> children;
  30156. IntRect clipBorder;
  30157. bool clipChildren;
  30158. /* writeonly */
  30159. Color color;
  30160. /* readonly */
  30161. bool colorGradient;
  30162. Array<Color> colors;
  30163. /* readonly */
  30164. IntRect combinedScreenRect;
  30165. XMLFile defaultStyle;
  30166. /* readonly */
  30167. float derivedOpacity;
  30168. /* readonly */
  30169. uint dragButtonCombo;
  30170. /* readonly */
  30171. uint dragButtonCount;
  30172. uint dragDropMode;
  30173. bool editable;
  30174. Color effectColor;
  30175. bool effectRoundStroke;
  30176. IntVector2 effectShadowOffset;
  30177. int effectStrokeThickness;
  30178. bool elementEventSender;
  30179. bool enableAnchor;
  30180. bool enabled;
  30181. /* readonly */
  30182. bool enabledSelf;
  30183. /* readonly */
  30184. bool fixedHeight;
  30185. /* readonly */
  30186. bool fixedSize;
  30187. /* readonly */
  30188. bool fixedWidth;
  30189. bool focus;
  30190. FocusMode focusMode;
  30191. /* readonly */
  30192. Font font;
  30193. float fontSize;
  30194. Array<Variant> globalVar;
  30195. /* readonly */
  30196. VariantMap globalVars;
  30197. int height;
  30198. HorizontalAlignment horizontalAlignment;
  30199. Color hoverColor;
  30200. /* readonly */
  30201. bool hovering;
  30202. int indent;
  30203. int indentSpacing;
  30204. /* readonly */
  30205. int indentWidth;
  30206. bool internal;
  30207. IntRect layoutBorder;
  30208. Vector2 layoutFlexScale;
  30209. LayoutMode layoutMode;
  30210. int layoutSpacing;
  30211. Vector2 maxAnchor;
  30212. int maxHeight;
  30213. IntVector2 maxOffset;
  30214. IntVector2 maxSize;
  30215. int maxWidth;
  30216. Vector2 minAnchor;
  30217. int minHeight;
  30218. IntVector2 minOffset;
  30219. IntVector2 minSize;
  30220. int minWidth;
  30221. String name;
  30222. /* readonly */
  30223. uint numAllChildren;
  30224. /* readonly */
  30225. uint numAttributes;
  30226. /* readonly */
  30227. uint numChars;
  30228. /* readonly */
  30229. uint numChildren;
  30230. /* readonly */
  30231. uint numRows;
  30232. ObjectAnimation objectAnimation;
  30233. float opacity;
  30234. UIElement parent;
  30235. Vector2 pivot;
  30236. IntVector2 position;
  30237. int priority;
  30238. /* readonly */
  30239. int refs;
  30240. /* readonly */
  30241. UIElement root;
  30242. /* readonly */
  30243. float rowHeight;
  30244. float rowSpacing;
  30245. /* readonly */
  30246. Array<float> rowWidths;
  30247. /* readonly */
  30248. IntVector2 screenPosition;
  30249. bool selected;
  30250. Color selectionColor;
  30251. /* readonly */
  30252. uint selectionLength;
  30253. /* readonly */
  30254. uint selectionStart;
  30255. IntVector2 size;
  30256. bool sortChildren;
  30257. String style;
  30258. /* readonly */
  30259. Array<String> tags;
  30260. bool temporary;
  30261. String text;
  30262. HorizontalAlignment textAlignment;
  30263. TextEffect textEffect;
  30264. TraversalMode traversalMode;
  30265. /* readonly */
  30266. StringHash type;
  30267. /* readonly */
  30268. String typeName;
  30269. bool useDerivedOpacity;
  30270. /* readonly */
  30271. VariantMap vars;
  30272. VerticalAlignment verticalAlignment;
  30273. bool visible;
  30274. /* readonly */
  30275. bool visibleEffective;
  30276. /* readonly */
  30277. int weakRefs;
  30278. int width;
  30279. bool wordwrap;
  30280. };
  30281. class Text3D
  30282. {
  30283. public:
  30284. Text3D();
  30285. // Methods:
  30286. void AddLight(Light);
  30287. void AddVertexLight(Light);
  30288. void AllocateNetworkState();
  30289. operator Animatable() const;
  30290. void ApplyAttributes();
  30291. const BoundingBox& GetBoundingBox() const;
  30292. const BoundingBox& GetWorldBoundingBox();
  30293. void CleanupConnection(Connection);
  30294. const Color& GetColor(Corner) const;
  30295. const Color& GetColorAttr() const;
  30296. const Color& GetEffectColor() const;
  30297. operator Component() const;
  30298. void DrawDebugGeometry(DebugRenderer, bool);
  30299. bool DrawOcclusion(OcclusionBuffer);
  30300. operator Drawable() const;
  30301. bool GetAnimationEnabled() const;
  30302. Variant GetAttribute(const String&) const;
  30303. Variant GetAttribute(uint) const;
  30304. ValueAnimation GetAttributeAnimation(const String&) const;
  30305. float GetAttributeAnimationSpeed(const String&) const;
  30306. float GetAttributeAnimationTime(const String&) const;
  30307. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  30308. Variant GetAttributeDefault(const String&) const;
  30309. Variant GetAttributeDefault(uint) const;
  30310. bool GetBlockEvents() const;
  30311. bool GetCastShadows() const;
  30312. Vector2 GetCharPosition(uint);
  30313. Vector2 GetCharSize(uint);
  30314. Component GetComponent(StringHash) const;
  30315. float GetDistance() const;
  30316. float GetDrawDistance() const;
  30317. uint8 GetDrawableFlags() const;
  30318. float GetEffectDepthBias() const;
  30319. bool GetEffectRoundStroke() const;
  30320. int GetEffectStrokeThickness() const;
  30321. VariantMap& GetEventDataMap() const;
  30322. Object GetEventSender() const;
  30323. FaceCameraMode GetFaceCameraMode() const;
  30324. Light GetFirstLight() const;
  30325. Font GetFont() const;
  30326. ResourceRef GetFontAttr() const;
  30327. float GetFontSize() const;
  30328. int GetHeight() const;
  30329. HorizontalAlignment GetHorizontalAlignment() const;
  30330. uint GetID() const;
  30331. bool GetInterceptNetworkUpdate(const String&) const;
  30332. uint GetLightMask() const;
  30333. Array<Light> GetLights() const;
  30334. float GetLodBias() const;
  30335. float GetLodDistance() const;
  30336. Geometry GetLodGeometry(uint, uint);
  30337. Material GetMaterial() const;
  30338. ResourceRef GetMaterialAttr() const;
  30339. uint GetMaxLights() const;
  30340. float GetMaxZ() const;
  30341. float GetMinZ() const;
  30342. Node GetNode() const;
  30343. uint GetNumAttributes() const;
  30344. uint GetNumChars() const;
  30345. uint GetNumNetworkAttributes() const;
  30346. uint GetNumOccluderTriangles();
  30347. uint GetNumRows() const;
  30348. ObjectAnimation GetObjectAnimation() const;
  30349. ResourceRef GetObjectAnimationAttr() const;
  30350. float GetOpacity() const;
  30351. int GetRowHeight() const;
  30352. float GetRowSpacing() const;
  30353. int GetRowWidth(uint) const;
  30354. Scene GetScene() const;
  30355. float GetShadowDistance() const;
  30356. uint GetShadowMask() const;
  30357. float GetSortValue() const;
  30358. Object GetSubsystem(StringHash) const;
  30359. HorizontalAlignment GetTextAlignment() const;
  30360. String GetTextAttr() const;
  30361. TextEffect GetTextEffect() const;
  30362. StringHash GetType() const;
  30363. UpdateGeometryType GetUpdateGeometryType();
  30364. Array<Light> GetVertexLights() const;
  30365. VerticalAlignment GetVerticalAlignment() const;
  30366. uint GetViewMask() const;
  30367. int GetWidth() const;
  30368. bool GetWordwrap() const;
  30369. Zone GetZone() const;
  30370. uint GetZoneMask() const;
  30371. bool HasBasePass(uint) const;
  30372. bool HasEventHandlers() const;
  30373. bool HasSubscribedToEvent(Object, StringHash) const;
  30374. bool HasSubscribedToEvent(StringHash) const;
  30375. const IntVector2& GetEffectShadowOffset() const;
  30376. bool IsEnabled() const;
  30377. bool IsEnabledEffective() const;
  30378. bool IsFixedScreenSize() const;
  30379. bool IsInView() const;
  30380. bool IsInView(Camera) const;
  30381. bool IsInView(const FrameInfo&, bool = false) const;
  30382. bool IsInstanceOf(StringHash) const;
  30383. bool IsOccludee() const;
  30384. bool IsOccluder() const;
  30385. bool IsReplicated() const;
  30386. bool IsTemporary() const;
  30387. bool IsZoneDirty() const;
  30388. void LimitLights();
  30389. void LimitVertexLights(bool);
  30390. bool Load(Deserializer&);
  30391. bool LoadJSON(const JSONValue&);
  30392. bool LoadXML(const XMLElement&);
  30393. void MarkForUpdate();
  30394. void MarkInView(const FrameInfo&);
  30395. void MarkInView(uint);
  30396. void MarkNetworkUpdate();
  30397. operator Object() const;
  30398. void OnEvent(Object, StringHash, VariantMap&);
  30399. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  30400. void OnSetAttribute(const AttributeInfo&, const Variant&);
  30401. void OnSetEnabled();
  30402. void PrepareNetworkUpdate();
  30403. bool ReadDeltaUpdate(Deserializer&);
  30404. bool ReadLatestDataUpdate(Deserializer&);
  30405. operator RefCounted() const;
  30406. int Refs() const;
  30407. void Remove();
  30408. void RemoveAttributeAnimation(const String&);
  30409. void RemoveInstanceDefault();
  30410. void RemoveObjectAnimation();
  30411. void ResetToDefault();
  30412. bool Save(Serializer&) const;
  30413. bool SaveDefaultAttributes() const;
  30414. bool SaveJSON(JSONValue&) const;
  30415. bool SaveXML(XMLElement&) const;
  30416. void SendEvent(StringHash);
  30417. void SendEvent(StringHash, VariantMap&);
  30418. operator Serializable() const;
  30419. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  30420. void SetAnimationEnabled(bool);
  30421. void SetAnimationTime(float);
  30422. bool SetAttribute(const String&, const Variant&);
  30423. bool SetAttribute(uint, const Variant&);
  30424. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  30425. void SetAttributeAnimationSpeed(const String&, float);
  30426. void SetAttributeAnimationTime(const String&, float);
  30427. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  30428. void SetBasePass(uint);
  30429. void SetBlockEvents(bool);
  30430. void SetCastShadows(bool);
  30431. void SetColor(Corner, const Color&);
  30432. void SetColor(const Color&);
  30433. void SetDrawDistance(float);
  30434. void SetEffectColor(const Color&);
  30435. void SetEffectDepthBias(float);
  30436. void SetEffectRoundStroke(bool);
  30437. void SetEffectShadowOffset(const IntVector2&);
  30438. void SetEffectStrokeThickness(int);
  30439. void SetEnabled(bool);
  30440. void SetFaceCameraMode(FaceCameraMode);
  30441. void SetFixedScreenSize(bool);
  30442. bool SetFont(Font, float = DEFAULT_FONT_SIZE);
  30443. bool SetFont(const String&, float = DEFAULT_FONT_SIZE);
  30444. void SetFontAttr(const ResourceRef&);
  30445. bool SetFontSize(float);
  30446. void SetGlobalVar(StringHash, const Variant&);
  30447. void SetHorizontalAlignment(HorizontalAlignment);
  30448. void SetInstanceDefault(bool);
  30449. void SetInterceptNetworkUpdate(const String&, bool);
  30450. void SetLightMask(uint);
  30451. void SetLodBias(float);
  30452. void SetMaterial(Material);
  30453. void SetMaterialAttr(const ResourceRef&);
  30454. void SetMaxLights(uint);
  30455. void SetMinMaxZ(float, float);
  30456. void SetObjectAnimation(ObjectAnimation);
  30457. void SetObjectAnimationAttr(const ResourceRef&);
  30458. void SetOccludee(bool);
  30459. void SetOccluder(bool);
  30460. void SetOpacity(float);
  30461. void SetRowSpacing(float);
  30462. void SetShadowDistance(float);
  30463. void SetShadowMask(uint);
  30464. void SetSortValue(float);
  30465. void SetTemporary(bool);
  30466. void SetText(const String&);
  30467. void SetTextAlignment(HorizontalAlignment);
  30468. void SetTextAttr(const String&);
  30469. void SetTextEffect(TextEffect);
  30470. void SetVerticalAlignment(VerticalAlignment);
  30471. void SetViewMask(uint);
  30472. void SetWidth(int);
  30473. void SetWordwrap(bool);
  30474. void SetZone(Zone, bool = false);
  30475. void SetZoneMask(uint);
  30476. const String& GetCategory() const;
  30477. const String& GetText() const;
  30478. const String& GetTypeName() const;
  30479. void UnsubscribeFromAllEvents();
  30480. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30481. void UnsubscribeFromEvent(Object, StringHash);
  30482. void UnsubscribeFromEvent(StringHash);
  30483. void UnsubscribeFromEvents(Object);
  30484. void Update(const FrameInfo&);
  30485. void UpdateBatches(const FrameInfo&);
  30486. void UpdateGeometry(const FrameInfo&);
  30487. const Variant& GetGlobalVar(StringHash) const;
  30488. const VariantMap& GetGlobalVars() const;
  30489. int WeakRefs() const;
  30490. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  30491. void WriteInitialDeltaUpdate(Serializer&, uint8);
  30492. void WriteLatestDataUpdate(Serializer&, uint8);
  30493. operator const Animatable() const;
  30494. operator const Component() const;
  30495. operator const Drawable() const;
  30496. operator const Object() const;
  30497. operator const RefCounted() const;
  30498. operator const Serializable() const;
  30499. // Properties:
  30500. bool animationEnabled;
  30501. /* readonly */
  30502. Array<Variant> attributeDefaults;
  30503. /* readonly */
  30504. Array<AttributeInfo> attributeInfos;
  30505. Array<Variant> attributes;
  30506. /* readonly */
  30507. BoundingBox boundingBox;
  30508. bool castShadows;
  30509. /* readonly */
  30510. String category;
  30511. /* readonly */
  30512. Array<Vector2> charPositions;
  30513. /* readonly */
  30514. Array<Vector2> charSizes;
  30515. /* writeonly */
  30516. Color color;
  30517. Array<Color> colors;
  30518. float drawDistance;
  30519. Color effectColor;
  30520. float effectDepthBias;
  30521. bool effectRoundStroke;
  30522. IntVector2 effectShadowOffset;
  30523. int effectStrokeThickness;
  30524. bool enabled;
  30525. /* readonly */
  30526. bool enabledEffective;
  30527. FaceCameraMode faceCameraMode;
  30528. bool fixedScreenSize;
  30529. /* readonly */
  30530. Font font;
  30531. float fontSize;
  30532. Array<Variant> globalVar;
  30533. /* readonly */
  30534. VariantMap globalVars;
  30535. /* readonly */
  30536. int height;
  30537. HorizontalAlignment horizontalAlignment;
  30538. /* readonly */
  30539. uint id;
  30540. /* readonly */
  30541. bool inView;
  30542. uint lightMask;
  30543. float lodBias;
  30544. Material material;
  30545. uint maxLights;
  30546. /* readonly */
  30547. Node node;
  30548. /* readonly */
  30549. uint numAttributes;
  30550. /* readonly */
  30551. uint numChars;
  30552. /* readonly */
  30553. uint numRows;
  30554. ObjectAnimation objectAnimation;
  30555. bool occludee;
  30556. bool occluder;
  30557. float opacity;
  30558. /* readonly */
  30559. int refs;
  30560. /* readonly */
  30561. bool replicated;
  30562. /* readonly */
  30563. int rowHeight;
  30564. float rowSpacing;
  30565. /* readonly */
  30566. Array<int> rowWidths;
  30567. float shadowDistance;
  30568. uint shadowMask;
  30569. bool temporary;
  30570. String text;
  30571. HorizontalAlignment textAlignment;
  30572. TextEffect textEffect;
  30573. /* readonly */
  30574. StringHash type;
  30575. /* readonly */
  30576. String typeName;
  30577. VerticalAlignment verticalAlignment;
  30578. uint viewMask;
  30579. /* readonly */
  30580. int weakRefs;
  30581. int width;
  30582. bool wordwrap;
  30583. /* readonly */
  30584. BoundingBox worldBoundingBox;
  30585. /* readonly */
  30586. Zone zone;
  30587. uint zoneMask;
  30588. };
  30589. class Texture
  30590. {
  30591. public:
  30592. Texture();
  30593. // Methods:
  30594. void AddMetadata(const String&, const Variant&);
  30595. bool BeginLoad(Deserializer&);
  30596. void ClearDataLost();
  30597. const Color& GetBorderColor() const;
  30598. bool EndLoad();
  30599. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30600. uint GetAnisotropy() const;
  30601. AsyncLoadState GetAsyncLoadState() const;
  30602. bool GetAutoResolve() const;
  30603. Texture GetBackupTexture() const;
  30604. bool GetBlockEvents() const;
  30605. uint GetComponents() const;
  30606. uint GetDataSize(int, int) const;
  30607. uint GetDataSize(int, int, int) const;
  30608. int GetDepth() const;
  30609. VariantMap& GetEventDataMap() const;
  30610. Object GetEventSender() const;
  30611. TextureFilterMode GetFilterMode() const;
  30612. uint GetFormat() const;
  30613. uint GetGPUObjectName() const;
  30614. Graphics GetGraphics() const;
  30615. int GetHeight() const;
  30616. int GetLevelDepth(uint) const;
  30617. int GetLevelHeight(uint) const;
  30618. int GetLevelWidth(uint) const;
  30619. uint GetLevels() const;
  30620. bool GetLevelsDirty() const;
  30621. uint GetMemoryUse() const;
  30622. int GetMipsToSkip(uint) const;
  30623. int GetMultiSample() const;
  30624. StringHash GetNameHash() const;
  30625. bool GetParametersDirty() const;
  30626. uint GetRowDataSize(int) const;
  30627. bool GetSRGB() const;
  30628. bool GetShadowCompare() const;
  30629. Object GetSubsystem(StringHash) const;
  30630. uint GetTarget() const;
  30631. StringHash GetType() const;
  30632. TextureUsage GetUsage() const;
  30633. uint GetUseTimer();
  30634. int GetWidth() const;
  30635. bool HasEventHandlers() const;
  30636. bool HasMetadata() const;
  30637. bool HasPendingData() const;
  30638. bool HasSubscribedToEvent(Object, StringHash) const;
  30639. bool HasSubscribedToEvent(StringHash) const;
  30640. bool IsCompressed() const;
  30641. bool IsDataLost() const;
  30642. bool IsInstanceOf(StringHash) const;
  30643. bool IsResolveDirty() const;
  30644. bool Load(Deserializer&);
  30645. bool Load(File);
  30646. bool Load(VectorBuffer&);
  30647. bool Load(const String&);
  30648. bool LoadFile(const String&);
  30649. operator Object() const;
  30650. void OnDeviceLost();
  30651. void OnDeviceReset();
  30652. void OnEvent(Object, StringHash, VariantMap&);
  30653. operator RefCounted() const;
  30654. int Refs() const;
  30655. void RegenerateLevels();
  30656. void Release();
  30657. void RemoveAllMetadata();
  30658. void RemoveMetadata(const String&);
  30659. void ResetUseTimer();
  30660. operator Resource() const;
  30661. operator ResourceWithMetadata() const;
  30662. bool Save(File) const;
  30663. bool Save(Serializer&) const;
  30664. bool Save(VectorBuffer&) const;
  30665. bool Save(const String&) const;
  30666. bool SaveFile(const String&) const;
  30667. void SendEvent(StringHash);
  30668. void SendEvent(StringHash, VariantMap&);
  30669. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  30670. void SetAnisotropy(uint);
  30671. void SetAsyncLoadState(AsyncLoadState);
  30672. void SetBackupTexture(Texture);
  30673. void SetBlockEvents(bool);
  30674. void SetBorderColor(const Color&);
  30675. void SetFilterMode(TextureFilterMode);
  30676. void SetGlobalVar(StringHash, const Variant&);
  30677. void SetLevelsDirty();
  30678. void SetMemoryUse(uint);
  30679. void SetMipsToSkip(uint, int);
  30680. void SetName(const String&);
  30681. void SetNumLevels(uint);
  30682. void SetParameters(XMLFile);
  30683. void SetParameters(const XMLElement&);
  30684. void SetParametersDirty();
  30685. void SetResolveDirty(bool);
  30686. void SetSRGB(bool);
  30687. void SetShadowCompare(bool);
  30688. const String& GetCategory() const;
  30689. const String& GetName() const;
  30690. const String& GetTypeName() const;
  30691. operator Texture2D() const;
  30692. operator Texture2DArray() const;
  30693. operator Texture3D() const;
  30694. operator TextureCube() const;
  30695. void UnsubscribeFromAllEvents();
  30696. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30697. void UnsubscribeFromEvent(Object, StringHash);
  30698. void UnsubscribeFromEvent(StringHash);
  30699. void UnsubscribeFromEvents(Object);
  30700. void UpdateParameters();
  30701. const Variant& GetGlobalVar(StringHash) const;
  30702. const Variant& GetMetadata(const String&) const;
  30703. const VariantMap& GetGlobalVars() const;
  30704. int WeakRefs() const;
  30705. operator const Object() const;
  30706. operator const RefCounted() const;
  30707. operator const Resource() const;
  30708. operator const ResourceWithMetadata() const;
  30709. operator const Texture2D() const;
  30710. operator const Texture2DArray() const;
  30711. operator const Texture3D() const;
  30712. operator const TextureCube() const;
  30713. // Properties:
  30714. Array<TextureAddressMode> addressMode;
  30715. uint anisotropy;
  30716. /* readonly */
  30717. bool autoResolve;
  30718. Texture backupTexture;
  30719. Color borderColor;
  30720. /* readonly */
  30721. String category;
  30722. /* readonly */
  30723. uint components;
  30724. /* readonly */
  30725. bool compressed;
  30726. /* readonly */
  30727. bool dataLost;
  30728. TextureFilterMode filterMode;
  30729. /* readonly */
  30730. uint format;
  30731. Array<Variant> globalVar;
  30732. /* readonly */
  30733. VariantMap globalVars;
  30734. /* readonly */
  30735. bool hasMetadata;
  30736. /* readonly */
  30737. int height;
  30738. /* readonly */
  30739. Array<int> levelHeight;
  30740. /* readonly */
  30741. Array<int> levelWidth;
  30742. /* readonly */
  30743. uint levels;
  30744. /* readonly */
  30745. bool levelsDirty;
  30746. /* readonly */
  30747. uint memoryUse;
  30748. Array<Variant> metadata;
  30749. Array<int> mipsToSkip;
  30750. /* readonly */
  30751. int multiSample;
  30752. String name;
  30753. /* readonly */
  30754. int refs;
  30755. /* readonly */
  30756. bool resolveDirty;
  30757. bool sRGB;
  30758. /* readonly */
  30759. StringHash type;
  30760. /* readonly */
  30761. String typeName;
  30762. /* readonly */
  30763. TextureUsage usage;
  30764. /* readonly */
  30765. uint useTimer;
  30766. /* readonly */
  30767. int weakRefs;
  30768. /* readonly */
  30769. int width;
  30770. };
  30771. class Texture2D
  30772. {
  30773. public:
  30774. Texture2D();
  30775. // Methods:
  30776. void AddMetadata(const String&, const Variant&);
  30777. bool BeginLoad(Deserializer&);
  30778. void ClearDataLost();
  30779. const Color& GetBorderColor() const;
  30780. bool EndLoad();
  30781. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30782. uint GetAnisotropy() const;
  30783. AsyncLoadState GetAsyncLoadState() const;
  30784. bool GetAutoResolve() const;
  30785. Texture GetBackupTexture() const;
  30786. bool GetBlockEvents() const;
  30787. uint GetComponents() const;
  30788. uint GetDataSize(int, int) const;
  30789. uint GetDataSize(int, int, int) const;
  30790. int GetDepth() const;
  30791. VariantMap& GetEventDataMap() const;
  30792. Object GetEventSender() const;
  30793. TextureFilterMode GetFilterMode() const;
  30794. uint GetFormat() const;
  30795. uint GetGPUObjectName() const;
  30796. Graphics GetGraphics() const;
  30797. int GetHeight() const;
  30798. Image GetImage() const;
  30799. bool GetImage(Image&) const;
  30800. int GetLevelDepth(uint) const;
  30801. int GetLevelHeight(uint) const;
  30802. int GetLevelWidth(uint) const;
  30803. uint GetLevels() const;
  30804. bool GetLevelsDirty() const;
  30805. uint GetMemoryUse() const;
  30806. int GetMipsToSkip(uint) const;
  30807. int GetMultiSample() const;
  30808. StringHash GetNameHash() const;
  30809. bool GetParametersDirty() const;
  30810. RenderSurface GetRenderSurface() const;
  30811. uint GetRowDataSize(int) const;
  30812. bool GetSRGB() const;
  30813. bool GetShadowCompare() const;
  30814. Object GetSubsystem(StringHash) const;
  30815. uint GetTarget() const;
  30816. StringHash GetType() const;
  30817. TextureUsage GetUsage() const;
  30818. uint GetUseTimer();
  30819. int GetWidth() const;
  30820. bool HasEventHandlers() const;
  30821. bool HasMetadata() const;
  30822. bool HasPendingData() const;
  30823. bool HasSubscribedToEvent(Object, StringHash) const;
  30824. bool HasSubscribedToEvent(StringHash) const;
  30825. bool IsCompressed() const;
  30826. bool IsDataLost() const;
  30827. bool IsInstanceOf(StringHash) const;
  30828. bool IsResolveDirty() const;
  30829. bool Load(Deserializer&);
  30830. bool Load(File);
  30831. bool Load(VectorBuffer&);
  30832. bool Load(const String&);
  30833. bool LoadFile(const String&);
  30834. operator Object() const;
  30835. void OnDeviceLost();
  30836. void OnDeviceReset();
  30837. void OnEvent(Object, StringHash, VariantMap&);
  30838. operator RefCounted() const;
  30839. int Refs() const;
  30840. void RegenerateLevels();
  30841. void Release();
  30842. void RemoveAllMetadata();
  30843. void RemoveMetadata(const String&);
  30844. void ResetUseTimer();
  30845. operator Resource() const;
  30846. operator ResourceWithMetadata() const;
  30847. bool Save(File) const;
  30848. bool Save(Serializer&) const;
  30849. bool Save(VectorBuffer&) const;
  30850. bool Save(const String&) const;
  30851. bool SaveFile(const String&) const;
  30852. void SendEvent(StringHash);
  30853. void SendEvent(StringHash, VariantMap&);
  30854. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  30855. void SetAnisotropy(uint);
  30856. void SetAsyncLoadState(AsyncLoadState);
  30857. void SetBackupTexture(Texture);
  30858. void SetBlockEvents(bool);
  30859. void SetBorderColor(const Color&);
  30860. bool SetData(Image, bool = false);
  30861. void SetFilterMode(TextureFilterMode);
  30862. void SetGlobalVar(StringHash, const Variant&);
  30863. void SetLevelsDirty();
  30864. void SetMemoryUse(uint);
  30865. void SetMipsToSkip(uint, int);
  30866. void SetName(const String&);
  30867. void SetNumLevels(uint);
  30868. void SetParameters(XMLFile);
  30869. void SetParameters(const XMLElement&);
  30870. void SetParametersDirty();
  30871. void SetResolveDirty(bool);
  30872. void SetSRGB(bool);
  30873. void SetShadowCompare(bool);
  30874. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  30875. const String& GetCategory() const;
  30876. const String& GetName() const;
  30877. const String& GetTypeName() const;
  30878. operator Texture() const;
  30879. void UnsubscribeFromAllEvents();
  30880. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30881. void UnsubscribeFromEvent(Object, StringHash);
  30882. void UnsubscribeFromEvent(StringHash);
  30883. void UnsubscribeFromEvents(Object);
  30884. void UpdateParameters();
  30885. const Variant& GetGlobalVar(StringHash) const;
  30886. const Variant& GetMetadata(const String&) const;
  30887. const VariantMap& GetGlobalVars() const;
  30888. int WeakRefs() const;
  30889. operator const Object() const;
  30890. operator const RefCounted() const;
  30891. operator const Resource() const;
  30892. operator const ResourceWithMetadata() const;
  30893. operator const Texture() const;
  30894. // Properties:
  30895. Array<TextureAddressMode> addressMode;
  30896. uint anisotropy;
  30897. /* readonly */
  30898. bool autoResolve;
  30899. Texture backupTexture;
  30900. Color borderColor;
  30901. /* readonly */
  30902. String category;
  30903. /* readonly */
  30904. uint components;
  30905. /* readonly */
  30906. bool compressed;
  30907. /* readonly */
  30908. bool dataLost;
  30909. TextureFilterMode filterMode;
  30910. /* readonly */
  30911. uint format;
  30912. Array<Variant> globalVar;
  30913. /* readonly */
  30914. VariantMap globalVars;
  30915. /* readonly */
  30916. bool hasMetadata;
  30917. /* readonly */
  30918. int height;
  30919. /* readonly */
  30920. Array<int> levelHeight;
  30921. /* readonly */
  30922. Array<int> levelWidth;
  30923. /* readonly */
  30924. uint levels;
  30925. /* readonly */
  30926. bool levelsDirty;
  30927. /* readonly */
  30928. uint memoryUse;
  30929. Array<Variant> metadata;
  30930. Array<int> mipsToSkip;
  30931. /* readonly */
  30932. int multiSample;
  30933. String name;
  30934. /* readonly */
  30935. int refs;
  30936. /* readonly */
  30937. RenderSurface renderSurface;
  30938. /* readonly */
  30939. bool resolveDirty;
  30940. bool sRGB;
  30941. /* readonly */
  30942. StringHash type;
  30943. /* readonly */
  30944. String typeName;
  30945. /* readonly */
  30946. TextureUsage usage;
  30947. /* readonly */
  30948. uint useTimer;
  30949. /* readonly */
  30950. int weakRefs;
  30951. /* readonly */
  30952. int width;
  30953. };
  30954. class Texture2DArray
  30955. {
  30956. public:
  30957. Texture2DArray();
  30958. // Methods:
  30959. void AddMetadata(const String&, const Variant&);
  30960. bool BeginLoad(Deserializer&);
  30961. void ClearDataLost();
  30962. const Color& GetBorderColor() const;
  30963. bool EndLoad();
  30964. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30965. uint GetAnisotropy() const;
  30966. AsyncLoadState GetAsyncLoadState() const;
  30967. bool GetAutoResolve() const;
  30968. Texture GetBackupTexture() const;
  30969. bool GetBlockEvents() const;
  30970. uint GetComponents() const;
  30971. uint GetDataSize(int, int) const;
  30972. uint GetDataSize(int, int, int) const;
  30973. int GetDepth() const;
  30974. VariantMap& GetEventDataMap() const;
  30975. Object GetEventSender() const;
  30976. TextureFilterMode GetFilterMode() const;
  30977. uint GetFormat() const;
  30978. uint GetGPUObjectName() const;
  30979. Graphics GetGraphics() const;
  30980. int GetHeight() const;
  30981. uint GetLayers() const;
  30982. int GetLevelDepth(uint) const;
  30983. int GetLevelHeight(uint) const;
  30984. int GetLevelWidth(uint) const;
  30985. uint GetLevels() const;
  30986. bool GetLevelsDirty() const;
  30987. uint GetMemoryUse() const;
  30988. int GetMipsToSkip(uint) const;
  30989. int GetMultiSample() const;
  30990. StringHash GetNameHash() const;
  30991. bool GetParametersDirty() const;
  30992. RenderSurface GetRenderSurface() const;
  30993. uint GetRowDataSize(int) const;
  30994. bool GetSRGB() const;
  30995. bool GetShadowCompare() const;
  30996. Object GetSubsystem(StringHash) const;
  30997. uint GetTarget() const;
  30998. StringHash GetType() const;
  30999. TextureUsage GetUsage() const;
  31000. uint GetUseTimer();
  31001. int GetWidth() const;
  31002. bool HasEventHandlers() const;
  31003. bool HasMetadata() const;
  31004. bool HasPendingData() const;
  31005. bool HasSubscribedToEvent(Object, StringHash) const;
  31006. bool HasSubscribedToEvent(StringHash) const;
  31007. bool IsCompressed() const;
  31008. bool IsDataLost() const;
  31009. bool IsInstanceOf(StringHash) const;
  31010. bool IsResolveDirty() const;
  31011. bool Load(Deserializer&);
  31012. bool Load(File);
  31013. bool Load(VectorBuffer&);
  31014. bool Load(const String&);
  31015. bool LoadFile(const String&);
  31016. operator Object() const;
  31017. void OnDeviceLost();
  31018. void OnDeviceReset();
  31019. void OnEvent(Object, StringHash, VariantMap&);
  31020. operator RefCounted() const;
  31021. int Refs() const;
  31022. void RegenerateLevels();
  31023. void Release();
  31024. void RemoveAllMetadata();
  31025. void RemoveMetadata(const String&);
  31026. void ResetUseTimer();
  31027. operator Resource() const;
  31028. operator ResourceWithMetadata() const;
  31029. bool Save(File) const;
  31030. bool Save(Serializer&) const;
  31031. bool Save(VectorBuffer&) const;
  31032. bool Save(const String&) const;
  31033. bool SaveFile(const String&) const;
  31034. void SendEvent(StringHash);
  31035. void SendEvent(StringHash, VariantMap&);
  31036. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  31037. void SetAnisotropy(uint);
  31038. void SetAsyncLoadState(AsyncLoadState);
  31039. void SetBackupTexture(Texture);
  31040. void SetBlockEvents(bool);
  31041. void SetBorderColor(const Color&);
  31042. bool SetData(uint, Deserializer&);
  31043. bool SetData(uint, Image, bool = false);
  31044. void SetFilterMode(TextureFilterMode);
  31045. void SetGlobalVar(StringHash, const Variant&);
  31046. void SetLayers(uint);
  31047. void SetLevelsDirty();
  31048. void SetMemoryUse(uint);
  31049. void SetMipsToSkip(uint, int);
  31050. void SetName(const String&);
  31051. void SetNumLevels(uint);
  31052. void SetParameters(XMLFile);
  31053. void SetParameters(const XMLElement&);
  31054. void SetParametersDirty();
  31055. void SetResolveDirty(bool);
  31056. void SetSRGB(bool);
  31057. void SetShadowCompare(bool);
  31058. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  31059. const String& GetCategory() const;
  31060. const String& GetName() const;
  31061. const String& GetTypeName() const;
  31062. operator Texture() const;
  31063. void UnsubscribeFromAllEvents();
  31064. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31065. void UnsubscribeFromEvent(Object, StringHash);
  31066. void UnsubscribeFromEvent(StringHash);
  31067. void UnsubscribeFromEvents(Object);
  31068. void UpdateParameters();
  31069. const Variant& GetGlobalVar(StringHash) const;
  31070. const Variant& GetMetadata(const String&) const;
  31071. const VariantMap& GetGlobalVars() const;
  31072. int WeakRefs() const;
  31073. operator const Object() const;
  31074. operator const RefCounted() const;
  31075. operator const Resource() const;
  31076. operator const ResourceWithMetadata() const;
  31077. operator const Texture() const;
  31078. // Properties:
  31079. Array<TextureAddressMode> addressMode;
  31080. uint anisotropy;
  31081. /* readonly */
  31082. bool autoResolve;
  31083. Texture backupTexture;
  31084. Color borderColor;
  31085. /* readonly */
  31086. String category;
  31087. /* readonly */
  31088. uint components;
  31089. /* readonly */
  31090. bool compressed;
  31091. /* readonly */
  31092. bool dataLost;
  31093. TextureFilterMode filterMode;
  31094. /* readonly */
  31095. uint format;
  31096. Array<Variant> globalVar;
  31097. /* readonly */
  31098. VariantMap globalVars;
  31099. /* readonly */
  31100. bool hasMetadata;
  31101. /* readonly */
  31102. int height;
  31103. uint layers;
  31104. /* readonly */
  31105. Array<int> levelHeight;
  31106. /* readonly */
  31107. Array<int> levelWidth;
  31108. /* readonly */
  31109. uint levels;
  31110. /* readonly */
  31111. bool levelsDirty;
  31112. /* readonly */
  31113. uint memoryUse;
  31114. Array<Variant> metadata;
  31115. Array<int> mipsToSkip;
  31116. /* readonly */
  31117. int multiSample;
  31118. String name;
  31119. /* readonly */
  31120. int refs;
  31121. /* readonly */
  31122. RenderSurface renderSurface;
  31123. /* readonly */
  31124. bool resolveDirty;
  31125. bool sRGB;
  31126. /* readonly */
  31127. StringHash type;
  31128. /* readonly */
  31129. String typeName;
  31130. /* readonly */
  31131. TextureUsage usage;
  31132. /* readonly */
  31133. uint useTimer;
  31134. /* readonly */
  31135. int weakRefs;
  31136. /* readonly */
  31137. int width;
  31138. };
  31139. class Texture3D
  31140. {
  31141. public:
  31142. Texture3D();
  31143. // Methods:
  31144. void AddMetadata(const String&, const Variant&);
  31145. bool BeginLoad(Deserializer&);
  31146. void ClearDataLost();
  31147. const Color& GetBorderColor() const;
  31148. bool EndLoad();
  31149. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  31150. uint GetAnisotropy() const;
  31151. AsyncLoadState GetAsyncLoadState() const;
  31152. bool GetAutoResolve() const;
  31153. Texture GetBackupTexture() const;
  31154. bool GetBlockEvents() const;
  31155. uint GetComponents() const;
  31156. uint GetDataSize(int, int) const;
  31157. uint GetDataSize(int, int, int) const;
  31158. int GetDepth() const;
  31159. VariantMap& GetEventDataMap() const;
  31160. Object GetEventSender() const;
  31161. TextureFilterMode GetFilterMode() const;
  31162. uint GetFormat() const;
  31163. uint GetGPUObjectName() const;
  31164. Graphics GetGraphics() const;
  31165. int GetHeight() const;
  31166. int GetLevelDepth(uint) const;
  31167. int GetLevelHeight(uint) const;
  31168. int GetLevelWidth(uint) const;
  31169. uint GetLevels() const;
  31170. bool GetLevelsDirty() const;
  31171. uint GetMemoryUse() const;
  31172. int GetMipsToSkip(uint) const;
  31173. int GetMultiSample() const;
  31174. StringHash GetNameHash() const;
  31175. bool GetParametersDirty() const;
  31176. uint GetRowDataSize(int) const;
  31177. bool GetSRGB() const;
  31178. bool GetShadowCompare() const;
  31179. Object GetSubsystem(StringHash) const;
  31180. uint GetTarget() const;
  31181. StringHash GetType() const;
  31182. TextureUsage GetUsage() const;
  31183. uint GetUseTimer();
  31184. int GetWidth() const;
  31185. bool HasEventHandlers() const;
  31186. bool HasMetadata() const;
  31187. bool HasPendingData() const;
  31188. bool HasSubscribedToEvent(Object, StringHash) const;
  31189. bool HasSubscribedToEvent(StringHash) const;
  31190. bool IsCompressed() const;
  31191. bool IsDataLost() const;
  31192. bool IsInstanceOf(StringHash) const;
  31193. bool IsResolveDirty() const;
  31194. bool Load(Deserializer&);
  31195. bool Load(File);
  31196. bool Load(VectorBuffer&);
  31197. bool Load(const String&);
  31198. bool LoadFile(const String&);
  31199. operator Object() const;
  31200. void OnDeviceLost();
  31201. void OnDeviceReset();
  31202. void OnEvent(Object, StringHash, VariantMap&);
  31203. operator RefCounted() const;
  31204. int Refs() const;
  31205. void RegenerateLevels();
  31206. void Release();
  31207. void RemoveAllMetadata();
  31208. void RemoveMetadata(const String&);
  31209. void ResetUseTimer();
  31210. operator Resource() const;
  31211. operator ResourceWithMetadata() const;
  31212. bool Save(File) const;
  31213. bool Save(Serializer&) const;
  31214. bool Save(VectorBuffer&) const;
  31215. bool Save(const String&) const;
  31216. bool SaveFile(const String&) const;
  31217. void SendEvent(StringHash);
  31218. void SendEvent(StringHash, VariantMap&);
  31219. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  31220. void SetAnisotropy(uint);
  31221. void SetAsyncLoadState(AsyncLoadState);
  31222. void SetBackupTexture(Texture);
  31223. void SetBlockEvents(bool);
  31224. void SetBorderColor(const Color&);
  31225. bool SetData(Image, bool = false);
  31226. void SetFilterMode(TextureFilterMode);
  31227. void SetGlobalVar(StringHash, const Variant&);
  31228. void SetLevelsDirty();
  31229. void SetMemoryUse(uint);
  31230. void SetMipsToSkip(uint, int);
  31231. void SetName(const String&);
  31232. void SetNumLevels(uint);
  31233. void SetParameters(XMLFile);
  31234. void SetParameters(const XMLElement&);
  31235. void SetParametersDirty();
  31236. void SetResolveDirty(bool);
  31237. void SetSRGB(bool);
  31238. void SetShadowCompare(bool);
  31239. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  31240. const String& GetCategory() const;
  31241. const String& GetName() const;
  31242. const String& GetTypeName() const;
  31243. operator Texture() const;
  31244. void UnsubscribeFromAllEvents();
  31245. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31246. void UnsubscribeFromEvent(Object, StringHash);
  31247. void UnsubscribeFromEvent(StringHash);
  31248. void UnsubscribeFromEvents(Object);
  31249. void UpdateParameters();
  31250. const Variant& GetGlobalVar(StringHash) const;
  31251. const Variant& GetMetadata(const String&) const;
  31252. const VariantMap& GetGlobalVars() const;
  31253. int WeakRefs() const;
  31254. operator const Object() const;
  31255. operator const RefCounted() const;
  31256. operator const Resource() const;
  31257. operator const ResourceWithMetadata() const;
  31258. operator const Texture() const;
  31259. // Properties:
  31260. Array<TextureAddressMode> addressMode;
  31261. uint anisotropy;
  31262. /* readonly */
  31263. bool autoResolve;
  31264. Texture backupTexture;
  31265. Color borderColor;
  31266. /* readonly */
  31267. String category;
  31268. /* readonly */
  31269. uint components;
  31270. /* readonly */
  31271. bool compressed;
  31272. /* readonly */
  31273. bool dataLost;
  31274. TextureFilterMode filterMode;
  31275. /* readonly */
  31276. uint format;
  31277. Array<Variant> globalVar;
  31278. /* readonly */
  31279. VariantMap globalVars;
  31280. /* readonly */
  31281. bool hasMetadata;
  31282. /* readonly */
  31283. int height;
  31284. /* readonly */
  31285. Array<int> levelHeight;
  31286. /* readonly */
  31287. Array<int> levelWidth;
  31288. /* readonly */
  31289. uint levels;
  31290. /* readonly */
  31291. bool levelsDirty;
  31292. /* readonly */
  31293. uint memoryUse;
  31294. Array<Variant> metadata;
  31295. Array<int> mipsToSkip;
  31296. /* readonly */
  31297. int multiSample;
  31298. String name;
  31299. /* readonly */
  31300. int refs;
  31301. /* readonly */
  31302. bool resolveDirty;
  31303. bool sRGB;
  31304. /* readonly */
  31305. StringHash type;
  31306. /* readonly */
  31307. String typeName;
  31308. /* readonly */
  31309. TextureUsage usage;
  31310. /* readonly */
  31311. uint useTimer;
  31312. /* readonly */
  31313. int weakRefs;
  31314. /* readonly */
  31315. int width;
  31316. };
  31317. class TextureCube
  31318. {
  31319. public:
  31320. TextureCube();
  31321. // Methods:
  31322. void AddMetadata(const String&, const Variant&);
  31323. bool BeginLoad(Deserializer&);
  31324. void ClearDataLost();
  31325. const Color& GetBorderColor() const;
  31326. bool EndLoad();
  31327. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  31328. uint GetAnisotropy() const;
  31329. AsyncLoadState GetAsyncLoadState() const;
  31330. bool GetAutoResolve() const;
  31331. Texture GetBackupTexture() const;
  31332. bool GetBlockEvents() const;
  31333. uint GetComponents() const;
  31334. uint GetDataSize(int, int) const;
  31335. uint GetDataSize(int, int, int) const;
  31336. int GetDepth() const;
  31337. VariantMap& GetEventDataMap() const;
  31338. Object GetEventSender() const;
  31339. TextureFilterMode GetFilterMode() const;
  31340. uint GetFormat() const;
  31341. uint GetGPUObjectName() const;
  31342. Graphics GetGraphics() const;
  31343. int GetHeight() const;
  31344. Image GetImage(CubeMapFace) const;
  31345. int GetLevelDepth(uint) const;
  31346. int GetLevelHeight(uint) const;
  31347. int GetLevelWidth(uint) const;
  31348. uint GetLevels() const;
  31349. bool GetLevelsDirty() const;
  31350. uint GetMemoryUse() const;
  31351. int GetMipsToSkip(uint) const;
  31352. int GetMultiSample() const;
  31353. StringHash GetNameHash() const;
  31354. bool GetParametersDirty() const;
  31355. RenderSurface GetRenderSurface(CubeMapFace) const;
  31356. uint GetRowDataSize(int) const;
  31357. bool GetSRGB() const;
  31358. bool GetShadowCompare() const;
  31359. Object GetSubsystem(StringHash) const;
  31360. uint GetTarget() const;
  31361. StringHash GetType() const;
  31362. TextureUsage GetUsage() const;
  31363. uint GetUseTimer();
  31364. int GetWidth() const;
  31365. bool HasEventHandlers() const;
  31366. bool HasMetadata() const;
  31367. bool HasPendingData() const;
  31368. bool HasSubscribedToEvent(Object, StringHash) const;
  31369. bool HasSubscribedToEvent(StringHash) const;
  31370. bool IsCompressed() const;
  31371. bool IsDataLost() const;
  31372. bool IsInstanceOf(StringHash) const;
  31373. bool IsResolveDirty() const;
  31374. bool Load(Deserializer&);
  31375. bool Load(File);
  31376. bool Load(VectorBuffer&);
  31377. bool Load(const String&);
  31378. bool LoadFile(const String&);
  31379. operator Object() const;
  31380. void OnDeviceLost();
  31381. void OnDeviceReset();
  31382. void OnEvent(Object, StringHash, VariantMap&);
  31383. operator RefCounted() const;
  31384. int Refs() const;
  31385. void RegenerateLevels();
  31386. void Release();
  31387. void RemoveAllMetadata();
  31388. void RemoveMetadata(const String&);
  31389. void ResetUseTimer();
  31390. operator Resource() const;
  31391. operator ResourceWithMetadata() const;
  31392. bool Save(File) const;
  31393. bool Save(Serializer&) const;
  31394. bool Save(VectorBuffer&) const;
  31395. bool Save(const String&) const;
  31396. bool SaveFile(const String&) const;
  31397. void SendEvent(StringHash);
  31398. void SendEvent(StringHash, VariantMap&);
  31399. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  31400. void SetAnisotropy(uint);
  31401. void SetAsyncLoadState(AsyncLoadState);
  31402. void SetBackupTexture(Texture);
  31403. void SetBlockEvents(bool);
  31404. void SetBorderColor(const Color&);
  31405. bool SetData(CubeMapFace, Deserializer&);
  31406. bool SetData(CubeMapFace, Image, bool = false);
  31407. void SetFilterMode(TextureFilterMode);
  31408. void SetGlobalVar(StringHash, const Variant&);
  31409. void SetLevelsDirty();
  31410. void SetMemoryUse(uint);
  31411. void SetMipsToSkip(uint, int);
  31412. void SetName(const String&);
  31413. void SetNumLevels(uint);
  31414. void SetParameters(XMLFile);
  31415. void SetParameters(const XMLElement&);
  31416. void SetParametersDirty();
  31417. void SetResolveDirty(bool);
  31418. void SetSRGB(bool);
  31419. void SetShadowCompare(bool);
  31420. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  31421. const String& GetCategory() const;
  31422. const String& GetName() const;
  31423. const String& GetTypeName() const;
  31424. operator Texture() const;
  31425. void UnsubscribeFromAllEvents();
  31426. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31427. void UnsubscribeFromEvent(Object, StringHash);
  31428. void UnsubscribeFromEvent(StringHash);
  31429. void UnsubscribeFromEvents(Object);
  31430. void UpdateParameters();
  31431. const Variant& GetGlobalVar(StringHash) const;
  31432. const Variant& GetMetadata(const String&) const;
  31433. const VariantMap& GetGlobalVars() const;
  31434. int WeakRefs() const;
  31435. operator const Object() const;
  31436. operator const RefCounted() const;
  31437. operator const Resource() const;
  31438. operator const ResourceWithMetadata() const;
  31439. operator const Texture() const;
  31440. // Properties:
  31441. Array<TextureAddressMode> addressMode;
  31442. uint anisotropy;
  31443. /* readonly */
  31444. bool autoResolve;
  31445. Texture backupTexture;
  31446. Color borderColor;
  31447. /* readonly */
  31448. String category;
  31449. /* readonly */
  31450. uint components;
  31451. /* readonly */
  31452. bool compressed;
  31453. /* readonly */
  31454. bool dataLost;
  31455. TextureFilterMode filterMode;
  31456. /* readonly */
  31457. uint format;
  31458. Array<Variant> globalVar;
  31459. /* readonly */
  31460. VariantMap globalVars;
  31461. /* readonly */
  31462. bool hasMetadata;
  31463. /* readonly */
  31464. int height;
  31465. /* readonly */
  31466. Array<int> levelHeight;
  31467. /* readonly */
  31468. Array<int> levelWidth;
  31469. /* readonly */
  31470. uint levels;
  31471. /* readonly */
  31472. bool levelsDirty;
  31473. /* readonly */
  31474. uint memoryUse;
  31475. Array<Variant> metadata;
  31476. Array<int> mipsToSkip;
  31477. /* readonly */
  31478. int multiSample;
  31479. String name;
  31480. /* readonly */
  31481. int refs;
  31482. /* readonly */
  31483. Array<RenderSurface> renderSurfaces;
  31484. /* readonly */
  31485. bool resolveDirty;
  31486. bool sRGB;
  31487. /* readonly */
  31488. StringHash type;
  31489. /* readonly */
  31490. String typeName;
  31491. /* readonly */
  31492. TextureUsage usage;
  31493. /* readonly */
  31494. uint useTimer;
  31495. /* readonly */
  31496. int weakRefs;
  31497. /* readonly */
  31498. int width;
  31499. };
  31500. class TextureFrame
  31501. {
  31502. public:
  31503. // Methods:
  31504. TextureFrame& operator=(const TextureFrame&);
  31505. // Properties:
  31506. float time;
  31507. Rect uv;
  31508. };
  31509. class Tile2D
  31510. {
  31511. public:
  31512. Tile2D();
  31513. // Methods:
  31514. bool GetFlipX() const;
  31515. bool GetFlipY() const;
  31516. uint GetGid() const;
  31517. Sprite2D GetSprite() const;
  31518. bool GetSwapXY() const;
  31519. bool HasProperty(const String&) const;
  31520. operator RefCounted() const;
  31521. int Refs() const;
  31522. const String& GetProperty(const String&) const;
  31523. int WeakRefs() const;
  31524. operator const RefCounted() const;
  31525. // Properties:
  31526. /* readonly */
  31527. bool flipX;
  31528. /* readonly */
  31529. bool flipY;
  31530. /* readonly */
  31531. uint gid;
  31532. /* readonly */
  31533. int refs;
  31534. /* readonly */
  31535. Sprite2D sprite;
  31536. /* readonly */
  31537. bool swapXY;
  31538. /* readonly */
  31539. int weakRefs;
  31540. };
  31541. class TileMap2D
  31542. {
  31543. public:
  31544. TileMap2D();
  31545. // Methods:
  31546. void AllocateNetworkState();
  31547. operator Animatable() const;
  31548. void ApplyAttributes();
  31549. void CleanupConnection(Connection);
  31550. operator Component() const;
  31551. void DrawDebugGeometry();
  31552. void DrawDebugGeometry(DebugRenderer, bool);
  31553. bool GetAnimationEnabled() const;
  31554. Variant GetAttribute(const String&) const;
  31555. Variant GetAttribute(uint) const;
  31556. ValueAnimation GetAttributeAnimation(const String&) const;
  31557. float GetAttributeAnimationSpeed(const String&) const;
  31558. float GetAttributeAnimationTime(const String&) const;
  31559. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  31560. Variant GetAttributeDefault(const String&) const;
  31561. Variant GetAttributeDefault(uint) const;
  31562. bool GetBlockEvents() const;
  31563. Component GetComponent(StringHash) const;
  31564. VariantMap& GetEventDataMap() const;
  31565. Object GetEventSender() const;
  31566. uint GetID() const;
  31567. bool GetInterceptNetworkUpdate(const String&) const;
  31568. TileMapLayer2D GetLayer(uint) const;
  31569. Node GetNode() const;
  31570. uint GetNumAttributes() const;
  31571. uint GetNumLayers() const;
  31572. uint GetNumNetworkAttributes() const;
  31573. ObjectAnimation GetObjectAnimation() const;
  31574. ResourceRef GetObjectAnimationAttr() const;
  31575. Scene GetScene() const;
  31576. Object GetSubsystem(StringHash) const;
  31577. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  31578. TmxFile2D GetTmxFile() const;
  31579. ResourceRef GetTmxFileAttr() const;
  31580. StringHash GetType() const;
  31581. bool HasEventHandlers() const;
  31582. bool HasSubscribedToEvent(Object, StringHash) const;
  31583. bool HasSubscribedToEvent(StringHash) const;
  31584. bool IsEnabled() const;
  31585. bool IsEnabledEffective() const;
  31586. bool IsInstanceOf(StringHash) const;
  31587. bool IsReplicated() const;
  31588. bool IsTemporary() const;
  31589. bool Load(Deserializer&);
  31590. bool LoadJSON(const JSONValue&);
  31591. bool LoadXML(const XMLElement&);
  31592. void MarkNetworkUpdate();
  31593. operator Object() const;
  31594. void OnEvent(Object, StringHash, VariantMap&);
  31595. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  31596. void OnSetAttribute(const AttributeInfo&, const Variant&);
  31597. void OnSetEnabled();
  31598. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  31599. void PrepareNetworkUpdate();
  31600. bool ReadDeltaUpdate(Deserializer&);
  31601. bool ReadLatestDataUpdate(Deserializer&);
  31602. operator RefCounted() const;
  31603. int Refs() const;
  31604. void Remove();
  31605. void RemoveAttributeAnimation(const String&);
  31606. void RemoveInstanceDefault();
  31607. void RemoveObjectAnimation();
  31608. void ResetToDefault();
  31609. bool Save(Serializer&) const;
  31610. bool SaveDefaultAttributes() const;
  31611. bool SaveJSON(JSONValue&) const;
  31612. bool SaveXML(XMLElement&) const;
  31613. void SendEvent(StringHash);
  31614. void SendEvent(StringHash, VariantMap&);
  31615. operator Serializable() const;
  31616. void SetAnimationEnabled(bool);
  31617. void SetAnimationTime(float);
  31618. bool SetAttribute(const String&, const Variant&);
  31619. bool SetAttribute(uint, const Variant&);
  31620. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  31621. void SetAttributeAnimationSpeed(const String&, float);
  31622. void SetAttributeAnimationTime(const String&, float);
  31623. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  31624. void SetBlockEvents(bool);
  31625. void SetEnabled(bool);
  31626. void SetGlobalVar(StringHash, const Variant&);
  31627. void SetInstanceDefault(bool);
  31628. void SetInterceptNetworkUpdate(const String&, bool);
  31629. void SetObjectAnimation(ObjectAnimation);
  31630. void SetObjectAnimationAttr(const ResourceRef&);
  31631. void SetTemporary(bool);
  31632. void SetTmxFile(TmxFile2D);
  31633. void SetTmxFileAttr(const ResourceRef&);
  31634. const String& GetCategory() const;
  31635. const String& GetTypeName() const;
  31636. Vector2 TileIndexToPosition(int, int) const;
  31637. const TileMapInfo2D& GetInfo() const;
  31638. void UnsubscribeFromAllEvents();
  31639. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31640. void UnsubscribeFromEvent(Object, StringHash);
  31641. void UnsubscribeFromEvent(StringHash);
  31642. void UnsubscribeFromEvents(Object);
  31643. const Variant& GetGlobalVar(StringHash) const;
  31644. const VariantMap& GetGlobalVars() const;
  31645. int WeakRefs() const;
  31646. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  31647. void WriteInitialDeltaUpdate(Serializer&, uint8);
  31648. void WriteLatestDataUpdate(Serializer&, uint8);
  31649. operator const Animatable() const;
  31650. operator const Component() const;
  31651. operator const Object() const;
  31652. operator const RefCounted() const;
  31653. operator const Serializable() const;
  31654. // Properties:
  31655. bool animationEnabled;
  31656. /* readonly */
  31657. Array<Variant> attributeDefaults;
  31658. /* readonly */
  31659. Array<AttributeInfo> attributeInfos;
  31660. Array<Variant> attributes;
  31661. /* readonly */
  31662. String category;
  31663. bool enabled;
  31664. /* readonly */
  31665. bool enabledEffective;
  31666. Array<Variant> globalVar;
  31667. /* readonly */
  31668. VariantMap globalVars;
  31669. /* readonly */
  31670. uint id;
  31671. /* readonly */
  31672. TileMapInfo2D info;
  31673. /* readonly */
  31674. Node node;
  31675. /* readonly */
  31676. uint numAttributes;
  31677. /* readonly */
  31678. uint numLayers;
  31679. ObjectAnimation objectAnimation;
  31680. /* readonly */
  31681. int refs;
  31682. /* readonly */
  31683. bool replicated;
  31684. bool temporary;
  31685. TmxFile2D tmxFile;
  31686. /* readonly */
  31687. StringHash type;
  31688. /* readonly */
  31689. String typeName;
  31690. /* readonly */
  31691. int weakRefs;
  31692. };
  31693. class TileMapInfo2D
  31694. {
  31695. public:
  31696. // Methods:
  31697. TileMapInfo2D& operator=(const TileMapInfo2D&);
  31698. Vector2 ConvertPosition(const Vector2&) const;
  31699. float GetMapHeight() const;
  31700. float GetMapWidth() const;
  31701. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  31702. Vector2 TileIndexToPosition(int, int) const;
  31703. // Properties:
  31704. int height;
  31705. /* readonly */
  31706. float mapHeight;
  31707. /* readonly */
  31708. float mapWidth;
  31709. Orientation2D orientation;
  31710. float tileHeight;
  31711. float tileWidth;
  31712. int width;
  31713. };
  31714. class TileMapLayer2D
  31715. {
  31716. public:
  31717. TileMapLayer2D();
  31718. // Methods:
  31719. void AllocateNetworkState();
  31720. operator Animatable() const;
  31721. void ApplyAttributes();
  31722. void CleanupConnection(Connection);
  31723. operator Component() const;
  31724. void DrawDebugGeometry(DebugRenderer, bool);
  31725. bool GetAnimationEnabled() const;
  31726. Variant GetAttribute(const String&) const;
  31727. Variant GetAttribute(uint) const;
  31728. ValueAnimation GetAttributeAnimation(const String&) const;
  31729. float GetAttributeAnimationSpeed(const String&) const;
  31730. float GetAttributeAnimationTime(const String&) const;
  31731. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  31732. Variant GetAttributeDefault(const String&) const;
  31733. Variant GetAttributeDefault(uint) const;
  31734. bool GetBlockEvents() const;
  31735. Component GetComponent(StringHash) const;
  31736. int GetDrawOrder() const;
  31737. VariantMap& GetEventDataMap() const;
  31738. Object GetEventSender() const;
  31739. int GetHeight() const;
  31740. uint GetID() const;
  31741. Node GetImageNode() const;
  31742. bool GetInterceptNetworkUpdate(const String&) const;
  31743. TileMapLayerType2D GetLayerType() const;
  31744. Node GetNode() const;
  31745. uint GetNumAttributes() const;
  31746. uint GetNumNetworkAttributes() const;
  31747. uint GetNumObjects() const;
  31748. TileMapObject2D GetObject(uint) const;
  31749. ObjectAnimation GetObjectAnimation() const;
  31750. ResourceRef GetObjectAnimationAttr() const;
  31751. Node GetObjectNode(uint) const;
  31752. Scene GetScene() const;
  31753. Object GetSubsystem(StringHash) const;
  31754. Tile2D GetTile(int, int) const;
  31755. TileMap2D GetTileMap() const;
  31756. Node GetTileNode(int, int) const;
  31757. TmxLayer2D GetTmxLayer() const;
  31758. StringHash GetType() const;
  31759. int GetWidth() const;
  31760. bool HasEventHandlers() const;
  31761. bool HasProperty(const String&) const;
  31762. bool HasSubscribedToEvent(Object, StringHash) const;
  31763. bool HasSubscribedToEvent(StringHash) const;
  31764. void Initialize(TileMap2D, TmxLayer2D);
  31765. bool IsEnabled() const;
  31766. bool IsEnabledEffective() const;
  31767. bool IsInstanceOf(StringHash) const;
  31768. bool IsReplicated() const;
  31769. bool IsTemporary() const;
  31770. bool IsVisible() const;
  31771. bool Load(Deserializer&);
  31772. bool LoadJSON(const JSONValue&);
  31773. bool LoadXML(const XMLElement&);
  31774. void MarkNetworkUpdate();
  31775. operator Object() const;
  31776. void OnEvent(Object, StringHash, VariantMap&);
  31777. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  31778. void OnSetAttribute(const AttributeInfo&, const Variant&);
  31779. void OnSetEnabled();
  31780. void PrepareNetworkUpdate();
  31781. bool ReadDeltaUpdate(Deserializer&);
  31782. bool ReadLatestDataUpdate(Deserializer&);
  31783. operator RefCounted() const;
  31784. int Refs() const;
  31785. void Remove();
  31786. void RemoveAttributeAnimation(const String&);
  31787. void RemoveInstanceDefault();
  31788. void RemoveObjectAnimation();
  31789. void ResetToDefault();
  31790. bool Save(Serializer&) const;
  31791. bool SaveDefaultAttributes() const;
  31792. bool SaveJSON(JSONValue&) const;
  31793. bool SaveXML(XMLElement&) const;
  31794. void SendEvent(StringHash);
  31795. void SendEvent(StringHash, VariantMap&);
  31796. operator Serializable() const;
  31797. void SetAnimationEnabled(bool);
  31798. void SetAnimationTime(float);
  31799. bool SetAttribute(const String&, const Variant&);
  31800. bool SetAttribute(uint, const Variant&);
  31801. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  31802. void SetAttributeAnimationSpeed(const String&, float);
  31803. void SetAttributeAnimationTime(const String&, float);
  31804. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  31805. void SetBlockEvents(bool);
  31806. void SetDrawOrder(int);
  31807. void SetEnabled(bool);
  31808. void SetGlobalVar(StringHash, const Variant&);
  31809. void SetInstanceDefault(bool);
  31810. void SetInterceptNetworkUpdate(const String&, bool);
  31811. void SetObjectAnimation(ObjectAnimation);
  31812. void SetObjectAnimationAttr(const ResourceRef&);
  31813. void SetTemporary(bool);
  31814. void SetVisible(bool);
  31815. const String& GetCategory() const;
  31816. const String& GetProperty(const String&) const;
  31817. const String& GetTypeName() const;
  31818. void UnsubscribeFromAllEvents();
  31819. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31820. void UnsubscribeFromEvent(Object, StringHash);
  31821. void UnsubscribeFromEvent(StringHash);
  31822. void UnsubscribeFromEvents(Object);
  31823. const Variant& GetGlobalVar(StringHash) const;
  31824. const VariantMap& GetGlobalVars() const;
  31825. int WeakRefs() const;
  31826. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  31827. void WriteInitialDeltaUpdate(Serializer&, uint8);
  31828. void WriteLatestDataUpdate(Serializer&, uint8);
  31829. operator const Animatable() const;
  31830. operator const Component() const;
  31831. operator const Object() const;
  31832. operator const RefCounted() const;
  31833. operator const Serializable() const;
  31834. // Properties:
  31835. bool animationEnabled;
  31836. /* readonly */
  31837. Array<Variant> attributeDefaults;
  31838. /* readonly */
  31839. Array<AttributeInfo> attributeInfos;
  31840. Array<Variant> attributes;
  31841. /* readonly */
  31842. String category;
  31843. int drawOrder;
  31844. bool enabled;
  31845. /* readonly */
  31846. bool enabledEffective;
  31847. Array<Variant> globalVar;
  31848. /* readonly */
  31849. VariantMap globalVars;
  31850. /* readonly */
  31851. int height;
  31852. /* readonly */
  31853. uint id;
  31854. /* readonly */
  31855. Node imageNode;
  31856. /* readonly */
  31857. TileMapLayerType2D layerType;
  31858. /* readonly */
  31859. Node node;
  31860. /* readonly */
  31861. uint numAttributes;
  31862. /* readonly */
  31863. uint numObjects;
  31864. ObjectAnimation objectAnimation;
  31865. /* readonly */
  31866. int refs;
  31867. /* readonly */
  31868. bool replicated;
  31869. bool temporary;
  31870. /* readonly */
  31871. StringHash type;
  31872. /* readonly */
  31873. String typeName;
  31874. bool visible;
  31875. /* readonly */
  31876. int weakRefs;
  31877. /* readonly */
  31878. int width;
  31879. };
  31880. class TileMapObject2D
  31881. {
  31882. public:
  31883. TileMapObject2D();
  31884. // Methods:
  31885. uint GetNumPoints() const;
  31886. TileMapObjectType2D GetObjectType() const;
  31887. bool GetTileFlipX() const;
  31888. bool GetTileFlipY() const;
  31889. uint GetTileGid() const;
  31890. Sprite2D GetTileSprite() const;
  31891. bool GetTileSwapXY() const;
  31892. bool HasProperty(const String&) const;
  31893. operator RefCounted() const;
  31894. int Refs() const;
  31895. const String& GetName() const;
  31896. const String& GetProperty(const String&) const;
  31897. const String& GetType() const;
  31898. const Vector2& GetPoint(uint) const;
  31899. const Vector2& GetPosition() const;
  31900. const Vector2& GetSize() const;
  31901. int WeakRefs() const;
  31902. operator const RefCounted() const;
  31903. // Properties:
  31904. /* readonly */
  31905. String name;
  31906. /* readonly */
  31907. uint numPoints;
  31908. /* readonly */
  31909. TileMapObjectType2D objectType;
  31910. /* readonly */
  31911. Vector2 position;
  31912. /* readonly */
  31913. int refs;
  31914. /* readonly */
  31915. Vector2 size;
  31916. /* readonly */
  31917. bool tileFlipX;
  31918. /* readonly */
  31919. bool tileFlipY;
  31920. /* readonly */
  31921. uint tileGid;
  31922. /* readonly */
  31923. Sprite2D tileSprite;
  31924. /* readonly */
  31925. bool tileSwapXY;
  31926. /* readonly */
  31927. String type;
  31928. /* readonly */
  31929. int weakRefs;
  31930. };
  31931. class Time
  31932. {
  31933. public:
  31934. Time();
  31935. // Methods:
  31936. void BeginFrame(float);
  31937. void EndFrame();
  31938. bool GetBlockEvents() const;
  31939. float GetElapsedTime();
  31940. VariantMap& GetEventDataMap() const;
  31941. Object GetEventSender() const;
  31942. uint GetFrameNumber() const;
  31943. float GetFramesPerSecond() const;
  31944. Object GetSubsystem(StringHash) const;
  31945. float GetTimeStep() const;
  31946. uint GetTimerPeriod() const;
  31947. StringHash GetType() const;
  31948. bool HasEventHandlers() const;
  31949. bool HasSubscribedToEvent(Object, StringHash) const;
  31950. bool HasSubscribedToEvent(StringHash) const;
  31951. bool IsInstanceOf(StringHash) const;
  31952. operator Object() const;
  31953. void OnEvent(Object, StringHash, VariantMap&);
  31954. operator RefCounted() const;
  31955. int Refs() const;
  31956. void SendEvent(StringHash);
  31957. void SendEvent(StringHash, VariantMap&);
  31958. void SetBlockEvents(bool);
  31959. void SetGlobalVar(StringHash, const Variant&);
  31960. void SetTimerPeriod(uint);
  31961. const String& GetCategory() const;
  31962. const String& GetTypeName() const;
  31963. void UnsubscribeFromAllEvents();
  31964. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31965. void UnsubscribeFromEvent(Object, StringHash);
  31966. void UnsubscribeFromEvent(StringHash);
  31967. void UnsubscribeFromEvents(Object);
  31968. const Variant& GetGlobalVar(StringHash) const;
  31969. const VariantMap& GetGlobalVars() const;
  31970. int WeakRefs() const;
  31971. operator const Object() const;
  31972. operator const RefCounted() const;
  31973. // Properties:
  31974. /* readonly */
  31975. String category;
  31976. /* readonly */
  31977. float elapsedTime;
  31978. /* readonly */
  31979. uint frameNumber;
  31980. /* readonly */
  31981. float framesPerSecond;
  31982. Array<Variant> globalVar;
  31983. /* readonly */
  31984. VariantMap globalVars;
  31985. /* readonly */
  31986. int refs;
  31987. /* readonly */
  31988. uint systemTime;
  31989. /* readonly */
  31990. uint timeSinceEpoch;
  31991. /* readonly */
  31992. String timeStamp;
  31993. /* readonly */
  31994. float timeStep;
  31995. /* readonly */
  31996. StringHash type;
  31997. /* readonly */
  31998. String typeName;
  31999. /* readonly */
  32000. int weakRefs;
  32001. };
  32002. class Timer
  32003. {
  32004. public:
  32005. Timer();
  32006. // Methods:
  32007. Timer& operator=(const Timer&);
  32008. uint GetMSec(bool);
  32009. void Reset();
  32010. };
  32011. class TmxFile2D
  32012. {
  32013. public:
  32014. TmxFile2D();
  32015. // Methods:
  32016. void AddLayer(uint, TmxLayer2D);
  32017. bool BeginLoad(Deserializer&);
  32018. bool EndLoad();
  32019. AsyncLoadState GetAsyncLoadState() const;
  32020. bool GetBlockEvents() const;
  32021. VariantMap& GetEventDataMap() const;
  32022. Object GetEventSender() const;
  32023. TmxLayer2D GetLayer(uint) const;
  32024. uint GetMemoryUse() const;
  32025. StringHash GetNameHash() const;
  32026. uint GetNumLayers() const;
  32027. float GetSpriteTextureEdgeOffset() const;
  32028. Object GetSubsystem(StringHash) const;
  32029. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  32030. PropertySet2D GetTilePropertySet(uint) const;
  32031. Sprite2D GetTileSprite(uint) const;
  32032. StringHash GetType() const;
  32033. uint GetUseTimer();
  32034. bool HasEventHandlers() const;
  32035. bool HasSubscribedToEvent(Object, StringHash) const;
  32036. bool HasSubscribedToEvent(StringHash) const;
  32037. bool IsInstanceOf(StringHash) const;
  32038. bool Load(Deserializer&);
  32039. bool Load(File);
  32040. bool Load(VectorBuffer&);
  32041. bool Load(const String&);
  32042. bool LoadFile(const String&);
  32043. operator Object() const;
  32044. void OnEvent(Object, StringHash, VariantMap&);
  32045. operator RefCounted() const;
  32046. int Refs() const;
  32047. void ResetUseTimer();
  32048. operator Resource() const;
  32049. bool Save(File) const;
  32050. bool Save(Serializer&) const;
  32051. bool Save(VectorBuffer&) const;
  32052. bool Save(const String&) const;
  32053. bool SaveFile(const String&) const;
  32054. void SendEvent(StringHash);
  32055. void SendEvent(StringHash, VariantMap&);
  32056. void SetAsyncLoadState(AsyncLoadState);
  32057. void SetBlockEvents(bool);
  32058. void SetGlobalVar(StringHash, const Variant&);
  32059. bool SetInfo(Orientation2D, int, int, float, float);
  32060. void SetMemoryUse(uint);
  32061. void SetName(const String&);
  32062. void SetSpriteTextureEdgeOffset(float);
  32063. const String& GetCategory() const;
  32064. const String& GetName() const;
  32065. const String& GetTypeName() const;
  32066. const TileMapInfo2D& GetInfo() const;
  32067. void UnsubscribeFromAllEvents();
  32068. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32069. void UnsubscribeFromEvent(Object, StringHash);
  32070. void UnsubscribeFromEvent(StringHash);
  32071. void UnsubscribeFromEvents(Object);
  32072. const Variant& GetGlobalVar(StringHash) const;
  32073. const VariantMap& GetGlobalVars() const;
  32074. int WeakRefs() const;
  32075. operator const Object() const;
  32076. operator const RefCounted() const;
  32077. operator const Resource() const;
  32078. // Properties:
  32079. /* readonly */
  32080. String category;
  32081. float edgeOffset;
  32082. Array<Variant> globalVar;
  32083. /* readonly */
  32084. VariantMap globalVars;
  32085. /* readonly */
  32086. uint memoryUse;
  32087. String name;
  32088. /* readonly */
  32089. int refs;
  32090. /* readonly */
  32091. StringHash type;
  32092. /* readonly */
  32093. String typeName;
  32094. /* readonly */
  32095. uint useTimer;
  32096. /* readonly */
  32097. int weakRefs;
  32098. };
  32099. class TmxImageLayer2D
  32100. {
  32101. public:
  32102. TmxImageLayer2D(TmxFile2D&);
  32103. // Methods:
  32104. int GetHeight() const;
  32105. Sprite2D GetSprite() const;
  32106. TmxFile2D GetTmxFile() const;
  32107. TileMapLayerType2D GetType() const;
  32108. int GetWidth() const;
  32109. bool HasProperty(const String&) const;
  32110. bool IsVisible() const;
  32111. bool Load(const XMLElement&, const TileMapInfo2D&);
  32112. operator RefCounted() const;
  32113. int Refs() const;
  32114. const String& GetName() const;
  32115. const String& GetProperty(const String&) const;
  32116. const String& GetSource() const;
  32117. operator TmxLayer2D() const;
  32118. const Vector2& GetPosition() const;
  32119. int WeakRefs() const;
  32120. operator const RefCounted() const;
  32121. operator const TmxLayer2D() const;
  32122. // Properties:
  32123. /* readonly */
  32124. int refs;
  32125. /* readonly */
  32126. int weakRefs;
  32127. };
  32128. class TmxLayer2D
  32129. {
  32130. public:
  32131. TmxLayer2D(TmxFile2D&, TileMapLayerType2D);
  32132. // Methods:
  32133. int GetHeight() const;
  32134. TmxFile2D GetTmxFile() const;
  32135. TileMapLayerType2D GetType() const;
  32136. int GetWidth() const;
  32137. bool HasProperty(const String&) const;
  32138. bool IsVisible() const;
  32139. operator RefCounted() const;
  32140. int Refs() const;
  32141. const String& GetName() const;
  32142. const String& GetProperty(const String&) const;
  32143. operator TmxImageLayer2D() const;
  32144. operator TmxObjectGroup2D() const;
  32145. operator TmxTileLayer2D() const;
  32146. int WeakRefs() const;
  32147. operator const RefCounted() const;
  32148. operator const TmxImageLayer2D() const;
  32149. operator const TmxObjectGroup2D() const;
  32150. operator const TmxTileLayer2D() const;
  32151. // Properties:
  32152. /* readonly */
  32153. int refs;
  32154. /* readonly */
  32155. int weakRefs;
  32156. };
  32157. class TmxObjectGroup2D
  32158. {
  32159. public:
  32160. TmxObjectGroup2D(TmxFile2D&);
  32161. // Methods:
  32162. int GetHeight() const;
  32163. uint GetNumObjects() const;
  32164. TileMapObject2D GetObject(uint) const;
  32165. TmxFile2D GetTmxFile() const;
  32166. TileMapLayerType2D GetType() const;
  32167. int GetWidth() const;
  32168. bool HasProperty(const String&) const;
  32169. bool IsVisible() const;
  32170. bool Load(const XMLElement&, const TileMapInfo2D&);
  32171. operator RefCounted() const;
  32172. int Refs() const;
  32173. const String& GetName() const;
  32174. const String& GetProperty(const String&) const;
  32175. operator TmxLayer2D() const;
  32176. int WeakRefs() const;
  32177. operator const RefCounted() const;
  32178. operator const TmxLayer2D() const;
  32179. // Properties:
  32180. /* readonly */
  32181. int refs;
  32182. /* readonly */
  32183. int weakRefs;
  32184. };
  32185. class TmxTileLayer2D
  32186. {
  32187. public:
  32188. TmxTileLayer2D(TmxFile2D&);
  32189. // Methods:
  32190. int GetHeight() const;
  32191. Tile2D GetTile(int, int) const;
  32192. TmxFile2D GetTmxFile() const;
  32193. TileMapLayerType2D GetType() const;
  32194. int GetWidth() const;
  32195. bool HasProperty(const String&) const;
  32196. bool IsVisible() const;
  32197. bool Load(const XMLElement&, const TileMapInfo2D&);
  32198. operator RefCounted() const;
  32199. int Refs() const;
  32200. const String& GetName() const;
  32201. const String& GetProperty(const String&) const;
  32202. operator TmxLayer2D() const;
  32203. int WeakRefs() const;
  32204. operator const RefCounted() const;
  32205. operator const TmxLayer2D() const;
  32206. // Properties:
  32207. /* readonly */
  32208. int refs;
  32209. /* readonly */
  32210. int weakRefs;
  32211. };
  32212. class ToolTip
  32213. {
  32214. public:
  32215. ToolTip();
  32216. // Methods:
  32217. void AddAltTarget(UIElement);
  32218. void AddChild(UIElement);
  32219. void AddTag(const String&);
  32220. void AddTags(Array<String>);
  32221. void AddTags(const String&, int8 = ';');
  32222. void AdjustScissor(IntRect&);
  32223. void AllocateNetworkState();
  32224. operator Animatable() const;
  32225. void ApplyAttributes();
  32226. void BringToFront();
  32227. const Color& GetColor(Corner) const;
  32228. const Color& GetColorAttr() const;
  32229. const Color& GetDerivedColor() const;
  32230. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  32231. void DisableLayoutUpdate();
  32232. IntVector2 ElementToScreen(const IntVector2&);
  32233. void EnableLayoutUpdate();
  32234. bool FilterAttributes(XMLElement&) const;
  32235. uint FindChild(UIElement) const;
  32236. bool GetAnimationEnabled() const;
  32237. Variant GetAttribute(const String&) const;
  32238. Variant GetAttribute(uint) const;
  32239. ValueAnimation GetAttributeAnimation(const String&) const;
  32240. float GetAttributeAnimationSpeed(const String&) const;
  32241. float GetAttributeAnimationTime(const String&) const;
  32242. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  32243. Variant GetAttributeDefault(const String&) const;
  32244. Variant GetAttributeDefault(uint) const;
  32245. bool GetBlockEvents() const;
  32246. bool GetBringToBack() const;
  32247. bool GetBringToFront() const;
  32248. UIElement GetChild(const String&, bool = false) const;
  32249. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  32250. UIElement GetChild(uint) const;
  32251. Array<UIElement> GetChildren() const;
  32252. Array<UIElement> GetChildren(bool) const;
  32253. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  32254. bool GetClipChildren() const;
  32255. IntRect GetCombinedScreenRect();
  32256. XMLFile GetDefaultStyle(bool = true) const;
  32257. float GetDelay() const;
  32258. float GetDerivedOpacity() const;
  32259. uint GetDragButtonCombo() const;
  32260. uint GetDragButtonCount() const;
  32261. uint GetDragDropMode() const;
  32262. IntVector2 GetEffectiveMinSize() const;
  32263. UIElement GetElementEventSender() const;
  32264. bool GetEnableAnchor() const;
  32265. VariantMap& GetEventDataMap() const;
  32266. Object GetEventSender() const;
  32267. FocusMode GetFocusMode() const;
  32268. int GetHeight() const;
  32269. HorizontalAlignment GetHorizontalAlignment() const;
  32270. int GetIndent() const;
  32271. int GetIndentSpacing() const;
  32272. int GetIndentWidth() const;
  32273. bool GetInterceptNetworkUpdate(const String&) const;
  32274. int GetLayoutElementMaxSize() const;
  32275. LayoutMode GetLayoutMode() const;
  32276. int GetLayoutSpacing() const;
  32277. int GetMaxHeight() const;
  32278. int GetMaxWidth() const;
  32279. int GetMinHeight() const;
  32280. int GetMinWidth() const;
  32281. uint GetNumAttributes() const;
  32282. uint GetNumChildren(bool = false) const;
  32283. uint GetNumNetworkAttributes() const;
  32284. ObjectAnimation GetObjectAnimation() const;
  32285. ResourceRef GetObjectAnimationAttr() const;
  32286. float GetOpacity() const;
  32287. UIElement GetParent() const;
  32288. int GetPriority() const;
  32289. UIElement GetRoot() const;
  32290. bool GetSortChildren() const;
  32291. Object GetSubsystem(StringHash) const;
  32292. Array<String> GetTags() const;
  32293. TraversalMode GetTraversalMode() const;
  32294. StringHash GetType() const;
  32295. bool GetUseDerivedOpacity() const;
  32296. VerticalAlignment GetVerticalAlignment() const;
  32297. int GetWidth() const;
  32298. bool HasColorGradient() const;
  32299. bool HasEventHandlers() const;
  32300. bool HasFocus() const;
  32301. bool HasSubscribedToEvent(Object, StringHash) const;
  32302. bool HasSubscribedToEvent(StringHash) const;
  32303. bool HasTag(const String&) const;
  32304. void InsertChild(uint, UIElement);
  32305. const IntRect& GetClipBorder() const;
  32306. const IntRect& GetLayoutBorder() const;
  32307. const IntVector2& GetChildOffset() const;
  32308. const IntVector2& GetMaxOffset() const;
  32309. const IntVector2& GetMaxSize() const;
  32310. const IntVector2& GetMinOffset() const;
  32311. const IntVector2& GetMinSize() const;
  32312. const IntVector2& GetPosition() const;
  32313. const IntVector2& GetScreenPosition() const;
  32314. const IntVector2& GetSize() const;
  32315. bool IsChildOf(UIElement) const;
  32316. bool IsEditable() const;
  32317. bool IsElementEventSender() const;
  32318. bool IsEnabled() const;
  32319. bool IsEnabledSelf() const;
  32320. bool IsFixedHeight() const;
  32321. bool IsFixedSize() const;
  32322. bool IsFixedWidth() const;
  32323. bool IsHovering() const;
  32324. bool IsInside(IntVector2, bool);
  32325. bool IsInsideCombined(IntVector2, bool);
  32326. bool IsInstanceOf(StringHash) const;
  32327. bool IsInternal() const;
  32328. bool IsSelected() const;
  32329. bool IsTemporary() const;
  32330. bool IsVisible() const;
  32331. bool IsVisibleEffective() const;
  32332. bool IsWheelHandler() const;
  32333. bool IsWithinScissor(const IntRect&);
  32334. bool Load(Deserializer&);
  32335. UIElement LoadChildXML(XMLFile, XMLFile);
  32336. UIElement LoadChildXML(const XMLElement&, XMLFile);
  32337. bool LoadJSON(const JSONValue&);
  32338. bool LoadXML(Deserializer&);
  32339. bool LoadXML(File);
  32340. bool LoadXML(VectorBuffer&);
  32341. bool LoadXML(XMLFile, XMLFile);
  32342. bool LoadXML(const XMLElement&);
  32343. bool LoadXML(const XMLElement&, XMLFile);
  32344. void MarkNetworkUpdate();
  32345. operator Object() const;
  32346. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  32347. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  32348. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  32349. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32350. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32351. bool OnDragDropFinish(UIElement);
  32352. bool OnDragDropTest(UIElement);
  32353. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32354. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32355. void OnEvent(Object, StringHash, VariantMap&);
  32356. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  32357. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32358. void OnIndentSet();
  32359. void OnKey(uint, uint, uint);
  32360. void OnPositionSet(const IntVector2&);
  32361. void OnResize(const IntVector2&, const IntVector2&);
  32362. void OnSetAttribute(const AttributeInfo&, const Variant&);
  32363. void OnSetEditable();
  32364. void OnTextInput(const String&);
  32365. void OnWheel(int, uint, uint);
  32366. bool ReadDeltaUpdate(Deserializer&);
  32367. bool ReadLatestDataUpdate(Deserializer&);
  32368. operator RefCounted() const;
  32369. int Refs() const;
  32370. void Remove();
  32371. void RemoveAllChildren();
  32372. void RemoveAllTags();
  32373. void RemoveAttributeAnimation(const String&);
  32374. void RemoveChild(UIElement, uint = 0);
  32375. void RemoveChild(uint);
  32376. void RemoveChildAtIndex(uint);
  32377. void RemoveInstanceDefault();
  32378. void RemoveObjectAnimation();
  32379. bool RemoveTag(const String&);
  32380. void Reset();
  32381. void ResetDeepEnabled();
  32382. void ResetToDefault();
  32383. bool Save(Serializer&) const;
  32384. bool SaveDefaultAttributes() const;
  32385. bool SaveJSON(JSONValue&) const;
  32386. bool SaveXML(File, const String& indentation = "\t");
  32387. bool SaveXML(Serializer&, const String& = "\t") const;
  32388. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  32389. bool SaveXML(XMLElement&) const;
  32390. IntVector2 ScreenToElement(const IntVector2&);
  32391. void SendEvent(StringHash);
  32392. void SendEvent(StringHash, VariantMap&);
  32393. operator Serializable() const;
  32394. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  32395. void SetAnimationEnabled(bool);
  32396. void SetAnimationTime(float);
  32397. bool SetAttribute(const String&, const Variant&);
  32398. bool SetAttribute(uint, const Variant&);
  32399. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  32400. void SetAttributeAnimationSpeed(const String&, float);
  32401. void SetAttributeAnimationTime(const String&, float);
  32402. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  32403. void SetBlockEvents(bool);
  32404. void SetBringToBack(bool);
  32405. void SetBringToFront(bool);
  32406. void SetChildOffset(const IntVector2&);
  32407. void SetClipBorder(const IntRect&);
  32408. void SetClipChildren(bool);
  32409. void SetColor(Corner, const Color&);
  32410. void SetColor(const Color&);
  32411. void SetDeepEnabled(bool);
  32412. void SetDefaultStyle(XMLFile);
  32413. void SetDelay(float);
  32414. void SetDragDropMode(uint);
  32415. void SetEditable(bool);
  32416. void SetElementEventSender(bool);
  32417. void SetEnableAnchor(bool);
  32418. void SetEnabled(bool);
  32419. void SetEnabledRecursive(bool);
  32420. void SetFixedHeight(int);
  32421. void SetFixedSize(const IntVector2&);
  32422. void SetFixedSize(int, int);
  32423. void SetFixedWidth(int);
  32424. void SetFocus(bool);
  32425. void SetFocusMode(FocusMode);
  32426. void SetGlobalVar(StringHash, const Variant&);
  32427. void SetHeight(int);
  32428. void SetHorizontalAlignment(HorizontalAlignment);
  32429. void SetHovering(bool);
  32430. void SetIndent(int);
  32431. void SetIndentSpacing(int);
  32432. void SetInstanceDefault(bool);
  32433. void SetInterceptNetworkUpdate(const String&, bool);
  32434. void SetInternal(bool);
  32435. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  32436. void SetLayoutBorder(const IntRect&);
  32437. void SetLayoutFlexScale(const Vector2&);
  32438. void SetLayoutMode(LayoutMode);
  32439. void SetLayoutSpacing(int);
  32440. void SetMaxAnchor(const Vector2&);
  32441. void SetMaxAnchor(float, float);
  32442. void SetMaxHeight(int);
  32443. void SetMaxOffset(const IntVector2&);
  32444. void SetMaxSize(const IntVector2&);
  32445. void SetMaxSize(int, int);
  32446. void SetMaxWidth(int);
  32447. void SetMinAnchor(const Vector2&);
  32448. void SetMinAnchor(float, float);
  32449. void SetMinHeight(int);
  32450. void SetMinOffset(const IntVector2&);
  32451. void SetMinSize(const IntVector2&);
  32452. void SetMinSize(int, int);
  32453. void SetMinWidth(int);
  32454. void SetName(const String&);
  32455. void SetObjectAnimation(ObjectAnimation);
  32456. void SetObjectAnimationAttr(const ResourceRef&);
  32457. void SetOpacity(float);
  32458. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  32459. void SetPivot(const Vector2&);
  32460. void SetPivot(float, float);
  32461. void SetPosition(const IntVector2&);
  32462. void SetPosition(int, int);
  32463. void SetPriority(int);
  32464. void SetRenderTexture(Texture2D);
  32465. void SetSelected(bool);
  32466. void SetSize(const IntVector2&);
  32467. void SetSize(int, int);
  32468. void SetSortChildren(bool);
  32469. bool SetStyle(const String&, XMLFile = null);
  32470. bool SetStyle(const XMLElement&);
  32471. bool SetStyleAuto(XMLFile = null);
  32472. void SetTags(Array<String>);
  32473. void SetTemporary(bool);
  32474. void SetTraversalMode(TraversalMode);
  32475. void SetUseDerivedOpacity(bool);
  32476. void SetVar(StringHash, const Variant&);
  32477. void SetVerticalAlignment(VerticalAlignment);
  32478. void SetVisible(bool);
  32479. void SetWidth(int);
  32480. void SortChildren();
  32481. const String& GetAppliedStyle() const;
  32482. const String& GetCategory() const;
  32483. const String& GetName() const;
  32484. const String& GetTypeName() const;
  32485. operator UIElement() const;
  32486. void UnsubscribeFromAllEvents();
  32487. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32488. void UnsubscribeFromEvent(Object, StringHash);
  32489. void UnsubscribeFromEvent(StringHash);
  32490. void UnsubscribeFromEvents(Object);
  32491. void Update(float);
  32492. void UpdateLayout();
  32493. const Variant& GetGlobalVar(StringHash) const;
  32494. const Variant& GetVar(const StringHash&) const;
  32495. const VariantMap& GetGlobalVars() const;
  32496. const VariantMap& GetVars() const;
  32497. const Vector2& GetLayoutFlexScale() const;
  32498. const Vector2& GetMaxAnchor() const;
  32499. const Vector2& GetMinAnchor() const;
  32500. const Vector2& GetPivot() const;
  32501. int WeakRefs() const;
  32502. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  32503. void WriteInitialDeltaUpdate(Serializer&, uint8);
  32504. void WriteLatestDataUpdate(Serializer&, uint8);
  32505. operator const Animatable() const;
  32506. operator const Object() const;
  32507. operator const RefCounted() const;
  32508. operator const Serializable() const;
  32509. operator const UIElement() const;
  32510. // Properties:
  32511. bool animationEnabled;
  32512. /* readonly */
  32513. Array<Variant> attributeDefaults;
  32514. /* readonly */
  32515. Array<AttributeInfo> attributeInfos;
  32516. Array<Variant> attributes;
  32517. bool bringToBack;
  32518. bool bringToFront;
  32519. /* readonly */
  32520. String category;
  32521. /* readonly */
  32522. IntVector2 childOffset;
  32523. /* readonly */
  32524. Array<UIElement> children;
  32525. IntRect clipBorder;
  32526. bool clipChildren;
  32527. /* writeonly */
  32528. Color color;
  32529. /* readonly */
  32530. bool colorGradient;
  32531. Array<Color> colors;
  32532. /* readonly */
  32533. IntRect combinedScreenRect;
  32534. XMLFile defaultStyle;
  32535. float delay;
  32536. /* readonly */
  32537. float derivedOpacity;
  32538. /* readonly */
  32539. uint dragButtonCombo;
  32540. /* readonly */
  32541. uint dragButtonCount;
  32542. uint dragDropMode;
  32543. bool editable;
  32544. bool elementEventSender;
  32545. bool enableAnchor;
  32546. bool enabled;
  32547. /* readonly */
  32548. bool enabledSelf;
  32549. /* readonly */
  32550. bool fixedHeight;
  32551. /* readonly */
  32552. bool fixedSize;
  32553. /* readonly */
  32554. bool fixedWidth;
  32555. bool focus;
  32556. FocusMode focusMode;
  32557. Array<Variant> globalVar;
  32558. /* readonly */
  32559. VariantMap globalVars;
  32560. int height;
  32561. HorizontalAlignment horizontalAlignment;
  32562. /* readonly */
  32563. bool hovering;
  32564. int indent;
  32565. int indentSpacing;
  32566. /* readonly */
  32567. int indentWidth;
  32568. bool internal;
  32569. IntRect layoutBorder;
  32570. Vector2 layoutFlexScale;
  32571. LayoutMode layoutMode;
  32572. int layoutSpacing;
  32573. Vector2 maxAnchor;
  32574. int maxHeight;
  32575. IntVector2 maxOffset;
  32576. IntVector2 maxSize;
  32577. int maxWidth;
  32578. Vector2 minAnchor;
  32579. int minHeight;
  32580. IntVector2 minOffset;
  32581. IntVector2 minSize;
  32582. int minWidth;
  32583. String name;
  32584. /* readonly */
  32585. uint numAllChildren;
  32586. /* readonly */
  32587. uint numAttributes;
  32588. /* readonly */
  32589. uint numChildren;
  32590. ObjectAnimation objectAnimation;
  32591. float opacity;
  32592. UIElement parent;
  32593. Vector2 pivot;
  32594. IntVector2 position;
  32595. int priority;
  32596. /* readonly */
  32597. int refs;
  32598. /* readonly */
  32599. UIElement root;
  32600. /* readonly */
  32601. IntVector2 screenPosition;
  32602. bool selected;
  32603. IntVector2 size;
  32604. bool sortChildren;
  32605. String style;
  32606. /* readonly */
  32607. Array<String> tags;
  32608. bool temporary;
  32609. TraversalMode traversalMode;
  32610. /* readonly */
  32611. StringHash type;
  32612. /* readonly */
  32613. String typeName;
  32614. bool useDerivedOpacity;
  32615. /* readonly */
  32616. VariantMap vars;
  32617. VerticalAlignment verticalAlignment;
  32618. bool visible;
  32619. /* readonly */
  32620. bool visibleEffective;
  32621. /* readonly */
  32622. int weakRefs;
  32623. int width;
  32624. };
  32625. class TouchState
  32626. {
  32627. public:
  32628. // Methods:
  32629. TouchState& operator=(const TouchState&);
  32630. UIElement GetTouchedElement();
  32631. // Properties:
  32632. IntVector2 delta;
  32633. IntVector2 lastPosition;
  32634. IntVector2 position;
  32635. float pressure;
  32636. int touchID;
  32637. /* readonly */
  32638. UIElement touchedElement;
  32639. };
  32640. class TrailPoint
  32641. {
  32642. public:
  32643. ~TrailPoint();
  32644. TrailPoint();
  32645. TrailPoint(const Vector3&in, const Vector3&in);
  32646. // Methods:
  32647. TrailPoint& operator=(const TrailPoint&);
  32648. // Properties:
  32649. float elapsedLength;
  32650. Vector3 forward;
  32651. float lifetime;
  32652. Vector3 parentPos;
  32653. Vector3 position;
  32654. float sortDistance;
  32655. };
  32656. class TriangleMeshData
  32657. {
  32658. public:
  32659. TriangleMeshData(Model&, uint);
  32660. TriangleMeshData(CustomGeometry&);
  32661. // Methods:
  32662. operator CollisionGeometryData() const;
  32663. operator RefCounted() const;
  32664. int Refs() const;
  32665. int WeakRefs() const;
  32666. operator const CollisionGeometryData() const;
  32667. operator const RefCounted() const;
  32668. // Properties:
  32669. /* readonly */
  32670. int refs;
  32671. /* readonly */
  32672. int weakRefs;
  32673. };
  32674. class UI
  32675. {
  32676. public:
  32677. UI();
  32678. // Methods:
  32679. void Clear();
  32680. IntVector2 ConvertSystemToUI(const IntVector2&) const;
  32681. IntVector2 ConvertUIToSystem(const IntVector2&) const;
  32682. void DebugDraw(UIElement);
  32683. bool GetBlockEvents() const;
  32684. Cursor GetCursor() const;
  32685. IntVector2 GetCursorPosition() const;
  32686. float GetDefaultToolTipDelay() const;
  32687. float GetDoubleClickInterval() const;
  32688. int GetDragBeginDistance() const;
  32689. float GetDragBeginInterval() const;
  32690. UIElement GetDragElement(uint);
  32691. UIElement GetElementAt(UIElement, const IntVector2&, bool = true);
  32692. UIElement GetElementAt(const IntVector2&, bool = true);
  32693. UIElement GetElementAt(int, int, bool = true);
  32694. VariantMap& GetEventDataMap() const;
  32695. Object GetEventSender() const;
  32696. UIElement GetFocusElement() const;
  32697. FontHintLevel GetFontHintLevel() const;
  32698. int GetFontOversampling() const;
  32699. float GetFontSubpixelThreshold() const;
  32700. bool GetForceAutoHint() const;
  32701. UIElement GetFrontElement() const;
  32702. float GetMaxDoubleClickDistance() const;
  32703. int GetMaxFontTextureSize() const;
  32704. uint GetNumDragElements() const;
  32705. UIElement GetRoot() const;
  32706. UIElement GetRootModalElement() const;
  32707. float GetScale() const;
  32708. Object GetSubsystem(StringHash) const;
  32709. StringHash GetType() const;
  32710. bool GetUseMutableGlyphs() const;
  32711. bool GetUseScreenKeyboard() const;
  32712. bool GetUseSystemClipboard() const;
  32713. bool HasEventHandlers() const;
  32714. bool HasModalElement() const;
  32715. bool HasSubscribedToEvent(Object, StringHash) const;
  32716. bool HasSubscribedToEvent(StringHash) const;
  32717. const IntVector2& GetCustomSize() const;
  32718. bool IsDragging() const;
  32719. bool IsInstanceOf(StringHash) const;
  32720. bool IsNonFocusedMouseWheel() const;
  32721. UIElement LoadLayout(Deserializer&, XMLFile = null);
  32722. UIElement LoadLayout(File);
  32723. UIElement LoadLayout(File, XMLFile);
  32724. UIElement LoadLayout(VectorBuffer&);
  32725. UIElement LoadLayout(VectorBuffer&, XMLFile);
  32726. UIElement LoadLayout(XMLFile, XMLFile = null);
  32727. operator Object() const;
  32728. void OnEvent(Object, StringHash, VariantMap&);
  32729. operator RefCounted() const;
  32730. int Refs() const;
  32731. void Render(bool = false);
  32732. void RenderUpdate();
  32733. bool SaveLayout(File, UIElement);
  32734. bool SaveLayout(Serializer&, UIElement);
  32735. bool SaveLayout(VectorBuffer&, UIElement);
  32736. void SendEvent(StringHash);
  32737. void SendEvent(StringHash, VariantMap&);
  32738. void SetBlockEvents(bool);
  32739. void SetClipboardText(const String&);
  32740. void SetCursor(Cursor);
  32741. void SetCustomSize(const IntVector2&);
  32742. void SetCustomSize(int, int);
  32743. void SetDefaultToolTipDelay(float);
  32744. void SetDoubleClickInterval(float);
  32745. void SetDragBeginDistance(int);
  32746. void SetDragBeginInterval(float);
  32747. void SetElementRenderTexture(UIElement, Texture2D);
  32748. void SetFocusElement(UIElement, bool = false);
  32749. void SetFontHintLevel(FontHintLevel);
  32750. void SetFontOversampling(int);
  32751. void SetFontSubpixelThreshold(float);
  32752. void SetForceAutoHint(bool);
  32753. void SetGlobalVar(StringHash, const Variant&);
  32754. void SetHeight(float);
  32755. void SetMaxDoubleClickDistance(float);
  32756. void SetMaxFontTextureSize(int);
  32757. bool SetModalElement(UIElement, bool);
  32758. void SetNonFocusedMouseWheel(bool);
  32759. void SetScale(float);
  32760. void SetUseMutableGlyphs(bool);
  32761. void SetUseScreenKeyboard(bool);
  32762. void SetUseSystemClipboard(bool);
  32763. void SetWidth(float);
  32764. const String& GetCategory() const;
  32765. const String& GetClipboardText() const;
  32766. const String& GetTypeName() const;
  32767. const Array<UIElement> GetDragElements();
  32768. void UnsubscribeFromAllEvents();
  32769. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32770. void UnsubscribeFromEvent(Object, StringHash);
  32771. void UnsubscribeFromEvent(StringHash);
  32772. void UnsubscribeFromEvents(Object);
  32773. void Update(float);
  32774. const Variant& GetGlobalVar(StringHash) const;
  32775. const VariantMap& GetGlobalVars() const;
  32776. int WeakRefs() const;
  32777. operator const Object() const;
  32778. operator const RefCounted() const;
  32779. // Properties:
  32780. /* readonly */
  32781. String category;
  32782. String clipboardText;
  32783. Cursor cursor;
  32784. /* readonly */
  32785. IntVector2 cursorPosition;
  32786. IntVector2 customSize;
  32787. float defaultToolTipDelay;
  32788. float doubleClickInterval;
  32789. int dragBeginDistance;
  32790. float dragBeginInterval;
  32791. UIElement focusElement;
  32792. FontHintLevel fontHintLevel;
  32793. int fontOversampling;
  32794. float fontSubpixelThreshold;
  32795. bool forceAutoHint;
  32796. /* readonly */
  32797. UIElement frontElement;
  32798. Array<Variant> globalVar;
  32799. /* readonly */
  32800. VariantMap globalVars;
  32801. float maxDoubleClickDistance;
  32802. int maxFontTextureSize;
  32803. /* readonly */
  32804. UIElement modalRoot;
  32805. bool nonFocusedMouseWheel;
  32806. /* readonly */
  32807. int refs;
  32808. /* readonly */
  32809. UIElement root;
  32810. float scale;
  32811. /* readonly */
  32812. StringHash type;
  32813. /* readonly */
  32814. String typeName;
  32815. bool useMutableGlyphs;
  32816. bool useScreenKeyboard;
  32817. bool useSystemClipboard;
  32818. /* readonly */
  32819. int weakRefs;
  32820. };
  32821. class UIBatch
  32822. {
  32823. public:
  32824. ~UIBatch();
  32825. UIBatch();
  32826. // Methods:
  32827. UIBatch& operator=(const UIBatch&);
  32828. void AddQuad(const Matrix3x4&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&);
  32829. 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&);
  32830. void AddQuad(const Matrix3x4&, int, int, int, int, int, int, int = 0, int = 0);
  32831. void AddQuad(float, float, float, float, int, int, int = 0, int = 0);
  32832. void AddQuad(int, int, int, int, int, int, int, int, bool);
  32833. uint GetInterpolatedColor(float, float);
  32834. bool Merge(const UIBatch&);
  32835. void SetColor(const Color&, bool = false);
  32836. void SetDefaultColor();
  32837. // Properties:
  32838. BlendMode blendMode;
  32839. uint color;
  32840. Vector2 invTextureSize;
  32841. IntRect scissor;
  32842. bool useGradient;
  32843. uint vertexEnd;
  32844. uint vertexStart;
  32845. // Constants:
  32846. static const Vector3 posAdjust;
  32847. };
  32848. class UIComponent
  32849. {
  32850. public:
  32851. UIComponent();
  32852. // Methods:
  32853. void AllocateNetworkState();
  32854. operator Animatable() const;
  32855. void ApplyAttributes();
  32856. void CleanupConnection(Connection);
  32857. operator Component() const;
  32858. void DrawDebugGeometry(DebugRenderer, bool);
  32859. bool GetAnimationEnabled() const;
  32860. Variant GetAttribute(const String&) const;
  32861. Variant GetAttribute(uint) const;
  32862. ValueAnimation GetAttributeAnimation(const String&) const;
  32863. float GetAttributeAnimationSpeed(const String&) const;
  32864. float GetAttributeAnimationTime(const String&) const;
  32865. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  32866. Variant GetAttributeDefault(const String&) const;
  32867. Variant GetAttributeDefault(uint) const;
  32868. bool GetBlockEvents() const;
  32869. Component GetComponent(StringHash) const;
  32870. VariantMap& GetEventDataMap() const;
  32871. Object GetEventSender() const;
  32872. uint GetID() const;
  32873. bool GetInterceptNetworkUpdate(const String&) const;
  32874. Material GetMaterial() const;
  32875. Node GetNode() const;
  32876. uint GetNumAttributes() const;
  32877. uint GetNumNetworkAttributes() const;
  32878. ObjectAnimation GetObjectAnimation() const;
  32879. ResourceRef GetObjectAnimationAttr() const;
  32880. UIElement GetRoot() const;
  32881. Scene GetScene() const;
  32882. Object GetSubsystem(StringHash) const;
  32883. Texture2D GetTexture() const;
  32884. StringHash GetType() const;
  32885. bool HasEventHandlers() const;
  32886. bool HasSubscribedToEvent(Object, StringHash) const;
  32887. bool HasSubscribedToEvent(StringHash) const;
  32888. bool IsEnabled() const;
  32889. bool IsEnabledEffective() const;
  32890. bool IsInstanceOf(StringHash) const;
  32891. bool IsReplicated() const;
  32892. bool IsTemporary() const;
  32893. bool Load(Deserializer&);
  32894. bool LoadJSON(const JSONValue&);
  32895. bool LoadXML(const XMLElement&);
  32896. void MarkNetworkUpdate();
  32897. operator Object() const;
  32898. void OnEvent(Object, StringHash, VariantMap&);
  32899. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  32900. void OnSetAttribute(const AttributeInfo&, const Variant&);
  32901. void OnSetEnabled();
  32902. void PrepareNetworkUpdate();
  32903. bool ReadDeltaUpdate(Deserializer&);
  32904. bool ReadLatestDataUpdate(Deserializer&);
  32905. operator RefCounted() const;
  32906. int Refs() const;
  32907. void Remove();
  32908. void RemoveAttributeAnimation(const String&);
  32909. void RemoveInstanceDefault();
  32910. void RemoveObjectAnimation();
  32911. void ResetToDefault();
  32912. bool Save(Serializer&) const;
  32913. bool SaveDefaultAttributes() const;
  32914. bool SaveJSON(JSONValue&) const;
  32915. bool SaveXML(XMLElement&) const;
  32916. void SendEvent(StringHash);
  32917. void SendEvent(StringHash, VariantMap&);
  32918. operator Serializable() const;
  32919. void SetAnimationEnabled(bool);
  32920. void SetAnimationTime(float);
  32921. bool SetAttribute(const String&, const Variant&);
  32922. bool SetAttribute(uint, const Variant&);
  32923. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  32924. void SetAttributeAnimationSpeed(const String&, float);
  32925. void SetAttributeAnimationTime(const String&, float);
  32926. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  32927. void SetBlockEvents(bool);
  32928. void SetEnabled(bool);
  32929. void SetGlobalVar(StringHash, const Variant&);
  32930. void SetInstanceDefault(bool);
  32931. void SetInterceptNetworkUpdate(const String&, bool);
  32932. void SetObjectAnimation(ObjectAnimation);
  32933. void SetObjectAnimationAttr(const ResourceRef&);
  32934. void SetTemporary(bool);
  32935. void SetViewportIndex(uint);
  32936. const String& GetCategory() const;
  32937. const String& GetTypeName() const;
  32938. void UnsubscribeFromAllEvents();
  32939. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32940. void UnsubscribeFromEvent(Object, StringHash);
  32941. void UnsubscribeFromEvent(StringHash);
  32942. void UnsubscribeFromEvents(Object);
  32943. const Variant& GetGlobalVar(StringHash) const;
  32944. const VariantMap& GetGlobalVars() const;
  32945. int WeakRefs() const;
  32946. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  32947. void WriteInitialDeltaUpdate(Serializer&, uint8);
  32948. void WriteLatestDataUpdate(Serializer&, uint8);
  32949. operator const Animatable() const;
  32950. operator const Component() const;
  32951. operator const Object() const;
  32952. operator const RefCounted() const;
  32953. operator const Serializable() const;
  32954. // Properties:
  32955. bool animationEnabled;
  32956. /* readonly */
  32957. Array<Variant> attributeDefaults;
  32958. /* readonly */
  32959. Array<AttributeInfo> attributeInfos;
  32960. Array<Variant> attributes;
  32961. /* readonly */
  32962. String category;
  32963. bool enabled;
  32964. /* readonly */
  32965. bool enabledEffective;
  32966. Array<Variant> globalVar;
  32967. /* readonly */
  32968. VariantMap globalVars;
  32969. /* readonly */
  32970. uint id;
  32971. /* readonly */
  32972. Material material;
  32973. /* readonly */
  32974. Node node;
  32975. /* readonly */
  32976. uint numAttributes;
  32977. ObjectAnimation objectAnimation;
  32978. /* readonly */
  32979. int refs;
  32980. /* readonly */
  32981. bool replicated;
  32982. /* readonly */
  32983. UIElement root;
  32984. bool temporary;
  32985. /* readonly */
  32986. Texture2D texture;
  32987. /* readonly */
  32988. StringHash type;
  32989. /* readonly */
  32990. String typeName;
  32991. /* readonly */
  32992. int weakRefs;
  32993. };
  32994. class UIElement
  32995. {
  32996. public:
  32997. UIElement();
  32998. UIElement(const String&in);
  32999. // Methods:
  33000. void AddChild(UIElement);
  33001. void AddTag(const String&);
  33002. void AddTags(Array<String>);
  33003. void AddTags(const String&, int8 = ';');
  33004. void AdjustScissor(IntRect&);
  33005. void AllocateNetworkState();
  33006. operator Animatable() const;
  33007. void ApplyAttributes();
  33008. operator BorderImage() const;
  33009. void BringToFront();
  33010. operator Button() const;
  33011. operator CheckBox() const;
  33012. const Color& GetColor(Corner) const;
  33013. const Color& GetColorAttr() const;
  33014. const Color& GetDerivedColor() const;
  33015. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  33016. operator Cursor() const;
  33017. void DisableLayoutUpdate();
  33018. operator DropDownList() const;
  33019. IntVector2 ElementToScreen(const IntVector2&);
  33020. void EnableLayoutUpdate();
  33021. bool FilterAttributes(XMLElement&) const;
  33022. uint FindChild(UIElement) const;
  33023. bool GetAnimationEnabled() const;
  33024. Variant GetAttribute(const String&) const;
  33025. Variant GetAttribute(uint) const;
  33026. ValueAnimation GetAttributeAnimation(const String&) const;
  33027. float GetAttributeAnimationSpeed(const String&) const;
  33028. float GetAttributeAnimationTime(const String&) const;
  33029. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  33030. Variant GetAttributeDefault(const String&) const;
  33031. Variant GetAttributeDefault(uint) const;
  33032. bool GetBlockEvents() const;
  33033. bool GetBringToBack() const;
  33034. bool GetBringToFront() const;
  33035. UIElement GetChild(const String&, bool = false) const;
  33036. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  33037. UIElement GetChild(uint) const;
  33038. Array<UIElement> GetChildren() const;
  33039. Array<UIElement> GetChildren(bool) const;
  33040. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  33041. bool GetClipChildren() const;
  33042. IntRect GetCombinedScreenRect();
  33043. XMLFile GetDefaultStyle(bool = true) const;
  33044. float GetDerivedOpacity() const;
  33045. uint GetDragButtonCombo() const;
  33046. uint GetDragButtonCount() const;
  33047. uint GetDragDropMode() const;
  33048. IntVector2 GetEffectiveMinSize() const;
  33049. UIElement GetElementEventSender() const;
  33050. bool GetEnableAnchor() const;
  33051. VariantMap& GetEventDataMap() const;
  33052. Object GetEventSender() const;
  33053. FocusMode GetFocusMode() const;
  33054. int GetHeight() const;
  33055. HorizontalAlignment GetHorizontalAlignment() const;
  33056. int GetIndent() const;
  33057. int GetIndentSpacing() const;
  33058. int GetIndentWidth() const;
  33059. bool GetInterceptNetworkUpdate(const String&) const;
  33060. int GetLayoutElementMaxSize() const;
  33061. LayoutMode GetLayoutMode() const;
  33062. int GetLayoutSpacing() const;
  33063. int GetMaxHeight() const;
  33064. int GetMaxWidth() const;
  33065. int GetMinHeight() const;
  33066. int GetMinWidth() const;
  33067. uint GetNumAttributes() const;
  33068. uint GetNumChildren(bool = false) const;
  33069. uint GetNumNetworkAttributes() const;
  33070. ObjectAnimation GetObjectAnimation() const;
  33071. ResourceRef GetObjectAnimationAttr() const;
  33072. float GetOpacity() const;
  33073. UIElement GetParent() const;
  33074. int GetPriority() const;
  33075. UIElement GetRoot() const;
  33076. bool GetSortChildren() const;
  33077. Object GetSubsystem(StringHash) const;
  33078. Array<String> GetTags() const;
  33079. TraversalMode GetTraversalMode() const;
  33080. StringHash GetType() const;
  33081. bool GetUseDerivedOpacity() const;
  33082. VerticalAlignment GetVerticalAlignment() const;
  33083. int GetWidth() const;
  33084. bool HasColorGradient() const;
  33085. bool HasEventHandlers() const;
  33086. bool HasFocus() const;
  33087. bool HasSubscribedToEvent(Object, StringHash) const;
  33088. bool HasSubscribedToEvent(StringHash) const;
  33089. bool HasTag(const String&) const;
  33090. void InsertChild(uint, UIElement);
  33091. const IntRect& GetClipBorder() const;
  33092. const IntRect& GetLayoutBorder() const;
  33093. const IntVector2& GetChildOffset() const;
  33094. const IntVector2& GetMaxOffset() const;
  33095. const IntVector2& GetMaxSize() const;
  33096. const IntVector2& GetMinOffset() const;
  33097. const IntVector2& GetMinSize() const;
  33098. const IntVector2& GetPosition() const;
  33099. const IntVector2& GetScreenPosition() const;
  33100. const IntVector2& GetSize() const;
  33101. bool IsChildOf(UIElement) const;
  33102. bool IsEditable() const;
  33103. bool IsElementEventSender() const;
  33104. bool IsEnabled() const;
  33105. bool IsEnabledSelf() const;
  33106. bool IsFixedHeight() const;
  33107. bool IsFixedSize() const;
  33108. bool IsFixedWidth() const;
  33109. bool IsHovering() const;
  33110. bool IsInside(IntVector2, bool);
  33111. bool IsInsideCombined(IntVector2, bool);
  33112. bool IsInstanceOf(StringHash) const;
  33113. bool IsInternal() const;
  33114. bool IsSelected() const;
  33115. bool IsTemporary() const;
  33116. bool IsVisible() const;
  33117. bool IsVisibleEffective() const;
  33118. bool IsWheelHandler() const;
  33119. bool IsWithinScissor(const IntRect&);
  33120. operator LineEdit() const;
  33121. operator ListView() const;
  33122. bool Load(Deserializer&);
  33123. UIElement LoadChildXML(XMLFile, XMLFile);
  33124. UIElement LoadChildXML(const XMLElement&, XMLFile);
  33125. bool LoadJSON(const JSONValue&);
  33126. bool LoadXML(Deserializer&);
  33127. bool LoadXML(File);
  33128. bool LoadXML(VectorBuffer&);
  33129. bool LoadXML(XMLFile, XMLFile);
  33130. bool LoadXML(const XMLElement&);
  33131. bool LoadXML(const XMLElement&, XMLFile);
  33132. void MarkNetworkUpdate();
  33133. operator Menu() const;
  33134. operator Object() const;
  33135. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33136. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  33137. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33138. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33139. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33140. bool OnDragDropFinish(UIElement);
  33141. bool OnDragDropTest(UIElement);
  33142. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33143. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33144. void OnEvent(Object, StringHash, VariantMap&);
  33145. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33146. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33147. void OnIndentSet();
  33148. void OnKey(uint, uint, uint);
  33149. void OnPositionSet(const IntVector2&);
  33150. void OnResize(const IntVector2&, const IntVector2&);
  33151. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33152. void OnSetEditable();
  33153. void OnTextInput(const String&);
  33154. void OnWheel(int, uint, uint);
  33155. operator ProgressBar() const;
  33156. bool ReadDeltaUpdate(Deserializer&);
  33157. bool ReadLatestDataUpdate(Deserializer&);
  33158. operator RefCounted() const;
  33159. int Refs() const;
  33160. void Remove();
  33161. void RemoveAllChildren();
  33162. void RemoveAllTags();
  33163. void RemoveAttributeAnimation(const String&);
  33164. void RemoveChild(UIElement, uint = 0);
  33165. void RemoveChild(uint);
  33166. void RemoveChildAtIndex(uint);
  33167. void RemoveInstanceDefault();
  33168. void RemoveObjectAnimation();
  33169. bool RemoveTag(const String&);
  33170. void ResetDeepEnabled();
  33171. void ResetToDefault();
  33172. bool Save(Serializer&) const;
  33173. bool SaveDefaultAttributes() const;
  33174. bool SaveJSON(JSONValue&) const;
  33175. bool SaveXML(File, const String& indentation = "\t");
  33176. bool SaveXML(Serializer&, const String& = "\t") const;
  33177. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  33178. bool SaveXML(XMLElement&) const;
  33179. IntVector2 ScreenToElement(const IntVector2&);
  33180. operator ScrollBar() const;
  33181. operator ScrollView() const;
  33182. void SendEvent(StringHash);
  33183. void SendEvent(StringHash, VariantMap&);
  33184. operator Serializable() const;
  33185. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  33186. void SetAnimationEnabled(bool);
  33187. void SetAnimationTime(float);
  33188. bool SetAttribute(const String&, const Variant&);
  33189. bool SetAttribute(uint, const Variant&);
  33190. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33191. void SetAttributeAnimationSpeed(const String&, float);
  33192. void SetAttributeAnimationTime(const String&, float);
  33193. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33194. void SetBlockEvents(bool);
  33195. void SetBringToBack(bool);
  33196. void SetBringToFront(bool);
  33197. void SetChildOffset(const IntVector2&);
  33198. void SetClipBorder(const IntRect&);
  33199. void SetClipChildren(bool);
  33200. void SetColor(Corner, const Color&);
  33201. void SetColor(const Color&);
  33202. void SetDeepEnabled(bool);
  33203. void SetDefaultStyle(XMLFile);
  33204. void SetDragDropMode(uint);
  33205. void SetEditable(bool);
  33206. void SetElementEventSender(bool);
  33207. void SetEnableAnchor(bool);
  33208. void SetEnabled(bool);
  33209. void SetEnabledRecursive(bool);
  33210. void SetFixedHeight(int);
  33211. void SetFixedSize(const IntVector2&);
  33212. void SetFixedSize(int, int);
  33213. void SetFixedWidth(int);
  33214. void SetFocus(bool);
  33215. void SetFocusMode(FocusMode);
  33216. void SetGlobalVar(StringHash, const Variant&);
  33217. void SetHeight(int);
  33218. void SetHorizontalAlignment(HorizontalAlignment);
  33219. void SetHovering(bool);
  33220. void SetIndent(int);
  33221. void SetIndentSpacing(int);
  33222. void SetInstanceDefault(bool);
  33223. void SetInterceptNetworkUpdate(const String&, bool);
  33224. void SetInternal(bool);
  33225. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  33226. void SetLayoutBorder(const IntRect&);
  33227. void SetLayoutFlexScale(const Vector2&);
  33228. void SetLayoutMode(LayoutMode);
  33229. void SetLayoutSpacing(int);
  33230. void SetMaxAnchor(const Vector2&);
  33231. void SetMaxAnchor(float, float);
  33232. void SetMaxHeight(int);
  33233. void SetMaxOffset(const IntVector2&);
  33234. void SetMaxSize(const IntVector2&);
  33235. void SetMaxSize(int, int);
  33236. void SetMaxWidth(int);
  33237. void SetMinAnchor(const Vector2&);
  33238. void SetMinAnchor(float, float);
  33239. void SetMinHeight(int);
  33240. void SetMinOffset(const IntVector2&);
  33241. void SetMinSize(const IntVector2&);
  33242. void SetMinSize(int, int);
  33243. void SetMinWidth(int);
  33244. void SetName(const String&);
  33245. void SetObjectAnimation(ObjectAnimation);
  33246. void SetObjectAnimationAttr(const ResourceRef&);
  33247. void SetOpacity(float);
  33248. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  33249. void SetPivot(const Vector2&);
  33250. void SetPivot(float, float);
  33251. void SetPosition(const IntVector2&);
  33252. void SetPosition(int, int);
  33253. void SetPriority(int);
  33254. void SetRenderTexture(Texture2D);
  33255. void SetSelected(bool);
  33256. void SetSize(const IntVector2&);
  33257. void SetSize(int, int);
  33258. void SetSortChildren(bool);
  33259. bool SetStyle(const String&, XMLFile = null);
  33260. bool SetStyle(const XMLElement&);
  33261. bool SetStyleAuto(XMLFile = null);
  33262. void SetTags(Array<String>);
  33263. void SetTemporary(bool);
  33264. void SetTraversalMode(TraversalMode);
  33265. void SetUseDerivedOpacity(bool);
  33266. void SetVar(StringHash, const Variant&);
  33267. void SetVerticalAlignment(VerticalAlignment);
  33268. void SetVisible(bool);
  33269. void SetWidth(int);
  33270. operator Slider() const;
  33271. void SortChildren();
  33272. operator Sprite() const;
  33273. const String& GetAppliedStyle() const;
  33274. const String& GetCategory() const;
  33275. const String& GetName() const;
  33276. const String& GetTypeName() const;
  33277. operator Text() const;
  33278. operator ToolTip() const;
  33279. operator UISelectable() const;
  33280. void UnsubscribeFromAllEvents();
  33281. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33282. void UnsubscribeFromEvent(Object, StringHash);
  33283. void UnsubscribeFromEvent(StringHash);
  33284. void UnsubscribeFromEvents(Object);
  33285. void Update(float);
  33286. void UpdateLayout();
  33287. const Variant& GetGlobalVar(StringHash) const;
  33288. const Variant& GetVar(const StringHash&) const;
  33289. const VariantMap& GetGlobalVars() const;
  33290. const VariantMap& GetVars() const;
  33291. const Vector2& GetLayoutFlexScale() const;
  33292. const Vector2& GetMaxAnchor() const;
  33293. const Vector2& GetMinAnchor() const;
  33294. const Vector2& GetPivot() const;
  33295. operator View3D() const;
  33296. int WeakRefs() const;
  33297. operator Window() const;
  33298. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33299. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33300. void WriteLatestDataUpdate(Serializer&, uint8);
  33301. operator const Animatable() const;
  33302. operator const BorderImage() const;
  33303. operator const Button() const;
  33304. operator const CheckBox() const;
  33305. operator const Cursor() const;
  33306. operator const DropDownList() const;
  33307. operator const LineEdit() const;
  33308. operator const ListView() const;
  33309. operator const Menu() const;
  33310. operator const Object() const;
  33311. operator const ProgressBar() const;
  33312. operator const RefCounted() const;
  33313. operator const ScrollBar() const;
  33314. operator const ScrollView() const;
  33315. operator const Serializable() const;
  33316. operator const Slider() const;
  33317. operator const Sprite() const;
  33318. operator const Text() const;
  33319. operator const ToolTip() const;
  33320. operator const UISelectable() const;
  33321. operator const View3D() const;
  33322. operator const Window() const;
  33323. // Properties:
  33324. bool animationEnabled;
  33325. /* readonly */
  33326. Array<Variant> attributeDefaults;
  33327. /* readonly */
  33328. Array<AttributeInfo> attributeInfos;
  33329. Array<Variant> attributes;
  33330. bool bringToBack;
  33331. bool bringToFront;
  33332. /* readonly */
  33333. String category;
  33334. /* readonly */
  33335. IntVector2 childOffset;
  33336. /* readonly */
  33337. Array<UIElement> children;
  33338. IntRect clipBorder;
  33339. bool clipChildren;
  33340. /* writeonly */
  33341. Color color;
  33342. /* readonly */
  33343. bool colorGradient;
  33344. Array<Color> colors;
  33345. /* readonly */
  33346. IntRect combinedScreenRect;
  33347. XMLFile defaultStyle;
  33348. /* readonly */
  33349. float derivedOpacity;
  33350. /* readonly */
  33351. uint dragButtonCombo;
  33352. /* readonly */
  33353. uint dragButtonCount;
  33354. uint dragDropMode;
  33355. bool editable;
  33356. bool elementEventSender;
  33357. bool enableAnchor;
  33358. bool enabled;
  33359. /* readonly */
  33360. bool enabledSelf;
  33361. /* readonly */
  33362. bool fixedHeight;
  33363. /* readonly */
  33364. bool fixedSize;
  33365. /* readonly */
  33366. bool fixedWidth;
  33367. bool focus;
  33368. FocusMode focusMode;
  33369. Array<Variant> globalVar;
  33370. /* readonly */
  33371. VariantMap globalVars;
  33372. int height;
  33373. HorizontalAlignment horizontalAlignment;
  33374. /* readonly */
  33375. bool hovering;
  33376. int indent;
  33377. int indentSpacing;
  33378. /* readonly */
  33379. int indentWidth;
  33380. bool internal;
  33381. IntRect layoutBorder;
  33382. Vector2 layoutFlexScale;
  33383. LayoutMode layoutMode;
  33384. int layoutSpacing;
  33385. Vector2 maxAnchor;
  33386. int maxHeight;
  33387. IntVector2 maxOffset;
  33388. IntVector2 maxSize;
  33389. int maxWidth;
  33390. Vector2 minAnchor;
  33391. int minHeight;
  33392. IntVector2 minOffset;
  33393. IntVector2 minSize;
  33394. int minWidth;
  33395. String name;
  33396. /* readonly */
  33397. uint numAllChildren;
  33398. /* readonly */
  33399. uint numAttributes;
  33400. /* readonly */
  33401. uint numChildren;
  33402. ObjectAnimation objectAnimation;
  33403. float opacity;
  33404. UIElement parent;
  33405. Vector2 pivot;
  33406. IntVector2 position;
  33407. int priority;
  33408. /* readonly */
  33409. int refs;
  33410. /* readonly */
  33411. UIElement root;
  33412. /* readonly */
  33413. IntVector2 screenPosition;
  33414. bool selected;
  33415. IntVector2 size;
  33416. bool sortChildren;
  33417. String style;
  33418. /* readonly */
  33419. Array<String> tags;
  33420. bool temporary;
  33421. TraversalMode traversalMode;
  33422. /* readonly */
  33423. StringHash type;
  33424. /* readonly */
  33425. String typeName;
  33426. bool useDerivedOpacity;
  33427. /* readonly */
  33428. VariantMap vars;
  33429. VerticalAlignment verticalAlignment;
  33430. bool visible;
  33431. /* readonly */
  33432. bool visibleEffective;
  33433. /* readonly */
  33434. int weakRefs;
  33435. int width;
  33436. };
  33437. class UISelectable
  33438. {
  33439. public:
  33440. // Methods:
  33441. void AddChild(UIElement);
  33442. void AddTag(const String&);
  33443. void AddTags(Array<String>);
  33444. void AddTags(const String&, int8 = ';');
  33445. void AdjustScissor(IntRect&);
  33446. void AllocateNetworkState();
  33447. operator Animatable() const;
  33448. void ApplyAttributes();
  33449. void BringToFront();
  33450. const Color& GetColor(Corner) const;
  33451. const Color& GetColorAttr() const;
  33452. const Color& GetDerivedColor() const;
  33453. const Color& GetHoverColor() const;
  33454. const Color& GetSelectionColor() const;
  33455. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  33456. void DisableLayoutUpdate();
  33457. IntVector2 ElementToScreen(const IntVector2&);
  33458. void EnableLayoutUpdate();
  33459. bool FilterAttributes(XMLElement&) const;
  33460. uint FindChild(UIElement) const;
  33461. bool GetAnimationEnabled() const;
  33462. Variant GetAttribute(const String&) const;
  33463. Variant GetAttribute(uint) const;
  33464. ValueAnimation GetAttributeAnimation(const String&) const;
  33465. float GetAttributeAnimationSpeed(const String&) const;
  33466. float GetAttributeAnimationTime(const String&) const;
  33467. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  33468. Variant GetAttributeDefault(const String&) const;
  33469. Variant GetAttributeDefault(uint) const;
  33470. bool GetBlockEvents() const;
  33471. bool GetBringToBack() const;
  33472. bool GetBringToFront() const;
  33473. UIElement GetChild(const String&, bool = false) const;
  33474. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  33475. UIElement GetChild(uint) const;
  33476. Array<UIElement> GetChildren() const;
  33477. Array<UIElement> GetChildren(bool) const;
  33478. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  33479. bool GetClipChildren() const;
  33480. IntRect GetCombinedScreenRect();
  33481. XMLFile GetDefaultStyle(bool = true) const;
  33482. float GetDerivedOpacity() const;
  33483. uint GetDragButtonCombo() const;
  33484. uint GetDragButtonCount() const;
  33485. uint GetDragDropMode() const;
  33486. IntVector2 GetEffectiveMinSize() const;
  33487. UIElement GetElementEventSender() const;
  33488. bool GetEnableAnchor() const;
  33489. VariantMap& GetEventDataMap() const;
  33490. Object GetEventSender() const;
  33491. FocusMode GetFocusMode() const;
  33492. int GetHeight() const;
  33493. HorizontalAlignment GetHorizontalAlignment() const;
  33494. int GetIndent() const;
  33495. int GetIndentSpacing() const;
  33496. int GetIndentWidth() const;
  33497. bool GetInterceptNetworkUpdate(const String&) const;
  33498. int GetLayoutElementMaxSize() const;
  33499. LayoutMode GetLayoutMode() const;
  33500. int GetLayoutSpacing() const;
  33501. int GetMaxHeight() const;
  33502. int GetMaxWidth() const;
  33503. int GetMinHeight() const;
  33504. int GetMinWidth() const;
  33505. uint GetNumAttributes() const;
  33506. uint GetNumChildren(bool = false) const;
  33507. uint GetNumNetworkAttributes() const;
  33508. ObjectAnimation GetObjectAnimation() const;
  33509. ResourceRef GetObjectAnimationAttr() const;
  33510. float GetOpacity() const;
  33511. UIElement GetParent() const;
  33512. int GetPriority() const;
  33513. UIElement GetRoot() const;
  33514. bool GetSortChildren() const;
  33515. Object GetSubsystem(StringHash) const;
  33516. Array<String> GetTags() const;
  33517. TraversalMode GetTraversalMode() const;
  33518. StringHash GetType() const;
  33519. bool GetUseDerivedOpacity() const;
  33520. VerticalAlignment GetVerticalAlignment() const;
  33521. int GetWidth() const;
  33522. bool HasColorGradient() const;
  33523. bool HasEventHandlers() const;
  33524. bool HasFocus() const;
  33525. bool HasSubscribedToEvent(Object, StringHash) const;
  33526. bool HasSubscribedToEvent(StringHash) const;
  33527. bool HasTag(const String&) const;
  33528. void InsertChild(uint, UIElement);
  33529. const IntRect& GetClipBorder() const;
  33530. const IntRect& GetLayoutBorder() const;
  33531. const IntVector2& GetChildOffset() const;
  33532. const IntVector2& GetMaxOffset() const;
  33533. const IntVector2& GetMaxSize() const;
  33534. const IntVector2& GetMinOffset() const;
  33535. const IntVector2& GetMinSize() const;
  33536. const IntVector2& GetPosition() const;
  33537. const IntVector2& GetScreenPosition() const;
  33538. const IntVector2& GetSize() const;
  33539. bool IsChildOf(UIElement) const;
  33540. bool IsEditable() const;
  33541. bool IsElementEventSender() const;
  33542. bool IsEnabled() const;
  33543. bool IsEnabledSelf() const;
  33544. bool IsFixedHeight() const;
  33545. bool IsFixedSize() const;
  33546. bool IsFixedWidth() const;
  33547. bool IsHovering() const;
  33548. bool IsInside(IntVector2, bool);
  33549. bool IsInsideCombined(IntVector2, bool);
  33550. bool IsInstanceOf(StringHash) const;
  33551. bool IsInternal() const;
  33552. bool IsSelected() const;
  33553. bool IsTemporary() const;
  33554. bool IsVisible() const;
  33555. bool IsVisibleEffective() const;
  33556. bool IsWheelHandler() const;
  33557. bool IsWithinScissor(const IntRect&);
  33558. bool Load(Deserializer&);
  33559. UIElement LoadChildXML(XMLFile, XMLFile);
  33560. UIElement LoadChildXML(const XMLElement&, XMLFile);
  33561. bool LoadJSON(const JSONValue&);
  33562. bool LoadXML(Deserializer&);
  33563. bool LoadXML(File);
  33564. bool LoadXML(VectorBuffer&);
  33565. bool LoadXML(XMLFile, XMLFile);
  33566. bool LoadXML(const XMLElement&);
  33567. bool LoadXML(const XMLElement&, XMLFile);
  33568. void MarkNetworkUpdate();
  33569. operator Object() const;
  33570. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33571. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  33572. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33573. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33574. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33575. bool OnDragDropFinish(UIElement);
  33576. bool OnDragDropTest(UIElement);
  33577. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33578. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33579. void OnEvent(Object, StringHash, VariantMap&);
  33580. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33581. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33582. void OnIndentSet();
  33583. void OnKey(uint, uint, uint);
  33584. void OnPositionSet(const IntVector2&);
  33585. void OnResize(const IntVector2&, const IntVector2&);
  33586. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33587. void OnSetEditable();
  33588. void OnTextInput(const String&);
  33589. void OnWheel(int, uint, uint);
  33590. bool ReadDeltaUpdate(Deserializer&);
  33591. bool ReadLatestDataUpdate(Deserializer&);
  33592. operator RefCounted() const;
  33593. int Refs() const;
  33594. void Remove();
  33595. void RemoveAllChildren();
  33596. void RemoveAllTags();
  33597. void RemoveAttributeAnimation(const String&);
  33598. void RemoveChild(UIElement, uint = 0);
  33599. void RemoveChild(uint);
  33600. void RemoveChildAtIndex(uint);
  33601. void RemoveInstanceDefault();
  33602. void RemoveObjectAnimation();
  33603. bool RemoveTag(const String&);
  33604. void ResetDeepEnabled();
  33605. void ResetToDefault();
  33606. bool Save(Serializer&) const;
  33607. bool SaveDefaultAttributes() const;
  33608. bool SaveJSON(JSONValue&) const;
  33609. bool SaveXML(File, const String& indentation = "\t");
  33610. bool SaveXML(Serializer&, const String& = "\t") const;
  33611. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  33612. bool SaveXML(XMLElement&) const;
  33613. IntVector2 ScreenToElement(const IntVector2&);
  33614. void SendEvent(StringHash);
  33615. void SendEvent(StringHash, VariantMap&);
  33616. operator Serializable() const;
  33617. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  33618. void SetAnimationEnabled(bool);
  33619. void SetAnimationTime(float);
  33620. bool SetAttribute(const String&, const Variant&);
  33621. bool SetAttribute(uint, const Variant&);
  33622. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33623. void SetAttributeAnimationSpeed(const String&, float);
  33624. void SetAttributeAnimationTime(const String&, float);
  33625. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33626. void SetBlockEvents(bool);
  33627. void SetBringToBack(bool);
  33628. void SetBringToFront(bool);
  33629. void SetChildOffset(const IntVector2&);
  33630. void SetClipBorder(const IntRect&);
  33631. void SetClipChildren(bool);
  33632. void SetColor(Corner, const Color&);
  33633. void SetColor(const Color&);
  33634. void SetDeepEnabled(bool);
  33635. void SetDefaultStyle(XMLFile);
  33636. void SetDragDropMode(uint);
  33637. void SetEditable(bool);
  33638. void SetElementEventSender(bool);
  33639. void SetEnableAnchor(bool);
  33640. void SetEnabled(bool);
  33641. void SetEnabledRecursive(bool);
  33642. void SetFixedHeight(int);
  33643. void SetFixedSize(const IntVector2&);
  33644. void SetFixedSize(int, int);
  33645. void SetFixedWidth(int);
  33646. void SetFocus(bool);
  33647. void SetFocusMode(FocusMode);
  33648. void SetGlobalVar(StringHash, const Variant&);
  33649. void SetHeight(int);
  33650. void SetHorizontalAlignment(HorizontalAlignment);
  33651. void SetHoverColor(const Color&);
  33652. void SetHovering(bool);
  33653. void SetIndent(int);
  33654. void SetIndentSpacing(int);
  33655. void SetInstanceDefault(bool);
  33656. void SetInterceptNetworkUpdate(const String&, bool);
  33657. void SetInternal(bool);
  33658. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  33659. void SetLayoutBorder(const IntRect&);
  33660. void SetLayoutFlexScale(const Vector2&);
  33661. void SetLayoutMode(LayoutMode);
  33662. void SetLayoutSpacing(int);
  33663. void SetMaxAnchor(const Vector2&);
  33664. void SetMaxAnchor(float, float);
  33665. void SetMaxHeight(int);
  33666. void SetMaxOffset(const IntVector2&);
  33667. void SetMaxSize(const IntVector2&);
  33668. void SetMaxSize(int, int);
  33669. void SetMaxWidth(int);
  33670. void SetMinAnchor(const Vector2&);
  33671. void SetMinAnchor(float, float);
  33672. void SetMinHeight(int);
  33673. void SetMinOffset(const IntVector2&);
  33674. void SetMinSize(const IntVector2&);
  33675. void SetMinSize(int, int);
  33676. void SetMinWidth(int);
  33677. void SetName(const String&);
  33678. void SetObjectAnimation(ObjectAnimation);
  33679. void SetObjectAnimationAttr(const ResourceRef&);
  33680. void SetOpacity(float);
  33681. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  33682. void SetPivot(const Vector2&);
  33683. void SetPivot(float, float);
  33684. void SetPosition(const IntVector2&);
  33685. void SetPosition(int, int);
  33686. void SetPriority(int);
  33687. void SetRenderTexture(Texture2D);
  33688. void SetSelected(bool);
  33689. void SetSelectionColor(const Color&);
  33690. void SetSize(const IntVector2&);
  33691. void SetSize(int, int);
  33692. void SetSortChildren(bool);
  33693. bool SetStyle(const String&, XMLFile = null);
  33694. bool SetStyle(const XMLElement&);
  33695. bool SetStyleAuto(XMLFile = null);
  33696. void SetTags(Array<String>);
  33697. void SetTemporary(bool);
  33698. void SetTraversalMode(TraversalMode);
  33699. void SetUseDerivedOpacity(bool);
  33700. void SetVar(StringHash, const Variant&);
  33701. void SetVerticalAlignment(VerticalAlignment);
  33702. void SetVisible(bool);
  33703. void SetWidth(int);
  33704. void SortChildren();
  33705. const String& GetAppliedStyle() const;
  33706. const String& GetCategory() const;
  33707. const String& GetName() const;
  33708. const String& GetTypeName() const;
  33709. operator Text() const;
  33710. operator UIElement() const;
  33711. void UnsubscribeFromAllEvents();
  33712. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33713. void UnsubscribeFromEvent(Object, StringHash);
  33714. void UnsubscribeFromEvent(StringHash);
  33715. void UnsubscribeFromEvents(Object);
  33716. void Update(float);
  33717. void UpdateLayout();
  33718. const Variant& GetGlobalVar(StringHash) const;
  33719. const Variant& GetVar(const StringHash&) const;
  33720. const VariantMap& GetGlobalVars() const;
  33721. const VariantMap& GetVars() const;
  33722. const Vector2& GetLayoutFlexScale() const;
  33723. const Vector2& GetMaxAnchor() const;
  33724. const Vector2& GetMinAnchor() const;
  33725. const Vector2& GetPivot() const;
  33726. int WeakRefs() const;
  33727. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33728. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33729. void WriteLatestDataUpdate(Serializer&, uint8);
  33730. operator const Animatable() const;
  33731. operator const Object() const;
  33732. operator const RefCounted() const;
  33733. operator const Serializable() const;
  33734. operator const Text() const;
  33735. operator const UIElement() const;
  33736. // Properties:
  33737. bool animationEnabled;
  33738. /* readonly */
  33739. Array<Variant> attributeDefaults;
  33740. /* readonly */
  33741. Array<AttributeInfo> attributeInfos;
  33742. Array<Variant> attributes;
  33743. bool bringToBack;
  33744. bool bringToFront;
  33745. /* readonly */
  33746. String category;
  33747. /* readonly */
  33748. IntVector2 childOffset;
  33749. /* readonly */
  33750. Array<UIElement> children;
  33751. IntRect clipBorder;
  33752. bool clipChildren;
  33753. /* writeonly */
  33754. Color color;
  33755. /* readonly */
  33756. bool colorGradient;
  33757. Array<Color> colors;
  33758. /* readonly */
  33759. IntRect combinedScreenRect;
  33760. XMLFile defaultStyle;
  33761. /* readonly */
  33762. float derivedOpacity;
  33763. /* readonly */
  33764. uint dragButtonCombo;
  33765. /* readonly */
  33766. uint dragButtonCount;
  33767. uint dragDropMode;
  33768. bool editable;
  33769. bool elementEventSender;
  33770. bool enableAnchor;
  33771. bool enabled;
  33772. /* readonly */
  33773. bool enabledSelf;
  33774. /* readonly */
  33775. bool fixedHeight;
  33776. /* readonly */
  33777. bool fixedSize;
  33778. /* readonly */
  33779. bool fixedWidth;
  33780. bool focus;
  33781. FocusMode focusMode;
  33782. Array<Variant> globalVar;
  33783. /* readonly */
  33784. VariantMap globalVars;
  33785. int height;
  33786. HorizontalAlignment horizontalAlignment;
  33787. Color hoverColor;
  33788. /* readonly */
  33789. bool hovering;
  33790. int indent;
  33791. int indentSpacing;
  33792. /* readonly */
  33793. int indentWidth;
  33794. bool internal;
  33795. IntRect layoutBorder;
  33796. Vector2 layoutFlexScale;
  33797. LayoutMode layoutMode;
  33798. int layoutSpacing;
  33799. Vector2 maxAnchor;
  33800. int maxHeight;
  33801. IntVector2 maxOffset;
  33802. IntVector2 maxSize;
  33803. int maxWidth;
  33804. Vector2 minAnchor;
  33805. int minHeight;
  33806. IntVector2 minOffset;
  33807. IntVector2 minSize;
  33808. int minWidth;
  33809. String name;
  33810. /* readonly */
  33811. uint numAllChildren;
  33812. /* readonly */
  33813. uint numAttributes;
  33814. /* readonly */
  33815. uint numChildren;
  33816. ObjectAnimation objectAnimation;
  33817. float opacity;
  33818. UIElement parent;
  33819. Vector2 pivot;
  33820. IntVector2 position;
  33821. int priority;
  33822. /* readonly */
  33823. int refs;
  33824. /* readonly */
  33825. UIElement root;
  33826. /* readonly */
  33827. IntVector2 screenPosition;
  33828. bool selected;
  33829. Color selectionColor;
  33830. IntVector2 size;
  33831. bool sortChildren;
  33832. String style;
  33833. /* readonly */
  33834. Array<String> tags;
  33835. bool temporary;
  33836. TraversalMode traversalMode;
  33837. /* readonly */
  33838. StringHash type;
  33839. /* readonly */
  33840. String typeName;
  33841. bool useDerivedOpacity;
  33842. /* readonly */
  33843. VariantMap vars;
  33844. VerticalAlignment verticalAlignment;
  33845. bool visible;
  33846. /* readonly */
  33847. bool visibleEffective;
  33848. /* readonly */
  33849. int weakRefs;
  33850. int width;
  33851. };
  33852. class UnknownComponent
  33853. {
  33854. public:
  33855. // Methods:
  33856. void AllocateNetworkState();
  33857. operator Animatable() const;
  33858. void ApplyAttributes();
  33859. void CleanupConnection(Connection);
  33860. operator Component() const;
  33861. void DrawDebugGeometry(DebugRenderer, bool);
  33862. bool GetAnimationEnabled() const;
  33863. Variant GetAttribute(const String&) const;
  33864. Variant GetAttribute(uint) const;
  33865. ValueAnimation GetAttributeAnimation(const String&) const;
  33866. float GetAttributeAnimationSpeed(const String&) const;
  33867. float GetAttributeAnimationTime(const String&) const;
  33868. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  33869. Variant GetAttributeDefault(const String&) const;
  33870. Variant GetAttributeDefault(uint) const;
  33871. bool GetBlockEvents() const;
  33872. Component GetComponent(StringHash) const;
  33873. VariantMap& GetEventDataMap() const;
  33874. Object GetEventSender() const;
  33875. uint GetID() const;
  33876. bool GetInterceptNetworkUpdate(const String&) const;
  33877. Node GetNode() const;
  33878. uint GetNumAttributes() const;
  33879. uint GetNumNetworkAttributes() const;
  33880. ObjectAnimation GetObjectAnimation() const;
  33881. ResourceRef GetObjectAnimationAttr() const;
  33882. Scene GetScene() const;
  33883. Object GetSubsystem(StringHash) const;
  33884. StringHash GetType() const;
  33885. bool GetUseXML() const;
  33886. Array<String> GetXMLAttributes() const;
  33887. bool HasEventHandlers() const;
  33888. bool HasSubscribedToEvent(Object, StringHash) const;
  33889. bool HasSubscribedToEvent(StringHash) const;
  33890. bool IsEnabled() const;
  33891. bool IsEnabledEffective() const;
  33892. bool IsInstanceOf(StringHash) const;
  33893. bool IsReplicated() const;
  33894. bool IsTemporary() const;
  33895. bool Load(Deserializer&);
  33896. bool LoadJSON(const JSONValue&);
  33897. bool LoadXML(const XMLElement&);
  33898. void MarkNetworkUpdate();
  33899. operator Object() const;
  33900. void OnEvent(Object, StringHash, VariantMap&);
  33901. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33902. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33903. void OnSetEnabled();
  33904. void PrepareNetworkUpdate();
  33905. bool ReadDeltaUpdate(Deserializer&);
  33906. bool ReadLatestDataUpdate(Deserializer&);
  33907. operator RefCounted() const;
  33908. int Refs() const;
  33909. void Remove();
  33910. void RemoveAttributeAnimation(const String&);
  33911. void RemoveInstanceDefault();
  33912. void RemoveObjectAnimation();
  33913. void ResetToDefault();
  33914. bool Save(Serializer&) const;
  33915. bool SaveDefaultAttributes() const;
  33916. bool SaveJSON(JSONValue&) const;
  33917. bool SaveXML(XMLElement&) const;
  33918. void SendEvent(StringHash);
  33919. void SendEvent(StringHash, VariantMap&);
  33920. operator Serializable() const;
  33921. void SetAnimationEnabled(bool);
  33922. void SetAnimationTime(float);
  33923. bool SetAttribute(const String&, const Variant&);
  33924. bool SetAttribute(uint, const Variant&);
  33925. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33926. void SetAttributeAnimationSpeed(const String&, float);
  33927. void SetAttributeAnimationTime(const String&, float);
  33928. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33929. void SetBlockEvents(bool);
  33930. void SetEnabled(bool);
  33931. void SetGlobalVar(StringHash, const Variant&);
  33932. void SetInstanceDefault(bool);
  33933. void SetInterceptNetworkUpdate(const String&, bool);
  33934. void SetObjectAnimation(ObjectAnimation);
  33935. void SetObjectAnimationAttr(const ResourceRef&);
  33936. void SetTemporary(bool);
  33937. void SetType(StringHash);
  33938. void SetTypeName(const String&);
  33939. const String& GetCategory() const;
  33940. const String& GetTypeName() const;
  33941. void UnsubscribeFromAllEvents();
  33942. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33943. void UnsubscribeFromEvent(Object, StringHash);
  33944. void UnsubscribeFromEvent(StringHash);
  33945. void UnsubscribeFromEvents(Object);
  33946. const Variant& GetGlobalVar(StringHash) const;
  33947. const VariantMap& GetGlobalVars() const;
  33948. int WeakRefs() const;
  33949. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33950. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33951. void WriteLatestDataUpdate(Serializer&, uint8);
  33952. operator const Animatable() const;
  33953. operator const Component() const;
  33954. operator const Object() const;
  33955. operator const RefCounted() const;
  33956. operator const Serializable() const;
  33957. // Properties:
  33958. bool animationEnabled;
  33959. /* readonly */
  33960. Array<Variant> attributeDefaults;
  33961. /* readonly */
  33962. Array<AttributeInfo> attributeInfos;
  33963. Array<Variant> attributes;
  33964. /* readonly */
  33965. String category;
  33966. bool enabled;
  33967. /* readonly */
  33968. bool enabledEffective;
  33969. Array<Variant> globalVar;
  33970. /* readonly */
  33971. VariantMap globalVars;
  33972. /* readonly */
  33973. uint id;
  33974. /* readonly */
  33975. Node node;
  33976. /* readonly */
  33977. uint numAttributes;
  33978. ObjectAnimation objectAnimation;
  33979. /* readonly */
  33980. int refs;
  33981. /* readonly */
  33982. bool replicated;
  33983. bool temporary;
  33984. /* readonly */
  33985. StringHash type;
  33986. /* readonly */
  33987. String typeName;
  33988. /* readonly */
  33989. int weakRefs;
  33990. };
  33991. class VAnimEventFrame
  33992. {
  33993. public:
  33994. ~VAnimEventFrame();
  33995. VAnimEventFrame();
  33996. // Methods:
  33997. VAnimEventFrame& operator=(const VAnimEventFrame&);
  33998. // Properties:
  33999. VariantMap eventData;
  34000. StringHash eventType;
  34001. float time;
  34002. };
  34003. class VAnimKeyFrame
  34004. {
  34005. public:
  34006. ~VAnimKeyFrame();
  34007. VAnimKeyFrame();
  34008. // Methods:
  34009. VAnimKeyFrame& operator=(const VAnimKeyFrame&);
  34010. // Properties:
  34011. float time;
  34012. Variant value;
  34013. };
  34014. class ValueAnimation
  34015. {
  34016. public:
  34017. ValueAnimation();
  34018. // Methods:
  34019. bool BeginLoad(Deserializer&);
  34020. bool EndLoad();
  34021. Variant GetAnimationValue(float) const;
  34022. AsyncLoadState GetAsyncLoadState() const;
  34023. float GetBeginTime() const;
  34024. bool GetBlockEvents() const;
  34025. float GetEndTime() const;
  34026. VariantMap& GetEventDataMap() const;
  34027. Object GetEventSender() const;
  34028. InterpMethod GetInterpolationMethod() const;
  34029. uint GetMemoryUse() const;
  34030. StringHash GetNameHash() const;
  34031. float GetSplineTension() const;
  34032. Object GetSubsystem(StringHash) const;
  34033. StringHash GetType() const;
  34034. uint GetUseTimer();
  34035. VariantType GetValueType() const;
  34036. bool HasEventFrames() const;
  34037. bool HasEventHandlers() const;
  34038. bool HasSubscribedToEvent(Object, StringHash) const;
  34039. bool HasSubscribedToEvent(StringHash) const;
  34040. bool IsInstanceOf(StringHash) const;
  34041. bool IsValid() const;
  34042. bool Load(Deserializer&);
  34043. bool Load(File);
  34044. bool Load(VectorBuffer&);
  34045. bool Load(const String&);
  34046. bool LoadFile(const String&);
  34047. bool LoadJSON(const JSONValue&);
  34048. bool LoadXML(const XMLElement&);
  34049. operator Object() const;
  34050. void OnEvent(Object, StringHash, VariantMap&);
  34051. operator RefCounted() const;
  34052. int Refs() const;
  34053. void ResetUseTimer();
  34054. operator Resource() const;
  34055. bool Save(File) const;
  34056. bool Save(Serializer&) const;
  34057. bool Save(VectorBuffer&) const;
  34058. bool Save(const String&) const;
  34059. bool SaveFile(const String&) const;
  34060. bool SaveJSON(JSONValue&) const;
  34061. bool SaveXML(XMLElement&) const;
  34062. void SendEvent(StringHash);
  34063. void SendEvent(StringHash, VariantMap&);
  34064. void SetAsyncLoadState(AsyncLoadState);
  34065. void SetBlockEvents(bool);
  34066. void SetEventFrame(float, const StringHash&, const VariantMap& = VariantMap ( ));
  34067. void SetGlobalVar(StringHash, const Variant&);
  34068. void SetInterpolationMethod(InterpMethod);
  34069. bool SetKeyFrame(float, const Variant&);
  34070. void SetMemoryUse(uint);
  34071. void SetName(const String&);
  34072. void SetSplineTension(float);
  34073. void SetValueType(VariantType);
  34074. const String& GetCategory() const;
  34075. const String& GetName() const;
  34076. const String& GetTypeName() const;
  34077. void UnsubscribeFromAllEvents();
  34078. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  34079. void UnsubscribeFromEvent(Object, StringHash);
  34080. void UnsubscribeFromEvent(StringHash);
  34081. void UnsubscribeFromEvents(Object);
  34082. const Variant& GetGlobalVar(StringHash) const;
  34083. const VariantMap& GetGlobalVars() const;
  34084. int WeakRefs() const;
  34085. operator const Object() const;
  34086. operator const RefCounted() const;
  34087. operator const Resource() const;
  34088. // Properties:
  34089. /* readonly */
  34090. String category;
  34091. Array<Variant> globalVar;
  34092. /* readonly */
  34093. VariantMap globalVars;
  34094. InterpMethod interpolationMethod;
  34095. /* readonly */
  34096. uint memoryUse;
  34097. String name;
  34098. /* readonly */
  34099. int refs;
  34100. float splineTension;
  34101. /* readonly */
  34102. StringHash type;
  34103. /* readonly */
  34104. String typeName;
  34105. /* readonly */
  34106. uint useTimer;
  34107. VariantType valueType;
  34108. /* readonly */
  34109. int weakRefs;
  34110. };
  34111. class ValueAnimationInfo
  34112. {
  34113. public:
  34114. ValueAnimationInfo(ValueAnimation&, WrapMode, float);
  34115. ValueAnimationInfo(Object&, ValueAnimation&, WrapMode, float);
  34116. ValueAnimationInfo(const ValueAnimationInfo&in);
  34117. // Methods:
  34118. operator AttributeAnimationInfo() const;
  34119. ValueAnimation GetAnimation() const;
  34120. float GetSpeed() const;
  34121. Object GetTarget() const;
  34122. float GetTime() const;
  34123. WrapMode GetWrapMode() const;
  34124. operator RefCounted() const;
  34125. int Refs() const;
  34126. void SetSpeed(float);
  34127. bool SetTime(float);
  34128. void SetWrapMode(WrapMode);
  34129. operator ShaderParameterAnimationInfo() const;
  34130. bool Update(float);
  34131. int WeakRefs() const;
  34132. operator const AttributeAnimationInfo() const;
  34133. operator const RefCounted() const;
  34134. operator const ShaderParameterAnimationInfo() const;
  34135. // Properties:
  34136. /* readonly */
  34137. int refs;
  34138. /* readonly */
  34139. int weakRefs;
  34140. };
  34141. class Variant
  34142. {
  34143. public:
  34144. ~Variant();
  34145. Variant();
  34146. Variant(int);
  34147. Variant(int64);
  34148. Variant(uint);
  34149. Variant(uint64);
  34150. Variant(const StringHash&in);
  34151. Variant(bool);
  34152. Variant(float);
  34153. Variant(double);
  34154. Variant(const Vector2&in);
  34155. Variant(const Vector3&in);
  34156. Variant(const Vector4&in);
  34157. Variant(const Quaternion&in);
  34158. Variant(const Color&in);
  34159. Variant(const String&in);
  34160. Variant(const VectorBuffer&in);
  34161. Variant(const ResourceRef&in);
  34162. Variant(const ResourceRefList&in);
  34163. Variant(const VariantMap&in);
  34164. Variant(String[]@);
  34165. Variant(const Rect&in);
  34166. Variant(const IntRect&in);
  34167. Variant(const IntVector2&in);
  34168. Variant(const IntVector3&in);
  34169. Variant(RefCounted@);
  34170. Variant(const Matrix3&in);
  34171. Variant(const Matrix3x4&in);
  34172. Variant(const Matrix4&in);
  34173. Variant(const String&in, const String&in);
  34174. Variant(VariantType, const String&in);
  34175. Variant(const Variant&in);
  34176. Variant(ScriptObject@);
  34177. Variant(const Variant[]@);
  34178. // Methods:
  34179. Variant& operator=(RefCounted);
  34180. Variant& operator=(ScriptObject);
  34181. Variant& operator=(Array<String>);
  34182. Variant& operator=(bool);
  34183. Variant& operator=(const Color&);
  34184. Variant& operator=(const IntRect&);
  34185. Variant& operator=(const IntVector2&);
  34186. Variant& operator=(const IntVector3&);
  34187. Variant& operator=(const Matrix3&);
  34188. Variant& operator=(const Matrix3x4&);
  34189. Variant& operator=(const Matrix4&);
  34190. Variant& operator=(const Quaternion&);
  34191. Variant& operator=(const Rect&);
  34192. Variant& operator=(const ResourceRef&);
  34193. Variant& operator=(const ResourceRefList&);
  34194. Variant& operator=(const String&);
  34195. Variant& operator=(const StringHash&);
  34196. Variant& operator=(const Variant&);
  34197. Variant& operator=(const VariantMap&);
  34198. Variant& operator=(const Array<Variant>);
  34199. Variant& operator=(const Vector2&);
  34200. Variant& operator=(const Vector3&);
  34201. Variant& operator=(const Vector4&);
  34202. Variant& operator=(const VectorBuffer&);
  34203. Variant& operator=(double);
  34204. Variant& operator=(float);
  34205. Variant& operator=(int);
  34206. Variant& operator=(int64);
  34207. Variant& operator=(uint);
  34208. Variant& operator=(uint64);
  34209. bool operator==(RefCounted) const;
  34210. bool operator==(ScriptObject) const;
  34211. bool operator==(Array<String>) const;
  34212. bool operator==(bool) const;
  34213. bool operator==(const Color&) const;
  34214. bool operator==(const IntRect&) const;
  34215. bool operator==(const IntVector2&) const;
  34216. bool operator==(const IntVector3&) const;
  34217. bool operator==(const Matrix3&) const;
  34218. bool operator==(const Matrix3x4&) const;
  34219. bool operator==(const Matrix4&) const;
  34220. bool operator==(const Quaternion&) const;
  34221. bool operator==(const Rect&) const;
  34222. bool operator==(const ResourceRef&) const;
  34223. bool operator==(const ResourceRefList&) const;
  34224. bool operator==(const String&) const;
  34225. bool operator==(const StringHash&) const;
  34226. bool operator==(const Variant&) const;
  34227. bool operator==(const VariantMap&) const;
  34228. bool operator==(const Array<Variant>);
  34229. bool operator==(const Vector2&) const;
  34230. bool operator==(const Vector3&) const;
  34231. bool operator==(const Vector4&) const;
  34232. bool operator==(const VectorBuffer&) const;
  34233. bool operator==(double) const;
  34234. bool operator==(float) const;
  34235. bool operator==(int) const;
  34236. bool operator==(int64) const;
  34237. bool operator==(uint) const;
  34238. bool operator==(uint64) const;
  34239. void Clear();
  34240. const Color& GetColor() const;
  34241. void FromString(VariantType, const String&);
  34242. void FromString(const String&, const String&);
  34243. bool GetBool() const;
  34244. VectorBuffer GetBuffer() const;
  34245. double GetDouble() const;
  34246. float GetFloat() const;
  34247. int GetInt() const;
  34248. int64 GetInt64() const;
  34249. RefCounted GetPtr() const;
  34250. ScriptObject GetScriptObject() const;
  34251. StringHash GetStringHash() const;
  34252. Array<String> GetStringVector() const;
  34253. VariantType GetType() const;
  34254. String GetTypeName() const;
  34255. uint GetUInt() const;
  34256. uint64 GetUInt64() const;
  34257. Array<Variant> GetVariantVector() const;
  34258. VectorBuffer GetVectorBuffer() const;
  34259. const IntRect& GetIntRect() const;
  34260. const IntVector2& GetIntVector2() const;
  34261. const IntVector3& GetIntVector3() const;
  34262. bool IsCustom() const;
  34263. bool IsEmpty() const;
  34264. bool IsZero() const;
  34265. const Matrix3& GetMatrix3() const;
  34266. const Matrix3x4& GetMatrix3x4() const;
  34267. const Matrix4& GetMatrix4() const;
  34268. const Quaternion& GetQuaternion() const;
  34269. const Rect& GetRect() const;
  34270. const ResourceRef& GetResourceRef() const;
  34271. const ResourceRefList& GetResourceRefList() const;
  34272. const String& GetString() const;
  34273. String ToString() const;
  34274. const VariantMap& GetVariantMap() const;
  34275. const Vector2& GetVector2() const;
  34276. const Vector3& GetVector3() const;
  34277. const Vector4& GetVector4() const;
  34278. // Properties:
  34279. /* readonly */
  34280. bool empty;
  34281. /* readonly */
  34282. VariantType type;
  34283. /* readonly */
  34284. String typeName;
  34285. /* readonly */
  34286. bool zero;
  34287. // Constants:
  34288. static const Variant EMPTY;
  34289. static const ResourceRef emptyResourceRef;
  34290. static const ResourceRefList emptyResourceRefList;
  34291. static const VariantMap emptyVariantMap;
  34292. };
  34293. class VariantMap
  34294. {
  34295. public:
  34296. ~VariantMap();
  34297. VariantMap();
  34298. VariantMap(const VariantMap&in);
  34299. // Methods:
  34300. VariantMap& operator=(const VariantMap&);
  34301. Variant& operator[](StringHash);
  34302. void Clear();
  34303. bool Contains(StringHash) const;
  34304. bool Erase(StringHash);
  34305. // Properties:
  34306. /* readonly */
  34307. Array<StringHash> keys;
  34308. /* readonly */
  34309. uint length;
  34310. /* readonly */
  34311. Array<Variant> values;
  34312. };
  34313. class Vector2
  34314. {
  34315. public:
  34316. Vector2();
  34317. Vector2(const Vector2&in);
  34318. Vector2(const IntVector2&in);
  34319. Vector2(float, float);
  34320. Vector2(float[]&inout);
  34321. // Methods:
  34322. Vector2 operator+(const Vector2&) const;
  34323. Vector2& operator+=(const Vector2&);
  34324. Vector2& operator=(const Vector2&);
  34325. bool operator==(const Vector2&) const;
  34326. Vector2 Abs() const;
  34327. float AbsDotProduct(const Vector2&) const;
  34328. float Angle(const Vector2&) const;
  34329. float DotProduct(const Vector2&) const;
  34330. bool Equals(const Vector2&) const;
  34331. bool IsInf() const;
  34332. bool IsNaN() const;
  34333. float Length() const;
  34334. float LengthSquared() const;
  34335. Vector2 Lerp(const Vector2&, float) const;
  34336. void Normalize();
  34337. Vector2 Normalized() const;
  34338. Vector2 NormalizedOrDefault(const Vector2& = Vector2 :: ZERO, float = M_LARGE_EPSILON) const;
  34339. float ProjectOntoAxis(const Vector2&) const;
  34340. Vector2 ReNormalized(float, float, const Vector2& = Vector2 :: ZERO, float = M_LARGE_EPSILON) const;
  34341. String ToString() const;
  34342. // Properties:
  34343. /* readonly */
  34344. Array<float> data;
  34345. /* readonly */
  34346. float length;
  34347. /* readonly */
  34348. float lengthSquared;
  34349. float x;
  34350. float y;
  34351. // Constants:
  34352. static const Vector2 DOWN;
  34353. static const Vector2 LEFT;
  34354. static const Vector2 ONE;
  34355. static const Vector2 RIGHT;
  34356. static const Vector2 UP;
  34357. static const Vector2 ZERO;
  34358. };
  34359. class Vector3
  34360. {
  34361. public:
  34362. Vector3();
  34363. Vector3(const Vector3&in);
  34364. Vector3(const Vector2&in, float);
  34365. Vector3(const Vector2&in);
  34366. Vector3(const IntVector3&in);
  34367. Vector3(float, float, float);
  34368. Vector3(float, float);
  34369. Vector3(float[]&inout);
  34370. // Methods:
  34371. Vector3 operator+(const Vector3&) const;
  34372. Vector3& operator+=(const Vector3&);
  34373. Vector3& operator=(const Vector3&);
  34374. bool operator==(const Vector3&) const;
  34375. Vector3 Abs() const;
  34376. float AbsDotProduct(const Vector3&) const;
  34377. float Angle(const Vector3&) const;
  34378. Vector3 CrossProduct(const Vector3&) const;
  34379. float DistanceToPlane(const Vector3&, const Vector3&) const;
  34380. float DistanceToPoint(const Vector3&) const;
  34381. float DotProduct(const Vector3&) const;
  34382. bool Equals(const Vector3&) const;
  34383. bool IsInf() const;
  34384. bool IsNaN() const;
  34385. float Length() const;
  34386. float LengthSquared() const;
  34387. Vector3 Lerp(const Vector3&, float) const;
  34388. void Normalize();
  34389. Vector3 Normalized() const;
  34390. Vector3 NormalizedOrDefault(const Vector3& = Vector3 :: ZERO, float = M_LARGE_EPSILON) const;
  34391. Vector3 Orthogonalize(const Vector3&) const;
  34392. float ProjectOntoAxis(const Vector3&) const;
  34393. Vector3 ProjectOntoLine(const Vector3&, const Vector3&, bool = false) const;
  34394. Vector3 ProjectOntoPlane(const Vector3&, const Vector3&) const;
  34395. Vector3 ReNormalized(float, float, const Vector3& = Vector3 :: ZERO, float = M_LARGE_EPSILON) const;
  34396. uint ToHash() const;
  34397. String ToString() const;
  34398. // Properties:
  34399. /* readonly */
  34400. Array<float> data;
  34401. /* readonly */
  34402. float length;
  34403. /* readonly */
  34404. float lengthSquared;
  34405. float x;
  34406. float y;
  34407. float z;
  34408. // Constants:
  34409. static const Vector3 BACK;
  34410. static const Vector3 DOWN;
  34411. static const Vector3 FORWARD;
  34412. static const Vector3 LEFT;
  34413. static const Vector3 ONE;
  34414. static const Vector3 RIGHT;
  34415. static const Vector3 UP;
  34416. static const Vector3 ZERO;
  34417. };
  34418. class Vector4
  34419. {
  34420. public:
  34421. Vector4();
  34422. Vector4(const Vector4&in);
  34423. Vector4(const Vector3&in, float);
  34424. Vector4(float, float, float, float);
  34425. Vector4(float[]&inout);
  34426. // Methods:
  34427. Vector4 operator+(const Vector4&) const;
  34428. Vector4& operator+=(const Vector4&);
  34429. Vector4& operator=(const Vector4&);
  34430. bool operator==(const Vector4&) const;
  34431. float& operator[](uint);
  34432. float operator[](uint) const;
  34433. Vector4 Abs() const;
  34434. float AbsDotProduct(const Vector4&) const;
  34435. float DotProduct(const Vector4&) const;
  34436. bool Equals(const Vector4&) const;
  34437. bool IsInf() const;
  34438. bool IsNaN() const;
  34439. Vector4 Lerp(const Vector4&, float) const;
  34440. float ProjectOntoAxis(const Vector3&) const;
  34441. uint ToHash() const;
  34442. String ToString() const;
  34443. // Properties:
  34444. /* readonly */
  34445. Array<float> data;
  34446. float w;
  34447. float x;
  34448. float y;
  34449. float z;
  34450. // Constants:
  34451. static const Vector4 ONE;
  34452. static const Vector4 ZERO;
  34453. };
  34454. class VectorBase
  34455. {
  34456. public:
  34457. ~VectorBase();
  34458. VectorBase();
  34459. // Methods:
  34460. VectorBase& operator=(const VectorBase&);
  34461. void Swap(VectorBase&);
  34462. };
  34463. class VectorBuffer
  34464. {
  34465. public:
  34466. ~VectorBuffer();
  34467. VectorBuffer();
  34468. VectorBuffer(Deserializer&inout, uint);
  34469. // Methods:
  34470. VectorBuffer& operator=(const VectorBuffer&);
  34471. uint8& operator[](uint);
  34472. void Clear();
  34473. uint GetChecksum();
  34474. uint GetPosition() const;
  34475. uint GetSize() const;
  34476. bool IsEof() const;
  34477. Array<uint8> Read(uint);
  34478. bool ReadBool();
  34479. BoundingBox ReadBoundingBox();
  34480. int8 ReadByte();
  34481. Color ReadColor();
  34482. double ReadDouble();
  34483. String ReadFileID();
  34484. float ReadFloat();
  34485. int ReadInt();
  34486. int64 ReadInt64();
  34487. IntRect ReadIntRect();
  34488. IntVector2 ReadIntVector2();
  34489. IntVector3 ReadIntVector3();
  34490. String ReadLine();
  34491. Matrix3 ReadMatrix3();
  34492. Matrix3x4 ReadMatrix3x4();
  34493. Matrix4 ReadMatrix4();
  34494. uint ReadNetID();
  34495. Quaternion ReadPackedQuaternion();
  34496. Vector3 ReadPackedVector3(float);
  34497. Quaternion ReadQuaternion();
  34498. Rect ReadRect();
  34499. ResourceRef ReadResourceRef();
  34500. ResourceRefList ReadResourceRefList();
  34501. int16 ReadShort();
  34502. String ReadString();
  34503. StringHash ReadStringHash();
  34504. Array<String> ReadStringVector();
  34505. uint8 ReadUByte();
  34506. uint ReadUInt();
  34507. uint64 ReadUInt64();
  34508. uint16 ReadUShort();
  34509. uint ReadVLE();
  34510. Variant ReadVariant();
  34511. Variant ReadVariant(VariantType);
  34512. VariantMap ReadVariantMap();
  34513. Vector2 ReadVector2();
  34514. Vector3 ReadVector3();
  34515. Vector4 ReadVector4();
  34516. VectorBuffer ReadVectorBuffer(uint);
  34517. void Resize(uint);
  34518. uint Seek(uint);
  34519. uint SeekRelative(int);
  34520. void SetData(Deserializer&, uint);
  34521. void SetName(const String&);
  34522. const String& GetName() const;
  34523. uint Tell() const;
  34524. uint Write(Array<uint8>);
  34525. bool WriteBool(bool);
  34526. bool WriteBoundingBox(const BoundingBox&);
  34527. bool WriteByte(int8);
  34528. bool WriteColor(const Color&);
  34529. bool WriteDouble(double);
  34530. bool WriteFileID(const String&);
  34531. bool WriteFloat(float);
  34532. bool WriteInt(int);
  34533. bool WriteInt64(int64);
  34534. bool WriteIntRect(const IntRect&);
  34535. bool WriteIntVector2(const IntVector2&);
  34536. bool WriteIntVector3(const IntVector3&);
  34537. bool WriteLine(const String&);
  34538. bool WriteMatrix3(const Matrix3&);
  34539. bool WriteMatrix3x4(const Matrix3x4&);
  34540. bool WriteMatrix4(const Matrix4&);
  34541. bool WriteNetID(uint);
  34542. bool WritePackedQuaternion(const Quaternion&);
  34543. bool WritePackedVector3(const Vector3&, float);
  34544. bool WriteQuaternion(const Quaternion&);
  34545. bool WriteRect(const Rect&);
  34546. bool WriteResourceRef(const ResourceRef&);
  34547. bool WriteResourceRefList(const ResourceRefList&);
  34548. bool WriteShort(int16);
  34549. bool WriteString(const String&);
  34550. bool WriteStringHash(const StringHash&);
  34551. bool WriteStringVector(Array<String>);
  34552. bool WriteUByte(uint8);
  34553. bool WriteUInt(uint);
  34554. bool WriteUInt64(uint64);
  34555. bool WriteUShort(uint16);
  34556. bool WriteVLE(uint);
  34557. bool WriteVariant(const Variant&);
  34558. bool WriteVariantData(const Variant&);
  34559. bool WriteVariantMap(const VariantMap&);
  34560. bool WriteVector2(const Vector2&);
  34561. bool WriteVector3(const Vector3&);
  34562. bool WriteVector4(const Vector4&);
  34563. bool WriteVectorBuffer(const VectorBuffer&);
  34564. const uint8& operator[](uint) const;
  34565. // Properties:
  34566. /* readonly */
  34567. uint checksum;
  34568. /* readonly */
  34569. bool eof;
  34570. String name;
  34571. /* readonly */
  34572. uint position;
  34573. /* readonly */
  34574. uint size;
  34575. };
  34576. class Vertex2D
  34577. {
  34578. public:
  34579. ~Vertex2D();
  34580. Vertex2D();
  34581. // Methods:
  34582. Vertex2D& operator=(const Vertex2D&);
  34583. // Properties:
  34584. uint color;
  34585. Vector3 position;
  34586. Vector2 uv;
  34587. };
  34588. class VertexBuffer
  34589. {
  34590. public:
  34591. VertexBuffer(bool = false);
  34592. // Methods:
  34593. void ClearDataLost();
  34594. bool GetBlockEvents() const;
  34595. uint64 GetBufferHash(uint);
  34596. VectorBuffer GetData() const;
  34597. uint GetElementMask() const;
  34598. uint GetElementOffset(VertexElementSemantic, uint8 = 0) const;
  34599. uint GetElementOffset(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  34600. Array<VertexElement> GetElements() const;
  34601. VariantMap& GetEventDataMap() const;
  34602. Object GetEventSender() const;
  34603. uint GetGPUObjectName() const;
  34604. Graphics GetGraphics() const;
  34605. Object GetSubsystem(StringHash) const;
  34606. StringHash GetType() const;
  34607. uint GetVertexCount() const;
  34608. uint GetVertexSize() const;
  34609. bool HasElement(VertexElementSemantic, uint8 = 0) const;
  34610. bool HasElement(VertexElementType, VertexElementSemantic, uint8 = 0) const;
  34611. bool HasEventHandlers() const;
  34612. bool HasPendingData() const;
  34613. bool HasSubscribedToEvent(Object, StringHash) const;
  34614. bool HasSubscribedToEvent(StringHash) const;
  34615. bool IsDataLost() const;
  34616. bool IsDynamic() const;
  34617. bool IsInstanceOf(StringHash) const;
  34618. bool IsLocked() const;
  34619. bool IsShadowed() const;
  34620. operator Object() const;
  34621. void OnDeviceLost();
  34622. void OnDeviceReset();
  34623. void OnEvent(Object, StringHash, VariantMap&);
  34624. operator RefCounted() const;
  34625. int Refs() const;
  34626. void Release();
  34627. void SendEvent(StringHash);
  34628. void SendEvent(StringHash, VariantMap&);
  34629. void SetBlockEvents(bool);
  34630. bool SetData(VectorBuffer&);
  34631. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  34632. void SetGlobalVar(StringHash, const Variant&);
  34633. void SetShadowed(bool);
  34634. bool SetSize(uint, Array<VertexElement>, bool = false);
  34635. bool SetSize(uint, uint, bool = false);
  34636. const String& GetCategory() const;
  34637. const String& GetTypeName() const;
  34638. void Unlock();
  34639. void UnsubscribeFromAllEvents();
  34640. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  34641. void UnsubscribeFromEvent(Object, StringHash);
  34642. void UnsubscribeFromEvent(StringHash);
  34643. void UnsubscribeFromEvents(Object);
  34644. const Variant& GetGlobalVar(StringHash) const;
  34645. const VariantMap& GetGlobalVars() const;
  34646. int WeakRefs() const;
  34647. operator const Object() const;
  34648. operator const RefCounted() const;
  34649. // Properties:
  34650. /* readonly */
  34651. String category;
  34652. /* readonly */
  34653. bool dataLost;
  34654. /* readonly */
  34655. bool dynamic;
  34656. /* readonly */
  34657. uint elementMask;
  34658. /* readonly */
  34659. Array<VertexElement> elements;
  34660. Array<Variant> globalVar;
  34661. /* readonly */
  34662. VariantMap globalVars;
  34663. /* readonly */
  34664. int refs;
  34665. bool shadowed;
  34666. /* readonly */
  34667. StringHash type;
  34668. /* readonly */
  34669. String typeName;
  34670. /* readonly */
  34671. uint vertexCount;
  34672. /* readonly */
  34673. uint vertexSize;
  34674. /* readonly */
  34675. int weakRefs;
  34676. };
  34677. class VertexBufferDesc
  34678. {
  34679. public:
  34680. ~VertexBufferDesc();
  34681. VertexBufferDesc();
  34682. // Methods:
  34683. VertexBufferDesc& operator=(const VertexBufferDesc&);
  34684. // Properties:
  34685. uint dataSize;
  34686. uint vertexCount;
  34687. };
  34688. class VertexBufferMorph
  34689. {
  34690. public:
  34691. ~VertexBufferMorph();
  34692. VertexBufferMorph();
  34693. // Methods:
  34694. VertexBufferMorph& operator=(const VertexBufferMorph&);
  34695. // Properties:
  34696. uint dataSize;
  34697. uint elementMask;
  34698. uint vertexCount;
  34699. };
  34700. class VertexElement
  34701. {
  34702. public:
  34703. ~VertexElement();
  34704. VertexElement();
  34705. VertexElement(VertexElementType, VertexElementSemantic, uint8 = 0, bool = false);
  34706. // Methods:
  34707. VertexElement& operator=(const VertexElement&);
  34708. bool operator==(const VertexElement&) const;
  34709. // Properties:
  34710. uint8 index;
  34711. uint offset;
  34712. bool perInstance;
  34713. VertexElementSemantic semantic;
  34714. VertexElementType type;
  34715. };
  34716. class View
  34717. {
  34718. public:
  34719. View();
  34720. // Methods:
  34721. bool Define(RenderSurface, Viewport);
  34722. void DrawFullscreenQuad(bool = false);
  34723. Texture FindNamedTexture(const String&, bool, bool = false);
  34724. const FrameInfo& GetFrameInfo() const;
  34725. bool GetBlockEvents() const;
  34726. Camera GetCamera() const;
  34727. Camera GetCullCamera() const;
  34728. bool GetDrawDebug() const;
  34729. VariantMap& GetEventDataMap() const;
  34730. Object GetEventSender() const;
  34731. Array<Drawable> GetGeometries() const;
  34732. Graphics GetGraphics() const;
  34733. Array<Light> GetLights() const;
  34734. uint GetNumActiveOccluders() const;
  34735. Array<Drawable> GetOccluders() const;
  34736. OcclusionBuffer GetOcclusionBuffer() const;
  34737. Octree GetOctree() const;
  34738. RenderSurface GetRenderTarget() const;
  34739. Renderer GetRenderer() const;
  34740. Scene GetScene() const;
  34741. View GetSourceView() const;
  34742. Object GetSubsystem(StringHash) const;
  34743. StringHash GetType() const;
  34744. bool HasEventHandlers() const;
  34745. bool HasSubscribedToEvent(Object, StringHash) const;
  34746. bool HasSubscribedToEvent(StringHash) const;
  34747. const IntRect& GetViewRect() const;
  34748. const IntVector2& GetViewSize() const;
  34749. bool IsInstanceOf(StringHash) const;
  34750. operator Object() const;
  34751. void OnEvent(Object, StringHash, VariantMap&);
  34752. operator RefCounted() const;
  34753. int Refs() const;
  34754. void Render();
  34755. void SendEvent(StringHash);
  34756. void SendEvent(StringHash, VariantMap&);
  34757. void SetBlockEvents(bool);
  34758. void SetCameraShaderParameters(Camera);
  34759. void SetCommandShaderParameters(const RenderPathCommand&);
  34760. void SetGBufferShaderParameters(const IntVector2&, const IntRect&);
  34761. void SetGlobalShaderParameters();
  34762. void SetGlobalVar(StringHash, const Variant&);
  34763. const String& GetCategory() const;
  34764. const String& GetTypeName() const;
  34765. void UnsubscribeFromAllEvents();
  34766. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  34767. void UnsubscribeFromEvent(Object, StringHash);
  34768. void UnsubscribeFromEvent(StringHash);
  34769. void UnsubscribeFromEvents(Object);
  34770. void Update(const FrameInfo&);
  34771. const Variant& GetGlobalVar(StringHash) const;
  34772. const VariantMap& GetGlobalVars() const;
  34773. int WeakRefs() const;
  34774. operator const Object() const;
  34775. operator const RefCounted() const;
  34776. // Properties:
  34777. /* readonly */
  34778. String category;
  34779. Array<Variant> globalVar;
  34780. /* readonly */
  34781. VariantMap globalVars;
  34782. /* readonly */
  34783. int refs;
  34784. /* readonly */
  34785. StringHash type;
  34786. /* readonly */
  34787. String typeName;
  34788. /* readonly */
  34789. int weakRefs;
  34790. };
  34791. class View3D
  34792. {
  34793. public:
  34794. View3D();
  34795. // Methods:
  34796. void AddChild(UIElement);
  34797. void AddTag(const String&);
  34798. void AddTags(Array<String>);
  34799. void AddTags(const String&, int8 = ';');
  34800. void AdjustScissor(IntRect&);
  34801. void AllocateNetworkState();
  34802. operator Animatable() const;
  34803. void ApplyAttributes();
  34804. operator BorderImage() const;
  34805. void BringToFront();
  34806. const Color& GetColor(Corner) const;
  34807. const Color& GetColorAttr() const;
  34808. const Color& GetDerivedColor() const;
  34809. const Color& GetModalFrameColor() const;
  34810. const Color& GetModalShadeColor() const;
  34811. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  34812. void DisableLayoutUpdate();
  34813. IntVector2 ElementToScreen(const IntVector2&);
  34814. void EnableLayoutUpdate();
  34815. bool FilterAttributes(XMLElement&) const;
  34816. uint FindChild(UIElement) const;
  34817. bool GetAnimationEnabled() const;
  34818. Variant GetAttribute(const String&) const;
  34819. Variant GetAttribute(uint) const;
  34820. ValueAnimation GetAttributeAnimation(const String&) const;
  34821. float GetAttributeAnimationSpeed(const String&) const;
  34822. float GetAttributeAnimationTime(const String&) const;
  34823. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  34824. Variant GetAttributeDefault(const String&) const;
  34825. Variant GetAttributeDefault(uint) const;
  34826. bool GetAutoUpdate() const;
  34827. BlendMode GetBlendMode() const;
  34828. bool GetBlockEvents() const;
  34829. bool GetBringToBack() const;
  34830. bool GetBringToFront() const;
  34831. Node GetCameraNode() const;
  34832. UIElement GetChild(const String&, bool = false) const;
  34833. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  34834. UIElement GetChild(uint) const;
  34835. Array<UIElement> GetChildren() const;
  34836. Array<UIElement> GetChildren(bool) const;
  34837. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  34838. bool GetClipChildren() const;
  34839. IntRect GetCombinedScreenRect();
  34840. XMLFile GetDefaultStyle(bool = true) const;
  34841. Texture2D GetDepthTexture() const;
  34842. float GetDerivedOpacity() const;
  34843. uint GetDragButtonCombo() const;
  34844. uint GetDragButtonCount() const;
  34845. uint GetDragDropMode() const;
  34846. IntVector2 GetEffectiveMinSize() const;
  34847. UIElement GetElementEventSender() const;
  34848. bool GetEnableAnchor() const;
  34849. VariantMap& GetEventDataMap() const;
  34850. Object GetEventSender() const;
  34851. bool GetFixedHeightResizing() const;
  34852. bool GetFixedWidthResizing() const;
  34853. FocusMode GetFocusMode() const;
  34854. uint GetFormat() const;
  34855. int GetHeight() const;
  34856. HorizontalAlignment GetHorizontalAlignment() const;
  34857. int GetIndent() const;
  34858. int GetIndentSpacing() const;
  34859. int GetIndentWidth() const;
  34860. bool GetInterceptNetworkUpdate(const String&) const;
  34861. int GetLayoutElementMaxSize() const;
  34862. LayoutMode GetLayoutMode() const;
  34863. int GetLayoutSpacing() const;
  34864. Material GetMaterial() const;
  34865. ResourceRef GetMaterialAttr() const;
  34866. int GetMaxHeight() const;
  34867. int GetMaxWidth() const;
  34868. int GetMinHeight() const;
  34869. int GetMinWidth() const;
  34870. bool GetModalAutoDismiss() const;
  34871. uint GetNumAttributes() const;
  34872. uint GetNumChildren(bool = false) const;
  34873. uint GetNumNetworkAttributes() const;
  34874. ObjectAnimation GetObjectAnimation() const;
  34875. ResourceRef GetObjectAnimationAttr() const;
  34876. float GetOpacity() const;
  34877. UIElement GetParent() const;
  34878. int GetPriority() const;
  34879. Texture2D GetRenderTexture() const;
  34880. UIElement GetRoot() const;
  34881. Scene GetScene() const;
  34882. bool GetSortChildren() const;
  34883. Object GetSubsystem(StringHash) const;
  34884. Array<String> GetTags() const;
  34885. Texture GetTexture() const;
  34886. ResourceRef GetTextureAttr() const;
  34887. TraversalMode GetTraversalMode() const;
  34888. StringHash GetType() const;
  34889. bool GetUseDerivedOpacity() const;
  34890. VerticalAlignment GetVerticalAlignment() const;
  34891. Viewport GetViewport() const;
  34892. int GetWidth() const;
  34893. bool HasColorGradient() const;
  34894. bool HasEventHandlers() const;
  34895. bool HasFocus() const;
  34896. bool HasSubscribedToEvent(Object, StringHash) const;
  34897. bool HasSubscribedToEvent(StringHash) const;
  34898. bool HasTag(const String&) const;
  34899. void InsertChild(uint, UIElement);
  34900. const IntRect& GetBorder() const;
  34901. const IntRect& GetClipBorder() const;
  34902. const IntRect& GetImageBorder() const;
  34903. const IntRect& GetImageRect() const;
  34904. const IntRect& GetLayoutBorder() const;
  34905. const IntRect& GetResizeBorder() const;
  34906. const IntVector2& GetChildOffset() const;
  34907. const IntVector2& GetDisabledOffset() const;
  34908. const IntVector2& GetHoverOffset() const;
  34909. const IntVector2& GetMaxOffset() const;
  34910. const IntVector2& GetMaxSize() const;
  34911. const IntVector2& GetMinOffset() const;
  34912. const IntVector2& GetMinSize() const;
  34913. const IntVector2& GetModalFrameSize() const;
  34914. const IntVector2& GetPosition() const;
  34915. const IntVector2& GetScreenPosition() const;
  34916. const IntVector2& GetSize() const;
  34917. bool IsChildOf(UIElement) const;
  34918. bool IsEditable() const;
  34919. bool IsElementEventSender() const;
  34920. bool IsEnabled() const;
  34921. bool IsEnabledSelf() const;
  34922. bool IsFixedHeight() const;
  34923. bool IsFixedSize() const;
  34924. bool IsFixedWidth() const;
  34925. bool IsHovering() const;
  34926. bool IsInside(IntVector2, bool);
  34927. bool IsInsideCombined(IntVector2, bool);
  34928. bool IsInstanceOf(StringHash) const;
  34929. bool IsInternal() const;
  34930. bool IsModal() const;
  34931. bool IsMovable() const;
  34932. bool IsResizable() const;
  34933. bool IsSelected() const;
  34934. bool IsTemporary() const;
  34935. bool IsTiled() const;
  34936. bool IsVisible() const;
  34937. bool IsVisibleEffective() const;
  34938. bool IsWheelHandler() const;
  34939. bool IsWithinScissor(const IntRect&);
  34940. bool Load(Deserializer&);
  34941. UIElement LoadChildXML(XMLFile, XMLFile);
  34942. UIElement LoadChildXML(const XMLElement&, XMLFile);
  34943. bool LoadJSON(const JSONValue&);
  34944. bool LoadXML(Deserializer&);
  34945. bool LoadXML(File);
  34946. bool LoadXML(VectorBuffer&);
  34947. bool LoadXML(XMLFile, XMLFile);
  34948. bool LoadXML(const XMLElement&);
  34949. bool LoadXML(const XMLElement&, XMLFile);
  34950. void MarkNetworkUpdate();
  34951. operator Object() const;
  34952. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  34953. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  34954. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  34955. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34956. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34957. bool OnDragDropFinish(UIElement);
  34958. bool OnDragDropTest(UIElement);
  34959. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34960. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34961. void OnEvent(Object, StringHash, VariantMap&);
  34962. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  34963. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34964. void OnIndentSet();
  34965. void OnKey(uint, uint, uint);
  34966. void OnPositionSet(const IntVector2&);
  34967. void OnResize(const IntVector2&, const IntVector2&);
  34968. void OnSetAttribute(const AttributeInfo&, const Variant&);
  34969. void OnSetEditable();
  34970. void OnTextInput(const String&);
  34971. void OnWheel(int, uint, uint);
  34972. void QueueUpdate();
  34973. bool ReadDeltaUpdate(Deserializer&);
  34974. bool ReadLatestDataUpdate(Deserializer&);
  34975. operator RefCounted() const;
  34976. int Refs() const;
  34977. void Remove();
  34978. void RemoveAllChildren();
  34979. void RemoveAllTags();
  34980. void RemoveAttributeAnimation(const String&);
  34981. void RemoveChild(UIElement, uint = 0);
  34982. void RemoveChild(uint);
  34983. void RemoveChildAtIndex(uint);
  34984. void RemoveInstanceDefault();
  34985. void RemoveObjectAnimation();
  34986. bool RemoveTag(const String&);
  34987. void ResetDeepEnabled();
  34988. void ResetToDefault();
  34989. bool Save(Serializer&) const;
  34990. bool SaveDefaultAttributes() const;
  34991. bool SaveJSON(JSONValue&) const;
  34992. bool SaveXML(File, const String& indentation = "\t");
  34993. bool SaveXML(Serializer&, const String& = "\t") const;
  34994. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  34995. bool SaveXML(XMLElement&) const;
  34996. IntVector2 ScreenToElement(const IntVector2&);
  34997. void SendEvent(StringHash);
  34998. void SendEvent(StringHash, VariantMap&);
  34999. operator Serializable() const;
  35000. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  35001. void SetAnimationEnabled(bool);
  35002. void SetAnimationTime(float);
  35003. bool SetAttribute(const String&, const Variant&);
  35004. bool SetAttribute(uint, const Variant&);
  35005. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  35006. void SetAttributeAnimationSpeed(const String&, float);
  35007. void SetAttributeAnimationTime(const String&, float);
  35008. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  35009. void SetAutoUpdate(bool);
  35010. void SetBlendMode(BlendMode);
  35011. void SetBlockEvents(bool);
  35012. void SetBorder(const IntRect&);
  35013. void SetBringToBack(bool);
  35014. void SetBringToFront(bool);
  35015. void SetChildOffset(const IntVector2&);
  35016. void SetClipBorder(const IntRect&);
  35017. void SetClipChildren(bool);
  35018. void SetColor(Corner, const Color&);
  35019. void SetColor(const Color&);
  35020. void SetDeepEnabled(bool);
  35021. void SetDefaultStyle(XMLFile);
  35022. void SetDisabledOffset(const IntVector2&);
  35023. void SetDisabledOffset(int, int);
  35024. void SetDragDropMode(uint);
  35025. void SetEditable(bool);
  35026. void SetElementEventSender(bool);
  35027. void SetEnableAnchor(bool);
  35028. void SetEnabled(bool);
  35029. void SetEnabledRecursive(bool);
  35030. void SetFixedHeight(int);
  35031. void SetFixedHeightResizing(bool);
  35032. void SetFixedSize(const IntVector2&);
  35033. void SetFixedSize(int, int);
  35034. void SetFixedWidth(int);
  35035. void SetFixedWidthResizing(bool);
  35036. void SetFocus(bool);
  35037. void SetFocusMode(FocusMode);
  35038. void SetFormat(uint);
  35039. void SetFullImageRect();
  35040. void SetGlobalVar(StringHash, const Variant&);
  35041. void SetHeight(int);
  35042. void SetHorizontalAlignment(HorizontalAlignment);
  35043. void SetHoverOffset(const IntVector2&);
  35044. void SetHoverOffset(int, int);
  35045. void SetHovering(bool);
  35046. void SetImageBorder(const IntRect&);
  35047. void SetImageRect(const IntRect&);
  35048. void SetIndent(int);
  35049. void SetIndentSpacing(int);
  35050. void SetInstanceDefault(bool);
  35051. void SetInterceptNetworkUpdate(const String&, bool);
  35052. void SetInternal(bool);
  35053. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  35054. void SetLayoutBorder(const IntRect&);
  35055. void SetLayoutFlexScale(const Vector2&);
  35056. void SetLayoutMode(LayoutMode);
  35057. void SetLayoutSpacing(int);
  35058. void SetMaterial(Material);
  35059. void SetMaterialAttr(const ResourceRef&);
  35060. void SetMaxAnchor(const Vector2&);
  35061. void SetMaxAnchor(float, float);
  35062. void SetMaxHeight(int);
  35063. void SetMaxOffset(const IntVector2&);
  35064. void SetMaxSize(const IntVector2&);
  35065. void SetMaxSize(int, int);
  35066. void SetMaxWidth(int);
  35067. void SetMinAnchor(const Vector2&);
  35068. void SetMinAnchor(float, float);
  35069. void SetMinHeight(int);
  35070. void SetMinOffset(const IntVector2&);
  35071. void SetMinSize(const IntVector2&);
  35072. void SetMinSize(int, int);
  35073. void SetMinWidth(int);
  35074. void SetModal(bool);
  35075. void SetModalAutoDismiss(bool);
  35076. void SetModalFrameColor(const Color&);
  35077. void SetModalFrameSize(const IntVector2&);
  35078. void SetModalShadeColor(const Color&);
  35079. void SetMovable(bool);
  35080. void SetName(const String&);
  35081. void SetObjectAnimation(ObjectAnimation);
  35082. void SetObjectAnimationAttr(const ResourceRef&);
  35083. void SetOpacity(float);
  35084. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  35085. void SetPivot(const Vector2&);
  35086. void SetPivot(float, float);
  35087. void SetPosition(const IntVector2&);
  35088. void SetPosition(int, int);
  35089. void SetPriority(int);
  35090. void SetRenderTexture(Texture2D);
  35091. void SetResizable(bool);
  35092. void SetResizeBorder(const IntRect&);
  35093. void SetSelected(bool);
  35094. void SetSize(const IntVector2&);
  35095. void SetSize(int, int);
  35096. void SetSortChildren(bool);
  35097. bool SetStyle(const String&, XMLFile = null);
  35098. bool SetStyle(const XMLElement&);
  35099. bool SetStyleAuto(XMLFile = null);
  35100. void SetTags(Array<String>);
  35101. void SetTemporary(bool);
  35102. void SetTexture(Texture);
  35103. void SetTextureAttr(const ResourceRef&);
  35104. void SetTiled(bool);
  35105. void SetTraversalMode(TraversalMode);
  35106. void SetUseDerivedOpacity(bool);
  35107. void SetVar(StringHash, const Variant&);
  35108. void SetVerticalAlignment(VerticalAlignment);
  35109. void SetView(Scene, Camera, bool = true);
  35110. void SetVisible(bool);
  35111. void SetWidth(int);
  35112. void SortChildren();
  35113. const String& GetAppliedStyle() const;
  35114. const String& GetCategory() const;
  35115. const String& GetName() const;
  35116. const String& GetTypeName() const;
  35117. operator UIElement() const;
  35118. void UnsubscribeFromAllEvents();
  35119. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35120. void UnsubscribeFromEvent(Object, StringHash);
  35121. void UnsubscribeFromEvent(StringHash);
  35122. void UnsubscribeFromEvents(Object);
  35123. void Update(float);
  35124. void UpdateLayout();
  35125. const Variant& GetGlobalVar(StringHash) const;
  35126. const Variant& GetVar(const StringHash&) const;
  35127. const VariantMap& GetGlobalVars() const;
  35128. const VariantMap& GetVars() const;
  35129. const Vector2& GetLayoutFlexScale() const;
  35130. const Vector2& GetMaxAnchor() const;
  35131. const Vector2& GetMinAnchor() const;
  35132. const Vector2& GetPivot() const;
  35133. int WeakRefs() const;
  35134. operator Window() const;
  35135. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  35136. void WriteInitialDeltaUpdate(Serializer&, uint8);
  35137. void WriteLatestDataUpdate(Serializer&, uint8);
  35138. operator const Animatable() const;
  35139. operator const BorderImage() const;
  35140. operator const Object() const;
  35141. operator const RefCounted() const;
  35142. operator const Serializable() const;
  35143. operator const UIElement() const;
  35144. operator const Window() const;
  35145. // Properties:
  35146. bool animationEnabled;
  35147. /* readonly */
  35148. Array<Variant> attributeDefaults;
  35149. /* readonly */
  35150. Array<AttributeInfo> attributeInfos;
  35151. Array<Variant> attributes;
  35152. bool autoUpdate;
  35153. BlendMode blendMode;
  35154. IntRect border;
  35155. bool bringToBack;
  35156. bool bringToFront;
  35157. /* readonly */
  35158. Node cameraNode;
  35159. /* readonly */
  35160. String category;
  35161. /* readonly */
  35162. IntVector2 childOffset;
  35163. /* readonly */
  35164. Array<UIElement> children;
  35165. IntRect clipBorder;
  35166. bool clipChildren;
  35167. /* writeonly */
  35168. Color color;
  35169. /* readonly */
  35170. bool colorGradient;
  35171. Array<Color> colors;
  35172. /* readonly */
  35173. IntRect combinedScreenRect;
  35174. XMLFile defaultStyle;
  35175. /* readonly */
  35176. Texture2D depthTexture;
  35177. /* readonly */
  35178. float derivedOpacity;
  35179. IntVector2 disabledOffset;
  35180. /* readonly */
  35181. uint dragButtonCombo;
  35182. /* readonly */
  35183. uint dragButtonCount;
  35184. uint dragDropMode;
  35185. bool editable;
  35186. bool elementEventSender;
  35187. bool enableAnchor;
  35188. bool enabled;
  35189. /* readonly */
  35190. bool enabledSelf;
  35191. /* readonly */
  35192. bool fixedHeight;
  35193. bool fixedHeightResizing;
  35194. /* readonly */
  35195. bool fixedSize;
  35196. /* readonly */
  35197. bool fixedWidth;
  35198. bool fixedWidthResizing;
  35199. bool focus;
  35200. FocusMode focusMode;
  35201. uint format;
  35202. Array<Variant> globalVar;
  35203. /* readonly */
  35204. VariantMap globalVars;
  35205. int height;
  35206. HorizontalAlignment horizontalAlignment;
  35207. IntVector2 hoverOffset;
  35208. /* readonly */
  35209. bool hovering;
  35210. IntRect imageBorder;
  35211. IntRect imageRect;
  35212. int indent;
  35213. int indentSpacing;
  35214. /* readonly */
  35215. int indentWidth;
  35216. bool internal;
  35217. IntRect layoutBorder;
  35218. Vector2 layoutFlexScale;
  35219. LayoutMode layoutMode;
  35220. int layoutSpacing;
  35221. Material material;
  35222. Vector2 maxAnchor;
  35223. int maxHeight;
  35224. IntVector2 maxOffset;
  35225. IntVector2 maxSize;
  35226. int maxWidth;
  35227. Vector2 minAnchor;
  35228. int minHeight;
  35229. IntVector2 minOffset;
  35230. IntVector2 minSize;
  35231. int minWidth;
  35232. bool modal;
  35233. bool modalAutoDismiss;
  35234. Color modalFrameColor;
  35235. IntVector2 modalFrameSize;
  35236. Color modalShadeColor;
  35237. bool movable;
  35238. String name;
  35239. /* readonly */
  35240. uint numAllChildren;
  35241. /* readonly */
  35242. uint numAttributes;
  35243. /* readonly */
  35244. uint numChildren;
  35245. ObjectAnimation objectAnimation;
  35246. float opacity;
  35247. UIElement parent;
  35248. Vector2 pivot;
  35249. IntVector2 position;
  35250. int priority;
  35251. /* readonly */
  35252. int refs;
  35253. /* readonly */
  35254. Texture2D renderTexture;
  35255. bool resizable;
  35256. IntRect resizeBorder;
  35257. /* readonly */
  35258. UIElement root;
  35259. /* readonly */
  35260. Scene scene;
  35261. /* readonly */
  35262. IntVector2 screenPosition;
  35263. bool selected;
  35264. IntVector2 size;
  35265. bool sortChildren;
  35266. String style;
  35267. /* readonly */
  35268. Array<String> tags;
  35269. bool temporary;
  35270. Texture texture;
  35271. bool tiled;
  35272. TraversalMode traversalMode;
  35273. /* readonly */
  35274. StringHash type;
  35275. /* readonly */
  35276. String typeName;
  35277. bool useDerivedOpacity;
  35278. /* readonly */
  35279. VariantMap vars;
  35280. VerticalAlignment verticalAlignment;
  35281. /* readonly */
  35282. Viewport viewport;
  35283. bool visible;
  35284. /* readonly */
  35285. bool visibleEffective;
  35286. /* readonly */
  35287. int weakRefs;
  35288. int width;
  35289. };
  35290. class Viewport
  35291. {
  35292. public:
  35293. Viewport();
  35294. Viewport(Scene&, Camera&, RenderPath& = null);
  35295. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& = null);
  35296. // Methods:
  35297. void AllocateView();
  35298. bool GetBlockEvents() const;
  35299. Camera GetCamera() const;
  35300. Camera GetCullCamera() const;
  35301. bool GetDrawDebug() const;
  35302. VariantMap& GetEventDataMap() const;
  35303. Object GetEventSender() const;
  35304. RenderPath GetRenderPath() const;
  35305. Scene GetScene() const;
  35306. Ray GetScreenRay(int, int) const;
  35307. Object GetSubsystem(StringHash) const;
  35308. StringHash GetType() const;
  35309. View GetView() const;
  35310. bool HasEventHandlers() const;
  35311. bool HasSubscribedToEvent(Object, StringHash) const;
  35312. bool HasSubscribedToEvent(StringHash) const;
  35313. const IntRect& GetRect() const;
  35314. bool IsInstanceOf(StringHash) const;
  35315. operator Object() const;
  35316. void OnEvent(Object, StringHash, VariantMap&);
  35317. operator RefCounted() const;
  35318. int Refs() const;
  35319. Vector3 ScreenToWorldPoint(int, int, float) const;
  35320. void SendEvent(StringHash);
  35321. void SendEvent(StringHash, VariantMap&);
  35322. void SetBlockEvents(bool);
  35323. void SetCamera(Camera);
  35324. void SetCullCamera(Camera);
  35325. void SetDrawDebug(bool);
  35326. void SetGlobalVar(StringHash, const Variant&);
  35327. void SetRect(const IntRect&);
  35328. void SetRenderPath(RenderPath);
  35329. bool SetRenderPath(XMLFile);
  35330. void SetScene(Scene);
  35331. const String& GetCategory() const;
  35332. const String& GetTypeName() const;
  35333. void UnsubscribeFromAllEvents();
  35334. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35335. void UnsubscribeFromEvent(Object, StringHash);
  35336. void UnsubscribeFromEvent(StringHash);
  35337. void UnsubscribeFromEvents(Object);
  35338. const Variant& GetGlobalVar(StringHash) const;
  35339. const VariantMap& GetGlobalVars() const;
  35340. int WeakRefs() const;
  35341. IntVector2 WorldToScreenPoint(const Vector3&) const;
  35342. operator const Object() const;
  35343. operator const RefCounted() const;
  35344. // Properties:
  35345. Camera camera;
  35346. /* readonly */
  35347. String category;
  35348. Camera cullCamera;
  35349. bool drawDebug;
  35350. Array<Variant> globalVar;
  35351. /* readonly */
  35352. VariantMap globalVars;
  35353. IntRect rect;
  35354. /* readonly */
  35355. int refs;
  35356. RenderPath renderPath;
  35357. Scene scene;
  35358. /* readonly */
  35359. StringHash type;
  35360. /* readonly */
  35361. String typeName;
  35362. /* readonly */
  35363. int weakRefs;
  35364. };
  35365. class WeakHandle
  35366. {
  35367. public:
  35368. ~WeakHandle();
  35369. WeakHandle();
  35370. WeakHandle(const WeakHandle&in);
  35371. WeakHandle(RefCounted@);
  35372. // Methods:
  35373. WeakHandle& operator=(RefCounted);
  35374. WeakHandle& operator=(const WeakHandle&);
  35375. RefCounted Get() const;
  35376. // Properties:
  35377. /* readonly */
  35378. bool expired;
  35379. /* readonly */
  35380. int refs;
  35381. /* readonly */
  35382. int weakRefs;
  35383. };
  35384. class Window
  35385. {
  35386. public:
  35387. Window();
  35388. // Methods:
  35389. void AddChild(UIElement);
  35390. void AddTag(const String&);
  35391. void AddTags(Array<String>);
  35392. void AddTags(const String&, int8 = ';');
  35393. void AdjustScissor(IntRect&);
  35394. void AllocateNetworkState();
  35395. operator Animatable() const;
  35396. void ApplyAttributes();
  35397. operator BorderImage() const;
  35398. void BringToFront();
  35399. const Color& GetColor(Corner) const;
  35400. const Color& GetColorAttr() const;
  35401. const Color& GetDerivedColor() const;
  35402. const Color& GetModalFrameColor() const;
  35403. const Color& GetModalShadeColor() const;
  35404. UIElement CreateChild(StringHash, const String& = String :: EMPTY, uint = M_MAX_UNSIGNED);
  35405. void DisableLayoutUpdate();
  35406. IntVector2 ElementToScreen(const IntVector2&);
  35407. void EnableLayoutUpdate();
  35408. bool FilterAttributes(XMLElement&) const;
  35409. uint FindChild(UIElement) const;
  35410. bool GetAnimationEnabled() const;
  35411. Variant GetAttribute(const String&) const;
  35412. Variant GetAttribute(uint) const;
  35413. ValueAnimation GetAttributeAnimation(const String&) const;
  35414. float GetAttributeAnimationSpeed(const String&) const;
  35415. float GetAttributeAnimationTime(const String&) const;
  35416. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  35417. Variant GetAttributeDefault(const String&) const;
  35418. Variant GetAttributeDefault(uint) const;
  35419. BlendMode GetBlendMode() const;
  35420. bool GetBlockEvents() const;
  35421. bool GetBringToBack() const;
  35422. bool GetBringToFront() const;
  35423. UIElement GetChild(const String&, bool = false) const;
  35424. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  35425. UIElement GetChild(uint) const;
  35426. Array<UIElement> GetChildren() const;
  35427. Array<UIElement> GetChildren(bool) const;
  35428. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  35429. bool GetClipChildren() const;
  35430. IntRect GetCombinedScreenRect();
  35431. XMLFile GetDefaultStyle(bool = true) const;
  35432. float GetDerivedOpacity() const;
  35433. uint GetDragButtonCombo() const;
  35434. uint GetDragButtonCount() const;
  35435. uint GetDragDropMode() const;
  35436. IntVector2 GetEffectiveMinSize() const;
  35437. UIElement GetElementEventSender() const;
  35438. bool GetEnableAnchor() const;
  35439. VariantMap& GetEventDataMap() const;
  35440. Object GetEventSender() const;
  35441. bool GetFixedHeightResizing() const;
  35442. bool GetFixedWidthResizing() const;
  35443. FocusMode GetFocusMode() const;
  35444. int GetHeight() const;
  35445. HorizontalAlignment GetHorizontalAlignment() const;
  35446. int GetIndent() const;
  35447. int GetIndentSpacing() const;
  35448. int GetIndentWidth() const;
  35449. bool GetInterceptNetworkUpdate(const String&) const;
  35450. int GetLayoutElementMaxSize() const;
  35451. LayoutMode GetLayoutMode() const;
  35452. int GetLayoutSpacing() const;
  35453. Material GetMaterial() const;
  35454. ResourceRef GetMaterialAttr() const;
  35455. int GetMaxHeight() const;
  35456. int GetMaxWidth() const;
  35457. int GetMinHeight() const;
  35458. int GetMinWidth() const;
  35459. bool GetModalAutoDismiss() const;
  35460. uint GetNumAttributes() const;
  35461. uint GetNumChildren(bool = false) const;
  35462. uint GetNumNetworkAttributes() const;
  35463. ObjectAnimation GetObjectAnimation() const;
  35464. ResourceRef GetObjectAnimationAttr() const;
  35465. float GetOpacity() const;
  35466. UIElement GetParent() const;
  35467. int GetPriority() const;
  35468. UIElement GetRoot() const;
  35469. bool GetSortChildren() const;
  35470. Object GetSubsystem(StringHash) const;
  35471. Array<String> GetTags() const;
  35472. Texture GetTexture() const;
  35473. ResourceRef GetTextureAttr() const;
  35474. TraversalMode GetTraversalMode() const;
  35475. StringHash GetType() const;
  35476. bool GetUseDerivedOpacity() const;
  35477. VerticalAlignment GetVerticalAlignment() const;
  35478. int GetWidth() const;
  35479. bool HasColorGradient() const;
  35480. bool HasEventHandlers() const;
  35481. bool HasFocus() const;
  35482. bool HasSubscribedToEvent(Object, StringHash) const;
  35483. bool HasSubscribedToEvent(StringHash) const;
  35484. bool HasTag(const String&) const;
  35485. void InsertChild(uint, UIElement);
  35486. const IntRect& GetBorder() const;
  35487. const IntRect& GetClipBorder() const;
  35488. const IntRect& GetImageBorder() const;
  35489. const IntRect& GetImageRect() const;
  35490. const IntRect& GetLayoutBorder() const;
  35491. const IntRect& GetResizeBorder() const;
  35492. const IntVector2& GetChildOffset() const;
  35493. const IntVector2& GetDisabledOffset() const;
  35494. const IntVector2& GetHoverOffset() const;
  35495. const IntVector2& GetMaxOffset() const;
  35496. const IntVector2& GetMaxSize() const;
  35497. const IntVector2& GetMinOffset() const;
  35498. const IntVector2& GetMinSize() const;
  35499. const IntVector2& GetModalFrameSize() const;
  35500. const IntVector2& GetPosition() const;
  35501. const IntVector2& GetScreenPosition() const;
  35502. const IntVector2& GetSize() const;
  35503. bool IsChildOf(UIElement) const;
  35504. bool IsEditable() const;
  35505. bool IsElementEventSender() const;
  35506. bool IsEnabled() const;
  35507. bool IsEnabledSelf() const;
  35508. bool IsFixedHeight() const;
  35509. bool IsFixedSize() const;
  35510. bool IsFixedWidth() const;
  35511. bool IsHovering() const;
  35512. bool IsInside(IntVector2, bool);
  35513. bool IsInsideCombined(IntVector2, bool);
  35514. bool IsInstanceOf(StringHash) const;
  35515. bool IsInternal() const;
  35516. bool IsModal() const;
  35517. bool IsMovable() const;
  35518. bool IsResizable() const;
  35519. bool IsSelected() const;
  35520. bool IsTemporary() const;
  35521. bool IsTiled() const;
  35522. bool IsVisible() const;
  35523. bool IsVisibleEffective() const;
  35524. bool IsWheelHandler() const;
  35525. bool IsWithinScissor(const IntRect&);
  35526. bool Load(Deserializer&);
  35527. UIElement LoadChildXML(XMLFile, XMLFile);
  35528. UIElement LoadChildXML(const XMLElement&, XMLFile);
  35529. bool LoadJSON(const JSONValue&);
  35530. bool LoadXML(Deserializer&);
  35531. bool LoadXML(File);
  35532. bool LoadXML(VectorBuffer&);
  35533. bool LoadXML(XMLFile, XMLFile);
  35534. bool LoadXML(const XMLElement&);
  35535. bool LoadXML(const XMLElement&, XMLFile);
  35536. void MarkNetworkUpdate();
  35537. operator Object() const;
  35538. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  35539. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  35540. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  35541. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35542. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35543. bool OnDragDropFinish(UIElement);
  35544. bool OnDragDropTest(UIElement);
  35545. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35546. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35547. void OnEvent(Object, StringHash, VariantMap&);
  35548. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  35549. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35550. void OnIndentSet();
  35551. void OnKey(uint, uint, uint);
  35552. void OnPositionSet(const IntVector2&);
  35553. void OnResize(const IntVector2&, const IntVector2&);
  35554. void OnSetAttribute(const AttributeInfo&, const Variant&);
  35555. void OnSetEditable();
  35556. void OnTextInput(const String&);
  35557. void OnWheel(int, uint, uint);
  35558. bool ReadDeltaUpdate(Deserializer&);
  35559. bool ReadLatestDataUpdate(Deserializer&);
  35560. operator RefCounted() const;
  35561. int Refs() const;
  35562. void Remove();
  35563. void RemoveAllChildren();
  35564. void RemoveAllTags();
  35565. void RemoveAttributeAnimation(const String&);
  35566. void RemoveChild(UIElement, uint = 0);
  35567. void RemoveChild(uint);
  35568. void RemoveChildAtIndex(uint);
  35569. void RemoveInstanceDefault();
  35570. void RemoveObjectAnimation();
  35571. bool RemoveTag(const String&);
  35572. void ResetDeepEnabled();
  35573. void ResetToDefault();
  35574. bool Save(Serializer&) const;
  35575. bool SaveDefaultAttributes() const;
  35576. bool SaveJSON(JSONValue&) const;
  35577. bool SaveXML(File, const String& indentation = "\t");
  35578. bool SaveXML(Serializer&, const String& = "\t") const;
  35579. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  35580. bool SaveXML(XMLElement&) const;
  35581. IntVector2 ScreenToElement(const IntVector2&);
  35582. void SendEvent(StringHash);
  35583. void SendEvent(StringHash, VariantMap&);
  35584. operator Serializable() const;
  35585. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  35586. void SetAnimationEnabled(bool);
  35587. void SetAnimationTime(float);
  35588. bool SetAttribute(const String&, const Variant&);
  35589. bool SetAttribute(uint, const Variant&);
  35590. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  35591. void SetAttributeAnimationSpeed(const String&, float);
  35592. void SetAttributeAnimationTime(const String&, float);
  35593. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  35594. void SetBlendMode(BlendMode);
  35595. void SetBlockEvents(bool);
  35596. void SetBorder(const IntRect&);
  35597. void SetBringToBack(bool);
  35598. void SetBringToFront(bool);
  35599. void SetChildOffset(const IntVector2&);
  35600. void SetClipBorder(const IntRect&);
  35601. void SetClipChildren(bool);
  35602. void SetColor(Corner, const Color&);
  35603. void SetColor(const Color&);
  35604. void SetDeepEnabled(bool);
  35605. void SetDefaultStyle(XMLFile);
  35606. void SetDisabledOffset(const IntVector2&);
  35607. void SetDisabledOffset(int, int);
  35608. void SetDragDropMode(uint);
  35609. void SetEditable(bool);
  35610. void SetElementEventSender(bool);
  35611. void SetEnableAnchor(bool);
  35612. void SetEnabled(bool);
  35613. void SetEnabledRecursive(bool);
  35614. void SetFixedHeight(int);
  35615. void SetFixedHeightResizing(bool);
  35616. void SetFixedSize(const IntVector2&);
  35617. void SetFixedSize(int, int);
  35618. void SetFixedWidth(int);
  35619. void SetFixedWidthResizing(bool);
  35620. void SetFocus(bool);
  35621. void SetFocusMode(FocusMode);
  35622. void SetFullImageRect();
  35623. void SetGlobalVar(StringHash, const Variant&);
  35624. void SetHeight(int);
  35625. void SetHorizontalAlignment(HorizontalAlignment);
  35626. void SetHoverOffset(const IntVector2&);
  35627. void SetHoverOffset(int, int);
  35628. void SetHovering(bool);
  35629. void SetImageBorder(const IntRect&);
  35630. void SetImageRect(const IntRect&);
  35631. void SetIndent(int);
  35632. void SetIndentSpacing(int);
  35633. void SetInstanceDefault(bool);
  35634. void SetInterceptNetworkUpdate(const String&, bool);
  35635. void SetInternal(bool);
  35636. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  35637. void SetLayoutBorder(const IntRect&);
  35638. void SetLayoutFlexScale(const Vector2&);
  35639. void SetLayoutMode(LayoutMode);
  35640. void SetLayoutSpacing(int);
  35641. void SetMaterial(Material);
  35642. void SetMaterialAttr(const ResourceRef&);
  35643. void SetMaxAnchor(const Vector2&);
  35644. void SetMaxAnchor(float, float);
  35645. void SetMaxHeight(int);
  35646. void SetMaxOffset(const IntVector2&);
  35647. void SetMaxSize(const IntVector2&);
  35648. void SetMaxSize(int, int);
  35649. void SetMaxWidth(int);
  35650. void SetMinAnchor(const Vector2&);
  35651. void SetMinAnchor(float, float);
  35652. void SetMinHeight(int);
  35653. void SetMinOffset(const IntVector2&);
  35654. void SetMinSize(const IntVector2&);
  35655. void SetMinSize(int, int);
  35656. void SetMinWidth(int);
  35657. void SetModal(bool);
  35658. void SetModalAutoDismiss(bool);
  35659. void SetModalFrameColor(const Color&);
  35660. void SetModalFrameSize(const IntVector2&);
  35661. void SetModalShadeColor(const Color&);
  35662. void SetMovable(bool);
  35663. void SetName(const String&);
  35664. void SetObjectAnimation(ObjectAnimation);
  35665. void SetObjectAnimationAttr(const ResourceRef&);
  35666. void SetOpacity(float);
  35667. void SetParent(UIElement, uint = M_MAX_UNSIGNED);
  35668. void SetPivot(const Vector2&);
  35669. void SetPivot(float, float);
  35670. void SetPosition(const IntVector2&);
  35671. void SetPosition(int, int);
  35672. void SetPriority(int);
  35673. void SetRenderTexture(Texture2D);
  35674. void SetResizable(bool);
  35675. void SetResizeBorder(const IntRect&);
  35676. void SetSelected(bool);
  35677. void SetSize(const IntVector2&);
  35678. void SetSize(int, int);
  35679. void SetSortChildren(bool);
  35680. bool SetStyle(const String&, XMLFile = null);
  35681. bool SetStyle(const XMLElement&);
  35682. bool SetStyleAuto(XMLFile = null);
  35683. void SetTags(Array<String>);
  35684. void SetTemporary(bool);
  35685. void SetTexture(Texture);
  35686. void SetTextureAttr(const ResourceRef&);
  35687. void SetTiled(bool);
  35688. void SetTraversalMode(TraversalMode);
  35689. void SetUseDerivedOpacity(bool);
  35690. void SetVar(StringHash, const Variant&);
  35691. void SetVerticalAlignment(VerticalAlignment);
  35692. void SetVisible(bool);
  35693. void SetWidth(int);
  35694. void SortChildren();
  35695. const String& GetAppliedStyle() const;
  35696. const String& GetCategory() const;
  35697. const String& GetName() const;
  35698. const String& GetTypeName() const;
  35699. operator UIElement() const;
  35700. void UnsubscribeFromAllEvents();
  35701. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35702. void UnsubscribeFromEvent(Object, StringHash);
  35703. void UnsubscribeFromEvent(StringHash);
  35704. void UnsubscribeFromEvents(Object);
  35705. void Update(float);
  35706. void UpdateLayout();
  35707. const Variant& GetGlobalVar(StringHash) const;
  35708. const Variant& GetVar(const StringHash&) const;
  35709. const VariantMap& GetGlobalVars() const;
  35710. const VariantMap& GetVars() const;
  35711. const Vector2& GetLayoutFlexScale() const;
  35712. const Vector2& GetMaxAnchor() const;
  35713. const Vector2& GetMinAnchor() const;
  35714. const Vector2& GetPivot() const;
  35715. operator View3D() const;
  35716. int WeakRefs() const;
  35717. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  35718. void WriteInitialDeltaUpdate(Serializer&, uint8);
  35719. void WriteLatestDataUpdate(Serializer&, uint8);
  35720. operator const Animatable() const;
  35721. operator const BorderImage() const;
  35722. operator const Object() const;
  35723. operator const RefCounted() const;
  35724. operator const Serializable() const;
  35725. operator const UIElement() const;
  35726. operator const View3D() const;
  35727. // Properties:
  35728. bool animationEnabled;
  35729. /* readonly */
  35730. Array<Variant> attributeDefaults;
  35731. /* readonly */
  35732. Array<AttributeInfo> attributeInfos;
  35733. Array<Variant> attributes;
  35734. BlendMode blendMode;
  35735. IntRect border;
  35736. bool bringToBack;
  35737. bool bringToFront;
  35738. /* readonly */
  35739. String category;
  35740. /* readonly */
  35741. IntVector2 childOffset;
  35742. /* readonly */
  35743. Array<UIElement> children;
  35744. IntRect clipBorder;
  35745. bool clipChildren;
  35746. /* writeonly */
  35747. Color color;
  35748. /* readonly */
  35749. bool colorGradient;
  35750. Array<Color> colors;
  35751. /* readonly */
  35752. IntRect combinedScreenRect;
  35753. XMLFile defaultStyle;
  35754. /* readonly */
  35755. float derivedOpacity;
  35756. IntVector2 disabledOffset;
  35757. /* readonly */
  35758. uint dragButtonCombo;
  35759. /* readonly */
  35760. uint dragButtonCount;
  35761. uint dragDropMode;
  35762. bool editable;
  35763. bool elementEventSender;
  35764. bool enableAnchor;
  35765. bool enabled;
  35766. /* readonly */
  35767. bool enabledSelf;
  35768. /* readonly */
  35769. bool fixedHeight;
  35770. bool fixedHeightResizing;
  35771. /* readonly */
  35772. bool fixedSize;
  35773. /* readonly */
  35774. bool fixedWidth;
  35775. bool fixedWidthResizing;
  35776. bool focus;
  35777. FocusMode focusMode;
  35778. Array<Variant> globalVar;
  35779. /* readonly */
  35780. VariantMap globalVars;
  35781. int height;
  35782. HorizontalAlignment horizontalAlignment;
  35783. IntVector2 hoverOffset;
  35784. /* readonly */
  35785. bool hovering;
  35786. IntRect imageBorder;
  35787. IntRect imageRect;
  35788. int indent;
  35789. int indentSpacing;
  35790. /* readonly */
  35791. int indentWidth;
  35792. bool internal;
  35793. IntRect layoutBorder;
  35794. Vector2 layoutFlexScale;
  35795. LayoutMode layoutMode;
  35796. int layoutSpacing;
  35797. Material material;
  35798. Vector2 maxAnchor;
  35799. int maxHeight;
  35800. IntVector2 maxOffset;
  35801. IntVector2 maxSize;
  35802. int maxWidth;
  35803. Vector2 minAnchor;
  35804. int minHeight;
  35805. IntVector2 minOffset;
  35806. IntVector2 minSize;
  35807. int minWidth;
  35808. bool modal;
  35809. bool modalAutoDismiss;
  35810. Color modalFrameColor;
  35811. IntVector2 modalFrameSize;
  35812. Color modalShadeColor;
  35813. bool movable;
  35814. String name;
  35815. /* readonly */
  35816. uint numAllChildren;
  35817. /* readonly */
  35818. uint numAttributes;
  35819. /* readonly */
  35820. uint numChildren;
  35821. ObjectAnimation objectAnimation;
  35822. float opacity;
  35823. UIElement parent;
  35824. Vector2 pivot;
  35825. IntVector2 position;
  35826. int priority;
  35827. /* readonly */
  35828. int refs;
  35829. bool resizable;
  35830. IntRect resizeBorder;
  35831. /* readonly */
  35832. UIElement root;
  35833. /* readonly */
  35834. IntVector2 screenPosition;
  35835. bool selected;
  35836. IntVector2 size;
  35837. bool sortChildren;
  35838. String style;
  35839. /* readonly */
  35840. Array<String> tags;
  35841. bool temporary;
  35842. Texture texture;
  35843. bool tiled;
  35844. TraversalMode traversalMode;
  35845. /* readonly */
  35846. StringHash type;
  35847. /* readonly */
  35848. String typeName;
  35849. bool useDerivedOpacity;
  35850. /* readonly */
  35851. VariantMap vars;
  35852. VerticalAlignment verticalAlignment;
  35853. bool visible;
  35854. /* readonly */
  35855. bool visibleEffective;
  35856. /* readonly */
  35857. int weakRefs;
  35858. int width;
  35859. };
  35860. class WindowModeParams
  35861. {
  35862. public:
  35863. ~WindowModeParams();
  35864. WindowModeParams();
  35865. // Methods:
  35866. WindowModeParams& operator=(const WindowModeParams&);
  35867. // Properties:
  35868. int height;
  35869. ScreenModeParams screenParams;
  35870. int width;
  35871. };
  35872. class WorkQueue
  35873. {
  35874. public:
  35875. WorkQueue();
  35876. // Methods:
  35877. void Complete(uint);
  35878. void CreateThreads(uint);
  35879. bool GetBlockEvents() const;
  35880. VariantMap& GetEventDataMap() const;
  35881. Object GetEventSender() const;
  35882. int GetNonThreadedWorkMs() const;
  35883. uint GetNumThreads() const;
  35884. Object GetSubsystem(StringHash) const;
  35885. int GetTolerance() const;
  35886. StringHash GetType() const;
  35887. bool HasEventHandlers() const;
  35888. bool HasSubscribedToEvent(Object, StringHash) const;
  35889. bool HasSubscribedToEvent(StringHash) const;
  35890. bool IsCompleted(uint) const;
  35891. bool IsCompleting() const;
  35892. bool IsInstanceOf(StringHash) const;
  35893. operator Object() const;
  35894. void OnEvent(Object, StringHash, VariantMap&);
  35895. void Pause();
  35896. operator RefCounted() const;
  35897. int Refs() const;
  35898. void Resume();
  35899. void SendEvent(StringHash);
  35900. void SendEvent(StringHash, VariantMap&);
  35901. void SetBlockEvents(bool);
  35902. void SetGlobalVar(StringHash, const Variant&);
  35903. void SetNonThreadedWorkMs(int);
  35904. void SetTolerance(int);
  35905. const String& GetCategory() const;
  35906. const String& GetTypeName() const;
  35907. void UnsubscribeFromAllEvents();
  35908. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35909. void UnsubscribeFromEvent(Object, StringHash);
  35910. void UnsubscribeFromEvent(StringHash);
  35911. void UnsubscribeFromEvents(Object);
  35912. const Variant& GetGlobalVar(StringHash) const;
  35913. const VariantMap& GetGlobalVars() const;
  35914. int WeakRefs() const;
  35915. operator const Object() const;
  35916. operator const RefCounted() const;
  35917. // Properties:
  35918. /* readonly */
  35919. String category;
  35920. Array<Variant> globalVar;
  35921. /* readonly */
  35922. VariantMap globalVars;
  35923. /* readonly */
  35924. int refs;
  35925. /* readonly */
  35926. StringHash type;
  35927. /* readonly */
  35928. String typeName;
  35929. /* readonly */
  35930. int weakRefs;
  35931. };
  35932. class XMLElement
  35933. {
  35934. public:
  35935. ~XMLElement();
  35936. XMLElement();
  35937. XMLElement(const XMLElement&in);
  35938. // Methods:
  35939. XMLElement& operator=(const XMLElement&);
  35940. bool AppendChild(XMLElement, bool = false);
  35941. XMLElement CreateChild(const String&);
  35942. String GetAttribute(const String& = String :: EMPTY) const;
  35943. String GetAttributeLower(const String&) const;
  35944. Array<String> GetAttributeNames() const;
  35945. String GetAttributeUpper(const String&) const;
  35946. bool GetBool(const String&) const;
  35947. BoundingBox GetBoundingBox() const;
  35948. XMLElement GetChild(const String& = String :: EMPTY) const;
  35949. Color GetColor(const String&) const;
  35950. double GetDouble(const String&) const;
  35951. XMLFile GetFile() const;
  35952. float GetFloat(const String&) const;
  35953. int GetInt(const String&) const;
  35954. int64 GetInt64(const String&) const;
  35955. IntRect GetIntRect(const String&) const;
  35956. IntVector2 GetIntVector2(const String&) const;
  35957. IntVector3 GetIntVector3(const String&) const;
  35958. Matrix3 GetMatrix3(const String&) const;
  35959. Matrix3x4 GetMatrix3x4(const String&) const;
  35960. Matrix4 GetMatrix4(const String&) const;
  35961. String GetName() const;
  35962. XMLElement GetNext(const String& = String :: EMPTY) const;
  35963. uint GetNumAttributes() const;
  35964. XMLElement GetOrCreateChild(const String&);
  35965. XMLElement GetParent() const;
  35966. Quaternion GetQuaternion(const String&) const;
  35967. Rect GetRect(const String&) const;
  35968. ResourceRef GetResourceRef() const;
  35969. ResourceRefList GetResourceRefList() const;
  35970. Array<String> GetStringVector() const;
  35971. uint GetUInt(const String&) const;
  35972. uint64 GetUInt64(const String&) const;
  35973. String GetValue() const;
  35974. Variant GetVariant() const;
  35975. VariantMap GetVariantMap() const;
  35976. Variant GetVariantValue(VariantType) const;
  35977. Array<Variant> GetVariantVector() const;
  35978. Vector4 GetVector(const String&) const;
  35979. Vector2 GetVector2(const String&) const;
  35980. Vector3 GetVector3(const String&) const;
  35981. Vector4 GetVector4(const String&) const;
  35982. Variant GetVectorVariant(const String&) const;
  35983. uint GetXPathResultIndex() const;
  35984. bool HasAttribute(const String&) const;
  35985. bool HasChild(const String&) const;
  35986. bool IsNull() const;
  35987. XMLElement NextResult() const;
  35988. bool NotNull() const;
  35989. bool Remove();
  35990. bool RemoveAttribute(const String& = String :: EMPTY);
  35991. bool RemoveChild(const String&);
  35992. bool RemoveChild(const XMLElement&);
  35993. bool RemoveChildren(const String& = String :: EMPTY);
  35994. XPathResultSet Select(const String&);
  35995. XPathResultSet SelectPrepared(const XPathQuery&) const;
  35996. XMLElement SelectSingle(const String&);
  35997. XMLElement SelectSinglePrepared(const XPathQuery&) const;
  35998. bool SetAttribute(const String&);
  35999. bool SetAttribute(const String&, const String&);
  36000. bool SetBool(const String&, bool);
  36001. bool SetBoundingBox(const BoundingBox&);
  36002. bool SetColor(const String&, const Color&);
  36003. bool SetDouble(const String&, double);
  36004. bool SetFloat(const String&, float);
  36005. bool SetInt(const String&, int);
  36006. bool SetInt64(const String&, int64);
  36007. bool SetIntRect(const String&, const IntRect&);
  36008. bool SetIntVector2(const String&, const IntVector2&);
  36009. bool SetIntVector3(const String&, const IntVector3&);
  36010. bool SetMatrix3(const String&, const Matrix3&);
  36011. bool SetMatrix3x4(const String&, const Matrix3x4&);
  36012. bool SetMatrix4(const String&, const Matrix4&);
  36013. bool SetQuaternion(const String&, const Quaternion&);
  36014. bool SetRect(const String&, const Rect&);
  36015. bool SetResourceRef(const ResourceRef&);
  36016. bool SetResourceRefList(const ResourceRefList&);
  36017. bool SetString(const String&, const String&);
  36018. bool SetStringVector(Array<String>);
  36019. bool SetUInt(const String&, uint);
  36020. bool SetUInt64(const String&, uint64);
  36021. bool SetValue(const String&);
  36022. bool SetVariant(const Variant&);
  36023. bool SetVariantMap(const VariantMap&);
  36024. bool SetVariantValue(const Variant&);
  36025. bool SetVariantVector(Array<Variant>);
  36026. bool SetVector2(const String&, const Vector2&);
  36027. bool SetVector3(const String&, const Vector3&);
  36028. bool SetVector4(const String&, const Vector4&);
  36029. bool SetVectorVariant(const String&, const Variant&);
  36030. // Properties:
  36031. /* readonly */
  36032. XMLFile file;
  36033. /* readonly */
  36034. bool isNull;
  36035. /* readonly */
  36036. String name;
  36037. /* readonly */
  36038. XMLElement nextResult;
  36039. /* readonly */
  36040. bool notNull;
  36041. /* readonly */
  36042. uint numAttributes;
  36043. /* readonly */
  36044. XMLElement parent;
  36045. String value;
  36046. // Constants:
  36047. static const XMLElement EMPTY;
  36048. };
  36049. class XMLFile
  36050. {
  36051. public:
  36052. XMLFile();
  36053. // Methods:
  36054. bool BeginLoad(Deserializer&);
  36055. XMLElement CreateRoot(const String&);
  36056. bool EndLoad();
  36057. bool FromString(const String&);
  36058. AsyncLoadState GetAsyncLoadState() const;
  36059. bool GetBlockEvents() const;
  36060. VariantMap& GetEventDataMap() const;
  36061. Object GetEventSender() const;
  36062. uint GetMemoryUse() const;
  36063. StringHash GetNameHash() const;
  36064. XMLElement GetOrCreateRoot(const String&);
  36065. XMLElement GetRoot(const String& = String :: EMPTY);
  36066. Object GetSubsystem(StringHash) const;
  36067. StringHash GetType() const;
  36068. uint GetUseTimer();
  36069. bool HasEventHandlers() const;
  36070. bool HasSubscribedToEvent(Object, StringHash) const;
  36071. bool HasSubscribedToEvent(StringHash) const;
  36072. bool IsInstanceOf(StringHash) const;
  36073. bool Load(Deserializer&);
  36074. bool Load(File);
  36075. bool Load(VectorBuffer&);
  36076. bool Load(const String&);
  36077. bool LoadFile(const String&);
  36078. operator Object() const;
  36079. void OnEvent(Object, StringHash, VariantMap&);
  36080. void Patch(XMLFile);
  36081. void Patch(const XMLElement&);
  36082. operator RefCounted() const;
  36083. int Refs() const;
  36084. void ResetUseTimer();
  36085. operator Resource() const;
  36086. bool Save(File) const;
  36087. bool Save(Serializer&) const;
  36088. bool Save(Serializer&, const String&) const;
  36089. bool Save(VectorBuffer&) const;
  36090. bool Save(const String&) const;
  36091. bool SaveFile(const String&) const;
  36092. void SendEvent(StringHash);
  36093. void SendEvent(StringHash, VariantMap&);
  36094. void SetAsyncLoadState(AsyncLoadState);
  36095. void SetBlockEvents(bool);
  36096. void SetGlobalVar(StringHash, const Variant&);
  36097. void SetMemoryUse(uint);
  36098. void SetName(const String&);
  36099. const String& GetCategory() const;
  36100. const String& GetName() const;
  36101. const String& GetTypeName() const;
  36102. String ToString(const String& = "\t") const;
  36103. void UnsubscribeFromAllEvents();
  36104. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  36105. void UnsubscribeFromEvent(Object, StringHash);
  36106. void UnsubscribeFromEvent(StringHash);
  36107. void UnsubscribeFromEvents(Object);
  36108. const Variant& GetGlobalVar(StringHash) const;
  36109. const VariantMap& GetGlobalVars() const;
  36110. int WeakRefs() const;
  36111. operator const Object() const;
  36112. operator const RefCounted() const;
  36113. operator const Resource() const;
  36114. // Properties:
  36115. /* readonly */
  36116. String category;
  36117. Array<Variant> globalVar;
  36118. /* readonly */
  36119. VariantMap globalVars;
  36120. /* readonly */
  36121. uint memoryUse;
  36122. String name;
  36123. /* readonly */
  36124. int refs;
  36125. /* readonly */
  36126. XMLElement root;
  36127. /* readonly */
  36128. StringHash type;
  36129. /* readonly */
  36130. String typeName;
  36131. /* readonly */
  36132. uint useTimer;
  36133. /* readonly */
  36134. int weakRefs;
  36135. };
  36136. class XPathQuery
  36137. {
  36138. public:
  36139. ~XPathQuery();
  36140. XPathQuery();
  36141. XPathQuery(const String&in, const String&in = String :: EMPTY);
  36142. // Methods:
  36143. void Bind();
  36144. void Clear();
  36145. XPathResultSet Evaluate(const XMLElement&) const;
  36146. bool EvaluateToBool(const XMLElement&) const;
  36147. float EvaluateToFloat(const XMLElement&) const;
  36148. String EvaluateToString(const XMLElement&) const;
  36149. String GetQuery() const;
  36150. bool SetQuery(const String&, const String& = String :: EMPTY, bool = true);
  36151. bool SetVariable(const String&, bool);
  36152. bool SetVariable(const String&, const String&);
  36153. bool SetVariable(const String&, const XPathResultSet&);
  36154. bool SetVariable(const String&, float);
  36155. // Properties:
  36156. String query;
  36157. };
  36158. class XPathResultSet
  36159. {
  36160. public:
  36161. ~XPathResultSet();
  36162. XPathResultSet();
  36163. XPathResultSet(const XPathResultSet&in);
  36164. // Methods:
  36165. XPathResultSet& operator=(const XPathResultSet&);
  36166. XMLElement operator[](uint) const;
  36167. bool Empty() const;
  36168. XMLElement FirstResult();
  36169. uint Size() const;
  36170. // Properties:
  36171. /* readonly */
  36172. bool empty;
  36173. /* readonly */
  36174. XMLElement firstResult;
  36175. /* readonly */
  36176. uint size;
  36177. };
  36178. class Zone
  36179. {
  36180. public:
  36181. Zone();
  36182. // Methods:
  36183. void AddLight(Light);
  36184. void AddVertexLight(Light);
  36185. void AllocateNetworkState();
  36186. operator Animatable() const;
  36187. void ApplyAttributes();
  36188. const BoundingBox& GetBoundingBox() const;
  36189. const BoundingBox& GetWorldBoundingBox();
  36190. void CleanupConnection(Connection);
  36191. const Color& GetAmbientColor() const;
  36192. const Color& GetAmbientEndColor();
  36193. const Color& GetAmbientStartColor();
  36194. const Color& GetFogColor() const;
  36195. operator Component() const;
  36196. void DrawDebugGeometry(DebugRenderer, bool);
  36197. bool DrawOcclusion(OcclusionBuffer);
  36198. operator Drawable() const;
  36199. bool GetAmbientGradient() const;
  36200. bool GetAnimationEnabled() const;
  36201. Variant GetAttribute(const String&) const;
  36202. Variant GetAttribute(uint) const;
  36203. ValueAnimation GetAttributeAnimation(const String&) const;
  36204. float GetAttributeAnimationSpeed(const String&) const;
  36205. float GetAttributeAnimationTime(const String&) const;
  36206. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  36207. Variant GetAttributeDefault(const String&) const;
  36208. Variant GetAttributeDefault(uint) const;
  36209. bool GetBlockEvents() const;
  36210. bool GetCastShadows() const;
  36211. Component GetComponent(StringHash) const;
  36212. float GetDistance() const;
  36213. float GetDrawDistance() const;
  36214. uint8 GetDrawableFlags() const;
  36215. VariantMap& GetEventDataMap() const;
  36216. Object GetEventSender() const;
  36217. Light GetFirstLight() const;
  36218. float GetFogEnd() const;
  36219. float GetFogHeight() const;
  36220. float GetFogHeightScale() const;
  36221. float GetFogStart() const;
  36222. bool GetHeightFog() const;
  36223. uint GetID() const;
  36224. bool GetInterceptNetworkUpdate(const String&) const;
  36225. uint GetLightMask() const;
  36226. Array<Light> GetLights() const;
  36227. float GetLodBias() const;
  36228. float GetLodDistance() const;
  36229. Geometry GetLodGeometry(uint, uint);
  36230. uint GetMaxLights() const;
  36231. float GetMaxZ() const;
  36232. float GetMinZ() const;
  36233. Node GetNode() const;
  36234. uint GetNumAttributes() const;
  36235. uint GetNumNetworkAttributes() const;
  36236. uint GetNumOccluderTriangles();
  36237. ObjectAnimation GetObjectAnimation() const;
  36238. ResourceRef GetObjectAnimationAttr() const;
  36239. bool GetOverride() const;
  36240. int GetPriority() const;
  36241. Scene GetScene() const;
  36242. float GetShadowDistance() const;
  36243. uint GetShadowMask() const;
  36244. float GetSortValue() const;
  36245. Object GetSubsystem(StringHash) const;
  36246. StringHash GetType() const;
  36247. UpdateGeometryType GetUpdateGeometryType();
  36248. Array<Light> GetVertexLights() const;
  36249. uint GetViewMask() const;
  36250. Zone GetZone() const;
  36251. uint GetZoneMask() const;
  36252. Texture GetZoneTexture() const;
  36253. ResourceRef GetZoneTextureAttr() const;
  36254. bool HasBasePass(uint) const;
  36255. bool HasEventHandlers() const;
  36256. bool HasSubscribedToEvent(Object, StringHash) const;
  36257. bool HasSubscribedToEvent(StringHash) const;
  36258. bool IsEnabled() const;
  36259. bool IsEnabledEffective() const;
  36260. bool IsInView() const;
  36261. bool IsInView(Camera) const;
  36262. bool IsInView(const FrameInfo&, bool = false) const;
  36263. bool IsInside(const Vector3&) const;
  36264. bool IsInstanceOf(StringHash) const;
  36265. bool IsOccludee() const;
  36266. bool IsOccluder() const;
  36267. bool IsReplicated() const;
  36268. bool IsTemporary() const;
  36269. bool IsZoneDirty() const;
  36270. void LimitLights();
  36271. void LimitVertexLights(bool);
  36272. bool Load(Deserializer&);
  36273. bool LoadJSON(const JSONValue&);
  36274. bool LoadXML(const XMLElement&);
  36275. void MarkForUpdate();
  36276. void MarkInView(const FrameInfo&);
  36277. void MarkInView(uint);
  36278. void MarkNetworkUpdate();
  36279. const Matrix3x4& GetInverseWorldTransform() const;
  36280. operator Object() const;
  36281. void OnEvent(Object, StringHash, VariantMap&);
  36282. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  36283. void OnSetAttribute(const AttributeInfo&, const Variant&);
  36284. void OnSetEnabled();
  36285. void PrepareNetworkUpdate();
  36286. bool ReadDeltaUpdate(Deserializer&);
  36287. bool ReadLatestDataUpdate(Deserializer&);
  36288. operator RefCounted() const;
  36289. int Refs() const;
  36290. void Remove();
  36291. void RemoveAttributeAnimation(const String&);
  36292. void RemoveInstanceDefault();
  36293. void RemoveObjectAnimation();
  36294. void ResetToDefault();
  36295. bool Save(Serializer&) const;
  36296. bool SaveDefaultAttributes() const;
  36297. bool SaveJSON(JSONValue&) const;
  36298. bool SaveXML(XMLElement&) const;
  36299. void SendEvent(StringHash);
  36300. void SendEvent(StringHash, VariantMap&);
  36301. operator Serializable() const;
  36302. void SetAmbientColor(const Color&);
  36303. void SetAmbientGradient(bool);
  36304. void SetAnimationEnabled(bool);
  36305. void SetAnimationTime(float);
  36306. bool SetAttribute(const String&, const Variant&);
  36307. bool SetAttribute(uint, const Variant&);
  36308. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  36309. void SetAttributeAnimationSpeed(const String&, float);
  36310. void SetAttributeAnimationTime(const String&, float);
  36311. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  36312. void SetBasePass(uint);
  36313. void SetBlockEvents(bool);
  36314. void SetBoundingBox(const BoundingBox&);
  36315. void SetCastShadows(bool);
  36316. void SetDrawDistance(float);
  36317. void SetEnabled(bool);
  36318. void SetFogColor(const Color&);
  36319. void SetFogEnd(float);
  36320. void SetFogHeight(float);
  36321. void SetFogHeightScale(float);
  36322. void SetFogStart(float);
  36323. void SetGlobalVar(StringHash, const Variant&);
  36324. void SetHeightFog(bool);
  36325. void SetInstanceDefault(bool);
  36326. void SetInterceptNetworkUpdate(const String&, bool);
  36327. void SetLightMask(uint);
  36328. void SetLodBias(float);
  36329. void SetMaxLights(uint);
  36330. void SetMinMaxZ(float, float);
  36331. void SetObjectAnimation(ObjectAnimation);
  36332. void SetObjectAnimationAttr(const ResourceRef&);
  36333. void SetOccludee(bool);
  36334. void SetOccluder(bool);
  36335. void SetOverride(bool);
  36336. void SetPriority(int);
  36337. void SetShadowDistance(float);
  36338. void SetShadowMask(uint);
  36339. void SetSortValue(float);
  36340. void SetTemporary(bool);
  36341. void SetViewMask(uint);
  36342. void SetZone(Zone, bool = false);
  36343. void SetZoneMask(uint);
  36344. void SetZoneTexture(Texture);
  36345. void SetZoneTextureAttr(const ResourceRef&);
  36346. const String& GetCategory() const;
  36347. const String& GetTypeName() const;
  36348. void UnsubscribeFromAllEvents();
  36349. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  36350. void UnsubscribeFromEvent(Object, StringHash);
  36351. void UnsubscribeFromEvent(StringHash);
  36352. void UnsubscribeFromEvents(Object);
  36353. void Update(const FrameInfo&);
  36354. void UpdateBatches(const FrameInfo&);
  36355. void UpdateGeometry(const FrameInfo&);
  36356. const Variant& GetGlobalVar(StringHash) const;
  36357. const VariantMap& GetGlobalVars() const;
  36358. int WeakRefs() const;
  36359. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  36360. void WriteInitialDeltaUpdate(Serializer&, uint8);
  36361. void WriteLatestDataUpdate(Serializer&, uint8);
  36362. operator const Animatable() const;
  36363. operator const Component() const;
  36364. operator const Drawable() const;
  36365. operator const Object() const;
  36366. operator const RefCounted() const;
  36367. operator const Serializable() const;
  36368. // Properties:
  36369. Color ambientColor;
  36370. /* readonly */
  36371. Color ambientEndColor;
  36372. bool ambientGradient;
  36373. /* readonly */
  36374. Color ambientStartColor;
  36375. bool animationEnabled;
  36376. /* readonly */
  36377. Array<Variant> attributeDefaults;
  36378. /* readonly */
  36379. Array<AttributeInfo> attributeInfos;
  36380. Array<Variant> attributes;
  36381. BoundingBox boundingBox;
  36382. bool castShadows;
  36383. /* readonly */
  36384. String category;
  36385. float drawDistance;
  36386. bool enabled;
  36387. /* readonly */
  36388. bool enabledEffective;
  36389. Color fogColor;
  36390. float fogEnd;
  36391. float fogHeight;
  36392. float fogHeightScale;
  36393. float fogStart;
  36394. Array<Variant> globalVar;
  36395. /* readonly */
  36396. VariantMap globalVars;
  36397. bool heightFog;
  36398. /* readonly */
  36399. uint id;
  36400. /* readonly */
  36401. bool inView;
  36402. /* readonly */
  36403. Matrix3x4 inverseWorldTransform;
  36404. uint lightMask;
  36405. float lodBias;
  36406. uint maxLights;
  36407. /* readonly */
  36408. Node node;
  36409. /* readonly */
  36410. uint numAttributes;
  36411. ObjectAnimation objectAnimation;
  36412. bool occludee;
  36413. bool occluder;
  36414. bool override;
  36415. int priority;
  36416. /* readonly */
  36417. int refs;
  36418. /* readonly */
  36419. bool replicated;
  36420. float shadowDistance;
  36421. uint shadowMask;
  36422. bool temporary;
  36423. /* readonly */
  36424. StringHash type;
  36425. /* readonly */
  36426. String typeName;
  36427. uint viewMask;
  36428. /* readonly */
  36429. int weakRefs;
  36430. /* readonly */
  36431. BoundingBox worldBoundingBox;
  36432. /* readonly */
  36433. Zone zone;
  36434. uint zoneMask;
  36435. Texture zoneTexture;
  36436. };
  36437. // Enumerations
  36438. enum AnimationBlendMode
  36439. {
  36440. ABM_LERP,
  36441. ABM_ADDITIVE,
  36442. };
  36443. enum AsyncLoadState
  36444. {
  36445. ASYNC_DONE,
  36446. ASYNC_QUEUED,
  36447. ASYNC_LOADING,
  36448. ASYNC_SUCCESS,
  36449. ASYNC_FAIL,
  36450. };
  36451. enum AttributeMode
  36452. {
  36453. AM_EDIT,
  36454. AM_FILE,
  36455. AM_NET,
  36456. AM_DEFAULT,
  36457. AM_LATESTDATA,
  36458. AM_NOEDIT,
  36459. AM_NODEID,
  36460. AM_COMPONENTID,
  36461. AM_NODEIDVECTOR,
  36462. AM_FILEREADONLY,
  36463. };
  36464. enum AutoRemoveMode
  36465. {
  36466. REMOVE_DISABLED,
  36467. REMOVE_COMPONENT,
  36468. REMOVE_NODE,
  36469. };
  36470. enum BlendMode
  36471. {
  36472. BLEND_REPLACE,
  36473. BLEND_ADD,
  36474. BLEND_MULTIPLY,
  36475. BLEND_ALPHA,
  36476. BLEND_ADDALPHA,
  36477. BLEND_PREMULALPHA,
  36478. BLEND_INVDESTALPHA,
  36479. BLEND_SUBTRACT,
  36480. BLEND_SUBTRACTALPHA,
  36481. MAX_BLENDMODES,
  36482. };
  36483. enum BodyType2D
  36484. {
  36485. BT_STATIC,
  36486. BT_KINEMATIC,
  36487. BT_DYNAMIC,
  36488. };
  36489. enum CollisionEventMode
  36490. {
  36491. COLLISION_NEVER,
  36492. COLLISION_ACTIVE,
  36493. COLLISION_ALWAYS,
  36494. };
  36495. enum CompareMode
  36496. {
  36497. CMP_ALWAYS,
  36498. CMP_EQUAL,
  36499. CMP_NOTEQUAL,
  36500. CMP_LESS,
  36501. CMP_LESSEQUAL,
  36502. CMP_GREATER,
  36503. CMP_GREATEREQUAL,
  36504. MAX_COMPAREMODES,
  36505. };
  36506. enum CompressedFormat
  36507. {
  36508. CF_NONE,
  36509. CF_RGBA,
  36510. CF_DXT1,
  36511. CF_DXT3,
  36512. CF_DXT5,
  36513. CF_ETC1,
  36514. CF_ETC2_RGB,
  36515. CF_ETC2_RGBA,
  36516. CF_PVRTC_RGB_2BPP,
  36517. CF_PVRTC_RGBA_2BPP,
  36518. CF_PVRTC_RGB_4BPP,
  36519. CF_PVRTC_RGBA_4BPP,
  36520. };
  36521. enum ConstraintType
  36522. {
  36523. CONSTRAINT_POINT,
  36524. CONSTRAINT_HINGE,
  36525. CONSTRAINT_SLIDER,
  36526. CONSTRAINT_CONETWIST,
  36527. };
  36528. enum Corner
  36529. {
  36530. C_TOPLEFT,
  36531. C_TOPRIGHT,
  36532. C_BOTTOMLEFT,
  36533. C_BOTTOMRIGHT,
  36534. MAX_UIELEMENT_CORNERS,
  36535. };
  36536. enum CreateMode
  36537. {
  36538. REPLICATED,
  36539. LOCAL,
  36540. };
  36541. enum CrowdAgentRequestedTarget
  36542. {
  36543. CA_REQUESTEDTARGET_NONE,
  36544. CA_REQUESTEDTARGET_POSITION,
  36545. CA_REQUESTEDTARGET_VELOCITY,
  36546. };
  36547. enum CrowdAgentState
  36548. {
  36549. CA_STATE_INVALID,
  36550. CA_STATE_WALKING,
  36551. CA_STATE_OFFMESH,
  36552. };
  36553. enum CrowdAgentTargetState
  36554. {
  36555. CA_TARGET_NONE,
  36556. CA_TARGET_FAILED,
  36557. CA_TARGET_VALID,
  36558. CA_TARGET_REQUESTING,
  36559. CA_TARGET_WAITINGFORQUEUE,
  36560. CA_TARGET_WAITINGFORPATH,
  36561. CA_TARGET_VELOCITY,
  36562. };
  36563. enum CubeMapFace
  36564. {
  36565. FACE_POSITIVE_X,
  36566. FACE_NEGATIVE_X,
  36567. FACE_POSITIVE_Y,
  36568. FACE_NEGATIVE_Y,
  36569. FACE_POSITIVE_Z,
  36570. FACE_NEGATIVE_Z,
  36571. MAX_CUBEMAP_FACES,
  36572. };
  36573. enum CubeMapLayout
  36574. {
  36575. CML_HORIZONTAL,
  36576. CML_HORIZONTALNVIDIA,
  36577. CML_HORIZONTALCROSS,
  36578. CML_VERTICALCROSS,
  36579. CML_BLENDER,
  36580. };
  36581. enum CullMode
  36582. {
  36583. CULL_NONE,
  36584. CULL_CCW,
  36585. CULL_CW,
  36586. MAX_CULLMODES,
  36587. };
  36588. enum CursorShape
  36589. {
  36590. CS_NORMAL,
  36591. CS_IBEAM,
  36592. CS_CROSS,
  36593. CS_RESIZEVERTICAL,
  36594. CS_RESIZEDIAGONAL_TOPRIGHT,
  36595. CS_RESIZEHORIZONTAL,
  36596. CS_RESIZEDIAGONAL_TOPLEFT,
  36597. CS_RESIZE_ALL,
  36598. CS_ACCEPTDROP,
  36599. CS_REJECTDROP,
  36600. CS_BUSY,
  36601. CS_BUSY_ARROW,
  36602. CS_MAX_SHAPES,
  36603. };
  36604. enum DBAPI
  36605. {
  36606. DBAPI_SQLITE,
  36607. DBAPI_ODBC,
  36608. };
  36609. enum DeferredLightPSVariation
  36610. {
  36611. DLPS_NONE,
  36612. DLPS_SPOT,
  36613. DLPS_POINT,
  36614. DLPS_POINTMASK,
  36615. DLPS_SPEC,
  36616. DLPS_SPOTSPEC,
  36617. DLPS_POINTSPEC,
  36618. DLPS_POINTMASKSPEC,
  36619. DLPS_SHADOW,
  36620. DLPS_SPOTSHADOW,
  36621. DLPS_POINTSHADOW,
  36622. DLPS_POINTMASKSHADOW,
  36623. DLPS_SHADOWSPEC,
  36624. DLPS_SPOTSHADOWSPEC,
  36625. DLPS_POINTSHADOWSPEC,
  36626. DLPS_POINTMASKSHADOWSPEC,
  36627. DLPS_SHADOWNORMALOFFSET,
  36628. DLPS_SPOTSHADOWNORMALOFFSET,
  36629. DLPS_POINTSHADOWNORMALOFFSET,
  36630. DLPS_POINTMASKSHADOWNORMALOFFSET,
  36631. DLPS_SHADOWSPECNORMALOFFSET,
  36632. DLPS_SPOTSHADOWSPECNORMALOFFSET,
  36633. DLPS_POINTSHADOWSPECNORMALOFFSET,
  36634. DLPS_POINTMASKSHADOWSPECNORMALOFFSET,
  36635. DLPS_ORTHO,
  36636. DLPS_ORTHOSPOT,
  36637. DLPS_ORTHOPOINT,
  36638. DLPS_ORTHOPOINTMASK,
  36639. DLPS_ORTHOSPEC,
  36640. DLPS_ORTHOSPOTSPEC,
  36641. DLPS_ORTHOPOINTSPEC,
  36642. DLPS_ORTHOPOINTMASKSPEC,
  36643. DLPS_ORTHOSHADOW,
  36644. DLPS_ORTHOSPOTSHADOW,
  36645. DLPS_ORTHOPOINTSHADOW,
  36646. DLPS_ORTHOPOINTMASKSHADOW,
  36647. DLPS_ORTHOSHADOWSPEC,
  36648. DLPS_ORTHOSPOTSHADOWSPEC,
  36649. DLPS_ORTHOPOINTSHADOWSPEC,
  36650. DLPS_ORTHOPOINTMASKSHADOWSPEC,
  36651. DLPS_ORTHOSHADOWNORMALOFFSET,
  36652. DLPS_ORTHOSPOTSHADOWNORMALOFFSET,
  36653. DLPS_ORTHOPOINTSHADOWNORMALOFFSET,
  36654. DLPS_ORTHOPOINTMASKSHADOWNORMALOFFSET,
  36655. DLPS_ORTHOSHADOWSPECNORMALOFFSET,
  36656. DLPS_ORTHOSPOTSHADOWSPECNORMALOFFSET,
  36657. DLPS_ORTHOPOINTSHADOWSPECNORMALOFFSET,
  36658. DLPS_ORTHOPOINTMASKSHADOWSPECNORMALOFFSET,
  36659. MAX_DEFERRED_LIGHT_PS_VARIATIONS,
  36660. };
  36661. enum DeferredLightVSVariation
  36662. {
  36663. DLVS_NONE,
  36664. DLVS_DIR,
  36665. DLVS_ORTHO,
  36666. DLVS_ORTHODIR,
  36667. MAX_DEFERRED_LIGHT_VS_VARIATIONS,
  36668. };
  36669. enum DumpMode
  36670. {
  36671. DOXYGEN,
  36672. C_HEADER,
  36673. };
  36674. enum EmitterType
  36675. {
  36676. EMITTER_SPHERE,
  36677. EMITTER_BOX,
  36678. EMITTER_SPHEREVOLUME,
  36679. EMITTER_CYLINDER,
  36680. EMITTER_RING,
  36681. };
  36682. enum EmitterType2D
  36683. {
  36684. EMITTER_TYPE_GRAVITY,
  36685. EMITTER_TYPE_RADIAL,
  36686. };
  36687. enum FaceCameraMode
  36688. {
  36689. FC_NONE,
  36690. FC_ROTATE_XYZ,
  36691. FC_ROTATE_Y,
  36692. FC_LOOKAT_XYZ,
  36693. FC_LOOKAT_Y,
  36694. FC_LOOKAT_MIXED,
  36695. FC_DIRECTION,
  36696. };
  36697. enum FileMode
  36698. {
  36699. FILE_READ,
  36700. FILE_WRITE,
  36701. FILE_READWRITE,
  36702. };
  36703. enum FillMode
  36704. {
  36705. FILL_SOLID,
  36706. FILL_WIREFRAME,
  36707. FILL_POINT,
  36708. };
  36709. enum FocusMode
  36710. {
  36711. FM_NOTFOCUSABLE,
  36712. FM_RESETFOCUS,
  36713. FM_FOCUSABLE,
  36714. FM_FOCUSABLE_DEFOCUSABLE,
  36715. };
  36716. enum FontHintLevel
  36717. {
  36718. FONT_HINT_LEVEL_NONE,
  36719. FONT_HINT_LEVEL_LIGHT,
  36720. FONT_HINT_LEVEL_NORMAL,
  36721. };
  36722. enum FontType
  36723. {
  36724. FONT_NONE,
  36725. FONT_FREETYPE,
  36726. FONT_BITMAP,
  36727. MAX_FONT_TYPES,
  36728. };
  36729. enum FrustumPlane
  36730. {
  36731. PLANE_NEAR,
  36732. PLANE_LEFT,
  36733. PLANE_RIGHT,
  36734. PLANE_UP,
  36735. PLANE_DOWN,
  36736. PLANE_FAR,
  36737. };
  36738. enum GeometryType
  36739. {
  36740. GEOM_STATIC,
  36741. GEOM_SKINNED,
  36742. GEOM_INSTANCED,
  36743. GEOM_BILLBOARD,
  36744. GEOM_DIRBILLBOARD,
  36745. GEOM_TRAIL_FACE_CAMERA,
  36746. GEOM_TRAIL_BONE,
  36747. MAX_GEOMETRYTYPES,
  36748. GEOM_STATIC_NOINSTANCING,
  36749. };
  36750. enum HighlightMode
  36751. {
  36752. HM_NEVER,
  36753. HM_FOCUS,
  36754. HM_ALWAYS,
  36755. };
  36756. enum HorizontalAlignment
  36757. {
  36758. HA_LEFT,
  36759. HA_CENTER,
  36760. HA_RIGHT,
  36761. HA_CUSTOM,
  36762. };
  36763. enum HttpRequestState
  36764. {
  36765. HTTP_INITIALIZING,
  36766. HTTP_ERROR,
  36767. HTTP_OPEN,
  36768. HTTP_CLOSED,
  36769. };
  36770. enum IKAlgorithm
  36771. {
  36772. ONE_BONE,
  36773. TWO_BONE,
  36774. FABRIK,
  36775. };
  36776. enum IKFeature
  36777. {
  36778. JOINT_ROTATIONS,
  36779. TARGET_ROTATIONS,
  36780. UPDATE_ORIGINAL_POSE,
  36781. UPDATE_ACTIVE_POSE,
  36782. USE_ORIGINAL_POSE,
  36783. CONSTRAINTS,
  36784. AUTO_SOLVE,
  36785. };
  36786. enum InterpMethod
  36787. {
  36788. IM_NONE,
  36789. IM_LINEAR,
  36790. IM_SPLINE,
  36791. };
  36792. enum InterpolationMode
  36793. {
  36794. BEZIER_CURVE,
  36795. CATMULL_ROM_CURVE,
  36796. LINEAR_CURVE,
  36797. CATMULL_ROM_FULL_CURVE,
  36798. };
  36799. enum Intersection
  36800. {
  36801. OUTSIDE,
  36802. INTERSECTS,
  36803. INSIDE,
  36804. };
  36805. enum JSONNumberType
  36806. {
  36807. JSONNT_NAN,
  36808. JSONNT_INT,
  36809. JSONNT_UINT,
  36810. JSONNT_FLOAT_DOUBLE,
  36811. };
  36812. enum JSONValueType
  36813. {
  36814. JSON_NULL,
  36815. JSON_BOOL,
  36816. JSON_NUMBER,
  36817. JSON_STRING,
  36818. JSON_ARRAY,
  36819. JSON_OBJECT,
  36820. };
  36821. enum LayoutMode
  36822. {
  36823. LM_FREE,
  36824. LM_HORIZONTAL,
  36825. LM_VERTICAL,
  36826. };
  36827. enum LegacyVertexElement
  36828. {
  36829. ELEMENT_POSITION,
  36830. ELEMENT_NORMAL,
  36831. ELEMENT_COLOR,
  36832. ELEMENT_TEXCOORD1,
  36833. ELEMENT_TEXCOORD2,
  36834. ELEMENT_CUBETEXCOORD1,
  36835. ELEMENT_CUBETEXCOORD2,
  36836. ELEMENT_TANGENT,
  36837. ELEMENT_BLENDWEIGHTS,
  36838. ELEMENT_BLENDINDICES,
  36839. ELEMENT_INSTANCEMATRIX1,
  36840. ELEMENT_INSTANCEMATRIX2,
  36841. ELEMENT_INSTANCEMATRIX3,
  36842. ELEMENT_OBJECTINDEX,
  36843. MAX_LEGACY_VERTEX_ELEMENTS,
  36844. };
  36845. enum LightPSVariation
  36846. {
  36847. LPS_NONE,
  36848. LPS_SPOT,
  36849. LPS_POINT,
  36850. LPS_POINTMASK,
  36851. LPS_SPEC,
  36852. LPS_SPOTSPEC,
  36853. LPS_POINTSPEC,
  36854. LPS_POINTMASKSPEC,
  36855. LPS_SHADOW,
  36856. LPS_SPOTSHADOW,
  36857. LPS_POINTSHADOW,
  36858. LPS_POINTMASKSHADOW,
  36859. LPS_SHADOWSPEC,
  36860. LPS_SPOTSHADOWSPEC,
  36861. LPS_POINTSHADOWSPEC,
  36862. LPS_POINTMASKSHADOWSPEC,
  36863. MAX_LIGHT_PS_VARIATIONS,
  36864. };
  36865. enum LightType
  36866. {
  36867. LIGHT_DIRECTIONAL,
  36868. LIGHT_SPOT,
  36869. LIGHT_POINT,
  36870. };
  36871. enum LightVSVariation
  36872. {
  36873. LVS_DIR,
  36874. LVS_SPOT,
  36875. LVS_POINT,
  36876. LVS_SHADOW,
  36877. LVS_SPOTSHADOW,
  36878. LVS_POINTSHADOW,
  36879. LVS_SHADOWNORMALOFFSET,
  36880. LVS_SPOTSHADOWNORMALOFFSET,
  36881. LVS_POINTSHADOWNORMALOFFSET,
  36882. MAX_LIGHT_VS_VARIATIONS,
  36883. };
  36884. enum LoadMode
  36885. {
  36886. LOAD_RESOURCES_ONLY,
  36887. LOAD_SCENE,
  36888. LOAD_SCENE_AND_RESOURCES,
  36889. };
  36890. enum LockState
  36891. {
  36892. LOCK_NONE,
  36893. LOCK_HARDWARE,
  36894. LOCK_SHADOW,
  36895. LOCK_SCRATCH,
  36896. };
  36897. enum LoopMode2D
  36898. {
  36899. LM_DEFAULT,
  36900. LM_FORCE_LOOPED,
  36901. LM_FORCE_CLAMPED,
  36902. };
  36903. enum MouseMode
  36904. {
  36905. MM_ABSOLUTE,
  36906. MM_RELATIVE,
  36907. MM_WRAP,
  36908. MM_FREE,
  36909. MM_INVALID,
  36910. };
  36911. enum NavigationPathPointFlag
  36912. {
  36913. NAVPATHFLAG_NONE,
  36914. NAVPATHFLAG_START,
  36915. NAVPATHFLAG_END,
  36916. NAVPATHFLAG_OFF_MESH,
  36917. };
  36918. enum NavigationPushiness
  36919. {
  36920. NAVIGATIONPUSHINESS_LOW,
  36921. NAVIGATIONPUSHINESS_MEDIUM,
  36922. NAVIGATIONPUSHINESS_HIGH,
  36923. NAVIGATIONPUSHINESS_NONE,
  36924. };
  36925. enum NavigationQuality
  36926. {
  36927. NAVIGATIONQUALITY_LOW,
  36928. NAVIGATIONQUALITY_MEDIUM,
  36929. NAVIGATIONQUALITY_HIGH,
  36930. };
  36931. enum NavmeshPartitionType
  36932. {
  36933. NAVMESH_PARTITION_WATERSHED,
  36934. NAVMESH_PARTITION_MONOTONE,
  36935. };
  36936. enum ObserverPositionSendMode
  36937. {
  36938. OPSM_NONE,
  36939. OPSM_POSITION,
  36940. OPSM_POSITION_ROTATION,
  36941. };
  36942. enum Orientation
  36943. {
  36944. O_HORIZONTAL,
  36945. O_VERTICAL,
  36946. };
  36947. enum Orientation2D
  36948. {
  36949. O_ORTHOGONAL,
  36950. O_ISOMETRIC,
  36951. O_STAGGERED,
  36952. O_HEXAGONAL,
  36953. };
  36954. enum PacketType
  36955. {
  36956. PT_UNRELIABLE_UNORDERED,
  36957. PT_UNRELIABLE_ORDERED,
  36958. PT_RELIABLE_UNORDERED,
  36959. PT_RELIABLE_ORDERED,
  36960. };
  36961. enum PassLightingMode
  36962. {
  36963. LIGHTING_UNLIT,
  36964. LIGHTING_PERVERTEX,
  36965. LIGHTING_PERPIXEL,
  36966. };
  36967. enum PrimitiveType
  36968. {
  36969. TRIANGLE_LIST,
  36970. LINE_LIST,
  36971. POINT_LIST,
  36972. TRIANGLE_STRIP,
  36973. LINE_STRIP,
  36974. TRIANGLE_FAN,
  36975. };
  36976. enum RayQueryLevel
  36977. {
  36978. RAY_AABB,
  36979. RAY_OBB,
  36980. RAY_TRIANGLE,
  36981. RAY_TRIANGLE_UV,
  36982. };
  36983. enum RenderCommandSortMode
  36984. {
  36985. SORT_FRONTTOBACK,
  36986. SORT_BACKTOFRONT,
  36987. };
  36988. enum RenderCommandType
  36989. {
  36990. CMD_NONE,
  36991. CMD_CLEAR,
  36992. CMD_SCENEPASS,
  36993. CMD_QUAD,
  36994. CMD_FORWARDLIGHTS,
  36995. CMD_LIGHTVOLUMES,
  36996. CMD_RENDERUI,
  36997. CMD_SENDEVENT,
  36998. };
  36999. enum RenderSurfaceUpdateMode
  37000. {
  37001. SURFACE_MANUALUPDATE,
  37002. SURFACE_UPDATEVISIBLE,
  37003. SURFACE_UPDATEALWAYS,
  37004. };
  37005. enum RenderTargetSizeMode
  37006. {
  37007. SIZE_ABSOLUTE,
  37008. SIZE_VIEWPORTDIVISOR,
  37009. SIZE_VIEWPORTMULTIPLIER,
  37010. };
  37011. enum ResourceRequest
  37012. {
  37013. RESOURCE_CHECKEXISTS,
  37014. RESOURCE_GETFILE,
  37015. };
  37016. enum ShaderParameterGroup
  37017. {
  37018. SP_FRAME,
  37019. SP_CAMERA,
  37020. SP_ZONE,
  37021. SP_LIGHT,
  37022. SP_MATERIAL,
  37023. SP_OBJECT,
  37024. SP_CUSTOM,
  37025. MAX_SHADER_PARAMETER_GROUPS,
  37026. };
  37027. enum ShaderType
  37028. {
  37029. VS,
  37030. PS,
  37031. };
  37032. enum ShadowQuality
  37033. {
  37034. SHADOWQUALITY_SIMPLE_16BIT,
  37035. SHADOWQUALITY_SIMPLE_24BIT,
  37036. SHADOWQUALITY_PCF_16BIT,
  37037. SHADOWQUALITY_PCF_24BIT,
  37038. SHADOWQUALITY_VSM,
  37039. SHADOWQUALITY_BLUR_VSM,
  37040. };
  37041. enum ShapeType
  37042. {
  37043. SHAPE_BOX,
  37044. SHAPE_SPHERE,
  37045. SHAPE_STATICPLANE,
  37046. SHAPE_CYLINDER,
  37047. SHAPE_CAPSULE,
  37048. SHAPE_CONE,
  37049. SHAPE_TRIANGLEMESH,
  37050. SHAPE_CONVEXHULL,
  37051. SHAPE_TERRAIN,
  37052. SHAPE_GIMPACTMESH,
  37053. };
  37054. enum StencilOp
  37055. {
  37056. OP_KEEP,
  37057. OP_ZERO,
  37058. OP_REF,
  37059. OP_INCR,
  37060. OP_DECR,
  37061. };
  37062. enum TextEffect
  37063. {
  37064. TE_NONE,
  37065. TE_SHADOW,
  37066. TE_STROKE,
  37067. };
  37068. enum TextureAddressMode
  37069. {
  37070. ADDRESS_WRAP,
  37071. ADDRESS_MIRROR,
  37072. ADDRESS_CLAMP,
  37073. ADDRESS_BORDER,
  37074. MAX_ADDRESSMODES,
  37075. };
  37076. enum TextureCoordinate
  37077. {
  37078. COORD_U,
  37079. COORD_V,
  37080. COORD_W,
  37081. MAX_COORDS,
  37082. };
  37083. enum TextureFilterMode
  37084. {
  37085. FILTER_NEAREST,
  37086. FILTER_BILINEAR,
  37087. FILTER_TRILINEAR,
  37088. FILTER_ANISOTROPIC,
  37089. FILTER_NEAREST_ANISOTROPIC,
  37090. FILTER_DEFAULT,
  37091. MAX_FILTERMODES,
  37092. };
  37093. enum TextureUnit
  37094. {
  37095. TU_DIFFUSE,
  37096. TU_ALBEDOBUFFER,
  37097. TU_NORMAL,
  37098. TU_NORMALBUFFER,
  37099. TU_SPECULAR,
  37100. TU_EMISSIVE,
  37101. TU_ENVIRONMENT,
  37102. TU_LIGHTRAMP,
  37103. TU_LIGHTSHAPE,
  37104. TU_SHADOWMAP,
  37105. TU_VOLUMEMAP,
  37106. TU_CUSTOM1,
  37107. TU_CUSTOM2,
  37108. TU_FACESELECT,
  37109. TU_INDIRECTION,
  37110. TU_DEPTHBUFFER,
  37111. TU_LIGHTBUFFER,
  37112. TU_ZONE,
  37113. MAX_MATERIAL_TEXTURE_UNITS,
  37114. MAX_TEXTURE_UNITS,
  37115. };
  37116. enum TextureUsage
  37117. {
  37118. TEXTURE_STATIC,
  37119. TEXTURE_DYNAMIC,
  37120. TEXTURE_RENDERTARGET,
  37121. TEXTURE_DEPTHSTENCIL,
  37122. };
  37123. enum TileMapLayerType2D
  37124. {
  37125. LT_TILE_LAYER,
  37126. LT_OBJECT_GROUP,
  37127. LT_IMAGE_LAYER,
  37128. LT_INVALID,
  37129. };
  37130. enum TileMapObjectType2D
  37131. {
  37132. OT_RECTANGLE,
  37133. OT_ELLIPSE,
  37134. OT_POLYGON,
  37135. OT_POLYLINE,
  37136. OT_TILE,
  37137. OT_INVALID,
  37138. };
  37139. enum TrailType
  37140. {
  37141. TT_FACE_CAMERA,
  37142. TT_BONE,
  37143. };
  37144. enum TransformSpace
  37145. {
  37146. TS_LOCAL,
  37147. TS_PARENT,
  37148. TS_WORLD,
  37149. };
  37150. enum TraversalMode
  37151. {
  37152. TM_BREADTH_FIRST,
  37153. TM_DEPTH_FIRST,
  37154. };
  37155. enum UpdateGeometryType
  37156. {
  37157. UPDATE_NONE,
  37158. UPDATE_MAIN_THREAD,
  37159. UPDATE_WORKER_THREAD,
  37160. };
  37161. enum VariantType
  37162. {
  37163. VAR_NONE,
  37164. VAR_INT,
  37165. VAR_BOOL,
  37166. VAR_FLOAT,
  37167. VAR_VECTOR2,
  37168. VAR_VECTOR3,
  37169. VAR_VECTOR4,
  37170. VAR_QUATERNION,
  37171. VAR_COLOR,
  37172. VAR_STRING,
  37173. VAR_BUFFER,
  37174. VAR_VOIDPTR,
  37175. VAR_RESOURCEREF,
  37176. VAR_RESOURCEREFLIST,
  37177. VAR_VARIANTVECTOR,
  37178. VAR_VARIANTMAP,
  37179. VAR_INTRECT,
  37180. VAR_INTVECTOR2,
  37181. VAR_PTR,
  37182. VAR_MATRIX3,
  37183. VAR_MATRIX3X4,
  37184. VAR_MATRIX4,
  37185. VAR_DOUBLE,
  37186. VAR_STRINGVECTOR,
  37187. VAR_RECT,
  37188. VAR_INTVECTOR3,
  37189. VAR_INT64,
  37190. VAR_CUSTOM_HEAP,
  37191. VAR_CUSTOM_STACK,
  37192. MAX_VAR_TYPES,
  37193. };
  37194. enum VertexElementSemantic
  37195. {
  37196. SEM_POSITION,
  37197. SEM_NORMAL,
  37198. SEM_BINORMAL,
  37199. SEM_TANGENT,
  37200. SEM_TEXCOORD,
  37201. SEM_COLOR,
  37202. SEM_BLENDWEIGHTS,
  37203. SEM_BLENDINDICES,
  37204. SEM_OBJECTINDEX,
  37205. MAX_VERTEX_ELEMENT_SEMANTICS,
  37206. };
  37207. enum VertexElementType
  37208. {
  37209. TYPE_INT,
  37210. TYPE_FLOAT,
  37211. TYPE_VECTOR2,
  37212. TYPE_VECTOR3,
  37213. TYPE_VECTOR4,
  37214. TYPE_UBYTE4,
  37215. TYPE_UBYTE4_NORM,
  37216. MAX_VERTEX_ELEMENT_TYPES,
  37217. };
  37218. enum VertexLightVSVariation
  37219. {
  37220. VLVS_NOLIGHTS,
  37221. VLVS_1LIGHT,
  37222. VLVS_2LIGHTS,
  37223. VLVS_3LIGHTS,
  37224. VLVS_4LIGHTS,
  37225. MAX_VERTEXLIGHT_VS_VARIATIONS,
  37226. };
  37227. enum VerticalAlignment
  37228. {
  37229. VA_TOP,
  37230. VA_CENTER,
  37231. VA_BOTTOM,
  37232. VA_CUSTOM,
  37233. };
  37234. enum WindowDragMode
  37235. {
  37236. DRAG_NONE,
  37237. DRAG_MOVE,
  37238. DRAG_RESIZE_TOPLEFT,
  37239. DRAG_RESIZE_TOP,
  37240. DRAG_RESIZE_TOPRIGHT,
  37241. DRAG_RESIZE_RIGHT,
  37242. DRAG_RESIZE_BOTTOMRIGHT,
  37243. DRAG_RESIZE_BOTTOM,
  37244. DRAG_RESIZE_BOTTOMLEFT,
  37245. DRAG_RESIZE_LEFT,
  37246. };
  37247. enum WrapMode
  37248. {
  37249. WM_LOOP,
  37250. WM_ONCE,
  37251. WM_CLAMP,
  37252. };
  37253. // Global functions
  37254. float Abs(float);
  37255. float Acos(float);
  37256. String AddTrailingSlash(const String&);
  37257. float Asin(float);
  37258. float Atan(float);
  37259. float Atan2(float, float);
  37260. float Ceil(float);
  37261. int CeilToInt(float);
  37262. uint CheckMaxLevels(int, int, int, uint);
  37263. uint CheckMaxLevels(int, int, int, uint);
  37264. uint CheckMaxLevels(int, int, int, uint);
  37265. uint CheckMaxLevels(int, int, int, uint);
  37266. uint CheckMaxLevels(int, int, int, uint);
  37267. uint CheckMaxLevels(int, int, uint);
  37268. uint CheckMaxLevels(int, int, uint);
  37269. uint CheckMaxLevels(int, int, uint);
  37270. uint CheckMaxLevels(int, int, uint);
  37271. uint CheckMaxLevels(int, int, uint);
  37272. float Clamp(float, float, float);
  37273. int Clamp(int, int, int);
  37274. void ClearDelayedExecute(const String& declaration = String ( ));
  37275. uint ClosestPowerOfTwo(uint);
  37276. void CombineHash(uint&, uint);
  37277. bool CompareDrawables(Drawable, Drawable);
  37278. bool CompareLights(Light, Light);
  37279. bool CompressStream(Serializer&, Deserializer&);
  37280. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  37281. float ConvertGammaToLinear(float);
  37282. float ConvertLinearToGamma(float);
  37283. float Cos(float);
  37284. uint CountSetBits(uint);
  37285. Object CreateObject(const String&);
  37286. bool DecompressStream(Serializer&, Deserializer&);
  37287. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  37288. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  37289. bool Equals(float, float);
  37290. void ErrorDialog(const String&, const String&);
  37291. void ErrorExit(const String& = String :: EMPTY, int = EXIT_FAILURE);
  37292. uint EstimateCompressBound(uint);
  37293. uint16 FloatToHalf(float);
  37294. uint FloatToRawIntBits(float);
  37295. float Floor(float);
  37296. int FloorToInt(float);
  37297. float Fract(float);
  37298. DBAPI GetAPI();
  37299. View GetActualView(View);
  37300. uint GetAlphaFormat();
  37301. Array<String> GetArguments();
  37302. String GetConsoleInput();
  37303. uint GetDepthStencilFormat();
  37304. uint GetElementOffset(Array<VertexElement>, VertexElementType, VertexElementSemantic, uint8 = 0);
  37305. Array<VertexElement> GetElements(uint);
  37306. StringHashRegister& GetEventNameRegister();
  37307. Object GetEventSender();
  37308. String GetExtension(const String&, bool = true);
  37309. String GetFileName(const String&);
  37310. String GetFileNameAndExtension(const String&, bool = false);
  37311. String GetFileSizeString(uint64);
  37312. uint GetFloat16Format();
  37313. uint GetFloat32Format();
  37314. uint GetFormat(const String&);
  37315. int64 GetFrequency();
  37316. Matrix3x4 GetFullscreenQuadTransform(Camera);
  37317. bool GetGL3Support();
  37318. Variant GetGlobalVar(const String&);
  37319. String GetHostName();
  37320. String GetInternalPath(const String&);
  37321. uint GetLinearDepthFormat();
  37322. String GetLoginName();
  37323. uint GetLuminanceAlphaFormat();
  37324. uint GetLuminanceFormat();
  37325. uint GetMaxBones();
  37326. String GetMiniDumpDir();
  37327. String GetNativePath(const String&);
  37328. uint GetNumLogicalCPUs();
  37329. uint GetNumPhysicalCPUs();
  37330. JSONNumberType GetNumberTypeFromName(const String&);
  37331. String GetNumberTypeName(JSONNumberType);
  37332. String GetOSVersion();
  37333. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  37334. Array<String> GetObjectCategories();
  37335. Array<String> GetObjectsByCategory(const String&);
  37336. String GetParentPath(const String&);
  37337. uint GetPassIndex(const String&);
  37338. String GetPath(const String&);
  37339. String GetPlatform();
  37340. uint GetRG16Format();
  37341. uint GetRGBA16Format();
  37342. uint GetRGBAFloat16Format();
  37343. uint GetRGBAFloat32Format();
  37344. uint GetRGBAFormat();
  37345. uint GetRGBFormat();
  37346. uint GetRGFloat16Format();
  37347. uint GetRGFloat32Format();
  37348. uint GetRandomSeed();
  37349. uint GetReadableDepthFormat();
  37350. ResourceRef GetResourceRef(Resource, StringHash);
  37351. StringHash GetResourceType(Resource, StringHash);
  37352. uint GetSystemTime();
  37353. String GetTextureUnitName(TextureUnit);
  37354. uint GetTimeSinceEpoch();
  37355. String GetTimeStamp();
  37356. uint64 GetTotalMemory();
  37357. VariantType GetTypeFromName(const String&);
  37358. String GetTypeName(VariantType);
  37359. JSONValueType GetValueTypeFromName(const String&);
  37360. String GetValueTypeName(JSONValueType);
  37361. VariantType GetVariantTypeFromName(const String&);
  37362. String GetVariantTypeName(VariantType);
  37363. uint GetVertexSize(Array<VertexElement>);
  37364. uint GetVertexSize(uint);
  37365. float HalfToFloat(uint16);
  37366. bool HasElement(Array<VertexElement>, VertexElementType, VertexElementSemantic, uint8 = 0);
  37367. bool HasParameter(const VariantMap&, const String&);
  37368. bool HasSubscribedToEvent(Object, const String&);
  37369. bool HasSubscribedToEvent(const String&);
  37370. void InitFPU();
  37371. float InverseLerp(float, float, float);
  37372. bool IsAbsolutePath(const String&);
  37373. bool IsActive();
  37374. bool IsAlpha(uint);
  37375. bool IsDigit(uint);
  37376. bool IsMainThread();
  37377. bool IsMainThread();
  37378. bool IsNaN(double);
  37379. bool IsNaN(float);
  37380. bool IsPowerOfTwo(uint);
  37381. bool IsReplicatedID(uint);
  37382. bool IsSupported();
  37383. String Join(Array<String>&, const String& glue);
  37384. float Lerp(float, float, float);
  37385. float Ln(float);
  37386. Sprite2D LoadFromResourceRef(Object, const ResourceRef&);
  37387. void LoadShaders(Graphics, Deserializer&);
  37388. uint LogBaseTwo(uint);
  37389. void MarkNetworkUpdate();
  37390. float Max(float, float);
  37391. int Max(int, int);
  37392. float Min(float, float);
  37393. int Min(int, int);
  37394. float Mod(float, float);
  37395. uint NextPowerOfTwo(uint);
  37396. void OpenConsoleWindow();
  37397. Array<String> ParseArguments(const String&, bool = true);
  37398. VariantMap ParseParameters(Array<String>);
  37399. Variant ParseShaderParameterValue(const String&);
  37400. float Pow(float, float);
  37401. void Print(bool, bool error = false);
  37402. void Print(const String&, bool error = false);
  37403. void Print(const Variant&, bool error = false);
  37404. void Print(float, bool error = false);
  37405. void Print(int, bool error = false);
  37406. void Print(int64, bool error = false);
  37407. void Print(uint, bool error = false);
  37408. void Print(uint64, bool error = false);
  37409. void PrintCallStack(bool error = false);
  37410. void PrintLine(const String&, bool = false);
  37411. void PrintUnicode(const String&, bool = false);
  37412. void PrintUnicodeLine(const String&, bool = false);
  37413. int Rand();
  37414. float RandStandardNormal();
  37415. float Random();
  37416. float Random(float);
  37417. float Random(float, float);
  37418. int Random(int);
  37419. int Random(int, int);
  37420. int RandomInt();
  37421. int RandomInt(int);
  37422. int RandomInt(int, int);
  37423. float RandomNormal(float, float);
  37424. void RegisterEventName(const String&);
  37425. void Remove();
  37426. String RemoveTrailingSlash(const String&);
  37427. String ReplaceExtension(const String&, const String&);
  37428. float Round(float);
  37429. int RoundToInt(float);
  37430. uint SDBMHash(uint, uint8);
  37431. ResourceRef SaveToResourceRef(Sprite2D);
  37432. void SendEvent(const String&, VariantMap& eventData = VariantMap ( ));
  37433. void SetActive(bool);
  37434. void SetGlobalVar(const String&, Variant&);
  37435. void SetMainThread();
  37436. void SetMainThread();
  37437. void SetMiniDumpDir(const String&);
  37438. void SetRandomSeed(uint);
  37439. float Sign(float);
  37440. float Sin(float);
  37441. void SinCos(float, float&, float&);
  37442. void Sleep(uint);
  37443. float SmoothStep(float, float, float);
  37444. void SplitPath(const String&, String&, String&, String&, bool = true);
  37445. float Sqrt(float);
  37446. float StableRandom(const Vector2&);
  37447. float StableRandom(const Vector3&);
  37448. float StableRandom(float);
  37449. const String& GetResourceName(Resource);
  37450. const String& GetTypeName(StringHash);
  37451. void SubscribeToEvent(Object, const String&, const String&);
  37452. void SubscribeToEvent(const String&, const String&);
  37453. float Tan(float);
  37454. bool ToBool(const String&);
  37455. Color ToColor(const String&);
  37456. double ToDouble(const String&);
  37457. float ToFloat(const String&);
  37458. int ToInt(const String&, int = 10);
  37459. int64 ToInt64(const String&, int = 10);
  37460. IntRect ToIntRect(const String&);
  37461. IntVector2 ToIntVector2(const String&);
  37462. IntVector3 ToIntVector3(const String&);
  37463. uint ToLower(uint);
  37464. Matrix3 ToMatrix3(const String&);
  37465. Matrix3x4 ToMatrix3x4(const String&);
  37466. Matrix4 ToMatrix4(const String&);
  37467. Quaternion ToQuaternion(const String&);
  37468. Rect ToRect(const String&);
  37469. String ToStringHex(uint);
  37470. uint ToUInt(const String&, int = 10);
  37471. uint64 ToUInt64(const String&, int = 10);
  37472. uint ToUpper(uint);
  37473. Vector2 ToVector2(const String&);
  37474. Vector3 ToVector3(const String&);
  37475. Vector4 ToVector4(const String&, bool = false);
  37476. Variant ToVectorVariant(const String&);
  37477. void UnsubscribeFromAllEvents();
  37478. void UnsubscribeFromAllEventsExcept(Array<String>);
  37479. void UnsubscribeFromEvent(Object, const String&);
  37480. void UnsubscribeFromEvent(const String&);
  37481. void UnsubscribeFromEvents(Object);
  37482. const Variant& GetParameter(const VariantMap&, const String&, const Variant& = Variant :: EMPTY);
  37483. const Vector2& GetPixelUVOffset();
  37484. IntVector2 VectorAbs(const IntVector2&);
  37485. IntVector3 VectorAbs(const IntVector3&);
  37486. Vector2 VectorAbs(const Vector2&);
  37487. Vector3 VectorAbs(const Vector3&);
  37488. Vector2 VectorCeil(const Vector2&);
  37489. Vector3 VectorCeil(const Vector3&);
  37490. Vector4 VectorCeil(const Vector4&);
  37491. IntVector2 VectorCeilToInt(const Vector2&);
  37492. IntVector3 VectorCeilToInt(const Vector3&);
  37493. Vector2 VectorFloor(const Vector2&);
  37494. Vector3 VectorFloor(const Vector3&);
  37495. Vector4 VectorFloor(const Vector4&);
  37496. IntVector2 VectorFloorToInt(const Vector2&);
  37497. IntVector3 VectorFloorToInt(const Vector3&);
  37498. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  37499. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  37500. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  37501. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  37502. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  37503. Vector2 VectorMax(const Vector2&, const Vector2&);
  37504. Vector3 VectorMax(const Vector3&, const Vector3&);
  37505. Vector4 VectorMax(const Vector4&, const Vector4&);
  37506. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  37507. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  37508. Vector2 VectorMin(const Vector2&, const Vector2&);
  37509. Vector3 VectorMin(const Vector3&, const Vector3&);
  37510. Vector4 VectorMin(const Vector4&, const Vector4&);
  37511. Vector2 VectorRound(const Vector2&);
  37512. Vector3 VectorRound(const Vector3&);
  37513. Vector4 VectorRound(const Vector4&);
  37514. IntVector2 VectorRoundToInt(const Vector2&);
  37515. IntVector3 VectorRoundToInt(const Vector3&);
  37516. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  37517. void WriteRaw(const String&, bool = false);
  37518. // Global properties
  37519. DBAPI DBAPI;
  37520. Audio audio;
  37521. ResourceCache cache;
  37522. Console console;
  37523. Database database;
  37524. DebugHud debugHud;
  37525. DebugRenderer debugRenderer;
  37526. Engine engine;
  37527. FileSystem fileSystem;
  37528. VariantMap globalVars;
  37529. Graphics graphics;
  37530. Input input;
  37531. Localization localization;
  37532. Log log;
  37533. Network network;
  37534. Node node;
  37535. Octree octree;
  37536. PhysicsWorld physicsWorld;
  37537. PhysicsWorld2D physicsWorld2D;
  37538. Renderer renderer;
  37539. ResourceCache resourceCache;
  37540. Scene scene;
  37541. Script script;
  37542. ScriptFile scriptFile;
  37543. ScriptInstance self;
  37544. Time time;
  37545. UI ui;
  37546. // Global constants
  37547. float ANIMATION_LOD_BASESCALE;
  37548. int BITS_PER_COMPONENT;
  37549. uint8 BONECOLLISION_BOX;
  37550. uint8 BONECOLLISION_NONE;
  37551. uint8 BONECOLLISION_SPHERE;
  37552. uint8 CHANNEL_NONE;
  37553. uint8 CHANNEL_POSITION;
  37554. uint8 CHANNEL_ROTATION;
  37555. uint8 CHANNEL_SCALE;
  37556. uint CLEAR_COLOR;
  37557. uint CLEAR_DEPTH;
  37558. uint CLEAR_STENCIL;
  37559. int COLOR_LUT_SIZE;
  37560. uint CONTROLLER_AXIS_LEFTX;
  37561. uint CONTROLLER_AXIS_LEFTY;
  37562. uint CONTROLLER_AXIS_RIGHTX;
  37563. uint CONTROLLER_AXIS_RIGHTY;
  37564. uint CONTROLLER_AXIS_TRIGGERLEFT;
  37565. uint CONTROLLER_AXIS_TRIGGERRIGHT;
  37566. uint CONTROLLER_BUTTON_A;
  37567. uint CONTROLLER_BUTTON_B;
  37568. uint CONTROLLER_BUTTON_BACK;
  37569. uint CONTROLLER_BUTTON_DPAD_DOWN;
  37570. uint CONTROLLER_BUTTON_DPAD_LEFT;
  37571. uint CONTROLLER_BUTTON_DPAD_RIGHT;
  37572. uint CONTROLLER_BUTTON_DPAD_UP;
  37573. uint CONTROLLER_BUTTON_GUIDE;
  37574. uint CONTROLLER_BUTTON_LEFTSHOULDER;
  37575. uint CONTROLLER_BUTTON_LEFTSTICK;
  37576. uint CONTROLLER_BUTTON_RIGHTSHOULDER;
  37577. uint CONTROLLER_BUTTON_RIGHTSTICK;
  37578. uint CONTROLLER_BUTTON_START;
  37579. uint CONTROLLER_BUTTON_X;
  37580. uint CONTROLLER_BUTTON_Y;
  37581. uint CONTROLS_CONTENT_ID;
  37582. int CONVERSION_BUFFER_LENGTH;
  37583. uint DD_DISABLED;
  37584. uint DD_SOURCE;
  37585. uint DD_SOURCE_AND_TARGET;
  37586. uint DD_TARGET;
  37587. uint DEBUGHUD_SHOW_ALL;
  37588. uint DEBUGHUD_SHOW_EVENTPROFILER;
  37589. uint DEBUGHUD_SHOW_MEMORY;
  37590. uint DEBUGHUD_SHOW_MODE;
  37591. uint DEBUGHUD_SHOW_NONE;
  37592. uint DEBUGHUD_SHOW_PROFILER;
  37593. uint DEBUGHUD_SHOW_STATS;
  37594. float DEFAULT_CAMERA_FOV;
  37595. float DEFAULT_FARCLIP;
  37596. float DEFAULT_FONT_SIZE;
  37597. int DEFAULT_FPS;
  37598. uint DEFAULT_LIGHTMASK;
  37599. float DEFAULT_MAX_NETWORK_ANGULAR_VELOCITY;
  37600. float DEFAULT_NEARCLIP;
  37601. uint DEFAULT_NUM_PARTICLES;
  37602. float DEFAULT_ORTHOSIZE;
  37603. uint8 DEFAULT_RENDER_ORDER;
  37604. uint DEFAULT_SHADOWMASK;
  37605. uint DEFAULT_VIEWMASK;
  37606. uint DEFAULT_ZONEMASK;
  37607. Vector3 DOT_SCALE;
  37608. uint DRAWABLE_ANY;
  37609. uint DRAWABLE_GEOMETRY;
  37610. uint DRAWABLE_GEOMETRY2D;
  37611. uint DRAWABLE_LIGHT;
  37612. uint DRAWABLE_UNDEFINED;
  37613. uint DRAWABLE_ZONE;
  37614. String EP_AUTOLOAD_PATHS;
  37615. String EP_BORDERLESS;
  37616. String EP_DUMP_SHADERS;
  37617. String EP_EVENT_PROFILER;
  37618. String EP_EXTERNAL_WINDOW;
  37619. String EP_FLUSH_GPU;
  37620. String EP_FORCE_GL2;
  37621. String EP_FRAME_LIMITER;
  37622. String EP_FULL_SCREEN;
  37623. String EP_HEADLESS;
  37624. String EP_HIGH_DPI;
  37625. String EP_LOG_LEVEL;
  37626. String EP_LOG_NAME;
  37627. String EP_LOG_QUIET;
  37628. String EP_LOW_QUALITY_SHADOWS;
  37629. String EP_MATERIAL_QUALITY;
  37630. String EP_MONITOR;
  37631. String EP_MULTI_SAMPLE;
  37632. String EP_ORIENTATIONS;
  37633. String EP_PACKAGE_CACHE_DIR;
  37634. String EP_REFRESH_RATE;
  37635. String EP_RENDER_PATH;
  37636. String EP_RESOURCE_PACKAGES;
  37637. String EP_RESOURCE_PATHS;
  37638. String EP_RESOURCE_PREFIX_PATHS;
  37639. String EP_SHADER_CACHE_DIR;
  37640. String EP_SHADOWS;
  37641. String EP_SOUND;
  37642. String EP_SOUND_BUFFER;
  37643. String EP_SOUND_INTERPOLATION;
  37644. String EP_SOUND_MIX_RATE;
  37645. String EP_SOUND_STEREO;
  37646. String EP_TEXTURE_ANISOTROPY;
  37647. String EP_TEXTURE_FILTER_MODE;
  37648. String EP_TEXTURE_QUALITY;
  37649. String EP_TIME_OUT;
  37650. String EP_TOUCH_EMULATION;
  37651. String EP_TRIPLE_BUFFER;
  37652. String EP_VSYNC;
  37653. String EP_WINDOW_HEIGHT;
  37654. String EP_WINDOW_ICON;
  37655. String EP_WINDOW_POSITION_X;
  37656. String EP_WINDOW_POSITION_Y;
  37657. String EP_WINDOW_RESIZABLE;
  37658. String EP_WINDOW_TITLE;
  37659. String EP_WINDOW_WIDTH;
  37660. String EP_WORKER_THREADS;
  37661. uint FIRST_LOCAL_ID;
  37662. uint FIRST_REPLICATED_ID;
  37663. uint FLIP_ALL;
  37664. uint FLIP_DIAGONAL;
  37665. uint FLIP_HORIZONTAL;
  37666. uint FLIP_RESERVED;
  37667. uint FLIP_VERTICAL;
  37668. int FONT_DPI;
  37669. int FONT_TEXTURE_MIN_SIZE;
  37670. uint HAT_CENTER;
  37671. uint HAT_DOWN;
  37672. uint HAT_LEFT;
  37673. uint HAT_RIGHT;
  37674. uint HAT_UP;
  37675. int INSTANCING_BUFFER_DEFAULT_SIZE;
  37676. uint KEY_0;
  37677. uint KEY_1;
  37678. uint KEY_2;
  37679. uint KEY_3;
  37680. uint KEY_4;
  37681. uint KEY_5;
  37682. uint KEY_6;
  37683. uint KEY_7;
  37684. uint KEY_8;
  37685. uint KEY_9;
  37686. uint KEY_A;
  37687. uint KEY_AC_BACK;
  37688. uint KEY_AC_BOOKMARKS;
  37689. uint KEY_AC_FORWARD;
  37690. uint KEY_AC_HOME;
  37691. uint KEY_AC_REFRESH;
  37692. uint KEY_AC_SEARCH;
  37693. uint KEY_AC_STOP;
  37694. uint KEY_AGAIN;
  37695. uint KEY_ALT;
  37696. uint KEY_ALTERASE;
  37697. uint KEY_AMPERSAND;
  37698. uint KEY_APPLICATION;
  37699. uint KEY_ASTERISK;
  37700. uint KEY_AT;
  37701. uint KEY_AUDIOMUTE;
  37702. uint KEY_AUDIONEXT;
  37703. uint KEY_AUDIOPLAY;
  37704. uint KEY_AUDIOPREV;
  37705. uint KEY_AUDIOSTOP;
  37706. uint KEY_B;
  37707. uint KEY_BACKQUOTE;
  37708. uint KEY_BACKSLASH;
  37709. uint KEY_BACKSPACE;
  37710. uint KEY_BRIGHTNESSDOWN;
  37711. uint KEY_BRIGHTNESSUP;
  37712. uint KEY_C;
  37713. uint KEY_CALCULATOR;
  37714. uint KEY_CANCEL;
  37715. uint KEY_CAPSLOCK;
  37716. uint KEY_CARET;
  37717. uint KEY_CLEAR;
  37718. uint KEY_CLEARAGAIN;
  37719. uint KEY_COLON;
  37720. uint KEY_COMMA;
  37721. uint KEY_COMPUTER;
  37722. uint KEY_COPY;
  37723. uint KEY_CRSEL;
  37724. uint KEY_CTRL;
  37725. uint KEY_CURRENCYSUBUNIT;
  37726. uint KEY_CURRENCYUNIT;
  37727. uint KEY_CUT;
  37728. uint KEY_D;
  37729. uint KEY_DECIMALSEPARATOR;
  37730. uint KEY_DELETE;
  37731. uint KEY_DISPLAYSWITCH;
  37732. uint KEY_DOLLAR;
  37733. uint KEY_DOWN;
  37734. uint KEY_E;
  37735. uint KEY_EJECT;
  37736. uint KEY_END;
  37737. uint KEY_EQUALS;
  37738. uint KEY_ESCAPE;
  37739. uint KEY_EXCLAIM;
  37740. uint KEY_EXSEL;
  37741. uint KEY_F;
  37742. uint KEY_F1;
  37743. uint KEY_F10;
  37744. uint KEY_F11;
  37745. uint KEY_F12;
  37746. uint KEY_F13;
  37747. uint KEY_F14;
  37748. uint KEY_F15;
  37749. uint KEY_F16;
  37750. uint KEY_F17;
  37751. uint KEY_F18;
  37752. uint KEY_F19;
  37753. uint KEY_F2;
  37754. uint KEY_F20;
  37755. uint KEY_F21;
  37756. uint KEY_F22;
  37757. uint KEY_F23;
  37758. uint KEY_F24;
  37759. uint KEY_F3;
  37760. uint KEY_F4;
  37761. uint KEY_F5;
  37762. uint KEY_F6;
  37763. uint KEY_F7;
  37764. uint KEY_F8;
  37765. uint KEY_F9;
  37766. uint KEY_FIND;
  37767. uint KEY_G;
  37768. uint KEY_GREATER;
  37769. uint KEY_GUI;
  37770. uint KEY_H;
  37771. uint KEY_HASH;
  37772. uint KEY_HELP;
  37773. uint KEY_HOME;
  37774. uint KEY_I;
  37775. uint KEY_INSERT;
  37776. uint KEY_J;
  37777. uint KEY_K;
  37778. uint KEY_KBDILLUMDOWN;
  37779. uint KEY_KBDILLUMTOGGLE;
  37780. uint KEY_KBDILLUMUP;
  37781. uint KEY_KP_0;
  37782. uint KEY_KP_00;
  37783. uint KEY_KP_000;
  37784. uint KEY_KP_1;
  37785. uint KEY_KP_2;
  37786. uint KEY_KP_3;
  37787. uint KEY_KP_4;
  37788. uint KEY_KP_5;
  37789. uint KEY_KP_6;
  37790. uint KEY_KP_7;
  37791. uint KEY_KP_8;
  37792. uint KEY_KP_9;
  37793. uint KEY_KP_A;
  37794. uint KEY_KP_AMPERSAND;
  37795. uint KEY_KP_AT;
  37796. uint KEY_KP_B;
  37797. uint KEY_KP_BACKSPACE;
  37798. uint KEY_KP_BINARY;
  37799. uint KEY_KP_C;
  37800. uint KEY_KP_CLEAR;
  37801. uint KEY_KP_CLEARENTRY;
  37802. uint KEY_KP_COLON;
  37803. uint KEY_KP_COMMA;
  37804. uint KEY_KP_D;
  37805. uint KEY_KP_DBLAMPERSAND;
  37806. uint KEY_KP_DBLVERTICALBAR;
  37807. uint KEY_KP_DECIMAL;
  37808. uint KEY_KP_DIVIDE;
  37809. uint KEY_KP_E;
  37810. uint KEY_KP_ENTER;
  37811. uint KEY_KP_EQUALS;
  37812. uint KEY_KP_EQUALSAS400;
  37813. uint KEY_KP_EXCLAM;
  37814. uint KEY_KP_F;
  37815. uint KEY_KP_GREATER;
  37816. uint KEY_KP_HASH;
  37817. uint KEY_KP_HEXADECIMAL;
  37818. uint KEY_KP_LEFTBRACE;
  37819. uint KEY_KP_LEFTPAREN;
  37820. uint KEY_KP_LESS;
  37821. uint KEY_KP_MEMADD;
  37822. uint KEY_KP_MEMCLEAR;
  37823. uint KEY_KP_MEMDIVIDE;
  37824. uint KEY_KP_MEMMULTIPLY;
  37825. uint KEY_KP_MEMRECALL;
  37826. uint KEY_KP_MEMSTORE;
  37827. uint KEY_KP_MEMSUBTRACT;
  37828. uint KEY_KP_MINUS;
  37829. uint KEY_KP_MULTIPLY;
  37830. uint KEY_KP_OCTAL;
  37831. uint KEY_KP_PERCENT;
  37832. uint KEY_KP_PERIOD;
  37833. uint KEY_KP_PLUS;
  37834. uint KEY_KP_PLUSMINUS;
  37835. uint KEY_KP_POWER;
  37836. uint KEY_KP_RIGHTBRACE;
  37837. uint KEY_KP_RIGHTPAREN;
  37838. uint KEY_KP_SPACE;
  37839. uint KEY_KP_TAB;
  37840. uint KEY_KP_VERTICALBAR;
  37841. uint KEY_KP_XOR;
  37842. uint KEY_L;
  37843. uint KEY_LALT;
  37844. uint KEY_LCTRL;
  37845. uint KEY_LEFT;
  37846. uint KEY_LEFTBRACKET;
  37847. uint KEY_LEFTPAREN;
  37848. uint KEY_LESS;
  37849. uint KEY_LGUI;
  37850. uint KEY_LSHIFT;
  37851. uint KEY_M;
  37852. uint KEY_MAIL;
  37853. uint KEY_MEDIASELECT;
  37854. uint KEY_MENU;
  37855. uint KEY_MINUS;
  37856. uint KEY_MODE;
  37857. uint KEY_MUTE;
  37858. uint KEY_N;
  37859. uint KEY_NUMLOCKCLEAR;
  37860. uint KEY_O;
  37861. uint KEY_OPER;
  37862. uint KEY_OUT;
  37863. uint KEY_P;
  37864. uint KEY_PAGEDOWN;
  37865. uint KEY_PAGEUP;
  37866. uint KEY_PASTE;
  37867. uint KEY_PAUSE;
  37868. uint KEY_PERCENT;
  37869. uint KEY_PERIOD;
  37870. uint KEY_PLUS;
  37871. uint KEY_POWER;
  37872. uint KEY_PRINTSCREEN;
  37873. uint KEY_PRIOR;
  37874. uint KEY_Q;
  37875. uint KEY_QUESTION;
  37876. uint KEY_QUOTE;
  37877. uint KEY_QUOTEDBL;
  37878. uint KEY_R;
  37879. uint KEY_RALT;
  37880. uint KEY_RCTRL;
  37881. uint KEY_RETURN;
  37882. uint KEY_RETURN2;
  37883. uint KEY_RGUI;
  37884. uint KEY_RIGHT;
  37885. uint KEY_RIGHTBRACKET;
  37886. uint KEY_RIGHTPAREN;
  37887. uint KEY_RSHIFT;
  37888. uint KEY_S;
  37889. uint KEY_SCROLLLOCK;
  37890. uint KEY_SELECT;
  37891. uint KEY_SEMICOLON;
  37892. uint KEY_SEPARATOR;
  37893. uint KEY_SHIFT;
  37894. uint KEY_SLASH;
  37895. uint KEY_SLEEP;
  37896. uint KEY_SPACE;
  37897. uint KEY_STOP;
  37898. uint KEY_SYSREQ;
  37899. uint KEY_T;
  37900. uint KEY_TAB;
  37901. uint KEY_THOUSANDSSEPARATOR;
  37902. uint KEY_U;
  37903. uint KEY_UNDERSCORE;
  37904. uint KEY_UNDO;
  37905. uint KEY_UNKNOWN;
  37906. uint KEY_UP;
  37907. uint KEY_V;
  37908. uint KEY_VOLUMEDOWN;
  37909. uint KEY_VOLUMEUP;
  37910. uint KEY_W;
  37911. uint KEY_WWW;
  37912. uint KEY_X;
  37913. uint KEY_Y;
  37914. uint KEY_Z;
  37915. uint LAST_LOCAL_ID;
  37916. uint LAST_REPLICATED_ID;
  37917. int LOG_DEBUG;
  37918. int LOG_ERROR;
  37919. int LOG_INFO;
  37920. int LOG_NONE;
  37921. int LOG_RAW;
  37922. int LOG_TRACE;
  37923. int LOG_WARNING;
  37924. uint MASK_BLENDINDICES;
  37925. uint MASK_BLENDWEIGHTS;
  37926. uint MASK_COLOR;
  37927. uint MASK_CUBETEXCOORD1;
  37928. uint MASK_CUBETEXCOORD2;
  37929. uint MASK_INSTANCEMATRIX1;
  37930. uint MASK_INSTANCEMATRIX2;
  37931. uint MASK_INSTANCEMATRIX3;
  37932. uint MASK_NONE;
  37933. uint MASK_NORMAL;
  37934. uint MASK_OBJECTINDEX;
  37935. uint MASK_POSITION;
  37936. uint MASK_TANGENT;
  37937. uint MASK_TEXCOORD1;
  37938. uint MASK_TEXCOORD2;
  37939. int MATRIX_CONVERSION_BUFFER_LENGTH;
  37940. uint MAX_CASCADE_SPLITS;
  37941. int MAX_CONSTANT_REGISTERS;
  37942. int MAX_LIGHT_SPLITS;
  37943. uint MAX_NETWORK_ATTRIBUTES;
  37944. int MAX_RENDERTARGETS;
  37945. int MAX_TEXTURE_QUALITY_LEVELS;
  37946. int MAX_VERTEX_LIGHTS;
  37947. int MAX_VERTEX_STREAMS;
  37948. uint MAX_VIEWPORT_TEXTURES;
  37949. uint MOUSEB_ANY;
  37950. uint MOUSEB_LEFT;
  37951. uint MOUSEB_MIDDLE;
  37952. uint MOUSEB_NONE;
  37953. uint MOUSEB_RIGHT;
  37954. uint MOUSEB_X1;
  37955. uint MOUSEB_X2;
  37956. IntVector2 MOUSE_POSITION_OFFSCREEN;
  37957. int MSG_COMPONENTDELTAUPDATE;
  37958. int MSG_COMPONENTLATESTDATA;
  37959. int MSG_CONTROLS;
  37960. int MSG_CREATECOMPONENT;
  37961. int MSG_CREATENODE;
  37962. int MSG_IDENTITY;
  37963. int MSG_LOADSCENE;
  37964. int MSG_NODEDELTAUPDATE;
  37965. int MSG_NODELATESTDATA;
  37966. int MSG_PACKAGEDATA;
  37967. int MSG_PACKAGEINFO;
  37968. int MSG_PACKED_MESSAGE;
  37969. int MSG_REMOTEEVENT;
  37970. int MSG_REMOTENODEEVENT;
  37971. int MSG_REMOVECOMPONENT;
  37972. int MSG_REMOVENODE;
  37973. int MSG_REQUESTPACKAGE;
  37974. int MSG_SCENECHECKSUMERROR;
  37975. int MSG_SCENELOADED;
  37976. int MSG_USER;
  37977. float M_DEGTORAD;
  37978. float M_DEGTORAD_2;
  37979. float M_EPSILON;
  37980. float M_HALF_PI;
  37981. float M_INFINITY;
  37982. float M_LARGE_EPSILON;
  37983. float M_LARGE_VALUE;
  37984. float M_MAX_FOV;
  37985. int M_MAX_INT;
  37986. uint M_MAX_UNSIGNED;
  37987. int M_MIN_INT;
  37988. float M_MIN_NEARCLIP;
  37989. uint M_MIN_UNSIGNED;
  37990. float M_PI;
  37991. float M_RADTODEG;
  37992. uint NUM_FRUSTUM_PLANES;
  37993. uint NUM_FRUSTUM_VERTICES;
  37994. int NUM_OCTANTS;
  37995. int OCCLUSION_DEFAULT_MAX_TRIANGLES;
  37996. int OCCLUSION_FIXED_BIAS;
  37997. int OCCLUSION_MIN_SIZE;
  37998. float OCCLUSION_RELATIVE_BIAS;
  37999. float OCCLUSION_X_SCALE;
  38000. float OCCLUSION_Z_SCALE;
  38001. uint PACKAGE_FRAGMENT_SIZE;
  38002. float PIXEL_SIZE;
  38003. uint PRIORITY_LAST;
  38004. StringHash PSP_AMBIENTCOLOR;
  38005. StringHash PSP_CAMERAPOS;
  38006. StringHash PSP_DELTATIME;
  38007. StringHash PSP_DEPTHRECONSTRUCT;
  38008. StringHash PSP_ELAPSEDTIME;
  38009. StringHash PSP_FARCLIP;
  38010. StringHash PSP_FOGCOLOR;
  38011. StringHash PSP_FOGPARAMS;
  38012. StringHash PSP_GBUFFERINVSIZE;
  38013. StringHash PSP_LIGHTCOLOR;
  38014. StringHash PSP_LIGHTDIR;
  38015. StringHash PSP_LIGHTLENGTH;
  38016. StringHash PSP_LIGHTMATRICES;
  38017. StringHash PSP_LIGHTPOS;
  38018. StringHash PSP_LIGHTRAD;
  38019. StringHash PSP_MATDIFFCOLOR;
  38020. StringHash PSP_MATEMISSIVECOLOR;
  38021. StringHash PSP_MATENVMAPCOLOR;
  38022. StringHash PSP_MATSPECCOLOR;
  38023. StringHash PSP_METALLIC;
  38024. StringHash PSP_NEARCLIP;
  38025. StringHash PSP_NORMALOFFSETSCALE;
  38026. StringHash PSP_ROUGHNESS;
  38027. StringHash PSP_SHADOWCUBEADJUST;
  38028. StringHash PSP_SHADOWDEPTHFADE;
  38029. StringHash PSP_SHADOWINTENSITY;
  38030. StringHash PSP_SHADOWMAPINVSIZE;
  38031. StringHash PSP_SHADOWSPLITS;
  38032. StringHash PSP_VSMSHADOWPARAMS;
  38033. StringHash PSP_ZONEMAX;
  38034. StringHash PSP_ZONEMIN;
  38035. uint QUALITY_HIGH;
  38036. uint QUALITY_LOW;
  38037. uint QUALITY_MAX;
  38038. uint QUALITY_MEDIUM;
  38039. uint QUAL_ALT;
  38040. uint QUAL_ANY;
  38041. uint QUAL_CTRL;
  38042. uint QUAL_NONE;
  38043. uint QUAL_SHIFT;
  38044. int QUICKSORT_THRESHOLD;
  38045. uint ROOT_INDEX;
  38046. uint SCANCODE_0;
  38047. uint SCANCODE_1;
  38048. uint SCANCODE_2;
  38049. uint SCANCODE_3;
  38050. uint SCANCODE_4;
  38051. uint SCANCODE_5;
  38052. uint SCANCODE_6;
  38053. uint SCANCODE_7;
  38054. uint SCANCODE_8;
  38055. uint SCANCODE_9;
  38056. uint SCANCODE_A;
  38057. uint SCANCODE_AC_BACK;
  38058. uint SCANCODE_AC_BOOKMARKS;
  38059. uint SCANCODE_AC_FORWARD;
  38060. uint SCANCODE_AC_HOME;
  38061. uint SCANCODE_AC_REFRESH;
  38062. uint SCANCODE_AC_SEARCH;
  38063. uint SCANCODE_AC_STOP;
  38064. uint SCANCODE_AGAIN;
  38065. uint SCANCODE_ALT;
  38066. uint SCANCODE_ALTERASE;
  38067. uint SCANCODE_APOSTROPHE;
  38068. uint SCANCODE_APP1;
  38069. uint SCANCODE_APP2;
  38070. uint SCANCODE_APPLICATION;
  38071. uint SCANCODE_AUDIOMUTE;
  38072. uint SCANCODE_AUDIONEXT;
  38073. uint SCANCODE_AUDIOPLAY;
  38074. uint SCANCODE_AUDIOPREV;
  38075. uint SCANCODE_AUDIOSTOP;
  38076. uint SCANCODE_B;
  38077. uint SCANCODE_BACKSLASH;
  38078. uint SCANCODE_BACKSPACE;
  38079. uint SCANCODE_BRIGHTNESSDOWN;
  38080. uint SCANCODE_BRIGHTNESSUP;
  38081. uint SCANCODE_C;
  38082. uint SCANCODE_CALCULATOR;
  38083. uint SCANCODE_CANCEL;
  38084. uint SCANCODE_CAPSLOCK;
  38085. uint SCANCODE_CLEAR;
  38086. uint SCANCODE_CLEARAGAIN;
  38087. uint SCANCODE_COMMA;
  38088. uint SCANCODE_COMPUTER;
  38089. uint SCANCODE_COPY;
  38090. uint SCANCODE_CRSEL;
  38091. uint SCANCODE_CTRL;
  38092. uint SCANCODE_CURRENCYSUBUNIT;
  38093. uint SCANCODE_CURRENCYUNIT;
  38094. uint SCANCODE_CUT;
  38095. uint SCANCODE_D;
  38096. uint SCANCODE_DECIMALSEPARATOR;
  38097. uint SCANCODE_DELETE;
  38098. uint SCANCODE_DISPLAYSWITCH;
  38099. uint SCANCODE_DOWN;
  38100. uint SCANCODE_E;
  38101. uint SCANCODE_EJECT;
  38102. uint SCANCODE_END;
  38103. uint SCANCODE_EQUALS;
  38104. uint SCANCODE_ESCAPE;
  38105. uint SCANCODE_EXECUTE;
  38106. uint SCANCODE_EXSEL;
  38107. uint SCANCODE_F;
  38108. uint SCANCODE_F1;
  38109. uint SCANCODE_F10;
  38110. uint SCANCODE_F11;
  38111. uint SCANCODE_F12;
  38112. uint SCANCODE_F13;
  38113. uint SCANCODE_F14;
  38114. uint SCANCODE_F15;
  38115. uint SCANCODE_F16;
  38116. uint SCANCODE_F17;
  38117. uint SCANCODE_F18;
  38118. uint SCANCODE_F19;
  38119. uint SCANCODE_F2;
  38120. uint SCANCODE_F20;
  38121. uint SCANCODE_F21;
  38122. uint SCANCODE_F22;
  38123. uint SCANCODE_F23;
  38124. uint SCANCODE_F24;
  38125. uint SCANCODE_F3;
  38126. uint SCANCODE_F4;
  38127. uint SCANCODE_F5;
  38128. uint SCANCODE_F6;
  38129. uint SCANCODE_F7;
  38130. uint SCANCODE_F8;
  38131. uint SCANCODE_F9;
  38132. uint SCANCODE_FIND;
  38133. uint SCANCODE_G;
  38134. uint SCANCODE_GRAVE;
  38135. uint SCANCODE_GUI;
  38136. uint SCANCODE_H;
  38137. uint SCANCODE_HELP;
  38138. uint SCANCODE_HOME;
  38139. uint SCANCODE_I;
  38140. uint SCANCODE_INSERT;
  38141. uint SCANCODE_INTERNATIONAL1;
  38142. uint SCANCODE_INTERNATIONAL2;
  38143. uint SCANCODE_INTERNATIONAL3;
  38144. uint SCANCODE_INTERNATIONAL4;
  38145. uint SCANCODE_INTERNATIONAL5;
  38146. uint SCANCODE_INTERNATIONAL6;
  38147. uint SCANCODE_INTERNATIONAL7;
  38148. uint SCANCODE_INTERNATIONAL8;
  38149. uint SCANCODE_INTERNATIONAL9;
  38150. uint SCANCODE_J;
  38151. uint SCANCODE_K;
  38152. uint SCANCODE_KBDILLUMDOWN;
  38153. uint SCANCODE_KBDILLUMTOGGLE;
  38154. uint SCANCODE_KBDILLUMUP;
  38155. uint SCANCODE_KP_0;
  38156. uint SCANCODE_KP_00;
  38157. uint SCANCODE_KP_000;
  38158. uint SCANCODE_KP_1;
  38159. uint SCANCODE_KP_2;
  38160. uint SCANCODE_KP_3;
  38161. uint SCANCODE_KP_4;
  38162. uint SCANCODE_KP_5;
  38163. uint SCANCODE_KP_6;
  38164. uint SCANCODE_KP_7;
  38165. uint SCANCODE_KP_8;
  38166. uint SCANCODE_KP_9;
  38167. uint SCANCODE_KP_A;
  38168. uint SCANCODE_KP_AMPERSAND;
  38169. uint SCANCODE_KP_AT;
  38170. uint SCANCODE_KP_B;
  38171. uint SCANCODE_KP_BACKSPACE;
  38172. uint SCANCODE_KP_BINARY;
  38173. uint SCANCODE_KP_C;
  38174. uint SCANCODE_KP_CLEAR;
  38175. uint SCANCODE_KP_CLEARENTRY;
  38176. uint SCANCODE_KP_COLON;
  38177. uint SCANCODE_KP_COMMA;
  38178. uint SCANCODE_KP_D;
  38179. uint SCANCODE_KP_DBLAMPERSAND;
  38180. uint SCANCODE_KP_DBLVERTICALBAR;
  38181. uint SCANCODE_KP_DECIMAL;
  38182. uint SCANCODE_KP_DIVIDE;
  38183. uint SCANCODE_KP_E;
  38184. uint SCANCODE_KP_ENTER;
  38185. uint SCANCODE_KP_EQUALS;
  38186. uint SCANCODE_KP_EQUALSAS400;
  38187. uint SCANCODE_KP_EXCLAM;
  38188. uint SCANCODE_KP_F;
  38189. uint SCANCODE_KP_GREATER;
  38190. uint SCANCODE_KP_HASH;
  38191. uint SCANCODE_KP_HEXADECIMAL;
  38192. uint SCANCODE_KP_LEFTBRACE;
  38193. uint SCANCODE_KP_LEFTPAREN;
  38194. uint SCANCODE_KP_LESS;
  38195. uint SCANCODE_KP_MEMADD;
  38196. uint SCANCODE_KP_MEMCLEAR;
  38197. uint SCANCODE_KP_MEMDIVIDE;
  38198. uint SCANCODE_KP_MEMMULTIPLY;
  38199. uint SCANCODE_KP_MEMRECALL;
  38200. uint SCANCODE_KP_MEMSTORE;
  38201. uint SCANCODE_KP_MEMSUBTRACT;
  38202. uint SCANCODE_KP_MINUS;
  38203. uint SCANCODE_KP_MULTIPLY;
  38204. uint SCANCODE_KP_OCTAL;
  38205. uint SCANCODE_KP_PERCENT;
  38206. uint SCANCODE_KP_PERIOD;
  38207. uint SCANCODE_KP_PLUS;
  38208. uint SCANCODE_KP_PLUSMINUS;
  38209. uint SCANCODE_KP_POWER;
  38210. uint SCANCODE_KP_RIGHTBRACE;
  38211. uint SCANCODE_KP_RIGHTPAREN;
  38212. uint SCANCODE_KP_SPACE;
  38213. uint SCANCODE_KP_TAB;
  38214. uint SCANCODE_KP_VERTICALBAR;
  38215. uint SCANCODE_KP_XOR;
  38216. uint SCANCODE_L;
  38217. uint SCANCODE_LALT;
  38218. uint SCANCODE_LANG1;
  38219. uint SCANCODE_LANG2;
  38220. uint SCANCODE_LANG3;
  38221. uint SCANCODE_LANG4;
  38222. uint SCANCODE_LANG5;
  38223. uint SCANCODE_LANG6;
  38224. uint SCANCODE_LANG7;
  38225. uint SCANCODE_LANG8;
  38226. uint SCANCODE_LANG9;
  38227. uint SCANCODE_LCTRL;
  38228. uint SCANCODE_LEFT;
  38229. uint SCANCODE_LEFTBRACKET;
  38230. uint SCANCODE_LGUI;
  38231. uint SCANCODE_LSHIFT;
  38232. uint SCANCODE_M;
  38233. uint SCANCODE_MAIL;
  38234. uint SCANCODE_MEDIASELECT;
  38235. uint SCANCODE_MENU;
  38236. uint SCANCODE_MINUS;
  38237. uint SCANCODE_MODE;
  38238. uint SCANCODE_MUTE;
  38239. uint SCANCODE_N;
  38240. uint SCANCODE_NONUSBACKSLASH;
  38241. uint SCANCODE_NONUSHASH;
  38242. uint SCANCODE_NUMLOCKCLEAR;
  38243. uint SCANCODE_O;
  38244. uint SCANCODE_OPER;
  38245. uint SCANCODE_OUT;
  38246. uint SCANCODE_P;
  38247. uint SCANCODE_PAGEDOWN;
  38248. uint SCANCODE_PAGEUP;
  38249. uint SCANCODE_PASTE;
  38250. uint SCANCODE_PAUSE;
  38251. uint SCANCODE_PERIOD;
  38252. uint SCANCODE_POWER;
  38253. uint SCANCODE_PRINTSCREEN;
  38254. uint SCANCODE_PRIOR;
  38255. uint SCANCODE_Q;
  38256. uint SCANCODE_R;
  38257. uint SCANCODE_RALT;
  38258. uint SCANCODE_RCTRL;
  38259. uint SCANCODE_RETURN;
  38260. uint SCANCODE_RETURN2;
  38261. uint SCANCODE_RGUI;
  38262. uint SCANCODE_RIGHT;
  38263. uint SCANCODE_RIGHTBRACKET;
  38264. uint SCANCODE_RSHIFT;
  38265. uint SCANCODE_S;
  38266. uint SCANCODE_SCROLLLOCK;
  38267. uint SCANCODE_SELECT;
  38268. uint SCANCODE_SEMICOLON;
  38269. uint SCANCODE_SEPARATOR;
  38270. uint SCANCODE_SHIFT;
  38271. uint SCANCODE_SLASH;
  38272. uint SCANCODE_SLEEP;
  38273. uint SCANCODE_SPACE;
  38274. uint SCANCODE_STOP;
  38275. uint SCANCODE_SYSREQ;
  38276. uint SCANCODE_T;
  38277. uint SCANCODE_TAB;
  38278. uint SCANCODE_THOUSANDSSEPARATOR;
  38279. uint SCANCODE_U;
  38280. uint SCANCODE_UNDO;
  38281. uint SCANCODE_UNKNOWN;
  38282. uint SCANCODE_UP;
  38283. uint SCANCODE_V;
  38284. uint SCANCODE_VOLUMEDOWN;
  38285. uint SCANCODE_VOLUMEUP;
  38286. uint SCANCODE_W;
  38287. uint SCANCODE_WWW;
  38288. uint SCANCODE_X;
  38289. uint SCANCODE_Y;
  38290. uint SCANCODE_Z;
  38291. uint SCAN_DIRS;
  38292. uint SCAN_FILES;
  38293. uint SCAN_HIDDEN;
  38294. int SHADOW_MIN_PIXELS;
  38295. float SHADOW_MIN_QUANTIZE;
  38296. float SHADOW_MIN_VIEW;
  38297. uint SMOOTH_NONE;
  38298. uint SMOOTH_POSITION;
  38299. uint SMOOTH_ROTATION;
  38300. String SOUND_AMBIENT;
  38301. String SOUND_EFFECT;
  38302. String SOUND_MASTER;
  38303. String SOUND_MUSIC;
  38304. String SOUND_VOICE;
  38305. int STREAM_BUFFER_LENGTH;
  38306. uint UI_VERTEX_SIZE;
  38307. uint USE_FIXEDPOSTUPDATE;
  38308. uint USE_FIXEDUPDATE;
  38309. uint USE_NO_EVENT;
  38310. uint USE_POSTUPDATE;
  38311. uint USE_UPDATE;
  38312. uint VARIANT_VALUE_SIZE;
  38313. uint VO_DISABLE_OCCLUSION;
  38314. uint VO_DISABLE_SHADOWS;
  38315. uint VO_LOW_MATERIAL_QUALITY;
  38316. uint VO_NONE;
  38317. StringHash VSP_AMBIENTENDCOLOR;
  38318. StringHash VSP_AMBIENTSTARTCOLOR;
  38319. StringHash VSP_BILLBOARDROT;
  38320. StringHash VSP_CAMERAPOS;
  38321. StringHash VSP_CLIPPLANE;
  38322. StringHash VSP_DELTATIME;
  38323. StringHash VSP_DEPTHMODE;
  38324. StringHash VSP_ELAPSEDTIME;
  38325. StringHash VSP_FARCLIP;
  38326. StringHash VSP_FRUSTUMSIZE;
  38327. StringHash VSP_GBUFFEROFFSETS;
  38328. StringHash VSP_LIGHTDIR;
  38329. StringHash VSP_LIGHTMATRICES;
  38330. StringHash VSP_LIGHTPOS;
  38331. StringHash VSP_MODEL;
  38332. StringHash VSP_NEARCLIP;
  38333. StringHash VSP_NORMALOFFSETSCALE;
  38334. StringHash VSP_SKINMATRICES;
  38335. StringHash VSP_UOFFSET;
  38336. StringHash VSP_VERTEXLIGHTS;
  38337. StringHash VSP_VIEW;
  38338. StringHash VSP_VIEWINV;
  38339. StringHash VSP_VIEWPROJ;
  38340. StringHash VSP_VOFFSET;
  38341. StringHash VSP_ZONE;