AngelScriptAPI.h 1.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083
  1. // Script API header intended to be 'force included' in IDE for AngelScript content assist / code completion
  2. #define int8 signed char
  3. #define int16 signed short
  4. #define int64 long
  5. #define uint unsigned
  6. #define uint8 unsigned char
  7. #define uint16 unsigned short
  8. #define uint64 unsigned long
  9. #define null 0
  10. #define in
  11. #define out
  12. #define inout
  13. #define is ==
  14. #define interface struct
  15. #define class struct
  16. #define cast reinterpret_cast
  17. #define mixin
  18. #define funcdef
  19. #define protected
  20. #define private
  21. // Classes
  22. class Animatable
  23. {
  24. public:
  25. // Methods:
  26. void AllocateNetworkState();
  27. operator AnimatedModel() const;
  28. operator AnimatedSprite2D() const;
  29. operator AnimationController() const;
  30. void ApplyAttributes();
  31. operator BillboardSet() const;
  32. operator BorderImage() const;
  33. operator Button() const;
  34. operator Camera() const;
  35. operator CheckBox() const;
  36. operator CollisionBox2D() const;
  37. operator CollisionChain2D() const;
  38. operator CollisionCircle2D() const;
  39. operator CollisionEdge2D() const;
  40. operator CollisionPolygon2D() const;
  41. operator CollisionShape2D() const;
  42. operator CollisionShape() const;
  43. operator Component() const;
  44. operator Constraint2D() const;
  45. operator Constraint() const;
  46. operator ConstraintDistance2D() const;
  47. operator ConstraintFriction2D() const;
  48. operator ConstraintGear2D() const;
  49. operator ConstraintMotor2D() const;
  50. operator ConstraintMouse2D() const;
  51. operator ConstraintPrismatic2D() const;
  52. operator ConstraintPulley2D() const;
  53. operator ConstraintRevolute2D() const;
  54. operator ConstraintWeld2D() const;
  55. operator ConstraintWheel2D() const;
  56. operator CrowdAgent() const;
  57. operator CrowdManager() const;
  58. operator Cursor() const;
  59. operator CustomGeometry() const;
  60. operator DebugRenderer() const;
  61. operator DecalSet() const;
  62. operator Drawable2D() const;
  63. operator Drawable() const;
  64. operator DropDownList() const;
  65. operator DynamicNavigationMesh() const;
  66. bool GetAnimationEnabled() const;
  67. Variant GetAttribute(const String&) const;
  68. Variant GetAttribute(uint) const;
  69. ValueAnimation GetAttributeAnimation(const String&) const;
  70. float GetAttributeAnimationSpeed(const String&) const;
  71. float GetAttributeAnimationTime(const String&) const;
  72. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  73. Variant GetAttributeDefault(const String&) const;
  74. Variant GetAttributeDefault(uint) const;
  75. bool GetBlockEvents() const;
  76. VariantMap& GetEventDataMap() const;
  77. Object GetEventSender() const;
  78. bool GetInterceptNetworkUpdate(const String&) const;
  79. uint GetNumAttributes() const;
  80. uint GetNumNetworkAttributes() const;
  81. ObjectAnimation GetObjectAnimation() const;
  82. ResourceRef GetObjectAnimationAttr() const;
  83. Object GetSubsystem(StringHash) const;
  84. StringHash GetType() const;
  85. bool HasEventHandlers() const;
  86. bool HasSubscribedToEvent(Object, StringHash) const;
  87. bool HasSubscribedToEvent(StringHash) const;
  88. operator IKConstraint() const;
  89. operator IKEffector() const;
  90. operator IKSolver() const;
  91. bool IsInstanceOf(StringHash) const;
  92. bool IsTemporary() const;
  93. operator Light() const;
  94. operator LineEdit() const;
  95. operator ListView() const;
  96. bool Load(Deserializer&);
  97. bool LoadJSON(const JSONValue&);
  98. bool LoadXML(const XMLElement&);
  99. operator LogicComponent() const;
  100. void MarkNetworkUpdate();
  101. operator Menu() const;
  102. operator NavArea() const;
  103. operator Navigable() const;
  104. operator NavigationMesh() const;
  105. operator NetworkPriority() const;
  106. operator Node() const;
  107. operator Object() const;
  108. operator Obstacle() const;
  109. operator Octree() const;
  110. operator OffMeshConnection() const;
  111. void OnEvent(Object, StringHash, VariantMap&);
  112. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  113. void OnSetAttribute(const AttributeInfo&, const Variant&);
  114. operator ParticleEmitter2D() const;
  115. operator ParticleEmitter() const;
  116. operator PhysicsWorld2D() const;
  117. operator PhysicsWorld() const;
  118. operator ProgressBar() const;
  119. operator RaycastVehicle() const;
  120. bool ReadDeltaUpdate(Deserializer&);
  121. bool ReadLatestDataUpdate(Deserializer&);
  122. operator RefCounted() const;
  123. int Refs() const;
  124. void RemoveAttributeAnimation(const String&);
  125. void RemoveInstanceDefault();
  126. void RemoveObjectAnimation();
  127. operator Renderer2D() const;
  128. void ResetToDefault();
  129. operator RibbonTrail() const;
  130. operator RigidBody2D() const;
  131. operator RigidBody() const;
  132. bool Save(Serializer&) const;
  133. bool SaveDefaultAttributes() const;
  134. bool SaveJSON(JSONValue&) const;
  135. bool SaveXML(XMLElement&) const;
  136. operator Scene() const;
  137. operator ScriptInstance() const;
  138. operator ScrollBar() const;
  139. operator ScrollView() const;
  140. void SendEvent(StringHash);
  141. void SendEvent(StringHash, VariantMap&);
  142. operator Serializable() const;
  143. void SetAnimationEnabled(bool);
  144. void SetAnimationTime(float);
  145. bool SetAttribute(const String&, const Variant&);
  146. bool SetAttribute(uint, const Variant&);
  147. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  148. void SetAttributeAnimationSpeed(const String&, float);
  149. void SetAttributeAnimationTime(const String&, float);
  150. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  151. void SetBlockEvents(bool);
  152. void SetGlobalVar(StringHash, const Variant&);
  153. void SetInstanceDefault(bool);
  154. void SetInterceptNetworkUpdate(const String&, bool);
  155. void SetObjectAnimation(ObjectAnimation);
  156. void SetObjectAnimationAttr(const ResourceRef&);
  157. void SetTemporary(bool);
  158. operator Skybox() const;
  159. operator Slider() const;
  160. operator SmoothedTransform() const;
  161. operator SoundListener() const;
  162. operator SoundSource3D() const;
  163. operator SoundSource() const;
  164. operator SplinePath() const;
  165. operator Sprite() const;
  166. operator StaticModel() const;
  167. operator StaticModelGroup() const;
  168. operator StaticSprite2D() const;
  169. operator StretchableSprite2D() const;
  170. const String& GetCategory() const;
  171. const String& GetTypeName() const;
  172. operator Terrain() const;
  173. operator TerrainPatch() const;
  174. operator Text3D() const;
  175. operator Text() const;
  176. operator TileMap2D() const;
  177. operator TileMapLayer2D() const;
  178. operator ToolTip() const;
  179. operator UIComponent() const;
  180. operator UIElement() const;
  181. operator UISelectable() const;
  182. operator UnknownComponent() const;
  183. void UnsubscribeFromAllEvents();
  184. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  185. void UnsubscribeFromEvent(Object, StringHash);
  186. void UnsubscribeFromEvent(StringHash);
  187. void UnsubscribeFromEvents(Object);
  188. const Variant& GetGlobalVar(StringHash) const;
  189. const VariantMap& GetGlobalVars() const;
  190. operator View3D() const;
  191. int WeakRefs() const;
  192. operator Window() const;
  193. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  194. void WriteInitialDeltaUpdate(Serializer&, uint8);
  195. void WriteLatestDataUpdate(Serializer&, uint8);
  196. operator Zone() const;
  197. operator const AnimatedModel() const;
  198. operator const AnimatedSprite2D() const;
  199. operator const AnimationController() const;
  200. operator const BillboardSet() const;
  201. operator const BorderImage() const;
  202. operator const Button() const;
  203. operator const Camera() const;
  204. operator const CheckBox() const;
  205. operator const CollisionBox2D() const;
  206. operator const CollisionChain2D() const;
  207. operator const CollisionCircle2D() const;
  208. operator const CollisionEdge2D() const;
  209. operator const CollisionPolygon2D() const;
  210. operator const CollisionShape2D() const;
  211. operator const CollisionShape() const;
  212. operator const Component() const;
  213. operator const Constraint2D() const;
  214. operator const Constraint() const;
  215. operator const ConstraintDistance2D() const;
  216. operator const ConstraintFriction2D() const;
  217. operator const ConstraintGear2D() const;
  218. operator const ConstraintMotor2D() const;
  219. operator const ConstraintMouse2D() const;
  220. operator const ConstraintPrismatic2D() const;
  221. operator const ConstraintPulley2D() const;
  222. operator const ConstraintRevolute2D() const;
  223. operator const ConstraintWeld2D() const;
  224. operator const ConstraintWheel2D() const;
  225. operator const CrowdAgent() const;
  226. operator const CrowdManager() const;
  227. operator const Cursor() const;
  228. operator const CustomGeometry() const;
  229. operator const DebugRenderer() const;
  230. operator const DecalSet() const;
  231. operator const Drawable2D() const;
  232. operator const Drawable() const;
  233. operator const DropDownList() const;
  234. operator const DynamicNavigationMesh() const;
  235. operator const IKConstraint() const;
  236. operator const IKEffector() const;
  237. operator const IKSolver() const;
  238. operator const Light() const;
  239. operator const LineEdit() const;
  240. operator const ListView() const;
  241. operator const LogicComponent() const;
  242. operator const Menu() const;
  243. operator const NavArea() const;
  244. operator const Navigable() const;
  245. operator const NavigationMesh() const;
  246. operator const NetworkPriority() const;
  247. operator const Node() const;
  248. operator const Object() const;
  249. operator const Obstacle() const;
  250. operator const Octree() const;
  251. operator const OffMeshConnection() const;
  252. operator const ParticleEmitter2D() const;
  253. operator const ParticleEmitter() const;
  254. operator const PhysicsWorld2D() const;
  255. operator const PhysicsWorld() const;
  256. operator const ProgressBar() const;
  257. operator const RaycastVehicle() const;
  258. operator const RefCounted() const;
  259. operator const Renderer2D() const;
  260. operator const RibbonTrail() const;
  261. operator const RigidBody2D() const;
  262. operator const RigidBody() const;
  263. operator const Scene() const;
  264. operator const ScriptInstance() const;
  265. operator const ScrollBar() const;
  266. operator const ScrollView() const;
  267. operator const Serializable() const;
  268. operator const Skybox() const;
  269. operator const Slider() const;
  270. operator const SmoothedTransform() const;
  271. operator const SoundListener() const;
  272. operator const SoundSource3D() const;
  273. operator const SoundSource() const;
  274. operator const SplinePath() const;
  275. operator const Sprite() const;
  276. operator const StaticModel() const;
  277. operator const StaticModelGroup() const;
  278. operator const StaticSprite2D() const;
  279. operator const StretchableSprite2D() const;
  280. operator const Terrain() const;
  281. operator const TerrainPatch() const;
  282. operator const Text3D() const;
  283. operator const Text() const;
  284. operator const TileMap2D() const;
  285. operator const TileMapLayer2D() const;
  286. operator const ToolTip() const;
  287. operator const UIComponent() const;
  288. operator const UIElement() const;
  289. operator const UISelectable() const;
  290. operator const UnknownComponent() const;
  291. operator const View3D() const;
  292. operator const Window() const;
  293. operator const Zone() const;
  294. // Properties:
  295. bool animationEnabled;
  296. /* readonly */
  297. Array<Variant> attributeDefaults;
  298. /* readonly */
  299. Array<AttributeInfo> attributeInfos;
  300. Array<Variant> attributes;
  301. /* readonly */
  302. String category;
  303. Array<Variant> globalVar;
  304. /* readonly */
  305. VariantMap globalVars;
  306. /* readonly */
  307. uint numAttributes;
  308. ObjectAnimation objectAnimation;
  309. /* readonly */
  310. int refs;
  311. bool temporary;
  312. /* readonly */
  313. StringHash type;
  314. /* readonly */
  315. String typeName;
  316. /* readonly */
  317. int weakRefs;
  318. };
  319. class AnimatedModel
  320. {
  321. public:
  322. AnimatedModel();
  323. // Methods:
  324. AnimationState AddAnimationState(Animation);
  325. void AddLight(Light);
  326. void AddVertexLight(Light);
  327. void AllocateNetworkState();
  328. operator Animatable() const;
  329. void ApplyAnimation();
  330. void ApplyAttributes();
  331. void ApplyMaterialList(const String& = String :: EMPTY);
  332. const BoundingBox& GetBoundingBox() const;
  333. const BoundingBox& GetWorldBoundingBox();
  334. void CleanupConnection(Connection);
  335. operator Component() const;
  336. void DrawDebugGeometry(DebugRenderer, bool);
  337. bool DrawOcclusion(OcclusionBuffer);
  338. operator Drawable() const;
  339. bool GetAnimationEnabled() const;
  340. float GetAnimationLodBias() const;
  341. AnimationState GetAnimationState(Animation) const;
  342. AnimationState GetAnimationState(StringHash) const;
  343. AnimationState GetAnimationState(const String&) const;
  344. AnimationState GetAnimationState(uint) const;
  345. Array<AnimationState> GetAnimationStates() const;
  346. Variant GetAttribute(const String&) const;
  347. Variant GetAttribute(uint) const;
  348. ValueAnimation GetAttributeAnimation(const String&) const;
  349. float GetAttributeAnimationSpeed(const String&) const;
  350. float GetAttributeAnimationTime(const String&) const;
  351. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  352. Variant GetAttributeDefault(const String&) const;
  353. Variant GetAttributeDefault(uint) const;
  354. Array<SourceBatch> GetBatches() const;
  355. bool GetBlockEvents() const;
  356. bool GetCastShadows() const;
  357. Component GetComponent(StringHash) const;
  358. float GetDistance() const;
  359. float GetDrawDistance() const;
  360. uint8 GetDrawableFlags() const;
  361. VariantMap& GetEventDataMap() const;
  362. Object GetEventSender() const;
  363. Light GetFirstLight() const;
  364. uint GetID() const;
  365. bool GetInterceptNetworkUpdate(const String&) const;
  366. uint GetLightMask() const;
  367. Array<Light> GetLights() const;
  368. float GetLodBias() const;
  369. float GetLodDistance() const;
  370. Geometry GetLodGeometry(uint, uint);
  371. Material GetMaterial() const;
  372. Material GetMaterial(uint) const;
  373. uint GetMaxLights() const;
  374. float GetMaxZ() const;
  375. float GetMinZ() const;
  376. Model GetModel() const;
  377. ResourceRef GetModelAttr() const;
  378. Array<VertexBuffer> GetMorphVertexBuffers() const;
  379. float GetMorphWeight(StringHash) const;
  380. float GetMorphWeight(const String&) const;
  381. float GetMorphWeight(uint) const;
  382. Array<ModelMorph> GetMorphs() const;
  383. Array<uint8> GetMorphsAttr() const;
  384. Node GetNode() const;
  385. uint GetNumAnimationStates() const;
  386. uint GetNumAttributes() const;
  387. uint GetNumGeometries() const;
  388. uint GetNumMorphs() const;
  389. uint GetNumNetworkAttributes() const;
  390. uint GetNumOccluderTriangles();
  391. ObjectAnimation GetObjectAnimation() const;
  392. ResourceRef GetObjectAnimationAttr() const;
  393. uint GetOcclusionLodLevel() const;
  394. Scene GetScene() const;
  395. float GetShadowDistance() const;
  396. uint GetShadowMask() const;
  397. Skeleton& GetSkeleton();
  398. float GetSortValue() const;
  399. Object GetSubsystem(StringHash) const;
  400. StringHash GetType() const;
  401. UpdateGeometryType GetUpdateGeometryType();
  402. bool GetUpdateInvisible() const;
  403. Array<Light> GetVertexLights() const;
  404. uint GetViewMask() const;
  405. Zone GetZone() const;
  406. uint GetZoneMask() const;
  407. bool HasBasePass(uint) const;
  408. bool HasEventHandlers() const;
  409. bool HasSubscribedToEvent(Object, StringHash) const;
  410. bool HasSubscribedToEvent(StringHash) const;
  411. bool IsEnabled() const;
  412. bool IsEnabledEffective() const;
  413. bool IsInView() const;
  414. bool IsInView(Camera) const;
  415. bool IsInView(const FrameInfo&, bool = false) const;
  416. bool IsInside(const Vector3&) const;
  417. bool IsInsideLocal(const Vector3&) const;
  418. bool IsInstanceOf(StringHash) const;
  419. bool IsMaster() const;
  420. bool IsOccludee() const;
  421. bool IsOccluder() const;
  422. bool IsReplicated() const;
  423. bool IsTemporary() const;
  424. bool IsZoneDirty() const;
  425. void LimitLights();
  426. void LimitVertexLights(bool);
  427. bool Load(Deserializer&);
  428. bool LoadJSON(const JSONValue&);
  429. bool LoadXML(const XMLElement&);
  430. void MarkForUpdate();
  431. void MarkInView(const FrameInfo&);
  432. void MarkInView(int);
  433. void MarkNetworkUpdate();
  434. operator Object() const;
  435. void OnEvent(Object, StringHash, VariantMap&);
  436. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  437. void OnSetAttribute(const AttributeInfo&, const Variant&);
  438. void OnSetEnabled();
  439. void PrepareNetworkUpdate();
  440. bool ReadDeltaUpdate(Deserializer&);
  441. bool ReadLatestDataUpdate(Deserializer&);
  442. operator RefCounted() const;
  443. int Refs() const;
  444. void Remove();
  445. void RemoveAllAnimationStates();
  446. void RemoveAnimationState(Animation);
  447. void RemoveAnimationState(AnimationState);
  448. void RemoveAnimationState(StringHash);
  449. void RemoveAnimationState(const String&);
  450. void RemoveAnimationState(uint);
  451. void RemoveAttributeAnimation(const String&);
  452. void RemoveInstanceDefault();
  453. void RemoveObjectAnimation();
  454. void ResetMorphWeights();
  455. void ResetToDefault();
  456. const ResourceRefList& GetMaterialsAttr() const;
  457. bool Save(Serializer&) const;
  458. bool SaveDefaultAttributes() const;
  459. bool SaveJSON(JSONValue&) const;
  460. bool SaveXML(XMLElement&) const;
  461. void SendEvent(StringHash);
  462. void SendEvent(StringHash, VariantMap&);
  463. operator Serializable() const;
  464. void SetAnimationEnabled(bool);
  465. void SetAnimationLodBias(float);
  466. void SetAnimationTime(float);
  467. bool SetAttribute(const String&, const Variant&);
  468. bool SetAttribute(uint, const Variant&);
  469. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  470. void SetAttributeAnimationSpeed(const String&, float);
  471. void SetAttributeAnimationTime(const String&, float);
  472. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  473. void SetBasePass(uint);
  474. void SetBlockEvents(bool);
  475. void SetCastShadows(bool);
  476. void SetDrawDistance(float);
  477. void SetEnabled(bool);
  478. void SetGlobalVar(StringHash, const Variant&);
  479. void SetInstanceDefault(bool);
  480. void SetInterceptNetworkUpdate(const String&, bool);
  481. void SetLightMask(uint);
  482. void SetLodBias(float);
  483. void SetMaterial(Material);
  484. bool SetMaterial(uint, Material);
  485. void SetMaterialsAttr(const ResourceRefList&);
  486. void SetMaxLights(uint);
  487. void SetMinMaxZ(float, float);
  488. void SetModel(Model);
  489. void SetModel(Model, bool = true);
  490. void SetModelAttr(const ResourceRef&);
  491. void SetMorphWeight(StringHash, float);
  492. void SetMorphWeight(const String&, float);
  493. void SetMorphWeight(uint, float);
  494. void SetMorphsAttr(Array<uint8>);
  495. void SetObjectAnimation(ObjectAnimation);
  496. void SetObjectAnimationAttr(const ResourceRef&);
  497. void SetOccludee(bool);
  498. void SetOccluder(bool);
  499. void SetOcclusionLodLevel(uint);
  500. void SetShadowDistance(float);
  501. void SetShadowMask(uint);
  502. void SetSortValue(float);
  503. void SetTemporary(bool);
  504. void SetUpdateInvisible(bool);
  505. void SetViewMask(uint);
  506. void SetZone(Zone, bool = false);
  507. void SetZoneMask(uint);
  508. operator StaticModel() const;
  509. const String& GetCategory() const;
  510. const String& GetTypeName() const;
  511. void UnsubscribeFromAllEvents();
  512. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  513. void UnsubscribeFromEvent(Object, StringHash);
  514. void UnsubscribeFromEvent(StringHash);
  515. void UnsubscribeFromEvents(Object);
  516. void Update(const FrameInfo&);
  517. void UpdateBatches(const FrameInfo&);
  518. void UpdateBoneBoundingBox();
  519. void UpdateGeometry(const FrameInfo&);
  520. const Variant& GetGlobalVar(StringHash) const;
  521. const VariantMap& GetGlobalVars() const;
  522. int WeakRefs() const;
  523. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  524. void WriteInitialDeltaUpdate(Serializer&, uint8);
  525. void WriteLatestDataUpdate(Serializer&, uint8);
  526. operator const Animatable() const;
  527. operator const Component() const;
  528. operator const Drawable() const;
  529. operator const Object() const;
  530. operator const RefCounted() const;
  531. operator const Serializable() const;
  532. operator const StaticModel() const;
  533. // Properties:
  534. bool animationEnabled;
  535. float animationLodBias;
  536. /* readonly */
  537. Array<AnimationState> animationStates;
  538. /* readonly */
  539. Array<Variant> attributeDefaults;
  540. /* readonly */
  541. Array<AttributeInfo> attributeInfos;
  542. Array<Variant> attributes;
  543. /* readonly */
  544. BoundingBox boundingBox;
  545. bool castShadows;
  546. /* readonly */
  547. String category;
  548. float drawDistance;
  549. bool enabled;
  550. /* readonly */
  551. bool enabledEffective;
  552. Array<Variant> globalVar;
  553. /* readonly */
  554. VariantMap globalVars;
  555. /* readonly */
  556. uint id;
  557. /* readonly */
  558. bool inView;
  559. uint lightMask;
  560. float lodBias;
  561. Material material;
  562. Array<Material> materials;
  563. uint maxLights;
  564. Model model;
  565. /* readonly */
  566. Array<String> morphNames;
  567. Array<float> morphWeights;
  568. /* readonly */
  569. Node node;
  570. /* readonly */
  571. uint numAnimationStates;
  572. /* readonly */
  573. uint numAttributes;
  574. /* readonly */
  575. uint numGeometries;
  576. /* readonly */
  577. uint numMorphs;
  578. ObjectAnimation objectAnimation;
  579. bool occludee;
  580. bool occluder;
  581. uint occlusionLodLevel;
  582. /* readonly */
  583. int refs;
  584. /* readonly */
  585. bool replicated;
  586. float shadowDistance;
  587. uint shadowMask;
  588. /* readonly */
  589. Skeleton skeleton;
  590. bool temporary;
  591. /* readonly */
  592. StringHash type;
  593. /* readonly */
  594. String typeName;
  595. bool updateInvisible;
  596. uint viewMask;
  597. /* readonly */
  598. int weakRefs;
  599. /* readonly */
  600. BoundingBox worldBoundingBox;
  601. /* readonly */
  602. Zone zone;
  603. uint zoneMask;
  604. };
  605. class AnimatedSprite2D
  606. {
  607. public:
  608. AnimatedSprite2D();
  609. // Methods:
  610. void AddLight(Light);
  611. void AddVertexLight(Light);
  612. void AllocateNetworkState();
  613. operator Animatable() const;
  614. void ApplyAttributes();
  615. const BoundingBox& GetBoundingBox() const;
  616. const BoundingBox& GetWorldBoundingBox();
  617. void CleanupConnection(Connection);
  618. const Color& GetColor() const;
  619. operator Component() const;
  620. void DrawDebugGeometry(DebugRenderer, bool);
  621. bool DrawOcclusion(OcclusionBuffer);
  622. operator Drawable2D() const;
  623. operator Drawable() const;
  624. float GetAlpha() const;
  625. bool GetAnimationEnabled() const;
  626. AnimationSet2D GetAnimationSet() const;
  627. ResourceRef GetAnimationSetAttr() const;
  628. Variant GetAttribute(const String&) const;
  629. Variant GetAttribute(uint) const;
  630. ValueAnimation GetAttributeAnimation(const String&) const;
  631. float GetAttributeAnimationSpeed(const String&) const;
  632. float GetAttributeAnimationTime(const String&) const;
  633. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  634. Variant GetAttributeDefault(const String&) const;
  635. Variant GetAttributeDefault(uint) const;
  636. Array<SourceBatch> GetBatches() const;
  637. BlendMode GetBlendMode() const;
  638. bool GetBlockEvents() const;
  639. bool GetCastShadows() const;
  640. Component GetComponent(StringHash) const;
  641. Material GetCustomMaterial() const;
  642. ResourceRef GetCustomMaterialAttr() const;
  643. float GetDistance() const;
  644. float GetDrawDistance() const;
  645. uint8 GetDrawableFlags() const;
  646. VariantMap& GetEventDataMap() const;
  647. Object GetEventSender() const;
  648. Light GetFirstLight() const;
  649. bool GetFlipX() const;
  650. bool GetFlipY() const;
  651. uint GetID() const;
  652. bool GetInterceptNetworkUpdate(const String&) const;
  653. int GetLayer() const;
  654. uint GetLightMask() const;
  655. Array<Light> GetLights() const;
  656. float GetLodBias() const;
  657. float GetLodDistance() const;
  658. Geometry GetLodGeometry(uint, uint);
  659. LoopMode2D GetLoopMode() const;
  660. uint GetMaxLights() const;
  661. float GetMaxZ() const;
  662. float GetMinZ() const;
  663. Node GetNode() const;
  664. uint GetNumAttributes() const;
  665. uint GetNumNetworkAttributes() const;
  666. uint GetNumOccluderTriangles();
  667. ObjectAnimation GetObjectAnimation() const;
  668. ResourceRef GetObjectAnimationAttr() const;
  669. int GetOrderInLayer() const;
  670. Scene GetScene() const;
  671. float GetShadowDistance() const;
  672. uint GetShadowMask() const;
  673. float GetSortValue() const;
  674. Array<SourceBatch2D> GetSourceBatches();
  675. float GetSpeed() const;
  676. Sprite2D GetSprite() const;
  677. ResourceRef GetSpriteAttr() const;
  678. Object GetSubsystem(StringHash) const;
  679. bool GetSwapXY() const;
  680. StringHash GetType() const;
  681. UpdateGeometryType GetUpdateGeometryType();
  682. bool GetUseDrawRect() const;
  683. bool GetUseHotSpot() const;
  684. bool GetUseTextureRect() const;
  685. Array<Light> GetVertexLights() const;
  686. uint GetViewMask() const;
  687. Zone GetZone() const;
  688. uint GetZoneMask() const;
  689. bool HasBasePass(uint) const;
  690. bool HasEventHandlers() const;
  691. bool HasSubscribedToEvent(Object, StringHash) const;
  692. bool HasSubscribedToEvent(StringHash) const;
  693. bool IsEnabled() const;
  694. bool IsEnabledEffective() const;
  695. bool IsInView() const;
  696. bool IsInView(Camera) const;
  697. bool IsInView(const FrameInfo&, bool = false) const;
  698. bool IsInstanceOf(StringHash) const;
  699. bool IsOccludee() const;
  700. bool IsOccluder() const;
  701. bool IsReplicated() const;
  702. bool IsTemporary() const;
  703. bool IsZoneDirty() const;
  704. void LimitLights();
  705. void LimitVertexLights(bool);
  706. bool Load(Deserializer&);
  707. bool LoadJSON(const JSONValue&);
  708. bool LoadXML(const XMLElement&);
  709. void MarkForUpdate();
  710. void MarkInView(const FrameInfo&);
  711. void MarkInView(int);
  712. void MarkNetworkUpdate();
  713. operator Object() const;
  714. void OnEvent(Object, StringHash, VariantMap&);
  715. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  716. void OnSetAttribute(const AttributeInfo&, const Variant&);
  717. void OnSetEnabled();
  718. void PrepareNetworkUpdate();
  719. bool ReadDeltaUpdate(Deserializer&);
  720. bool ReadLatestDataUpdate(Deserializer&);
  721. const Rect& GetDrawRect() const;
  722. const Rect& GetTextureRect() const;
  723. operator RefCounted() const;
  724. int Refs() const;
  725. void Remove();
  726. void RemoveAttributeAnimation(const String&);
  727. void RemoveInstanceDefault();
  728. void RemoveObjectAnimation();
  729. void ResetToDefault();
  730. bool Save(Serializer&) const;
  731. bool SaveDefaultAttributes() const;
  732. bool SaveJSON(JSONValue&) const;
  733. bool SaveXML(XMLElement&) const;
  734. void SendEvent(StringHash);
  735. void SendEvent(StringHash, VariantMap&);
  736. operator Serializable() const;
  737. void SetAlpha(float);
  738. void SetAnimation(const String&, LoopMode2D = LM_DEFAULT);
  739. void SetAnimationAttr(const String&);
  740. void SetAnimationEnabled(bool);
  741. void SetAnimationSet(AnimationSet2D);
  742. void SetAnimationSetAttr(const ResourceRef&);
  743. void SetAnimationTime(float);
  744. bool SetAttribute(const String&, const Variant&);
  745. bool SetAttribute(uint, const Variant&);
  746. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  747. void SetAttributeAnimationSpeed(const String&, float);
  748. void SetAttributeAnimationTime(const String&, float);
  749. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  750. void SetBasePass(uint);
  751. void SetBlendMode(BlendMode);
  752. void SetBlockEvents(bool);
  753. void SetCastShadows(bool);
  754. void SetColor(const Color&);
  755. void SetCustomMaterial(Material);
  756. void SetCustomMaterialAttr(const ResourceRef&);
  757. void SetDrawDistance(float);
  758. void SetDrawRect(const Rect&);
  759. void SetEnabled(bool);
  760. void SetEntity(const String&);
  761. void SetFlip(bool, bool, bool = false);
  762. void SetFlipX(bool);
  763. void SetFlipY(bool);
  764. void SetGlobalVar(StringHash, const Variant&);
  765. void SetHotSpot(const Vector2&);
  766. void SetInstanceDefault(bool);
  767. void SetInterceptNetworkUpdate(const String&, bool);
  768. void SetLayer(int);
  769. void SetLightMask(uint);
  770. void SetLodBias(float);
  771. void SetLoopMode(LoopMode2D);
  772. void SetMaxLights(uint);
  773. void SetMinMaxZ(float, float);
  774. void SetObjectAnimation(ObjectAnimation);
  775. void SetObjectAnimationAttr(const ResourceRef&);
  776. void SetOccludee(bool);
  777. void SetOccluder(bool);
  778. void SetOrderInLayer(int);
  779. void SetShadowDistance(float);
  780. void SetShadowMask(uint);
  781. void SetSortValue(float);
  782. void SetSpeed(float);
  783. void SetSprite(Sprite2D);
  784. void SetSpriteAttr(const ResourceRef&);
  785. void SetSwapXY(bool);
  786. void SetTemporary(bool);
  787. void SetTextureRect(const Rect&);
  788. void SetUseDrawRect(bool);
  789. void SetUseHotSpot(bool);
  790. void SetUseTextureRect(bool);
  791. void SetViewMask(uint);
  792. void SetZone(Zone, bool = false);
  793. void SetZoneMask(uint);
  794. operator StaticSprite2D() const;
  795. const String& GetAnimation() const;
  796. const String& GetCategory() const;
  797. const String& GetEntity() const;
  798. const String& GetTypeName() const;
  799. void UnsubscribeFromAllEvents();
  800. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  801. void UnsubscribeFromEvent(Object, StringHash);
  802. void UnsubscribeFromEvent(StringHash);
  803. void UnsubscribeFromEvents(Object);
  804. void Update(const FrameInfo&);
  805. void UpdateBatches(const FrameInfo&);
  806. void UpdateGeometry(const FrameInfo&);
  807. const Variant& GetGlobalVar(StringHash) const;
  808. const VariantMap& GetGlobalVars() const;
  809. const Vector2& GetHotSpot() const;
  810. int WeakRefs() const;
  811. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  812. void WriteInitialDeltaUpdate(Serializer&, uint8);
  813. void WriteLatestDataUpdate(Serializer&, uint8);
  814. operator const Animatable() const;
  815. operator const Component() const;
  816. operator const Drawable2D() const;
  817. operator const Drawable() const;
  818. operator const Object() const;
  819. operator const RefCounted() const;
  820. operator const Serializable() const;
  821. operator const StaticSprite2D() const;
  822. // Properties:
  823. float alpha;
  824. String animation;
  825. bool animationEnabled;
  826. AnimationSet2D animationSet;
  827. /* readonly */
  828. Array<Variant> attributeDefaults;
  829. /* readonly */
  830. Array<AttributeInfo> attributeInfos;
  831. Array<Variant> attributes;
  832. BlendMode blendMode;
  833. /* readonly */
  834. BoundingBox boundingBox;
  835. bool castShadows;
  836. /* readonly */
  837. String category;
  838. Color color;
  839. Material customMaterial;
  840. float drawDistance;
  841. Rect drawRect;
  842. bool enabled;
  843. /* readonly */
  844. bool enabledEffective;
  845. String entity;
  846. bool flipX;
  847. bool flipY;
  848. Array<Variant> globalVar;
  849. /* readonly */
  850. VariantMap globalVars;
  851. Vector2 hotSpot;
  852. /* readonly */
  853. uint id;
  854. /* readonly */
  855. bool inView;
  856. int layer;
  857. uint lightMask;
  858. float lodBias;
  859. LoopMode2D loopMode;
  860. uint maxLights;
  861. /* readonly */
  862. Node node;
  863. /* readonly */
  864. uint numAttributes;
  865. ObjectAnimation objectAnimation;
  866. bool occludee;
  867. bool occluder;
  868. int orderInLayer;
  869. /* readonly */
  870. int refs;
  871. /* readonly */
  872. bool replicated;
  873. float shadowDistance;
  874. uint shadowMask;
  875. float speed;
  876. Sprite2D sprite;
  877. bool swapXY;
  878. bool temporary;
  879. Rect textureRect;
  880. /* readonly */
  881. StringHash type;
  882. /* readonly */
  883. String typeName;
  884. bool useDrawRect;
  885. bool useHotSpot;
  886. bool useTextureRect;
  887. uint viewMask;
  888. /* readonly */
  889. int weakRefs;
  890. /* readonly */
  891. BoundingBox worldBoundingBox;
  892. /* readonly */
  893. Zone zone;
  894. uint zoneMask;
  895. };
  896. class Animation
  897. {
  898. public:
  899. Animation();
  900. // Methods:
  901. void AddMetadata(const String&, const Variant&);
  902. void AddTrigger(const AnimationTriggerPoint&);
  903. void AddTrigger(float, bool, const Variant&);
  904. bool BeginLoad(Deserializer&);
  905. Animation Clone(const String& = String :: EMPTY) const;
  906. AnimationTrack CreateTrack(const String&);
  907. bool EndLoad();
  908. StringHash GetAnimationNameHash() const;
  909. AsyncLoadState GetAsyncLoadState() const;
  910. bool GetBlockEvents() const;
  911. VariantMap& GetEventDataMap() const;
  912. Object GetEventSender() const;
  913. float GetLength() const;
  914. uint GetMemoryUse() const;
  915. StringHash GetNameHash() const;
  916. uint GetNumTracks() const;
  917. uint GetNumTriggers() const;
  918. Object GetSubsystem(StringHash) const;
  919. AnimationTrack GetTrack(StringHash);
  920. AnimationTrack GetTrack(const String&);
  921. AnimationTrack GetTrack(uint);
  922. Array<AnimationTriggerPoint> GetTriggers() const;
  923. StringHash GetType() const;
  924. uint GetUseTimer();
  925. bool HasEventHandlers() const;
  926. bool HasMetadata() const;
  927. bool HasSubscribedToEvent(Object, StringHash) const;
  928. bool HasSubscribedToEvent(StringHash) const;
  929. bool IsInstanceOf(StringHash) const;
  930. bool Load(Deserializer&);
  931. bool Load(File);
  932. bool Load(VectorBuffer&);
  933. bool Load(const String&);
  934. bool LoadFile(const String&);
  935. operator Object() const;
  936. void OnEvent(Object, StringHash, VariantMap&);
  937. operator RefCounted() const;
  938. int Refs() const;
  939. void RemoveAllMetadata();
  940. void RemoveAllTracks();
  941. void RemoveAllTriggers();
  942. void RemoveMetadata(const String&);
  943. bool RemoveTrack(const String&);
  944. void RemoveTrigger(uint);
  945. void ResetUseTimer();
  946. operator Resource() const;
  947. operator ResourceWithMetadata() const;
  948. bool Save(File) const;
  949. bool Save(Serializer&) const;
  950. bool Save(VectorBuffer&) const;
  951. bool Save(const String&) const;
  952. bool SaveFile(const String&) const;
  953. void SendEvent(StringHash);
  954. void SendEvent(StringHash, VariantMap&);
  955. void SetAnimationName(const String&);
  956. void SetAsyncLoadState(AsyncLoadState);
  957. void SetBlockEvents(bool);
  958. void SetGlobalVar(StringHash, const Variant&);
  959. void SetLength(float);
  960. void SetMemoryUse(uint);
  961. void SetName(const String&);
  962. void SetNumTriggers(uint);
  963. void SetTrigger(uint, const AnimationTriggerPoint&);
  964. const String& GetAnimationName() const;
  965. const String& GetCategory() const;
  966. const String& GetName() const;
  967. const String& GetTypeName() const;
  968. void UnsubscribeFromAllEvents();
  969. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  970. void UnsubscribeFromEvent(Object, StringHash);
  971. void UnsubscribeFromEvent(StringHash);
  972. void UnsubscribeFromEvents(Object);
  973. const Variant& GetGlobalVar(StringHash) const;
  974. const Variant& GetMetadata(const String&) const;
  975. const VariantMap& GetGlobalVars() const;
  976. int WeakRefs() const;
  977. operator const Object() const;
  978. operator const RefCounted() const;
  979. operator const Resource() const;
  980. operator const ResourceWithMetadata() const;
  981. // Properties:
  982. String animationName;
  983. /* readonly */
  984. String category;
  985. Array<Variant> globalVar;
  986. /* readonly */
  987. VariantMap globalVars;
  988. /* readonly */
  989. bool hasMetadata;
  990. float length;
  991. /* readonly */
  992. uint memoryUse;
  993. Array<Variant> metadata;
  994. String name;
  995. /* readonly */
  996. uint numTracks;
  997. uint numTriggers;
  998. /* readonly */
  999. int refs;
  1000. /* readonly */
  1001. Array<AnimationTrack> tracks;
  1002. Array<AnimationTriggerPoint> triggers;
  1003. /* readonly */
  1004. StringHash type;
  1005. /* readonly */
  1006. String typeName;
  1007. /* readonly */
  1008. uint useTimer;
  1009. /* readonly */
  1010. int weakRefs;
  1011. };
  1012. class AnimationControl
  1013. {
  1014. public:
  1015. // Methods:
  1016. AnimationControl& operator=(const AnimationControl&);
  1017. // Properties:
  1018. float autoFadeTime;
  1019. float fadeTime;
  1020. StringHash hash;
  1021. String name;
  1022. bool removeOnCompletion;
  1023. uint16 setTime;
  1024. uint8 setTimeRev;
  1025. float setTimeTtl;
  1026. uint8 setWeight;
  1027. uint8 setWeightRev;
  1028. float setWeightTtl;
  1029. float speed;
  1030. float targetWeight;
  1031. };
  1032. class AnimationController
  1033. {
  1034. public:
  1035. AnimationController();
  1036. // Methods:
  1037. void AllocateNetworkState();
  1038. operator Animatable() const;
  1039. void ApplyAttributes();
  1040. void CleanupConnection(Connection);
  1041. operator Component() const;
  1042. void DrawDebugGeometry(DebugRenderer, bool);
  1043. bool Fade(const String&, float, float);
  1044. bool FadeOthers(const String&, float, float);
  1045. bool GetAnimationEnabled() const;
  1046. AnimationState GetAnimationState(StringHash) const;
  1047. AnimationState GetAnimationState(const String&) const;
  1048. Variant GetAttribute(const String&) const;
  1049. Variant GetAttribute(uint) const;
  1050. ValueAnimation GetAttributeAnimation(const String&) const;
  1051. float GetAttributeAnimationSpeed(const String&) const;
  1052. float GetAttributeAnimationTime(const String&) const;
  1053. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1054. Variant GetAttributeDefault(const String&) const;
  1055. Variant GetAttributeDefault(uint) const;
  1056. float GetAutoFade(const String&) const;
  1057. AnimationBlendMode GetBlendMode(const String&) const;
  1058. bool GetBlockEvents() const;
  1059. Component GetComponent(StringHash) const;
  1060. VariantMap& GetEventDataMap() const;
  1061. Object GetEventSender() const;
  1062. float GetFadeTarget(const String&) const;
  1063. float GetFadeTime(const String&) const;
  1064. uint GetID() const;
  1065. bool GetInterceptNetworkUpdate(const String&) const;
  1066. uint8 GetLayer(const String&) const;
  1067. float GetLength(const String&) const;
  1068. Array<uint8> GetNetAnimationsAttr() const;
  1069. Node GetNode() const;
  1070. uint GetNumAttributes() const;
  1071. uint GetNumNetworkAttributes() const;
  1072. ObjectAnimation GetObjectAnimation() const;
  1073. ResourceRef GetObjectAnimationAttr() const;
  1074. bool GetRemoveOnCompletion(const String&) const;
  1075. Scene GetScene() const;
  1076. float GetSpeed(const String&) const;
  1077. Bone GetStartBone(const String&) const;
  1078. Object GetSubsystem(StringHash) const;
  1079. float GetTime(const String&) const;
  1080. StringHash GetType() const;
  1081. float GetWeight(const String&) const;
  1082. bool HasEventHandlers() const;
  1083. bool HasSubscribedToEvent(Object, StringHash) const;
  1084. bool HasSubscribedToEvent(StringHash) const;
  1085. bool IsAtEnd(const String&) const;
  1086. bool IsEnabled() const;
  1087. bool IsEnabledEffective() const;
  1088. bool IsFadingIn(const String&) const;
  1089. bool IsFadingOut(const String&) const;
  1090. bool IsInstanceOf(StringHash) const;
  1091. bool IsLooped(const String&) const;
  1092. bool IsPlaying(const String&) const;
  1093. bool IsPlaying(uint8) const;
  1094. bool IsReplicated() const;
  1095. bool IsTemporary() const;
  1096. bool Load(Deserializer&);
  1097. bool LoadJSON(const JSONValue&);
  1098. bool LoadXML(const XMLElement&);
  1099. void MarkNetworkUpdate();
  1100. operator Object() const;
  1101. void OnEvent(Object, StringHash, VariantMap&);
  1102. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  1103. void OnSetAttribute(const AttributeInfo&, const Variant&);
  1104. void OnSetEnabled();
  1105. bool Play(const String&, uint8, bool, float = 0.0f);
  1106. bool PlayExclusive(const String&, uint8, bool, float = 0.0f);
  1107. void PrepareNetworkUpdate();
  1108. bool ReadDeltaUpdate(Deserializer&);
  1109. bool ReadLatestDataUpdate(Deserializer&);
  1110. operator RefCounted() const;
  1111. int Refs() const;
  1112. void Remove();
  1113. void RemoveAttributeAnimation(const String&);
  1114. void RemoveInstanceDefault();
  1115. void RemoveObjectAnimation();
  1116. void ResetToDefault();
  1117. bool Save(Serializer&) const;
  1118. bool SaveDefaultAttributes() const;
  1119. bool SaveJSON(JSONValue&) const;
  1120. bool SaveXML(XMLElement&) const;
  1121. void SendEvent(StringHash);
  1122. void SendEvent(StringHash, VariantMap&);
  1123. operator Serializable() const;
  1124. void SetAnimationEnabled(bool);
  1125. void SetAnimationTime(float);
  1126. bool SetAttribute(const String&, const Variant&);
  1127. bool SetAttribute(uint, const Variant&);
  1128. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1129. void SetAttributeAnimationSpeed(const String&, float);
  1130. void SetAttributeAnimationTime(const String&, float);
  1131. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1132. bool SetAutoFade(const String&, float);
  1133. bool SetBlendMode(const String&, AnimationBlendMode);
  1134. void SetBlockEvents(bool);
  1135. void SetEnabled(bool);
  1136. void SetGlobalVar(StringHash, const Variant&);
  1137. void SetInstanceDefault(bool);
  1138. void SetInterceptNetworkUpdate(const String&, bool);
  1139. bool SetLayer(const String&, uint8);
  1140. bool SetLooped(const String&, bool);
  1141. void SetNetAnimationsAttr(Array<uint8>);
  1142. void SetObjectAnimation(ObjectAnimation);
  1143. void SetObjectAnimationAttr(const ResourceRef&);
  1144. bool SetRemoveOnCompletion(const String&, bool);
  1145. bool SetSpeed(const String&, float);
  1146. bool SetStartBone(const String&, const String&);
  1147. void SetTemporary(bool);
  1148. bool SetTime(const String&, float);
  1149. bool SetWeight(const String&, float);
  1150. bool Stop(const String&, float = 0.0f);
  1151. void StopAll(float = 0.0f);
  1152. void StopLayer(uint8, float = 0.0f);
  1153. const String& GetCategory() const;
  1154. const String& GetStartBoneName(const String&) const;
  1155. const String& GetTypeName() const;
  1156. void UnsubscribeFromAllEvents();
  1157. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1158. void UnsubscribeFromEvent(Object, StringHash);
  1159. void UnsubscribeFromEvent(StringHash);
  1160. void UnsubscribeFromEvents(Object);
  1161. void Update(float);
  1162. const Variant& GetGlobalVar(StringHash) const;
  1163. const VariantMap& GetGlobalVars() const;
  1164. int WeakRefs() const;
  1165. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  1166. void WriteInitialDeltaUpdate(Serializer&, uint8);
  1167. void WriteLatestDataUpdate(Serializer&, uint8);
  1168. operator const Animatable() const;
  1169. operator const Component() const;
  1170. operator const Object() const;
  1171. operator const RefCounted() const;
  1172. operator const Serializable() const;
  1173. // Properties:
  1174. bool animationEnabled;
  1175. /* readonly */
  1176. Array<AnimationControl> animations;
  1177. /* readonly */
  1178. Array<Variant> attributeDefaults;
  1179. /* readonly */
  1180. Array<AttributeInfo> attributeInfos;
  1181. Array<Variant> attributes;
  1182. /* readonly */
  1183. String category;
  1184. bool enabled;
  1185. /* readonly */
  1186. bool enabledEffective;
  1187. Array<Variant> globalVar;
  1188. /* readonly */
  1189. VariantMap globalVars;
  1190. /* readonly */
  1191. uint id;
  1192. /* readonly */
  1193. Node node;
  1194. /* readonly */
  1195. uint numAnimations;
  1196. /* readonly */
  1197. uint numAttributes;
  1198. ObjectAnimation objectAnimation;
  1199. /* readonly */
  1200. int refs;
  1201. /* readonly */
  1202. bool replicated;
  1203. bool temporary;
  1204. /* readonly */
  1205. StringHash type;
  1206. /* readonly */
  1207. String typeName;
  1208. /* readonly */
  1209. int weakRefs;
  1210. };
  1211. class AnimationKeyFrame
  1212. {
  1213. public:
  1214. ~AnimationKeyFrame();
  1215. AnimationKeyFrame();
  1216. // Methods:
  1217. AnimationKeyFrame& operator=(const AnimationKeyFrame&);
  1218. // Properties:
  1219. Vector3 position;
  1220. Quaternion rotation;
  1221. Vector3 scale;
  1222. float time;
  1223. };
  1224. class AnimationSet2D
  1225. {
  1226. public:
  1227. AnimationSet2D();
  1228. // Methods:
  1229. bool BeginLoad(Deserializer&);
  1230. bool EndLoad();
  1231. String GetAnimation(uint) const;
  1232. AsyncLoadState GetAsyncLoadState() const;
  1233. bool GetBlockEvents() const;
  1234. VariantMap& GetEventDataMap() const;
  1235. Object GetEventSender() const;
  1236. uint GetMemoryUse() const;
  1237. StringHash GetNameHash() const;
  1238. uint GetNumAnimations() const;
  1239. Sprite2D GetSprite() const;
  1240. Sprite2D GetSpriterFileSprite(int, int) const;
  1241. Object GetSubsystem(StringHash) const;
  1242. StringHash GetType() const;
  1243. uint GetUseTimer();
  1244. bool HasAnimation(const String&) const;
  1245. bool HasEventHandlers() const;
  1246. bool HasSubscribedToEvent(Object, StringHash) const;
  1247. bool HasSubscribedToEvent(StringHash) const;
  1248. bool IsInstanceOf(StringHash) const;
  1249. bool Load(Deserializer&);
  1250. bool Load(File);
  1251. bool Load(VectorBuffer&);
  1252. bool Load(const String&);
  1253. bool LoadFile(const String&);
  1254. operator Object() const;
  1255. void OnEvent(Object, StringHash, VariantMap&);
  1256. operator RefCounted() const;
  1257. int Refs() const;
  1258. void ResetUseTimer();
  1259. operator Resource() const;
  1260. bool Save(File) const;
  1261. bool Save(Serializer&) const;
  1262. bool Save(VectorBuffer&) const;
  1263. bool Save(const String&) const;
  1264. bool SaveFile(const String&) const;
  1265. void SendEvent(StringHash);
  1266. void SendEvent(StringHash, VariantMap&);
  1267. void SetAsyncLoadState(AsyncLoadState);
  1268. void SetBlockEvents(bool);
  1269. void SetGlobalVar(StringHash, const Variant&);
  1270. void SetMemoryUse(uint);
  1271. void SetName(const String&);
  1272. const String& GetCategory() const;
  1273. const String& GetName() const;
  1274. const String& GetTypeName() const;
  1275. void UnsubscribeFromAllEvents();
  1276. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1277. void UnsubscribeFromEvent(Object, StringHash);
  1278. void UnsubscribeFromEvent(StringHash);
  1279. void UnsubscribeFromEvents(Object);
  1280. const Variant& GetGlobalVar(StringHash) const;
  1281. const VariantMap& GetGlobalVars() const;
  1282. int WeakRefs() const;
  1283. operator const Object() const;
  1284. operator const RefCounted() const;
  1285. operator const Resource() const;
  1286. // Properties:
  1287. /* readonly */
  1288. String category;
  1289. Array<Variant> globalVar;
  1290. /* readonly */
  1291. VariantMap globalVars;
  1292. /* readonly */
  1293. uint memoryUse;
  1294. String name;
  1295. /* readonly */
  1296. uint numAnimations;
  1297. /* readonly */
  1298. int refs;
  1299. /* readonly */
  1300. StringHash type;
  1301. /* readonly */
  1302. String typeName;
  1303. /* readonly */
  1304. uint useTimer;
  1305. /* readonly */
  1306. int weakRefs;
  1307. };
  1308. class AnimationState
  1309. {
  1310. public:
  1311. AnimationState(AnimatedModel&, Animation&);
  1312. AnimationState(Node&, Animation&);
  1313. // Methods:
  1314. void AddTime(float);
  1315. void AddWeight(float);
  1316. void Apply();
  1317. Animation GetAnimation() const;
  1318. AnimationBlendMode GetBlendMode() const;
  1319. float GetBoneWeight(StringHash) const;
  1320. float GetBoneWeight(const String&) const;
  1321. float GetBoneWeight(uint) const;
  1322. uint8 GetLayer() const;
  1323. float GetLength() const;
  1324. AnimatedModel GetModel() const;
  1325. Node GetNode() const;
  1326. Bone GetStartBone() const;
  1327. float GetTime() const;
  1328. uint GetTrackIndex(Node) const;
  1329. uint GetTrackIndex(StringHash) const;
  1330. uint GetTrackIndex(const String&) const;
  1331. float GetWeight() const;
  1332. bool IsEnabled() const;
  1333. bool IsLooped() const;
  1334. operator RefCounted() const;
  1335. int Refs() const;
  1336. void SetBlendMode(AnimationBlendMode);
  1337. void SetBoneWeight(StringHash, float, bool = false);
  1338. void SetBoneWeight(const String&, float, bool = false);
  1339. void SetBoneWeight(uint, float, bool = false);
  1340. void SetLayer(uint8);
  1341. void SetLooped(bool);
  1342. void SetStartBone(Bone);
  1343. void SetTime(float);
  1344. void SetWeight(float);
  1345. int WeakRefs() const;
  1346. operator const RefCounted() const;
  1347. // Properties:
  1348. /* readonly */
  1349. Animation animation;
  1350. AnimationBlendMode blendMode;
  1351. Array<float> boneWeights;
  1352. /* readonly */
  1353. bool enabled;
  1354. uint8 layer;
  1355. /* readonly */
  1356. float length;
  1357. bool looped;
  1358. /* readonly */
  1359. AnimatedModel model;
  1360. /* readonly */
  1361. Node node;
  1362. /* readonly */
  1363. int refs;
  1364. Bone startBone;
  1365. float time;
  1366. /* readonly */
  1367. int weakRefs;
  1368. float weight;
  1369. };
  1370. class AnimationStateTrack
  1371. {
  1372. public:
  1373. ~AnimationStateTrack();
  1374. AnimationStateTrack();
  1375. // Methods:
  1376. AnimationStateTrack& operator=(const AnimationStateTrack&);
  1377. // Properties:
  1378. uint keyFrame;
  1379. float weight;
  1380. };
  1381. class AnimationTrack
  1382. {
  1383. public:
  1384. // Methods:
  1385. AnimationTrack& operator=(const AnimationTrack&);
  1386. void AddKeyFrame(const AnimationKeyFrame&);
  1387. bool GetKeyFrameIndex(float, uint&) const;
  1388. uint GetNumKeyFrames() const;
  1389. void InsertKeyFrame(uint, const AnimationKeyFrame&);
  1390. void RemoveAllKeyFrames();
  1391. void RemoveKeyFrame(uint);
  1392. void SetKeyFrame(uint, const AnimationKeyFrame&);
  1393. // Properties:
  1394. uint8 channelMask;
  1395. Array<AnimationKeyFrame> keyFrames;
  1396. String name;
  1397. StringHash nameHash;
  1398. /* readonly */
  1399. uint numKeyFrames;
  1400. };
  1401. class AnimationTriggerPoint
  1402. {
  1403. public:
  1404. ~AnimationTriggerPoint();
  1405. AnimationTriggerPoint();
  1406. // Methods:
  1407. AnimationTriggerPoint& operator=(const AnimationTriggerPoint&);
  1408. // Properties:
  1409. Variant data;
  1410. float time;
  1411. };
  1412. class AreaAllocator
  1413. {
  1414. public:
  1415. ~AreaAllocator();
  1416. AreaAllocator();
  1417. AreaAllocator(int, int, bool = true);
  1418. AreaAllocator(int, int, int, int, bool = true);
  1419. // Methods:
  1420. AreaAllocator& operator=(const AreaAllocator&);
  1421. bool Allocate(int, int, int&, int&);
  1422. bool GetFastMode() const;
  1423. int GetHeight() const;
  1424. int GetWidth() const;
  1425. void Reset(int, int, int = 0, int = 0, bool = true);
  1426. };
  1427. template <typename T>
  1428. class Array
  1429. {
  1430. public:
  1431. Array(int&in);
  1432. Array(int&in, uint);
  1433. Array(int&in, uint, const T&in);
  1434. // Methods:
  1435. Array<Array<T>& operator=(const T>&);
  1436. bool operator==(const Array<T>&) const;
  1437. T& operator[](uint);
  1438. void Clear();
  1439. void Erase(uint);
  1440. int Find(const T&) const;
  1441. int Find(uint, const T&) const;
  1442. int FindByRef(const T&) const;
  1443. int FindByRef(uint, const T&) const;
  1444. void Insert(uint, const T&);
  1445. void Pop();
  1446. void Push(const T&);
  1447. void Reserve(uint);
  1448. void Resize(uint);
  1449. void Reverse();
  1450. void Sort();
  1451. void Sort(uint, uint);
  1452. void SortReverse();
  1453. void SortReverse(uint, uint);
  1454. bool Swap(Array<T>&);
  1455. const T& operator[](uint) const;
  1456. // Properties:
  1457. /* readonly */
  1458. bool empty;
  1459. uint length;
  1460. };
  1461. class AsyncProgress
  1462. {
  1463. public:
  1464. ~AsyncProgress();
  1465. AsyncProgress();
  1466. // Methods:
  1467. AsyncProgress& operator=(const AsyncProgress&);
  1468. // Properties:
  1469. uint jsonIndex;
  1470. uint loadedNodes;
  1471. uint loadedResources;
  1472. LoadMode mode;
  1473. uint totalNodes;
  1474. uint totalResources;
  1475. XMLElement xmlElement;
  1476. };
  1477. class AttributeAccessor
  1478. {
  1479. public:
  1480. // Methods:
  1481. void Get(Serializable, Variant&) const;
  1482. operator RefCounted() const;
  1483. int Refs() const;
  1484. void Set(Serializable, const Variant&);
  1485. int WeakRefs() const;
  1486. operator const RefCounted() const;
  1487. // Properties:
  1488. /* readonly */
  1489. int refs;
  1490. /* readonly */
  1491. int weakRefs;
  1492. };
  1493. class AttributeAnimationInfo
  1494. {
  1495. public:
  1496. AttributeAnimationInfo(Animatable&, const AttributeInfo&in, ValueAnimation&, WrapMode, float);
  1497. AttributeAnimationInfo(const AttributeAnimationInfo&in);
  1498. // Methods:
  1499. const AttributeInfo& GetAttributeInfo() const;
  1500. ValueAnimation GetAnimation() const;
  1501. float GetSpeed() const;
  1502. Object GetTarget() const;
  1503. float GetTime() const;
  1504. WrapMode GetWrapMode() const;
  1505. operator RefCounted() const;
  1506. int Refs() const;
  1507. void SetSpeed(float);
  1508. bool SetTime(float);
  1509. void SetWrapMode(WrapMode);
  1510. bool Update(float);
  1511. operator ValueAnimationInfo() const;
  1512. int WeakRefs() const;
  1513. operator const RefCounted() const;
  1514. operator const ValueAnimationInfo() const;
  1515. // Properties:
  1516. /* readonly */
  1517. int refs;
  1518. /* readonly */
  1519. int weakRefs;
  1520. };
  1521. class AttributeInfo
  1522. {
  1523. public:
  1524. ~AttributeInfo();
  1525. AttributeInfo();
  1526. // Methods:
  1527. AttributeInfo& operator=(const AttributeInfo&);
  1528. const Variant& GetMetadata(const StringHash&) const;
  1529. // Properties:
  1530. Variant defaultValue;
  1531. /* readonly */
  1532. Array<String> enumNames;
  1533. VariantMap metadata;
  1534. int mode;
  1535. String name;
  1536. VariantType type;
  1537. };
  1538. class Audio
  1539. {
  1540. public:
  1541. Audio();
  1542. // Methods:
  1543. void AddSoundSource(SoundSource);
  1544. bool GetBlockEvents() const;
  1545. VariantMap& GetEventDataMap() const;
  1546. Object GetEventSender() const;
  1547. bool GetInterpolation() const;
  1548. SoundListener GetListener() const;
  1549. float GetMasterGain(const String&) const;
  1550. int GetMixRate() const;
  1551. Mutex& GetMutex();
  1552. uint GetSampleSize() const;
  1553. float GetSoundSourceMasterGain(StringHash) const;
  1554. Array<SoundSource> GetSoundSources() const;
  1555. Object GetSubsystem(StringHash) const;
  1556. StringHash GetType() const;
  1557. bool HasEventHandlers() const;
  1558. bool HasMasterGain(const String&) const;
  1559. bool HasSubscribedToEvent(Object, StringHash) const;
  1560. bool HasSubscribedToEvent(StringHash) const;
  1561. bool IsInitialized() const;
  1562. bool IsInstanceOf(StringHash) const;
  1563. bool IsPlaying() const;
  1564. bool IsSoundTypePaused(const String&) const;
  1565. bool IsStereo() const;
  1566. operator Object() const;
  1567. void OnEvent(Object, StringHash, VariantMap&);
  1568. void PauseSoundType(const String&);
  1569. bool Play();
  1570. operator RefCounted() const;
  1571. int Refs() const;
  1572. void RemoveSoundSource(SoundSource);
  1573. void ResumeAll();
  1574. void ResumeSoundType(const String&);
  1575. void SendEvent(StringHash);
  1576. void SendEvent(StringHash, VariantMap&);
  1577. void SetBlockEvents(bool);
  1578. void SetGlobalVar(StringHash, const Variant&);
  1579. void SetListener(SoundListener);
  1580. void SetMasterGain(const String&, float);
  1581. bool SetMode(int, int, bool, bool = true);
  1582. void Stop();
  1583. void StopSound(Sound);
  1584. const String& GetCategory() const;
  1585. const String& GetTypeName() const;
  1586. void UnsubscribeFromAllEvents();
  1587. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1588. void UnsubscribeFromEvent(Object, StringHash);
  1589. void UnsubscribeFromEvent(StringHash);
  1590. void UnsubscribeFromEvents(Object);
  1591. void Update(float);
  1592. const Variant& GetGlobalVar(StringHash) const;
  1593. const VariantMap& GetGlobalVars() const;
  1594. int WeakRefs() const;
  1595. operator const Object() const;
  1596. operator const RefCounted() const;
  1597. // Properties:
  1598. /* readonly */
  1599. String category;
  1600. Array<Variant> globalVar;
  1601. /* readonly */
  1602. VariantMap globalVars;
  1603. /* readonly */
  1604. bool initialized;
  1605. /* readonly */
  1606. bool interpolation;
  1607. SoundListener listener;
  1608. Array<float> masterGain;
  1609. /* readonly */
  1610. int mixRate;
  1611. /* readonly */
  1612. bool playing;
  1613. /* readonly */
  1614. int refs;
  1615. /* readonly */
  1616. uint sampleSize;
  1617. /* readonly */
  1618. bool stereo;
  1619. /* readonly */
  1620. StringHash type;
  1621. /* readonly */
  1622. String typeName;
  1623. /* readonly */
  1624. int weakRefs;
  1625. };
  1626. class BackgroundLoadItem
  1627. {
  1628. public:
  1629. ~BackgroundLoadItem();
  1630. BackgroundLoadItem();
  1631. // Methods:
  1632. BackgroundLoadItem& operator=(const BackgroundLoadItem&);
  1633. // Properties:
  1634. bool sendEventOnFailure;
  1635. };
  1636. class Batch
  1637. {
  1638. public:
  1639. ~Batch();
  1640. Batch();
  1641. Batch(const SourceBatch&in);
  1642. // Methods:
  1643. Batch& operator=(const Batch&);
  1644. void CalculateSortKey();
  1645. void Draw(View, Camera, bool) const;
  1646. void Prepare(View, Camera, bool, bool) const;
  1647. // Properties:
  1648. float distance;
  1649. GeometryType geometryType;
  1650. bool isBase;
  1651. uint8 lightMask;
  1652. uint numWorldTransforms;
  1653. uint8 renderOrder;
  1654. uint64 sortKey;
  1655. };
  1656. class BatchGroup
  1657. {
  1658. public:
  1659. ~BatchGroup();
  1660. BatchGroup();
  1661. BatchGroup(const Batch&in);
  1662. // Methods:
  1663. BatchGroup& operator=(const BatchGroup&);
  1664. void AddTransforms(const Batch&);
  1665. void CalculateSortKey();
  1666. void Draw(View, Camera, bool) const;
  1667. void Prepare(View, Camera, bool, bool) const;
  1668. // Properties:
  1669. float distance;
  1670. GeometryType geometryType;
  1671. bool isBase;
  1672. uint8 lightMask;
  1673. uint numWorldTransforms;
  1674. uint8 renderOrder;
  1675. uint64 sortKey;
  1676. uint startIndex;
  1677. };
  1678. class BatchGroupKey
  1679. {
  1680. public:
  1681. ~BatchGroupKey();
  1682. BatchGroupKey();
  1683. BatchGroupKey(const Batch&in);
  1684. // Methods:
  1685. BatchGroupKey& operator=(const BatchGroupKey&);
  1686. bool operator==(const BatchGroupKey&) const;
  1687. uint ToHash() const;
  1688. // Properties:
  1689. uint8 renderOrder;
  1690. };
  1691. class BatchQueue
  1692. {
  1693. public:
  1694. ~BatchQueue();
  1695. BatchQueue();
  1696. // Methods:
  1697. BatchQueue& operator=(const BatchQueue&);
  1698. void Clear(int);
  1699. void Draw(View, Camera, bool, bool, bool) const;
  1700. uint GetNumInstances() const;
  1701. bool IsEmpty() const;
  1702. void SortBackToFront();
  1703. void SortFrontToBack();
  1704. // Properties:
  1705. bool hasExtraDefines;
  1706. uint maxSortedInstances;
  1707. String psExtraDefines;
  1708. StringHash psExtraDefinesHash;
  1709. String vsExtraDefines;
  1710. StringHash vsExtraDefinesHash;
  1711. };
  1712. class BiasParameters
  1713. {
  1714. public:
  1715. BiasParameters();
  1716. BiasParameters(float, float, float = 0.0f);
  1717. // Methods:
  1718. BiasParameters& operator=(const BiasParameters&);
  1719. void Validate();
  1720. // Properties:
  1721. float constantBias;
  1722. float normalOffset;
  1723. float slopeScaledBias;
  1724. };
  1725. class BigInt
  1726. {
  1727. public:
  1728. ~BigInt();
  1729. BigInt();
  1730. BigInt(const String&in);
  1731. BigInt(int);
  1732. BigInt(int64);
  1733. BigInt(uint);
  1734. BigInt(uint64);
  1735. // Methods:
  1736. BigInt operator+(const BigInt&) const;
  1737. BigInt& operator++();
  1738. BigInt operator++(int);
  1739. BigInt& operator+=(const BigInt&);
  1740. int operator<(const BigInt&) const;
  1741. BigInt& operator=(const BigInt&);
  1742. bool operator==(const BigInt&) const;
  1743. bool IsNegative() const;
  1744. bool IsPositive() const;
  1745. bool IsZero() const;
  1746. String ToString() const;
  1747. };
  1748. class Billboard
  1749. {
  1750. public:
  1751. // Methods:
  1752. Billboard& operator=(const Billboard&);
  1753. // Properties:
  1754. Color color;
  1755. Vector3 direction;
  1756. bool enabled;
  1757. Vector3 position;
  1758. float rotation;
  1759. float screenScaleFactor;
  1760. Vector2 size;
  1761. float sortDistance;
  1762. Rect uv;
  1763. };
  1764. class BillboardSet
  1765. {
  1766. public:
  1767. BillboardSet();
  1768. // Methods:
  1769. void AddLight(Light);
  1770. void AddVertexLight(Light);
  1771. void AllocateNetworkState();
  1772. operator Animatable() const;
  1773. void ApplyAttributes();
  1774. const BoundingBox& GetBoundingBox() const;
  1775. const BoundingBox& GetWorldBoundingBox();
  1776. void CleanupConnection(Connection);
  1777. void Commit();
  1778. operator Component() const;
  1779. void DrawDebugGeometry(DebugRenderer, bool);
  1780. bool DrawOcclusion(OcclusionBuffer);
  1781. operator Drawable() const;
  1782. bool GetAnimationEnabled() const;
  1783. float GetAnimationLodBias() const;
  1784. Variant GetAttribute(const String&) const;
  1785. Variant GetAttribute(uint) const;
  1786. ValueAnimation GetAttributeAnimation(const String&) const;
  1787. float GetAttributeAnimationSpeed(const String&) const;
  1788. float GetAttributeAnimationTime(const String&) const;
  1789. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  1790. Variant GetAttributeDefault(const String&) const;
  1791. Variant GetAttributeDefault(uint) const;
  1792. Array<SourceBatch> GetBatches() const;
  1793. Billboard GetBillboard(uint);
  1794. bool GetBlockEvents() const;
  1795. bool GetCastShadows() const;
  1796. Component GetComponent(StringHash) const;
  1797. float GetDistance() const;
  1798. float GetDrawDistance() const;
  1799. uint8 GetDrawableFlags() const;
  1800. VariantMap& GetEventDataMap() const;
  1801. Object GetEventSender() const;
  1802. FaceCameraMode GetFaceCameraMode() const;
  1803. Light GetFirstLight() const;
  1804. uint GetID() const;
  1805. bool GetInterceptNetworkUpdate(const String&) const;
  1806. uint GetLightMask() const;
  1807. Array<Light> GetLights() const;
  1808. float GetLodBias() const;
  1809. float GetLodDistance() const;
  1810. Geometry GetLodGeometry(uint, uint);
  1811. Material GetMaterial() const;
  1812. ResourceRef GetMaterialAttr() const;
  1813. uint GetMaxLights() const;
  1814. float GetMaxZ() const;
  1815. float GetMinAngle() const;
  1816. float GetMinZ() const;
  1817. Array<uint8> GetNetBillboardsAttr() const;
  1818. Node GetNode() const;
  1819. uint GetNumAttributes() const;
  1820. uint GetNumBillboards() const;
  1821. uint GetNumNetworkAttributes() const;
  1822. uint GetNumOccluderTriangles();
  1823. ObjectAnimation GetObjectAnimation() const;
  1824. ResourceRef GetObjectAnimationAttr() const;
  1825. Scene GetScene() const;
  1826. float GetShadowDistance() const;
  1827. uint GetShadowMask() const;
  1828. float GetSortValue() const;
  1829. Object GetSubsystem(StringHash) const;
  1830. StringHash GetType() const;
  1831. UpdateGeometryType GetUpdateGeometryType();
  1832. Array<Light> GetVertexLights() const;
  1833. uint GetViewMask() const;
  1834. Zone GetZone() const;
  1835. uint GetZoneMask() const;
  1836. bool HasBasePass(uint) const;
  1837. bool HasEventHandlers() const;
  1838. bool HasSubscribedToEvent(Object, StringHash) const;
  1839. bool HasSubscribedToEvent(StringHash) const;
  1840. bool IsEnabled() const;
  1841. bool IsEnabledEffective() const;
  1842. bool IsFixedScreenSize() const;
  1843. bool IsInView() const;
  1844. bool IsInView(Camera) const;
  1845. bool IsInView(const FrameInfo&, bool = false) const;
  1846. bool IsInstanceOf(StringHash) const;
  1847. bool IsOccludee() const;
  1848. bool IsOccluder() const;
  1849. bool IsRelative() const;
  1850. bool IsReplicated() const;
  1851. bool IsScaled() const;
  1852. bool IsSorted() const;
  1853. bool IsTemporary() const;
  1854. bool IsZoneDirty() const;
  1855. void LimitLights();
  1856. void LimitVertexLights(bool);
  1857. bool Load(Deserializer&);
  1858. bool LoadJSON(const JSONValue&);
  1859. bool LoadXML(const XMLElement&);
  1860. void MarkForUpdate();
  1861. void MarkInView(const FrameInfo&);
  1862. void MarkInView(int);
  1863. void MarkNetworkUpdate();
  1864. operator Object() const;
  1865. void OnEvent(Object, StringHash, VariantMap&);
  1866. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  1867. void OnSetAttribute(const AttributeInfo&, const Variant&);
  1868. void OnSetEnabled();
  1869. operator ParticleEmitter() const;
  1870. void PrepareNetworkUpdate();
  1871. bool ReadDeltaUpdate(Deserializer&);
  1872. bool ReadLatestDataUpdate(Deserializer&);
  1873. operator RefCounted() const;
  1874. int Refs() const;
  1875. void Remove();
  1876. void RemoveAttributeAnimation(const String&);
  1877. void RemoveInstanceDefault();
  1878. void RemoveObjectAnimation();
  1879. void ResetToDefault();
  1880. bool Save(Serializer&) const;
  1881. bool SaveDefaultAttributes() const;
  1882. bool SaveJSON(JSONValue&) const;
  1883. bool SaveXML(XMLElement&) const;
  1884. void SendEvent(StringHash);
  1885. void SendEvent(StringHash, VariantMap&);
  1886. operator Serializable() const;
  1887. void SetAnimationEnabled(bool);
  1888. void SetAnimationLodBias(float);
  1889. void SetAnimationTime(float);
  1890. bool SetAttribute(const String&, const Variant&);
  1891. bool SetAttribute(uint, const Variant&);
  1892. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  1893. void SetAttributeAnimationSpeed(const String&, float);
  1894. void SetAttributeAnimationTime(const String&, float);
  1895. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  1896. void SetBasePass(uint);
  1897. void SetBlockEvents(bool);
  1898. void SetCastShadows(bool);
  1899. void SetDrawDistance(float);
  1900. void SetEnabled(bool);
  1901. void SetFaceCameraMode(FaceCameraMode);
  1902. void SetFixedScreenSize(bool);
  1903. void SetGlobalVar(StringHash, const Variant&);
  1904. void SetInstanceDefault(bool);
  1905. void SetInterceptNetworkUpdate(const String&, bool);
  1906. void SetLightMask(uint);
  1907. void SetLodBias(float);
  1908. void SetMaterial(Material);
  1909. void SetMaterialAttr(const ResourceRef&);
  1910. void SetMaxLights(uint);
  1911. void SetMinAngle(float);
  1912. void SetMinMaxZ(float, float);
  1913. void SetNetBillboardsAttr(Array<uint8>);
  1914. void SetNumBillboards(uint);
  1915. void SetObjectAnimation(ObjectAnimation);
  1916. void SetObjectAnimationAttr(const ResourceRef&);
  1917. void SetOccludee(bool);
  1918. void SetOccluder(bool);
  1919. void SetRelative(bool);
  1920. void SetScaled(bool);
  1921. void SetShadowDistance(float);
  1922. void SetShadowMask(uint);
  1923. void SetSortValue(float);
  1924. void SetSorted(bool);
  1925. void SetTemporary(bool);
  1926. void SetViewMask(uint);
  1927. void SetZone(Zone, bool = false);
  1928. void SetZoneMask(uint);
  1929. const String& GetCategory() const;
  1930. const String& GetTypeName() const;
  1931. void UnsubscribeFromAllEvents();
  1932. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  1933. void UnsubscribeFromEvent(Object, StringHash);
  1934. void UnsubscribeFromEvent(StringHash);
  1935. void UnsubscribeFromEvents(Object);
  1936. void Update(const FrameInfo&);
  1937. void UpdateBatches(const FrameInfo&);
  1938. void UpdateGeometry(const FrameInfo&);
  1939. const Variant& GetGlobalVar(StringHash) const;
  1940. const VariantMap& GetGlobalVars() const;
  1941. int WeakRefs() const;
  1942. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  1943. void WriteInitialDeltaUpdate(Serializer&, uint8);
  1944. void WriteLatestDataUpdate(Serializer&, uint8);
  1945. operator const Animatable() const;
  1946. operator const Component() const;
  1947. operator const Drawable() const;
  1948. operator const Object() const;
  1949. operator const ParticleEmitter() const;
  1950. operator const RefCounted() const;
  1951. operator const Serializable() const;
  1952. // Properties:
  1953. bool animationEnabled;
  1954. float animationLodBias;
  1955. /* readonly */
  1956. Array<Variant> attributeDefaults;
  1957. /* readonly */
  1958. Array<AttributeInfo> attributeInfos;
  1959. Array<Variant> attributes;
  1960. /* readonly */
  1961. Array<Billboard> billboards;
  1962. /* readonly */
  1963. BoundingBox boundingBox;
  1964. bool castShadows;
  1965. /* readonly */
  1966. String category;
  1967. float drawDistance;
  1968. bool enabled;
  1969. /* readonly */
  1970. bool enabledEffective;
  1971. FaceCameraMode faceCameraMode;
  1972. bool fixedScreenSize;
  1973. Array<Variant> globalVar;
  1974. /* readonly */
  1975. VariantMap globalVars;
  1976. /* readonly */
  1977. uint id;
  1978. /* readonly */
  1979. bool inView;
  1980. uint lightMask;
  1981. float lodBias;
  1982. Material material;
  1983. uint maxLights;
  1984. float minAngle;
  1985. /* readonly */
  1986. Node node;
  1987. /* readonly */
  1988. uint numAttributes;
  1989. uint numBillboards;
  1990. ObjectAnimation objectAnimation;
  1991. bool occludee;
  1992. bool occluder;
  1993. /* readonly */
  1994. int refs;
  1995. bool relative;
  1996. /* readonly */
  1997. bool replicated;
  1998. bool scaled;
  1999. float shadowDistance;
  2000. uint shadowMask;
  2001. bool sorted;
  2002. bool temporary;
  2003. /* readonly */
  2004. StringHash type;
  2005. /* readonly */
  2006. String typeName;
  2007. uint viewMask;
  2008. /* readonly */
  2009. int weakRefs;
  2010. /* readonly */
  2011. BoundingBox worldBoundingBox;
  2012. /* readonly */
  2013. Zone zone;
  2014. uint zoneMask;
  2015. };
  2016. class Bone
  2017. {
  2018. public:
  2019. // Methods:
  2020. Bone& operator=(const Bone&);
  2021. // Properties:
  2022. bool animated;
  2023. BoundingBox boundingBox;
  2024. uint8 collisionMask;
  2025. Vector3 initialPosition;
  2026. Quaternion initialRotation;
  2027. Vector3 initialScale;
  2028. String name;
  2029. StringHash nameHash;
  2030. Node node;
  2031. Matrix3x4 offsetMatrix;
  2032. int parentIndex;
  2033. float radius;
  2034. };
  2035. class BorderImage
  2036. {
  2037. public:
  2038. BorderImage();
  2039. BorderImage(const String&in);
  2040. // Methods:
  2041. void AddChild(UIElement);
  2042. void AddTag(const String&);
  2043. void AddTags(Array<String>);
  2044. void AddTags(const String&, int8 = ';');
  2045. void AdjustScissor(IntRect&);
  2046. void AllocateNetworkState();
  2047. operator Animatable() const;
  2048. void ApplyAttributes();
  2049. void BringToFront();
  2050. operator Button() const;
  2051. operator CheckBox() const;
  2052. const Color& GetColor(Corner) const;
  2053. const Color& GetColorAttr() const;
  2054. const Color& GetDerivedColor() const;
  2055. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  2056. operator Cursor() const;
  2057. void DisableLayoutUpdate();
  2058. operator DropDownList() const;
  2059. IntVector2 ElementToScreen(const IntVector2&);
  2060. void EnableLayoutUpdate();
  2061. bool FilterAttributes(XMLElement&) const;
  2062. int FindChild(UIElement) const;
  2063. bool GetAnimationEnabled() const;
  2064. Variant GetAttribute(const String&) const;
  2065. Variant GetAttribute(uint) const;
  2066. ValueAnimation GetAttributeAnimation(const String&) const;
  2067. float GetAttributeAnimationSpeed(const String&) const;
  2068. float GetAttributeAnimationTime(const String&) const;
  2069. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2070. Variant GetAttributeDefault(const String&) const;
  2071. Variant GetAttributeDefault(uint) const;
  2072. BlendMode GetBlendMode() const;
  2073. bool GetBlockEvents() const;
  2074. bool GetBringToBack() const;
  2075. bool GetBringToFront() const;
  2076. UIElement GetChild(const String&, bool = false) const;
  2077. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  2078. UIElement GetChild(int) const;
  2079. Array<UIElement> GetChildren() const;
  2080. Array<UIElement> GetChildren(bool) const;
  2081. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  2082. bool GetClipChildren() const;
  2083. IntRect GetCombinedScreenRect();
  2084. XMLFile GetDefaultStyle(bool = true) const;
  2085. float GetDerivedOpacity() const;
  2086. uint GetDragButtonCombo() const;
  2087. int GetDragButtonCount() const;
  2088. uint GetDragDropMode() const;
  2089. IntVector2 GetEffectiveMinSize() const;
  2090. UIElement GetElementEventSender() const;
  2091. bool GetEnableAnchor() const;
  2092. VariantMap& GetEventDataMap() const;
  2093. Object GetEventSender() const;
  2094. FocusMode GetFocusMode() const;
  2095. int GetHeight() const;
  2096. HorizontalAlignment GetHorizontalAlignment() const;
  2097. int GetIndent() const;
  2098. int GetIndentSpacing() const;
  2099. int GetIndentWidth() const;
  2100. bool GetInterceptNetworkUpdate(const String&) const;
  2101. int GetLayoutElementMaxSize() const;
  2102. LayoutMode GetLayoutMode() const;
  2103. int GetLayoutSpacing() const;
  2104. Material GetMaterial() const;
  2105. ResourceRef GetMaterialAttr() const;
  2106. int GetMaxHeight() const;
  2107. int GetMaxWidth() const;
  2108. int GetMinHeight() const;
  2109. int GetMinWidth() const;
  2110. uint GetNumAttributes() const;
  2111. int GetNumChildren(bool = false) const;
  2112. uint GetNumNetworkAttributes() const;
  2113. ObjectAnimation GetObjectAnimation() const;
  2114. ResourceRef GetObjectAnimationAttr() const;
  2115. float GetOpacity() const;
  2116. UIElement GetParent() const;
  2117. int GetPriority() const;
  2118. UIElement GetRoot() const;
  2119. bool GetSortChildren() const;
  2120. Object GetSubsystem(StringHash) const;
  2121. Array<String> GetTags() const;
  2122. Texture GetTexture() const;
  2123. ResourceRef GetTextureAttr() const;
  2124. TraversalMode GetTraversalMode() const;
  2125. StringHash GetType() const;
  2126. bool GetUseDerivedOpacity() const;
  2127. VerticalAlignment GetVerticalAlignment() const;
  2128. int GetWidth() const;
  2129. bool HasColorGradient() const;
  2130. bool HasEventHandlers() const;
  2131. bool HasFocus() const;
  2132. bool HasSubscribedToEvent(Object, StringHash) const;
  2133. bool HasSubscribedToEvent(StringHash) const;
  2134. bool HasTag(const String&) const;
  2135. void InsertChild(int, UIElement);
  2136. const IntRect& GetBorder() const;
  2137. const IntRect& GetClipBorder() const;
  2138. const IntRect& GetImageBorder() const;
  2139. const IntRect& GetImageRect() const;
  2140. const IntRect& GetLayoutBorder() const;
  2141. const IntVector2& GetChildOffset() const;
  2142. const IntVector2& GetDisabledOffset() const;
  2143. const IntVector2& GetHoverOffset() const;
  2144. const IntVector2& GetMaxOffset() const;
  2145. const IntVector2& GetMaxSize() const;
  2146. const IntVector2& GetMinOffset() const;
  2147. const IntVector2& GetMinSize() const;
  2148. const IntVector2& GetPosition() const;
  2149. const IntVector2& GetScreenPosition() const;
  2150. const IntVector2& GetSize() const;
  2151. bool IsChildOf(UIElement) const;
  2152. bool IsEditable() const;
  2153. bool IsElementEventSender() const;
  2154. bool IsEnabled() const;
  2155. bool IsEnabledSelf() const;
  2156. bool IsFixedHeight() const;
  2157. bool IsFixedSize() const;
  2158. bool IsFixedWidth() const;
  2159. bool IsHovering() const;
  2160. bool IsInside(IntVector2, bool);
  2161. bool IsInsideCombined(IntVector2, bool);
  2162. bool IsInstanceOf(StringHash) const;
  2163. bool IsInternal() const;
  2164. bool IsSelected() const;
  2165. bool IsTemporary() const;
  2166. bool IsTiled() const;
  2167. bool IsVisible() const;
  2168. bool IsVisibleEffective() const;
  2169. bool IsWheelHandler() const;
  2170. bool IsWithinScissor(const IntRect&);
  2171. operator LineEdit() const;
  2172. bool Load(Deserializer&);
  2173. UIElement LoadChildXML(XMLFile, XMLFile);
  2174. UIElement LoadChildXML(const XMLElement&, XMLFile);
  2175. bool LoadJSON(const JSONValue&);
  2176. bool LoadXML(Deserializer&);
  2177. bool LoadXML(File);
  2178. bool LoadXML(VectorBuffer&);
  2179. bool LoadXML(XMLFile, XMLFile);
  2180. bool LoadXML(const XMLElement&);
  2181. bool LoadXML(const XMLElement&, XMLFile);
  2182. void MarkNetworkUpdate();
  2183. operator Menu() const;
  2184. operator Object() const;
  2185. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2186. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  2187. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2188. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2189. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2190. bool OnDragDropFinish(UIElement);
  2191. bool OnDragDropTest(UIElement);
  2192. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2193. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2194. void OnEvent(Object, StringHash, VariantMap&);
  2195. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  2196. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2197. void OnIndentSet();
  2198. void OnKey(uint, uint, uint);
  2199. void OnPositionSet(const IntVector2&);
  2200. void OnResize(const IntVector2&, const IntVector2&);
  2201. void OnSetAttribute(const AttributeInfo&, const Variant&);
  2202. void OnSetEditable();
  2203. void OnTextInput(const String&);
  2204. void OnWheel(int, uint, uint);
  2205. operator ProgressBar() const;
  2206. bool ReadDeltaUpdate(Deserializer&);
  2207. bool ReadLatestDataUpdate(Deserializer&);
  2208. operator RefCounted() const;
  2209. int Refs() const;
  2210. void Remove();
  2211. void RemoveAllChildren();
  2212. void RemoveAllTags();
  2213. void RemoveAttributeAnimation(const String&);
  2214. void RemoveChild(UIElement, int = 0);
  2215. void RemoveChild(uint);
  2216. void RemoveChildAtIndex(int);
  2217. void RemoveInstanceDefault();
  2218. void RemoveObjectAnimation();
  2219. bool RemoveTag(const String&);
  2220. void ResetDeepEnabled();
  2221. void ResetToDefault();
  2222. bool Save(Serializer&) const;
  2223. bool SaveDefaultAttributes() const;
  2224. bool SaveJSON(JSONValue&) const;
  2225. bool SaveXML(File, const String& indentation = "\t");
  2226. bool SaveXML(Serializer&, const String& = "\t") const;
  2227. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  2228. bool SaveXML(XMLElement&) const;
  2229. IntVector2 ScreenToElement(const IntVector2&);
  2230. operator ScrollBar() const;
  2231. void SendEvent(StringHash);
  2232. void SendEvent(StringHash, VariantMap&);
  2233. operator Serializable() const;
  2234. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  2235. void SetAnimationEnabled(bool);
  2236. void SetAnimationTime(float);
  2237. bool SetAttribute(const String&, const Variant&);
  2238. bool SetAttribute(uint, const Variant&);
  2239. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2240. void SetAttributeAnimationSpeed(const String&, float);
  2241. void SetAttributeAnimationTime(const String&, float);
  2242. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2243. void SetBlendMode(BlendMode);
  2244. void SetBlockEvents(bool);
  2245. void SetBorder(const IntRect&);
  2246. void SetBringToBack(bool);
  2247. void SetBringToFront(bool);
  2248. void SetChildOffset(const IntVector2&);
  2249. void SetClipBorder(const IntRect&);
  2250. void SetClipChildren(bool);
  2251. void SetColor(Corner, const Color&);
  2252. void SetColor(const Color&);
  2253. void SetDeepEnabled(bool);
  2254. void SetDefaultStyle(XMLFile);
  2255. void SetDisabledOffset(const IntVector2&);
  2256. void SetDisabledOffset(int, int);
  2257. void SetDragDropMode(uint);
  2258. void SetEditable(bool);
  2259. void SetElementEventSender(bool);
  2260. void SetEnableAnchor(bool);
  2261. void SetEnabled(bool);
  2262. void SetEnabledRecursive(bool);
  2263. void SetFixedHeight(int);
  2264. void SetFixedSize(const IntVector2&);
  2265. void SetFixedSize(int, int);
  2266. void SetFixedWidth(int);
  2267. void SetFocus(bool);
  2268. void SetFocusMode(FocusMode);
  2269. void SetFullImageRect();
  2270. void SetGlobalVar(StringHash, const Variant&);
  2271. void SetHeight(int);
  2272. void SetHorizontalAlignment(HorizontalAlignment);
  2273. void SetHoverOffset(const IntVector2&);
  2274. void SetHoverOffset(int, int);
  2275. void SetHovering(bool);
  2276. void SetImageBorder(const IntRect&);
  2277. void SetImageRect(const IntRect&);
  2278. void SetIndent(int);
  2279. void SetIndentSpacing(int);
  2280. void SetInstanceDefault(bool);
  2281. void SetInterceptNetworkUpdate(const String&, bool);
  2282. void SetInternal(bool);
  2283. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  2284. void SetLayoutBorder(const IntRect&);
  2285. void SetLayoutFlexScale(const Vector2&);
  2286. void SetLayoutMode(LayoutMode);
  2287. void SetLayoutSpacing(int);
  2288. void SetMaterial(Material);
  2289. void SetMaterialAttr(const ResourceRef&);
  2290. void SetMaxAnchor(const Vector2&);
  2291. void SetMaxAnchor(float, float);
  2292. void SetMaxHeight(int);
  2293. void SetMaxOffset(const IntVector2&);
  2294. void SetMaxSize(const IntVector2&);
  2295. void SetMaxSize(int, int);
  2296. void SetMaxWidth(int);
  2297. void SetMinAnchor(const Vector2&);
  2298. void SetMinAnchor(float, float);
  2299. void SetMinHeight(int);
  2300. void SetMinOffset(const IntVector2&);
  2301. void SetMinSize(const IntVector2&);
  2302. void SetMinSize(int, int);
  2303. void SetMinWidth(int);
  2304. void SetName(const String&);
  2305. void SetObjectAnimation(ObjectAnimation);
  2306. void SetObjectAnimationAttr(const ResourceRef&);
  2307. void SetOpacity(float);
  2308. void SetParent(UIElement, int = ENDPOS);
  2309. void SetPivot(const Vector2&);
  2310. void SetPivot(float, float);
  2311. void SetPosition(const IntVector2&);
  2312. void SetPosition(int, int);
  2313. void SetPriority(int);
  2314. void SetRenderTexture(Texture2D);
  2315. void SetSelected(bool);
  2316. void SetSize(const IntVector2&);
  2317. void SetSize(int, int);
  2318. void SetSortChildren(bool);
  2319. bool SetStyle(const String&, XMLFile = null);
  2320. bool SetStyle(const XMLElement&);
  2321. bool SetStyleAuto(XMLFile = null);
  2322. void SetTags(Array<String>);
  2323. void SetTemporary(bool);
  2324. void SetTexture(Texture);
  2325. void SetTextureAttr(const ResourceRef&);
  2326. void SetTiled(bool);
  2327. void SetTraversalMode(TraversalMode);
  2328. void SetUseDerivedOpacity(bool);
  2329. void SetVar(StringHash, const Variant&);
  2330. void SetVerticalAlignment(VerticalAlignment);
  2331. void SetVisible(bool);
  2332. void SetWidth(int);
  2333. operator Slider() const;
  2334. void SortChildren();
  2335. const String& GetAppliedStyle() const;
  2336. const String& GetCategory() const;
  2337. const String& GetName() const;
  2338. const String& GetTypeName() const;
  2339. operator UIElement() const;
  2340. void UnsubscribeFromAllEvents();
  2341. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  2342. void UnsubscribeFromEvent(Object, StringHash);
  2343. void UnsubscribeFromEvent(StringHash);
  2344. void UnsubscribeFromEvents(Object);
  2345. void Update(float);
  2346. void UpdateLayout();
  2347. const Variant& GetGlobalVar(StringHash) const;
  2348. const Variant& GetVar(const StringHash&) const;
  2349. const VariantMap& GetGlobalVars() const;
  2350. const VariantMap& GetVars() const;
  2351. const Vector2& GetLayoutFlexScale() const;
  2352. const Vector2& GetMaxAnchor() const;
  2353. const Vector2& GetMinAnchor() const;
  2354. const Vector2& GetPivot() const;
  2355. operator View3D() const;
  2356. int WeakRefs() const;
  2357. operator Window() const;
  2358. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  2359. void WriteInitialDeltaUpdate(Serializer&, uint8);
  2360. void WriteLatestDataUpdate(Serializer&, uint8);
  2361. operator const Animatable() const;
  2362. operator const Button() const;
  2363. operator const CheckBox() const;
  2364. operator const Cursor() const;
  2365. operator const DropDownList() const;
  2366. operator const LineEdit() const;
  2367. operator const Menu() const;
  2368. operator const Object() const;
  2369. operator const ProgressBar() const;
  2370. operator const RefCounted() const;
  2371. operator const ScrollBar() const;
  2372. operator const Serializable() const;
  2373. operator const Slider() const;
  2374. operator const UIElement() const;
  2375. operator const View3D() const;
  2376. operator const Window() const;
  2377. // Properties:
  2378. bool animationEnabled;
  2379. /* readonly */
  2380. Array<Variant> attributeDefaults;
  2381. /* readonly */
  2382. Array<AttributeInfo> attributeInfos;
  2383. Array<Variant> attributes;
  2384. BlendMode blendMode;
  2385. IntRect border;
  2386. bool bringToBack;
  2387. bool bringToFront;
  2388. /* readonly */
  2389. String category;
  2390. /* readonly */
  2391. IntVector2 childOffset;
  2392. /* readonly */
  2393. Array<UIElement> children;
  2394. IntRect clipBorder;
  2395. bool clipChildren;
  2396. /* writeonly */
  2397. Color color;
  2398. /* readonly */
  2399. bool colorGradient;
  2400. Array<Color> colors;
  2401. /* readonly */
  2402. IntRect combinedScreenRect;
  2403. XMLFile defaultStyle;
  2404. /* readonly */
  2405. float derivedOpacity;
  2406. IntVector2 disabledOffset;
  2407. /* readonly */
  2408. uint dragButtonCombo;
  2409. /* readonly */
  2410. int dragButtonCount;
  2411. uint dragDropMode;
  2412. bool editable;
  2413. bool elementEventSender;
  2414. bool enableAnchor;
  2415. bool enabled;
  2416. /* readonly */
  2417. bool enabledSelf;
  2418. /* readonly */
  2419. bool fixedHeight;
  2420. /* readonly */
  2421. bool fixedSize;
  2422. /* readonly */
  2423. bool fixedWidth;
  2424. bool focus;
  2425. FocusMode focusMode;
  2426. Array<Variant> globalVar;
  2427. /* readonly */
  2428. VariantMap globalVars;
  2429. int height;
  2430. HorizontalAlignment horizontalAlignment;
  2431. IntVector2 hoverOffset;
  2432. /* readonly */
  2433. bool hovering;
  2434. IntRect imageBorder;
  2435. IntRect imageRect;
  2436. int indent;
  2437. int indentSpacing;
  2438. /* readonly */
  2439. int indentWidth;
  2440. bool internal;
  2441. IntRect layoutBorder;
  2442. Vector2 layoutFlexScale;
  2443. LayoutMode layoutMode;
  2444. int layoutSpacing;
  2445. Material material;
  2446. Vector2 maxAnchor;
  2447. int maxHeight;
  2448. IntVector2 maxOffset;
  2449. IntVector2 maxSize;
  2450. int maxWidth;
  2451. Vector2 minAnchor;
  2452. int minHeight;
  2453. IntVector2 minOffset;
  2454. IntVector2 minSize;
  2455. int minWidth;
  2456. String name;
  2457. /* readonly */
  2458. uint numAllChildren;
  2459. /* readonly */
  2460. uint numAttributes;
  2461. /* readonly */
  2462. uint numChildren;
  2463. ObjectAnimation objectAnimation;
  2464. float opacity;
  2465. UIElement parent;
  2466. Vector2 pivot;
  2467. IntVector2 position;
  2468. int priority;
  2469. /* readonly */
  2470. int refs;
  2471. /* readonly */
  2472. UIElement root;
  2473. /* readonly */
  2474. IntVector2 screenPosition;
  2475. bool selected;
  2476. IntVector2 size;
  2477. bool sortChildren;
  2478. String style;
  2479. /* readonly */
  2480. Array<String> tags;
  2481. bool temporary;
  2482. Texture texture;
  2483. bool tiled;
  2484. TraversalMode traversalMode;
  2485. /* readonly */
  2486. StringHash type;
  2487. /* readonly */
  2488. String typeName;
  2489. bool useDerivedOpacity;
  2490. /* readonly */
  2491. VariantMap vars;
  2492. VerticalAlignment verticalAlignment;
  2493. bool visible;
  2494. /* readonly */
  2495. bool visibleEffective;
  2496. /* readonly */
  2497. int weakRefs;
  2498. int width;
  2499. };
  2500. class BoundingBox
  2501. {
  2502. public:
  2503. BoundingBox();
  2504. BoundingBox(const BoundingBox&in);
  2505. BoundingBox(const Rect&in);
  2506. BoundingBox(const Vector3&in, const Vector3&in);
  2507. BoundingBox(float, float);
  2508. BoundingBox(const Frustum&in);
  2509. BoundingBox(const Polyhedron&in);
  2510. BoundingBox(const Sphere&in);
  2511. // Methods:
  2512. BoundingBox& operator=(const BoundingBox&);
  2513. BoundingBox& operator=(const Rect&);
  2514. bool operator==(const BoundingBox&) const;
  2515. Vector3 Center() const;
  2516. void Clear();
  2517. void Clip(const BoundingBox&);
  2518. void Define(const BoundingBox&);
  2519. void Define(const Frustum&);
  2520. void Define(const Polyhedron&);
  2521. void Define(const Rect&);
  2522. void Define(const Sphere&);
  2523. void Define(const Vector3&);
  2524. void Define(const Vector3&, const Vector3&);
  2525. void Define(float, float);
  2526. bool Defined() const;
  2527. float DistanceToPoint(const Vector3&) const;
  2528. Vector3 HalfSize() const;
  2529. Intersection IsInside(const BoundingBox&) const;
  2530. Intersection IsInside(const Sphere&) const;
  2531. Intersection IsInside(const Vector3&) const;
  2532. Intersection IsInsideFast(const BoundingBox&) const;
  2533. Intersection IsInsideFast(const Sphere&) const;
  2534. void Merge(const BoundingBox&);
  2535. void Merge(const Frustum&);
  2536. void Merge(const Polyhedron&);
  2537. void Merge(const Sphere&);
  2538. void Merge(const Vector3&);
  2539. Rect Projected(const Matrix4&) const;
  2540. Vector3 Size() const;
  2541. String ToString() const;
  2542. void Transform(const Matrix3&);
  2543. void Transform(const Matrix3x4&);
  2544. BoundingBox Transformed(const Matrix3&) const;
  2545. BoundingBox Transformed(const Matrix3x4&) const;
  2546. // Properties:
  2547. /* readonly */
  2548. Vector3 center;
  2549. float dummyMax;
  2550. float dummyMin;
  2551. /* readonly */
  2552. Vector3 halfSize;
  2553. Vector3 max;
  2554. Vector3 min;
  2555. /* readonly */
  2556. Vector3 size;
  2557. };
  2558. class BufferedSoundStream
  2559. {
  2560. public:
  2561. BufferedSoundStream();
  2562. // Methods:
  2563. void Clear();
  2564. float GetBufferLength() const;
  2565. uint GetBufferNumBytes() const;
  2566. float GetFrequency() const;
  2567. uint GetIntFrequency() const;
  2568. uint GetSampleSize() const;
  2569. bool GetStopAtEnd() const;
  2570. bool IsSixteenBit() const;
  2571. bool IsStereo() const;
  2572. operator RefCounted() const;
  2573. int Refs() const;
  2574. bool Seek(uint);
  2575. void SetFormat(uint, bool, bool);
  2576. void SetStopAtEnd(bool);
  2577. operator SoundStream() const;
  2578. int WeakRefs() const;
  2579. operator const RefCounted() const;
  2580. operator const SoundStream() const;
  2581. // Properties:
  2582. /* readonly */
  2583. int refs;
  2584. /* readonly */
  2585. int weakRefs;
  2586. };
  2587. class Button
  2588. {
  2589. public:
  2590. Button();
  2591. Button(const String&in);
  2592. // Methods:
  2593. void AddChild(UIElement);
  2594. void AddTag(const String&);
  2595. void AddTags(Array<String>);
  2596. void AddTags(const String&, int8 = ';');
  2597. void AdjustScissor(IntRect&);
  2598. void AllocateNetworkState();
  2599. operator Animatable() const;
  2600. void ApplyAttributes();
  2601. operator BorderImage() const;
  2602. void BringToFront();
  2603. const Color& GetColor(Corner) const;
  2604. const Color& GetColorAttr() const;
  2605. const Color& GetDerivedColor() const;
  2606. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  2607. void DisableLayoutUpdate();
  2608. operator DropDownList() const;
  2609. IntVector2 ElementToScreen(const IntVector2&);
  2610. void EnableLayoutUpdate();
  2611. bool FilterAttributes(XMLElement&) const;
  2612. int FindChild(UIElement) const;
  2613. bool GetAnimationEnabled() const;
  2614. Variant GetAttribute(const String&) const;
  2615. Variant GetAttribute(uint) const;
  2616. ValueAnimation GetAttributeAnimation(const String&) const;
  2617. float GetAttributeAnimationSpeed(const String&) const;
  2618. float GetAttributeAnimationTime(const String&) const;
  2619. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  2620. Variant GetAttributeDefault(const String&) const;
  2621. Variant GetAttributeDefault(uint) const;
  2622. BlendMode GetBlendMode() const;
  2623. bool GetBlockEvents() const;
  2624. bool GetBringToBack() const;
  2625. bool GetBringToFront() const;
  2626. UIElement GetChild(const String&, bool = false) const;
  2627. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  2628. UIElement GetChild(int) const;
  2629. Array<UIElement> GetChildren() const;
  2630. Array<UIElement> GetChildren(bool) const;
  2631. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  2632. bool GetClipChildren() const;
  2633. IntRect GetCombinedScreenRect();
  2634. XMLFile GetDefaultStyle(bool = true) const;
  2635. float GetDerivedOpacity() const;
  2636. uint GetDragButtonCombo() const;
  2637. int GetDragButtonCount() const;
  2638. uint GetDragDropMode() const;
  2639. IntVector2 GetEffectiveMinSize() const;
  2640. UIElement GetElementEventSender() const;
  2641. bool GetEnableAnchor() const;
  2642. VariantMap& GetEventDataMap() const;
  2643. Object GetEventSender() const;
  2644. FocusMode GetFocusMode() const;
  2645. int GetHeight() const;
  2646. HorizontalAlignment GetHorizontalAlignment() const;
  2647. int GetIndent() const;
  2648. int GetIndentSpacing() const;
  2649. int GetIndentWidth() const;
  2650. bool GetInterceptNetworkUpdate(const String&) const;
  2651. int GetLayoutElementMaxSize() const;
  2652. LayoutMode GetLayoutMode() const;
  2653. int GetLayoutSpacing() const;
  2654. Material GetMaterial() const;
  2655. ResourceRef GetMaterialAttr() const;
  2656. int GetMaxHeight() const;
  2657. int GetMaxWidth() const;
  2658. int GetMinHeight() const;
  2659. int GetMinWidth() const;
  2660. uint GetNumAttributes() const;
  2661. int GetNumChildren(bool = false) const;
  2662. uint GetNumNetworkAttributes() const;
  2663. ObjectAnimation GetObjectAnimation() const;
  2664. ResourceRef GetObjectAnimationAttr() const;
  2665. float GetOpacity() const;
  2666. UIElement GetParent() const;
  2667. int GetPriority() const;
  2668. float GetRepeatDelay() const;
  2669. float GetRepeatRate() const;
  2670. UIElement GetRoot() const;
  2671. bool GetSortChildren() const;
  2672. Object GetSubsystem(StringHash) const;
  2673. Array<String> GetTags() const;
  2674. Texture GetTexture() const;
  2675. ResourceRef GetTextureAttr() const;
  2676. TraversalMode GetTraversalMode() const;
  2677. StringHash GetType() const;
  2678. bool GetUseDerivedOpacity() const;
  2679. VerticalAlignment GetVerticalAlignment() const;
  2680. int GetWidth() const;
  2681. bool HasColorGradient() const;
  2682. bool HasEventHandlers() const;
  2683. bool HasFocus() const;
  2684. bool HasSubscribedToEvent(Object, StringHash) const;
  2685. bool HasSubscribedToEvent(StringHash) const;
  2686. bool HasTag(const String&) const;
  2687. void InsertChild(int, UIElement);
  2688. const IntRect& GetBorder() const;
  2689. const IntRect& GetClipBorder() const;
  2690. const IntRect& GetImageBorder() const;
  2691. const IntRect& GetImageRect() const;
  2692. const IntRect& GetLayoutBorder() const;
  2693. const IntVector2& GetChildOffset() const;
  2694. const IntVector2& GetDisabledOffset() const;
  2695. const IntVector2& GetHoverOffset() const;
  2696. const IntVector2& GetMaxOffset() const;
  2697. const IntVector2& GetMaxSize() const;
  2698. const IntVector2& GetMinOffset() const;
  2699. const IntVector2& GetMinSize() const;
  2700. const IntVector2& GetPosition() const;
  2701. const IntVector2& GetPressedChildOffset() const;
  2702. const IntVector2& GetPressedOffset() const;
  2703. const IntVector2& GetScreenPosition() const;
  2704. const IntVector2& GetSize() const;
  2705. bool IsChildOf(UIElement) const;
  2706. bool IsEditable() const;
  2707. bool IsElementEventSender() const;
  2708. bool IsEnabled() const;
  2709. bool IsEnabledSelf() const;
  2710. bool IsFixedHeight() const;
  2711. bool IsFixedSize() const;
  2712. bool IsFixedWidth() const;
  2713. bool IsHovering() const;
  2714. bool IsInside(IntVector2, bool);
  2715. bool IsInsideCombined(IntVector2, bool);
  2716. bool IsInstanceOf(StringHash) const;
  2717. bool IsInternal() const;
  2718. bool IsPressed() const;
  2719. bool IsSelected() const;
  2720. bool IsTemporary() const;
  2721. bool IsTiled() const;
  2722. bool IsVisible() const;
  2723. bool IsVisibleEffective() const;
  2724. bool IsWheelHandler() const;
  2725. bool IsWithinScissor(const IntRect&);
  2726. bool Load(Deserializer&);
  2727. UIElement LoadChildXML(XMLFile, XMLFile);
  2728. UIElement LoadChildXML(const XMLElement&, XMLFile);
  2729. bool LoadJSON(const JSONValue&);
  2730. bool LoadXML(Deserializer&);
  2731. bool LoadXML(File);
  2732. bool LoadXML(VectorBuffer&);
  2733. bool LoadXML(XMLFile, XMLFile);
  2734. bool LoadXML(const XMLElement&);
  2735. bool LoadXML(const XMLElement&, XMLFile);
  2736. void MarkNetworkUpdate();
  2737. operator Menu() const;
  2738. operator Object() const;
  2739. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2740. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  2741. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  2742. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2743. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2744. bool OnDragDropFinish(UIElement);
  2745. bool OnDragDropTest(UIElement);
  2746. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2747. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2748. void OnEvent(Object, StringHash, VariantMap&);
  2749. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  2750. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  2751. void OnIndentSet();
  2752. void OnKey(uint, uint, uint);
  2753. void OnPositionSet(const IntVector2&);
  2754. void OnResize(const IntVector2&, const IntVector2&);
  2755. void OnSetAttribute(const AttributeInfo&, const Variant&);
  2756. void OnSetEditable();
  2757. void OnTextInput(const String&);
  2758. void OnWheel(int, uint, uint);
  2759. bool ReadDeltaUpdate(Deserializer&);
  2760. bool ReadLatestDataUpdate(Deserializer&);
  2761. operator RefCounted() const;
  2762. int Refs() const;
  2763. void Remove();
  2764. void RemoveAllChildren();
  2765. void RemoveAllTags();
  2766. void RemoveAttributeAnimation(const String&);
  2767. void RemoveChild(UIElement, int = 0);
  2768. void RemoveChild(uint);
  2769. void RemoveChildAtIndex(int);
  2770. void RemoveInstanceDefault();
  2771. void RemoveObjectAnimation();
  2772. bool RemoveTag(const String&);
  2773. void ResetDeepEnabled();
  2774. void ResetToDefault();
  2775. bool Save(Serializer&) const;
  2776. bool SaveDefaultAttributes() const;
  2777. bool SaveJSON(JSONValue&) const;
  2778. bool SaveXML(File, const String& indentation = "\t");
  2779. bool SaveXML(Serializer&, const String& = "\t") const;
  2780. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  2781. bool SaveXML(XMLElement&) const;
  2782. IntVector2 ScreenToElement(const IntVector2&);
  2783. void SendEvent(StringHash);
  2784. void SendEvent(StringHash, VariantMap&);
  2785. operator Serializable() const;
  2786. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  2787. void SetAnimationEnabled(bool);
  2788. void SetAnimationTime(float);
  2789. bool SetAttribute(const String&, const Variant&);
  2790. bool SetAttribute(uint, const Variant&);
  2791. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  2792. void SetAttributeAnimationSpeed(const String&, float);
  2793. void SetAttributeAnimationTime(const String&, float);
  2794. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  2795. void SetBlendMode(BlendMode);
  2796. void SetBlockEvents(bool);
  2797. void SetBorder(const IntRect&);
  2798. void SetBringToBack(bool);
  2799. void SetBringToFront(bool);
  2800. void SetChildOffset(const IntVector2&);
  2801. void SetClipBorder(const IntRect&);
  2802. void SetClipChildren(bool);
  2803. void SetColor(Corner, const Color&);
  2804. void SetColor(const Color&);
  2805. void SetDeepEnabled(bool);
  2806. void SetDefaultStyle(XMLFile);
  2807. void SetDisabledOffset(const IntVector2&);
  2808. void SetDisabledOffset(int, int);
  2809. void SetDragDropMode(uint);
  2810. void SetEditable(bool);
  2811. void SetElementEventSender(bool);
  2812. void SetEnableAnchor(bool);
  2813. void SetEnabled(bool);
  2814. void SetEnabledRecursive(bool);
  2815. void SetFixedHeight(int);
  2816. void SetFixedSize(const IntVector2&);
  2817. void SetFixedSize(int, int);
  2818. void SetFixedWidth(int);
  2819. void SetFocus(bool);
  2820. void SetFocusMode(FocusMode);
  2821. void SetFullImageRect();
  2822. void SetGlobalVar(StringHash, const Variant&);
  2823. void SetHeight(int);
  2824. void SetHorizontalAlignment(HorizontalAlignment);
  2825. void SetHoverOffset(const IntVector2&);
  2826. void SetHoverOffset(int, int);
  2827. void SetHovering(bool);
  2828. void SetImageBorder(const IntRect&);
  2829. void SetImageRect(const IntRect&);
  2830. void SetIndent(int);
  2831. void SetIndentSpacing(int);
  2832. void SetInstanceDefault(bool);
  2833. void SetInterceptNetworkUpdate(const String&, bool);
  2834. void SetInternal(bool);
  2835. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  2836. void SetLayoutBorder(const IntRect&);
  2837. void SetLayoutFlexScale(const Vector2&);
  2838. void SetLayoutMode(LayoutMode);
  2839. void SetLayoutSpacing(int);
  2840. void SetMaterial(Material);
  2841. void SetMaterialAttr(const ResourceRef&);
  2842. void SetMaxAnchor(const Vector2&);
  2843. void SetMaxAnchor(float, float);
  2844. void SetMaxHeight(int);
  2845. void SetMaxOffset(const IntVector2&);
  2846. void SetMaxSize(const IntVector2&);
  2847. void SetMaxSize(int, int);
  2848. void SetMaxWidth(int);
  2849. void SetMinAnchor(const Vector2&);
  2850. void SetMinAnchor(float, float);
  2851. void SetMinHeight(int);
  2852. void SetMinOffset(const IntVector2&);
  2853. void SetMinSize(const IntVector2&);
  2854. void SetMinSize(int, int);
  2855. void SetMinWidth(int);
  2856. void SetName(const String&);
  2857. void SetObjectAnimation(ObjectAnimation);
  2858. void SetObjectAnimationAttr(const ResourceRef&);
  2859. void SetOpacity(float);
  2860. void SetParent(UIElement, int = ENDPOS);
  2861. void SetPivot(const Vector2&);
  2862. void SetPivot(float, float);
  2863. void SetPosition(const IntVector2&);
  2864. void SetPosition(int, int);
  2865. void SetPressedChildOffset(const IntVector2&);
  2866. void SetPressedChildOffset(int, int);
  2867. void SetPressedOffset(const IntVector2&);
  2868. void SetPressedOffset(int, int);
  2869. void SetPriority(int);
  2870. void SetRenderTexture(Texture2D);
  2871. void SetRepeat(float, float);
  2872. void SetRepeatDelay(float);
  2873. void SetRepeatRate(float);
  2874. void SetSelected(bool);
  2875. void SetSize(const IntVector2&);
  2876. void SetSize(int, int);
  2877. void SetSortChildren(bool);
  2878. bool SetStyle(const String&, XMLFile = null);
  2879. bool SetStyle(const XMLElement&);
  2880. bool SetStyleAuto(XMLFile = null);
  2881. void SetTags(Array<String>);
  2882. void SetTemporary(bool);
  2883. void SetTexture(Texture);
  2884. void SetTextureAttr(const ResourceRef&);
  2885. void SetTiled(bool);
  2886. void SetTraversalMode(TraversalMode);
  2887. void SetUseDerivedOpacity(bool);
  2888. void SetVar(StringHash, const Variant&);
  2889. void SetVerticalAlignment(VerticalAlignment);
  2890. void SetVisible(bool);
  2891. void SetWidth(int);
  2892. void SortChildren();
  2893. const String& GetAppliedStyle() const;
  2894. const String& GetCategory() const;
  2895. const String& GetName() const;
  2896. const String& GetTypeName() const;
  2897. operator UIElement() const;
  2898. void UnsubscribeFromAllEvents();
  2899. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  2900. void UnsubscribeFromEvent(Object, StringHash);
  2901. void UnsubscribeFromEvent(StringHash);
  2902. void UnsubscribeFromEvents(Object);
  2903. void Update(float);
  2904. void UpdateLayout();
  2905. const Variant& GetGlobalVar(StringHash) const;
  2906. const Variant& GetVar(const StringHash&) const;
  2907. const VariantMap& GetGlobalVars() const;
  2908. const VariantMap& GetVars() const;
  2909. const Vector2& GetLayoutFlexScale() const;
  2910. const Vector2& GetMaxAnchor() const;
  2911. const Vector2& GetMinAnchor() const;
  2912. const Vector2& GetPivot() const;
  2913. int WeakRefs() const;
  2914. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  2915. void WriteInitialDeltaUpdate(Serializer&, uint8);
  2916. void WriteLatestDataUpdate(Serializer&, uint8);
  2917. operator const Animatable() const;
  2918. operator const BorderImage() const;
  2919. operator const DropDownList() const;
  2920. operator const Menu() const;
  2921. operator const Object() const;
  2922. operator const RefCounted() const;
  2923. operator const Serializable() const;
  2924. operator const UIElement() const;
  2925. // Properties:
  2926. bool animationEnabled;
  2927. /* readonly */
  2928. Array<Variant> attributeDefaults;
  2929. /* readonly */
  2930. Array<AttributeInfo> attributeInfos;
  2931. Array<Variant> attributes;
  2932. BlendMode blendMode;
  2933. IntRect border;
  2934. bool bringToBack;
  2935. bool bringToFront;
  2936. /* readonly */
  2937. String category;
  2938. /* readonly */
  2939. IntVector2 childOffset;
  2940. /* readonly */
  2941. Array<UIElement> children;
  2942. IntRect clipBorder;
  2943. bool clipChildren;
  2944. /* writeonly */
  2945. Color color;
  2946. /* readonly */
  2947. bool colorGradient;
  2948. Array<Color> colors;
  2949. /* readonly */
  2950. IntRect combinedScreenRect;
  2951. XMLFile defaultStyle;
  2952. /* readonly */
  2953. float derivedOpacity;
  2954. IntVector2 disabledOffset;
  2955. /* readonly */
  2956. uint dragButtonCombo;
  2957. /* readonly */
  2958. int dragButtonCount;
  2959. uint dragDropMode;
  2960. bool editable;
  2961. bool elementEventSender;
  2962. bool enableAnchor;
  2963. bool enabled;
  2964. /* readonly */
  2965. bool enabledSelf;
  2966. /* readonly */
  2967. bool fixedHeight;
  2968. /* readonly */
  2969. bool fixedSize;
  2970. /* readonly */
  2971. bool fixedWidth;
  2972. bool focus;
  2973. FocusMode focusMode;
  2974. Array<Variant> globalVar;
  2975. /* readonly */
  2976. VariantMap globalVars;
  2977. int height;
  2978. HorizontalAlignment horizontalAlignment;
  2979. IntVector2 hoverOffset;
  2980. /* readonly */
  2981. bool hovering;
  2982. IntRect imageBorder;
  2983. IntRect imageRect;
  2984. int indent;
  2985. int indentSpacing;
  2986. /* readonly */
  2987. int indentWidth;
  2988. bool internal;
  2989. IntRect layoutBorder;
  2990. Vector2 layoutFlexScale;
  2991. LayoutMode layoutMode;
  2992. int layoutSpacing;
  2993. Material material;
  2994. Vector2 maxAnchor;
  2995. int maxHeight;
  2996. IntVector2 maxOffset;
  2997. IntVector2 maxSize;
  2998. int maxWidth;
  2999. Vector2 minAnchor;
  3000. int minHeight;
  3001. IntVector2 minOffset;
  3002. IntVector2 minSize;
  3003. int minWidth;
  3004. String name;
  3005. /* readonly */
  3006. uint numAllChildren;
  3007. /* readonly */
  3008. uint numAttributes;
  3009. /* readonly */
  3010. uint numChildren;
  3011. ObjectAnimation objectAnimation;
  3012. float opacity;
  3013. UIElement parent;
  3014. Vector2 pivot;
  3015. IntVector2 position;
  3016. /* readonly */
  3017. bool pressed;
  3018. IntVector2 pressedChildOffset;
  3019. IntVector2 pressedOffset;
  3020. int priority;
  3021. /* readonly */
  3022. int refs;
  3023. float repeatDelay;
  3024. float repeatRate;
  3025. /* readonly */
  3026. UIElement root;
  3027. /* readonly */
  3028. IntVector2 screenPosition;
  3029. bool selected;
  3030. IntVector2 size;
  3031. bool sortChildren;
  3032. String style;
  3033. /* readonly */
  3034. Array<String> tags;
  3035. bool temporary;
  3036. Texture texture;
  3037. bool tiled;
  3038. TraversalMode traversalMode;
  3039. /* readonly */
  3040. StringHash type;
  3041. /* readonly */
  3042. String typeName;
  3043. bool useDerivedOpacity;
  3044. /* readonly */
  3045. VariantMap vars;
  3046. VerticalAlignment verticalAlignment;
  3047. bool visible;
  3048. /* readonly */
  3049. bool visibleEffective;
  3050. /* readonly */
  3051. int weakRefs;
  3052. int width;
  3053. };
  3054. class Camera
  3055. {
  3056. public:
  3057. Camera();
  3058. // Methods:
  3059. void AllocateNetworkState();
  3060. operator Animatable() const;
  3061. void ApplyAttributes();
  3062. void CleanupConnection(Connection);
  3063. operator Component() const;
  3064. void DrawDebugGeometry(DebugRenderer, bool);
  3065. const Frustum& GetFrustum() const;
  3066. bool GetAnimationEnabled() const;
  3067. float GetAspectRatio() const;
  3068. Variant GetAttribute(const String&) const;
  3069. Variant GetAttribute(uint) const;
  3070. ValueAnimation GetAttributeAnimation(const String&) const;
  3071. float GetAttributeAnimationSpeed(const String&) const;
  3072. float GetAttributeAnimationTime(const String&) const;
  3073. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3074. Variant GetAttributeDefault(const String&) const;
  3075. Variant GetAttributeDefault(uint) const;
  3076. bool GetAutoAspectRatio() const;
  3077. bool GetBlockEvents() const;
  3078. Vector4 GetClipPlaneAttr() const;
  3079. Component GetComponent(StringHash) const;
  3080. float GetDistance(const Vector3&) const;
  3081. float GetDistanceSquared(const Vector3&) const;
  3082. Matrix3x4 GetEffectiveWorldTransform() const;
  3083. VariantMap& GetEventDataMap() const;
  3084. Object GetEventSender() const;
  3085. Quaternion GetFaceCameraRotation(const Vector3&, const Quaternion&, FaceCameraMode, float = 0.0f);
  3086. float GetFarClip() const;
  3087. FillMode GetFillMode() const;
  3088. bool GetFlipVertical() const;
  3089. float GetFov() const;
  3090. void GetFrustumSize(Vector3&, Vector3&) const;
  3091. Matrix4 GetGPUProjection() const;
  3092. float GetHalfViewSize() const;
  3093. uint GetID() const;
  3094. bool GetInterceptNetworkUpdate(const String&) const;
  3095. float GetLodBias() const;
  3096. float GetLodDistance(float, float, float) const;
  3097. float GetNearClip() const;
  3098. Node GetNode() const;
  3099. uint GetNumAttributes() const;
  3100. uint GetNumNetworkAttributes() const;
  3101. ObjectAnimation GetObjectAnimation() const;
  3102. ResourceRef GetObjectAnimationAttr() const;
  3103. float GetOrthoSize() const;
  3104. Matrix4 GetProjection() const;
  3105. Vector4 GetReflectionPlaneAttr() const;
  3106. bool GetReverseCulling() const;
  3107. Scene GetScene() const;
  3108. Ray GetScreenRay(float, float) const;
  3109. Frustum GetSplitFrustum(float, float) const;
  3110. Object GetSubsystem(StringHash) const;
  3111. StringHash GetType() const;
  3112. bool GetUseClipping() const;
  3113. bool GetUseReflection() const;
  3114. uint GetViewMask() const;
  3115. uint GetViewOverrideFlags() const;
  3116. Frustum GetViewSpaceFrustum() const;
  3117. Frustum GetViewSpaceSplitFrustum(float, float) const;
  3118. float GetZoom() const;
  3119. bool HasEventHandlers() const;
  3120. bool HasSubscribedToEvent(Object, StringHash) const;
  3121. bool HasSubscribedToEvent(StringHash) const;
  3122. bool IsEnabled() const;
  3123. bool IsEnabledEffective() const;
  3124. bool IsInstanceOf(StringHash) const;
  3125. bool IsOrthographic() const;
  3126. bool IsProjectionValid() const;
  3127. bool IsReplicated() const;
  3128. bool IsTemporary() const;
  3129. bool Load(Deserializer&);
  3130. bool LoadJSON(const JSONValue&);
  3131. bool LoadXML(const XMLElement&);
  3132. void MarkNetworkUpdate();
  3133. const Matrix3x4& GetView() const;
  3134. operator Object() const;
  3135. void OnEvent(Object, StringHash, VariantMap&);
  3136. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  3137. void OnSetAttribute(const AttributeInfo&, const Variant&);
  3138. void OnSetEnabled();
  3139. const Plane& GetClipPlane() const;
  3140. const Plane& GetReflectionPlane() const;
  3141. void PrepareNetworkUpdate();
  3142. bool ReadDeltaUpdate(Deserializer&);
  3143. bool ReadLatestDataUpdate(Deserializer&);
  3144. operator RefCounted() const;
  3145. int Refs() const;
  3146. void Remove();
  3147. void RemoveAttributeAnimation(const String&);
  3148. void RemoveInstanceDefault();
  3149. void RemoveObjectAnimation();
  3150. void ResetToDefault();
  3151. bool Save(Serializer&) const;
  3152. bool SaveDefaultAttributes() const;
  3153. bool SaveJSON(JSONValue&) const;
  3154. bool SaveXML(XMLElement&) const;
  3155. Vector3 ScreenToWorldPoint(const Vector3&) const;
  3156. void SendEvent(StringHash);
  3157. void SendEvent(StringHash, VariantMap&);
  3158. operator Serializable() const;
  3159. void SetAnimationEnabled(bool);
  3160. void SetAnimationTime(float);
  3161. void SetAspectRatio(float);
  3162. void SetAspectRatioInternal(float);
  3163. bool SetAttribute(const String&, const Variant&);
  3164. bool SetAttribute(uint, const Variant&);
  3165. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3166. void SetAttributeAnimationSpeed(const String&, float);
  3167. void SetAttributeAnimationTime(const String&, float);
  3168. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3169. void SetAutoAspectRatio(bool);
  3170. void SetBlockEvents(bool);
  3171. void SetClipPlane(const Plane&);
  3172. void SetClipPlaneAttr(const Vector4&);
  3173. void SetEnabled(bool);
  3174. void SetFarClip(float);
  3175. void SetFillMode(FillMode);
  3176. void SetFlipVertical(bool);
  3177. void SetFov(float);
  3178. void SetGlobalVar(StringHash, const Variant&);
  3179. void SetInstanceDefault(bool);
  3180. void SetInterceptNetworkUpdate(const String&, bool);
  3181. void SetLodBias(float);
  3182. void SetNearClip(float);
  3183. void SetObjectAnimation(ObjectAnimation);
  3184. void SetObjectAnimationAttr(const ResourceRef&);
  3185. void SetOrthoSize(const Vector2&);
  3186. void SetOrthoSize(float);
  3187. void SetOrthoSizeAttr(float);
  3188. void SetOrthographic(bool);
  3189. void SetProjection(const Matrix4&);
  3190. void SetProjectionOffset(const Vector2&);
  3191. void SetReflectionPlane(const Plane&);
  3192. void SetReflectionPlaneAttr(const Vector4&);
  3193. void SetTemporary(bool);
  3194. void SetUseClipping(bool);
  3195. void SetUseReflection(bool);
  3196. void SetViewMask(uint);
  3197. void SetViewOverrideFlags(uint);
  3198. void SetZoom(float);
  3199. const String& GetCategory() const;
  3200. const String& GetTypeName() const;
  3201. void UnsubscribeFromAllEvents();
  3202. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  3203. void UnsubscribeFromEvent(Object, StringHash);
  3204. void UnsubscribeFromEvent(StringHash);
  3205. void UnsubscribeFromEvents(Object);
  3206. const Variant& GetGlobalVar(StringHash) const;
  3207. const VariantMap& GetGlobalVars() const;
  3208. const Vector2& GetProjectionOffset() const;
  3209. int WeakRefs() const;
  3210. Vector2 WorldToScreenPoint(const Vector3&) const;
  3211. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  3212. void WriteInitialDeltaUpdate(Serializer&, uint8);
  3213. void WriteLatestDataUpdate(Serializer&, uint8);
  3214. operator const Animatable() const;
  3215. operator const Component() const;
  3216. operator const Object() const;
  3217. operator const RefCounted() const;
  3218. operator const Serializable() const;
  3219. // Properties:
  3220. bool animationEnabled;
  3221. float aspectRatio;
  3222. /* readonly */
  3223. Array<Variant> attributeDefaults;
  3224. /* readonly */
  3225. Array<AttributeInfo> attributeInfos;
  3226. Array<Variant> attributes;
  3227. bool autoAspectRatio;
  3228. /* readonly */
  3229. String category;
  3230. Plane clipPlane;
  3231. /* readonly */
  3232. Matrix3x4 effectiveWorldTransform;
  3233. bool enabled;
  3234. /* readonly */
  3235. bool enabledEffective;
  3236. float farClip;
  3237. FillMode fillMode;
  3238. float fov;
  3239. /* readonly */
  3240. Frustum frustum;
  3241. /* readonly */
  3242. Matrix4 gPUProjection;
  3243. Array<Variant> globalVar;
  3244. /* readonly */
  3245. VariantMap globalVars;
  3246. /* readonly */
  3247. float halfViewSize;
  3248. /* readonly */
  3249. uint id;
  3250. float lodBias;
  3251. float nearClip;
  3252. /* readonly */
  3253. Node node;
  3254. /* readonly */
  3255. uint numAttributes;
  3256. ObjectAnimation objectAnimation;
  3257. float orthoSize;
  3258. bool orthographic;
  3259. Matrix4 projection;
  3260. Vector2 projectionOffset;
  3261. Plane reflectionPlane;
  3262. /* readonly */
  3263. int refs;
  3264. /* readonly */
  3265. bool replicated;
  3266. bool temporary;
  3267. /* readonly */
  3268. StringHash type;
  3269. /* readonly */
  3270. String typeName;
  3271. bool useClipping;
  3272. bool useReflection;
  3273. /* readonly */
  3274. Matrix3x4 view;
  3275. uint viewMask;
  3276. uint viewOverrideFlags;
  3277. /* readonly */
  3278. Frustum viewSpaceFrustum;
  3279. /* readonly */
  3280. int weakRefs;
  3281. float zoom;
  3282. };
  3283. class CascadeParameters
  3284. {
  3285. public:
  3286. CascadeParameters();
  3287. CascadeParameters(float, float, float, float, float, float = 1.0f);
  3288. // Methods:
  3289. CascadeParameters& operator=(const CascadeParameters&);
  3290. float GetShadowRange() const;
  3291. void Validate();
  3292. // Properties:
  3293. float biasAutoAdjust;
  3294. float fadeStart;
  3295. float split1;
  3296. float split2;
  3297. float split3;
  3298. float split4;
  3299. Vector4 splits;
  3300. };
  3301. class CharLocation
  3302. {
  3303. public:
  3304. ~CharLocation();
  3305. CharLocation();
  3306. // Methods:
  3307. CharLocation& operator=(const CharLocation&);
  3308. // Properties:
  3309. Vector2 position;
  3310. Vector2 size;
  3311. };
  3312. class CheckBox
  3313. {
  3314. public:
  3315. CheckBox();
  3316. CheckBox(const String&in);
  3317. // Methods:
  3318. void AddChild(UIElement);
  3319. void AddTag(const String&);
  3320. void AddTags(Array<String>);
  3321. void AddTags(const String&, int8 = ';');
  3322. void AdjustScissor(IntRect&);
  3323. void AllocateNetworkState();
  3324. operator Animatable() const;
  3325. void ApplyAttributes();
  3326. operator BorderImage() const;
  3327. void BringToFront();
  3328. const Color& GetColor(Corner) const;
  3329. const Color& GetColorAttr() const;
  3330. const Color& GetDerivedColor() const;
  3331. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  3332. void DisableLayoutUpdate();
  3333. IntVector2 ElementToScreen(const IntVector2&);
  3334. void EnableLayoutUpdate();
  3335. bool FilterAttributes(XMLElement&) const;
  3336. int FindChild(UIElement) const;
  3337. bool GetAnimationEnabled() const;
  3338. Variant GetAttribute(const String&) const;
  3339. Variant GetAttribute(uint) const;
  3340. ValueAnimation GetAttributeAnimation(const String&) const;
  3341. float GetAttributeAnimationSpeed(const String&) const;
  3342. float GetAttributeAnimationTime(const String&) const;
  3343. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3344. Variant GetAttributeDefault(const String&) const;
  3345. Variant GetAttributeDefault(uint) const;
  3346. BlendMode GetBlendMode() const;
  3347. bool GetBlockEvents() const;
  3348. bool GetBringToBack() const;
  3349. bool GetBringToFront() const;
  3350. UIElement GetChild(const String&, bool = false) const;
  3351. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  3352. UIElement GetChild(int) const;
  3353. Array<UIElement> GetChildren() const;
  3354. Array<UIElement> GetChildren(bool) const;
  3355. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  3356. bool GetClipChildren() const;
  3357. IntRect GetCombinedScreenRect();
  3358. XMLFile GetDefaultStyle(bool = true) const;
  3359. float GetDerivedOpacity() const;
  3360. uint GetDragButtonCombo() const;
  3361. int GetDragButtonCount() const;
  3362. uint GetDragDropMode() const;
  3363. IntVector2 GetEffectiveMinSize() const;
  3364. UIElement GetElementEventSender() const;
  3365. bool GetEnableAnchor() const;
  3366. VariantMap& GetEventDataMap() const;
  3367. Object GetEventSender() const;
  3368. FocusMode GetFocusMode() const;
  3369. int GetHeight() const;
  3370. HorizontalAlignment GetHorizontalAlignment() const;
  3371. int GetIndent() const;
  3372. int GetIndentSpacing() const;
  3373. int GetIndentWidth() const;
  3374. bool GetInterceptNetworkUpdate(const String&) const;
  3375. int GetLayoutElementMaxSize() const;
  3376. LayoutMode GetLayoutMode() const;
  3377. int GetLayoutSpacing() const;
  3378. Material GetMaterial() const;
  3379. ResourceRef GetMaterialAttr() const;
  3380. int GetMaxHeight() const;
  3381. int GetMaxWidth() const;
  3382. int GetMinHeight() const;
  3383. int GetMinWidth() const;
  3384. uint GetNumAttributes() const;
  3385. int GetNumChildren(bool = false) const;
  3386. uint GetNumNetworkAttributes() const;
  3387. ObjectAnimation GetObjectAnimation() const;
  3388. ResourceRef GetObjectAnimationAttr() const;
  3389. float GetOpacity() const;
  3390. UIElement GetParent() const;
  3391. int GetPriority() const;
  3392. UIElement GetRoot() const;
  3393. bool GetSortChildren() const;
  3394. Object GetSubsystem(StringHash) const;
  3395. Array<String> GetTags() const;
  3396. Texture GetTexture() const;
  3397. ResourceRef GetTextureAttr() const;
  3398. TraversalMode GetTraversalMode() const;
  3399. StringHash GetType() const;
  3400. bool GetUseDerivedOpacity() const;
  3401. VerticalAlignment GetVerticalAlignment() const;
  3402. int GetWidth() const;
  3403. bool HasColorGradient() const;
  3404. bool HasEventHandlers() const;
  3405. bool HasFocus() const;
  3406. bool HasSubscribedToEvent(Object, StringHash) const;
  3407. bool HasSubscribedToEvent(StringHash) const;
  3408. bool HasTag(const String&) const;
  3409. void InsertChild(int, UIElement);
  3410. const IntRect& GetBorder() const;
  3411. const IntRect& GetClipBorder() const;
  3412. const IntRect& GetImageBorder() const;
  3413. const IntRect& GetImageRect() const;
  3414. const IntRect& GetLayoutBorder() const;
  3415. const IntVector2& GetCheckedOffset() const;
  3416. const IntVector2& GetChildOffset() const;
  3417. const IntVector2& GetDisabledOffset() const;
  3418. const IntVector2& GetHoverOffset() const;
  3419. const IntVector2& GetMaxOffset() const;
  3420. const IntVector2& GetMaxSize() const;
  3421. const IntVector2& GetMinOffset() const;
  3422. const IntVector2& GetMinSize() const;
  3423. const IntVector2& GetPosition() const;
  3424. const IntVector2& GetScreenPosition() const;
  3425. const IntVector2& GetSize() const;
  3426. bool IsChecked() const;
  3427. bool IsChildOf(UIElement) const;
  3428. bool IsEditable() const;
  3429. bool IsElementEventSender() const;
  3430. bool IsEnabled() const;
  3431. bool IsEnabledSelf() const;
  3432. bool IsFixedHeight() const;
  3433. bool IsFixedSize() const;
  3434. bool IsFixedWidth() const;
  3435. bool IsHovering() const;
  3436. bool IsInside(IntVector2, bool);
  3437. bool IsInsideCombined(IntVector2, bool);
  3438. bool IsInstanceOf(StringHash) const;
  3439. bool IsInternal() const;
  3440. bool IsSelected() const;
  3441. bool IsTemporary() const;
  3442. bool IsTiled() const;
  3443. bool IsVisible() const;
  3444. bool IsVisibleEffective() const;
  3445. bool IsWheelHandler() const;
  3446. bool IsWithinScissor(const IntRect&);
  3447. bool Load(Deserializer&);
  3448. UIElement LoadChildXML(XMLFile, XMLFile);
  3449. UIElement LoadChildXML(const XMLElement&, XMLFile);
  3450. bool LoadJSON(const JSONValue&);
  3451. bool LoadXML(Deserializer&);
  3452. bool LoadXML(File);
  3453. bool LoadXML(VectorBuffer&);
  3454. bool LoadXML(XMLFile, XMLFile);
  3455. bool LoadXML(const XMLElement&);
  3456. bool LoadXML(const XMLElement&, XMLFile);
  3457. void MarkNetworkUpdate();
  3458. operator Object() const;
  3459. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  3460. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  3461. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  3462. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3463. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3464. bool OnDragDropFinish(UIElement);
  3465. bool OnDragDropTest(UIElement);
  3466. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3467. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3468. void OnEvent(Object, StringHash, VariantMap&);
  3469. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  3470. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  3471. void OnIndentSet();
  3472. void OnKey(uint, uint, uint);
  3473. void OnPositionSet(const IntVector2&);
  3474. void OnResize(const IntVector2&, const IntVector2&);
  3475. void OnSetAttribute(const AttributeInfo&, const Variant&);
  3476. void OnSetEditable();
  3477. void OnTextInput(const String&);
  3478. void OnWheel(int, uint, uint);
  3479. bool ReadDeltaUpdate(Deserializer&);
  3480. bool ReadLatestDataUpdate(Deserializer&);
  3481. operator RefCounted() const;
  3482. int Refs() const;
  3483. void Remove();
  3484. void RemoveAllChildren();
  3485. void RemoveAllTags();
  3486. void RemoveAttributeAnimation(const String&);
  3487. void RemoveChild(UIElement, int = 0);
  3488. void RemoveChild(uint);
  3489. void RemoveChildAtIndex(int);
  3490. void RemoveInstanceDefault();
  3491. void RemoveObjectAnimation();
  3492. bool RemoveTag(const String&);
  3493. void ResetDeepEnabled();
  3494. void ResetToDefault();
  3495. bool Save(Serializer&) const;
  3496. bool SaveDefaultAttributes() const;
  3497. bool SaveJSON(JSONValue&) const;
  3498. bool SaveXML(File, const String& indentation = "\t");
  3499. bool SaveXML(Serializer&, const String& = "\t") const;
  3500. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  3501. bool SaveXML(XMLElement&) const;
  3502. IntVector2 ScreenToElement(const IntVector2&);
  3503. void SendEvent(StringHash);
  3504. void SendEvent(StringHash, VariantMap&);
  3505. operator Serializable() const;
  3506. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  3507. void SetAnimationEnabled(bool);
  3508. void SetAnimationTime(float);
  3509. bool SetAttribute(const String&, const Variant&);
  3510. bool SetAttribute(uint, const Variant&);
  3511. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3512. void SetAttributeAnimationSpeed(const String&, float);
  3513. void SetAttributeAnimationTime(const String&, float);
  3514. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3515. void SetBlendMode(BlendMode);
  3516. void SetBlockEvents(bool);
  3517. void SetBorder(const IntRect&);
  3518. void SetBringToBack(bool);
  3519. void SetBringToFront(bool);
  3520. void SetChecked(bool);
  3521. void SetCheckedOffset(const IntVector2&);
  3522. void SetCheckedOffset(int, int);
  3523. void SetChildOffset(const IntVector2&);
  3524. void SetClipBorder(const IntRect&);
  3525. void SetClipChildren(bool);
  3526. void SetColor(Corner, const Color&);
  3527. void SetColor(const Color&);
  3528. void SetDeepEnabled(bool);
  3529. void SetDefaultStyle(XMLFile);
  3530. void SetDisabledOffset(const IntVector2&);
  3531. void SetDisabledOffset(int, int);
  3532. void SetDragDropMode(uint);
  3533. void SetEditable(bool);
  3534. void SetElementEventSender(bool);
  3535. void SetEnableAnchor(bool);
  3536. void SetEnabled(bool);
  3537. void SetEnabledRecursive(bool);
  3538. void SetFixedHeight(int);
  3539. void SetFixedSize(const IntVector2&);
  3540. void SetFixedSize(int, int);
  3541. void SetFixedWidth(int);
  3542. void SetFocus(bool);
  3543. void SetFocusMode(FocusMode);
  3544. void SetFullImageRect();
  3545. void SetGlobalVar(StringHash, const Variant&);
  3546. void SetHeight(int);
  3547. void SetHorizontalAlignment(HorizontalAlignment);
  3548. void SetHoverOffset(const IntVector2&);
  3549. void SetHoverOffset(int, int);
  3550. void SetHovering(bool);
  3551. void SetImageBorder(const IntRect&);
  3552. void SetImageRect(const IntRect&);
  3553. void SetIndent(int);
  3554. void SetIndentSpacing(int);
  3555. void SetInstanceDefault(bool);
  3556. void SetInterceptNetworkUpdate(const String&, bool);
  3557. void SetInternal(bool);
  3558. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  3559. void SetLayoutBorder(const IntRect&);
  3560. void SetLayoutFlexScale(const Vector2&);
  3561. void SetLayoutMode(LayoutMode);
  3562. void SetLayoutSpacing(int);
  3563. void SetMaterial(Material);
  3564. void SetMaterialAttr(const ResourceRef&);
  3565. void SetMaxAnchor(const Vector2&);
  3566. void SetMaxAnchor(float, float);
  3567. void SetMaxHeight(int);
  3568. void SetMaxOffset(const IntVector2&);
  3569. void SetMaxSize(const IntVector2&);
  3570. void SetMaxSize(int, int);
  3571. void SetMaxWidth(int);
  3572. void SetMinAnchor(const Vector2&);
  3573. void SetMinAnchor(float, float);
  3574. void SetMinHeight(int);
  3575. void SetMinOffset(const IntVector2&);
  3576. void SetMinSize(const IntVector2&);
  3577. void SetMinSize(int, int);
  3578. void SetMinWidth(int);
  3579. void SetName(const String&);
  3580. void SetObjectAnimation(ObjectAnimation);
  3581. void SetObjectAnimationAttr(const ResourceRef&);
  3582. void SetOpacity(float);
  3583. void SetParent(UIElement, int = ENDPOS);
  3584. void SetPivot(const Vector2&);
  3585. void SetPivot(float, float);
  3586. void SetPosition(const IntVector2&);
  3587. void SetPosition(int, int);
  3588. void SetPriority(int);
  3589. void SetRenderTexture(Texture2D);
  3590. void SetSelected(bool);
  3591. void SetSize(const IntVector2&);
  3592. void SetSize(int, int);
  3593. void SetSortChildren(bool);
  3594. bool SetStyle(const String&, XMLFile = null);
  3595. bool SetStyle(const XMLElement&);
  3596. bool SetStyleAuto(XMLFile = null);
  3597. void SetTags(Array<String>);
  3598. void SetTemporary(bool);
  3599. void SetTexture(Texture);
  3600. void SetTextureAttr(const ResourceRef&);
  3601. void SetTiled(bool);
  3602. void SetTraversalMode(TraversalMode);
  3603. void SetUseDerivedOpacity(bool);
  3604. void SetVar(StringHash, const Variant&);
  3605. void SetVerticalAlignment(VerticalAlignment);
  3606. void SetVisible(bool);
  3607. void SetWidth(int);
  3608. void SortChildren();
  3609. const String& GetAppliedStyle() const;
  3610. const String& GetCategory() const;
  3611. const String& GetName() const;
  3612. const String& GetTypeName() const;
  3613. operator UIElement() const;
  3614. void UnsubscribeFromAllEvents();
  3615. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  3616. void UnsubscribeFromEvent(Object, StringHash);
  3617. void UnsubscribeFromEvent(StringHash);
  3618. void UnsubscribeFromEvents(Object);
  3619. void Update(float);
  3620. void UpdateLayout();
  3621. const Variant& GetGlobalVar(StringHash) const;
  3622. const Variant& GetVar(const StringHash&) const;
  3623. const VariantMap& GetGlobalVars() const;
  3624. const VariantMap& GetVars() const;
  3625. const Vector2& GetLayoutFlexScale() const;
  3626. const Vector2& GetMaxAnchor() const;
  3627. const Vector2& GetMinAnchor() const;
  3628. const Vector2& GetPivot() const;
  3629. int WeakRefs() const;
  3630. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  3631. void WriteInitialDeltaUpdate(Serializer&, uint8);
  3632. void WriteLatestDataUpdate(Serializer&, uint8);
  3633. operator const Animatable() const;
  3634. operator const BorderImage() const;
  3635. operator const Object() const;
  3636. operator const RefCounted() const;
  3637. operator const Serializable() const;
  3638. operator const UIElement() const;
  3639. // Properties:
  3640. bool animationEnabled;
  3641. /* readonly */
  3642. Array<Variant> attributeDefaults;
  3643. /* readonly */
  3644. Array<AttributeInfo> attributeInfos;
  3645. Array<Variant> attributes;
  3646. BlendMode blendMode;
  3647. IntRect border;
  3648. bool bringToBack;
  3649. bool bringToFront;
  3650. /* readonly */
  3651. String category;
  3652. bool checked;
  3653. IntVector2 checkedOffset;
  3654. /* readonly */
  3655. IntVector2 childOffset;
  3656. /* readonly */
  3657. Array<UIElement> children;
  3658. IntRect clipBorder;
  3659. bool clipChildren;
  3660. /* writeonly */
  3661. Color color;
  3662. /* readonly */
  3663. bool colorGradient;
  3664. Array<Color> colors;
  3665. /* readonly */
  3666. IntRect combinedScreenRect;
  3667. XMLFile defaultStyle;
  3668. /* readonly */
  3669. float derivedOpacity;
  3670. IntVector2 disabledOffset;
  3671. /* readonly */
  3672. uint dragButtonCombo;
  3673. /* readonly */
  3674. int dragButtonCount;
  3675. uint dragDropMode;
  3676. bool editable;
  3677. bool elementEventSender;
  3678. bool enableAnchor;
  3679. bool enabled;
  3680. /* readonly */
  3681. bool enabledSelf;
  3682. /* readonly */
  3683. bool fixedHeight;
  3684. /* readonly */
  3685. bool fixedSize;
  3686. /* readonly */
  3687. bool fixedWidth;
  3688. bool focus;
  3689. FocusMode focusMode;
  3690. Array<Variant> globalVar;
  3691. /* readonly */
  3692. VariantMap globalVars;
  3693. int height;
  3694. HorizontalAlignment horizontalAlignment;
  3695. IntVector2 hoverOffset;
  3696. /* readonly */
  3697. bool hovering;
  3698. IntRect imageBorder;
  3699. IntRect imageRect;
  3700. int indent;
  3701. int indentSpacing;
  3702. /* readonly */
  3703. int indentWidth;
  3704. bool internal;
  3705. IntRect layoutBorder;
  3706. Vector2 layoutFlexScale;
  3707. LayoutMode layoutMode;
  3708. int layoutSpacing;
  3709. Material material;
  3710. Vector2 maxAnchor;
  3711. int maxHeight;
  3712. IntVector2 maxOffset;
  3713. IntVector2 maxSize;
  3714. int maxWidth;
  3715. Vector2 minAnchor;
  3716. int minHeight;
  3717. IntVector2 minOffset;
  3718. IntVector2 minSize;
  3719. int minWidth;
  3720. String name;
  3721. /* readonly */
  3722. uint numAllChildren;
  3723. /* readonly */
  3724. uint numAttributes;
  3725. /* readonly */
  3726. uint numChildren;
  3727. ObjectAnimation objectAnimation;
  3728. float opacity;
  3729. UIElement parent;
  3730. Vector2 pivot;
  3731. IntVector2 position;
  3732. int priority;
  3733. /* readonly */
  3734. int refs;
  3735. /* readonly */
  3736. UIElement root;
  3737. /* readonly */
  3738. IntVector2 screenPosition;
  3739. bool selected;
  3740. IntVector2 size;
  3741. bool sortChildren;
  3742. String style;
  3743. /* readonly */
  3744. Array<String> tags;
  3745. bool temporary;
  3746. Texture texture;
  3747. bool tiled;
  3748. TraversalMode traversalMode;
  3749. /* readonly */
  3750. StringHash type;
  3751. /* readonly */
  3752. String typeName;
  3753. bool useDerivedOpacity;
  3754. /* readonly */
  3755. VariantMap vars;
  3756. VerticalAlignment verticalAlignment;
  3757. bool visible;
  3758. /* readonly */
  3759. bool visibleEffective;
  3760. /* readonly */
  3761. int weakRefs;
  3762. int width;
  3763. };
  3764. class CollisionBox2D
  3765. {
  3766. public:
  3767. CollisionBox2D();
  3768. // Methods:
  3769. void AllocateNetworkState();
  3770. operator Animatable() const;
  3771. void ApplyAttributes();
  3772. void CleanupConnection(Connection);
  3773. operator CollisionShape2D() const;
  3774. operator Component() const;
  3775. void CreateFixture();
  3776. void DrawDebugGeometry(DebugRenderer, bool);
  3777. float GetAngle() const;
  3778. bool GetAnimationEnabled() const;
  3779. Variant GetAttribute(const String&) const;
  3780. Variant GetAttribute(uint) const;
  3781. ValueAnimation GetAttributeAnimation(const String&) const;
  3782. float GetAttributeAnimationSpeed(const String&) const;
  3783. float GetAttributeAnimationTime(const String&) const;
  3784. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3785. Variant GetAttributeDefault(const String&) const;
  3786. Variant GetAttributeDefault(uint) const;
  3787. bool GetBlockEvents() const;
  3788. int GetCategoryBits() const;
  3789. Component GetComponent(StringHash) const;
  3790. float GetDensity() const;
  3791. VariantMap& GetEventDataMap() const;
  3792. Object GetEventSender() const;
  3793. float GetFriction() const;
  3794. int GetGroupIndex() const;
  3795. uint GetID() const;
  3796. float GetInertia() const;
  3797. bool GetInterceptNetworkUpdate(const String&) const;
  3798. int GetMaskBits() const;
  3799. float GetMass() const;
  3800. Vector2 GetMassCenter() const;
  3801. Node GetNode() const;
  3802. uint GetNumAttributes() const;
  3803. uint GetNumNetworkAttributes() const;
  3804. ObjectAnimation GetObjectAnimation() const;
  3805. ResourceRef GetObjectAnimationAttr() const;
  3806. float GetRestitution() const;
  3807. Scene GetScene() const;
  3808. Object GetSubsystem(StringHash) const;
  3809. StringHash GetType() const;
  3810. bool HasEventHandlers() const;
  3811. bool HasSubscribedToEvent(Object, StringHash) const;
  3812. bool HasSubscribedToEvent(StringHash) const;
  3813. bool IsEnabled() const;
  3814. bool IsEnabledEffective() const;
  3815. bool IsInstanceOf(StringHash) const;
  3816. bool IsReplicated() const;
  3817. bool IsTemporary() const;
  3818. bool IsTrigger() const;
  3819. bool Load(Deserializer&);
  3820. bool LoadJSON(const JSONValue&);
  3821. bool LoadXML(const XMLElement&);
  3822. void MarkNetworkUpdate();
  3823. operator Object() const;
  3824. void OnEvent(Object, StringHash, VariantMap&);
  3825. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  3826. void OnSetAttribute(const AttributeInfo&, const Variant&);
  3827. void OnSetEnabled();
  3828. void PrepareNetworkUpdate();
  3829. bool ReadDeltaUpdate(Deserializer&);
  3830. bool ReadLatestDataUpdate(Deserializer&);
  3831. operator RefCounted() const;
  3832. int Refs() const;
  3833. void ReleaseFixture();
  3834. void Remove();
  3835. void RemoveAttributeAnimation(const String&);
  3836. void RemoveInstanceDefault();
  3837. void RemoveObjectAnimation();
  3838. void ResetToDefault();
  3839. bool Save(Serializer&) const;
  3840. bool SaveDefaultAttributes() const;
  3841. bool SaveJSON(JSONValue&) const;
  3842. bool SaveXML(XMLElement&) const;
  3843. void SendEvent(StringHash);
  3844. void SendEvent(StringHash, VariantMap&);
  3845. operator Serializable() const;
  3846. void SetAngle(float);
  3847. void SetAnimationEnabled(bool);
  3848. void SetAnimationTime(float);
  3849. bool SetAttribute(const String&, const Variant&);
  3850. bool SetAttribute(uint, const Variant&);
  3851. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  3852. void SetAttributeAnimationSpeed(const String&, float);
  3853. void SetAttributeAnimationTime(const String&, float);
  3854. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  3855. void SetBlockEvents(bool);
  3856. void SetCategoryBits(int);
  3857. void SetCenter(const Vector2&);
  3858. void SetCenter(float, float);
  3859. void SetDensity(float);
  3860. void SetEnabled(bool);
  3861. void SetFriction(float);
  3862. void SetGlobalVar(StringHash, const Variant&);
  3863. void SetGroupIndex(int);
  3864. void SetInstanceDefault(bool);
  3865. void SetInterceptNetworkUpdate(const String&, bool);
  3866. void SetMaskBits(int);
  3867. void SetObjectAnimation(ObjectAnimation);
  3868. void SetObjectAnimationAttr(const ResourceRef&);
  3869. void SetRestitution(float);
  3870. void SetSize(const Vector2&);
  3871. void SetSize(float, float);
  3872. void SetTemporary(bool);
  3873. void SetTrigger(bool);
  3874. const String& GetCategory() const;
  3875. const String& GetTypeName() const;
  3876. void UnsubscribeFromAllEvents();
  3877. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  3878. void UnsubscribeFromEvent(Object, StringHash);
  3879. void UnsubscribeFromEvent(StringHash);
  3880. void UnsubscribeFromEvents(Object);
  3881. const Variant& GetGlobalVar(StringHash) const;
  3882. const VariantMap& GetGlobalVars() const;
  3883. const Vector2& GetCenter() const;
  3884. const Vector2& GetSize() const;
  3885. int WeakRefs() const;
  3886. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  3887. void WriteInitialDeltaUpdate(Serializer&, uint8);
  3888. void WriteLatestDataUpdate(Serializer&, uint8);
  3889. operator const Animatable() const;
  3890. operator const CollisionShape2D() const;
  3891. operator const Component() const;
  3892. operator const Object() const;
  3893. operator const RefCounted() const;
  3894. operator const Serializable() const;
  3895. // Properties:
  3896. float angle;
  3897. bool animationEnabled;
  3898. /* readonly */
  3899. Array<Variant> attributeDefaults;
  3900. /* readonly */
  3901. Array<AttributeInfo> attributeInfos;
  3902. Array<Variant> attributes;
  3903. /* readonly */
  3904. String category;
  3905. int categoryBits;
  3906. Vector2 center;
  3907. float density;
  3908. bool enabled;
  3909. /* readonly */
  3910. bool enabledEffective;
  3911. float friction;
  3912. Array<Variant> globalVar;
  3913. /* readonly */
  3914. VariantMap globalVars;
  3915. int groupIndex;
  3916. /* readonly */
  3917. uint id;
  3918. /* readonly */
  3919. float inertia;
  3920. int maskBits;
  3921. /* readonly */
  3922. float mass;
  3923. /* readonly */
  3924. Vector2 massCenter;
  3925. /* readonly */
  3926. Node node;
  3927. /* readonly */
  3928. uint numAttributes;
  3929. ObjectAnimation objectAnimation;
  3930. /* readonly */
  3931. int refs;
  3932. /* readonly */
  3933. bool replicated;
  3934. float restitution;
  3935. Vector2 size;
  3936. bool temporary;
  3937. bool trigger;
  3938. /* readonly */
  3939. StringHash type;
  3940. /* readonly */
  3941. String typeName;
  3942. /* readonly */
  3943. int weakRefs;
  3944. };
  3945. class CollisionChain2D
  3946. {
  3947. public:
  3948. CollisionChain2D();
  3949. // Methods:
  3950. void AllocateNetworkState();
  3951. operator Animatable() const;
  3952. void ApplyAttributes();
  3953. void CleanupConnection(Connection);
  3954. operator CollisionShape2D() const;
  3955. operator Component() const;
  3956. void CreateFixture();
  3957. void DrawDebugGeometry(DebugRenderer, bool);
  3958. bool GetAnimationEnabled() const;
  3959. Variant GetAttribute(const String&) const;
  3960. Variant GetAttribute(uint) const;
  3961. ValueAnimation GetAttributeAnimation(const String&) const;
  3962. float GetAttributeAnimationSpeed(const String&) const;
  3963. float GetAttributeAnimationTime(const String&) const;
  3964. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  3965. Variant GetAttributeDefault(const String&) const;
  3966. Variant GetAttributeDefault(uint) const;
  3967. bool GetBlockEvents() const;
  3968. int GetCategoryBits() const;
  3969. Component GetComponent(StringHash) const;
  3970. float GetDensity() const;
  3971. VariantMap& GetEventDataMap() const;
  3972. Object GetEventSender() const;
  3973. float GetFriction() const;
  3974. int GetGroupIndex() const;
  3975. uint GetID() const;
  3976. float GetInertia() const;
  3977. bool GetInterceptNetworkUpdate(const String&) const;
  3978. bool GetLoop() const;
  3979. int GetMaskBits() const;
  3980. float GetMass() const;
  3981. Vector2 GetMassCenter() const;
  3982. Node GetNode() const;
  3983. uint GetNumAttributes() const;
  3984. uint GetNumNetworkAttributes() const;
  3985. ObjectAnimation GetObjectAnimation() const;
  3986. ResourceRef GetObjectAnimationAttr() const;
  3987. float GetRestitution() const;
  3988. Scene GetScene() const;
  3989. Object GetSubsystem(StringHash) const;
  3990. StringHash GetType() const;
  3991. int GetVertexCount() const;
  3992. Array<Vector2> GetVertices() const;
  3993. Array<uint8> GetVerticesAttr() const;
  3994. bool HasEventHandlers() const;
  3995. bool HasSubscribedToEvent(Object, StringHash) const;
  3996. bool HasSubscribedToEvent(StringHash) const;
  3997. bool IsEnabled() const;
  3998. bool IsEnabledEffective() const;
  3999. bool IsInstanceOf(StringHash) const;
  4000. bool IsReplicated() const;
  4001. bool IsTemporary() const;
  4002. bool IsTrigger() const;
  4003. bool Load(Deserializer&);
  4004. bool LoadJSON(const JSONValue&);
  4005. bool LoadXML(const XMLElement&);
  4006. void MarkNetworkUpdate();
  4007. operator Object() const;
  4008. void OnEvent(Object, StringHash, VariantMap&);
  4009. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4010. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4011. void OnSetEnabled();
  4012. void PrepareNetworkUpdate();
  4013. bool ReadDeltaUpdate(Deserializer&);
  4014. bool ReadLatestDataUpdate(Deserializer&);
  4015. operator RefCounted() const;
  4016. int Refs() const;
  4017. void ReleaseFixture();
  4018. void Remove();
  4019. void RemoveAttributeAnimation(const String&);
  4020. void RemoveInstanceDefault();
  4021. void RemoveObjectAnimation();
  4022. void ResetToDefault();
  4023. bool Save(Serializer&) const;
  4024. bool SaveDefaultAttributes() const;
  4025. bool SaveJSON(JSONValue&) const;
  4026. bool SaveXML(XMLElement&) const;
  4027. void SendEvent(StringHash);
  4028. void SendEvent(StringHash, VariantMap&);
  4029. operator Serializable() const;
  4030. void SetAnimationEnabled(bool);
  4031. void SetAnimationTime(float);
  4032. bool SetAttribute(const String&, const Variant&);
  4033. bool SetAttribute(uint, const Variant&);
  4034. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4035. void SetAttributeAnimationSpeed(const String&, float);
  4036. void SetAttributeAnimationTime(const String&, float);
  4037. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4038. void SetBlockEvents(bool);
  4039. void SetCategoryBits(int);
  4040. void SetDensity(float);
  4041. void SetEnabled(bool);
  4042. void SetFriction(float);
  4043. void SetGlobalVar(StringHash, const Variant&);
  4044. void SetGroupIndex(int);
  4045. void SetInstanceDefault(bool);
  4046. void SetInterceptNetworkUpdate(const String&, bool);
  4047. void SetLoop(bool);
  4048. void SetMaskBits(int);
  4049. void SetObjectAnimation(ObjectAnimation);
  4050. void SetObjectAnimationAttr(const ResourceRef&);
  4051. void SetRestitution(float);
  4052. void SetTemporary(bool);
  4053. void SetTrigger(bool);
  4054. void SetVertex(int, const Vector2&);
  4055. void SetVertexCount(int);
  4056. void SetVertices(Array<Vector2>);
  4057. void SetVerticesAttr(Array<uint8>);
  4058. const String& GetCategory() const;
  4059. const String& GetTypeName() const;
  4060. void UnsubscribeFromAllEvents();
  4061. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4062. void UnsubscribeFromEvent(Object, StringHash);
  4063. void UnsubscribeFromEvent(StringHash);
  4064. void UnsubscribeFromEvents(Object);
  4065. const Variant& GetGlobalVar(StringHash) const;
  4066. const VariantMap& GetGlobalVars() const;
  4067. const Vector2& GetVertex(int) const;
  4068. int WeakRefs() const;
  4069. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4070. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4071. void WriteLatestDataUpdate(Serializer&, uint8);
  4072. operator const Animatable() const;
  4073. operator const CollisionShape2D() const;
  4074. operator const Component() const;
  4075. operator const Object() const;
  4076. operator const RefCounted() const;
  4077. operator const Serializable() const;
  4078. // Properties:
  4079. bool animationEnabled;
  4080. /* readonly */
  4081. Array<Variant> attributeDefaults;
  4082. /* readonly */
  4083. Array<AttributeInfo> attributeInfos;
  4084. Array<Variant> attributes;
  4085. /* readonly */
  4086. String category;
  4087. int categoryBits;
  4088. float density;
  4089. bool enabled;
  4090. /* readonly */
  4091. bool enabledEffective;
  4092. float friction;
  4093. Array<Variant> globalVar;
  4094. /* readonly */
  4095. VariantMap globalVars;
  4096. int groupIndex;
  4097. /* readonly */
  4098. uint id;
  4099. /* readonly */
  4100. float inertia;
  4101. bool loop;
  4102. int maskBits;
  4103. /* readonly */
  4104. float mass;
  4105. /* readonly */
  4106. Vector2 massCenter;
  4107. /* readonly */
  4108. Node node;
  4109. /* readonly */
  4110. uint numAttributes;
  4111. ObjectAnimation objectAnimation;
  4112. /* readonly */
  4113. int refs;
  4114. /* readonly */
  4115. bool replicated;
  4116. float restitution;
  4117. bool temporary;
  4118. bool trigger;
  4119. /* readonly */
  4120. StringHash type;
  4121. /* readonly */
  4122. String typeName;
  4123. int vertexCount;
  4124. /* readonly */
  4125. int weakRefs;
  4126. };
  4127. class CollisionCircle2D
  4128. {
  4129. public:
  4130. CollisionCircle2D();
  4131. // Methods:
  4132. void AllocateNetworkState();
  4133. operator Animatable() const;
  4134. void ApplyAttributes();
  4135. void CleanupConnection(Connection);
  4136. operator CollisionShape2D() const;
  4137. operator Component() const;
  4138. void CreateFixture();
  4139. void DrawDebugGeometry(DebugRenderer, bool);
  4140. bool GetAnimationEnabled() const;
  4141. Variant GetAttribute(const String&) const;
  4142. Variant GetAttribute(uint) const;
  4143. ValueAnimation GetAttributeAnimation(const String&) const;
  4144. float GetAttributeAnimationSpeed(const String&) const;
  4145. float GetAttributeAnimationTime(const String&) const;
  4146. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4147. Variant GetAttributeDefault(const String&) const;
  4148. Variant GetAttributeDefault(uint) const;
  4149. bool GetBlockEvents() const;
  4150. int GetCategoryBits() const;
  4151. Component GetComponent(StringHash) const;
  4152. float GetDensity() const;
  4153. VariantMap& GetEventDataMap() const;
  4154. Object GetEventSender() const;
  4155. float GetFriction() const;
  4156. int GetGroupIndex() const;
  4157. uint GetID() const;
  4158. float GetInertia() const;
  4159. bool GetInterceptNetworkUpdate(const String&) const;
  4160. int GetMaskBits() const;
  4161. float GetMass() const;
  4162. Vector2 GetMassCenter() const;
  4163. Node GetNode() const;
  4164. uint GetNumAttributes() const;
  4165. uint GetNumNetworkAttributes() const;
  4166. ObjectAnimation GetObjectAnimation() const;
  4167. ResourceRef GetObjectAnimationAttr() const;
  4168. float GetRadius() const;
  4169. float GetRestitution() const;
  4170. Scene GetScene() const;
  4171. Object GetSubsystem(StringHash) const;
  4172. StringHash GetType() const;
  4173. bool HasEventHandlers() const;
  4174. bool HasSubscribedToEvent(Object, StringHash) const;
  4175. bool HasSubscribedToEvent(StringHash) const;
  4176. bool IsEnabled() const;
  4177. bool IsEnabledEffective() const;
  4178. bool IsInstanceOf(StringHash) const;
  4179. bool IsReplicated() const;
  4180. bool IsTemporary() const;
  4181. bool IsTrigger() const;
  4182. bool Load(Deserializer&);
  4183. bool LoadJSON(const JSONValue&);
  4184. bool LoadXML(const XMLElement&);
  4185. void MarkNetworkUpdate();
  4186. operator Object() const;
  4187. void OnEvent(Object, StringHash, VariantMap&);
  4188. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4189. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4190. void OnSetEnabled();
  4191. void PrepareNetworkUpdate();
  4192. bool ReadDeltaUpdate(Deserializer&);
  4193. bool ReadLatestDataUpdate(Deserializer&);
  4194. operator RefCounted() const;
  4195. int Refs() const;
  4196. void ReleaseFixture();
  4197. void Remove();
  4198. void RemoveAttributeAnimation(const String&);
  4199. void RemoveInstanceDefault();
  4200. void RemoveObjectAnimation();
  4201. void ResetToDefault();
  4202. bool Save(Serializer&) const;
  4203. bool SaveDefaultAttributes() const;
  4204. bool SaveJSON(JSONValue&) const;
  4205. bool SaveXML(XMLElement&) const;
  4206. void SendEvent(StringHash);
  4207. void SendEvent(StringHash, VariantMap&);
  4208. operator Serializable() const;
  4209. void SetAnimationEnabled(bool);
  4210. void SetAnimationTime(float);
  4211. bool SetAttribute(const String&, const Variant&);
  4212. bool SetAttribute(uint, const Variant&);
  4213. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4214. void SetAttributeAnimationSpeed(const String&, float);
  4215. void SetAttributeAnimationTime(const String&, float);
  4216. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4217. void SetBlockEvents(bool);
  4218. void SetCategoryBits(int);
  4219. void SetCenter(const Vector2&);
  4220. void SetCenter(float, float);
  4221. void SetDensity(float);
  4222. void SetEnabled(bool);
  4223. void SetFriction(float);
  4224. void SetGlobalVar(StringHash, const Variant&);
  4225. void SetGroupIndex(int);
  4226. void SetInstanceDefault(bool);
  4227. void SetInterceptNetworkUpdate(const String&, bool);
  4228. void SetMaskBits(int);
  4229. void SetObjectAnimation(ObjectAnimation);
  4230. void SetObjectAnimationAttr(const ResourceRef&);
  4231. void SetRadius(float);
  4232. void SetRestitution(float);
  4233. void SetTemporary(bool);
  4234. void SetTrigger(bool);
  4235. const String& GetCategory() const;
  4236. const String& GetTypeName() const;
  4237. void UnsubscribeFromAllEvents();
  4238. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4239. void UnsubscribeFromEvent(Object, StringHash);
  4240. void UnsubscribeFromEvent(StringHash);
  4241. void UnsubscribeFromEvents(Object);
  4242. const Variant& GetGlobalVar(StringHash) const;
  4243. const VariantMap& GetGlobalVars() const;
  4244. const Vector2& GetCenter() const;
  4245. int WeakRefs() const;
  4246. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4247. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4248. void WriteLatestDataUpdate(Serializer&, uint8);
  4249. operator const Animatable() const;
  4250. operator const CollisionShape2D() const;
  4251. operator const Component() const;
  4252. operator const Object() const;
  4253. operator const RefCounted() const;
  4254. operator const Serializable() const;
  4255. // Properties:
  4256. bool animationEnabled;
  4257. /* readonly */
  4258. Array<Variant> attributeDefaults;
  4259. /* readonly */
  4260. Array<AttributeInfo> attributeInfos;
  4261. Array<Variant> attributes;
  4262. /* readonly */
  4263. String category;
  4264. int categoryBits;
  4265. Vector2 center;
  4266. float density;
  4267. bool enabled;
  4268. /* readonly */
  4269. bool enabledEffective;
  4270. float friction;
  4271. Array<Variant> globalVar;
  4272. /* readonly */
  4273. VariantMap globalVars;
  4274. int groupIndex;
  4275. /* readonly */
  4276. uint id;
  4277. /* readonly */
  4278. float inertia;
  4279. int maskBits;
  4280. /* readonly */
  4281. float mass;
  4282. /* readonly */
  4283. Vector2 massCenter;
  4284. /* readonly */
  4285. Node node;
  4286. /* readonly */
  4287. uint numAttributes;
  4288. ObjectAnimation objectAnimation;
  4289. float radius;
  4290. /* readonly */
  4291. int refs;
  4292. /* readonly */
  4293. bool replicated;
  4294. float restitution;
  4295. bool temporary;
  4296. bool trigger;
  4297. /* readonly */
  4298. StringHash type;
  4299. /* readonly */
  4300. String typeName;
  4301. /* readonly */
  4302. int weakRefs;
  4303. };
  4304. class CollisionEdge2D
  4305. {
  4306. public:
  4307. CollisionEdge2D();
  4308. // Methods:
  4309. void AllocateNetworkState();
  4310. operator Animatable() const;
  4311. void ApplyAttributes();
  4312. void CleanupConnection(Connection);
  4313. operator CollisionShape2D() const;
  4314. operator Component() const;
  4315. void CreateFixture();
  4316. void DrawDebugGeometry(DebugRenderer, bool);
  4317. bool GetAnimationEnabled() const;
  4318. Variant GetAttribute(const String&) const;
  4319. Variant GetAttribute(uint) const;
  4320. ValueAnimation GetAttributeAnimation(const String&) const;
  4321. float GetAttributeAnimationSpeed(const String&) const;
  4322. float GetAttributeAnimationTime(const String&) const;
  4323. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4324. Variant GetAttributeDefault(const String&) const;
  4325. Variant GetAttributeDefault(uint) const;
  4326. bool GetBlockEvents() const;
  4327. int GetCategoryBits() const;
  4328. Component GetComponent(StringHash) const;
  4329. float GetDensity() const;
  4330. VariantMap& GetEventDataMap() const;
  4331. Object GetEventSender() const;
  4332. float GetFriction() const;
  4333. int GetGroupIndex() const;
  4334. uint GetID() const;
  4335. float GetInertia() const;
  4336. bool GetInterceptNetworkUpdate(const String&) const;
  4337. int GetMaskBits() const;
  4338. float GetMass() const;
  4339. Vector2 GetMassCenter() const;
  4340. Node GetNode() const;
  4341. uint GetNumAttributes() const;
  4342. uint GetNumNetworkAttributes() const;
  4343. ObjectAnimation GetObjectAnimation() const;
  4344. ResourceRef GetObjectAnimationAttr() const;
  4345. float GetRestitution() const;
  4346. Scene GetScene() const;
  4347. Object GetSubsystem(StringHash) const;
  4348. StringHash GetType() const;
  4349. bool HasEventHandlers() const;
  4350. bool HasSubscribedToEvent(Object, StringHash) const;
  4351. bool HasSubscribedToEvent(StringHash) const;
  4352. bool IsEnabled() const;
  4353. bool IsEnabledEffective() const;
  4354. bool IsInstanceOf(StringHash) const;
  4355. bool IsReplicated() const;
  4356. bool IsTemporary() const;
  4357. bool IsTrigger() const;
  4358. bool Load(Deserializer&);
  4359. bool LoadJSON(const JSONValue&);
  4360. bool LoadXML(const XMLElement&);
  4361. void MarkNetworkUpdate();
  4362. operator Object() const;
  4363. void OnEvent(Object, StringHash, VariantMap&);
  4364. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4365. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4366. void OnSetEnabled();
  4367. void PrepareNetworkUpdate();
  4368. bool ReadDeltaUpdate(Deserializer&);
  4369. bool ReadLatestDataUpdate(Deserializer&);
  4370. operator RefCounted() const;
  4371. int Refs() const;
  4372. void ReleaseFixture();
  4373. void Remove();
  4374. void RemoveAttributeAnimation(const String&);
  4375. void RemoveInstanceDefault();
  4376. void RemoveObjectAnimation();
  4377. void ResetToDefault();
  4378. bool Save(Serializer&) const;
  4379. bool SaveDefaultAttributes() const;
  4380. bool SaveJSON(JSONValue&) const;
  4381. bool SaveXML(XMLElement&) const;
  4382. void SendEvent(StringHash);
  4383. void SendEvent(StringHash, VariantMap&);
  4384. operator Serializable() const;
  4385. void SetAnimationEnabled(bool);
  4386. void SetAnimationTime(float);
  4387. bool SetAttribute(const String&, const Variant&);
  4388. bool SetAttribute(uint, const Variant&);
  4389. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4390. void SetAttributeAnimationSpeed(const String&, float);
  4391. void SetAttributeAnimationTime(const String&, float);
  4392. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4393. void SetBlockEvents(bool);
  4394. void SetCategoryBits(int);
  4395. void SetDensity(float);
  4396. void SetEnabled(bool);
  4397. void SetFriction(float);
  4398. void SetGlobalVar(StringHash, const Variant&);
  4399. void SetGroupIndex(int);
  4400. void SetInstanceDefault(bool);
  4401. void SetInterceptNetworkUpdate(const String&, bool);
  4402. void SetMaskBits(int);
  4403. void SetObjectAnimation(ObjectAnimation);
  4404. void SetObjectAnimationAttr(const ResourceRef&);
  4405. void SetRestitution(float);
  4406. void SetTemporary(bool);
  4407. void SetTrigger(bool);
  4408. void SetVertex1(const Vector2&);
  4409. void SetVertex2(const Vector2&);
  4410. void SetVertices(const Vector2&, const Vector2&);
  4411. const String& GetCategory() const;
  4412. const String& GetTypeName() const;
  4413. void UnsubscribeFromAllEvents();
  4414. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4415. void UnsubscribeFromEvent(Object, StringHash);
  4416. void UnsubscribeFromEvent(StringHash);
  4417. void UnsubscribeFromEvents(Object);
  4418. const Variant& GetGlobalVar(StringHash) const;
  4419. const VariantMap& GetGlobalVars() const;
  4420. const Vector2& GetVertex1() const;
  4421. const Vector2& GetVertex2() const;
  4422. int WeakRefs() const;
  4423. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4424. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4425. void WriteLatestDataUpdate(Serializer&, uint8);
  4426. operator const Animatable() const;
  4427. operator const CollisionShape2D() const;
  4428. operator const Component() const;
  4429. operator const Object() const;
  4430. operator const RefCounted() const;
  4431. operator const Serializable() const;
  4432. // Properties:
  4433. bool animationEnabled;
  4434. /* readonly */
  4435. Array<Variant> attributeDefaults;
  4436. /* readonly */
  4437. Array<AttributeInfo> attributeInfos;
  4438. Array<Variant> attributes;
  4439. /* readonly */
  4440. String category;
  4441. int categoryBits;
  4442. float density;
  4443. bool enabled;
  4444. /* readonly */
  4445. bool enabledEffective;
  4446. float friction;
  4447. Array<Variant> globalVar;
  4448. /* readonly */
  4449. VariantMap globalVars;
  4450. int groupIndex;
  4451. /* readonly */
  4452. uint id;
  4453. /* readonly */
  4454. float inertia;
  4455. int maskBits;
  4456. /* readonly */
  4457. float mass;
  4458. /* readonly */
  4459. Vector2 massCenter;
  4460. /* readonly */
  4461. Node node;
  4462. /* readonly */
  4463. uint numAttributes;
  4464. ObjectAnimation objectAnimation;
  4465. /* readonly */
  4466. int refs;
  4467. /* readonly */
  4468. bool replicated;
  4469. float restitution;
  4470. bool temporary;
  4471. bool trigger;
  4472. /* readonly */
  4473. StringHash type;
  4474. /* readonly */
  4475. String typeName;
  4476. Vector2 vertex1;
  4477. Vector2 vertex2;
  4478. /* readonly */
  4479. int weakRefs;
  4480. };
  4481. class CollisionGeometryData
  4482. {
  4483. public:
  4484. // Methods:
  4485. operator ConvexData() const;
  4486. operator GImpactMeshData() const;
  4487. operator HeightfieldData() const;
  4488. operator RefCounted() const;
  4489. int Refs() const;
  4490. operator TriangleMeshData() const;
  4491. int WeakRefs() const;
  4492. operator const ConvexData() const;
  4493. operator const GImpactMeshData() const;
  4494. operator const HeightfieldData() const;
  4495. operator const RefCounted() const;
  4496. operator const TriangleMeshData() const;
  4497. // Properties:
  4498. /* readonly */
  4499. int refs;
  4500. /* readonly */
  4501. int weakRefs;
  4502. };
  4503. class CollisionPolygon2D
  4504. {
  4505. public:
  4506. CollisionPolygon2D();
  4507. // Methods:
  4508. void AllocateNetworkState();
  4509. operator Animatable() const;
  4510. void ApplyAttributes();
  4511. void CleanupConnection(Connection);
  4512. operator CollisionShape2D() const;
  4513. operator Component() const;
  4514. void CreateFixture();
  4515. void DrawDebugGeometry(DebugRenderer, bool);
  4516. bool GetAnimationEnabled() const;
  4517. Variant GetAttribute(const String&) const;
  4518. Variant GetAttribute(uint) const;
  4519. ValueAnimation GetAttributeAnimation(const String&) const;
  4520. float GetAttributeAnimationSpeed(const String&) const;
  4521. float GetAttributeAnimationTime(const String&) const;
  4522. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4523. Variant GetAttributeDefault(const String&) const;
  4524. Variant GetAttributeDefault(uint) const;
  4525. bool GetBlockEvents() const;
  4526. int GetCategoryBits() const;
  4527. Component GetComponent(StringHash) const;
  4528. float GetDensity() const;
  4529. VariantMap& GetEventDataMap() const;
  4530. Object GetEventSender() const;
  4531. float GetFriction() const;
  4532. int GetGroupIndex() const;
  4533. uint GetID() const;
  4534. float GetInertia() const;
  4535. bool GetInterceptNetworkUpdate(const String&) const;
  4536. int GetMaskBits() const;
  4537. float GetMass() const;
  4538. Vector2 GetMassCenter() const;
  4539. Node GetNode() const;
  4540. uint GetNumAttributes() const;
  4541. uint GetNumNetworkAttributes() const;
  4542. ObjectAnimation GetObjectAnimation() const;
  4543. ResourceRef GetObjectAnimationAttr() const;
  4544. float GetRestitution() const;
  4545. Scene GetScene() const;
  4546. Object GetSubsystem(StringHash) const;
  4547. StringHash GetType() const;
  4548. int GetVertexCount() const;
  4549. Array<Vector2> GetVertices() const;
  4550. Array<uint8> GetVerticesAttr() const;
  4551. bool HasEventHandlers() const;
  4552. bool HasSubscribedToEvent(Object, StringHash) const;
  4553. bool HasSubscribedToEvent(StringHash) const;
  4554. bool IsEnabled() const;
  4555. bool IsEnabledEffective() const;
  4556. bool IsInstanceOf(StringHash) const;
  4557. bool IsReplicated() const;
  4558. bool IsTemporary() const;
  4559. bool IsTrigger() const;
  4560. bool Load(Deserializer&);
  4561. bool LoadJSON(const JSONValue&);
  4562. bool LoadXML(const XMLElement&);
  4563. void MarkNetworkUpdate();
  4564. operator Object() const;
  4565. void OnEvent(Object, StringHash, VariantMap&);
  4566. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4567. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4568. void OnSetEnabled();
  4569. void PrepareNetworkUpdate();
  4570. bool ReadDeltaUpdate(Deserializer&);
  4571. bool ReadLatestDataUpdate(Deserializer&);
  4572. operator RefCounted() const;
  4573. int Refs() const;
  4574. void ReleaseFixture();
  4575. void Remove();
  4576. void RemoveAttributeAnimation(const String&);
  4577. void RemoveInstanceDefault();
  4578. void RemoveObjectAnimation();
  4579. void ResetToDefault();
  4580. bool Save(Serializer&) const;
  4581. bool SaveDefaultAttributes() const;
  4582. bool SaveJSON(JSONValue&) const;
  4583. bool SaveXML(XMLElement&) const;
  4584. void SendEvent(StringHash);
  4585. void SendEvent(StringHash, VariantMap&);
  4586. operator Serializable() const;
  4587. void SetAnimationEnabled(bool);
  4588. void SetAnimationTime(float);
  4589. bool SetAttribute(const String&, const Variant&);
  4590. bool SetAttribute(uint, const Variant&);
  4591. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4592. void SetAttributeAnimationSpeed(const String&, float);
  4593. void SetAttributeAnimationTime(const String&, float);
  4594. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4595. void SetBlockEvents(bool);
  4596. void SetCategoryBits(int);
  4597. void SetDensity(float);
  4598. void SetEnabled(bool);
  4599. void SetFriction(float);
  4600. void SetGlobalVar(StringHash, const Variant&);
  4601. void SetGroupIndex(int);
  4602. void SetInstanceDefault(bool);
  4603. void SetInterceptNetworkUpdate(const String&, bool);
  4604. void SetMaskBits(int);
  4605. void SetObjectAnimation(ObjectAnimation);
  4606. void SetObjectAnimationAttr(const ResourceRef&);
  4607. void SetRestitution(float);
  4608. void SetTemporary(bool);
  4609. void SetTrigger(bool);
  4610. void SetVertex(int, const Vector2&);
  4611. void SetVertexCount(int);
  4612. void SetVertices(Array<Vector2>);
  4613. void SetVerticesAttr(Array<uint8>);
  4614. const String& GetCategory() const;
  4615. const String& GetTypeName() const;
  4616. void UnsubscribeFromAllEvents();
  4617. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4618. void UnsubscribeFromEvent(Object, StringHash);
  4619. void UnsubscribeFromEvent(StringHash);
  4620. void UnsubscribeFromEvents(Object);
  4621. const Variant& GetGlobalVar(StringHash) const;
  4622. const VariantMap& GetGlobalVars() const;
  4623. const Vector2& GetVertex(int) const;
  4624. int WeakRefs() const;
  4625. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4626. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4627. void WriteLatestDataUpdate(Serializer&, uint8);
  4628. operator const Animatable() const;
  4629. operator const CollisionShape2D() const;
  4630. operator const Component() const;
  4631. operator const Object() const;
  4632. operator const RefCounted() const;
  4633. operator const Serializable() const;
  4634. // Properties:
  4635. bool animationEnabled;
  4636. /* readonly */
  4637. Array<Variant> attributeDefaults;
  4638. /* readonly */
  4639. Array<AttributeInfo> attributeInfos;
  4640. Array<Variant> attributes;
  4641. /* readonly */
  4642. String category;
  4643. int categoryBits;
  4644. float density;
  4645. bool enabled;
  4646. /* readonly */
  4647. bool enabledEffective;
  4648. float friction;
  4649. Array<Variant> globalVar;
  4650. /* readonly */
  4651. VariantMap globalVars;
  4652. int groupIndex;
  4653. /* readonly */
  4654. uint id;
  4655. /* readonly */
  4656. float inertia;
  4657. int maskBits;
  4658. /* readonly */
  4659. float mass;
  4660. /* readonly */
  4661. Vector2 massCenter;
  4662. /* readonly */
  4663. Node node;
  4664. /* readonly */
  4665. uint numAttributes;
  4666. ObjectAnimation objectAnimation;
  4667. /* readonly */
  4668. int refs;
  4669. /* readonly */
  4670. bool replicated;
  4671. float restitution;
  4672. bool temporary;
  4673. bool trigger;
  4674. /* readonly */
  4675. StringHash type;
  4676. /* readonly */
  4677. String typeName;
  4678. int vertexCount;
  4679. /* readonly */
  4680. int weakRefs;
  4681. };
  4682. class CollisionShape
  4683. {
  4684. public:
  4685. CollisionShape();
  4686. // Methods:
  4687. void AllocateNetworkState();
  4688. operator Animatable() const;
  4689. void ApplyAttributes();
  4690. void CleanupConnection(Connection);
  4691. operator Component() const;
  4692. void DrawDebugGeometry(DebugRenderer, bool);
  4693. bool GetAnimationEnabled() const;
  4694. Variant GetAttribute(const String&) const;
  4695. Variant GetAttribute(uint) const;
  4696. ValueAnimation GetAttributeAnimation(const String&) const;
  4697. float GetAttributeAnimationSpeed(const String&) const;
  4698. float GetAttributeAnimationTime(const String&) const;
  4699. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4700. Variant GetAttributeDefault(const String&) const;
  4701. Variant GetAttributeDefault(uint) const;
  4702. bool GetBlockEvents() const;
  4703. Component GetComponent(StringHash) const;
  4704. VariantMap& GetEventDataMap() const;
  4705. Object GetEventSender() const;
  4706. CollisionGeometryData GetGeometryData() const;
  4707. uint GetID() const;
  4708. bool GetInterceptNetworkUpdate(const String&) const;
  4709. int GetLodLevel() const;
  4710. float GetMargin() const;
  4711. Model GetModel() const;
  4712. ResourceRef GetModelAttr() const;
  4713. Node GetNode() const;
  4714. uint GetNumAttributes() const;
  4715. uint GetNumNetworkAttributes() const;
  4716. ObjectAnimation GetObjectAnimation() const;
  4717. ResourceRef GetObjectAnimationAttr() const;
  4718. PhysicsWorld GetPhysicsWorld() const;
  4719. Scene GetScene() const;
  4720. ShapeType GetShapeType() const;
  4721. Object GetSubsystem(StringHash) const;
  4722. StringHash GetType() const;
  4723. BoundingBox GetWorldBoundingBox() const;
  4724. bool HasEventHandlers() const;
  4725. bool HasSubscribedToEvent(Object, StringHash) const;
  4726. bool HasSubscribedToEvent(StringHash) const;
  4727. bool IsEnabled() const;
  4728. bool IsEnabledEffective() const;
  4729. bool IsInstanceOf(StringHash) const;
  4730. bool IsReplicated() const;
  4731. bool IsTemporary() const;
  4732. bool Load(Deserializer&);
  4733. bool LoadJSON(const JSONValue&);
  4734. bool LoadXML(const XMLElement&);
  4735. void MarkNetworkUpdate();
  4736. void NotifyRigidBody(bool = true);
  4737. operator Object() const;
  4738. void OnEvent(Object, StringHash, VariantMap&);
  4739. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4740. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4741. void OnSetEnabled();
  4742. void PrepareNetworkUpdate();
  4743. const Quaternion& GetRotation() const;
  4744. bool ReadDeltaUpdate(Deserializer&);
  4745. bool ReadLatestDataUpdate(Deserializer&);
  4746. operator RefCounted() const;
  4747. int Refs() const;
  4748. void ReleaseShape();
  4749. void Remove();
  4750. void RemoveAttributeAnimation(const String&);
  4751. void RemoveInstanceDefault();
  4752. void RemoveObjectAnimation();
  4753. void ResetToDefault();
  4754. bool Save(Serializer&) const;
  4755. bool SaveDefaultAttributes() const;
  4756. bool SaveJSON(JSONValue&) const;
  4757. bool SaveXML(XMLElement&) const;
  4758. void SendEvent(StringHash);
  4759. void SendEvent(StringHash, VariantMap&);
  4760. operator Serializable() const;
  4761. void SetAnimationEnabled(bool);
  4762. void SetAnimationTime(float);
  4763. bool SetAttribute(const String&, const Variant&);
  4764. bool SetAttribute(uint, const Variant&);
  4765. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4766. void SetAttributeAnimationSpeed(const String&, float);
  4767. void SetAttributeAnimationTime(const String&, float);
  4768. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4769. void SetBlockEvents(bool);
  4770. void SetBox(const Vector3&, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4771. void SetCapsule(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4772. void SetCone(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4773. void SetConvexHull(Model, int = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4774. void SetCustomConvexHull(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4775. void SetCustomGImpactMesh(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4776. void SetCustomTriangleMesh(CustomGeometry, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4777. void SetCylinder(float, float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4778. void SetEnabled(bool);
  4779. void SetGImpactMesh(Model, int = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4780. void SetGlobalVar(StringHash, const Variant&);
  4781. void SetInstanceDefault(bool);
  4782. void SetInterceptNetworkUpdate(const String&, bool);
  4783. void SetLodLevel(int);
  4784. void SetMargin(float);
  4785. void SetModel(Model);
  4786. void SetModelAttr(const ResourceRef&);
  4787. void SetObjectAnimation(ObjectAnimation);
  4788. void SetObjectAnimationAttr(const ResourceRef&);
  4789. void SetPosition(const Vector3&);
  4790. void SetRotation(const Quaternion&);
  4791. void SetShapeType(ShapeType);
  4792. void SetSize(const Vector3&);
  4793. void SetSphere(float, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4794. void SetStaticPlane(const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4795. void SetTemporary(bool);
  4796. void SetTerrain(int = 0);
  4797. void SetTransform(const Vector3&, const Quaternion&);
  4798. void SetTriangleMesh(Model, int = 0, const Vector3& = Vector3 :: ONE, const Vector3& = Vector3 :: ZERO, const Quaternion& = Quaternion :: IDENTITY);
  4799. const String& GetCategory() const;
  4800. const String& GetTypeName() const;
  4801. void UnsubscribeFromAllEvents();
  4802. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4803. void UnsubscribeFromEvent(Object, StringHash);
  4804. void UnsubscribeFromEvent(StringHash);
  4805. void UnsubscribeFromEvents(Object);
  4806. const Variant& GetGlobalVar(StringHash) const;
  4807. const VariantMap& GetGlobalVars() const;
  4808. const Vector3& GetPosition() const;
  4809. const Vector3& GetSize() const;
  4810. int WeakRefs() const;
  4811. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4812. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4813. void WriteLatestDataUpdate(Serializer&, uint8);
  4814. operator const Animatable() const;
  4815. operator const Component() const;
  4816. operator const Object() const;
  4817. operator const RefCounted() const;
  4818. operator const Serializable() const;
  4819. // Properties:
  4820. bool animationEnabled;
  4821. /* readonly */
  4822. Array<Variant> attributeDefaults;
  4823. /* readonly */
  4824. Array<AttributeInfo> attributeInfos;
  4825. Array<Variant> attributes;
  4826. /* readonly */
  4827. String category;
  4828. bool enabled;
  4829. /* readonly */
  4830. bool enabledEffective;
  4831. Array<Variant> globalVar;
  4832. /* readonly */
  4833. VariantMap globalVars;
  4834. /* readonly */
  4835. uint id;
  4836. int lodLevel;
  4837. float margin;
  4838. Model model;
  4839. /* readonly */
  4840. Node node;
  4841. /* readonly */
  4842. uint numAttributes;
  4843. ObjectAnimation objectAnimation;
  4844. Vector3 position;
  4845. /* readonly */
  4846. int refs;
  4847. /* readonly */
  4848. bool replicated;
  4849. Quaternion rotation;
  4850. ShapeType shapeType;
  4851. Vector3 size;
  4852. bool temporary;
  4853. /* readonly */
  4854. StringHash type;
  4855. /* readonly */
  4856. String typeName;
  4857. /* readonly */
  4858. int weakRefs;
  4859. /* readonly */
  4860. BoundingBox worldBoundingBox;
  4861. };
  4862. class CollisionShape2D
  4863. {
  4864. public:
  4865. // Methods:
  4866. void AllocateNetworkState();
  4867. operator Animatable() const;
  4868. void ApplyAttributes();
  4869. void CleanupConnection(Connection);
  4870. operator CollisionBox2D() const;
  4871. operator CollisionChain2D() const;
  4872. operator CollisionCircle2D() const;
  4873. operator CollisionEdge2D() const;
  4874. operator CollisionPolygon2D() const;
  4875. operator Component() const;
  4876. void CreateFixture();
  4877. void DrawDebugGeometry(DebugRenderer, bool);
  4878. bool GetAnimationEnabled() const;
  4879. Variant GetAttribute(const String&) const;
  4880. Variant GetAttribute(uint) const;
  4881. ValueAnimation GetAttributeAnimation(const String&) const;
  4882. float GetAttributeAnimationSpeed(const String&) const;
  4883. float GetAttributeAnimationTime(const String&) const;
  4884. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  4885. Variant GetAttributeDefault(const String&) const;
  4886. Variant GetAttributeDefault(uint) const;
  4887. bool GetBlockEvents() const;
  4888. int GetCategoryBits() const;
  4889. Component GetComponent(StringHash) const;
  4890. float GetDensity() const;
  4891. VariantMap& GetEventDataMap() const;
  4892. Object GetEventSender() const;
  4893. float GetFriction() const;
  4894. int GetGroupIndex() const;
  4895. uint GetID() const;
  4896. float GetInertia() const;
  4897. bool GetInterceptNetworkUpdate(const String&) const;
  4898. int GetMaskBits() const;
  4899. float GetMass() const;
  4900. Vector2 GetMassCenter() const;
  4901. Node GetNode() const;
  4902. uint GetNumAttributes() const;
  4903. uint GetNumNetworkAttributes() const;
  4904. ObjectAnimation GetObjectAnimation() const;
  4905. ResourceRef GetObjectAnimationAttr() const;
  4906. float GetRestitution() const;
  4907. Scene GetScene() const;
  4908. Object GetSubsystem(StringHash) const;
  4909. StringHash GetType() const;
  4910. bool HasEventHandlers() const;
  4911. bool HasSubscribedToEvent(Object, StringHash) const;
  4912. bool HasSubscribedToEvent(StringHash) const;
  4913. bool IsEnabled() const;
  4914. bool IsEnabledEffective() const;
  4915. bool IsInstanceOf(StringHash) const;
  4916. bool IsReplicated() const;
  4917. bool IsTemporary() const;
  4918. bool IsTrigger() const;
  4919. bool Load(Deserializer&);
  4920. bool LoadJSON(const JSONValue&);
  4921. bool LoadXML(const XMLElement&);
  4922. void MarkNetworkUpdate();
  4923. operator Object() const;
  4924. void OnEvent(Object, StringHash, VariantMap&);
  4925. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  4926. void OnSetAttribute(const AttributeInfo&, const Variant&);
  4927. void OnSetEnabled();
  4928. void PrepareNetworkUpdate();
  4929. bool ReadDeltaUpdate(Deserializer&);
  4930. bool ReadLatestDataUpdate(Deserializer&);
  4931. operator RefCounted() const;
  4932. int Refs() const;
  4933. void ReleaseFixture();
  4934. void Remove();
  4935. void RemoveAttributeAnimation(const String&);
  4936. void RemoveInstanceDefault();
  4937. void RemoveObjectAnimation();
  4938. void ResetToDefault();
  4939. bool Save(Serializer&) const;
  4940. bool SaveDefaultAttributes() const;
  4941. bool SaveJSON(JSONValue&) const;
  4942. bool SaveXML(XMLElement&) const;
  4943. void SendEvent(StringHash);
  4944. void SendEvent(StringHash, VariantMap&);
  4945. operator Serializable() const;
  4946. void SetAnimationEnabled(bool);
  4947. void SetAnimationTime(float);
  4948. bool SetAttribute(const String&, const Variant&);
  4949. bool SetAttribute(uint, const Variant&);
  4950. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  4951. void SetAttributeAnimationSpeed(const String&, float);
  4952. void SetAttributeAnimationTime(const String&, float);
  4953. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  4954. void SetBlockEvents(bool);
  4955. void SetCategoryBits(int);
  4956. void SetDensity(float);
  4957. void SetEnabled(bool);
  4958. void SetFriction(float);
  4959. void SetGlobalVar(StringHash, const Variant&);
  4960. void SetGroupIndex(int);
  4961. void SetInstanceDefault(bool);
  4962. void SetInterceptNetworkUpdate(const String&, bool);
  4963. void SetMaskBits(int);
  4964. void SetObjectAnimation(ObjectAnimation);
  4965. void SetObjectAnimationAttr(const ResourceRef&);
  4966. void SetRestitution(float);
  4967. void SetTemporary(bool);
  4968. void SetTrigger(bool);
  4969. const String& GetCategory() const;
  4970. const String& GetTypeName() const;
  4971. void UnsubscribeFromAllEvents();
  4972. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  4973. void UnsubscribeFromEvent(Object, StringHash);
  4974. void UnsubscribeFromEvent(StringHash);
  4975. void UnsubscribeFromEvents(Object);
  4976. const Variant& GetGlobalVar(StringHash) const;
  4977. const VariantMap& GetGlobalVars() const;
  4978. int WeakRefs() const;
  4979. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  4980. void WriteInitialDeltaUpdate(Serializer&, uint8);
  4981. void WriteLatestDataUpdate(Serializer&, uint8);
  4982. operator const Animatable() const;
  4983. operator const CollisionBox2D() const;
  4984. operator const CollisionChain2D() const;
  4985. operator const CollisionCircle2D() const;
  4986. operator const CollisionEdge2D() const;
  4987. operator const CollisionPolygon2D() const;
  4988. operator const Component() const;
  4989. operator const Object() const;
  4990. operator const RefCounted() const;
  4991. operator const Serializable() const;
  4992. // Properties:
  4993. bool animationEnabled;
  4994. /* readonly */
  4995. Array<Variant> attributeDefaults;
  4996. /* readonly */
  4997. Array<AttributeInfo> attributeInfos;
  4998. Array<Variant> attributes;
  4999. /* readonly */
  5000. String category;
  5001. int categoryBits;
  5002. float density;
  5003. bool enabled;
  5004. /* readonly */
  5005. bool enabledEffective;
  5006. float friction;
  5007. Array<Variant> globalVar;
  5008. /* readonly */
  5009. VariantMap globalVars;
  5010. int groupIndex;
  5011. /* readonly */
  5012. uint id;
  5013. /* readonly */
  5014. float inertia;
  5015. int maskBits;
  5016. /* readonly */
  5017. float mass;
  5018. /* readonly */
  5019. Vector2 massCenter;
  5020. /* readonly */
  5021. Node node;
  5022. /* readonly */
  5023. uint numAttributes;
  5024. ObjectAnimation objectAnimation;
  5025. /* readonly */
  5026. int refs;
  5027. /* readonly */
  5028. bool replicated;
  5029. float restitution;
  5030. bool temporary;
  5031. bool trigger;
  5032. /* readonly */
  5033. StringHash type;
  5034. /* readonly */
  5035. String typeName;
  5036. /* readonly */
  5037. int weakRefs;
  5038. };
  5039. class Color
  5040. {
  5041. public:
  5042. Color();
  5043. Color(const Color&in);
  5044. Color(const Color&in, float);
  5045. Color(float, float, float);
  5046. Color(float, float, float, float);
  5047. Color(const Vector3&in);
  5048. Color(const Vector4&in);
  5049. Color(float[]&inout);
  5050. // Methods:
  5051. Color operator+(const Color&) const;
  5052. Color& operator+=(const Color&);
  5053. Color& operator=(const Color&);
  5054. bool operator==(const Color&) const;
  5055. Color Abs() const;
  5056. float Average() const;
  5057. float Chroma() const;
  5058. void Clip(bool = false);
  5059. bool Equals(const Color&) const;
  5060. void FromHSL(float, float, float, float = 1.0f);
  5061. void FromHSV(float, float, float, float = 1.0f);
  5062. void FromUInt(uint);
  5063. Color GammaToLinear() const;
  5064. float Hue() const;
  5065. void Invert(bool = false);
  5066. Color Lerp(const Color&, float) const;
  5067. float Lightness() const;
  5068. Color LinearToGamma() const;
  5069. float Luma() const;
  5070. float MaxRGB() const;
  5071. float MinRGB() const;
  5072. float Range() const;
  5073. float SaturationHSL() const;
  5074. float SaturationHSV() const;
  5075. float SumRGB() const;
  5076. Vector3 ToHSL() const;
  5077. Vector3 ToHSV() const;
  5078. uint ToHash() const;
  5079. String ToString() const;
  5080. uint ToUInt() const;
  5081. uint ToUIntArgb() const;
  5082. Vector3 ToVector3() const;
  5083. Vector4 ToVector4() const;
  5084. float Value() const;
  5085. // Properties:
  5086. float a;
  5087. float b;
  5088. /* readonly */
  5089. Array<float> data;
  5090. float g;
  5091. float r;
  5092. /* readonly */
  5093. Vector3 rgb;
  5094. /* readonly */
  5095. Vector4 rgba;
  5096. // Constants:
  5097. static const Color BLACK;
  5098. static const Color BLUE;
  5099. static const Color CYAN;
  5100. static const Color GRAY;
  5101. static const Color GREEN;
  5102. static const Color MAGENTA;
  5103. static const Color RED;
  5104. static const Color TRANSPARENT_BLACK;
  5105. static const Color WHITE;
  5106. static const Color YELLOW;
  5107. };
  5108. class ColorFrame
  5109. {
  5110. public:
  5111. // Methods:
  5112. ColorFrame& operator=(const ColorFrame&);
  5113. Color Interpolate(const ColorFrame&, float) const;
  5114. // Properties:
  5115. Color color;
  5116. float time;
  5117. };
  5118. class Component
  5119. {
  5120. public:
  5121. Component();
  5122. // Methods:
  5123. void AllocateNetworkState();
  5124. operator Animatable() const;
  5125. operator AnimatedModel() const;
  5126. operator AnimatedSprite2D() const;
  5127. operator AnimationController() const;
  5128. void ApplyAttributes();
  5129. operator BillboardSet() const;
  5130. operator Camera() const;
  5131. void CleanupConnection(Connection);
  5132. operator CollisionBox2D() const;
  5133. operator CollisionChain2D() const;
  5134. operator CollisionCircle2D() const;
  5135. operator CollisionEdge2D() const;
  5136. operator CollisionPolygon2D() const;
  5137. operator CollisionShape2D() const;
  5138. operator CollisionShape() const;
  5139. operator Constraint2D() const;
  5140. operator Constraint() const;
  5141. operator ConstraintDistance2D() const;
  5142. operator ConstraintFriction2D() const;
  5143. operator ConstraintGear2D() const;
  5144. operator ConstraintMotor2D() const;
  5145. operator ConstraintMouse2D() const;
  5146. operator ConstraintPrismatic2D() const;
  5147. operator ConstraintPulley2D() const;
  5148. operator ConstraintRevolute2D() const;
  5149. operator ConstraintWeld2D() const;
  5150. operator ConstraintWheel2D() const;
  5151. operator CrowdAgent() const;
  5152. operator CrowdManager() const;
  5153. operator CustomGeometry() const;
  5154. operator DebugRenderer() const;
  5155. operator DecalSet() const;
  5156. void DrawDebugGeometry(DebugRenderer, bool);
  5157. operator Drawable2D() const;
  5158. operator Drawable() const;
  5159. operator DynamicNavigationMesh() const;
  5160. bool GetAnimationEnabled() const;
  5161. Variant GetAttribute(const String&) const;
  5162. Variant GetAttribute(uint) const;
  5163. ValueAnimation GetAttributeAnimation(const String&) const;
  5164. float GetAttributeAnimationSpeed(const String&) const;
  5165. float GetAttributeAnimationTime(const String&) const;
  5166. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5167. Variant GetAttributeDefault(const String&) const;
  5168. Variant GetAttributeDefault(uint) const;
  5169. bool GetBlockEvents() const;
  5170. Component GetComponent(StringHash) const;
  5171. VariantMap& GetEventDataMap() const;
  5172. Object GetEventSender() const;
  5173. uint GetID() const;
  5174. bool GetInterceptNetworkUpdate(const String&) const;
  5175. Node GetNode() const;
  5176. uint GetNumAttributes() const;
  5177. uint GetNumNetworkAttributes() const;
  5178. ObjectAnimation GetObjectAnimation() const;
  5179. ResourceRef GetObjectAnimationAttr() const;
  5180. Scene GetScene() const;
  5181. Object GetSubsystem(StringHash) const;
  5182. StringHash GetType() const;
  5183. bool HasEventHandlers() const;
  5184. bool HasSubscribedToEvent(Object, StringHash) const;
  5185. bool HasSubscribedToEvent(StringHash) const;
  5186. operator IKConstraint() const;
  5187. operator IKEffector() const;
  5188. operator IKSolver() const;
  5189. bool IsEnabled() const;
  5190. bool IsEnabledEffective() const;
  5191. bool IsInstanceOf(StringHash) const;
  5192. bool IsReplicated() const;
  5193. bool IsTemporary() const;
  5194. operator Light() const;
  5195. bool Load(Deserializer&);
  5196. bool LoadJSON(const JSONValue&);
  5197. bool LoadXML(const XMLElement&);
  5198. operator LogicComponent() const;
  5199. void MarkNetworkUpdate();
  5200. operator NavArea() const;
  5201. operator Navigable() const;
  5202. operator NavigationMesh() const;
  5203. operator NetworkPriority() const;
  5204. operator Object() const;
  5205. operator Obstacle() const;
  5206. operator Octree() const;
  5207. operator OffMeshConnection() const;
  5208. void OnEvent(Object, StringHash, VariantMap&);
  5209. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5210. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5211. void OnSetEnabled();
  5212. operator ParticleEmitter2D() const;
  5213. operator ParticleEmitter() const;
  5214. operator PhysicsWorld2D() const;
  5215. operator PhysicsWorld() const;
  5216. void PrepareNetworkUpdate();
  5217. operator RaycastVehicle() const;
  5218. bool ReadDeltaUpdate(Deserializer&);
  5219. bool ReadLatestDataUpdate(Deserializer&);
  5220. operator RefCounted() const;
  5221. int Refs() const;
  5222. void Remove();
  5223. void RemoveAttributeAnimation(const String&);
  5224. void RemoveInstanceDefault();
  5225. void RemoveObjectAnimation();
  5226. operator Renderer2D() const;
  5227. void ResetToDefault();
  5228. operator RibbonTrail() const;
  5229. operator RigidBody2D() const;
  5230. operator RigidBody() const;
  5231. bool Save(Serializer&) const;
  5232. bool SaveDefaultAttributes() const;
  5233. bool SaveJSON(JSONValue&) const;
  5234. bool SaveXML(XMLElement&) const;
  5235. operator ScriptInstance() const;
  5236. void SendEvent(StringHash);
  5237. void SendEvent(StringHash, VariantMap&);
  5238. operator Serializable() const;
  5239. void SetAnimationEnabled(bool);
  5240. void SetAnimationTime(float);
  5241. bool SetAttribute(const String&, const Variant&);
  5242. bool SetAttribute(uint, const Variant&);
  5243. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5244. void SetAttributeAnimationSpeed(const String&, float);
  5245. void SetAttributeAnimationTime(const String&, float);
  5246. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5247. void SetBlockEvents(bool);
  5248. void SetEnabled(bool);
  5249. void SetGlobalVar(StringHash, const Variant&);
  5250. void SetInstanceDefault(bool);
  5251. void SetInterceptNetworkUpdate(const String&, bool);
  5252. void SetObjectAnimation(ObjectAnimation);
  5253. void SetObjectAnimationAttr(const ResourceRef&);
  5254. void SetTemporary(bool);
  5255. operator Skybox() const;
  5256. operator SmoothedTransform() const;
  5257. operator SoundListener() const;
  5258. operator SoundSource3D() const;
  5259. operator SoundSource() const;
  5260. operator SplinePath() const;
  5261. operator StaticModel() const;
  5262. operator StaticModelGroup() const;
  5263. operator StaticSprite2D() const;
  5264. operator StretchableSprite2D() const;
  5265. const String& GetCategory() const;
  5266. const String& GetTypeName() const;
  5267. operator Terrain() const;
  5268. operator TerrainPatch() const;
  5269. operator Text3D() const;
  5270. operator TileMap2D() const;
  5271. operator TileMapLayer2D() const;
  5272. operator UIComponent() const;
  5273. operator UnknownComponent() const;
  5274. void UnsubscribeFromAllEvents();
  5275. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5276. void UnsubscribeFromEvent(Object, StringHash);
  5277. void UnsubscribeFromEvent(StringHash);
  5278. void UnsubscribeFromEvents(Object);
  5279. const Variant& GetGlobalVar(StringHash) const;
  5280. const VariantMap& GetGlobalVars() const;
  5281. int WeakRefs() const;
  5282. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  5283. void WriteInitialDeltaUpdate(Serializer&, uint8);
  5284. void WriteLatestDataUpdate(Serializer&, uint8);
  5285. operator Zone() const;
  5286. operator const Animatable() const;
  5287. operator const AnimatedModel() const;
  5288. operator const AnimatedSprite2D() const;
  5289. operator const AnimationController() const;
  5290. operator const BillboardSet() const;
  5291. operator const Camera() const;
  5292. operator const CollisionBox2D() const;
  5293. operator const CollisionChain2D() const;
  5294. operator const CollisionCircle2D() const;
  5295. operator const CollisionEdge2D() const;
  5296. operator const CollisionPolygon2D() const;
  5297. operator const CollisionShape2D() const;
  5298. operator const CollisionShape() const;
  5299. operator const Constraint2D() const;
  5300. operator const Constraint() const;
  5301. operator const ConstraintDistance2D() const;
  5302. operator const ConstraintFriction2D() const;
  5303. operator const ConstraintGear2D() const;
  5304. operator const ConstraintMotor2D() const;
  5305. operator const ConstraintMouse2D() const;
  5306. operator const ConstraintPrismatic2D() const;
  5307. operator const ConstraintPulley2D() const;
  5308. operator const ConstraintRevolute2D() const;
  5309. operator const ConstraintWeld2D() const;
  5310. operator const ConstraintWheel2D() const;
  5311. operator const CrowdAgent() const;
  5312. operator const CrowdManager() const;
  5313. operator const CustomGeometry() const;
  5314. operator const DebugRenderer() const;
  5315. operator const DecalSet() const;
  5316. operator const Drawable2D() const;
  5317. operator const Drawable() const;
  5318. operator const DynamicNavigationMesh() const;
  5319. operator const IKConstraint() const;
  5320. operator const IKEffector() const;
  5321. operator const IKSolver() const;
  5322. operator const Light() const;
  5323. operator const LogicComponent() const;
  5324. operator const NavArea() const;
  5325. operator const Navigable() const;
  5326. operator const NavigationMesh() const;
  5327. operator const NetworkPriority() const;
  5328. operator const Object() const;
  5329. operator const Obstacle() const;
  5330. operator const Octree() const;
  5331. operator const OffMeshConnection() const;
  5332. operator const ParticleEmitter2D() const;
  5333. operator const ParticleEmitter() const;
  5334. operator const PhysicsWorld2D() const;
  5335. operator const PhysicsWorld() const;
  5336. operator const RaycastVehicle() const;
  5337. operator const RefCounted() const;
  5338. operator const Renderer2D() const;
  5339. operator const RibbonTrail() const;
  5340. operator const RigidBody2D() const;
  5341. operator const RigidBody() const;
  5342. operator const ScriptInstance() const;
  5343. operator const Serializable() const;
  5344. operator const Skybox() const;
  5345. operator const SmoothedTransform() const;
  5346. operator const SoundListener() const;
  5347. operator const SoundSource3D() const;
  5348. operator const SoundSource() const;
  5349. operator const SplinePath() const;
  5350. operator const StaticModel() const;
  5351. operator const StaticModelGroup() const;
  5352. operator const StaticSprite2D() const;
  5353. operator const StretchableSprite2D() const;
  5354. operator const Terrain() const;
  5355. operator const TerrainPatch() const;
  5356. operator const Text3D() const;
  5357. operator const TileMap2D() const;
  5358. operator const TileMapLayer2D() const;
  5359. operator const UIComponent() const;
  5360. operator const UnknownComponent() const;
  5361. operator const Zone() const;
  5362. // Properties:
  5363. bool animationEnabled;
  5364. /* readonly */
  5365. Array<Variant> attributeDefaults;
  5366. /* readonly */
  5367. Array<AttributeInfo> attributeInfos;
  5368. Array<Variant> attributes;
  5369. /* readonly */
  5370. String category;
  5371. bool enabled;
  5372. /* readonly */
  5373. bool enabledEffective;
  5374. Array<Variant> globalVar;
  5375. /* readonly */
  5376. VariantMap globalVars;
  5377. /* readonly */
  5378. uint id;
  5379. /* readonly */
  5380. Node node;
  5381. /* readonly */
  5382. uint numAttributes;
  5383. ObjectAnimation objectAnimation;
  5384. /* readonly */
  5385. int refs;
  5386. /* readonly */
  5387. bool replicated;
  5388. bool temporary;
  5389. /* readonly */
  5390. StringHash type;
  5391. /* readonly */
  5392. String typeName;
  5393. /* readonly */
  5394. int weakRefs;
  5395. };
  5396. class ComponentReplicationState
  5397. {
  5398. public:
  5399. ~ComponentReplicationState();
  5400. ComponentReplicationState();
  5401. // Methods:
  5402. ComponentReplicationState& operator=(const ComponentReplicationState&);
  5403. // Properties:
  5404. DirtyBits dirtyAttributes;
  5405. };
  5406. class CompressedLevel
  5407. {
  5408. public:
  5409. ~CompressedLevel();
  5410. CompressedLevel();
  5411. // Methods:
  5412. CompressedLevel& operator=(const CompressedLevel&);
  5413. // Properties:
  5414. uint blockSize;
  5415. uint dataSize;
  5416. int depth;
  5417. CompressedFormat format;
  5418. int height;
  5419. uint rowSize;
  5420. uint rows;
  5421. int width;
  5422. };
  5423. class Condition
  5424. {
  5425. public:
  5426. ~Condition();
  5427. Condition();
  5428. // Methods:
  5429. Condition& operator=(const Condition&);
  5430. void Set();
  5431. void Wait();
  5432. };
  5433. class Connection
  5434. {
  5435. public:
  5436. // Methods:
  5437. void Ban();
  5438. void ConfigureNetworkSimulator(int, float);
  5439. const Controls& GetControls() const;
  5440. void Disconnect(int = 0);
  5441. String GetAddress() const;
  5442. bool GetBlockEvents() const;
  5443. float GetBytesInPerSec() const;
  5444. float GetBytesOutPerSec() const;
  5445. float GetDownloadProgress() const;
  5446. VariantMap& GetEventDataMap() const;
  5447. Object GetEventSender() const;
  5448. VariantMap& GetIdentity();
  5449. uint GetLastHeardTime() const;
  5450. bool GetLogStatistics() const;
  5451. uint GetNumDownloads() const;
  5452. PacketType GetPacketType(bool, bool);
  5453. int GetPacketsInPerSec() const;
  5454. int GetPacketsOutPerSec() const;
  5455. uint16 GetPort() const;
  5456. float GetRoundTripTime() const;
  5457. Scene GetScene() const;
  5458. Object GetSubsystem(StringHash) const;
  5459. uint8 GetTimeStamp() const;
  5460. StringHash GetType() const;
  5461. bool HasEventHandlers() const;
  5462. bool HasSubscribedToEvent(Object, StringHash) const;
  5463. bool HasSubscribedToEvent(StringHash) const;
  5464. bool IsClient() const;
  5465. bool IsConnectPending() const;
  5466. bool IsConnected() const;
  5467. bool IsInstanceOf(StringHash) const;
  5468. bool IsSceneLoaded() const;
  5469. operator Object() const;
  5470. void OnEvent(Object, StringHash, VariantMap&);
  5471. void ProcessPendingLatestData();
  5472. const Quaternion& GetRotation() const;
  5473. operator RefCounted() const;
  5474. int Refs() const;
  5475. void SendAllBuffers();
  5476. void SendBuffer(PacketType);
  5477. void SendClientUpdate();
  5478. void SendEvent(StringHash);
  5479. void SendEvent(StringHash, VariantMap&);
  5480. void SendMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  5481. void SendPackageToClient(PackageFile);
  5482. void SendPackages();
  5483. void SendRemoteEvent(Node, StringHash, bool, const VariantMap& = VariantMap ( ));
  5484. void SendRemoteEvent(StringHash, bool, const VariantMap& = VariantMap ( ));
  5485. void SendRemoteEvents();
  5486. void SendServerUpdate();
  5487. void SetBlockEvents(bool);
  5488. void SetConnectPending(bool);
  5489. void SetControls(const Controls&);
  5490. void SetGlobalVar(StringHash, const Variant&);
  5491. void SetIdentity(const VariantMap&);
  5492. void SetLogStatistics(bool);
  5493. void SetPacketSizeLimit(int);
  5494. void SetPosition(const Vector3&);
  5495. void SetRotation(const Quaternion&);
  5496. void SetScene(Scene);
  5497. const String& GetCategory() const;
  5498. const String& GetDownloadName() const;
  5499. const String& GetTypeName() const;
  5500. String ToString() const;
  5501. void UnsubscribeFromAllEvents();
  5502. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5503. void UnsubscribeFromEvent(Object, StringHash);
  5504. void UnsubscribeFromEvent(StringHash);
  5505. void UnsubscribeFromEvents(Object);
  5506. const Variant& GetGlobalVar(StringHash) const;
  5507. const VariantMap& GetGlobalVars() const;
  5508. const Vector3& GetPosition() const;
  5509. int WeakRefs() const;
  5510. operator const Object() const;
  5511. operator const RefCounted() const;
  5512. // Properties:
  5513. /* readonly */
  5514. String address;
  5515. /* readonly */
  5516. float bytesInPerSec;
  5517. /* readonly */
  5518. float bytesOutPerSec;
  5519. /* readonly */
  5520. String category;
  5521. /* readonly */
  5522. bool client;
  5523. /* readonly */
  5524. bool connectPending;
  5525. /* readonly */
  5526. bool connected;
  5527. Controls controls;
  5528. /* readonly */
  5529. String downloadName;
  5530. /* readonly */
  5531. float downloadProgress;
  5532. Array<Variant> globalVar;
  5533. /* readonly */
  5534. VariantMap globalVars;
  5535. VariantMap identity;
  5536. /* readonly */
  5537. uint lastHeardTime;
  5538. bool logStatistics;
  5539. /* readonly */
  5540. uint numDownloads;
  5541. /* readonly */
  5542. int packetsInPerSec;
  5543. /* readonly */
  5544. int packetsOutPerSec;
  5545. /* readonly */
  5546. uint16 port;
  5547. Vector3 position;
  5548. /* readonly */
  5549. int refs;
  5550. Quaternion rotation;
  5551. /* readonly */
  5552. float roundTripTime;
  5553. Scene scene;
  5554. /* readonly */
  5555. bool sceneLoaded;
  5556. uint8 timeStamp;
  5557. /* readonly */
  5558. StringHash type;
  5559. /* readonly */
  5560. String typeName;
  5561. /* readonly */
  5562. int weakRefs;
  5563. };
  5564. class Console
  5565. {
  5566. public:
  5567. Console();
  5568. // Methods:
  5569. void AddAutoComplete(const String&);
  5570. void CopySelectedRows() const;
  5571. BorderImage GetBackground() const;
  5572. bool GetBlockEvents() const;
  5573. Button GetCloseButton() const;
  5574. XMLFile GetDefaultStyle() const;
  5575. VariantMap& GetEventDataMap() const;
  5576. Object GetEventSender() const;
  5577. bool GetFocusOnShow() const;
  5578. int GetHistoryPosition() const;
  5579. LineEdit GetLineEdit() const;
  5580. int GetNumBufferedRows() const;
  5581. int GetNumHistoryRows() const;
  5582. int GetNumRows() const;
  5583. Object GetSubsystem(StringHash) const;
  5584. StringHash GetType() const;
  5585. bool HasEventHandlers() const;
  5586. bool HasSubscribedToEvent(Object, StringHash) const;
  5587. bool HasSubscribedToEvent(StringHash) const;
  5588. bool IsAutoVisibleOnError() const;
  5589. bool IsInstanceOf(StringHash) const;
  5590. bool IsVisible() const;
  5591. operator Object() const;
  5592. void OnEvent(Object, StringHash, VariantMap&);
  5593. operator RefCounted() const;
  5594. int Refs() const;
  5595. void RemoveAutoComplete(const String&);
  5596. void SendEvent(StringHash);
  5597. void SendEvent(StringHash, VariantMap&);
  5598. void SetAutoVisibleOnError(bool);
  5599. void SetBlockEvents(bool);
  5600. void SetCommandInterpreter(const String&);
  5601. void SetDefaultStyle(XMLFile);
  5602. void SetFocusOnShow(bool);
  5603. void SetGlobalVar(StringHash, const Variant&);
  5604. void SetNumBufferedRows(int);
  5605. void SetNumHistoryRows(int);
  5606. void SetNumRows(int);
  5607. void SetVisible(bool);
  5608. const String& GetCategory() const;
  5609. const String& GetCommandInterpreter() const;
  5610. const String& GetHistoryRow(int) const;
  5611. const String& GetTypeName() const;
  5612. void Toggle();
  5613. void UnsubscribeFromAllEvents();
  5614. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5615. void UnsubscribeFromEvent(Object, StringHash);
  5616. void UnsubscribeFromEvent(StringHash);
  5617. void UnsubscribeFromEvents(Object);
  5618. void UpdateElements();
  5619. const Variant& GetGlobalVar(StringHash) const;
  5620. const VariantMap& GetGlobalVars() const;
  5621. int WeakRefs() const;
  5622. operator const Object() const;
  5623. operator const RefCounted() const;
  5624. // Properties:
  5625. bool autoVisibleOnError;
  5626. /* readonly */
  5627. BorderImage background;
  5628. /* readonly */
  5629. String category;
  5630. /* readonly */
  5631. Button closeButton;
  5632. String commandInterpreter;
  5633. XMLFile defaultStyle;
  5634. bool focusOnShow;
  5635. Array<Variant> globalVar;
  5636. /* readonly */
  5637. VariantMap globalVars;
  5638. /* readonly */
  5639. int historyPosition;
  5640. /* readonly */
  5641. Array<String> historyRow;
  5642. /* readonly */
  5643. LineEdit lineEdit;
  5644. int numBufferedRows;
  5645. int numHistoryRows;
  5646. int numRows;
  5647. /* readonly */
  5648. int refs;
  5649. /* readonly */
  5650. StringHash type;
  5651. /* readonly */
  5652. String typeName;
  5653. bool visible;
  5654. /* readonly */
  5655. int weakRefs;
  5656. };
  5657. class ConstantBuffer
  5658. {
  5659. public:
  5660. ConstantBuffer();
  5661. // Methods:
  5662. void Apply();
  5663. void ClearDataLost();
  5664. bool GetBlockEvents() const;
  5665. VariantMap& GetEventDataMap() const;
  5666. Object GetEventSender() const;
  5667. uint GetGPUObjectName() const;
  5668. Graphics GetGraphics() const;
  5669. uint GetSize() const;
  5670. Object GetSubsystem(StringHash) const;
  5671. StringHash GetType() const;
  5672. bool HasEventHandlers() const;
  5673. bool HasPendingData() const;
  5674. bool HasSubscribedToEvent(Object, StringHash) const;
  5675. bool HasSubscribedToEvent(StringHash) const;
  5676. bool IsDataLost() const;
  5677. bool IsDirty() const;
  5678. bool IsInstanceOf(StringHash) const;
  5679. operator Object() const;
  5680. void OnDeviceLost();
  5681. void OnDeviceReset();
  5682. void OnEvent(Object, StringHash, VariantMap&);
  5683. operator RefCounted() const;
  5684. int Refs() const;
  5685. void Release();
  5686. void SendEvent(StringHash);
  5687. void SendEvent(StringHash, VariantMap&);
  5688. void SetBlockEvents(bool);
  5689. void SetGlobalVar(StringHash, const Variant&);
  5690. bool SetSize(uint);
  5691. const String& GetCategory() const;
  5692. const String& GetTypeName() const;
  5693. void UnsubscribeFromAllEvents();
  5694. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5695. void UnsubscribeFromEvent(Object, StringHash);
  5696. void UnsubscribeFromEvent(StringHash);
  5697. void UnsubscribeFromEvents(Object);
  5698. const Variant& GetGlobalVar(StringHash) const;
  5699. const VariantMap& GetGlobalVars() const;
  5700. int WeakRefs() const;
  5701. operator const Object() const;
  5702. operator const RefCounted() const;
  5703. // Properties:
  5704. /* readonly */
  5705. String category;
  5706. /* readonly */
  5707. bool dataLost;
  5708. Array<Variant> globalVar;
  5709. /* readonly */
  5710. VariantMap globalVars;
  5711. /* readonly */
  5712. int refs;
  5713. /* readonly */
  5714. StringHash type;
  5715. /* readonly */
  5716. String typeName;
  5717. /* readonly */
  5718. int weakRefs;
  5719. };
  5720. class Constraint
  5721. {
  5722. public:
  5723. Constraint();
  5724. // Methods:
  5725. void AllocateNetworkState();
  5726. operator Animatable() const;
  5727. void ApplyAttributes();
  5728. void ApplyFrames();
  5729. void CleanupConnection(Connection);
  5730. operator Component() const;
  5731. void DrawDebugGeometry(DebugRenderer, bool);
  5732. bool GetAnimationEnabled() const;
  5733. Variant GetAttribute(const String&) const;
  5734. Variant GetAttribute(uint) const;
  5735. ValueAnimation GetAttributeAnimation(const String&) const;
  5736. float GetAttributeAnimationSpeed(const String&) const;
  5737. float GetAttributeAnimationTime(const String&) const;
  5738. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5739. Variant GetAttributeDefault(const String&) const;
  5740. Variant GetAttributeDefault(uint) const;
  5741. bool GetBlockEvents() const;
  5742. float GetCFM() const;
  5743. Component GetComponent(StringHash) const;
  5744. ConstraintType GetConstraintType() const;
  5745. bool GetDisableCollision() const;
  5746. float GetERP() const;
  5747. VariantMap& GetEventDataMap() const;
  5748. Object GetEventSender() const;
  5749. uint GetID() const;
  5750. bool GetInterceptNetworkUpdate(const String&) const;
  5751. Node GetNode() const;
  5752. uint GetNumAttributes() const;
  5753. uint GetNumNetworkAttributes() const;
  5754. ObjectAnimation GetObjectAnimation() const;
  5755. ResourceRef GetObjectAnimationAttr() const;
  5756. RigidBody GetOtherBody() const;
  5757. RigidBody GetOwnBody() const;
  5758. PhysicsWorld GetPhysicsWorld() const;
  5759. Scene GetScene() const;
  5760. Object GetSubsystem(StringHash) const;
  5761. StringHash GetType() const;
  5762. Vector3 GetWorldPosition() const;
  5763. bool HasEventHandlers() const;
  5764. bool HasSubscribedToEvent(Object, StringHash) const;
  5765. bool HasSubscribedToEvent(StringHash) const;
  5766. bool IsEnabled() const;
  5767. bool IsEnabledEffective() const;
  5768. bool IsInstanceOf(StringHash) const;
  5769. bool IsReplicated() const;
  5770. bool IsTemporary() const;
  5771. bool Load(Deserializer&);
  5772. bool LoadJSON(const JSONValue&);
  5773. bool LoadXML(const XMLElement&);
  5774. void MarkNetworkUpdate();
  5775. operator Object() const;
  5776. void OnEvent(Object, StringHash, VariantMap&);
  5777. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5778. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5779. void OnSetEnabled();
  5780. void PrepareNetworkUpdate();
  5781. const Quaternion& GetOtherRotation() const;
  5782. const Quaternion& GetRotation() const;
  5783. bool ReadDeltaUpdate(Deserializer&);
  5784. bool ReadLatestDataUpdate(Deserializer&);
  5785. operator RefCounted() const;
  5786. int Refs() const;
  5787. void ReleaseConstraint();
  5788. void Remove();
  5789. void RemoveAttributeAnimation(const String&);
  5790. void RemoveInstanceDefault();
  5791. void RemoveObjectAnimation();
  5792. void ResetToDefault();
  5793. bool Save(Serializer&) const;
  5794. bool SaveDefaultAttributes() const;
  5795. bool SaveJSON(JSONValue&) const;
  5796. bool SaveXML(XMLElement&) const;
  5797. void SendEvent(StringHash);
  5798. void SendEvent(StringHash, VariantMap&);
  5799. operator Serializable() const;
  5800. void SetAnimationEnabled(bool);
  5801. void SetAnimationTime(float);
  5802. bool SetAttribute(const String&, const Variant&);
  5803. bool SetAttribute(uint, const Variant&);
  5804. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5805. void SetAttributeAnimationSpeed(const String&, float);
  5806. void SetAttributeAnimationTime(const String&, float);
  5807. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5808. void SetAxis(const Vector3&);
  5809. void SetBlockEvents(bool);
  5810. void SetCFM(float);
  5811. void SetConstraintType(ConstraintType);
  5812. void SetDisableCollision(bool);
  5813. void SetERP(float);
  5814. void SetEnabled(bool);
  5815. void SetGlobalVar(StringHash, const Variant&);
  5816. void SetHighLimit(const Vector2&);
  5817. void SetInstanceDefault(bool);
  5818. void SetInterceptNetworkUpdate(const String&, bool);
  5819. void SetLowLimit(const Vector2&);
  5820. void SetObjectAnimation(ObjectAnimation);
  5821. void SetObjectAnimationAttr(const ResourceRef&);
  5822. void SetOtherAxis(const Vector3&);
  5823. void SetOtherBody(RigidBody);
  5824. void SetOtherPosition(const Vector3&);
  5825. void SetOtherRotation(const Quaternion&);
  5826. void SetPosition(const Vector3&);
  5827. void SetRotation(const Quaternion&);
  5828. void SetTemporary(bool);
  5829. void SetWorldPosition(const Vector3&);
  5830. const String& GetCategory() const;
  5831. const String& GetTypeName() const;
  5832. void UnsubscribeFromAllEvents();
  5833. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  5834. void UnsubscribeFromEvent(Object, StringHash);
  5835. void UnsubscribeFromEvent(StringHash);
  5836. void UnsubscribeFromEvents(Object);
  5837. const Variant& GetGlobalVar(StringHash) const;
  5838. const VariantMap& GetGlobalVars() const;
  5839. const Vector2& GetHighLimit() const;
  5840. const Vector2& GetLowLimit() const;
  5841. const Vector3& GetOtherPosition() const;
  5842. const Vector3& GetPosition() const;
  5843. int WeakRefs() const;
  5844. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  5845. void WriteInitialDeltaUpdate(Serializer&, uint8);
  5846. void WriteLatestDataUpdate(Serializer&, uint8);
  5847. operator const Animatable() const;
  5848. operator const Component() const;
  5849. operator const Object() const;
  5850. operator const RefCounted() const;
  5851. operator const Serializable() const;
  5852. // Properties:
  5853. bool animationEnabled;
  5854. /* readonly */
  5855. Array<Variant> attributeDefaults;
  5856. /* readonly */
  5857. Array<AttributeInfo> attributeInfos;
  5858. Array<Variant> attributes;
  5859. /* writeonly */
  5860. Vector3 axis;
  5861. /* readonly */
  5862. String category;
  5863. float cfm;
  5864. ConstraintType constraintType;
  5865. bool disableCollision;
  5866. bool enabled;
  5867. /* readonly */
  5868. bool enabledEffective;
  5869. float erp;
  5870. Array<Variant> globalVar;
  5871. /* readonly */
  5872. VariantMap globalVars;
  5873. Vector2 highLimit;
  5874. /* readonly */
  5875. uint id;
  5876. Vector2 lowLimit;
  5877. /* readonly */
  5878. Node node;
  5879. /* readonly */
  5880. uint numAttributes;
  5881. ObjectAnimation objectAnimation;
  5882. /* writeonly */
  5883. Vector3 otherAxis;
  5884. RigidBody otherBody;
  5885. Vector3 otherPosition;
  5886. Quaternion otherRotation;
  5887. /* readonly */
  5888. RigidBody ownBody;
  5889. Vector3 position;
  5890. /* readonly */
  5891. int refs;
  5892. /* readonly */
  5893. bool replicated;
  5894. Quaternion rotation;
  5895. bool temporary;
  5896. /* readonly */
  5897. StringHash type;
  5898. /* readonly */
  5899. String typeName;
  5900. /* readonly */
  5901. int weakRefs;
  5902. Vector3 worldPosition;
  5903. };
  5904. class Constraint2D
  5905. {
  5906. public:
  5907. Constraint2D();
  5908. // Methods:
  5909. void AllocateNetworkState();
  5910. operator Animatable() const;
  5911. void ApplyAttributes();
  5912. void CleanupConnection(Connection);
  5913. operator Component() const;
  5914. operator ConstraintDistance2D() const;
  5915. operator ConstraintFriction2D() const;
  5916. operator ConstraintGear2D() const;
  5917. operator ConstraintMotor2D() const;
  5918. operator ConstraintMouse2D() const;
  5919. operator ConstraintPrismatic2D() const;
  5920. operator ConstraintPulley2D() const;
  5921. operator ConstraintRevolute2D() const;
  5922. operator ConstraintWeld2D() const;
  5923. operator ConstraintWheel2D() const;
  5924. void CreateJoint();
  5925. void DrawDebugGeometry(DebugRenderer, bool);
  5926. bool GetAnimationEnabled() const;
  5927. Constraint2D GetAttachedConstraint() const;
  5928. Variant GetAttribute(const String&) const;
  5929. Variant GetAttribute(uint) const;
  5930. ValueAnimation GetAttributeAnimation(const String&) const;
  5931. float GetAttributeAnimationSpeed(const String&) const;
  5932. float GetAttributeAnimationTime(const String&) const;
  5933. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  5934. Variant GetAttributeDefault(const String&) const;
  5935. Variant GetAttributeDefault(uint) const;
  5936. bool GetBlockEvents() const;
  5937. bool GetCollideConnected() const;
  5938. Component GetComponent(StringHash) const;
  5939. VariantMap& GetEventDataMap() const;
  5940. Object GetEventSender() const;
  5941. uint GetID() const;
  5942. bool GetInterceptNetworkUpdate(const String&) const;
  5943. Node GetNode() const;
  5944. uint GetNumAttributes() const;
  5945. uint GetNumNetworkAttributes() const;
  5946. ObjectAnimation GetObjectAnimation() const;
  5947. ResourceRef GetObjectAnimationAttr() const;
  5948. RigidBody2D GetOtherBody() const;
  5949. RigidBody2D GetOwnerBody() const;
  5950. Scene GetScene() const;
  5951. Object GetSubsystem(StringHash) const;
  5952. StringHash GetType() const;
  5953. bool HasEventHandlers() const;
  5954. bool HasSubscribedToEvent(Object, StringHash) const;
  5955. bool HasSubscribedToEvent(StringHash) const;
  5956. bool IsEnabled() const;
  5957. bool IsEnabledEffective() const;
  5958. bool IsInstanceOf(StringHash) const;
  5959. bool IsReplicated() const;
  5960. bool IsTemporary() const;
  5961. bool Load(Deserializer&);
  5962. bool LoadJSON(const JSONValue&);
  5963. bool LoadXML(const XMLElement&);
  5964. void MarkNetworkUpdate();
  5965. operator Object() const;
  5966. void OnEvent(Object, StringHash, VariantMap&);
  5967. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  5968. void OnSetAttribute(const AttributeInfo&, const Variant&);
  5969. void OnSetEnabled();
  5970. void PrepareNetworkUpdate();
  5971. bool ReadDeltaUpdate(Deserializer&);
  5972. bool ReadLatestDataUpdate(Deserializer&);
  5973. operator RefCounted() const;
  5974. int Refs() const;
  5975. void ReleaseJoint();
  5976. void Remove();
  5977. void RemoveAttributeAnimation(const String&);
  5978. void RemoveInstanceDefault();
  5979. void RemoveObjectAnimation();
  5980. void ResetToDefault();
  5981. bool Save(Serializer&) const;
  5982. bool SaveDefaultAttributes() const;
  5983. bool SaveJSON(JSONValue&) const;
  5984. bool SaveXML(XMLElement&) const;
  5985. void SendEvent(StringHash);
  5986. void SendEvent(StringHash, VariantMap&);
  5987. operator Serializable() const;
  5988. void SetAnimationEnabled(bool);
  5989. void SetAnimationTime(float);
  5990. void SetAttachedConstraint(Constraint2D);
  5991. bool SetAttribute(const String&, const Variant&);
  5992. bool SetAttribute(uint, const Variant&);
  5993. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  5994. void SetAttributeAnimationSpeed(const String&, float);
  5995. void SetAttributeAnimationTime(const String&, float);
  5996. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  5997. void SetBlockEvents(bool);
  5998. void SetCollideConnected(bool);
  5999. void SetEnabled(bool);
  6000. void SetGlobalVar(StringHash, const Variant&);
  6001. void SetInstanceDefault(bool);
  6002. void SetInterceptNetworkUpdate(const String&, bool);
  6003. void SetObjectAnimation(ObjectAnimation);
  6004. void SetObjectAnimationAttr(const ResourceRef&);
  6005. void SetOtherBody(RigidBody2D);
  6006. void SetTemporary(bool);
  6007. const String& GetCategory() const;
  6008. const String& GetTypeName() const;
  6009. void UnsubscribeFromAllEvents();
  6010. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6011. void UnsubscribeFromEvent(Object, StringHash);
  6012. void UnsubscribeFromEvent(StringHash);
  6013. void UnsubscribeFromEvents(Object);
  6014. const Variant& GetGlobalVar(StringHash) const;
  6015. const VariantMap& GetGlobalVars() const;
  6016. int WeakRefs() const;
  6017. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6018. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6019. void WriteLatestDataUpdate(Serializer&, uint8);
  6020. operator const Animatable() const;
  6021. operator const Component() const;
  6022. operator const ConstraintDistance2D() const;
  6023. operator const ConstraintFriction2D() const;
  6024. operator const ConstraintGear2D() const;
  6025. operator const ConstraintMotor2D() const;
  6026. operator const ConstraintMouse2D() const;
  6027. operator const ConstraintPrismatic2D() const;
  6028. operator const ConstraintPulley2D() const;
  6029. operator const ConstraintRevolute2D() const;
  6030. operator const ConstraintWeld2D() const;
  6031. operator const ConstraintWheel2D() const;
  6032. operator const Object() const;
  6033. operator const RefCounted() const;
  6034. operator const Serializable() const;
  6035. // Properties:
  6036. bool animationEnabled;
  6037. /* readonly */
  6038. Array<Variant> attributeDefaults;
  6039. /* readonly */
  6040. Array<AttributeInfo> attributeInfos;
  6041. Array<Variant> attributes;
  6042. /* readonly */
  6043. String category;
  6044. bool collideConnected;
  6045. bool enabled;
  6046. /* readonly */
  6047. bool enabledEffective;
  6048. Array<Variant> globalVar;
  6049. /* readonly */
  6050. VariantMap globalVars;
  6051. /* readonly */
  6052. uint id;
  6053. /* readonly */
  6054. Node node;
  6055. /* readonly */
  6056. uint numAttributes;
  6057. ObjectAnimation objectAnimation;
  6058. RigidBody2D otherBody;
  6059. /* readonly */
  6060. RigidBody2D ownerBody;
  6061. /* readonly */
  6062. int refs;
  6063. /* readonly */
  6064. bool replicated;
  6065. bool temporary;
  6066. /* readonly */
  6067. StringHash type;
  6068. /* readonly */
  6069. String typeName;
  6070. /* readonly */
  6071. int weakRefs;
  6072. };
  6073. class ConstraintDistance2D
  6074. {
  6075. public:
  6076. ConstraintDistance2D();
  6077. // Methods:
  6078. void AllocateNetworkState();
  6079. operator Animatable() const;
  6080. void ApplyAttributes();
  6081. void CleanupConnection(Connection);
  6082. operator Component() const;
  6083. operator Constraint2D() const;
  6084. void CreateJoint();
  6085. void DrawDebugGeometry(DebugRenderer, bool);
  6086. bool GetAnimationEnabled() const;
  6087. Constraint2D GetAttachedConstraint() const;
  6088. Variant GetAttribute(const String&) const;
  6089. Variant GetAttribute(uint) const;
  6090. ValueAnimation GetAttributeAnimation(const String&) const;
  6091. float GetAttributeAnimationSpeed(const String&) const;
  6092. float GetAttributeAnimationTime(const String&) const;
  6093. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6094. Variant GetAttributeDefault(const String&) const;
  6095. Variant GetAttributeDefault(uint) const;
  6096. bool GetBlockEvents() const;
  6097. bool GetCollideConnected() const;
  6098. Component GetComponent(StringHash) const;
  6099. float GetDamping() const;
  6100. VariantMap& GetEventDataMap() const;
  6101. Object GetEventSender() const;
  6102. uint GetID() const;
  6103. bool GetInterceptNetworkUpdate(const String&) const;
  6104. float GetLength() const;
  6105. float GetMaxLength() const;
  6106. float GetMinLength() const;
  6107. Node GetNode() const;
  6108. uint GetNumAttributes() const;
  6109. uint GetNumNetworkAttributes() const;
  6110. ObjectAnimation GetObjectAnimation() const;
  6111. ResourceRef GetObjectAnimationAttr() const;
  6112. RigidBody2D GetOtherBody() const;
  6113. RigidBody2D GetOwnerBody() const;
  6114. Scene GetScene() const;
  6115. float GetStiffness() const;
  6116. Object GetSubsystem(StringHash) const;
  6117. StringHash GetType() const;
  6118. bool HasEventHandlers() const;
  6119. bool HasSubscribedToEvent(Object, StringHash) const;
  6120. bool HasSubscribedToEvent(StringHash) const;
  6121. bool IsEnabled() const;
  6122. bool IsEnabledEffective() const;
  6123. bool IsInstanceOf(StringHash) const;
  6124. bool IsReplicated() const;
  6125. bool IsTemporary() const;
  6126. bool Load(Deserializer&);
  6127. bool LoadJSON(const JSONValue&);
  6128. bool LoadXML(const XMLElement&);
  6129. void MarkNetworkUpdate();
  6130. operator Object() const;
  6131. void OnEvent(Object, StringHash, VariantMap&);
  6132. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6133. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6134. void OnSetEnabled();
  6135. void PrepareNetworkUpdate();
  6136. bool ReadDeltaUpdate(Deserializer&);
  6137. bool ReadLatestDataUpdate(Deserializer&);
  6138. operator RefCounted() const;
  6139. int Refs() const;
  6140. void ReleaseJoint();
  6141. void Remove();
  6142. void RemoveAttributeAnimation(const String&);
  6143. void RemoveInstanceDefault();
  6144. void RemoveObjectAnimation();
  6145. void ResetToDefault();
  6146. bool Save(Serializer&) const;
  6147. bool SaveDefaultAttributes() const;
  6148. bool SaveJSON(JSONValue&) const;
  6149. bool SaveXML(XMLElement&) const;
  6150. void SendEvent(StringHash);
  6151. void SendEvent(StringHash, VariantMap&);
  6152. operator Serializable() const;
  6153. void SetAnimationEnabled(bool);
  6154. void SetAnimationTime(float);
  6155. void SetAttachedConstraint(Constraint2D);
  6156. bool SetAttribute(const String&, const Variant&);
  6157. bool SetAttribute(uint, const Variant&);
  6158. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6159. void SetAttributeAnimationSpeed(const String&, float);
  6160. void SetAttributeAnimationTime(const String&, float);
  6161. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6162. void SetBlockEvents(bool);
  6163. void SetCollideConnected(bool);
  6164. void SetDamping(float);
  6165. void SetEnabled(bool);
  6166. void SetGlobalVar(StringHash, const Variant&);
  6167. void SetInstanceDefault(bool);
  6168. void SetInterceptNetworkUpdate(const String&, bool);
  6169. void SetLength(float);
  6170. bool SetLinearStiffness(float, float);
  6171. void SetMaxLength(float);
  6172. void SetMinLength(float);
  6173. void SetObjectAnimation(ObjectAnimation);
  6174. void SetObjectAnimationAttr(const ResourceRef&);
  6175. void SetOtherBody(RigidBody2D);
  6176. void SetOtherBodyAnchor(const Vector2&);
  6177. void SetOwnerBodyAnchor(const Vector2&);
  6178. void SetStiffness(float);
  6179. void SetTemporary(bool);
  6180. const String& GetCategory() const;
  6181. const String& GetTypeName() const;
  6182. void UnsubscribeFromAllEvents();
  6183. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6184. void UnsubscribeFromEvent(Object, StringHash);
  6185. void UnsubscribeFromEvent(StringHash);
  6186. void UnsubscribeFromEvents(Object);
  6187. const Variant& GetGlobalVar(StringHash) const;
  6188. const VariantMap& GetGlobalVars() const;
  6189. const Vector2& GetOtherBodyAnchor() const;
  6190. const Vector2& GetOwnerBodyAnchor() const;
  6191. int WeakRefs() const;
  6192. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6193. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6194. void WriteLatestDataUpdate(Serializer&, uint8);
  6195. operator const Animatable() const;
  6196. operator const Component() const;
  6197. operator const Constraint2D() const;
  6198. operator const Object() const;
  6199. operator const RefCounted() const;
  6200. operator const Serializable() const;
  6201. // Properties:
  6202. bool animationEnabled;
  6203. /* readonly */
  6204. Array<Variant> attributeDefaults;
  6205. /* readonly */
  6206. Array<AttributeInfo> attributeInfos;
  6207. Array<Variant> attributes;
  6208. /* readonly */
  6209. String category;
  6210. bool collideConnected;
  6211. float damping;
  6212. bool enabled;
  6213. /* readonly */
  6214. bool enabledEffective;
  6215. Array<Variant> globalVar;
  6216. /* readonly */
  6217. VariantMap globalVars;
  6218. /* readonly */
  6219. uint id;
  6220. float length;
  6221. float maxLength;
  6222. float minLength;
  6223. /* readonly */
  6224. Node node;
  6225. /* readonly */
  6226. uint numAttributes;
  6227. ObjectAnimation objectAnimation;
  6228. RigidBody2D otherBody;
  6229. Vector2 otherBodyAnchor;
  6230. /* readonly */
  6231. RigidBody2D ownerBody;
  6232. Vector2 ownerBodyAnchor;
  6233. /* readonly */
  6234. int refs;
  6235. /* readonly */
  6236. bool replicated;
  6237. float stiffness;
  6238. bool temporary;
  6239. /* readonly */
  6240. StringHash type;
  6241. /* readonly */
  6242. String typeName;
  6243. /* readonly */
  6244. int weakRefs;
  6245. };
  6246. class ConstraintFriction2D
  6247. {
  6248. public:
  6249. ConstraintFriction2D();
  6250. // Methods:
  6251. void AllocateNetworkState();
  6252. operator Animatable() const;
  6253. void ApplyAttributes();
  6254. void CleanupConnection(Connection);
  6255. operator Component() const;
  6256. operator Constraint2D() const;
  6257. void CreateJoint();
  6258. void DrawDebugGeometry(DebugRenderer, bool);
  6259. bool GetAnimationEnabled() const;
  6260. Constraint2D GetAttachedConstraint() const;
  6261. Variant GetAttribute(const String&) const;
  6262. Variant GetAttribute(uint) const;
  6263. ValueAnimation GetAttributeAnimation(const String&) const;
  6264. float GetAttributeAnimationSpeed(const String&) const;
  6265. float GetAttributeAnimationTime(const String&) const;
  6266. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6267. Variant GetAttributeDefault(const String&) const;
  6268. Variant GetAttributeDefault(uint) const;
  6269. bool GetBlockEvents() const;
  6270. bool GetCollideConnected() const;
  6271. Component GetComponent(StringHash) const;
  6272. VariantMap& GetEventDataMap() const;
  6273. Object GetEventSender() const;
  6274. uint GetID() const;
  6275. bool GetInterceptNetworkUpdate(const String&) const;
  6276. float GetMaxForce() const;
  6277. float GetMaxTorque() const;
  6278. Node GetNode() const;
  6279. uint GetNumAttributes() const;
  6280. uint GetNumNetworkAttributes() const;
  6281. ObjectAnimation GetObjectAnimation() const;
  6282. ResourceRef GetObjectAnimationAttr() const;
  6283. RigidBody2D GetOtherBody() const;
  6284. RigidBody2D GetOwnerBody() const;
  6285. Scene GetScene() const;
  6286. Object GetSubsystem(StringHash) const;
  6287. StringHash GetType() const;
  6288. bool HasEventHandlers() const;
  6289. bool HasSubscribedToEvent(Object, StringHash) const;
  6290. bool HasSubscribedToEvent(StringHash) const;
  6291. bool IsEnabled() const;
  6292. bool IsEnabledEffective() const;
  6293. bool IsInstanceOf(StringHash) const;
  6294. bool IsReplicated() const;
  6295. bool IsTemporary() const;
  6296. bool Load(Deserializer&);
  6297. bool LoadJSON(const JSONValue&);
  6298. bool LoadXML(const XMLElement&);
  6299. void MarkNetworkUpdate();
  6300. operator Object() const;
  6301. void OnEvent(Object, StringHash, VariantMap&);
  6302. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6303. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6304. void OnSetEnabled();
  6305. void PrepareNetworkUpdate();
  6306. bool ReadDeltaUpdate(Deserializer&);
  6307. bool ReadLatestDataUpdate(Deserializer&);
  6308. operator RefCounted() const;
  6309. int Refs() const;
  6310. void ReleaseJoint();
  6311. void Remove();
  6312. void RemoveAttributeAnimation(const String&);
  6313. void RemoveInstanceDefault();
  6314. void RemoveObjectAnimation();
  6315. void ResetToDefault();
  6316. bool Save(Serializer&) const;
  6317. bool SaveDefaultAttributes() const;
  6318. bool SaveJSON(JSONValue&) const;
  6319. bool SaveXML(XMLElement&) const;
  6320. void SendEvent(StringHash);
  6321. void SendEvent(StringHash, VariantMap&);
  6322. operator Serializable() const;
  6323. void SetAnchor(const Vector2&);
  6324. void SetAnimationEnabled(bool);
  6325. void SetAnimationTime(float);
  6326. void SetAttachedConstraint(Constraint2D);
  6327. bool SetAttribute(const String&, const Variant&);
  6328. bool SetAttribute(uint, const Variant&);
  6329. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6330. void SetAttributeAnimationSpeed(const String&, float);
  6331. void SetAttributeAnimationTime(const String&, float);
  6332. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6333. void SetBlockEvents(bool);
  6334. void SetCollideConnected(bool);
  6335. void SetEnabled(bool);
  6336. void SetGlobalVar(StringHash, const Variant&);
  6337. void SetInstanceDefault(bool);
  6338. void SetInterceptNetworkUpdate(const String&, bool);
  6339. void SetMaxForce(float);
  6340. void SetMaxTorque(float);
  6341. void SetObjectAnimation(ObjectAnimation);
  6342. void SetObjectAnimationAttr(const ResourceRef&);
  6343. void SetOtherBody(RigidBody2D);
  6344. void SetTemporary(bool);
  6345. const String& GetCategory() const;
  6346. const String& GetTypeName() const;
  6347. void UnsubscribeFromAllEvents();
  6348. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6349. void UnsubscribeFromEvent(Object, StringHash);
  6350. void UnsubscribeFromEvent(StringHash);
  6351. void UnsubscribeFromEvents(Object);
  6352. const Variant& GetGlobalVar(StringHash) const;
  6353. const VariantMap& GetGlobalVars() const;
  6354. const Vector2& GetAnchor() const;
  6355. int WeakRefs() const;
  6356. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6357. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6358. void WriteLatestDataUpdate(Serializer&, uint8);
  6359. operator const Animatable() const;
  6360. operator const Component() const;
  6361. operator const Constraint2D() const;
  6362. operator const Object() const;
  6363. operator const RefCounted() const;
  6364. operator const Serializable() const;
  6365. // Properties:
  6366. Vector2 anchor;
  6367. bool animationEnabled;
  6368. /* readonly */
  6369. Array<Variant> attributeDefaults;
  6370. /* readonly */
  6371. Array<AttributeInfo> attributeInfos;
  6372. Array<Variant> attributes;
  6373. /* readonly */
  6374. String category;
  6375. bool collideConnected;
  6376. bool enabled;
  6377. /* readonly */
  6378. bool enabledEffective;
  6379. Array<Variant> globalVar;
  6380. /* readonly */
  6381. VariantMap globalVars;
  6382. /* readonly */
  6383. uint id;
  6384. float maxForce;
  6385. float maxTorque;
  6386. /* readonly */
  6387. Node node;
  6388. /* readonly */
  6389. uint numAttributes;
  6390. ObjectAnimation objectAnimation;
  6391. RigidBody2D otherBody;
  6392. /* readonly */
  6393. RigidBody2D ownerBody;
  6394. /* readonly */
  6395. int refs;
  6396. /* readonly */
  6397. bool replicated;
  6398. bool temporary;
  6399. /* readonly */
  6400. StringHash type;
  6401. /* readonly */
  6402. String typeName;
  6403. /* readonly */
  6404. int weakRefs;
  6405. };
  6406. class ConstraintGear2D
  6407. {
  6408. public:
  6409. ConstraintGear2D();
  6410. // Methods:
  6411. void AllocateNetworkState();
  6412. operator Animatable() const;
  6413. void ApplyAttributes();
  6414. void CleanupConnection(Connection);
  6415. operator Component() const;
  6416. operator Constraint2D() const;
  6417. void CreateJoint();
  6418. void DrawDebugGeometry(DebugRenderer, bool);
  6419. bool GetAnimationEnabled() const;
  6420. Constraint2D GetAttachedConstraint() const;
  6421. Variant GetAttribute(const String&) const;
  6422. Variant GetAttribute(uint) const;
  6423. ValueAnimation GetAttributeAnimation(const String&) const;
  6424. float GetAttributeAnimationSpeed(const String&) const;
  6425. float GetAttributeAnimationTime(const String&) const;
  6426. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6427. Variant GetAttributeDefault(const String&) const;
  6428. Variant GetAttributeDefault(uint) const;
  6429. bool GetBlockEvents() const;
  6430. bool GetCollideConnected() const;
  6431. Component GetComponent(StringHash) const;
  6432. VariantMap& GetEventDataMap() const;
  6433. Object GetEventSender() const;
  6434. uint GetID() const;
  6435. bool GetInterceptNetworkUpdate(const String&) const;
  6436. Node GetNode() const;
  6437. uint GetNumAttributes() const;
  6438. uint GetNumNetworkAttributes() const;
  6439. ObjectAnimation GetObjectAnimation() const;
  6440. ResourceRef GetObjectAnimationAttr() const;
  6441. RigidBody2D GetOtherBody() const;
  6442. Constraint2D GetOtherConstraint() const;
  6443. RigidBody2D GetOwnerBody() const;
  6444. Constraint2D GetOwnerConstraint() const;
  6445. float GetRatio() const;
  6446. Scene GetScene() const;
  6447. Object GetSubsystem(StringHash) const;
  6448. StringHash GetType() const;
  6449. bool HasEventHandlers() const;
  6450. bool HasSubscribedToEvent(Object, StringHash) const;
  6451. bool HasSubscribedToEvent(StringHash) const;
  6452. bool IsEnabled() const;
  6453. bool IsEnabledEffective() const;
  6454. bool IsInstanceOf(StringHash) const;
  6455. bool IsReplicated() const;
  6456. bool IsTemporary() const;
  6457. bool Load(Deserializer&);
  6458. bool LoadJSON(const JSONValue&);
  6459. bool LoadXML(const XMLElement&);
  6460. void MarkNetworkUpdate();
  6461. operator Object() const;
  6462. void OnEvent(Object, StringHash, VariantMap&);
  6463. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6464. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6465. void OnSetEnabled();
  6466. void PrepareNetworkUpdate();
  6467. bool ReadDeltaUpdate(Deserializer&);
  6468. bool ReadLatestDataUpdate(Deserializer&);
  6469. operator RefCounted() const;
  6470. int Refs() const;
  6471. void ReleaseJoint();
  6472. void Remove();
  6473. void RemoveAttributeAnimation(const String&);
  6474. void RemoveInstanceDefault();
  6475. void RemoveObjectAnimation();
  6476. void ResetToDefault();
  6477. bool Save(Serializer&) const;
  6478. bool SaveDefaultAttributes() const;
  6479. bool SaveJSON(JSONValue&) const;
  6480. bool SaveXML(XMLElement&) const;
  6481. void SendEvent(StringHash);
  6482. void SendEvent(StringHash, VariantMap&);
  6483. operator Serializable() const;
  6484. void SetAnimationEnabled(bool);
  6485. void SetAnimationTime(float);
  6486. void SetAttachedConstraint(Constraint2D);
  6487. bool SetAttribute(const String&, const Variant&);
  6488. bool SetAttribute(uint, const Variant&);
  6489. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6490. void SetAttributeAnimationSpeed(const String&, float);
  6491. void SetAttributeAnimationTime(const String&, float);
  6492. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6493. void SetBlockEvents(bool);
  6494. void SetCollideConnected(bool);
  6495. void SetEnabled(bool);
  6496. void SetGlobalVar(StringHash, const Variant&);
  6497. void SetInstanceDefault(bool);
  6498. void SetInterceptNetworkUpdate(const String&, bool);
  6499. void SetObjectAnimation(ObjectAnimation);
  6500. void SetObjectAnimationAttr(const ResourceRef&);
  6501. void SetOtherBody(RigidBody2D);
  6502. void SetOtherConstraint(Constraint2D);
  6503. void SetOwnerConstraint(Constraint2D);
  6504. void SetRatio(float);
  6505. void SetTemporary(bool);
  6506. const String& GetCategory() const;
  6507. const String& GetTypeName() const;
  6508. void UnsubscribeFromAllEvents();
  6509. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6510. void UnsubscribeFromEvent(Object, StringHash);
  6511. void UnsubscribeFromEvent(StringHash);
  6512. void UnsubscribeFromEvents(Object);
  6513. const Variant& GetGlobalVar(StringHash) const;
  6514. const VariantMap& GetGlobalVars() const;
  6515. int WeakRefs() const;
  6516. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6517. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6518. void WriteLatestDataUpdate(Serializer&, uint8);
  6519. operator const Animatable() const;
  6520. operator const Component() const;
  6521. operator const Constraint2D() const;
  6522. operator const Object() const;
  6523. operator const RefCounted() const;
  6524. operator const Serializable() const;
  6525. // Properties:
  6526. bool animationEnabled;
  6527. /* readonly */
  6528. Array<Variant> attributeDefaults;
  6529. /* readonly */
  6530. Array<AttributeInfo> attributeInfos;
  6531. Array<Variant> attributes;
  6532. /* readonly */
  6533. String category;
  6534. bool collideConnected;
  6535. bool enabled;
  6536. /* readonly */
  6537. bool enabledEffective;
  6538. Array<Variant> globalVar;
  6539. /* readonly */
  6540. VariantMap globalVars;
  6541. /* readonly */
  6542. uint id;
  6543. /* readonly */
  6544. Node node;
  6545. /* readonly */
  6546. uint numAttributes;
  6547. ObjectAnimation objectAnimation;
  6548. RigidBody2D otherBody;
  6549. Constraint2D otherConstraint;
  6550. /* readonly */
  6551. RigidBody2D ownerBody;
  6552. Constraint2D ownerConstraint;
  6553. float ratio;
  6554. /* readonly */
  6555. int refs;
  6556. /* readonly */
  6557. bool replicated;
  6558. bool temporary;
  6559. /* readonly */
  6560. StringHash type;
  6561. /* readonly */
  6562. String typeName;
  6563. /* readonly */
  6564. int weakRefs;
  6565. };
  6566. class ConstraintMotor2D
  6567. {
  6568. public:
  6569. ConstraintMotor2D();
  6570. // Methods:
  6571. void AllocateNetworkState();
  6572. operator Animatable() const;
  6573. void ApplyAttributes();
  6574. void CleanupConnection(Connection);
  6575. operator Component() const;
  6576. operator Constraint2D() const;
  6577. void CreateJoint();
  6578. void DrawDebugGeometry(DebugRenderer, bool);
  6579. float GetAngularOffset() const;
  6580. bool GetAnimationEnabled() const;
  6581. Constraint2D GetAttachedConstraint() const;
  6582. Variant GetAttribute(const String&) const;
  6583. Variant GetAttribute(uint) const;
  6584. ValueAnimation GetAttributeAnimation(const String&) const;
  6585. float GetAttributeAnimationSpeed(const String&) const;
  6586. float GetAttributeAnimationTime(const String&) const;
  6587. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6588. Variant GetAttributeDefault(const String&) const;
  6589. Variant GetAttributeDefault(uint) const;
  6590. bool GetBlockEvents() const;
  6591. bool GetCollideConnected() const;
  6592. Component GetComponent(StringHash) const;
  6593. float GetCorrectionFactor() const;
  6594. VariantMap& GetEventDataMap() const;
  6595. Object GetEventSender() const;
  6596. uint GetID() const;
  6597. bool GetInterceptNetworkUpdate(const String&) const;
  6598. float GetMaxForce() const;
  6599. float GetMaxTorque() const;
  6600. Node GetNode() const;
  6601. uint GetNumAttributes() const;
  6602. uint GetNumNetworkAttributes() const;
  6603. ObjectAnimation GetObjectAnimation() const;
  6604. ResourceRef GetObjectAnimationAttr() const;
  6605. RigidBody2D GetOtherBody() const;
  6606. RigidBody2D GetOwnerBody() const;
  6607. Scene GetScene() const;
  6608. Object GetSubsystem(StringHash) const;
  6609. StringHash GetType() const;
  6610. bool HasEventHandlers() const;
  6611. bool HasSubscribedToEvent(Object, StringHash) const;
  6612. bool HasSubscribedToEvent(StringHash) const;
  6613. bool IsEnabled() const;
  6614. bool IsEnabledEffective() const;
  6615. bool IsInstanceOf(StringHash) const;
  6616. bool IsReplicated() const;
  6617. bool IsTemporary() const;
  6618. bool Load(Deserializer&);
  6619. bool LoadJSON(const JSONValue&);
  6620. bool LoadXML(const XMLElement&);
  6621. void MarkNetworkUpdate();
  6622. operator Object() const;
  6623. void OnEvent(Object, StringHash, VariantMap&);
  6624. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6625. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6626. void OnSetEnabled();
  6627. void PrepareNetworkUpdate();
  6628. bool ReadDeltaUpdate(Deserializer&);
  6629. bool ReadLatestDataUpdate(Deserializer&);
  6630. operator RefCounted() const;
  6631. int Refs() const;
  6632. void ReleaseJoint();
  6633. void Remove();
  6634. void RemoveAttributeAnimation(const String&);
  6635. void RemoveInstanceDefault();
  6636. void RemoveObjectAnimation();
  6637. void ResetToDefault();
  6638. bool Save(Serializer&) const;
  6639. bool SaveDefaultAttributes() const;
  6640. bool SaveJSON(JSONValue&) const;
  6641. bool SaveXML(XMLElement&) const;
  6642. void SendEvent(StringHash);
  6643. void SendEvent(StringHash, VariantMap&);
  6644. operator Serializable() const;
  6645. void SetAngularOffset(float);
  6646. void SetAnimationEnabled(bool);
  6647. void SetAnimationTime(float);
  6648. void SetAttachedConstraint(Constraint2D);
  6649. bool SetAttribute(const String&, const Variant&);
  6650. bool SetAttribute(uint, const Variant&);
  6651. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6652. void SetAttributeAnimationSpeed(const String&, float);
  6653. void SetAttributeAnimationTime(const String&, float);
  6654. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6655. void SetBlockEvents(bool);
  6656. void SetCollideConnected(bool);
  6657. void SetCorrectionFactor(float);
  6658. void SetEnabled(bool);
  6659. void SetGlobalVar(StringHash, const Variant&);
  6660. void SetInstanceDefault(bool);
  6661. void SetInterceptNetworkUpdate(const String&, bool);
  6662. void SetLinearOffset(const Vector2&);
  6663. void SetMaxForce(float);
  6664. void SetMaxTorque(float);
  6665. void SetObjectAnimation(ObjectAnimation);
  6666. void SetObjectAnimationAttr(const ResourceRef&);
  6667. void SetOtherBody(RigidBody2D);
  6668. void SetTemporary(bool);
  6669. const String& GetCategory() const;
  6670. const String& GetTypeName() const;
  6671. void UnsubscribeFromAllEvents();
  6672. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6673. void UnsubscribeFromEvent(Object, StringHash);
  6674. void UnsubscribeFromEvent(StringHash);
  6675. void UnsubscribeFromEvents(Object);
  6676. const Variant& GetGlobalVar(StringHash) const;
  6677. const VariantMap& GetGlobalVars() const;
  6678. const Vector2& GetLinearOffset() const;
  6679. int WeakRefs() const;
  6680. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6681. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6682. void WriteLatestDataUpdate(Serializer&, uint8);
  6683. operator const Animatable() const;
  6684. operator const Component() const;
  6685. operator const Constraint2D() const;
  6686. operator const Object() const;
  6687. operator const RefCounted() const;
  6688. operator const Serializable() const;
  6689. // Properties:
  6690. float angularOffset;
  6691. bool animationEnabled;
  6692. /* readonly */
  6693. Array<Variant> attributeDefaults;
  6694. /* readonly */
  6695. Array<AttributeInfo> attributeInfos;
  6696. Array<Variant> attributes;
  6697. /* readonly */
  6698. String category;
  6699. bool collideConnected;
  6700. float correctionFactor;
  6701. bool enabled;
  6702. /* readonly */
  6703. bool enabledEffective;
  6704. Array<Variant> globalVar;
  6705. /* readonly */
  6706. VariantMap globalVars;
  6707. /* readonly */
  6708. uint id;
  6709. Vector2 linearOffset;
  6710. float maxForce;
  6711. float maxTorque;
  6712. /* readonly */
  6713. Node node;
  6714. /* readonly */
  6715. uint numAttributes;
  6716. ObjectAnimation objectAnimation;
  6717. RigidBody2D otherBody;
  6718. /* readonly */
  6719. RigidBody2D ownerBody;
  6720. /* readonly */
  6721. int refs;
  6722. /* readonly */
  6723. bool replicated;
  6724. bool temporary;
  6725. /* readonly */
  6726. StringHash type;
  6727. /* readonly */
  6728. String typeName;
  6729. /* readonly */
  6730. int weakRefs;
  6731. };
  6732. class ConstraintMouse2D
  6733. {
  6734. public:
  6735. ConstraintMouse2D();
  6736. // Methods:
  6737. void AllocateNetworkState();
  6738. operator Animatable() const;
  6739. void ApplyAttributes();
  6740. void CleanupConnection(Connection);
  6741. operator Component() const;
  6742. operator Constraint2D() const;
  6743. void CreateJoint();
  6744. void DrawDebugGeometry(DebugRenderer, bool);
  6745. bool GetAnimationEnabled() const;
  6746. Constraint2D GetAttachedConstraint() const;
  6747. Variant GetAttribute(const String&) const;
  6748. Variant GetAttribute(uint) const;
  6749. ValueAnimation GetAttributeAnimation(const String&) const;
  6750. float GetAttributeAnimationSpeed(const String&) const;
  6751. float GetAttributeAnimationTime(const String&) const;
  6752. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6753. Variant GetAttributeDefault(const String&) const;
  6754. Variant GetAttributeDefault(uint) const;
  6755. bool GetBlockEvents() const;
  6756. bool GetCollideConnected() const;
  6757. Component GetComponent(StringHash) const;
  6758. float GetDamping() const;
  6759. VariantMap& GetEventDataMap() const;
  6760. Object GetEventSender() const;
  6761. uint GetID() const;
  6762. bool GetInterceptNetworkUpdate(const String&) const;
  6763. float GetMaxForce() const;
  6764. Node GetNode() const;
  6765. uint GetNumAttributes() const;
  6766. uint GetNumNetworkAttributes() const;
  6767. ObjectAnimation GetObjectAnimation() const;
  6768. ResourceRef GetObjectAnimationAttr() const;
  6769. RigidBody2D GetOtherBody() const;
  6770. RigidBody2D GetOwnerBody() const;
  6771. Scene GetScene() const;
  6772. float GetStiffness() const;
  6773. Object GetSubsystem(StringHash) const;
  6774. StringHash GetType() const;
  6775. bool HasEventHandlers() const;
  6776. bool HasSubscribedToEvent(Object, StringHash) const;
  6777. bool HasSubscribedToEvent(StringHash) const;
  6778. bool IsEnabled() const;
  6779. bool IsEnabledEffective() const;
  6780. bool IsInstanceOf(StringHash) const;
  6781. bool IsReplicated() const;
  6782. bool IsTemporary() const;
  6783. bool Load(Deserializer&);
  6784. bool LoadJSON(const JSONValue&);
  6785. bool LoadXML(const XMLElement&);
  6786. void MarkNetworkUpdate();
  6787. operator Object() const;
  6788. void OnEvent(Object, StringHash, VariantMap&);
  6789. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6790. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6791. void OnSetEnabled();
  6792. void PrepareNetworkUpdate();
  6793. bool ReadDeltaUpdate(Deserializer&);
  6794. bool ReadLatestDataUpdate(Deserializer&);
  6795. operator RefCounted() const;
  6796. int Refs() const;
  6797. void ReleaseJoint();
  6798. void Remove();
  6799. void RemoveAttributeAnimation(const String&);
  6800. void RemoveInstanceDefault();
  6801. void RemoveObjectAnimation();
  6802. void ResetToDefault();
  6803. bool Save(Serializer&) const;
  6804. bool SaveDefaultAttributes() const;
  6805. bool SaveJSON(JSONValue&) const;
  6806. bool SaveXML(XMLElement&) const;
  6807. void SendEvent(StringHash);
  6808. void SendEvent(StringHash, VariantMap&);
  6809. operator Serializable() const;
  6810. void SetAnimationEnabled(bool);
  6811. void SetAnimationTime(float);
  6812. void SetAttachedConstraint(Constraint2D);
  6813. bool SetAttribute(const String&, const Variant&);
  6814. bool SetAttribute(uint, const Variant&);
  6815. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6816. void SetAttributeAnimationSpeed(const String&, float);
  6817. void SetAttributeAnimationTime(const String&, float);
  6818. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6819. void SetBlockEvents(bool);
  6820. void SetCollideConnected(bool);
  6821. void SetDamping(float);
  6822. void SetEnabled(bool);
  6823. void SetGlobalVar(StringHash, const Variant&);
  6824. void SetInstanceDefault(bool);
  6825. void SetInterceptNetworkUpdate(const String&, bool);
  6826. bool SetLinearStiffness(float, float);
  6827. void SetMaxForce(float);
  6828. void SetObjectAnimation(ObjectAnimation);
  6829. void SetObjectAnimationAttr(const ResourceRef&);
  6830. void SetOtherBody(RigidBody2D);
  6831. void SetStiffness(float);
  6832. void SetTarget(const Vector2&);
  6833. void SetTemporary(bool);
  6834. const String& GetCategory() const;
  6835. const String& GetTypeName() const;
  6836. void UnsubscribeFromAllEvents();
  6837. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  6838. void UnsubscribeFromEvent(Object, StringHash);
  6839. void UnsubscribeFromEvent(StringHash);
  6840. void UnsubscribeFromEvents(Object);
  6841. const Variant& GetGlobalVar(StringHash) const;
  6842. const VariantMap& GetGlobalVars() const;
  6843. const Vector2& GetTarget() const;
  6844. int WeakRefs() const;
  6845. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  6846. void WriteInitialDeltaUpdate(Serializer&, uint8);
  6847. void WriteLatestDataUpdate(Serializer&, uint8);
  6848. operator const Animatable() const;
  6849. operator const Component() const;
  6850. operator const Constraint2D() const;
  6851. operator const Object() const;
  6852. operator const RefCounted() const;
  6853. operator const Serializable() const;
  6854. // Properties:
  6855. bool animationEnabled;
  6856. /* readonly */
  6857. Array<Variant> attributeDefaults;
  6858. /* readonly */
  6859. Array<AttributeInfo> attributeInfos;
  6860. Array<Variant> attributes;
  6861. /* readonly */
  6862. String category;
  6863. bool collideConnected;
  6864. float damping;
  6865. bool enabled;
  6866. /* readonly */
  6867. bool enabledEffective;
  6868. Array<Variant> globalVar;
  6869. /* readonly */
  6870. VariantMap globalVars;
  6871. /* readonly */
  6872. uint id;
  6873. float maxForce;
  6874. /* readonly */
  6875. Node node;
  6876. /* readonly */
  6877. uint numAttributes;
  6878. ObjectAnimation objectAnimation;
  6879. RigidBody2D otherBody;
  6880. /* readonly */
  6881. RigidBody2D ownerBody;
  6882. /* readonly */
  6883. int refs;
  6884. /* readonly */
  6885. bool replicated;
  6886. float stiffness;
  6887. Vector2 target;
  6888. bool temporary;
  6889. /* readonly */
  6890. StringHash type;
  6891. /* readonly */
  6892. String typeName;
  6893. /* readonly */
  6894. int weakRefs;
  6895. };
  6896. class ConstraintPrismatic2D
  6897. {
  6898. public:
  6899. ConstraintPrismatic2D();
  6900. // Methods:
  6901. void AllocateNetworkState();
  6902. operator Animatable() const;
  6903. void ApplyAttributes();
  6904. void CleanupConnection(Connection);
  6905. operator Component() const;
  6906. operator Constraint2D() const;
  6907. void CreateJoint();
  6908. void DrawDebugGeometry(DebugRenderer, bool);
  6909. bool GetAnimationEnabled() const;
  6910. Constraint2D GetAttachedConstraint() const;
  6911. Variant GetAttribute(const String&) const;
  6912. Variant GetAttribute(uint) const;
  6913. ValueAnimation GetAttributeAnimation(const String&) const;
  6914. float GetAttributeAnimationSpeed(const String&) const;
  6915. float GetAttributeAnimationTime(const String&) const;
  6916. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  6917. Variant GetAttributeDefault(const String&) const;
  6918. Variant GetAttributeDefault(uint) const;
  6919. bool GetBlockEvents() const;
  6920. bool GetCollideConnected() const;
  6921. Component GetComponent(StringHash) const;
  6922. bool GetEnableLimit() const;
  6923. bool GetEnableMotor() const;
  6924. VariantMap& GetEventDataMap() const;
  6925. Object GetEventSender() const;
  6926. uint GetID() const;
  6927. bool GetInterceptNetworkUpdate(const String&) const;
  6928. float GetLowerTranslation() const;
  6929. float GetMaxMotorForce() const;
  6930. float GetMotorSpeed() const;
  6931. Node GetNode() const;
  6932. uint GetNumAttributes() const;
  6933. uint GetNumNetworkAttributes() const;
  6934. ObjectAnimation GetObjectAnimation() const;
  6935. ResourceRef GetObjectAnimationAttr() const;
  6936. RigidBody2D GetOtherBody() const;
  6937. RigidBody2D GetOwnerBody() const;
  6938. Scene GetScene() const;
  6939. Object GetSubsystem(StringHash) const;
  6940. StringHash GetType() const;
  6941. float GetUpperTranslation() const;
  6942. bool HasEventHandlers() const;
  6943. bool HasSubscribedToEvent(Object, StringHash) const;
  6944. bool HasSubscribedToEvent(StringHash) const;
  6945. bool IsEnabled() const;
  6946. bool IsEnabledEffective() const;
  6947. bool IsInstanceOf(StringHash) const;
  6948. bool IsReplicated() const;
  6949. bool IsTemporary() const;
  6950. bool Load(Deserializer&);
  6951. bool LoadJSON(const JSONValue&);
  6952. bool LoadXML(const XMLElement&);
  6953. void MarkNetworkUpdate();
  6954. operator Object() const;
  6955. void OnEvent(Object, StringHash, VariantMap&);
  6956. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  6957. void OnSetAttribute(const AttributeInfo&, const Variant&);
  6958. void OnSetEnabled();
  6959. void PrepareNetworkUpdate();
  6960. bool ReadDeltaUpdate(Deserializer&);
  6961. bool ReadLatestDataUpdate(Deserializer&);
  6962. operator RefCounted() const;
  6963. int Refs() const;
  6964. void ReleaseJoint();
  6965. void Remove();
  6966. void RemoveAttributeAnimation(const String&);
  6967. void RemoveInstanceDefault();
  6968. void RemoveObjectAnimation();
  6969. void ResetToDefault();
  6970. bool Save(Serializer&) const;
  6971. bool SaveDefaultAttributes() const;
  6972. bool SaveJSON(JSONValue&) const;
  6973. bool SaveXML(XMLElement&) const;
  6974. void SendEvent(StringHash);
  6975. void SendEvent(StringHash, VariantMap&);
  6976. operator Serializable() const;
  6977. void SetAnchor(const Vector2&);
  6978. void SetAnimationEnabled(bool);
  6979. void SetAnimationTime(float);
  6980. void SetAttachedConstraint(Constraint2D);
  6981. bool SetAttribute(const String&, const Variant&);
  6982. bool SetAttribute(uint, const Variant&);
  6983. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  6984. void SetAttributeAnimationSpeed(const String&, float);
  6985. void SetAttributeAnimationTime(const String&, float);
  6986. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  6987. void SetAxis(const Vector2&);
  6988. void SetBlockEvents(bool);
  6989. void SetCollideConnected(bool);
  6990. void SetEnableLimit(bool);
  6991. void SetEnableMotor(bool);
  6992. void SetEnabled(bool);
  6993. void SetGlobalVar(StringHash, const Variant&);
  6994. void SetInstanceDefault(bool);
  6995. void SetInterceptNetworkUpdate(const String&, bool);
  6996. void SetLowerTranslation(float);
  6997. void SetMaxMotorForce(float);
  6998. void SetMotorSpeed(float);
  6999. void SetObjectAnimation(ObjectAnimation);
  7000. void SetObjectAnimationAttr(const ResourceRef&);
  7001. void SetOtherBody(RigidBody2D);
  7002. void SetTemporary(bool);
  7003. void SetUpperTranslation(float);
  7004. const String& GetCategory() const;
  7005. const String& GetTypeName() const;
  7006. void UnsubscribeFromAllEvents();
  7007. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7008. void UnsubscribeFromEvent(Object, StringHash);
  7009. void UnsubscribeFromEvent(StringHash);
  7010. void UnsubscribeFromEvents(Object);
  7011. const Variant& GetGlobalVar(StringHash) const;
  7012. const VariantMap& GetGlobalVars() const;
  7013. const Vector2& GetAnchor() const;
  7014. const Vector2& GetAxis() const;
  7015. int WeakRefs() const;
  7016. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7017. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7018. void WriteLatestDataUpdate(Serializer&, uint8);
  7019. operator const Animatable() const;
  7020. operator const Component() const;
  7021. operator const Constraint2D() const;
  7022. operator const Object() const;
  7023. operator const RefCounted() const;
  7024. operator const Serializable() const;
  7025. // Properties:
  7026. Vector2 anchor;
  7027. bool animationEnabled;
  7028. /* readonly */
  7029. Array<Variant> attributeDefaults;
  7030. /* readonly */
  7031. Array<AttributeInfo> attributeInfos;
  7032. Array<Variant> attributes;
  7033. Vector2 axis;
  7034. /* readonly */
  7035. String category;
  7036. bool collideConnected;
  7037. bool enableLimit;
  7038. bool enableMotor;
  7039. bool enabled;
  7040. /* readonly */
  7041. bool enabledEffective;
  7042. Array<Variant> globalVar;
  7043. /* readonly */
  7044. VariantMap globalVars;
  7045. /* readonly */
  7046. uint id;
  7047. float lowerTranslation;
  7048. float maxMotorForce;
  7049. float motorSpeed;
  7050. /* readonly */
  7051. Node node;
  7052. /* readonly */
  7053. uint numAttributes;
  7054. ObjectAnimation objectAnimation;
  7055. RigidBody2D otherBody;
  7056. /* readonly */
  7057. RigidBody2D ownerBody;
  7058. /* readonly */
  7059. int refs;
  7060. /* readonly */
  7061. bool replicated;
  7062. bool temporary;
  7063. /* readonly */
  7064. StringHash type;
  7065. /* readonly */
  7066. String typeName;
  7067. float upperTranslation;
  7068. /* readonly */
  7069. int weakRefs;
  7070. };
  7071. class ConstraintPulley2D
  7072. {
  7073. public:
  7074. ConstraintPulley2D();
  7075. // Methods:
  7076. void AllocateNetworkState();
  7077. operator Animatable() const;
  7078. void ApplyAttributes();
  7079. void CleanupConnection(Connection);
  7080. operator Component() const;
  7081. operator Constraint2D() const;
  7082. void CreateJoint();
  7083. void DrawDebugGeometry(DebugRenderer, bool);
  7084. bool GetAnimationEnabled() const;
  7085. Constraint2D GetAttachedConstraint() const;
  7086. Variant GetAttribute(const String&) const;
  7087. Variant GetAttribute(uint) const;
  7088. ValueAnimation GetAttributeAnimation(const String&) const;
  7089. float GetAttributeAnimationSpeed(const String&) const;
  7090. float GetAttributeAnimationTime(const String&) const;
  7091. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7092. Variant GetAttributeDefault(const String&) const;
  7093. Variant GetAttributeDefault(uint) const;
  7094. bool GetBlockEvents() const;
  7095. bool GetCollideConnected() const;
  7096. Component GetComponent(StringHash) const;
  7097. VariantMap& GetEventDataMap() const;
  7098. Object GetEventSender() const;
  7099. uint GetID() const;
  7100. bool GetInterceptNetworkUpdate(const String&) const;
  7101. Node GetNode() const;
  7102. uint GetNumAttributes() const;
  7103. uint GetNumNetworkAttributes() const;
  7104. ObjectAnimation GetObjectAnimation() const;
  7105. ResourceRef GetObjectAnimationAttr() const;
  7106. RigidBody2D GetOtherBody() const;
  7107. RigidBody2D GetOwnerBody() const;
  7108. float GetRatio() const;
  7109. Scene GetScene() const;
  7110. Object GetSubsystem(StringHash) const;
  7111. StringHash GetType() const;
  7112. bool HasEventHandlers() const;
  7113. bool HasSubscribedToEvent(Object, StringHash) const;
  7114. bool HasSubscribedToEvent(StringHash) const;
  7115. bool IsEnabled() const;
  7116. bool IsEnabledEffective() const;
  7117. bool IsInstanceOf(StringHash) const;
  7118. bool IsReplicated() const;
  7119. bool IsTemporary() const;
  7120. bool Load(Deserializer&);
  7121. bool LoadJSON(const JSONValue&);
  7122. bool LoadXML(const XMLElement&);
  7123. void MarkNetworkUpdate();
  7124. operator Object() const;
  7125. void OnEvent(Object, StringHash, VariantMap&);
  7126. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7127. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7128. void OnSetEnabled();
  7129. void PrepareNetworkUpdate();
  7130. bool ReadDeltaUpdate(Deserializer&);
  7131. bool ReadLatestDataUpdate(Deserializer&);
  7132. operator RefCounted() const;
  7133. int Refs() const;
  7134. void ReleaseJoint();
  7135. void Remove();
  7136. void RemoveAttributeAnimation(const String&);
  7137. void RemoveInstanceDefault();
  7138. void RemoveObjectAnimation();
  7139. void ResetToDefault();
  7140. bool Save(Serializer&) const;
  7141. bool SaveDefaultAttributes() const;
  7142. bool SaveJSON(JSONValue&) const;
  7143. bool SaveXML(XMLElement&) const;
  7144. void SendEvent(StringHash);
  7145. void SendEvent(StringHash, VariantMap&);
  7146. operator Serializable() const;
  7147. void SetAnimationEnabled(bool);
  7148. void SetAnimationTime(float);
  7149. void SetAttachedConstraint(Constraint2D);
  7150. bool SetAttribute(const String&, const Variant&);
  7151. bool SetAttribute(uint, const Variant&);
  7152. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7153. void SetAttributeAnimationSpeed(const String&, float);
  7154. void SetAttributeAnimationTime(const String&, float);
  7155. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7156. void SetBlockEvents(bool);
  7157. void SetCollideConnected(bool);
  7158. void SetEnabled(bool);
  7159. void SetGlobalVar(StringHash, const Variant&);
  7160. void SetInstanceDefault(bool);
  7161. void SetInterceptNetworkUpdate(const String&, bool);
  7162. void SetObjectAnimation(ObjectAnimation);
  7163. void SetObjectAnimationAttr(const ResourceRef&);
  7164. void SetOtherBody(RigidBody2D);
  7165. void SetOtherBodyAnchor(const Vector2&);
  7166. void SetOtherBodyGroundAnchor(const Vector2&);
  7167. void SetOwnerBodyAnchor(const Vector2&);
  7168. void SetOwnerBodyGroundAnchor(const Vector2&);
  7169. void SetRatio(float);
  7170. void SetTemporary(bool);
  7171. const String& GetCategory() const;
  7172. const String& GetTypeName() const;
  7173. void UnsubscribeFromAllEvents();
  7174. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7175. void UnsubscribeFromEvent(Object, StringHash);
  7176. void UnsubscribeFromEvent(StringHash);
  7177. void UnsubscribeFromEvents(Object);
  7178. const Variant& GetGlobalVar(StringHash) const;
  7179. const VariantMap& GetGlobalVars() const;
  7180. const Vector2& GetOtherBodyAnchor() const;
  7181. const Vector2& GetOtherBodyGroundAnchor() const;
  7182. const Vector2& GetOwnerBodyAnchor() const;
  7183. const Vector2& GetOwnerBodyGroundAnchor() const;
  7184. int WeakRefs() const;
  7185. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7186. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7187. void WriteLatestDataUpdate(Serializer&, uint8);
  7188. operator const Animatable() const;
  7189. operator const Component() const;
  7190. operator const Constraint2D() const;
  7191. operator const Object() const;
  7192. operator const RefCounted() const;
  7193. operator const Serializable() const;
  7194. // Properties:
  7195. bool animationEnabled;
  7196. /* readonly */
  7197. Array<Variant> attributeDefaults;
  7198. /* readonly */
  7199. Array<AttributeInfo> attributeInfos;
  7200. Array<Variant> attributes;
  7201. /* readonly */
  7202. String category;
  7203. bool collideConnected;
  7204. bool enabled;
  7205. /* readonly */
  7206. bool enabledEffective;
  7207. Array<Variant> globalVar;
  7208. /* readonly */
  7209. VariantMap globalVars;
  7210. /* readonly */
  7211. uint id;
  7212. /* readonly */
  7213. Node node;
  7214. /* readonly */
  7215. uint numAttributes;
  7216. ObjectAnimation objectAnimation;
  7217. RigidBody2D otherBody;
  7218. Vector2 otherBodyAnchor;
  7219. Vector2 otherBodyGroundAnchor;
  7220. /* readonly */
  7221. RigidBody2D ownerBody;
  7222. Vector2 ownerBodyAnchor;
  7223. Vector2 ownerBodyGroundAnchor;
  7224. float ratio;
  7225. /* readonly */
  7226. int refs;
  7227. /* readonly */
  7228. bool replicated;
  7229. bool temporary;
  7230. /* readonly */
  7231. StringHash type;
  7232. /* readonly */
  7233. String typeName;
  7234. /* readonly */
  7235. int weakRefs;
  7236. };
  7237. class ConstraintRevolute2D
  7238. {
  7239. public:
  7240. ConstraintRevolute2D();
  7241. // Methods:
  7242. void AllocateNetworkState();
  7243. operator Animatable() const;
  7244. void ApplyAttributes();
  7245. void CleanupConnection(Connection);
  7246. operator Component() const;
  7247. operator Constraint2D() const;
  7248. void CreateJoint();
  7249. void DrawDebugGeometry(DebugRenderer, bool);
  7250. bool GetAnimationEnabled() const;
  7251. Constraint2D GetAttachedConstraint() const;
  7252. Variant GetAttribute(const String&) const;
  7253. Variant GetAttribute(uint) const;
  7254. ValueAnimation GetAttributeAnimation(const String&) const;
  7255. float GetAttributeAnimationSpeed(const String&) const;
  7256. float GetAttributeAnimationTime(const String&) const;
  7257. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7258. Variant GetAttributeDefault(const String&) const;
  7259. Variant GetAttributeDefault(uint) const;
  7260. bool GetBlockEvents() const;
  7261. bool GetCollideConnected() const;
  7262. Component GetComponent(StringHash) const;
  7263. bool GetEnableLimit() const;
  7264. bool GetEnableMotor() const;
  7265. VariantMap& GetEventDataMap() const;
  7266. Object GetEventSender() const;
  7267. uint GetID() const;
  7268. bool GetInterceptNetworkUpdate(const String&) const;
  7269. float GetLowerAngle() const;
  7270. float GetMaxMotorTorque() const;
  7271. float GetMotorSpeed() const;
  7272. Node GetNode() const;
  7273. uint GetNumAttributes() const;
  7274. uint GetNumNetworkAttributes() const;
  7275. ObjectAnimation GetObjectAnimation() const;
  7276. ResourceRef GetObjectAnimationAttr() const;
  7277. RigidBody2D GetOtherBody() const;
  7278. RigidBody2D GetOwnerBody() const;
  7279. Scene GetScene() const;
  7280. Object GetSubsystem(StringHash) const;
  7281. StringHash GetType() const;
  7282. float GetUpperAngle() const;
  7283. bool HasEventHandlers() const;
  7284. bool HasSubscribedToEvent(Object, StringHash) const;
  7285. bool HasSubscribedToEvent(StringHash) const;
  7286. bool IsEnabled() const;
  7287. bool IsEnabledEffective() const;
  7288. bool IsInstanceOf(StringHash) const;
  7289. bool IsReplicated() const;
  7290. bool IsTemporary() const;
  7291. bool Load(Deserializer&);
  7292. bool LoadJSON(const JSONValue&);
  7293. bool LoadXML(const XMLElement&);
  7294. void MarkNetworkUpdate();
  7295. operator Object() const;
  7296. void OnEvent(Object, StringHash, VariantMap&);
  7297. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7298. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7299. void OnSetEnabled();
  7300. void PrepareNetworkUpdate();
  7301. bool ReadDeltaUpdate(Deserializer&);
  7302. bool ReadLatestDataUpdate(Deserializer&);
  7303. operator RefCounted() const;
  7304. int Refs() const;
  7305. void ReleaseJoint();
  7306. void Remove();
  7307. void RemoveAttributeAnimation(const String&);
  7308. void RemoveInstanceDefault();
  7309. void RemoveObjectAnimation();
  7310. void ResetToDefault();
  7311. bool Save(Serializer&) const;
  7312. bool SaveDefaultAttributes() const;
  7313. bool SaveJSON(JSONValue&) const;
  7314. bool SaveXML(XMLElement&) const;
  7315. void SendEvent(StringHash);
  7316. void SendEvent(StringHash, VariantMap&);
  7317. operator Serializable() const;
  7318. void SetAnchor(const Vector2&);
  7319. void SetAnimationEnabled(bool);
  7320. void SetAnimationTime(float);
  7321. void SetAttachedConstraint(Constraint2D);
  7322. bool SetAttribute(const String&, const Variant&);
  7323. bool SetAttribute(uint, const Variant&);
  7324. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7325. void SetAttributeAnimationSpeed(const String&, float);
  7326. void SetAttributeAnimationTime(const String&, float);
  7327. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7328. void SetBlockEvents(bool);
  7329. void SetCollideConnected(bool);
  7330. void SetEnableLimit(bool);
  7331. void SetEnableMotor(bool);
  7332. void SetEnabled(bool);
  7333. void SetGlobalVar(StringHash, const Variant&);
  7334. void SetInstanceDefault(bool);
  7335. void SetInterceptNetworkUpdate(const String&, bool);
  7336. void SetLowerAngle(float);
  7337. void SetMaxMotorTorque(float);
  7338. void SetMotorSpeed(float);
  7339. void SetObjectAnimation(ObjectAnimation);
  7340. void SetObjectAnimationAttr(const ResourceRef&);
  7341. void SetOtherBody(RigidBody2D);
  7342. void SetTemporary(bool);
  7343. void SetUpperAngle(float);
  7344. const String& GetCategory() const;
  7345. const String& GetTypeName() const;
  7346. void UnsubscribeFromAllEvents();
  7347. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7348. void UnsubscribeFromEvent(Object, StringHash);
  7349. void UnsubscribeFromEvent(StringHash);
  7350. void UnsubscribeFromEvents(Object);
  7351. const Variant& GetGlobalVar(StringHash) const;
  7352. const VariantMap& GetGlobalVars() const;
  7353. const Vector2& GetAnchor() const;
  7354. int WeakRefs() const;
  7355. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7356. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7357. void WriteLatestDataUpdate(Serializer&, uint8);
  7358. operator const Animatable() const;
  7359. operator const Component() const;
  7360. operator const Constraint2D() const;
  7361. operator const Object() const;
  7362. operator const RefCounted() const;
  7363. operator const Serializable() const;
  7364. // Properties:
  7365. Vector2 anchor;
  7366. bool animationEnabled;
  7367. /* readonly */
  7368. Array<Variant> attributeDefaults;
  7369. /* readonly */
  7370. Array<AttributeInfo> attributeInfos;
  7371. Array<Variant> attributes;
  7372. /* readonly */
  7373. String category;
  7374. bool collideConnected;
  7375. bool enableLimit;
  7376. bool enableMotor;
  7377. bool enabled;
  7378. /* readonly */
  7379. bool enabledEffective;
  7380. Array<Variant> globalVar;
  7381. /* readonly */
  7382. VariantMap globalVars;
  7383. /* readonly */
  7384. uint id;
  7385. float lowerAngle;
  7386. float maxMotorTorque;
  7387. float motorSpeed;
  7388. /* readonly */
  7389. Node node;
  7390. /* readonly */
  7391. uint numAttributes;
  7392. ObjectAnimation objectAnimation;
  7393. RigidBody2D otherBody;
  7394. /* readonly */
  7395. RigidBody2D ownerBody;
  7396. /* readonly */
  7397. int refs;
  7398. /* readonly */
  7399. bool replicated;
  7400. bool temporary;
  7401. /* readonly */
  7402. StringHash type;
  7403. /* readonly */
  7404. String typeName;
  7405. float upperAngle;
  7406. /* readonly */
  7407. int weakRefs;
  7408. };
  7409. class ConstraintWeld2D
  7410. {
  7411. public:
  7412. ConstraintWeld2D();
  7413. // Methods:
  7414. void AllocateNetworkState();
  7415. operator Animatable() const;
  7416. void ApplyAttributes();
  7417. void CleanupConnection(Connection);
  7418. operator Component() const;
  7419. operator Constraint2D() const;
  7420. void CreateJoint();
  7421. void DrawDebugGeometry(DebugRenderer, bool);
  7422. bool GetAnimationEnabled() const;
  7423. Constraint2D GetAttachedConstraint() const;
  7424. Variant GetAttribute(const String&) const;
  7425. Variant GetAttribute(uint) const;
  7426. ValueAnimation GetAttributeAnimation(const String&) const;
  7427. float GetAttributeAnimationSpeed(const String&) const;
  7428. float GetAttributeAnimationTime(const String&) const;
  7429. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7430. Variant GetAttributeDefault(const String&) const;
  7431. Variant GetAttributeDefault(uint) const;
  7432. bool GetBlockEvents() const;
  7433. bool GetCollideConnected() const;
  7434. Component GetComponent(StringHash) const;
  7435. float GetDamping() const;
  7436. VariantMap& GetEventDataMap() const;
  7437. Object GetEventSender() const;
  7438. uint GetID() const;
  7439. bool GetInterceptNetworkUpdate(const String&) const;
  7440. Node GetNode() const;
  7441. uint GetNumAttributes() const;
  7442. uint GetNumNetworkAttributes() const;
  7443. ObjectAnimation GetObjectAnimation() const;
  7444. ResourceRef GetObjectAnimationAttr() const;
  7445. RigidBody2D GetOtherBody() const;
  7446. RigidBody2D GetOwnerBody() const;
  7447. Scene GetScene() const;
  7448. float GetStiffness() const;
  7449. Object GetSubsystem(StringHash) const;
  7450. StringHash GetType() const;
  7451. bool HasEventHandlers() const;
  7452. bool HasSubscribedToEvent(Object, StringHash) const;
  7453. bool HasSubscribedToEvent(StringHash) const;
  7454. bool IsEnabled() const;
  7455. bool IsEnabledEffective() const;
  7456. bool IsInstanceOf(StringHash) const;
  7457. bool IsReplicated() const;
  7458. bool IsTemporary() const;
  7459. bool Load(Deserializer&);
  7460. bool LoadJSON(const JSONValue&);
  7461. bool LoadXML(const XMLElement&);
  7462. void MarkNetworkUpdate();
  7463. operator Object() const;
  7464. void OnEvent(Object, StringHash, VariantMap&);
  7465. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7466. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7467. void OnSetEnabled();
  7468. void PrepareNetworkUpdate();
  7469. bool ReadDeltaUpdate(Deserializer&);
  7470. bool ReadLatestDataUpdate(Deserializer&);
  7471. operator RefCounted() const;
  7472. int Refs() const;
  7473. void ReleaseJoint();
  7474. void Remove();
  7475. void RemoveAttributeAnimation(const String&);
  7476. void RemoveInstanceDefault();
  7477. void RemoveObjectAnimation();
  7478. void ResetToDefault();
  7479. bool Save(Serializer&) const;
  7480. bool SaveDefaultAttributes() const;
  7481. bool SaveJSON(JSONValue&) const;
  7482. bool SaveXML(XMLElement&) const;
  7483. void SendEvent(StringHash);
  7484. void SendEvent(StringHash, VariantMap&);
  7485. operator Serializable() const;
  7486. void SetAnchor(const Vector2&);
  7487. bool SetAngularStiffness(float, float);
  7488. void SetAnimationEnabled(bool);
  7489. void SetAnimationTime(float);
  7490. void SetAttachedConstraint(Constraint2D);
  7491. bool SetAttribute(const String&, const Variant&);
  7492. bool SetAttribute(uint, const Variant&);
  7493. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7494. void SetAttributeAnimationSpeed(const String&, float);
  7495. void SetAttributeAnimationTime(const String&, float);
  7496. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7497. void SetBlockEvents(bool);
  7498. void SetCollideConnected(bool);
  7499. void SetDamping(float);
  7500. void SetEnabled(bool);
  7501. void SetGlobalVar(StringHash, const Variant&);
  7502. void SetInstanceDefault(bool);
  7503. void SetInterceptNetworkUpdate(const String&, bool);
  7504. void SetObjectAnimation(ObjectAnimation);
  7505. void SetObjectAnimationAttr(const ResourceRef&);
  7506. void SetOtherBody(RigidBody2D);
  7507. void SetStiffness(float);
  7508. void SetTemporary(bool);
  7509. const String& GetCategory() const;
  7510. const String& GetTypeName() const;
  7511. void UnsubscribeFromAllEvents();
  7512. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7513. void UnsubscribeFromEvent(Object, StringHash);
  7514. void UnsubscribeFromEvent(StringHash);
  7515. void UnsubscribeFromEvents(Object);
  7516. const Variant& GetGlobalVar(StringHash) const;
  7517. const VariantMap& GetGlobalVars() const;
  7518. const Vector2& GetAnchor() const;
  7519. int WeakRefs() const;
  7520. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7521. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7522. void WriteLatestDataUpdate(Serializer&, uint8);
  7523. operator const Animatable() const;
  7524. operator const Component() const;
  7525. operator const Constraint2D() const;
  7526. operator const Object() const;
  7527. operator const RefCounted() const;
  7528. operator const Serializable() const;
  7529. // Properties:
  7530. Vector2 anchor;
  7531. bool animationEnabled;
  7532. /* readonly */
  7533. Array<Variant> attributeDefaults;
  7534. /* readonly */
  7535. Array<AttributeInfo> attributeInfos;
  7536. Array<Variant> attributes;
  7537. /* readonly */
  7538. String category;
  7539. bool collideConnected;
  7540. float damping;
  7541. bool enabled;
  7542. /* readonly */
  7543. bool enabledEffective;
  7544. Array<Variant> globalVar;
  7545. /* readonly */
  7546. VariantMap globalVars;
  7547. /* readonly */
  7548. uint id;
  7549. /* readonly */
  7550. Node node;
  7551. /* readonly */
  7552. uint numAttributes;
  7553. ObjectAnimation objectAnimation;
  7554. RigidBody2D otherBody;
  7555. /* readonly */
  7556. RigidBody2D ownerBody;
  7557. /* readonly */
  7558. int refs;
  7559. /* readonly */
  7560. bool replicated;
  7561. float stiffness;
  7562. bool temporary;
  7563. /* readonly */
  7564. StringHash type;
  7565. /* readonly */
  7566. String typeName;
  7567. /* readonly */
  7568. int weakRefs;
  7569. };
  7570. class ConstraintWheel2D
  7571. {
  7572. public:
  7573. ConstraintWheel2D();
  7574. // Methods:
  7575. void AllocateNetworkState();
  7576. operator Animatable() const;
  7577. void ApplyAttributes();
  7578. void CleanupConnection(Connection);
  7579. operator Component() const;
  7580. operator Constraint2D() const;
  7581. void CreateJoint();
  7582. void DrawDebugGeometry(DebugRenderer, bool);
  7583. bool GetAnimationEnabled() const;
  7584. Constraint2D GetAttachedConstraint() const;
  7585. Variant GetAttribute(const String&) const;
  7586. Variant GetAttribute(uint) const;
  7587. ValueAnimation GetAttributeAnimation(const String&) const;
  7588. float GetAttributeAnimationSpeed(const String&) const;
  7589. float GetAttributeAnimationTime(const String&) const;
  7590. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7591. Variant GetAttributeDefault(const String&) const;
  7592. Variant GetAttributeDefault(uint) const;
  7593. bool GetBlockEvents() const;
  7594. bool GetCollideConnected() const;
  7595. Component GetComponent(StringHash) const;
  7596. float GetDamping() const;
  7597. bool GetEnableLimit() const;
  7598. bool GetEnableMotor() const;
  7599. VariantMap& GetEventDataMap() const;
  7600. Object GetEventSender() const;
  7601. uint GetID() const;
  7602. bool GetInterceptNetworkUpdate(const String&) const;
  7603. float GetLowerTranslation() const;
  7604. float GetMaxMotorTorque() const;
  7605. float GetMotorSpeed() const;
  7606. Node GetNode() const;
  7607. uint GetNumAttributes() const;
  7608. uint GetNumNetworkAttributes() const;
  7609. ObjectAnimation GetObjectAnimation() const;
  7610. ResourceRef GetObjectAnimationAttr() const;
  7611. RigidBody2D GetOtherBody() const;
  7612. RigidBody2D GetOwnerBody() const;
  7613. Scene GetScene() const;
  7614. float GetStiffness() const;
  7615. Object GetSubsystem(StringHash) const;
  7616. StringHash GetType() const;
  7617. float GetUpperTranslation() const;
  7618. bool HasEventHandlers() const;
  7619. bool HasSubscribedToEvent(Object, StringHash) const;
  7620. bool HasSubscribedToEvent(StringHash) const;
  7621. bool IsEnabled() const;
  7622. bool IsEnabledEffective() const;
  7623. bool IsInstanceOf(StringHash) const;
  7624. bool IsReplicated() const;
  7625. bool IsTemporary() const;
  7626. bool Load(Deserializer&);
  7627. bool LoadJSON(const JSONValue&);
  7628. bool LoadXML(const XMLElement&);
  7629. void MarkNetworkUpdate();
  7630. operator Object() const;
  7631. void OnEvent(Object, StringHash, VariantMap&);
  7632. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7633. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7634. void OnSetEnabled();
  7635. void PrepareNetworkUpdate();
  7636. bool ReadDeltaUpdate(Deserializer&);
  7637. bool ReadLatestDataUpdate(Deserializer&);
  7638. operator RefCounted() const;
  7639. int Refs() const;
  7640. void ReleaseJoint();
  7641. void Remove();
  7642. void RemoveAttributeAnimation(const String&);
  7643. void RemoveInstanceDefault();
  7644. void RemoveObjectAnimation();
  7645. void ResetToDefault();
  7646. bool Save(Serializer&) const;
  7647. bool SaveDefaultAttributes() const;
  7648. bool SaveJSON(JSONValue&) const;
  7649. bool SaveXML(XMLElement&) const;
  7650. void SendEvent(StringHash);
  7651. void SendEvent(StringHash, VariantMap&);
  7652. operator Serializable() const;
  7653. void SetAnchor(const Vector2&);
  7654. void SetAnimationEnabled(bool);
  7655. void SetAnimationTime(float);
  7656. void SetAttachedConstraint(Constraint2D);
  7657. bool SetAttribute(const String&, const Variant&);
  7658. bool SetAttribute(uint, const Variant&);
  7659. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7660. void SetAttributeAnimationSpeed(const String&, float);
  7661. void SetAttributeAnimationTime(const String&, float);
  7662. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7663. void SetAxis(const Vector2&);
  7664. void SetBlockEvents(bool);
  7665. void SetCollideConnected(bool);
  7666. void SetDamping(float);
  7667. void SetEnableLimit(bool);
  7668. void SetEnableMotor(bool);
  7669. void SetEnabled(bool);
  7670. void SetGlobalVar(StringHash, const Variant&);
  7671. void SetInstanceDefault(bool);
  7672. void SetInterceptNetworkUpdate(const String&, bool);
  7673. bool SetLinearStiffness(float, float);
  7674. void SetLowerTranslation(float);
  7675. void SetMaxMotorTorque(float);
  7676. void SetMotorSpeed(float);
  7677. void SetObjectAnimation(ObjectAnimation);
  7678. void SetObjectAnimationAttr(const ResourceRef&);
  7679. void SetOtherBody(RigidBody2D);
  7680. void SetStiffness(float);
  7681. void SetTemporary(bool);
  7682. void SetUpperTranslation(float);
  7683. const String& GetCategory() const;
  7684. const String& GetTypeName() const;
  7685. void UnsubscribeFromAllEvents();
  7686. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7687. void UnsubscribeFromEvent(Object, StringHash);
  7688. void UnsubscribeFromEvent(StringHash);
  7689. void UnsubscribeFromEvents(Object);
  7690. const Variant& GetGlobalVar(StringHash) const;
  7691. const VariantMap& GetGlobalVars() const;
  7692. const Vector2& GetAnchor() const;
  7693. const Vector2& GetAxis() const;
  7694. int WeakRefs() const;
  7695. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7696. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7697. void WriteLatestDataUpdate(Serializer&, uint8);
  7698. operator const Animatable() const;
  7699. operator const Component() const;
  7700. operator const Constraint2D() const;
  7701. operator const Object() const;
  7702. operator const RefCounted() const;
  7703. operator const Serializable() const;
  7704. // Properties:
  7705. Vector2 anchor;
  7706. bool animationEnabled;
  7707. /* readonly */
  7708. Array<Variant> attributeDefaults;
  7709. /* readonly */
  7710. Array<AttributeInfo> attributeInfos;
  7711. Array<Variant> attributes;
  7712. Vector2 axis;
  7713. /* readonly */
  7714. String category;
  7715. bool collideConnected;
  7716. float damping;
  7717. bool enableLimit;
  7718. bool enableMotor;
  7719. bool enabled;
  7720. /* readonly */
  7721. bool enabledEffective;
  7722. Array<Variant> globalVar;
  7723. /* readonly */
  7724. VariantMap globalVars;
  7725. /* readonly */
  7726. uint id;
  7727. float lowerTranslation;
  7728. float maxMotorTorque;
  7729. float motorSpeed;
  7730. /* readonly */
  7731. Node node;
  7732. /* readonly */
  7733. uint numAttributes;
  7734. ObjectAnimation objectAnimation;
  7735. RigidBody2D otherBody;
  7736. /* readonly */
  7737. RigidBody2D ownerBody;
  7738. /* readonly */
  7739. int refs;
  7740. /* readonly */
  7741. bool replicated;
  7742. float stiffness;
  7743. bool temporary;
  7744. /* readonly */
  7745. StringHash type;
  7746. /* readonly */
  7747. String typeName;
  7748. float upperTranslation;
  7749. /* readonly */
  7750. int weakRefs;
  7751. };
  7752. class Context
  7753. {
  7754. public:
  7755. Context();
  7756. // Methods:
  7757. void CopyBaseAttributes(StringHash, StringHash);
  7758. Object CreateObject(StringHash);
  7759. VariantMap& GetEventDataMap();
  7760. EventReceiverGroup GetEventReceivers(Object, StringHash);
  7761. EventReceiverGroup GetEventReceivers(StringHash);
  7762. Object GetEventSender() const;
  7763. Object GetSubsystem(StringHash) const;
  7764. operator RefCounted() const;
  7765. int Refs() const;
  7766. void RegisterFactory(ObjectFactory);
  7767. void RegisterSubsystem(Object);
  7768. void ReleaseSDL();
  7769. void RemoveAllAttributes(StringHash);
  7770. void RemoveSubsystem(StringHash);
  7771. bool RequireSDL(uint);
  7772. void SetGlobalVar(StringHash, const Variant&);
  7773. const String& GetTypeName(StringHash) const;
  7774. const Variant& GetGlobalVar(StringHash) const;
  7775. const VariantMap& GetGlobalVars() const;
  7776. int WeakRefs() const;
  7777. operator const RefCounted() const;
  7778. // Properties:
  7779. /* readonly */
  7780. int refs;
  7781. /* readonly */
  7782. int weakRefs;
  7783. };
  7784. class Controls
  7785. {
  7786. public:
  7787. ~Controls();
  7788. Controls();
  7789. // Methods:
  7790. Controls& operator=(const Controls&);
  7791. bool IsDown(uint) const;
  7792. bool IsPressed(uint, const Controls&) const;
  7793. void Reset();
  7794. void Set(uint, bool = true);
  7795. // Properties:
  7796. uint buttons;
  7797. VariantMap extraData;
  7798. float pitch;
  7799. float yaw;
  7800. };
  7801. class ConvexData
  7802. {
  7803. public:
  7804. ConvexData(Model&, int);
  7805. ConvexData(CustomGeometry&);
  7806. // Methods:
  7807. void BuildHull(Array<Vector3>);
  7808. operator CollisionGeometryData() const;
  7809. operator RefCounted() const;
  7810. int Refs() const;
  7811. int WeakRefs() const;
  7812. operator const CollisionGeometryData() const;
  7813. operator const RefCounted() const;
  7814. // Properties:
  7815. uint indexCount;
  7816. /* readonly */
  7817. int refs;
  7818. uint vertexCount;
  7819. /* readonly */
  7820. int weakRefs;
  7821. };
  7822. class CrowdAgent
  7823. {
  7824. public:
  7825. CrowdAgent();
  7826. // Methods:
  7827. void AllocateNetworkState();
  7828. operator Animatable() const;
  7829. void ApplyAttributes();
  7830. void CleanupConnection(Connection);
  7831. operator Component() const;
  7832. void DrawDebugGeometry(DebugRenderer, bool);
  7833. void DrawDebugGeometry(bool);
  7834. Vector3 GetActualVelocity() const;
  7835. int GetAgentCrowdId() const;
  7836. CrowdAgentState GetAgentState() const;
  7837. bool GetAnimationEnabled() const;
  7838. Variant GetAttribute(const String&) const;
  7839. Variant GetAttribute(uint) const;
  7840. ValueAnimation GetAttributeAnimation(const String&) const;
  7841. float GetAttributeAnimationSpeed(const String&) const;
  7842. float GetAttributeAnimationTime(const String&) const;
  7843. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  7844. Variant GetAttributeDefault(const String&) const;
  7845. Variant GetAttributeDefault(uint) const;
  7846. bool GetBlockEvents() const;
  7847. Component GetComponent(StringHash) const;
  7848. Vector3 GetDesiredVelocity() const;
  7849. VariantMap& GetEventDataMap() const;
  7850. Object GetEventSender() const;
  7851. float GetHeight() const;
  7852. uint GetID() const;
  7853. bool GetInterceptNetworkUpdate(const String&) const;
  7854. float GetMaxAccel() const;
  7855. float GetMaxSpeed() const;
  7856. NavigationPushiness GetNavigationPushiness() const;
  7857. NavigationQuality GetNavigationQuality() const;
  7858. Node GetNode() const;
  7859. uint GetNumAttributes() const;
  7860. uint GetNumNetworkAttributes() const;
  7861. ObjectAnimation GetObjectAnimation() const;
  7862. ResourceRef GetObjectAnimationAttr() const;
  7863. uint GetObstacleAvoidanceType() const;
  7864. Vector3 GetPosition() const;
  7865. uint GetQueryFilterType() const;
  7866. float GetRadius() const;
  7867. CrowdAgentRequestedTarget GetRequestedTargetType() const;
  7868. Scene GetScene() const;
  7869. Object GetSubsystem(StringHash) const;
  7870. CrowdAgentTargetState GetTargetState() const;
  7871. StringHash GetType() const;
  7872. bool GetUpdateNodePosition() const;
  7873. bool HasArrived() const;
  7874. bool HasEventHandlers() const;
  7875. bool HasRequestedTarget() const;
  7876. bool HasSubscribedToEvent(Object, StringHash) const;
  7877. bool HasSubscribedToEvent(StringHash) const;
  7878. bool IsEnabled() const;
  7879. bool IsEnabledEffective() const;
  7880. bool IsInCrowd() const;
  7881. bool IsInstanceOf(StringHash) const;
  7882. bool IsReplicated() const;
  7883. bool IsTemporary() const;
  7884. bool Load(Deserializer&);
  7885. bool LoadJSON(const JSONValue&);
  7886. bool LoadXML(const XMLElement&);
  7887. void MarkNetworkUpdate();
  7888. operator Object() const;
  7889. void OnEvent(Object, StringHash, VariantMap&);
  7890. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  7891. void OnSetAttribute(const AttributeInfo&, const Variant&);
  7892. void OnSetEnabled();
  7893. void PrepareNetworkUpdate();
  7894. bool ReadDeltaUpdate(Deserializer&);
  7895. bool ReadLatestDataUpdate(Deserializer&);
  7896. operator RefCounted() const;
  7897. int Refs() const;
  7898. void Remove();
  7899. void RemoveAttributeAnimation(const String&);
  7900. void RemoveInstanceDefault();
  7901. void RemoveObjectAnimation();
  7902. void ResetTarget();
  7903. void ResetToDefault();
  7904. bool Save(Serializer&) const;
  7905. bool SaveDefaultAttributes() const;
  7906. bool SaveJSON(JSONValue&) const;
  7907. bool SaveXML(XMLElement&) const;
  7908. void SendEvent(StringHash);
  7909. void SendEvent(StringHash, VariantMap&);
  7910. operator Serializable() const;
  7911. void SetAnimationEnabled(bool);
  7912. void SetAnimationTime(float);
  7913. bool SetAttribute(const String&, const Variant&);
  7914. bool SetAttribute(uint, const Variant&);
  7915. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  7916. void SetAttributeAnimationSpeed(const String&, float);
  7917. void SetAttributeAnimationTime(const String&, float);
  7918. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  7919. void SetBlockEvents(bool);
  7920. void SetEnabled(bool);
  7921. void SetGlobalVar(StringHash, const Variant&);
  7922. void SetHeight(float);
  7923. void SetInstanceDefault(bool);
  7924. void SetInterceptNetworkUpdate(const String&, bool);
  7925. void SetMaxAccel(float);
  7926. void SetMaxSpeed(float);
  7927. void SetNavigationPushiness(NavigationPushiness);
  7928. void SetNavigationQuality(NavigationQuality);
  7929. void SetObjectAnimation(ObjectAnimation);
  7930. void SetObjectAnimationAttr(const ResourceRef&);
  7931. void SetObstacleAvoidanceType(uint);
  7932. void SetQueryFilterType(uint);
  7933. void SetRadius(float);
  7934. void SetTargetPosition(const Vector3&);
  7935. void SetTargetVelocity(const Vector3&);
  7936. void SetTemporary(bool);
  7937. void SetUpdateNodePosition(bool);
  7938. const String& GetCategory() const;
  7939. const String& GetTypeName() const;
  7940. void UnsubscribeFromAllEvents();
  7941. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  7942. void UnsubscribeFromEvent(Object, StringHash);
  7943. void UnsubscribeFromEvent(StringHash);
  7944. void UnsubscribeFromEvents(Object);
  7945. const Variant& GetGlobalVar(StringHash) const;
  7946. const VariantMap& GetGlobalVars() const;
  7947. const Vector3& GetTargetPosition() const;
  7948. const Vector3& GetTargetVelocity() const;
  7949. int WeakRefs() const;
  7950. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  7951. void WriteInitialDeltaUpdate(Serializer&, uint8);
  7952. void WriteLatestDataUpdate(Serializer&, uint8);
  7953. operator const Animatable() const;
  7954. operator const Component() const;
  7955. operator const Object() const;
  7956. operator const RefCounted() const;
  7957. operator const Serializable() const;
  7958. // Properties:
  7959. /* readonly */
  7960. Vector3 actualVelocity;
  7961. /* readonly */
  7962. CrowdAgentState agentState;
  7963. bool animationEnabled;
  7964. /* readonly */
  7965. bool arrived;
  7966. /* readonly */
  7967. Array<Variant> attributeDefaults;
  7968. /* readonly */
  7969. Array<AttributeInfo> attributeInfos;
  7970. Array<Variant> attributes;
  7971. /* readonly */
  7972. String category;
  7973. /* readonly */
  7974. Vector3 desiredVelocity;
  7975. bool enabled;
  7976. /* readonly */
  7977. bool enabledEffective;
  7978. Array<Variant> globalVar;
  7979. /* readonly */
  7980. VariantMap globalVars;
  7981. float height;
  7982. /* readonly */
  7983. uint id;
  7984. /* readonly */
  7985. bool inCrowd;
  7986. float maxAccel;
  7987. float maxSpeed;
  7988. NavigationPushiness navigationPushiness;
  7989. NavigationQuality navigationQuality;
  7990. /* readonly */
  7991. Node node;
  7992. /* readonly */
  7993. uint numAttributes;
  7994. ObjectAnimation objectAnimation;
  7995. uint obstacleAvoidanceType;
  7996. /* readonly */
  7997. Vector3 position;
  7998. uint queryFilterType;
  7999. float radius;
  8000. /* readonly */
  8001. int refs;
  8002. /* readonly */
  8003. bool replicated;
  8004. /* readonly */
  8005. bool requestedTarget;
  8006. /* readonly */
  8007. CrowdAgentRequestedTarget requestedTargetType;
  8008. Vector3 targetPosition;
  8009. /* readonly */
  8010. CrowdAgentTargetState targetState;
  8011. Vector3 targetVelocity;
  8012. bool temporary;
  8013. /* readonly */
  8014. StringHash type;
  8015. /* readonly */
  8016. String typeName;
  8017. bool updateNodePosition;
  8018. /* readonly */
  8019. int weakRefs;
  8020. };
  8021. class CrowdManager
  8022. {
  8023. public:
  8024. CrowdManager();
  8025. // Methods:
  8026. void AllocateNetworkState();
  8027. operator Animatable() const;
  8028. void ApplyAttributes();
  8029. void CleanupConnection(Connection);
  8030. operator Component() const;
  8031. const CrowdObstacleAvoidanceParams& GetObstacleAvoidanceParams(uint) const;
  8032. void DrawDebugGeometry(DebugRenderer, bool);
  8033. void DrawDebugGeometry(bool);
  8034. Vector3 FindNearestPoint(const Vector3&, int);
  8035. Array<CrowdAgent> GetAgents(Node = null, bool = true) const;
  8036. bool GetAnimationEnabled() const;
  8037. float GetAreaCost(uint, uint) const;
  8038. Variant GetAttribute(const String&) const;
  8039. Variant GetAttribute(uint) const;
  8040. ValueAnimation GetAttributeAnimation(const String&) const;
  8041. float GetAttributeAnimationSpeed(const String&) const;
  8042. float GetAttributeAnimationTime(const String&) const;
  8043. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8044. Variant GetAttributeDefault(const String&) const;
  8045. Variant GetAttributeDefault(uint) const;
  8046. bool GetBlockEvents() const;
  8047. Component GetComponent(StringHash) const;
  8048. float GetDistanceToWall(const Vector3&, float, int);
  8049. VariantMap& GetEventDataMap() const;
  8050. Object GetEventSender() const;
  8051. uint16 GetExcludeFlags(uint) const;
  8052. uint GetID() const;
  8053. uint16 GetIncludeFlags(uint) const;
  8054. bool GetInterceptNetworkUpdate(const String&) const;
  8055. float GetMaxAgentRadius() const;
  8056. uint GetMaxAgents() const;
  8057. NavigationMesh GetNavigationMesh() const;
  8058. Node GetNode() const;
  8059. uint GetNumAreas(uint) const;
  8060. uint GetNumAttributes() const;
  8061. uint GetNumNetworkAttributes() const;
  8062. uint GetNumObstacleAvoidanceTypes() const;
  8063. uint GetNumQueryFilterTypes() const;
  8064. ObjectAnimation GetObjectAnimation() const;
  8065. ResourceRef GetObjectAnimationAttr() const;
  8066. Vector3 GetRandomPoint(int);
  8067. Vector3 GetRandomPointInCircle(const Vector3&, float, int);
  8068. Scene GetScene() const;
  8069. Object GetSubsystem(StringHash) const;
  8070. StringHash GetType() const;
  8071. bool HasEventHandlers() const;
  8072. bool HasSubscribedToEvent(Object, StringHash) const;
  8073. bool HasSubscribedToEvent(StringHash) const;
  8074. bool IsEnabled() const;
  8075. bool IsEnabledEffective() const;
  8076. bool IsInstanceOf(StringHash) const;
  8077. bool IsReplicated() const;
  8078. bool IsTemporary() const;
  8079. bool Load(Deserializer&);
  8080. bool LoadJSON(const JSONValue&);
  8081. bool LoadXML(const XMLElement&);
  8082. void MarkNetworkUpdate();
  8083. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, int, int = 3);
  8084. operator Object() const;
  8085. void OnEvent(Object, StringHash, VariantMap&);
  8086. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8087. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8088. void OnSetEnabled();
  8089. void PrepareNetworkUpdate();
  8090. Vector3 Raycast(const Vector3&, const Vector3&, int);
  8091. bool ReadDeltaUpdate(Deserializer&);
  8092. bool ReadLatestDataUpdate(Deserializer&);
  8093. operator RefCounted() const;
  8094. int Refs() const;
  8095. void Remove();
  8096. void RemoveAttributeAnimation(const String&);
  8097. void RemoveInstanceDefault();
  8098. void RemoveObjectAnimation();
  8099. void ResetCrowdTarget(Node = null);
  8100. void ResetToDefault();
  8101. bool Save(Serializer&) const;
  8102. bool SaveDefaultAttributes() const;
  8103. bool SaveJSON(JSONValue&) const;
  8104. bool SaveXML(XMLElement&) const;
  8105. void SendEvent(StringHash);
  8106. void SendEvent(StringHash, VariantMap&);
  8107. operator Serializable() const;
  8108. void SetAnimationEnabled(bool);
  8109. void SetAnimationTime(float);
  8110. void SetAreaCost(uint, uint, float);
  8111. bool SetAttribute(const String&, const Variant&);
  8112. bool SetAttribute(uint, const Variant&);
  8113. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8114. void SetAttributeAnimationSpeed(const String&, float);
  8115. void SetAttributeAnimationTime(const String&, float);
  8116. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8117. void SetBlockEvents(bool);
  8118. void SetCrowdTarget(const Vector3&, Node = null);
  8119. void SetCrowdVelocity(const Vector3&, Node = null);
  8120. void SetEnabled(bool);
  8121. void SetExcludeFlags(uint, uint16);
  8122. void SetGlobalVar(StringHash, const Variant&);
  8123. void SetIncludeFlags(uint, uint16);
  8124. void SetInstanceDefault(bool);
  8125. void SetInterceptNetworkUpdate(const String&, bool);
  8126. void SetMaxAgentRadius(float);
  8127. void SetMaxAgents(uint);
  8128. void SetNavigationMesh(NavigationMesh);
  8129. void SetObjectAnimation(ObjectAnimation);
  8130. void SetObjectAnimationAttr(const ResourceRef&);
  8131. void SetObstacleAvoidanceParams(uint, const CrowdObstacleAvoidanceParams&);
  8132. void SetTemporary(bool);
  8133. const String& GetCategory() const;
  8134. const String& GetTypeName() const;
  8135. void UnsubscribeFromAllEvents();
  8136. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8137. void UnsubscribeFromEvent(Object, StringHash);
  8138. void UnsubscribeFromEvent(StringHash);
  8139. void UnsubscribeFromEvents(Object);
  8140. const Variant& GetGlobalVar(StringHash) const;
  8141. const VariantMap& GetGlobalVars() const;
  8142. int WeakRefs() const;
  8143. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8144. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8145. void WriteLatestDataUpdate(Serializer&, uint8);
  8146. operator const Animatable() const;
  8147. operator const Component() const;
  8148. operator const Object() const;
  8149. operator const RefCounted() const;
  8150. operator const Serializable() const;
  8151. // Properties:
  8152. bool animationEnabled;
  8153. /* readonly */
  8154. Array<Variant> attributeDefaults;
  8155. /* readonly */
  8156. Array<AttributeInfo> attributeInfos;
  8157. Array<Variant> attributes;
  8158. /* readonly */
  8159. String category;
  8160. bool enabled;
  8161. /* readonly */
  8162. bool enabledEffective;
  8163. Array<Variant> globalVar;
  8164. /* readonly */
  8165. VariantMap globalVars;
  8166. /* readonly */
  8167. uint id;
  8168. float maxAgentRadius;
  8169. uint maxAgents;
  8170. NavigationMesh navMesh;
  8171. /* readonly */
  8172. Node node;
  8173. /* readonly */
  8174. Array<uint> numAreas;
  8175. /* readonly */
  8176. uint numAttributes;
  8177. /* readonly */
  8178. uint numObstacleAvoidanceTypes;
  8179. /* readonly */
  8180. uint numQueryFilterTypes;
  8181. ObjectAnimation objectAnimation;
  8182. /* readonly */
  8183. int refs;
  8184. /* readonly */
  8185. bool replicated;
  8186. bool temporary;
  8187. /* readonly */
  8188. StringHash type;
  8189. /* readonly */
  8190. String typeName;
  8191. /* readonly */
  8192. int weakRefs;
  8193. };
  8194. class CrowdObstacleAvoidanceParams
  8195. {
  8196. public:
  8197. // Methods:
  8198. CrowdObstacleAvoidanceParams& operator=(const CrowdObstacleAvoidanceParams&);
  8199. // Properties:
  8200. uint8 adaptiveDepth;
  8201. uint8 adaptiveDivs;
  8202. uint8 adaptiveRings;
  8203. uint8 gridSize;
  8204. float horizTime;
  8205. float velBias;
  8206. float weightCurVel;
  8207. float weightDesVel;
  8208. float weightSide;
  8209. float weightToi;
  8210. };
  8211. class Cursor
  8212. {
  8213. public:
  8214. Cursor();
  8215. Cursor(const String&in);
  8216. // Methods:
  8217. void AddChild(UIElement);
  8218. void AddTag(const String&);
  8219. void AddTags(Array<String>);
  8220. void AddTags(const String&, int8 = ';');
  8221. void AdjustScissor(IntRect&);
  8222. void AllocateNetworkState();
  8223. operator Animatable() const;
  8224. void ApplyAttributes();
  8225. void ApplyOSCursorShape();
  8226. operator BorderImage() const;
  8227. void BringToFront();
  8228. const Color& GetColor(Corner) const;
  8229. const Color& GetColorAttr() const;
  8230. const Color& GetDerivedColor() const;
  8231. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  8232. void DefineShape(CursorShape, Image, const IntRect&, const IntVector2&);
  8233. void DefineShape(const String&, Image, const IntRect&, const IntVector2&);
  8234. void DisableLayoutUpdate();
  8235. IntVector2 ElementToScreen(const IntVector2&);
  8236. void EnableLayoutUpdate();
  8237. bool FilterAttributes(XMLElement&) const;
  8238. int FindChild(UIElement) const;
  8239. bool GetAnimationEnabled() const;
  8240. Variant GetAttribute(const String&) const;
  8241. Variant GetAttribute(uint) const;
  8242. ValueAnimation GetAttributeAnimation(const String&) const;
  8243. float GetAttributeAnimationSpeed(const String&) const;
  8244. float GetAttributeAnimationTime(const String&) const;
  8245. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8246. Variant GetAttributeDefault(const String&) const;
  8247. Variant GetAttributeDefault(uint) const;
  8248. BlendMode GetBlendMode() const;
  8249. bool GetBlockEvents() const;
  8250. bool GetBringToBack() const;
  8251. bool GetBringToFront() const;
  8252. UIElement GetChild(const String&, bool = false) const;
  8253. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  8254. UIElement GetChild(int) const;
  8255. Array<UIElement> GetChildren() const;
  8256. Array<UIElement> GetChildren(bool) const;
  8257. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  8258. bool GetClipChildren() const;
  8259. IntRect GetCombinedScreenRect();
  8260. XMLFile GetDefaultStyle(bool = true) const;
  8261. float GetDerivedOpacity() const;
  8262. uint GetDragButtonCombo() const;
  8263. int GetDragButtonCount() const;
  8264. uint GetDragDropMode() const;
  8265. IntVector2 GetEffectiveMinSize() const;
  8266. UIElement GetElementEventSender() const;
  8267. bool GetEnableAnchor() const;
  8268. VariantMap& GetEventDataMap() const;
  8269. Object GetEventSender() const;
  8270. FocusMode GetFocusMode() const;
  8271. int GetHeight() const;
  8272. HorizontalAlignment GetHorizontalAlignment() const;
  8273. int GetIndent() const;
  8274. int GetIndentSpacing() const;
  8275. int GetIndentWidth() const;
  8276. bool GetInterceptNetworkUpdate(const String&) const;
  8277. int GetLayoutElementMaxSize() const;
  8278. LayoutMode GetLayoutMode() const;
  8279. int GetLayoutSpacing() const;
  8280. Material GetMaterial() const;
  8281. ResourceRef GetMaterialAttr() const;
  8282. int GetMaxHeight() const;
  8283. int GetMaxWidth() const;
  8284. int GetMinHeight() const;
  8285. int GetMinWidth() const;
  8286. uint GetNumAttributes() const;
  8287. int GetNumChildren(bool = false) const;
  8288. uint GetNumNetworkAttributes() const;
  8289. ObjectAnimation GetObjectAnimation() const;
  8290. ResourceRef GetObjectAnimationAttr() const;
  8291. float GetOpacity() const;
  8292. UIElement GetParent() const;
  8293. int GetPriority() const;
  8294. UIElement GetRoot() const;
  8295. bool GetSortChildren() const;
  8296. Object GetSubsystem(StringHash) const;
  8297. Array<String> GetTags() const;
  8298. Texture GetTexture() const;
  8299. ResourceRef GetTextureAttr() const;
  8300. TraversalMode GetTraversalMode() const;
  8301. StringHash GetType() const;
  8302. bool GetUseDerivedOpacity() const;
  8303. bool GetUseSystemShapes() const;
  8304. VerticalAlignment GetVerticalAlignment() const;
  8305. int GetWidth() const;
  8306. bool HasColorGradient() const;
  8307. bool HasEventHandlers() const;
  8308. bool HasFocus() const;
  8309. bool HasSubscribedToEvent(Object, StringHash) const;
  8310. bool HasSubscribedToEvent(StringHash) const;
  8311. bool HasTag(const String&) const;
  8312. void InsertChild(int, UIElement);
  8313. const IntRect& GetBorder() const;
  8314. const IntRect& GetClipBorder() const;
  8315. const IntRect& GetImageBorder() const;
  8316. const IntRect& GetImageRect() const;
  8317. const IntRect& GetLayoutBorder() const;
  8318. const IntVector2& GetChildOffset() const;
  8319. const IntVector2& GetDisabledOffset() const;
  8320. const IntVector2& GetHoverOffset() const;
  8321. const IntVector2& GetMaxOffset() const;
  8322. const IntVector2& GetMaxSize() const;
  8323. const IntVector2& GetMinOffset() const;
  8324. const IntVector2& GetMinSize() const;
  8325. const IntVector2& GetPosition() const;
  8326. const IntVector2& GetScreenPosition() const;
  8327. const IntVector2& GetSize() const;
  8328. bool IsChildOf(UIElement) const;
  8329. bool IsEditable() const;
  8330. bool IsElementEventSender() const;
  8331. bool IsEnabled() const;
  8332. bool IsEnabledSelf() const;
  8333. bool IsFixedHeight() const;
  8334. bool IsFixedSize() const;
  8335. bool IsFixedWidth() const;
  8336. bool IsHovering() const;
  8337. bool IsInside(IntVector2, bool);
  8338. bool IsInsideCombined(IntVector2, bool);
  8339. bool IsInstanceOf(StringHash) const;
  8340. bool IsInternal() const;
  8341. bool IsSelected() const;
  8342. bool IsTemporary() const;
  8343. bool IsTiled() const;
  8344. bool IsVisible() const;
  8345. bool IsVisibleEffective() const;
  8346. bool IsWheelHandler() const;
  8347. bool IsWithinScissor(const IntRect&);
  8348. bool Load(Deserializer&);
  8349. UIElement LoadChildXML(XMLFile, XMLFile);
  8350. UIElement LoadChildXML(const XMLElement&, XMLFile);
  8351. bool LoadJSON(const JSONValue&);
  8352. bool LoadXML(Deserializer&);
  8353. bool LoadXML(File);
  8354. bool LoadXML(VectorBuffer&);
  8355. bool LoadXML(XMLFile, XMLFile);
  8356. bool LoadXML(const XMLElement&);
  8357. bool LoadXML(const XMLElement&, XMLFile);
  8358. void MarkNetworkUpdate();
  8359. operator Object() const;
  8360. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  8361. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  8362. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  8363. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8364. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8365. bool OnDragDropFinish(UIElement);
  8366. bool OnDragDropTest(UIElement);
  8367. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8368. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8369. void OnEvent(Object, StringHash, VariantMap&);
  8370. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8371. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  8372. void OnIndentSet();
  8373. void OnKey(uint, uint, uint);
  8374. void OnPositionSet(const IntVector2&);
  8375. void OnResize(const IntVector2&, const IntVector2&);
  8376. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8377. void OnSetEditable();
  8378. void OnTextInput(const String&);
  8379. void OnWheel(int, uint, uint);
  8380. bool ReadDeltaUpdate(Deserializer&);
  8381. bool ReadLatestDataUpdate(Deserializer&);
  8382. operator RefCounted() const;
  8383. int Refs() const;
  8384. void Remove();
  8385. void RemoveAllChildren();
  8386. void RemoveAllTags();
  8387. void RemoveAttributeAnimation(const String&);
  8388. void RemoveChild(UIElement, int = 0);
  8389. void RemoveChild(uint);
  8390. void RemoveChildAtIndex(int);
  8391. void RemoveInstanceDefault();
  8392. void RemoveObjectAnimation();
  8393. bool RemoveTag(const String&);
  8394. void ResetDeepEnabled();
  8395. void ResetToDefault();
  8396. bool Save(Serializer&) const;
  8397. bool SaveDefaultAttributes() const;
  8398. bool SaveJSON(JSONValue&) const;
  8399. bool SaveXML(File, const String& indentation = "\t");
  8400. bool SaveXML(Serializer&, const String& = "\t") const;
  8401. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  8402. bool SaveXML(XMLElement&) const;
  8403. IntVector2 ScreenToElement(const IntVector2&);
  8404. void SendEvent(StringHash);
  8405. void SendEvent(StringHash, VariantMap&);
  8406. operator Serializable() const;
  8407. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  8408. void SetAnimationEnabled(bool);
  8409. void SetAnimationTime(float);
  8410. bool SetAttribute(const String&, const Variant&);
  8411. bool SetAttribute(uint, const Variant&);
  8412. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8413. void SetAttributeAnimationSpeed(const String&, float);
  8414. void SetAttributeAnimationTime(const String&, float);
  8415. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8416. void SetBlendMode(BlendMode);
  8417. void SetBlockEvents(bool);
  8418. void SetBorder(const IntRect&);
  8419. void SetBringToBack(bool);
  8420. void SetBringToFront(bool);
  8421. void SetChildOffset(const IntVector2&);
  8422. void SetClipBorder(const IntRect&);
  8423. void SetClipChildren(bool);
  8424. void SetColor(Corner, const Color&);
  8425. void SetColor(const Color&);
  8426. void SetDeepEnabled(bool);
  8427. void SetDefaultStyle(XMLFile);
  8428. void SetDisabledOffset(const IntVector2&);
  8429. void SetDisabledOffset(int, int);
  8430. void SetDragDropMode(uint);
  8431. void SetEditable(bool);
  8432. void SetElementEventSender(bool);
  8433. void SetEnableAnchor(bool);
  8434. void SetEnabled(bool);
  8435. void SetEnabledRecursive(bool);
  8436. void SetFixedHeight(int);
  8437. void SetFixedSize(const IntVector2&);
  8438. void SetFixedSize(int, int);
  8439. void SetFixedWidth(int);
  8440. void SetFocus(bool);
  8441. void SetFocusMode(FocusMode);
  8442. void SetFullImageRect();
  8443. void SetGlobalVar(StringHash, const Variant&);
  8444. void SetHeight(int);
  8445. void SetHorizontalAlignment(HorizontalAlignment);
  8446. void SetHoverOffset(const IntVector2&);
  8447. void SetHoverOffset(int, int);
  8448. void SetHovering(bool);
  8449. void SetImageBorder(const IntRect&);
  8450. void SetImageRect(const IntRect&);
  8451. void SetIndent(int);
  8452. void SetIndentSpacing(int);
  8453. void SetInstanceDefault(bool);
  8454. void SetInterceptNetworkUpdate(const String&, bool);
  8455. void SetInternal(bool);
  8456. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  8457. void SetLayoutBorder(const IntRect&);
  8458. void SetLayoutFlexScale(const Vector2&);
  8459. void SetLayoutMode(LayoutMode);
  8460. void SetLayoutSpacing(int);
  8461. void SetMaterial(Material);
  8462. void SetMaterialAttr(const ResourceRef&);
  8463. void SetMaxAnchor(const Vector2&);
  8464. void SetMaxAnchor(float, float);
  8465. void SetMaxHeight(int);
  8466. void SetMaxOffset(const IntVector2&);
  8467. void SetMaxSize(const IntVector2&);
  8468. void SetMaxSize(int, int);
  8469. void SetMaxWidth(int);
  8470. void SetMinAnchor(const Vector2&);
  8471. void SetMinAnchor(float, float);
  8472. void SetMinHeight(int);
  8473. void SetMinOffset(const IntVector2&);
  8474. void SetMinSize(const IntVector2&);
  8475. void SetMinSize(int, int);
  8476. void SetMinWidth(int);
  8477. void SetName(const String&);
  8478. void SetObjectAnimation(ObjectAnimation);
  8479. void SetObjectAnimationAttr(const ResourceRef&);
  8480. void SetOpacity(float);
  8481. void SetParent(UIElement, int = ENDPOS);
  8482. void SetPivot(const Vector2&);
  8483. void SetPivot(float, float);
  8484. void SetPosition(const IntVector2&);
  8485. void SetPosition(int, int);
  8486. void SetPriority(int);
  8487. void SetRenderTexture(Texture2D);
  8488. void SetSelected(bool);
  8489. void SetShape(CursorShape);
  8490. void SetShape(const String&);
  8491. void SetSize(const IntVector2&);
  8492. void SetSize(int, int);
  8493. void SetSortChildren(bool);
  8494. bool SetStyle(const String&, XMLFile = null);
  8495. bool SetStyle(const XMLElement&);
  8496. bool SetStyleAuto(XMLFile = null);
  8497. void SetTags(Array<String>);
  8498. void SetTemporary(bool);
  8499. void SetTexture(Texture);
  8500. void SetTextureAttr(const ResourceRef&);
  8501. void SetTiled(bool);
  8502. void SetTraversalMode(TraversalMode);
  8503. void SetUseDerivedOpacity(bool);
  8504. void SetUseSystemShapes(bool);
  8505. void SetVar(StringHash, const Variant&);
  8506. void SetVerticalAlignment(VerticalAlignment);
  8507. void SetVisible(bool);
  8508. void SetWidth(int);
  8509. void SortChildren();
  8510. const String& GetAppliedStyle() const;
  8511. const String& GetCategory() const;
  8512. const String& GetName() const;
  8513. const String& GetShape() const;
  8514. const String& GetTypeName() const;
  8515. operator UIElement() const;
  8516. void UnsubscribeFromAllEvents();
  8517. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8518. void UnsubscribeFromEvent(Object, StringHash);
  8519. void UnsubscribeFromEvent(StringHash);
  8520. void UnsubscribeFromEvents(Object);
  8521. void Update(float);
  8522. void UpdateLayout();
  8523. const Variant& GetGlobalVar(StringHash) const;
  8524. const Variant& GetVar(const StringHash&) const;
  8525. const VariantMap& GetGlobalVars() const;
  8526. const VariantMap& GetVars() const;
  8527. const Vector2& GetLayoutFlexScale() const;
  8528. const Vector2& GetMaxAnchor() const;
  8529. const Vector2& GetMinAnchor() const;
  8530. const Vector2& GetPivot() const;
  8531. int WeakRefs() const;
  8532. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8533. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8534. void WriteLatestDataUpdate(Serializer&, uint8);
  8535. operator const Animatable() const;
  8536. operator const BorderImage() const;
  8537. operator const Object() const;
  8538. operator const RefCounted() const;
  8539. operator const Serializable() const;
  8540. operator const UIElement() const;
  8541. // Properties:
  8542. bool animationEnabled;
  8543. /* readonly */
  8544. Array<Variant> attributeDefaults;
  8545. /* readonly */
  8546. Array<AttributeInfo> attributeInfos;
  8547. Array<Variant> attributes;
  8548. BlendMode blendMode;
  8549. IntRect border;
  8550. bool bringToBack;
  8551. bool bringToFront;
  8552. /* readonly */
  8553. String category;
  8554. /* readonly */
  8555. IntVector2 childOffset;
  8556. /* readonly */
  8557. Array<UIElement> children;
  8558. IntRect clipBorder;
  8559. bool clipChildren;
  8560. /* writeonly */
  8561. Color color;
  8562. /* readonly */
  8563. bool colorGradient;
  8564. Array<Color> colors;
  8565. /* readonly */
  8566. IntRect combinedScreenRect;
  8567. XMLFile defaultStyle;
  8568. /* readonly */
  8569. float derivedOpacity;
  8570. IntVector2 disabledOffset;
  8571. /* readonly */
  8572. uint dragButtonCombo;
  8573. /* readonly */
  8574. int dragButtonCount;
  8575. uint dragDropMode;
  8576. bool editable;
  8577. bool elementEventSender;
  8578. bool enableAnchor;
  8579. bool enabled;
  8580. /* readonly */
  8581. bool enabledSelf;
  8582. /* readonly */
  8583. bool fixedHeight;
  8584. /* readonly */
  8585. bool fixedSize;
  8586. /* readonly */
  8587. bool fixedWidth;
  8588. bool focus;
  8589. FocusMode focusMode;
  8590. Array<Variant> globalVar;
  8591. /* readonly */
  8592. VariantMap globalVars;
  8593. int height;
  8594. HorizontalAlignment horizontalAlignment;
  8595. IntVector2 hoverOffset;
  8596. /* readonly */
  8597. bool hovering;
  8598. IntRect imageBorder;
  8599. IntRect imageRect;
  8600. int indent;
  8601. int indentSpacing;
  8602. /* readonly */
  8603. int indentWidth;
  8604. bool internal;
  8605. IntRect layoutBorder;
  8606. Vector2 layoutFlexScale;
  8607. LayoutMode layoutMode;
  8608. int layoutSpacing;
  8609. Material material;
  8610. Vector2 maxAnchor;
  8611. int maxHeight;
  8612. IntVector2 maxOffset;
  8613. IntVector2 maxSize;
  8614. int maxWidth;
  8615. Vector2 minAnchor;
  8616. int minHeight;
  8617. IntVector2 minOffset;
  8618. IntVector2 minSize;
  8619. int minWidth;
  8620. String name;
  8621. /* readonly */
  8622. uint numAllChildren;
  8623. /* readonly */
  8624. uint numAttributes;
  8625. /* readonly */
  8626. uint numChildren;
  8627. ObjectAnimation objectAnimation;
  8628. float opacity;
  8629. UIElement parent;
  8630. Vector2 pivot;
  8631. IntVector2 position;
  8632. int priority;
  8633. /* readonly */
  8634. int refs;
  8635. /* readonly */
  8636. UIElement root;
  8637. /* readonly */
  8638. IntVector2 screenPosition;
  8639. bool selected;
  8640. String shape;
  8641. IntVector2 size;
  8642. bool sortChildren;
  8643. String style;
  8644. /* readonly */
  8645. Array<String> tags;
  8646. bool temporary;
  8647. Texture texture;
  8648. bool tiled;
  8649. TraversalMode traversalMode;
  8650. /* readonly */
  8651. StringHash type;
  8652. /* readonly */
  8653. String typeName;
  8654. bool useDerivedOpacity;
  8655. bool useSystemShapes;
  8656. /* readonly */
  8657. VariantMap vars;
  8658. VerticalAlignment verticalAlignment;
  8659. bool visible;
  8660. /* readonly */
  8661. bool visibleEffective;
  8662. /* readonly */
  8663. int weakRefs;
  8664. int width;
  8665. };
  8666. class CursorShapeInfo
  8667. {
  8668. public:
  8669. ~CursorShapeInfo();
  8670. CursorShapeInfo();
  8671. CursorShapeInfo(int);
  8672. // Methods:
  8673. CursorShapeInfo& operator=(const CursorShapeInfo&);
  8674. // Properties:
  8675. IntVector2 hotSpot;
  8676. IntRect imageRect;
  8677. int systemCursor;
  8678. bool systemDefined;
  8679. };
  8680. class CustomGeometry
  8681. {
  8682. public:
  8683. CustomGeometry();
  8684. // Methods:
  8685. void AddLight(Light);
  8686. void AddVertexLight(Light);
  8687. void AllocateNetworkState();
  8688. operator Animatable() const;
  8689. void ApplyAttributes();
  8690. void BeginGeometry(uint, PrimitiveType);
  8691. const BoundingBox& GetBoundingBox() const;
  8692. const BoundingBox& GetWorldBoundingBox();
  8693. void CleanupConnection(Connection);
  8694. void Clear();
  8695. void Commit();
  8696. operator Component() const;
  8697. void DefineColor(const Color&);
  8698. void DefineGeometry(uint, PrimitiveType, uint, bool, bool, bool, bool);
  8699. void DefineNormal(const Vector3&);
  8700. void DefineTangent(const Vector4&);
  8701. void DefineTexCoord(const Vector2&);
  8702. void DefineVertex(const Vector3&);
  8703. void DrawDebugGeometry(DebugRenderer, bool);
  8704. bool DrawOcclusion(OcclusionBuffer);
  8705. operator Drawable() const;
  8706. bool GetAnimationEnabled() const;
  8707. Variant GetAttribute(const String&) const;
  8708. Variant GetAttribute(uint) const;
  8709. ValueAnimation GetAttributeAnimation(const String&) const;
  8710. float GetAttributeAnimationSpeed(const String&) const;
  8711. float GetAttributeAnimationTime(const String&) const;
  8712. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  8713. Variant GetAttributeDefault(const String&) const;
  8714. Variant GetAttributeDefault(uint) const;
  8715. Array<SourceBatch> GetBatches() const;
  8716. bool GetBlockEvents() const;
  8717. bool GetCastShadows() const;
  8718. Component GetComponent(StringHash) const;
  8719. float GetDistance() const;
  8720. float GetDrawDistance() const;
  8721. uint8 GetDrawableFlags() const;
  8722. VariantMap& GetEventDataMap() const;
  8723. Object GetEventSender() const;
  8724. Light GetFirstLight() const;
  8725. Array<uint8> GetGeometryDataAttr() const;
  8726. uint GetID() const;
  8727. bool GetInterceptNetworkUpdate(const String&) const;
  8728. uint GetLightMask() const;
  8729. Array<Light> GetLights() const;
  8730. float GetLodBias() const;
  8731. float GetLodDistance() const;
  8732. Geometry GetLodGeometry(uint, uint);
  8733. Material GetMaterial(uint = 0) const;
  8734. uint GetMaxLights() const;
  8735. float GetMaxZ() const;
  8736. float GetMinZ() const;
  8737. Node GetNode() const;
  8738. uint GetNumAttributes() const;
  8739. uint GetNumGeometries() const;
  8740. uint GetNumNetworkAttributes() const;
  8741. uint GetNumOccluderTriangles();
  8742. uint GetNumVertices(uint) const;
  8743. ObjectAnimation GetObjectAnimation() const;
  8744. ResourceRef GetObjectAnimationAttr() const;
  8745. Scene GetScene() const;
  8746. float GetShadowDistance() const;
  8747. uint GetShadowMask() const;
  8748. float GetSortValue() const;
  8749. Object GetSubsystem(StringHash) const;
  8750. StringHash GetType() const;
  8751. UpdateGeometryType GetUpdateGeometryType();
  8752. CustomGeometryVertex GetVertex(uint, uint);
  8753. Array<Light> GetVertexLights() const;
  8754. uint GetViewMask() const;
  8755. Zone GetZone() const;
  8756. uint GetZoneMask() const;
  8757. bool HasBasePass(uint) const;
  8758. bool HasEventHandlers() const;
  8759. bool HasSubscribedToEvent(Object, StringHash) const;
  8760. bool HasSubscribedToEvent(StringHash) const;
  8761. bool IsDynamic() const;
  8762. bool IsEnabled() const;
  8763. bool IsEnabledEffective() const;
  8764. bool IsInView() const;
  8765. bool IsInView(Camera) const;
  8766. bool IsInView(const FrameInfo&, bool = false) const;
  8767. bool IsInstanceOf(StringHash) const;
  8768. bool IsOccludee() const;
  8769. bool IsOccluder() const;
  8770. bool IsReplicated() const;
  8771. bool IsTemporary() const;
  8772. bool IsZoneDirty() const;
  8773. void LimitLights();
  8774. void LimitVertexLights(bool);
  8775. bool Load(Deserializer&);
  8776. bool LoadJSON(const JSONValue&);
  8777. bool LoadXML(const XMLElement&);
  8778. void MarkForUpdate();
  8779. void MarkInView(const FrameInfo&);
  8780. void MarkInView(int);
  8781. void MarkNetworkUpdate();
  8782. operator Object() const;
  8783. void OnEvent(Object, StringHash, VariantMap&);
  8784. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  8785. void OnSetAttribute(const AttributeInfo&, const Variant&);
  8786. void OnSetEnabled();
  8787. void PrepareNetworkUpdate();
  8788. bool ReadDeltaUpdate(Deserializer&);
  8789. bool ReadLatestDataUpdate(Deserializer&);
  8790. operator RefCounted() const;
  8791. int Refs() const;
  8792. void Remove();
  8793. void RemoveAttributeAnimation(const String&);
  8794. void RemoveInstanceDefault();
  8795. void RemoveObjectAnimation();
  8796. void ResetToDefault();
  8797. const ResourceRefList& GetMaterialsAttr() const;
  8798. bool Save(Serializer&) const;
  8799. bool SaveDefaultAttributes() const;
  8800. bool SaveJSON(JSONValue&) const;
  8801. bool SaveXML(XMLElement&) const;
  8802. void SendEvent(StringHash);
  8803. void SendEvent(StringHash, VariantMap&);
  8804. operator Serializable() const;
  8805. void SetAnimationEnabled(bool);
  8806. void SetAnimationTime(float);
  8807. bool SetAttribute(const String&, const Variant&);
  8808. bool SetAttribute(uint, const Variant&);
  8809. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  8810. void SetAttributeAnimationSpeed(const String&, float);
  8811. void SetAttributeAnimationTime(const String&, float);
  8812. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  8813. void SetBasePass(uint);
  8814. void SetBlockEvents(bool);
  8815. void SetCastShadows(bool);
  8816. void SetDrawDistance(float);
  8817. void SetDynamic(bool);
  8818. void SetEnabled(bool);
  8819. void SetGeometryDataAttr(Array<uint8>);
  8820. void SetGlobalVar(StringHash, const Variant&);
  8821. void SetInstanceDefault(bool);
  8822. void SetInterceptNetworkUpdate(const String&, bool);
  8823. void SetLightMask(uint);
  8824. void SetLodBias(float);
  8825. void SetMaterial(Material);
  8826. bool SetMaterial(uint, Material);
  8827. void SetMaterialsAttr(const ResourceRefList&);
  8828. void SetMaxLights(uint);
  8829. void SetMinMaxZ(float, float);
  8830. void SetNumGeometries(uint);
  8831. void SetObjectAnimation(ObjectAnimation);
  8832. void SetObjectAnimationAttr(const ResourceRef&);
  8833. void SetOccludee(bool);
  8834. void SetOccluder(bool);
  8835. void SetShadowDistance(float);
  8836. void SetShadowMask(uint);
  8837. void SetSortValue(float);
  8838. void SetTemporary(bool);
  8839. void SetViewMask(uint);
  8840. void SetZone(Zone, bool = false);
  8841. void SetZoneMask(uint);
  8842. const String& GetCategory() const;
  8843. const String& GetTypeName() const;
  8844. void UnsubscribeFromAllEvents();
  8845. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8846. void UnsubscribeFromEvent(Object, StringHash);
  8847. void UnsubscribeFromEvent(StringHash);
  8848. void UnsubscribeFromEvents(Object);
  8849. void Update(const FrameInfo&);
  8850. void UpdateBatches(const FrameInfo&);
  8851. void UpdateGeometry(const FrameInfo&);
  8852. const Variant& GetGlobalVar(StringHash) const;
  8853. const VariantMap& GetGlobalVars() const;
  8854. int WeakRefs() const;
  8855. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  8856. void WriteInitialDeltaUpdate(Serializer&, uint8);
  8857. void WriteLatestDataUpdate(Serializer&, uint8);
  8858. operator const Animatable() const;
  8859. operator const Component() const;
  8860. operator const Drawable() const;
  8861. operator const Object() const;
  8862. operator const RefCounted() const;
  8863. operator const Serializable() const;
  8864. // Properties:
  8865. bool animationEnabled;
  8866. /* readonly */
  8867. Array<Variant> attributeDefaults;
  8868. /* readonly */
  8869. Array<AttributeInfo> attributeInfos;
  8870. Array<Variant> attributes;
  8871. /* readonly */
  8872. BoundingBox boundingBox;
  8873. bool castShadows;
  8874. /* readonly */
  8875. String category;
  8876. float drawDistance;
  8877. bool dynamic;
  8878. bool enabled;
  8879. /* readonly */
  8880. bool enabledEffective;
  8881. Array<Variant> globalVar;
  8882. /* readonly */
  8883. VariantMap globalVars;
  8884. /* readonly */
  8885. uint id;
  8886. /* readonly */
  8887. bool inView;
  8888. uint lightMask;
  8889. float lodBias;
  8890. /* writeonly */
  8891. Material material;
  8892. Array<Material> materials;
  8893. uint maxLights;
  8894. /* readonly */
  8895. Node node;
  8896. /* readonly */
  8897. uint numAttributes;
  8898. uint numGeometries;
  8899. /* readonly */
  8900. Array<uint> numVertices;
  8901. ObjectAnimation objectAnimation;
  8902. bool occludee;
  8903. bool occluder;
  8904. /* readonly */
  8905. int refs;
  8906. /* readonly */
  8907. bool replicated;
  8908. float shadowDistance;
  8909. uint shadowMask;
  8910. bool temporary;
  8911. /* readonly */
  8912. StringHash type;
  8913. /* readonly */
  8914. String typeName;
  8915. uint viewMask;
  8916. /* readonly */
  8917. int weakRefs;
  8918. /* readonly */
  8919. BoundingBox worldBoundingBox;
  8920. /* readonly */
  8921. Zone zone;
  8922. uint zoneMask;
  8923. };
  8924. class CustomGeometryVertex
  8925. {
  8926. public:
  8927. // Methods:
  8928. CustomGeometryVertex& operator=(const CustomGeometryVertex&);
  8929. // Properties:
  8930. uint color;
  8931. Vector3 normal;
  8932. Vector3 position;
  8933. Vector4 tangent;
  8934. Vector2 texCoord;
  8935. };
  8936. class Database
  8937. {
  8938. public:
  8939. Database();
  8940. // Methods:
  8941. DbConnection Connect(const String&);
  8942. void Disconnect(DbConnection);
  8943. bool GetBlockEvents() const;
  8944. VariantMap& GetEventDataMap() const;
  8945. Object GetEventSender() const;
  8946. uint GetPoolSize() const;
  8947. Object GetSubsystem(StringHash) const;
  8948. StringHash GetType() const;
  8949. bool HasEventHandlers() const;
  8950. bool HasSubscribedToEvent(Object, StringHash) const;
  8951. bool HasSubscribedToEvent(StringHash) const;
  8952. bool IsInstanceOf(StringHash) const;
  8953. bool IsPooling() const;
  8954. operator Object() const;
  8955. void OnEvent(Object, StringHash, VariantMap&);
  8956. operator RefCounted() const;
  8957. int Refs() const;
  8958. void SendEvent(StringHash);
  8959. void SendEvent(StringHash, VariantMap&);
  8960. void SetBlockEvents(bool);
  8961. void SetGlobalVar(StringHash, const Variant&);
  8962. void SetPoolSize(uint);
  8963. const String& GetCategory() const;
  8964. const String& GetTypeName() const;
  8965. void UnsubscribeFromAllEvents();
  8966. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  8967. void UnsubscribeFromEvent(Object, StringHash);
  8968. void UnsubscribeFromEvent(StringHash);
  8969. void UnsubscribeFromEvents(Object);
  8970. const Variant& GetGlobalVar(StringHash) const;
  8971. const VariantMap& GetGlobalVars() const;
  8972. int WeakRefs() const;
  8973. operator const Object() const;
  8974. operator const RefCounted() const;
  8975. // Properties:
  8976. /* readonly */
  8977. String category;
  8978. Array<Variant> globalVar;
  8979. /* readonly */
  8980. VariantMap globalVars;
  8981. uint poolSize;
  8982. /* readonly */
  8983. bool pooling;
  8984. /* readonly */
  8985. int refs;
  8986. /* readonly */
  8987. StringHash type;
  8988. /* readonly */
  8989. String typeName;
  8990. /* readonly */
  8991. int weakRefs;
  8992. };
  8993. class DbConnection
  8994. {
  8995. public:
  8996. // Methods:
  8997. DbResult Execute(const String&, bool useCursorEvent = false);
  8998. bool GetBlockEvents() const;
  8999. VariantMap& GetEventDataMap() const;
  9000. Object GetEventSender() const;
  9001. Object GetSubsystem(StringHash) const;
  9002. StringHash GetType() const;
  9003. bool HasEventHandlers() const;
  9004. bool HasSubscribedToEvent(Object, StringHash) const;
  9005. bool HasSubscribedToEvent(StringHash) const;
  9006. bool IsInstanceOf(StringHash) const;
  9007. void OnEvent(Object, StringHash, VariantMap&);
  9008. int Refs() const;
  9009. void SendEvent(StringHash);
  9010. void SendEvent(StringHash, VariantMap&);
  9011. void SetBlockEvents(bool);
  9012. void SetGlobalVar(StringHash, const Variant&);
  9013. const String& GetCategory() const;
  9014. const String& GetTypeName() const;
  9015. void UnsubscribeFromAllEvents();
  9016. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9017. void UnsubscribeFromEvent(Object, StringHash);
  9018. void UnsubscribeFromEvent(StringHash);
  9019. void UnsubscribeFromEvents(Object);
  9020. const Variant& GetGlobalVar(StringHash) const;
  9021. const VariantMap& GetGlobalVars() const;
  9022. int WeakRefs() const;
  9023. // Properties:
  9024. /* readonly */
  9025. String category;
  9026. /* readonly */
  9027. bool connected;
  9028. /* readonly */
  9029. String connectionString;
  9030. Array<Variant> globalVar;
  9031. /* readonly */
  9032. VariantMap globalVars;
  9033. /* readonly */
  9034. int refs;
  9035. /* readonly */
  9036. StringHash type;
  9037. /* readonly */
  9038. String typeName;
  9039. /* readonly */
  9040. int weakRefs;
  9041. };
  9042. class DbResult
  9043. {
  9044. public:
  9045. ~DbResult();
  9046. DbResult();
  9047. DbResult(const DbResult&in);
  9048. // Methods:
  9049. DbResult& operator=(const DbResult&);
  9050. // Properties:
  9051. /* readonly */
  9052. Array<String> columns;
  9053. /* readonly */
  9054. int64 numAffectedRows;
  9055. /* readonly */
  9056. uint numColumns;
  9057. /* readonly */
  9058. uint numRows;
  9059. /* readonly */
  9060. Array<Array<Variant>> row;
  9061. };
  9062. class DebugHud
  9063. {
  9064. public:
  9065. DebugHud();
  9066. // Methods:
  9067. void ClearAppStats();
  9068. bool GetBlockEvents() const;
  9069. XMLFile GetDefaultStyle() const;
  9070. VariantMap& GetEventDataMap() const;
  9071. Object GetEventSender() const;
  9072. Text GetMemoryText() const;
  9073. int GetMode() const;
  9074. Text GetModeText() const;
  9075. float GetProfilerInterval() const;
  9076. uint GetProfilerMaxDepth() const;
  9077. Text GetProfilerText() const;
  9078. Text GetStatsText() const;
  9079. Object GetSubsystem(StringHash) const;
  9080. StringHash GetType() const;
  9081. bool GetUseRendererStats() const;
  9082. bool HasEventHandlers() const;
  9083. bool HasSubscribedToEvent(Object, StringHash) const;
  9084. bool HasSubscribedToEvent(StringHash) const;
  9085. bool IsInstanceOf(StringHash) const;
  9086. operator Object() const;
  9087. void OnEvent(Object, StringHash, VariantMap&);
  9088. operator RefCounted() const;
  9089. int Refs() const;
  9090. bool ResetAppStats(const String&);
  9091. void SendEvent(StringHash);
  9092. void SendEvent(StringHash, VariantMap&);
  9093. void SetAppStats(const String&, const String&);
  9094. void SetAppStats(const String&, const Variant&);
  9095. void SetBlockEvents(bool);
  9096. void SetDefaultStyle(XMLFile);
  9097. void SetGlobalVar(StringHash, const Variant&);
  9098. void SetMode(int);
  9099. void SetProfilerInterval(float);
  9100. void SetProfilerMaxDepth(uint);
  9101. void SetUseRendererStats(bool);
  9102. const String& GetCategory() const;
  9103. const String& GetTypeName() const;
  9104. void Toggle(int);
  9105. void ToggleAll();
  9106. void UnsubscribeFromAllEvents();
  9107. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9108. void UnsubscribeFromEvent(Object, StringHash);
  9109. void UnsubscribeFromEvent(StringHash);
  9110. void UnsubscribeFromEvents(Object);
  9111. void Update();
  9112. const Variant& GetGlobalVar(StringHash) const;
  9113. const VariantMap& GetGlobalVars() const;
  9114. int WeakRefs() const;
  9115. operator const Object() const;
  9116. operator const RefCounted() const;
  9117. // Properties:
  9118. /* readonly */
  9119. String category;
  9120. XMLFile defaultStyle;
  9121. Array<Variant> globalVar;
  9122. /* readonly */
  9123. VariantMap globalVars;
  9124. /* readonly */
  9125. Text memoryText;
  9126. int mode;
  9127. /* readonly */
  9128. Text modeText;
  9129. float profilerInterval;
  9130. uint profilerMaxDepth;
  9131. /* readonly */
  9132. Text profilerText;
  9133. /* readonly */
  9134. int refs;
  9135. /* readonly */
  9136. Text statsText;
  9137. /* readonly */
  9138. StringHash type;
  9139. /* readonly */
  9140. String typeName;
  9141. bool useRendererStats;
  9142. /* readonly */
  9143. int weakRefs;
  9144. };
  9145. class DebugLine
  9146. {
  9147. public:
  9148. ~DebugLine();
  9149. DebugLine();
  9150. DebugLine(const Vector3&in, const Vector3&in, uint);
  9151. // Methods:
  9152. DebugLine& operator=(const DebugLine&);
  9153. // Properties:
  9154. uint color;
  9155. Vector3 end;
  9156. Vector3 start;
  9157. };
  9158. class DebugRenderer
  9159. {
  9160. public:
  9161. DebugRenderer();
  9162. // Methods:
  9163. void AddBoundingBox(const BoundingBox&, const Color&, bool = true, bool = false);
  9164. void AddBoundingBox(const BoundingBox&, const Matrix3x4&, const Color&, bool = true, bool = false);
  9165. void AddCircle(const Vector3&, const Vector3&, float, const Color&, int = 64, bool = true);
  9166. void AddCross(const Vector3&, float, const Color&, bool = true);
  9167. void AddCylinder(const Vector3&, float, float, const Color&, bool = true);
  9168. void AddFrustum(const Frustum&, const Color&, bool = true);
  9169. void AddLine(const Vector3&, const Vector3&, const Color&, bool = true);
  9170. void AddLine(const Vector3&, const Vector3&, uint, bool = true);
  9171. void AddNode(Node, float = 1.0f, bool = true);
  9172. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  9173. void AddPolygon(const Vector3&, const Vector3&, const Vector3&, const Vector3&, uint, bool = true);
  9174. void AddPolyhedron(const Polyhedron&, const Color&, bool = true);
  9175. void AddQuad(const Vector3&, float, float, const Color&, bool = true);
  9176. void AddSkeleton(const Skeleton&, const Color&, bool = true);
  9177. void AddSphere(const Sphere&, const Color&, bool = true);
  9178. void AddSphereSector(const Sphere&, const Quaternion&, float, bool, const Color&, bool = true);
  9179. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, const Color&, bool = true);
  9180. void AddTriangle(const Vector3&, const Vector3&, const Vector3&, uint, bool = true);
  9181. void AllocateNetworkState();
  9182. operator Animatable() const;
  9183. void ApplyAttributes();
  9184. void CleanupConnection(Connection);
  9185. operator Component() const;
  9186. void DrawDebugGeometry(DebugRenderer, bool);
  9187. const Frustum& GetFrustum() const;
  9188. bool GetAnimationEnabled() const;
  9189. Variant GetAttribute(const String&) const;
  9190. Variant GetAttribute(uint) const;
  9191. ValueAnimation GetAttributeAnimation(const String&) const;
  9192. float GetAttributeAnimationSpeed(const String&) const;
  9193. float GetAttributeAnimationTime(const String&) const;
  9194. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9195. Variant GetAttributeDefault(const String&) const;
  9196. Variant GetAttributeDefault(uint) const;
  9197. bool GetBlockEvents() const;
  9198. Component GetComponent(StringHash) const;
  9199. VariantMap& GetEventDataMap() const;
  9200. Object GetEventSender() const;
  9201. uint GetID() const;
  9202. bool GetInterceptNetworkUpdate(const String&) const;
  9203. bool GetLineAntiAlias() const;
  9204. Node GetNode() const;
  9205. uint GetNumAttributes() const;
  9206. uint GetNumNetworkAttributes() const;
  9207. ObjectAnimation GetObjectAnimation() const;
  9208. ResourceRef GetObjectAnimationAttr() const;
  9209. Scene GetScene() const;
  9210. Object GetSubsystem(StringHash) const;
  9211. StringHash GetType() const;
  9212. bool HasContent() const;
  9213. bool HasEventHandlers() const;
  9214. bool HasSubscribedToEvent(Object, StringHash) const;
  9215. bool HasSubscribedToEvent(StringHash) const;
  9216. bool IsEnabled() const;
  9217. bool IsEnabledEffective() const;
  9218. bool IsInside(const BoundingBox&) const;
  9219. bool IsInstanceOf(StringHash) const;
  9220. bool IsReplicated() const;
  9221. bool IsTemporary() const;
  9222. bool Load(Deserializer&);
  9223. bool LoadJSON(const JSONValue&);
  9224. bool LoadXML(const XMLElement&);
  9225. void MarkNetworkUpdate();
  9226. const Matrix3x4& GetView() const;
  9227. const Matrix4& GetProjection() const;
  9228. operator Object() const;
  9229. void OnEvent(Object, StringHash, VariantMap&);
  9230. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9231. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9232. void OnSetEnabled();
  9233. void PrepareNetworkUpdate();
  9234. bool ReadDeltaUpdate(Deserializer&);
  9235. bool ReadLatestDataUpdate(Deserializer&);
  9236. operator RefCounted() const;
  9237. int Refs() const;
  9238. void Remove();
  9239. void RemoveAttributeAnimation(const String&);
  9240. void RemoveInstanceDefault();
  9241. void RemoveObjectAnimation();
  9242. void Render();
  9243. void ResetToDefault();
  9244. bool Save(Serializer&) const;
  9245. bool SaveDefaultAttributes() const;
  9246. bool SaveJSON(JSONValue&) const;
  9247. bool SaveXML(XMLElement&) const;
  9248. void SendEvent(StringHash);
  9249. void SendEvent(StringHash, VariantMap&);
  9250. operator Serializable() const;
  9251. void SetAnimationEnabled(bool);
  9252. void SetAnimationTime(float);
  9253. bool SetAttribute(const String&, const Variant&);
  9254. bool SetAttribute(uint, const Variant&);
  9255. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9256. void SetAttributeAnimationSpeed(const String&, float);
  9257. void SetAttributeAnimationTime(const String&, float);
  9258. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9259. void SetBlockEvents(bool);
  9260. void SetEnabled(bool);
  9261. void SetGlobalVar(StringHash, const Variant&);
  9262. void SetInstanceDefault(bool);
  9263. void SetInterceptNetworkUpdate(const String&, bool);
  9264. void SetLineAntiAlias(bool);
  9265. void SetObjectAnimation(ObjectAnimation);
  9266. void SetObjectAnimationAttr(const ResourceRef&);
  9267. void SetTemporary(bool);
  9268. void SetView(Camera);
  9269. const String& GetCategory() const;
  9270. const String& GetTypeName() const;
  9271. void UnsubscribeFromAllEvents();
  9272. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9273. void UnsubscribeFromEvent(Object, StringHash);
  9274. void UnsubscribeFromEvent(StringHash);
  9275. void UnsubscribeFromEvents(Object);
  9276. const Variant& GetGlobalVar(StringHash) const;
  9277. const VariantMap& GetGlobalVars() const;
  9278. int WeakRefs() const;
  9279. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  9280. void WriteInitialDeltaUpdate(Serializer&, uint8);
  9281. void WriteLatestDataUpdate(Serializer&, uint8);
  9282. operator const Animatable() const;
  9283. operator const Component() const;
  9284. operator const Object() const;
  9285. operator const RefCounted() const;
  9286. operator const Serializable() const;
  9287. // Properties:
  9288. bool animationEnabled;
  9289. /* readonly */
  9290. Array<Variant> attributeDefaults;
  9291. /* readonly */
  9292. Array<AttributeInfo> attributeInfos;
  9293. Array<Variant> attributes;
  9294. /* readonly */
  9295. String category;
  9296. bool enabled;
  9297. /* readonly */
  9298. bool enabledEffective;
  9299. Array<Variant> globalVar;
  9300. /* readonly */
  9301. VariantMap globalVars;
  9302. /* readonly */
  9303. uint id;
  9304. bool lineAntiAlias;
  9305. /* readonly */
  9306. Node node;
  9307. /* readonly */
  9308. uint numAttributes;
  9309. ObjectAnimation objectAnimation;
  9310. /* readonly */
  9311. int refs;
  9312. /* readonly */
  9313. bool replicated;
  9314. bool temporary;
  9315. /* readonly */
  9316. StringHash type;
  9317. /* readonly */
  9318. String typeName;
  9319. /* readonly */
  9320. int weakRefs;
  9321. };
  9322. class DebugTriangle
  9323. {
  9324. public:
  9325. ~DebugTriangle();
  9326. DebugTriangle();
  9327. DebugTriangle(const Vector3&in, const Vector3&in, const Vector3&in, uint);
  9328. // Methods:
  9329. DebugTriangle& operator=(const DebugTriangle&);
  9330. // Properties:
  9331. uint color;
  9332. Vector3 v1;
  9333. Vector3 v2;
  9334. Vector3 v3;
  9335. };
  9336. class Decal
  9337. {
  9338. public:
  9339. ~Decal();
  9340. Decal();
  9341. // Methods:
  9342. Decal& operator=(const Decal&);
  9343. void AddVertex(const DecalVertex&);
  9344. void CalculateBoundingBox();
  9345. // Properties:
  9346. BoundingBox boundingBox;
  9347. float timeToLive;
  9348. float timer;
  9349. };
  9350. class DecalSet
  9351. {
  9352. public:
  9353. DecalSet();
  9354. // Methods:
  9355. bool AddDecal(Drawable, const Vector3&, const Quaternion&, float, float, float, const Vector2&, const Vector2&, float = 0.0f, float = 0.1f, uint = M_MAX_UNSIGNED);
  9356. void AddLight(Light);
  9357. void AddVertexLight(Light);
  9358. void AllocateNetworkState();
  9359. operator Animatable() const;
  9360. void ApplyAttributes();
  9361. const BoundingBox& GetBoundingBox() const;
  9362. const BoundingBox& GetWorldBoundingBox();
  9363. void CleanupConnection(Connection);
  9364. operator Component() const;
  9365. void DrawDebugGeometry(DebugRenderer, bool);
  9366. bool DrawOcclusion(OcclusionBuffer);
  9367. operator Drawable() const;
  9368. bool GetAnimationEnabled() const;
  9369. Variant GetAttribute(const String&) const;
  9370. Variant GetAttribute(uint) const;
  9371. ValueAnimation GetAttributeAnimation(const String&) const;
  9372. float GetAttributeAnimationSpeed(const String&) const;
  9373. float GetAttributeAnimationTime(const String&) const;
  9374. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9375. Variant GetAttributeDefault(const String&) const;
  9376. Variant GetAttributeDefault(uint) const;
  9377. Array<SourceBatch> GetBatches() const;
  9378. bool GetBlockEvents() const;
  9379. bool GetCastShadows() const;
  9380. Component GetComponent(StringHash) const;
  9381. Array<uint8> GetDecalsAttr() const;
  9382. float GetDistance() const;
  9383. float GetDrawDistance() const;
  9384. uint8 GetDrawableFlags() const;
  9385. VariantMap& GetEventDataMap() const;
  9386. Object GetEventSender() const;
  9387. Light GetFirstLight() const;
  9388. uint GetID() const;
  9389. bool GetInterceptNetworkUpdate(const String&) const;
  9390. uint GetLightMask() const;
  9391. Array<Light> GetLights() const;
  9392. float GetLodBias() const;
  9393. float GetLodDistance() const;
  9394. Geometry GetLodGeometry(uint, uint);
  9395. Material GetMaterial() const;
  9396. ResourceRef GetMaterialAttr() const;
  9397. uint GetMaxIndices() const;
  9398. uint GetMaxLights() const;
  9399. uint GetMaxVertices() const;
  9400. float GetMaxZ() const;
  9401. float GetMinZ() const;
  9402. Node GetNode() const;
  9403. uint GetNumAttributes() const;
  9404. uint GetNumDecals() const;
  9405. uint GetNumIndices() const;
  9406. uint GetNumNetworkAttributes() const;
  9407. uint GetNumOccluderTriangles();
  9408. uint GetNumVertices() const;
  9409. ObjectAnimation GetObjectAnimation() const;
  9410. ResourceRef GetObjectAnimationAttr() const;
  9411. bool GetOptimizeBufferSize() const;
  9412. Scene GetScene() const;
  9413. float GetShadowDistance() const;
  9414. uint GetShadowMask() const;
  9415. float GetSortValue() const;
  9416. Object GetSubsystem(StringHash) const;
  9417. StringHash GetType() const;
  9418. UpdateGeometryType GetUpdateGeometryType();
  9419. Array<Light> GetVertexLights() const;
  9420. uint GetViewMask() const;
  9421. Zone GetZone() const;
  9422. uint GetZoneMask() const;
  9423. bool HasBasePass(uint) const;
  9424. bool HasEventHandlers() const;
  9425. bool HasSubscribedToEvent(Object, StringHash) const;
  9426. bool HasSubscribedToEvent(StringHash) const;
  9427. bool IsEnabled() const;
  9428. bool IsEnabledEffective() const;
  9429. bool IsInView() const;
  9430. bool IsInView(Camera) const;
  9431. bool IsInView(const FrameInfo&, bool = false) const;
  9432. bool IsInstanceOf(StringHash) const;
  9433. bool IsOccludee() const;
  9434. bool IsOccluder() const;
  9435. bool IsReplicated() const;
  9436. bool IsTemporary() const;
  9437. bool IsZoneDirty() const;
  9438. void LimitLights();
  9439. void LimitVertexLights(bool);
  9440. bool Load(Deserializer&);
  9441. bool LoadJSON(const JSONValue&);
  9442. bool LoadXML(const XMLElement&);
  9443. void MarkForUpdate();
  9444. void MarkInView(const FrameInfo&);
  9445. void MarkInView(int);
  9446. void MarkNetworkUpdate();
  9447. operator Object() const;
  9448. void OnEvent(Object, StringHash, VariantMap&);
  9449. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9450. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9451. void OnSetEnabled();
  9452. void PrepareNetworkUpdate();
  9453. bool ReadDeltaUpdate(Deserializer&);
  9454. bool ReadLatestDataUpdate(Deserializer&);
  9455. operator RefCounted() const;
  9456. int Refs() const;
  9457. void Remove();
  9458. void RemoveAllDecals();
  9459. void RemoveAttributeAnimation(const String&);
  9460. void RemoveDecals(uint);
  9461. void RemoveInstanceDefault();
  9462. void RemoveObjectAnimation();
  9463. void ResetToDefault();
  9464. bool Save(Serializer&) const;
  9465. bool SaveDefaultAttributes() const;
  9466. bool SaveJSON(JSONValue&) const;
  9467. bool SaveXML(XMLElement&) const;
  9468. void SendEvent(StringHash);
  9469. void SendEvent(StringHash, VariantMap&);
  9470. operator Serializable() const;
  9471. void SetAnimationEnabled(bool);
  9472. void SetAnimationTime(float);
  9473. bool SetAttribute(const String&, const Variant&);
  9474. bool SetAttribute(uint, const Variant&);
  9475. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9476. void SetAttributeAnimationSpeed(const String&, float);
  9477. void SetAttributeAnimationTime(const String&, float);
  9478. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9479. void SetBasePass(uint);
  9480. void SetBlockEvents(bool);
  9481. void SetCastShadows(bool);
  9482. void SetDecalsAttr(Array<uint8>);
  9483. void SetDrawDistance(float);
  9484. void SetEnabled(bool);
  9485. void SetGlobalVar(StringHash, const Variant&);
  9486. void SetInstanceDefault(bool);
  9487. void SetInterceptNetworkUpdate(const String&, bool);
  9488. void SetLightMask(uint);
  9489. void SetLodBias(float);
  9490. void SetMaterial(Material);
  9491. void SetMaterialAttr(const ResourceRef&);
  9492. void SetMaxIndices(uint);
  9493. void SetMaxLights(uint);
  9494. void SetMaxVertices(uint);
  9495. void SetMinMaxZ(float, float);
  9496. void SetObjectAnimation(ObjectAnimation);
  9497. void SetObjectAnimationAttr(const ResourceRef&);
  9498. void SetOccludee(bool);
  9499. void SetOccluder(bool);
  9500. void SetOptimizeBufferSize(bool);
  9501. void SetShadowDistance(float);
  9502. void SetShadowMask(uint);
  9503. void SetSortValue(float);
  9504. void SetTemporary(bool);
  9505. void SetViewMask(uint);
  9506. void SetZone(Zone, bool = false);
  9507. void SetZoneMask(uint);
  9508. const String& GetCategory() const;
  9509. const String& GetTypeName() const;
  9510. void UnsubscribeFromAllEvents();
  9511. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9512. void UnsubscribeFromEvent(Object, StringHash);
  9513. void UnsubscribeFromEvent(StringHash);
  9514. void UnsubscribeFromEvents(Object);
  9515. void Update(const FrameInfo&);
  9516. void UpdateBatches(const FrameInfo&);
  9517. void UpdateGeometry(const FrameInfo&);
  9518. const Variant& GetGlobalVar(StringHash) const;
  9519. const VariantMap& GetGlobalVars() const;
  9520. int WeakRefs() const;
  9521. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  9522. void WriteInitialDeltaUpdate(Serializer&, uint8);
  9523. void WriteLatestDataUpdate(Serializer&, uint8);
  9524. operator const Animatable() const;
  9525. operator const Component() const;
  9526. operator const Drawable() const;
  9527. operator const Object() const;
  9528. operator const RefCounted() const;
  9529. operator const Serializable() const;
  9530. // Properties:
  9531. bool animationEnabled;
  9532. /* readonly */
  9533. Array<Variant> attributeDefaults;
  9534. /* readonly */
  9535. Array<AttributeInfo> attributeInfos;
  9536. Array<Variant> attributes;
  9537. /* readonly */
  9538. BoundingBox boundingBox;
  9539. bool castShadows;
  9540. /* readonly */
  9541. String category;
  9542. float drawDistance;
  9543. bool enabled;
  9544. /* readonly */
  9545. bool enabledEffective;
  9546. Array<Variant> globalVar;
  9547. /* readonly */
  9548. VariantMap globalVars;
  9549. /* readonly */
  9550. uint id;
  9551. /* readonly */
  9552. bool inView;
  9553. uint lightMask;
  9554. float lodBias;
  9555. Material material;
  9556. uint maxIndices;
  9557. uint maxLights;
  9558. uint maxVertices;
  9559. /* readonly */
  9560. Node node;
  9561. /* readonly */
  9562. uint numAttributes;
  9563. /* readonly */
  9564. uint numDecals;
  9565. /* readonly */
  9566. uint numIndices;
  9567. /* readonly */
  9568. uint numVertices;
  9569. ObjectAnimation objectAnimation;
  9570. bool occludee;
  9571. bool occluder;
  9572. bool optimizeBufferSize;
  9573. /* readonly */
  9574. int refs;
  9575. /* readonly */
  9576. bool replicated;
  9577. float shadowDistance;
  9578. uint shadowMask;
  9579. bool temporary;
  9580. /* readonly */
  9581. StringHash type;
  9582. /* readonly */
  9583. String typeName;
  9584. uint viewMask;
  9585. /* readonly */
  9586. int weakRefs;
  9587. /* readonly */
  9588. BoundingBox worldBoundingBox;
  9589. /* readonly */
  9590. Zone zone;
  9591. uint zoneMask;
  9592. };
  9593. class DecalVertex
  9594. {
  9595. public:
  9596. ~DecalVertex();
  9597. DecalVertex();
  9598. DecalVertex(const Vector3&in, const Vector3&in);
  9599. // Methods:
  9600. DecalVertex& operator=(const DecalVertex&);
  9601. // Properties:
  9602. Vector3 normal;
  9603. Vector3 position;
  9604. Vector4 tangent;
  9605. Vector2 texCoord;
  9606. };
  9607. class DelayedWorldTransform
  9608. {
  9609. public:
  9610. ~DelayedWorldTransform();
  9611. DelayedWorldTransform();
  9612. // Methods:
  9613. DelayedWorldTransform& operator=(const DelayedWorldTransform&);
  9614. // Properties:
  9615. Vector3 worldPosition;
  9616. Quaternion worldRotation;
  9617. };
  9618. class DelayedWorldTransform2D
  9619. {
  9620. public:
  9621. ~DelayedWorldTransform2D();
  9622. DelayedWorldTransform2D();
  9623. // Methods:
  9624. DelayedWorldTransform2D& operator=(const DelayedWorldTransform2D&);
  9625. // Properties:
  9626. Vector3 worldPosition;
  9627. Quaternion worldRotation;
  9628. };
  9629. class DepthValue
  9630. {
  9631. public:
  9632. // Methods:
  9633. DepthValue& operator=(const DepthValue&);
  9634. // Properties:
  9635. int max;
  9636. int min;
  9637. };
  9638. class Deserializer
  9639. {
  9640. public:
  9641. // Methods:
  9642. Deserializer& operator=(const Deserializer&);
  9643. operator File() const;
  9644. uint GetChecksum();
  9645. int64 GetPosition() const;
  9646. int64 GetSize() const;
  9647. operator HttpRequest() const;
  9648. bool IsEof() const;
  9649. operator NamedPipe() const;
  9650. Array<uint8> Read(uint);
  9651. bool ReadBool();
  9652. BoundingBox ReadBoundingBox();
  9653. Array<uint8> ReadBuffer();
  9654. int8 ReadByte();
  9655. Color ReadColor();
  9656. double ReadDouble();
  9657. String ReadFileID();
  9658. float ReadFloat();
  9659. int ReadInt();
  9660. int64 ReadInt64();
  9661. IntRect ReadIntRect();
  9662. IntVector2 ReadIntVector2();
  9663. IntVector3 ReadIntVector3();
  9664. String ReadLine();
  9665. Matrix3 ReadMatrix3();
  9666. Matrix3x4 ReadMatrix3x4();
  9667. Matrix4 ReadMatrix4();
  9668. uint ReadNetID();
  9669. Quaternion ReadPackedQuaternion();
  9670. Vector3 ReadPackedVector3(float);
  9671. Quaternion ReadQuaternion();
  9672. Rect ReadRect();
  9673. ResourceRef ReadResourceRef();
  9674. ResourceRefList ReadResourceRefList();
  9675. int16 ReadShort();
  9676. String ReadString();
  9677. StringHash ReadStringHash();
  9678. Array<String> ReadStringVector();
  9679. uint8 ReadUByte();
  9680. uint ReadUInt();
  9681. uint64 ReadUInt64();
  9682. uint16 ReadUShort();
  9683. uint ReadVLE();
  9684. Variant ReadVariant();
  9685. Variant ReadVariant(VariantType);
  9686. VariantMap ReadVariantMap();
  9687. Vector2 ReadVector2();
  9688. Vector3 ReadVector3();
  9689. Vector4 ReadVector4();
  9690. VectorBuffer ReadVectorBuffer(uint);
  9691. int64 Seek(int64);
  9692. int64 SeekRelative(int64);
  9693. const String& GetName() const;
  9694. int64 Tell() const;
  9695. operator const File() const;
  9696. operator const HttpRequest() const;
  9697. operator const NamedPipe() const;
  9698. // Properties:
  9699. /* readonly */
  9700. uint checksum;
  9701. /* readonly */
  9702. bool eof;
  9703. /* readonly */
  9704. String name;
  9705. /* readonly */
  9706. int64 position;
  9707. /* readonly */
  9708. int64 size;
  9709. };
  9710. class Dictionary
  9711. {
  9712. public:
  9713. Dictionary();
  9714. // Methods:
  9715. Dictionary& operator=(const Dictionary&);
  9716. DictionaryValue& operator[](const String&);
  9717. void Clear();
  9718. const DictionaryValue& operator[](const String&) const;
  9719. void Erase(const String&);
  9720. bool Exists(const String&) const;
  9721. bool Get(const String&, void*) const;
  9722. bool Get(const String&, double&) const;
  9723. bool Get(const String&, int64&) const;
  9724. void Set(const String&, const void*);
  9725. void Set(const String&, const double&);
  9726. void Set(const String&, const int64&);
  9727. // Properties:
  9728. /* readonly */
  9729. bool empty;
  9730. /* readonly */
  9731. Array<String> keys;
  9732. /* readonly */
  9733. uint length;
  9734. };
  9735. class DictionaryValue
  9736. {
  9737. public:
  9738. ~DictionaryValue();
  9739. DictionaryValue();
  9740. // Methods:
  9741. DictionaryValue& operator=(const void*);
  9742. DictionaryValue& operator=(double);
  9743. DictionaryValue& operator=(int64);
  9744. };
  9745. class DirtyBits
  9746. {
  9747. public:
  9748. ~DirtyBits();
  9749. DirtyBits();
  9750. DirtyBits(const DirtyBits&in);
  9751. // Methods:
  9752. DirtyBits& operator=(const DirtyBits&);
  9753. void Clear(uint);
  9754. void ClearAll();
  9755. uint Count() const;
  9756. bool IsSet(uint) const;
  9757. void Set(uint);
  9758. // Properties:
  9759. uint8 count;
  9760. };
  9761. class Drawable
  9762. {
  9763. public:
  9764. // Methods:
  9765. void AddLight(Light);
  9766. void AddVertexLight(Light);
  9767. void AllocateNetworkState();
  9768. operator Animatable() const;
  9769. operator AnimatedModel() const;
  9770. operator AnimatedSprite2D() const;
  9771. void ApplyAttributes();
  9772. operator BillboardSet() const;
  9773. const BoundingBox& GetBoundingBox() const;
  9774. const BoundingBox& GetWorldBoundingBox();
  9775. void CleanupConnection(Connection);
  9776. operator Component() const;
  9777. operator CustomGeometry() const;
  9778. operator DecalSet() const;
  9779. void DrawDebugGeometry(DebugRenderer, bool);
  9780. bool DrawOcclusion(OcclusionBuffer);
  9781. operator Drawable2D() const;
  9782. bool GetAnimationEnabled() const;
  9783. Variant GetAttribute(const String&) const;
  9784. Variant GetAttribute(uint) const;
  9785. ValueAnimation GetAttributeAnimation(const String&) const;
  9786. float GetAttributeAnimationSpeed(const String&) const;
  9787. float GetAttributeAnimationTime(const String&) const;
  9788. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  9789. Variant GetAttributeDefault(const String&) const;
  9790. Variant GetAttributeDefault(uint) const;
  9791. Array<SourceBatch> GetBatches() const;
  9792. bool GetBlockEvents() const;
  9793. bool GetCastShadows() const;
  9794. Component GetComponent(StringHash) const;
  9795. float GetDistance() const;
  9796. float GetDrawDistance() const;
  9797. uint8 GetDrawableFlags() const;
  9798. VariantMap& GetEventDataMap() const;
  9799. Object GetEventSender() const;
  9800. Light GetFirstLight() const;
  9801. uint GetID() const;
  9802. bool GetInterceptNetworkUpdate(const String&) const;
  9803. uint GetLightMask() const;
  9804. Array<Light> GetLights() const;
  9805. float GetLodBias() const;
  9806. float GetLodDistance() const;
  9807. Geometry GetLodGeometry(uint, uint);
  9808. uint GetMaxLights() const;
  9809. float GetMaxZ() const;
  9810. float GetMinZ() const;
  9811. Node GetNode() const;
  9812. uint GetNumAttributes() const;
  9813. uint GetNumNetworkAttributes() const;
  9814. uint GetNumOccluderTriangles();
  9815. ObjectAnimation GetObjectAnimation() const;
  9816. ResourceRef GetObjectAnimationAttr() const;
  9817. Scene GetScene() const;
  9818. float GetShadowDistance() const;
  9819. uint GetShadowMask() const;
  9820. float GetSortValue() const;
  9821. Object GetSubsystem(StringHash) const;
  9822. StringHash GetType() const;
  9823. UpdateGeometryType GetUpdateGeometryType();
  9824. Array<Light> GetVertexLights() const;
  9825. uint GetViewMask() const;
  9826. Zone GetZone() const;
  9827. uint GetZoneMask() const;
  9828. bool HasBasePass(uint) const;
  9829. bool HasEventHandlers() const;
  9830. bool HasSubscribedToEvent(Object, StringHash) const;
  9831. bool HasSubscribedToEvent(StringHash) const;
  9832. bool IsEnabled() const;
  9833. bool IsEnabledEffective() const;
  9834. bool IsInView() const;
  9835. bool IsInView(Camera) const;
  9836. bool IsInView(const FrameInfo&, bool = false) const;
  9837. bool IsInstanceOf(StringHash) const;
  9838. bool IsOccludee() const;
  9839. bool IsOccluder() const;
  9840. bool IsReplicated() const;
  9841. bool IsTemporary() const;
  9842. bool IsZoneDirty() const;
  9843. operator Light() const;
  9844. void LimitLights();
  9845. void LimitVertexLights(bool);
  9846. bool Load(Deserializer&);
  9847. bool LoadJSON(const JSONValue&);
  9848. bool LoadXML(const XMLElement&);
  9849. void MarkForUpdate();
  9850. void MarkInView(const FrameInfo&);
  9851. void MarkInView(int);
  9852. void MarkNetworkUpdate();
  9853. operator Object() const;
  9854. void OnEvent(Object, StringHash, VariantMap&);
  9855. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  9856. void OnSetAttribute(const AttributeInfo&, const Variant&);
  9857. void OnSetEnabled();
  9858. operator ParticleEmitter2D() const;
  9859. operator ParticleEmitter() const;
  9860. void PrepareNetworkUpdate();
  9861. bool ReadDeltaUpdate(Deserializer&);
  9862. bool ReadLatestDataUpdate(Deserializer&);
  9863. operator RefCounted() const;
  9864. int Refs() const;
  9865. void Remove();
  9866. void RemoveAttributeAnimation(const String&);
  9867. void RemoveInstanceDefault();
  9868. void RemoveObjectAnimation();
  9869. operator Renderer2D() const;
  9870. void ResetToDefault();
  9871. operator RibbonTrail() const;
  9872. bool Save(Serializer&) const;
  9873. bool SaveDefaultAttributes() const;
  9874. bool SaveJSON(JSONValue&) const;
  9875. bool SaveXML(XMLElement&) const;
  9876. void SendEvent(StringHash);
  9877. void SendEvent(StringHash, VariantMap&);
  9878. operator Serializable() const;
  9879. void SetAnimationEnabled(bool);
  9880. void SetAnimationTime(float);
  9881. bool SetAttribute(const String&, const Variant&);
  9882. bool SetAttribute(uint, const Variant&);
  9883. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  9884. void SetAttributeAnimationSpeed(const String&, float);
  9885. void SetAttributeAnimationTime(const String&, float);
  9886. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  9887. void SetBasePass(uint);
  9888. void SetBlockEvents(bool);
  9889. void SetCastShadows(bool);
  9890. void SetDrawDistance(float);
  9891. void SetEnabled(bool);
  9892. void SetGlobalVar(StringHash, const Variant&);
  9893. void SetInstanceDefault(bool);
  9894. void SetInterceptNetworkUpdate(const String&, bool);
  9895. void SetLightMask(uint);
  9896. void SetLodBias(float);
  9897. void SetMaxLights(uint);
  9898. void SetMinMaxZ(float, float);
  9899. void SetObjectAnimation(ObjectAnimation);
  9900. void SetObjectAnimationAttr(const ResourceRef&);
  9901. void SetOccludee(bool);
  9902. void SetOccluder(bool);
  9903. void SetShadowDistance(float);
  9904. void SetShadowMask(uint);
  9905. void SetSortValue(float);
  9906. void SetTemporary(bool);
  9907. void SetViewMask(uint);
  9908. void SetZone(Zone, bool = false);
  9909. void SetZoneMask(uint);
  9910. operator Skybox() const;
  9911. operator StaticModel() const;
  9912. operator StaticModelGroup() const;
  9913. operator StaticSprite2D() const;
  9914. operator StretchableSprite2D() const;
  9915. const String& GetCategory() const;
  9916. const String& GetTypeName() const;
  9917. operator TerrainPatch() const;
  9918. operator Text3D() const;
  9919. void UnsubscribeFromAllEvents();
  9920. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  9921. void UnsubscribeFromEvent(Object, StringHash);
  9922. void UnsubscribeFromEvent(StringHash);
  9923. void UnsubscribeFromEvents(Object);
  9924. void Update(const FrameInfo&);
  9925. void UpdateBatches(const FrameInfo&);
  9926. void UpdateGeometry(const FrameInfo&);
  9927. const Variant& GetGlobalVar(StringHash) const;
  9928. const VariantMap& GetGlobalVars() const;
  9929. int WeakRefs() const;
  9930. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  9931. void WriteInitialDeltaUpdate(Serializer&, uint8);
  9932. void WriteLatestDataUpdate(Serializer&, uint8);
  9933. operator Zone() const;
  9934. operator const Animatable() const;
  9935. operator const AnimatedModel() const;
  9936. operator const AnimatedSprite2D() const;
  9937. operator const BillboardSet() const;
  9938. operator const Component() const;
  9939. operator const CustomGeometry() const;
  9940. operator const DecalSet() const;
  9941. operator const Drawable2D() const;
  9942. operator const Light() const;
  9943. operator const Object() const;
  9944. operator const ParticleEmitter2D() const;
  9945. operator const ParticleEmitter() const;
  9946. operator const RefCounted() const;
  9947. operator const Renderer2D() const;
  9948. operator const RibbonTrail() const;
  9949. operator const Serializable() const;
  9950. operator const Skybox() const;
  9951. operator const StaticModel() const;
  9952. operator const StaticModelGroup() const;
  9953. operator const StaticSprite2D() const;
  9954. operator const StretchableSprite2D() const;
  9955. operator const TerrainPatch() const;
  9956. operator const Text3D() const;
  9957. operator const Zone() const;
  9958. // Properties:
  9959. bool animationEnabled;
  9960. /* readonly */
  9961. Array<Variant> attributeDefaults;
  9962. /* readonly */
  9963. Array<AttributeInfo> attributeInfos;
  9964. Array<Variant> attributes;
  9965. /* readonly */
  9966. BoundingBox boundingBox;
  9967. bool castShadows;
  9968. /* readonly */
  9969. String category;
  9970. float drawDistance;
  9971. bool enabled;
  9972. /* readonly */
  9973. bool enabledEffective;
  9974. Array<Variant> globalVar;
  9975. /* readonly */
  9976. VariantMap globalVars;
  9977. /* readonly */
  9978. uint id;
  9979. /* readonly */
  9980. bool inView;
  9981. uint lightMask;
  9982. float lodBias;
  9983. uint maxLights;
  9984. /* readonly */
  9985. Node node;
  9986. /* readonly */
  9987. uint numAttributes;
  9988. ObjectAnimation objectAnimation;
  9989. bool occludee;
  9990. bool occluder;
  9991. /* readonly */
  9992. int refs;
  9993. /* readonly */
  9994. bool replicated;
  9995. float shadowDistance;
  9996. uint shadowMask;
  9997. bool temporary;
  9998. /* readonly */
  9999. StringHash type;
  10000. /* readonly */
  10001. String typeName;
  10002. uint viewMask;
  10003. /* readonly */
  10004. int weakRefs;
  10005. /* readonly */
  10006. BoundingBox worldBoundingBox;
  10007. /* readonly */
  10008. Zone zone;
  10009. uint zoneMask;
  10010. };
  10011. class Drawable2D
  10012. {
  10013. public:
  10014. // Methods:
  10015. void AddLight(Light);
  10016. void AddVertexLight(Light);
  10017. void AllocateNetworkState();
  10018. operator Animatable() const;
  10019. operator AnimatedSprite2D() const;
  10020. void ApplyAttributes();
  10021. const BoundingBox& GetBoundingBox() const;
  10022. const BoundingBox& GetWorldBoundingBox();
  10023. void CleanupConnection(Connection);
  10024. operator Component() const;
  10025. void DrawDebugGeometry(DebugRenderer, bool);
  10026. bool DrawOcclusion(OcclusionBuffer);
  10027. operator Drawable() const;
  10028. bool GetAnimationEnabled() const;
  10029. Variant GetAttribute(const String&) const;
  10030. Variant GetAttribute(uint) const;
  10031. ValueAnimation GetAttributeAnimation(const String&) const;
  10032. float GetAttributeAnimationSpeed(const String&) const;
  10033. float GetAttributeAnimationTime(const String&) const;
  10034. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10035. Variant GetAttributeDefault(const String&) const;
  10036. Variant GetAttributeDefault(uint) const;
  10037. Array<SourceBatch> GetBatches() const;
  10038. bool GetBlockEvents() const;
  10039. bool GetCastShadows() const;
  10040. Component GetComponent(StringHash) const;
  10041. float GetDistance() const;
  10042. float GetDrawDistance() const;
  10043. uint8 GetDrawableFlags() const;
  10044. VariantMap& GetEventDataMap() const;
  10045. Object GetEventSender() const;
  10046. Light GetFirstLight() const;
  10047. uint GetID() const;
  10048. bool GetInterceptNetworkUpdate(const String&) const;
  10049. int GetLayer() const;
  10050. uint GetLightMask() const;
  10051. Array<Light> GetLights() const;
  10052. float GetLodBias() const;
  10053. float GetLodDistance() const;
  10054. Geometry GetLodGeometry(uint, uint);
  10055. uint GetMaxLights() const;
  10056. float GetMaxZ() const;
  10057. float GetMinZ() const;
  10058. Node GetNode() const;
  10059. uint GetNumAttributes() const;
  10060. uint GetNumNetworkAttributes() const;
  10061. uint GetNumOccluderTriangles();
  10062. ObjectAnimation GetObjectAnimation() const;
  10063. ResourceRef GetObjectAnimationAttr() const;
  10064. int GetOrderInLayer() const;
  10065. Scene GetScene() const;
  10066. float GetShadowDistance() const;
  10067. uint GetShadowMask() const;
  10068. float GetSortValue() const;
  10069. Array<SourceBatch2D> GetSourceBatches();
  10070. Object GetSubsystem(StringHash) const;
  10071. StringHash GetType() const;
  10072. UpdateGeometryType GetUpdateGeometryType();
  10073. Array<Light> GetVertexLights() const;
  10074. uint GetViewMask() const;
  10075. Zone GetZone() const;
  10076. uint GetZoneMask() const;
  10077. bool HasBasePass(uint) const;
  10078. bool HasEventHandlers() const;
  10079. bool HasSubscribedToEvent(Object, StringHash) const;
  10080. bool HasSubscribedToEvent(StringHash) const;
  10081. bool IsEnabled() const;
  10082. bool IsEnabledEffective() const;
  10083. bool IsInView() const;
  10084. bool IsInView(Camera) const;
  10085. bool IsInView(const FrameInfo&, bool = false) const;
  10086. bool IsInstanceOf(StringHash) const;
  10087. bool IsOccludee() const;
  10088. bool IsOccluder() const;
  10089. bool IsReplicated() const;
  10090. bool IsTemporary() const;
  10091. bool IsZoneDirty() const;
  10092. void LimitLights();
  10093. void LimitVertexLights(bool);
  10094. bool Load(Deserializer&);
  10095. bool LoadJSON(const JSONValue&);
  10096. bool LoadXML(const XMLElement&);
  10097. void MarkForUpdate();
  10098. void MarkInView(const FrameInfo&);
  10099. void MarkInView(int);
  10100. void MarkNetworkUpdate();
  10101. operator Object() const;
  10102. void OnEvent(Object, StringHash, VariantMap&);
  10103. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10104. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10105. void OnSetEnabled();
  10106. operator ParticleEmitter2D() const;
  10107. void PrepareNetworkUpdate();
  10108. bool ReadDeltaUpdate(Deserializer&);
  10109. bool ReadLatestDataUpdate(Deserializer&);
  10110. operator RefCounted() const;
  10111. int Refs() const;
  10112. void Remove();
  10113. void RemoveAttributeAnimation(const String&);
  10114. void RemoveInstanceDefault();
  10115. void RemoveObjectAnimation();
  10116. void ResetToDefault();
  10117. bool Save(Serializer&) const;
  10118. bool SaveDefaultAttributes() const;
  10119. bool SaveJSON(JSONValue&) const;
  10120. bool SaveXML(XMLElement&) const;
  10121. void SendEvent(StringHash);
  10122. void SendEvent(StringHash, VariantMap&);
  10123. operator Serializable() const;
  10124. void SetAnimationEnabled(bool);
  10125. void SetAnimationTime(float);
  10126. bool SetAttribute(const String&, const Variant&);
  10127. bool SetAttribute(uint, const Variant&);
  10128. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10129. void SetAttributeAnimationSpeed(const String&, float);
  10130. void SetAttributeAnimationTime(const String&, float);
  10131. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10132. void SetBasePass(uint);
  10133. void SetBlockEvents(bool);
  10134. void SetCastShadows(bool);
  10135. void SetDrawDistance(float);
  10136. void SetEnabled(bool);
  10137. void SetGlobalVar(StringHash, const Variant&);
  10138. void SetInstanceDefault(bool);
  10139. void SetInterceptNetworkUpdate(const String&, bool);
  10140. void SetLayer(int);
  10141. void SetLightMask(uint);
  10142. void SetLodBias(float);
  10143. void SetMaxLights(uint);
  10144. void SetMinMaxZ(float, float);
  10145. void SetObjectAnimation(ObjectAnimation);
  10146. void SetObjectAnimationAttr(const ResourceRef&);
  10147. void SetOccludee(bool);
  10148. void SetOccluder(bool);
  10149. void SetOrderInLayer(int);
  10150. void SetShadowDistance(float);
  10151. void SetShadowMask(uint);
  10152. void SetSortValue(float);
  10153. void SetTemporary(bool);
  10154. void SetViewMask(uint);
  10155. void SetZone(Zone, bool = false);
  10156. void SetZoneMask(uint);
  10157. operator StaticSprite2D() const;
  10158. operator StretchableSprite2D() const;
  10159. const String& GetCategory() const;
  10160. const String& GetTypeName() const;
  10161. void UnsubscribeFromAllEvents();
  10162. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10163. void UnsubscribeFromEvent(Object, StringHash);
  10164. void UnsubscribeFromEvent(StringHash);
  10165. void UnsubscribeFromEvents(Object);
  10166. void Update(const FrameInfo&);
  10167. void UpdateBatches(const FrameInfo&);
  10168. void UpdateGeometry(const FrameInfo&);
  10169. const Variant& GetGlobalVar(StringHash) const;
  10170. const VariantMap& GetGlobalVars() const;
  10171. int WeakRefs() const;
  10172. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10173. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10174. void WriteLatestDataUpdate(Serializer&, uint8);
  10175. operator const Animatable() const;
  10176. operator const AnimatedSprite2D() const;
  10177. operator const Component() const;
  10178. operator const Drawable() const;
  10179. operator const Object() const;
  10180. operator const ParticleEmitter2D() const;
  10181. operator const RefCounted() const;
  10182. operator const Serializable() const;
  10183. operator const StaticSprite2D() const;
  10184. operator const StretchableSprite2D() const;
  10185. // Properties:
  10186. bool animationEnabled;
  10187. /* readonly */
  10188. Array<Variant> attributeDefaults;
  10189. /* readonly */
  10190. Array<AttributeInfo> attributeInfos;
  10191. Array<Variant> attributes;
  10192. /* readonly */
  10193. BoundingBox boundingBox;
  10194. bool castShadows;
  10195. /* readonly */
  10196. String category;
  10197. float drawDistance;
  10198. bool enabled;
  10199. /* readonly */
  10200. bool enabledEffective;
  10201. Array<Variant> globalVar;
  10202. /* readonly */
  10203. VariantMap globalVars;
  10204. /* readonly */
  10205. uint id;
  10206. /* readonly */
  10207. bool inView;
  10208. int layer;
  10209. uint lightMask;
  10210. float lodBias;
  10211. uint maxLights;
  10212. /* readonly */
  10213. Node node;
  10214. /* readonly */
  10215. uint numAttributes;
  10216. ObjectAnimation objectAnimation;
  10217. bool occludee;
  10218. bool occluder;
  10219. int orderInLayer;
  10220. /* readonly */
  10221. int refs;
  10222. /* readonly */
  10223. bool replicated;
  10224. float shadowDistance;
  10225. uint shadowMask;
  10226. bool temporary;
  10227. /* readonly */
  10228. StringHash type;
  10229. /* readonly */
  10230. String typeName;
  10231. uint viewMask;
  10232. /* readonly */
  10233. int weakRefs;
  10234. /* readonly */
  10235. BoundingBox worldBoundingBox;
  10236. /* readonly */
  10237. Zone zone;
  10238. uint zoneMask;
  10239. };
  10240. class DropDownList
  10241. {
  10242. public:
  10243. DropDownList();
  10244. // Methods:
  10245. void AddChild(UIElement);
  10246. void AddItem(UIElement);
  10247. void AddTag(const String&);
  10248. void AddTags(Array<String>);
  10249. void AddTags(const String&, int8 = ';');
  10250. void AdjustScissor(IntRect&);
  10251. void AllocateNetworkState();
  10252. operator Animatable() const;
  10253. void ApplyAttributes();
  10254. operator BorderImage() const;
  10255. void BringToFront();
  10256. operator Button() const;
  10257. const Color& GetColor(Corner) const;
  10258. const Color& GetColorAttr() const;
  10259. const Color& GetDerivedColor() const;
  10260. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  10261. void DisableLayoutUpdate();
  10262. IntVector2 ElementToScreen(const IntVector2&);
  10263. void EnableLayoutUpdate();
  10264. bool FilterAttributes(XMLElement&) const;
  10265. int FindChild(UIElement) const;
  10266. int GetAcceleratorKey() const;
  10267. int GetAcceleratorQualifiers() const;
  10268. bool GetAnimationEnabled() const;
  10269. Variant GetAttribute(const String&) const;
  10270. Variant GetAttribute(uint) const;
  10271. ValueAnimation GetAttributeAnimation(const String&) const;
  10272. float GetAttributeAnimationSpeed(const String&) const;
  10273. float GetAttributeAnimationTime(const String&) const;
  10274. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10275. Variant GetAttributeDefault(const String&) const;
  10276. Variant GetAttributeDefault(uint) const;
  10277. BlendMode GetBlendMode() const;
  10278. bool GetBlockEvents() const;
  10279. bool GetBringToBack() const;
  10280. bool GetBringToFront() const;
  10281. UIElement GetChild(const String&, bool = false) const;
  10282. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  10283. UIElement GetChild(int) const;
  10284. Array<UIElement> GetChildren() const;
  10285. Array<UIElement> GetChildren(bool) const;
  10286. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  10287. bool GetClipChildren() const;
  10288. IntRect GetCombinedScreenRect();
  10289. XMLFile GetDefaultStyle(bool = true) const;
  10290. float GetDerivedOpacity() const;
  10291. uint GetDragButtonCombo() const;
  10292. int GetDragButtonCount() const;
  10293. uint GetDragDropMode() const;
  10294. IntVector2 GetEffectiveMinSize() const;
  10295. UIElement GetElementEventSender() const;
  10296. bool GetEnableAnchor() const;
  10297. VariantMap& GetEventDataMap() const;
  10298. Object GetEventSender() const;
  10299. FocusMode GetFocusMode() const;
  10300. int GetHeight() const;
  10301. HorizontalAlignment GetHorizontalAlignment() const;
  10302. int GetIndent() const;
  10303. int GetIndentSpacing() const;
  10304. int GetIndentWidth() const;
  10305. bool GetInterceptNetworkUpdate(const String&) const;
  10306. UIElement GetItem(int) const;
  10307. Array<UIElement> GetItems() const;
  10308. int GetLayoutElementMaxSize() const;
  10309. LayoutMode GetLayoutMode() const;
  10310. int GetLayoutSpacing() const;
  10311. ListView GetListView() const;
  10312. Material GetMaterial() const;
  10313. ResourceRef GetMaterialAttr() const;
  10314. int GetMaxHeight() const;
  10315. int GetMaxWidth() const;
  10316. int GetMinHeight() const;
  10317. int GetMinWidth() const;
  10318. uint GetNumAttributes() const;
  10319. int GetNumChildren(bool = false) const;
  10320. int GetNumItems() const;
  10321. uint GetNumNetworkAttributes() const;
  10322. ObjectAnimation GetObjectAnimation() const;
  10323. ResourceRef GetObjectAnimationAttr() const;
  10324. float GetOpacity() const;
  10325. UIElement GetParent() const;
  10326. UIElement GetPlaceholder() const;
  10327. UIElement GetPopup() const;
  10328. int GetPriority() const;
  10329. float GetRepeatDelay() const;
  10330. float GetRepeatRate() const;
  10331. bool GetResizePopup() const;
  10332. UIElement GetRoot() const;
  10333. UIElement GetSelectedItem() const;
  10334. int GetSelection() const;
  10335. bool GetShowPopup() const;
  10336. bool GetSortChildren() const;
  10337. Object GetSubsystem(StringHash) const;
  10338. Array<String> GetTags() const;
  10339. Texture GetTexture() const;
  10340. ResourceRef GetTextureAttr() const;
  10341. TraversalMode GetTraversalMode() const;
  10342. StringHash GetType() const;
  10343. bool GetUseDerivedOpacity() const;
  10344. VerticalAlignment GetVerticalAlignment() const;
  10345. int GetWidth() const;
  10346. bool HasColorGradient() const;
  10347. bool HasEventHandlers() const;
  10348. bool HasFocus() const;
  10349. bool HasSubscribedToEvent(Object, StringHash) const;
  10350. bool HasSubscribedToEvent(StringHash) const;
  10351. bool HasTag(const String&) const;
  10352. void InsertChild(int, UIElement);
  10353. void InsertItem(int, UIElement);
  10354. const IntRect& GetBorder() const;
  10355. const IntRect& GetClipBorder() const;
  10356. const IntRect& GetImageBorder() const;
  10357. const IntRect& GetImageRect() const;
  10358. const IntRect& GetLayoutBorder() const;
  10359. const IntVector2& GetChildOffset() const;
  10360. const IntVector2& GetDisabledOffset() const;
  10361. const IntVector2& GetHoverOffset() const;
  10362. const IntVector2& GetMaxOffset() const;
  10363. const IntVector2& GetMaxSize() const;
  10364. const IntVector2& GetMinOffset() const;
  10365. const IntVector2& GetMinSize() const;
  10366. const IntVector2& GetPopupOffset() const;
  10367. const IntVector2& GetPosition() const;
  10368. const IntVector2& GetPressedChildOffset() const;
  10369. const IntVector2& GetPressedOffset() const;
  10370. const IntVector2& GetScreenPosition() const;
  10371. const IntVector2& GetSize() const;
  10372. bool IsChildOf(UIElement) const;
  10373. bool IsEditable() const;
  10374. bool IsElementEventSender() const;
  10375. bool IsEnabled() const;
  10376. bool IsEnabledSelf() const;
  10377. bool IsFixedHeight() const;
  10378. bool IsFixedSize() const;
  10379. bool IsFixedWidth() const;
  10380. bool IsHovering() const;
  10381. bool IsInside(IntVector2, bool);
  10382. bool IsInsideCombined(IntVector2, bool);
  10383. bool IsInstanceOf(StringHash) const;
  10384. bool IsInternal() const;
  10385. bool IsPressed() const;
  10386. bool IsSelected() const;
  10387. bool IsTemporary() const;
  10388. bool IsTiled() const;
  10389. bool IsVisible() const;
  10390. bool IsVisibleEffective() const;
  10391. bool IsWheelHandler() const;
  10392. bool IsWithinScissor(const IntRect&);
  10393. bool Load(Deserializer&);
  10394. UIElement LoadChildXML(XMLFile, XMLFile);
  10395. UIElement LoadChildXML(const XMLElement&, XMLFile);
  10396. bool LoadJSON(const JSONValue&);
  10397. bool LoadXML(Deserializer&);
  10398. bool LoadXML(File);
  10399. bool LoadXML(VectorBuffer&);
  10400. bool LoadXML(XMLFile, XMLFile);
  10401. bool LoadXML(const XMLElement&);
  10402. bool LoadXML(const XMLElement&, XMLFile);
  10403. void MarkNetworkUpdate();
  10404. operator Menu() const;
  10405. operator Object() const;
  10406. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  10407. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  10408. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  10409. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10410. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10411. bool OnDragDropFinish(UIElement);
  10412. bool OnDragDropTest(UIElement);
  10413. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10414. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10415. void OnEvent(Object, StringHash, VariantMap&);
  10416. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10417. void OnHidePopup();
  10418. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  10419. void OnIndentSet();
  10420. void OnKey(uint, uint, uint);
  10421. void OnPositionSet(const IntVector2&);
  10422. void OnResize(const IntVector2&, const IntVector2&);
  10423. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10424. void OnSetEditable();
  10425. void OnShowPopup();
  10426. void OnTextInput(const String&);
  10427. void OnWheel(int, uint, uint);
  10428. bool ReadDeltaUpdate(Deserializer&);
  10429. bool ReadLatestDataUpdate(Deserializer&);
  10430. operator RefCounted() const;
  10431. int Refs() const;
  10432. void Remove();
  10433. void RemoveAllChildren();
  10434. void RemoveAllItems();
  10435. void RemoveAllTags();
  10436. void RemoveAttributeAnimation(const String&);
  10437. void RemoveChild(UIElement, int = 0);
  10438. void RemoveChild(uint);
  10439. void RemoveChildAtIndex(int);
  10440. void RemoveInstanceDefault();
  10441. void RemoveItem(UIElement);
  10442. void RemoveItem(int);
  10443. void RemoveObjectAnimation();
  10444. bool RemoveTag(const String&);
  10445. void ResetDeepEnabled();
  10446. void ResetToDefault();
  10447. bool Save(Serializer&) const;
  10448. bool SaveDefaultAttributes() const;
  10449. bool SaveJSON(JSONValue&) const;
  10450. bool SaveXML(File, const String& indentation = "\t");
  10451. bool SaveXML(Serializer&, const String& = "\t") const;
  10452. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  10453. bool SaveXML(XMLElement&) const;
  10454. IntVector2 ScreenToElement(const IntVector2&);
  10455. void SendEvent(StringHash);
  10456. void SendEvent(StringHash, VariantMap&);
  10457. operator Serializable() const;
  10458. void SetAccelerator(int, int);
  10459. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  10460. void SetAnimationEnabled(bool);
  10461. void SetAnimationTime(float);
  10462. bool SetAttribute(const String&, const Variant&);
  10463. bool SetAttribute(uint, const Variant&);
  10464. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10465. void SetAttributeAnimationSpeed(const String&, float);
  10466. void SetAttributeAnimationTime(const String&, float);
  10467. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10468. void SetBlendMode(BlendMode);
  10469. void SetBlockEvents(bool);
  10470. void SetBorder(const IntRect&);
  10471. void SetBringToBack(bool);
  10472. void SetBringToFront(bool);
  10473. void SetChildOffset(const IntVector2&);
  10474. void SetClipBorder(const IntRect&);
  10475. void SetClipChildren(bool);
  10476. void SetColor(Corner, const Color&);
  10477. void SetColor(const Color&);
  10478. void SetDeepEnabled(bool);
  10479. void SetDefaultStyle(XMLFile);
  10480. void SetDisabledOffset(const IntVector2&);
  10481. void SetDisabledOffset(int, int);
  10482. void SetDragDropMode(uint);
  10483. void SetEditable(bool);
  10484. void SetElementEventSender(bool);
  10485. void SetEnableAnchor(bool);
  10486. void SetEnabled(bool);
  10487. void SetEnabledRecursive(bool);
  10488. void SetFixedHeight(int);
  10489. void SetFixedSize(const IntVector2&);
  10490. void SetFixedSize(int, int);
  10491. void SetFixedWidth(int);
  10492. void SetFocus(bool);
  10493. void SetFocusMode(FocusMode);
  10494. void SetFullImageRect();
  10495. void SetGlobalVar(StringHash, const Variant&);
  10496. void SetHeight(int);
  10497. void SetHorizontalAlignment(HorizontalAlignment);
  10498. void SetHoverOffset(const IntVector2&);
  10499. void SetHoverOffset(int, int);
  10500. void SetHovering(bool);
  10501. void SetImageBorder(const IntRect&);
  10502. void SetImageRect(const IntRect&);
  10503. void SetIndent(int);
  10504. void SetIndentSpacing(int);
  10505. void SetInstanceDefault(bool);
  10506. void SetInterceptNetworkUpdate(const String&, bool);
  10507. void SetInternal(bool);
  10508. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  10509. void SetLayoutBorder(const IntRect&);
  10510. void SetLayoutFlexScale(const Vector2&);
  10511. void SetLayoutMode(LayoutMode);
  10512. void SetLayoutSpacing(int);
  10513. void SetMaterial(Material);
  10514. void SetMaterialAttr(const ResourceRef&);
  10515. void SetMaxAnchor(const Vector2&);
  10516. void SetMaxAnchor(float, float);
  10517. void SetMaxHeight(int);
  10518. void SetMaxOffset(const IntVector2&);
  10519. void SetMaxSize(const IntVector2&);
  10520. void SetMaxSize(int, int);
  10521. void SetMaxWidth(int);
  10522. void SetMinAnchor(const Vector2&);
  10523. void SetMinAnchor(float, float);
  10524. void SetMinHeight(int);
  10525. void SetMinOffset(const IntVector2&);
  10526. void SetMinSize(const IntVector2&);
  10527. void SetMinSize(int, int);
  10528. void SetMinWidth(int);
  10529. void SetName(const String&);
  10530. void SetObjectAnimation(ObjectAnimation);
  10531. void SetObjectAnimationAttr(const ResourceRef&);
  10532. void SetOpacity(float);
  10533. void SetParent(UIElement, int = ENDPOS);
  10534. void SetPivot(const Vector2&);
  10535. void SetPivot(float, float);
  10536. void SetPlaceholderText(const String&);
  10537. void SetPopup(UIElement);
  10538. void SetPopupOffset(const IntVector2&);
  10539. void SetPopupOffset(int, int);
  10540. void SetPosition(const IntVector2&);
  10541. void SetPosition(int, int);
  10542. void SetPressedChildOffset(const IntVector2&);
  10543. void SetPressedChildOffset(int, int);
  10544. void SetPressedOffset(const IntVector2&);
  10545. void SetPressedOffset(int, int);
  10546. void SetPriority(int);
  10547. void SetRenderTexture(Texture2D);
  10548. void SetRepeat(float, float);
  10549. void SetRepeatDelay(float);
  10550. void SetRepeatRate(float);
  10551. void SetResizePopup(bool);
  10552. void SetSelected(bool);
  10553. void SetSelection(int);
  10554. void SetSelectionAttr(int);
  10555. void SetSize(const IntVector2&);
  10556. void SetSize(int, int);
  10557. void SetSortChildren(bool);
  10558. bool SetStyle(const String&, XMLFile = null);
  10559. bool SetStyle(const XMLElement&);
  10560. bool SetStyleAuto(XMLFile = null);
  10561. void SetTags(Array<String>);
  10562. void SetTemporary(bool);
  10563. void SetTexture(Texture);
  10564. void SetTextureAttr(const ResourceRef&);
  10565. void SetTiled(bool);
  10566. void SetTraversalMode(TraversalMode);
  10567. void SetUseDerivedOpacity(bool);
  10568. void SetVar(StringHash, const Variant&);
  10569. void SetVerticalAlignment(VerticalAlignment);
  10570. void SetVisible(bool);
  10571. void SetWidth(int);
  10572. void ShowPopup(bool);
  10573. void SortChildren();
  10574. const String& GetAppliedStyle() const;
  10575. const String& GetCategory() const;
  10576. const String& GetName() const;
  10577. const String& GetPlaceholderText() const;
  10578. const String& GetTypeName() const;
  10579. operator UIElement() const;
  10580. void UnsubscribeFromAllEvents();
  10581. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10582. void UnsubscribeFromEvent(Object, StringHash);
  10583. void UnsubscribeFromEvent(StringHash);
  10584. void UnsubscribeFromEvents(Object);
  10585. void Update(float);
  10586. void UpdateLayout();
  10587. const Variant& GetGlobalVar(StringHash) const;
  10588. const Variant& GetVar(const StringHash&) const;
  10589. const VariantMap& GetGlobalVars() const;
  10590. const VariantMap& GetVars() const;
  10591. const Vector2& GetLayoutFlexScale() const;
  10592. const Vector2& GetMaxAnchor() const;
  10593. const Vector2& GetMinAnchor() const;
  10594. const Vector2& GetPivot() const;
  10595. int WeakRefs() const;
  10596. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10597. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10598. void WriteLatestDataUpdate(Serializer&, uint8);
  10599. operator const Animatable() const;
  10600. operator const BorderImage() const;
  10601. operator const Button() const;
  10602. operator const Menu() const;
  10603. operator const Object() const;
  10604. operator const RefCounted() const;
  10605. operator const Serializable() const;
  10606. operator const UIElement() const;
  10607. // Properties:
  10608. /* readonly */
  10609. int acceleratorKey;
  10610. /* readonly */
  10611. int acceleratorQualifiers;
  10612. bool animationEnabled;
  10613. /* readonly */
  10614. Array<Variant> attributeDefaults;
  10615. /* readonly */
  10616. Array<AttributeInfo> attributeInfos;
  10617. Array<Variant> attributes;
  10618. BlendMode blendMode;
  10619. IntRect border;
  10620. bool bringToBack;
  10621. bool bringToFront;
  10622. /* readonly */
  10623. String category;
  10624. /* readonly */
  10625. IntVector2 childOffset;
  10626. /* readonly */
  10627. Array<UIElement> children;
  10628. IntRect clipBorder;
  10629. bool clipChildren;
  10630. /* writeonly */
  10631. Color color;
  10632. /* readonly */
  10633. bool colorGradient;
  10634. Array<Color> colors;
  10635. /* readonly */
  10636. IntRect combinedScreenRect;
  10637. XMLFile defaultStyle;
  10638. /* readonly */
  10639. float derivedOpacity;
  10640. IntVector2 disabledOffset;
  10641. /* readonly */
  10642. uint dragButtonCombo;
  10643. /* readonly */
  10644. int dragButtonCount;
  10645. uint dragDropMode;
  10646. bool editable;
  10647. bool elementEventSender;
  10648. bool enableAnchor;
  10649. bool enabled;
  10650. /* readonly */
  10651. bool enabledSelf;
  10652. /* readonly */
  10653. bool fixedHeight;
  10654. /* readonly */
  10655. bool fixedSize;
  10656. /* readonly */
  10657. bool fixedWidth;
  10658. bool focus;
  10659. FocusMode focusMode;
  10660. Array<Variant> globalVar;
  10661. /* readonly */
  10662. VariantMap globalVars;
  10663. int height;
  10664. HorizontalAlignment horizontalAlignment;
  10665. IntVector2 hoverOffset;
  10666. /* readonly */
  10667. bool hovering;
  10668. IntRect imageBorder;
  10669. IntRect imageRect;
  10670. int indent;
  10671. int indentSpacing;
  10672. /* readonly */
  10673. int indentWidth;
  10674. bool internal;
  10675. /* readonly */
  10676. Array<UIElement> items;
  10677. IntRect layoutBorder;
  10678. Vector2 layoutFlexScale;
  10679. LayoutMode layoutMode;
  10680. int layoutSpacing;
  10681. /* readonly */
  10682. ListView listView;
  10683. Material material;
  10684. Vector2 maxAnchor;
  10685. int maxHeight;
  10686. IntVector2 maxOffset;
  10687. IntVector2 maxSize;
  10688. int maxWidth;
  10689. Vector2 minAnchor;
  10690. int minHeight;
  10691. IntVector2 minOffset;
  10692. IntVector2 minSize;
  10693. int minWidth;
  10694. String name;
  10695. /* readonly */
  10696. uint numAllChildren;
  10697. /* readonly */
  10698. uint numAttributes;
  10699. /* readonly */
  10700. uint numChildren;
  10701. /* readonly */
  10702. int numItems;
  10703. ObjectAnimation objectAnimation;
  10704. float opacity;
  10705. UIElement parent;
  10706. Vector2 pivot;
  10707. /* readonly */
  10708. UIElement placeholder;
  10709. String placeholderText;
  10710. UIElement popup;
  10711. IntVector2 popupOffset;
  10712. IntVector2 position;
  10713. /* readonly */
  10714. bool pressed;
  10715. IntVector2 pressedChildOffset;
  10716. IntVector2 pressedOffset;
  10717. int priority;
  10718. /* readonly */
  10719. int refs;
  10720. float repeatDelay;
  10721. float repeatRate;
  10722. bool resizePopup;
  10723. /* readonly */
  10724. UIElement root;
  10725. /* readonly */
  10726. IntVector2 screenPosition;
  10727. bool selected;
  10728. /* readonly */
  10729. UIElement selectedItem;
  10730. int selection;
  10731. bool showPopup;
  10732. IntVector2 size;
  10733. bool sortChildren;
  10734. String style;
  10735. /* readonly */
  10736. Array<String> tags;
  10737. bool temporary;
  10738. Texture texture;
  10739. bool tiled;
  10740. TraversalMode traversalMode;
  10741. /* readonly */
  10742. StringHash type;
  10743. /* readonly */
  10744. String typeName;
  10745. bool useDerivedOpacity;
  10746. /* readonly */
  10747. VariantMap vars;
  10748. VerticalAlignment verticalAlignment;
  10749. bool visible;
  10750. /* readonly */
  10751. bool visibleEffective;
  10752. /* readonly */
  10753. int weakRefs;
  10754. int width;
  10755. };
  10756. class DynamicNavigationMesh
  10757. {
  10758. public:
  10759. DynamicNavigationMesh();
  10760. // Methods:
  10761. bool AddTile(const VectorBuffer&) const;
  10762. bool AddTile(Array<uint8>);
  10763. bool Allocate(const BoundingBox&, uint);
  10764. void AllocateNetworkState();
  10765. operator Animatable() const;
  10766. void ApplyAttributes();
  10767. const BoundingBox& GetBoundingBox() const;
  10768. bool Build();
  10769. bool Build(const BoundingBox&);
  10770. bool Build(const IntVector2&, const IntVector2&);
  10771. void CleanupConnection(Connection);
  10772. operator Component() const;
  10773. void DrawDebugGeometry(DebugRenderer, bool);
  10774. void DrawDebugGeometry(bool);
  10775. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 :: ONE);
  10776. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& extents = Vector3 :: ONE);
  10777. float GetAgentHeight() const;
  10778. float GetAgentMaxClimb() const;
  10779. float GetAgentMaxSlope() const;
  10780. float GetAgentRadius() const;
  10781. bool GetAnimationEnabled() const;
  10782. float GetAreaCost(uint) const;
  10783. Variant GetAttribute(const String&) const;
  10784. Variant GetAttribute(uint) const;
  10785. ValueAnimation GetAttributeAnimation(const String&) const;
  10786. float GetAttributeAnimationSpeed(const String&) const;
  10787. float GetAttributeAnimationTime(const String&) const;
  10788. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  10789. Variant GetAttributeDefault(const String&) const;
  10790. Variant GetAttributeDefault(uint) const;
  10791. bool GetBlockEvents() const;
  10792. float GetCellHeight() const;
  10793. float GetCellSize() const;
  10794. Component GetComponent(StringHash) const;
  10795. float GetDetailSampleDistance() const;
  10796. float GetDetailSampleMaxError() const;
  10797. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  10798. bool GetDrawNavAreas() const;
  10799. bool GetDrawObstacles() const;
  10800. bool GetDrawOffMeshConnections() const;
  10801. float GetEdgeMaxError() const;
  10802. float GetEdgeMaxLength() const;
  10803. VariantMap& GetEventDataMap() const;
  10804. Object GetEventSender() const;
  10805. uint GetID() const;
  10806. bool GetInterceptNetworkUpdate(const String&) const;
  10807. uint GetMaxLayers() const;
  10808. uint GetMaxObstacles() const;
  10809. String GetMeshName() const;
  10810. Array<uint8> GetNavigationDataAttr() const;
  10811. Node GetNode() const;
  10812. uint GetNumAttributes() const;
  10813. uint GetNumNetworkAttributes() const;
  10814. IntVector2 GetNumTiles() const;
  10815. ObjectAnimation GetObjectAnimation() const;
  10816. ResourceRef GetObjectAnimationAttr() const;
  10817. NavmeshPartitionType GetPartitionType() const;
  10818. Vector3 GetRandomPoint();
  10819. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  10820. float GetRegionMergeSize() const;
  10821. float GetRegionMinSize() const;
  10822. Scene GetScene() const;
  10823. Object GetSubsystem(StringHash) const;
  10824. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  10825. VectorBuffer GetTileData(const IntVector2&) const;
  10826. IntVector2 GetTileIndex(const Vector3&) const;
  10827. int GetTileSize() const;
  10828. StringHash GetType() const;
  10829. BoundingBox GetWorldBoundingBox() const;
  10830. bool HasEventHandlers() const;
  10831. bool HasSubscribedToEvent(Object, StringHash) const;
  10832. bool HasSubscribedToEvent(StringHash) const;
  10833. bool HasTile(const IntVector2&) const;
  10834. bool IsEnabled() const;
  10835. bool IsEnabledEffective() const;
  10836. bool IsInitialized() const;
  10837. bool IsInstanceOf(StringHash) const;
  10838. bool IsObstacleInTile(Obstacle, const IntVector2&) const;
  10839. bool IsReplicated() const;
  10840. bool IsTemporary() const;
  10841. bool Load(Deserializer&);
  10842. bool LoadJSON(const JSONValue&);
  10843. bool LoadXML(const XMLElement&);
  10844. void MarkNetworkUpdate();
  10845. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE, int = 3);
  10846. operator NavigationMesh() const;
  10847. operator Object() const;
  10848. void OnEvent(Object, StringHash, VariantMap&);
  10849. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  10850. void OnSetAttribute(const AttributeInfo&, const Variant&);
  10851. void OnSetEnabled();
  10852. void PrepareNetworkUpdate();
  10853. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE);
  10854. bool ReadDeltaUpdate(Deserializer&);
  10855. bool ReadLatestDataUpdate(Deserializer&);
  10856. operator RefCounted() const;
  10857. int Refs() const;
  10858. void Remove();
  10859. void RemoveAllTiles();
  10860. void RemoveAttributeAnimation(const String&);
  10861. void RemoveInstanceDefault();
  10862. void RemoveObjectAnimation();
  10863. void RemoveTile(const IntVector2&);
  10864. void ResetToDefault();
  10865. bool Save(Serializer&) const;
  10866. bool SaveDefaultAttributes() const;
  10867. bool SaveJSON(JSONValue&) const;
  10868. bool SaveXML(XMLElement&) const;
  10869. void SendEvent(StringHash);
  10870. void SendEvent(StringHash, VariantMap&);
  10871. operator Serializable() const;
  10872. void SetAgentHeight(float);
  10873. void SetAgentMaxClimb(float);
  10874. void SetAgentMaxSlope(float);
  10875. void SetAgentRadius(float);
  10876. void SetAnimationEnabled(bool);
  10877. void SetAnimationTime(float);
  10878. void SetAreaCost(uint, float);
  10879. bool SetAttribute(const String&, const Variant&);
  10880. bool SetAttribute(uint, const Variant&);
  10881. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  10882. void SetAttributeAnimationSpeed(const String&, float);
  10883. void SetAttributeAnimationTime(const String&, float);
  10884. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  10885. void SetBlockEvents(bool);
  10886. void SetCellHeight(float);
  10887. void SetCellSize(float);
  10888. void SetDetailSampleDistance(float);
  10889. void SetDetailSampleMaxError(float);
  10890. void SetDrawNavAreas(bool);
  10891. void SetDrawObstacles(bool);
  10892. void SetDrawOffMeshConnections(bool);
  10893. void SetEdgeMaxError(float);
  10894. void SetEdgeMaxLength(float);
  10895. void SetEnabled(bool);
  10896. void SetGlobalVar(StringHash, const Variant&);
  10897. void SetInstanceDefault(bool);
  10898. void SetInterceptNetworkUpdate(const String&, bool);
  10899. void SetMaxLayers(uint);
  10900. void SetMaxObstacles(uint);
  10901. void SetMeshName(const String&);
  10902. void SetNavigationDataAttr(Array<uint8>);
  10903. void SetObjectAnimation(ObjectAnimation);
  10904. void SetObjectAnimationAttr(const ResourceRef&);
  10905. void SetPadding(const Vector3&);
  10906. void SetPartitionType(NavmeshPartitionType);
  10907. void SetRegionMergeSize(float);
  10908. void SetRegionMinSize(float);
  10909. void SetTemporary(bool);
  10910. void SetTileSize(int);
  10911. const String& GetCategory() const;
  10912. const String& GetTypeName() const;
  10913. void UnsubscribeFromAllEvents();
  10914. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  10915. void UnsubscribeFromEvent(Object, StringHash);
  10916. void UnsubscribeFromEvent(StringHash);
  10917. void UnsubscribeFromEvents(Object);
  10918. const Variant& GetGlobalVar(StringHash) const;
  10919. const VariantMap& GetGlobalVars() const;
  10920. const Vector3& GetPadding() const;
  10921. int WeakRefs() const;
  10922. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  10923. void WriteInitialDeltaUpdate(Serializer&, uint8);
  10924. void WriteLatestDataUpdate(Serializer&, uint8);
  10925. operator const Animatable() const;
  10926. operator const Component() const;
  10927. operator const NavigationMesh() const;
  10928. operator const Object() const;
  10929. operator const RefCounted() const;
  10930. operator const Serializable() const;
  10931. // Properties:
  10932. float agentHeight;
  10933. float agentMaxClimb;
  10934. float agentMaxSlope;
  10935. float agentRadius;
  10936. bool animationEnabled;
  10937. /* readonly */
  10938. Array<Variant> attributeDefaults;
  10939. /* readonly */
  10940. Array<AttributeInfo> attributeInfos;
  10941. Array<Variant> attributes;
  10942. /* readonly */
  10943. BoundingBox boundingBox;
  10944. /* readonly */
  10945. String category;
  10946. float cellHeight;
  10947. float cellSize;
  10948. float detailSampleDistance;
  10949. float detailSampleMaxError;
  10950. bool drawNavAreas;
  10951. bool drawObstacles;
  10952. bool drawOffMeshConnections;
  10953. float edgeMaxError;
  10954. float edgeMaxLength;
  10955. bool enabled;
  10956. /* readonly */
  10957. bool enabledEffective;
  10958. Array<Variant> globalVar;
  10959. /* readonly */
  10960. VariantMap globalVars;
  10961. /* readonly */
  10962. uint id;
  10963. /* readonly */
  10964. bool initialized;
  10965. uint maxLayers;
  10966. uint maxObstacles;
  10967. /* readonly */
  10968. Node node;
  10969. /* readonly */
  10970. uint numAttributes;
  10971. /* readonly */
  10972. IntVector2 numTiles;
  10973. ObjectAnimation objectAnimation;
  10974. Vector3 padding;
  10975. NavmeshPartitionType partitionType;
  10976. /* readonly */
  10977. int refs;
  10978. float regionMergeSize;
  10979. float regionMinSize;
  10980. /* readonly */
  10981. bool replicated;
  10982. bool temporary;
  10983. int tileSize;
  10984. /* readonly */
  10985. StringHash type;
  10986. /* readonly */
  10987. String typeName;
  10988. /* readonly */
  10989. int weakRefs;
  10990. /* readonly */
  10991. BoundingBox worldBoundingBox;
  10992. };
  10993. class Engine
  10994. {
  10995. public:
  10996. Engine();
  10997. // Methods:
  10998. void ApplyFrameLimit();
  10999. Console CreateConsole();
  11000. DebugHud CreateDebugHud();
  11001. void DumpMemory();
  11002. void DumpProfiler();
  11003. void DumpResources(bool = false);
  11004. void Exit();
  11005. bool GetAutoExit() const;
  11006. bool GetBlockEvents() const;
  11007. VariantMap& GetEventDataMap() const;
  11008. Object GetEventSender() const;
  11009. int GetMaxFps() const;
  11010. int GetMaxInactiveFps() const;
  11011. int GetMinFps() const;
  11012. float GetNextTimeStep() const;
  11013. bool GetPauseMinimized() const;
  11014. Object GetSubsystem(StringHash) const;
  11015. int GetTimeStepSmoothing() const;
  11016. StringHash GetType() const;
  11017. bool HasEventHandlers() const;
  11018. bool HasSubscribedToEvent(Object, StringHash) const;
  11019. bool HasSubscribedToEvent(StringHash) const;
  11020. bool Initialize(const VariantMap&);
  11021. bool InitializeResourceCache(const VariantMap&, bool = true);
  11022. bool IsExiting() const;
  11023. bool IsHeadless() const;
  11024. bool IsInitialized() const;
  11025. bool IsInstanceOf(StringHash) const;
  11026. operator Object() const;
  11027. void OnEvent(Object, StringHash, VariantMap&);
  11028. operator RefCounted() const;
  11029. int Refs() const;
  11030. void Render();
  11031. void RunFrame();
  11032. void SendEvent(StringHash);
  11033. void SendEvent(StringHash, VariantMap&);
  11034. void SetAutoExit(bool);
  11035. void SetBlockEvents(bool);
  11036. void SetGlobalVar(StringHash, const Variant&);
  11037. void SetMaxFps(int);
  11038. void SetMaxInactiveFps(int);
  11039. void SetMinFps(int);
  11040. void SetNextTimeStep(float);
  11041. void SetPauseMinimized(bool);
  11042. void SetTimeStepSmoothing(int);
  11043. const String& GetCategory() const;
  11044. const String& GetTypeName() const;
  11045. void UnsubscribeFromAllEvents();
  11046. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11047. void UnsubscribeFromEvent(Object, StringHash);
  11048. void UnsubscribeFromEvent(StringHash);
  11049. void UnsubscribeFromEvents(Object);
  11050. void Update();
  11051. const Variant& GetGlobalVar(StringHash) const;
  11052. const VariantMap& GetGlobalVars() const;
  11053. int WeakRefs() const;
  11054. operator const Object() const;
  11055. operator const RefCounted() const;
  11056. // Properties:
  11057. bool autoExit;
  11058. /* readonly */
  11059. String category;
  11060. /* readonly */
  11061. bool exiting;
  11062. Array<Variant> globalVar;
  11063. /* readonly */
  11064. VariantMap globalVars;
  11065. /* readonly */
  11066. bool headless;
  11067. /* readonly */
  11068. bool initialized;
  11069. int maxFps;
  11070. int maxInactiveFps;
  11071. int minFps;
  11072. bool pauseMinimized;
  11073. /* readonly */
  11074. int refs;
  11075. int timeStepSmoothing;
  11076. /* readonly */
  11077. StringHash type;
  11078. /* readonly */
  11079. String typeName;
  11080. /* readonly */
  11081. int weakRefs;
  11082. };
  11083. class EventProfiler
  11084. {
  11085. public:
  11086. EventProfiler();
  11087. // Methods:
  11088. void BeginBlock(StringHash);
  11089. void BeginFrame();
  11090. void BeginInterval();
  11091. void EndBlock();
  11092. void EndFrame();
  11093. bool GetBlockEvents() const;
  11094. VariantMap& GetEventDataMap() const;
  11095. Object GetEventSender() const;
  11096. Object GetSubsystem(StringHash) const;
  11097. StringHash GetType() const;
  11098. bool HasEventHandlers() const;
  11099. bool HasSubscribedToEvent(Object, StringHash) const;
  11100. bool HasSubscribedToEvent(StringHash) const;
  11101. bool IsInstanceOf(StringHash) const;
  11102. operator Object() const;
  11103. void OnEvent(Object, StringHash, VariantMap&);
  11104. operator Profiler() const;
  11105. operator RefCounted() const;
  11106. int Refs() const;
  11107. void SendEvent(StringHash);
  11108. void SendEvent(StringHash, VariantMap&);
  11109. void SetBlockEvents(bool);
  11110. void SetGlobalVar(StringHash, const Variant&);
  11111. const String& GetCategory() const;
  11112. const String& GetTypeName() const;
  11113. const String& PrintData(bool = false, bool = false, uint = M_MAX_UNSIGNED) const;
  11114. void UnsubscribeFromAllEvents();
  11115. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11116. void UnsubscribeFromEvent(Object, StringHash);
  11117. void UnsubscribeFromEvent(StringHash);
  11118. void UnsubscribeFromEvents(Object);
  11119. const Variant& GetGlobalVar(StringHash) const;
  11120. const VariantMap& GetGlobalVars() const;
  11121. int WeakRefs() const;
  11122. operator const Object() const;
  11123. operator const Profiler() const;
  11124. operator const RefCounted() const;
  11125. // Properties:
  11126. /* readonly */
  11127. String category;
  11128. Array<Variant> globalVar;
  11129. /* readonly */
  11130. VariantMap globalVars;
  11131. /* readonly */
  11132. int refs;
  11133. /* readonly */
  11134. StringHash type;
  11135. /* readonly */
  11136. String typeName;
  11137. /* readonly */
  11138. int weakRefs;
  11139. };
  11140. class EventReceiverGroup
  11141. {
  11142. public:
  11143. EventReceiverGroup();
  11144. // Methods:
  11145. void Add(Object);
  11146. void BeginSendEvent();
  11147. void EndSendEvent();
  11148. operator RefCounted() const;
  11149. int Refs() const;
  11150. void Remove(Object);
  11151. int WeakRefs() const;
  11152. operator const RefCounted() const;
  11153. // Properties:
  11154. /* readonly */
  11155. int refs;
  11156. /* readonly */
  11157. int weakRefs;
  11158. };
  11159. class File
  11160. {
  11161. public:
  11162. File();
  11163. File(const String&in, FileMode = FILE_READ);
  11164. File(PackageFile&, const String&in);
  11165. // Methods:
  11166. void Close();
  11167. operator Deserializer() const;
  11168. void Flush();
  11169. bool GetBlockEvents() const;
  11170. uint GetChecksum();
  11171. VariantMap& GetEventDataMap() const;
  11172. Object GetEventSender() const;
  11173. FileMode GetMode() const;
  11174. int64 GetPosition() const;
  11175. int64 GetSize() const;
  11176. Object GetSubsystem(StringHash) const;
  11177. StringHash GetType() const;
  11178. bool HasEventHandlers() const;
  11179. bool HasSubscribedToEvent(Object, StringHash) const;
  11180. bool HasSubscribedToEvent(StringHash) const;
  11181. bool IsEof() const;
  11182. bool IsInstanceOf(StringHash) const;
  11183. bool IsOpen() const;
  11184. bool IsPackaged() const;
  11185. operator Object() const;
  11186. void OnEvent(Object, StringHash, VariantMap&);
  11187. bool Open(PackageFile, const String&);
  11188. bool Open(const String&, FileMode = FILE_READ);
  11189. Array<uint8> Read(uint);
  11190. bool ReadBool();
  11191. BoundingBox ReadBoundingBox();
  11192. Array<uint8> ReadBuffer();
  11193. int8 ReadByte();
  11194. Color ReadColor();
  11195. double ReadDouble();
  11196. String ReadFileID();
  11197. float ReadFloat();
  11198. int ReadInt();
  11199. int64 ReadInt64();
  11200. IntRect ReadIntRect();
  11201. IntVector2 ReadIntVector2();
  11202. IntVector3 ReadIntVector3();
  11203. String ReadLine();
  11204. Matrix3 ReadMatrix3();
  11205. Matrix3x4 ReadMatrix3x4();
  11206. Matrix4 ReadMatrix4();
  11207. uint ReadNetID();
  11208. Quaternion ReadPackedQuaternion();
  11209. Vector3 ReadPackedVector3(float);
  11210. Quaternion ReadQuaternion();
  11211. Rect ReadRect();
  11212. ResourceRef ReadResourceRef();
  11213. ResourceRefList ReadResourceRefList();
  11214. int16 ReadShort();
  11215. String ReadString();
  11216. StringHash ReadStringHash();
  11217. Array<String> ReadStringVector();
  11218. uint8 ReadUByte();
  11219. uint ReadUInt();
  11220. uint64 ReadUInt64();
  11221. uint16 ReadUShort();
  11222. uint ReadVLE();
  11223. Variant ReadVariant();
  11224. Variant ReadVariant(VariantType);
  11225. VariantMap ReadVariantMap();
  11226. Vector2 ReadVector2();
  11227. Vector3 ReadVector3();
  11228. Vector4 ReadVector4();
  11229. VectorBuffer ReadVectorBuffer(uint);
  11230. operator RefCounted() const;
  11231. int Refs() const;
  11232. int64 Seek(int64);
  11233. int64 SeekRelative(int64);
  11234. void SendEvent(StringHash);
  11235. void SendEvent(StringHash, VariantMap&);
  11236. operator Serializer() const;
  11237. void SetBlockEvents(bool);
  11238. void SetGlobalVar(StringHash, const Variant&);
  11239. void SetName(const String&);
  11240. const String& GetCategory() const;
  11241. const String& GetName() const;
  11242. const String& GetTypeName() const;
  11243. int64 Tell() const;
  11244. void UnsubscribeFromAllEvents();
  11245. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11246. void UnsubscribeFromEvent(Object, StringHash);
  11247. void UnsubscribeFromEvent(StringHash);
  11248. void UnsubscribeFromEvents(Object);
  11249. const Variant& GetGlobalVar(StringHash) const;
  11250. const VariantMap& GetGlobalVars() const;
  11251. int WeakRefs() const;
  11252. uint Write(Array<uint8>);
  11253. bool WriteBool(bool);
  11254. bool WriteBoundingBox(const BoundingBox&);
  11255. bool WriteBuffer(Array<uint8>);
  11256. bool WriteByte(int8);
  11257. bool WriteColor(const Color&);
  11258. bool WriteDouble(double);
  11259. bool WriteFileID(const String&);
  11260. bool WriteFloat(float);
  11261. bool WriteInt(int);
  11262. bool WriteInt64(int64);
  11263. bool WriteIntRect(const IntRect&);
  11264. bool WriteIntVector2(const IntVector2&);
  11265. bool WriteIntVector3(const IntVector3&);
  11266. bool WriteLine(const String&);
  11267. bool WriteMatrix3(const Matrix3&);
  11268. bool WriteMatrix3x4(const Matrix3x4&);
  11269. bool WriteMatrix4(const Matrix4&);
  11270. bool WriteNetID(uint);
  11271. bool WritePackedQuaternion(const Quaternion&);
  11272. bool WritePackedVector3(const Vector3&, float);
  11273. bool WriteQuaternion(const Quaternion&);
  11274. bool WriteRect(const Rect&);
  11275. bool WriteResourceRef(const ResourceRef&);
  11276. bool WriteResourceRefList(const ResourceRefList&);
  11277. bool WriteShort(int16);
  11278. bool WriteString(const String&);
  11279. bool WriteStringHash(const StringHash&);
  11280. bool WriteStringVector(Array<String>);
  11281. bool WriteUByte(uint8);
  11282. bool WriteUInt(uint);
  11283. bool WriteUInt64(uint64);
  11284. bool WriteUShort(uint16);
  11285. bool WriteVLE(uint);
  11286. bool WriteVariant(const Variant&);
  11287. bool WriteVariantData(const Variant&);
  11288. bool WriteVariantMap(const VariantMap&);
  11289. bool WriteVector2(const Vector2&);
  11290. bool WriteVector3(const Vector3&);
  11291. bool WriteVector4(const Vector4&);
  11292. bool WriteVectorBuffer(const VectorBuffer&);
  11293. operator const Deserializer() const;
  11294. operator const Object() const;
  11295. operator const RefCounted() const;
  11296. operator const Serializer() const;
  11297. // Properties:
  11298. /* readonly */
  11299. String category;
  11300. /* readonly */
  11301. uint checksum;
  11302. /* readonly */
  11303. bool eof;
  11304. Array<Variant> globalVar;
  11305. /* readonly */
  11306. VariantMap globalVars;
  11307. /* readonly */
  11308. FileMode mode;
  11309. String name;
  11310. /* readonly */
  11311. bool open;
  11312. /* readonly */
  11313. bool packaged;
  11314. /* readonly */
  11315. int64 position;
  11316. /* readonly */
  11317. int refs;
  11318. /* readonly */
  11319. int64 size;
  11320. /* readonly */
  11321. StringHash type;
  11322. /* readonly */
  11323. String typeName;
  11324. /* readonly */
  11325. int weakRefs;
  11326. };
  11327. class FileSelector
  11328. {
  11329. public:
  11330. FileSelector();
  11331. // Methods:
  11332. bool GetBlockEvents() const;
  11333. Button GetCancelButton() const;
  11334. Button GetCloseButton() const;
  11335. XMLFile GetDefaultStyle() const;
  11336. bool GetDirectoryMode() const;
  11337. VariantMap& GetEventDataMap() const;
  11338. Object GetEventSender() const;
  11339. ListView GetFileList() const;
  11340. LineEdit GetFileNameEdit() const;
  11341. uint GetFilterIndex() const;
  11342. DropDownList GetFilterList() const;
  11343. Button GetOKButton() const;
  11344. LineEdit GetPathEdit() const;
  11345. Object GetSubsystem(StringHash) const;
  11346. Text GetTitleText() const;
  11347. StringHash GetType() const;
  11348. Window GetWindow() const;
  11349. bool HasEventHandlers() const;
  11350. bool HasSubscribedToEvent(Object, StringHash) const;
  11351. bool HasSubscribedToEvent(StringHash) const;
  11352. bool IsInstanceOf(StringHash) const;
  11353. operator Object() const;
  11354. void OnEvent(Object, StringHash, VariantMap&);
  11355. operator RefCounted() const;
  11356. int Refs() const;
  11357. void SendEvent(StringHash);
  11358. void SendEvent(StringHash, VariantMap&);
  11359. void SetBlockEvents(bool);
  11360. void SetButtonTexts(const String&, const String&);
  11361. void SetDefaultStyle(XMLFile);
  11362. void SetDirectoryMode(bool);
  11363. void SetFileName(const String&);
  11364. void SetFilters(Array<String>, uint);
  11365. void SetGlobalVar(StringHash, const Variant&);
  11366. void SetPath(const String&);
  11367. void SetTitle(const String&);
  11368. const String& GetCategory() const;
  11369. const String& GetFileName() const;
  11370. const String& GetFilter() const;
  11371. const String& GetPath() const;
  11372. const String& GetTitle() const;
  11373. const String& GetTypeName() const;
  11374. void UnsubscribeFromAllEvents();
  11375. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11376. void UnsubscribeFromEvent(Object, StringHash);
  11377. void UnsubscribeFromEvent(StringHash);
  11378. void UnsubscribeFromEvents(Object);
  11379. void UpdateElements();
  11380. const Variant& GetGlobalVar(StringHash) const;
  11381. const VariantMap& GetGlobalVars() const;
  11382. int WeakRefs() const;
  11383. operator const Object() const;
  11384. operator const RefCounted() const;
  11385. // Properties:
  11386. /* readonly */
  11387. Button cancelButton;
  11388. /* readonly */
  11389. String category;
  11390. XMLFile defaultStyle;
  11391. bool directoryMode;
  11392. /* readonly */
  11393. ListView fileList;
  11394. String fileName;
  11395. /* readonly */
  11396. LineEdit fileNameEdit;
  11397. /* readonly */
  11398. String filter;
  11399. /* readonly */
  11400. uint filterIndex;
  11401. /* readonly */
  11402. DropDownList filterList;
  11403. Array<Variant> globalVar;
  11404. /* readonly */
  11405. VariantMap globalVars;
  11406. /* readonly */
  11407. Button okButton;
  11408. String path;
  11409. /* readonly */
  11410. LineEdit pathEdit;
  11411. /* readonly */
  11412. int refs;
  11413. String title;
  11414. /* readonly */
  11415. Text titleText;
  11416. /* readonly */
  11417. StringHash type;
  11418. /* readonly */
  11419. String typeName;
  11420. /* readonly */
  11421. int weakRefs;
  11422. /* readonly */
  11423. Window window;
  11424. };
  11425. class FileSelectorEntry
  11426. {
  11427. public:
  11428. ~FileSelectorEntry();
  11429. FileSelectorEntry();
  11430. // Methods:
  11431. FileSelectorEntry& operator=(const FileSelectorEntry&);
  11432. // Properties:
  11433. bool directory;
  11434. String name;
  11435. };
  11436. class FileSystem
  11437. {
  11438. public:
  11439. FileSystem();
  11440. // Methods:
  11441. bool CheckAccess(const String&) const;
  11442. bool Copy(const String&, const String&);
  11443. bool CreateDir(const String&);
  11444. bool Delete(const String&);
  11445. bool DirExists(const String&) const;
  11446. bool FileExists(const String&) const;
  11447. String GetAppPreferencesDir(const String&, const String&) const;
  11448. bool GetBlockEvents() const;
  11449. String GetCurrentDir() const;
  11450. VariantMap& GetEventDataMap() const;
  11451. Object GetEventSender() const;
  11452. bool GetExecuteConsoleCommands() const;
  11453. uint GetLastModifiedTime(const String&) const;
  11454. String GetProgramDir() const;
  11455. Object GetSubsystem(StringHash) const;
  11456. String GetTemporaryDir() const;
  11457. StringHash GetType() const;
  11458. String GetUserDocumentsDir() const;
  11459. bool HasEventHandlers() const;
  11460. bool HasRegisteredPaths() const;
  11461. bool HasSubscribedToEvent(Object, StringHash) const;
  11462. bool HasSubscribedToEvent(StringHash) const;
  11463. bool IsInstanceOf(StringHash) const;
  11464. operator Object() const;
  11465. void OnEvent(Object, StringHash, VariantMap&);
  11466. operator RefCounted() const;
  11467. int Refs() const;
  11468. void RegisterPath(const String&);
  11469. bool Rename(const String&, const String&);
  11470. Array<String> ScanDir(const String&, const String&, uint, bool) const;
  11471. void SendEvent(StringHash);
  11472. void SendEvent(StringHash, VariantMap&);
  11473. void SetBlockEvents(bool);
  11474. bool SetCurrentDir(const String&);
  11475. void SetExecuteConsoleCommands(bool);
  11476. void SetGlobalVar(StringHash, const Variant&);
  11477. bool SetLastModifiedTime(const String&, uint);
  11478. const String& GetCategory() const;
  11479. const String& GetTypeName() const;
  11480. int SystemCommand(const String&, bool = false);
  11481. uint SystemCommandAsync(const String&);
  11482. bool SystemOpen(const String&, const String& = String :: EMPTY);
  11483. int SystemRun(const String&, Array<String>);
  11484. uint SystemRunAsync(const String&, Array<String>);
  11485. void UnsubscribeFromAllEvents();
  11486. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11487. void UnsubscribeFromEvent(Object, StringHash);
  11488. void UnsubscribeFromEvent(StringHash);
  11489. void UnsubscribeFromEvents(Object);
  11490. const Variant& GetGlobalVar(StringHash) const;
  11491. const VariantMap& GetGlobalVars() const;
  11492. int WeakRefs() const;
  11493. operator const Object() const;
  11494. operator const RefCounted() const;
  11495. // Properties:
  11496. /* readonly */
  11497. String category;
  11498. String currentDir;
  11499. bool executeConsoleCommands;
  11500. Array<Variant> globalVar;
  11501. /* readonly */
  11502. VariantMap globalVars;
  11503. /* readonly */
  11504. String programDir;
  11505. /* readonly */
  11506. int refs;
  11507. /* readonly */
  11508. String temporaryDir;
  11509. /* readonly */
  11510. StringHash type;
  11511. /* readonly */
  11512. String typeName;
  11513. /* readonly */
  11514. String userDocumentsDir;
  11515. /* readonly */
  11516. int weakRefs;
  11517. };
  11518. class FileWatcher
  11519. {
  11520. public:
  11521. FileWatcher();
  11522. // Methods:
  11523. void AddChange(const String&);
  11524. bool GetBlockEvents() const;
  11525. float GetDelay() const;
  11526. VariantMap& GetEventDataMap() const;
  11527. Object GetEventSender() const;
  11528. bool GetNextChange(String&);
  11529. Object GetSubsystem(StringHash) const;
  11530. StringHash GetType() const;
  11531. bool HasEventHandlers() const;
  11532. bool HasSubscribedToEvent(Object, StringHash) const;
  11533. bool HasSubscribedToEvent(StringHash) const;
  11534. bool IsInstanceOf(StringHash) const;
  11535. bool IsStarted() const;
  11536. operator Object() const;
  11537. void OnEvent(Object, StringHash, VariantMap&);
  11538. operator RefCounted() const;
  11539. int Refs() const;
  11540. bool Run();
  11541. void SendEvent(StringHash);
  11542. void SendEvent(StringHash, VariantMap&);
  11543. void SetBlockEvents(bool);
  11544. void SetDelay(float);
  11545. void SetGlobalVar(StringHash, const Variant&);
  11546. void SetPriority(int);
  11547. bool StartWatching(const String&, bool);
  11548. void Stop();
  11549. void StopWatching();
  11550. const String& GetCategory() const;
  11551. const String& GetPath() const;
  11552. const String& GetTypeName() const;
  11553. void ThreadFunction();
  11554. void UnsubscribeFromAllEvents();
  11555. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11556. void UnsubscribeFromEvent(Object, StringHash);
  11557. void UnsubscribeFromEvent(StringHash);
  11558. void UnsubscribeFromEvents(Object);
  11559. const Variant& GetGlobalVar(StringHash) const;
  11560. const VariantMap& GetGlobalVars() const;
  11561. int WeakRefs() const;
  11562. operator const Object() const;
  11563. operator const RefCounted() const;
  11564. // Properties:
  11565. /* readonly */
  11566. String category;
  11567. Array<Variant> globalVar;
  11568. /* readonly */
  11569. VariantMap globalVars;
  11570. /* readonly */
  11571. int refs;
  11572. /* readonly */
  11573. StringHash type;
  11574. /* readonly */
  11575. String typeName;
  11576. /* readonly */
  11577. int weakRefs;
  11578. };
  11579. class FocusParameters
  11580. {
  11581. public:
  11582. FocusParameters();
  11583. FocusParameters(bool, bool, bool, float, float);
  11584. // Methods:
  11585. FocusParameters& operator=(const FocusParameters&);
  11586. void Validate();
  11587. // Properties:
  11588. bool autoSize;
  11589. bool focus;
  11590. float minView;
  11591. bool nonUniform;
  11592. float quantize;
  11593. };
  11594. class Font
  11595. {
  11596. public:
  11597. Font();
  11598. // Methods:
  11599. bool BeginLoad(Deserializer&);
  11600. bool EndLoad();
  11601. AsyncLoadState GetAsyncLoadState() const;
  11602. bool GetBlockEvents() const;
  11603. VariantMap& GetEventDataMap() const;
  11604. Object GetEventSender() const;
  11605. FontFace GetFace(float);
  11606. FontType GetFontType() const;
  11607. uint GetMemoryUse() const;
  11608. StringHash GetNameHash() const;
  11609. Object GetSubsystem(StringHash) const;
  11610. IntVector2 GetTotalGlyphOffset(float) const;
  11611. StringHash GetType() const;
  11612. uint GetUseTimer();
  11613. bool HasEventHandlers() const;
  11614. bool HasSubscribedToEvent(Object, StringHash) const;
  11615. bool HasSubscribedToEvent(StringHash) const;
  11616. const IntVector2& GetAbsoluteGlyphOffset() const;
  11617. bool IsInstanceOf(StringHash) const;
  11618. bool IsSDFFont() const;
  11619. bool Load(Deserializer&);
  11620. bool Load(File);
  11621. bool Load(VectorBuffer&);
  11622. bool Load(const String&);
  11623. bool LoadFile(const String&);
  11624. operator Object() const;
  11625. void OnEvent(Object, StringHash, VariantMap&);
  11626. operator RefCounted() const;
  11627. int Refs() const;
  11628. void ReleaseFaces();
  11629. void ResetUseTimer();
  11630. operator Resource() const;
  11631. bool Save(File) const;
  11632. bool Save(Serializer&) const;
  11633. bool Save(VectorBuffer&) const;
  11634. bool Save(const String&) const;
  11635. bool SaveFile(const String&) const;
  11636. bool SaveXML(File, int, bool usedGlyphs = false, const String& indentation = "\t");
  11637. bool SaveXML(Serializer&, int, bool = false, const String& = "\t");
  11638. bool SaveXML(VectorBuffer&, int, bool usedGlyphs = false, const String& indentation = "\t");
  11639. bool SaveXML(const String&, int, bool usedGlyphs = false, const String& indentation = "\t");
  11640. void SendEvent(StringHash);
  11641. void SendEvent(StringHash, VariantMap&);
  11642. void SetAbsoluteGlyphOffset(const IntVector2&);
  11643. void SetAsyncLoadState(AsyncLoadState);
  11644. void SetBlockEvents(bool);
  11645. void SetGlobalVar(StringHash, const Variant&);
  11646. void SetMemoryUse(uint);
  11647. void SetName(const String&);
  11648. void SetScaledGlyphOffset(const Vector2&);
  11649. const String& GetCategory() const;
  11650. const String& GetName() const;
  11651. const String& GetTypeName() const;
  11652. void UnsubscribeFromAllEvents();
  11653. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11654. void UnsubscribeFromEvent(Object, StringHash);
  11655. void UnsubscribeFromEvent(StringHash);
  11656. void UnsubscribeFromEvents(Object);
  11657. const Variant& GetGlobalVar(StringHash) const;
  11658. const VariantMap& GetGlobalVars() const;
  11659. const Vector2& GetScaledGlyphOffset() const;
  11660. int WeakRefs() const;
  11661. operator const Object() const;
  11662. operator const RefCounted() const;
  11663. operator const Resource() const;
  11664. // Properties:
  11665. IntVector2 absoluteGlyphOffset;
  11666. /* readonly */
  11667. String category;
  11668. /* readonly */
  11669. FontType fontType;
  11670. Array<Variant> globalVar;
  11671. /* readonly */
  11672. VariantMap globalVars;
  11673. /* readonly */
  11674. uint memoryUse;
  11675. String name;
  11676. /* readonly */
  11677. int refs;
  11678. Vector2 scaledGlyphOffset;
  11679. /* readonly */
  11680. StringHash type;
  11681. /* readonly */
  11682. String typeName;
  11683. /* readonly */
  11684. uint useTimer;
  11685. /* readonly */
  11686. int weakRefs;
  11687. };
  11688. class FontFace
  11689. {
  11690. public:
  11691. // Methods:
  11692. operator FontFaceBitmap() const;
  11693. operator FontFaceFreeType() const;
  11694. float GetKerning(uint, uint) const;
  11695. float GetPointSize() const;
  11696. float GetRowHeight() const;
  11697. Array<Texture2D> GetTextures() const;
  11698. bool HasMutableGlyphs() const;
  11699. bool IsDataLost() const;
  11700. operator RefCounted() const;
  11701. int Refs() const;
  11702. int WeakRefs() const;
  11703. operator const FontFaceBitmap() const;
  11704. operator const FontFaceFreeType() const;
  11705. operator const RefCounted() const;
  11706. // Properties:
  11707. /* readonly */
  11708. int refs;
  11709. /* readonly */
  11710. int weakRefs;
  11711. };
  11712. class FontFaceBitmap
  11713. {
  11714. public:
  11715. FontFaceBitmap(Font&);
  11716. // Methods:
  11717. operator FontFace() const;
  11718. float GetKerning(uint, uint) const;
  11719. float GetPointSize() const;
  11720. float GetRowHeight() const;
  11721. Array<Texture2D> GetTextures() const;
  11722. bool HasMutableGlyphs() const;
  11723. bool IsDataLost() const;
  11724. bool Load(FontFace, bool);
  11725. operator RefCounted() const;
  11726. int Refs() const;
  11727. bool Save(Serializer&, int, const String& = "\t");
  11728. int WeakRefs() const;
  11729. operator const FontFace() const;
  11730. operator const RefCounted() const;
  11731. // Properties:
  11732. /* readonly */
  11733. int refs;
  11734. /* readonly */
  11735. int weakRefs;
  11736. };
  11737. class FontFaceFreeType
  11738. {
  11739. public:
  11740. FontFaceFreeType(Font&);
  11741. // Methods:
  11742. operator FontFace() const;
  11743. float GetKerning(uint, uint) const;
  11744. float GetPointSize() const;
  11745. float GetRowHeight() const;
  11746. Array<Texture2D> GetTextures() const;
  11747. bool HasMutableGlyphs() const;
  11748. bool IsDataLost() const;
  11749. operator RefCounted() const;
  11750. int Refs() const;
  11751. int WeakRefs() const;
  11752. operator const FontFace() const;
  11753. operator const RefCounted() const;
  11754. // Properties:
  11755. /* readonly */
  11756. int refs;
  11757. /* readonly */
  11758. int weakRefs;
  11759. };
  11760. class FontGlyph
  11761. {
  11762. public:
  11763. ~FontGlyph();
  11764. FontGlyph();
  11765. // Methods:
  11766. FontGlyph& operator=(const FontGlyph&);
  11767. // Properties:
  11768. float advanceX;
  11769. float height;
  11770. float offsetX;
  11771. float offsetY;
  11772. int page;
  11773. int16 texHeight;
  11774. int16 texWidth;
  11775. bool used;
  11776. float width;
  11777. int16 x;
  11778. int16 y;
  11779. };
  11780. class FrameInfo
  11781. {
  11782. public:
  11783. ~FrameInfo();
  11784. FrameInfo();
  11785. // Methods:
  11786. FrameInfo& operator=(const FrameInfo&);
  11787. // Properties:
  11788. int frameNumber;
  11789. float timeStep;
  11790. IntVector2 viewSize;
  11791. };
  11792. class Frustum
  11793. {
  11794. public:
  11795. ~Frustum();
  11796. Frustum();
  11797. Frustum(const Frustum&in);
  11798. // Methods:
  11799. Frustum& operator=(const Frustum&);
  11800. void Define(const BoundingBox&, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11801. void Define(const Matrix4&);
  11802. void Define(const Vector3&, const Vector3&, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11803. void Define(float, float, float, float, float, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11804. void DefineOrtho(float, float, float, float, float, const Matrix3x4& = Matrix3x4 :: IDENTITY);
  11805. void DefineSplit(const Matrix4&, float, float);
  11806. float Distance(const Vector3&) const;
  11807. Intersection IsInside(const BoundingBox&) const;
  11808. Intersection IsInside(const Sphere&) const;
  11809. Intersection IsInside(const Vector3&) const;
  11810. Intersection IsInsideFast(const BoundingBox&) const;
  11811. Intersection IsInsideFast(const Sphere&) const;
  11812. Rect Projected(const Matrix4&) const;
  11813. void Transform(const Matrix3&);
  11814. void Transform(const Matrix3x4&);
  11815. Frustum Transformed(const Matrix3&) const;
  11816. Frustum Transformed(const Matrix3x4&) const;
  11817. void UpdatePlanes();
  11818. // Properties:
  11819. /* readonly */
  11820. Array<Vector3> vertices;
  11821. };
  11822. class GImpactMeshData
  11823. {
  11824. public:
  11825. GImpactMeshData(Model&, int);
  11826. GImpactMeshData(CustomGeometry&);
  11827. // Methods:
  11828. operator CollisionGeometryData() const;
  11829. operator RefCounted() const;
  11830. int Refs() const;
  11831. int WeakRefs() const;
  11832. operator const CollisionGeometryData() const;
  11833. operator const RefCounted() const;
  11834. // Properties:
  11835. /* readonly */
  11836. int refs;
  11837. /* readonly */
  11838. int weakRefs;
  11839. };
  11840. class GPUObject
  11841. {
  11842. public:
  11843. ~GPUObject();
  11844. GPUObject(Graphics@);
  11845. // Methods:
  11846. GPUObject& operator=(const GPUObject&);
  11847. void ClearDataLost();
  11848. uint GetGPUObjectName() const;
  11849. Graphics GetGraphics() const;
  11850. bool HasPendingData() const;
  11851. bool IsDataLost() const;
  11852. void OnDeviceLost();
  11853. void OnDeviceReset();
  11854. void Release();
  11855. // Properties:
  11856. /* readonly */
  11857. bool dataLost;
  11858. };
  11859. class Geometry
  11860. {
  11861. public:
  11862. Geometry();
  11863. // Methods:
  11864. void Draw(Graphics);
  11865. bool GetBlockEvents() const;
  11866. uint16 GetBufferHash() const;
  11867. VariantMap& GetEventDataMap() const;
  11868. Object GetEventSender() const;
  11869. IndexBuffer GetIndexBuffer() const;
  11870. uint GetIndexCount() const;
  11871. uint GetIndexStart() const;
  11872. float GetLodDistance() const;
  11873. uint GetNumVertexBuffers() const;
  11874. PrimitiveType GetPrimitiveType() const;
  11875. Object GetSubsystem(StringHash) const;
  11876. StringHash GetType() const;
  11877. VertexBuffer GetVertexBuffer(uint) const;
  11878. Array<VertexBuffer> GetVertexBuffers() const;
  11879. uint GetVertexCount() const;
  11880. uint GetVertexStart() const;
  11881. bool HasEventHandlers() const;
  11882. bool HasSubscribedToEvent(Object, StringHash) const;
  11883. bool HasSubscribedToEvent(StringHash) const;
  11884. bool IsEmpty() const;
  11885. bool IsInside(const Ray&) const;
  11886. bool IsInstanceOf(StringHash) const;
  11887. operator Object() const;
  11888. void OnEvent(Object, StringHash, VariantMap&);
  11889. operator RefCounted() const;
  11890. int Refs() const;
  11891. void SendEvent(StringHash);
  11892. void SendEvent(StringHash, VariantMap&);
  11893. void SetBlockEvents(bool);
  11894. bool SetDrawRange(PrimitiveType, uint, uint, bool = true);
  11895. bool SetDrawRange(PrimitiveType, uint, uint, uint, uint, bool = true);
  11896. void SetGlobalVar(StringHash, const Variant&);
  11897. void SetIndexBuffer(IndexBuffer);
  11898. void SetLodDistance(float);
  11899. bool SetNumVertexBuffers(uint);
  11900. bool SetVertexBuffer(uint, VertexBuffer);
  11901. const String& GetCategory() const;
  11902. const String& GetTypeName() const;
  11903. void UnsubscribeFromAllEvents();
  11904. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  11905. void UnsubscribeFromEvent(Object, StringHash);
  11906. void UnsubscribeFromEvent(StringHash);
  11907. void UnsubscribeFromEvents(Object);
  11908. const Variant& GetGlobalVar(StringHash) const;
  11909. const VariantMap& GetGlobalVars() const;
  11910. int WeakRefs() const;
  11911. operator const Object() const;
  11912. operator const RefCounted() const;
  11913. // Properties:
  11914. /* readonly */
  11915. String category;
  11916. /* readonly */
  11917. bool empty;
  11918. Array<Variant> globalVar;
  11919. /* readonly */
  11920. VariantMap globalVars;
  11921. IndexBuffer indexBuffer;
  11922. /* readonly */
  11923. uint indexCount;
  11924. /* readonly */
  11925. uint indexStart;
  11926. float lodDistance;
  11927. uint numVertexBuffers;
  11928. /* readonly */
  11929. PrimitiveType primitiveType;
  11930. /* readonly */
  11931. int refs;
  11932. /* readonly */
  11933. StringHash type;
  11934. /* readonly */
  11935. String typeName;
  11936. /* readonly */
  11937. Array<VertexBuffer> vertexBuffers;
  11938. /* readonly */
  11939. uint vertexCount;
  11940. /* readonly */
  11941. uint vertexStart;
  11942. /* readonly */
  11943. int weakRefs;
  11944. };
  11945. class GeometryDesc
  11946. {
  11947. public:
  11948. ~GeometryDesc();
  11949. GeometryDesc();
  11950. // Methods:
  11951. GeometryDesc& operator=(const GeometryDesc&);
  11952. // Properties:
  11953. uint ibRef;
  11954. uint indexCount;
  11955. uint indexStart;
  11956. PrimitiveType type;
  11957. uint vbRef;
  11958. };
  11959. class Graphics
  11960. {
  11961. public:
  11962. Graphics(GAPI);
  11963. // Methods:
  11964. void BeginDumpShaders(const String&);
  11965. bool BeginFrame();
  11966. void CleanupScratchBuffers();
  11967. void Clear(uint, const Color& = Color ( 0.0f , 0.0f , 0.0f , 0.0f ), float = 1.0f, uint = 0);
  11968. void ClearParameterSource(ShaderParameterGroup);
  11969. void ClearParameterSources();
  11970. void ClearTransformSources();
  11971. void Close();
  11972. void Draw(PrimitiveType, uint, uint);
  11973. void Draw(PrimitiveType, uint, uint, uint, uint);
  11974. void Draw(PrimitiveType, uint, uint, uint, uint, uint);
  11975. void DrawInstanced(PrimitiveType, uint, uint, uint, uint, uint);
  11976. void DrawInstanced(PrimitiveType, uint, uint, uint, uint, uint, uint);
  11977. void EndDumpShaders();
  11978. void EndFrame();
  11979. int FindBestResolutionIndex(int, int, int, int) const;
  11980. bool GetAlphaToCoverage() const;
  11981. bool GetAnisotropySupport() const;
  11982. BlendMode GetBlendMode() const;
  11983. bool GetBlockEvents() const;
  11984. bool GetBorderless() const;
  11985. bool GetColorWrite() const;
  11986. CullMode GetCullMode() const;
  11987. int GetCurrentMonitor() const;
  11988. uint GetDefaultTextureAnisotropy() const;
  11989. TextureFilterMode GetDefaultTextureFilterMode() const;
  11990. bool GetDeferredSupport() const;
  11991. float GetDepthConstantBias() const;
  11992. float GetDepthSlopeScaledBias() const;
  11993. RenderSurface GetDepthStencil() const;
  11994. CompareMode GetDepthTest() const;
  11995. bool GetDepthWrite() const;
  11996. IntVector2 GetDesktopResolution(int) const;
  11997. Vector3 GetDisplayDPI(int = 0) const;
  11998. bool GetDither() const;
  11999. uint GetDummyColorFormat() const;
  12000. VariantMap& GetEventDataMap() const;
  12001. Object GetEventSender() const;
  12002. FillMode GetFillMode() const;
  12003. bool GetFlushGPU() const;
  12004. bool GetForceGL2() const;
  12005. uint GetFormat(CompressedFormat) const;
  12006. bool GetFullscreen() const;
  12007. bool GetHardwareShadowSupport() const;
  12008. int GetHeight() const;
  12009. bool GetHighDPI() const;
  12010. uint GetHiresShadowMapFormat() const;
  12011. IndexBuffer GetIndexBuffer() const;
  12012. bool GetInstancingSupport() const;
  12013. bool GetLightPrepassSupport() const;
  12014. bool GetLineAntiAlias() const;
  12015. bool GetMaximized() const;
  12016. int GetMonitor() const;
  12017. int GetMonitorCount() const;
  12018. int GetMultiSample() const;
  12019. Array<int> GetMultiSampleLevels() const;
  12020. uint GetNumBatches() const;
  12021. uint GetNumPrimitives() const;
  12022. ShaderVariation GetPixelShader() const;
  12023. bool GetReadableDepthSupport() const;
  12024. int GetRefreshRate() const;
  12025. RenderSurface GetRenderTarget(uint) const;
  12026. IntVector2 GetRenderTargetDimensions() const;
  12027. bool GetResizable() const;
  12028. Array<IntVector3> GetResolutions(int) const;
  12029. bool GetSRGB() const;
  12030. bool GetSRGBSupport() const;
  12031. bool GetSRGBWriteSupport() const;
  12032. bool GetScissorTest() const;
  12033. ShaderVariation GetShader(ShaderType, const String&, const String& = String :: EMPTY) const;
  12034. uint GetShadowMapFormat() const;
  12035. IntVector2 GetSize() const;
  12036. uint GetStencilCompareMask() const;
  12037. StencilOp GetStencilFail() const;
  12038. StencilOp GetStencilPass() const;
  12039. uint GetStencilRef() const;
  12040. bool GetStencilTest() const;
  12041. CompareMode GetStencilTestMode() const;
  12042. uint GetStencilWriteMask() const;
  12043. StencilOp GetStencilZFail() const;
  12044. Object GetSubsystem(StringHash) const;
  12045. Texture GetTexture(uint) const;
  12046. TextureUnit GetTextureUnit(const String&);
  12047. bool GetTripleBuffer() const;
  12048. StringHash GetType() const;
  12049. bool GetUseClipPlane() const;
  12050. bool GetVSync() const;
  12051. VertexBuffer GetVertexBuffer(uint) const;
  12052. ShaderVariation GetVertexShader() const;
  12053. IntRect GetViewport() const;
  12054. int GetWidth() const;
  12055. IntVector2 GetWindowPosition() const;
  12056. bool HasEventHandlers() const;
  12057. bool HasShaderParameter(StringHash);
  12058. bool HasSubscribedToEvent(Object, StringHash) const;
  12059. bool HasSubscribedToEvent(StringHash) const;
  12060. bool HasTextureUnit(TextureUnit);
  12061. const IntRect& GetScissorRect() const;
  12062. bool IsDeviceLost() const;
  12063. bool IsInitialized() const;
  12064. bool IsInstanceOf(StringHash) const;
  12065. void Maximize();
  12066. void Minimize();
  12067. operator Object() const;
  12068. void OnEvent(Object, StringHash, VariantMap&);
  12069. void OnWindowMoved();
  12070. void OnWindowResized();
  12071. void PrecacheShaders(Deserializer&);
  12072. void PrecacheShaders(File);
  12073. void PrecacheShaders(VectorBuffer&);
  12074. void Raise() const;
  12075. operator RefCounted() const;
  12076. int Refs() const;
  12077. void ResetDepthStencil();
  12078. void ResetRenderTarget(uint);
  12079. void ResetRenderTargets();
  12080. bool ResolveToTexture(Texture2D);
  12081. bool ResolveToTexture(Texture2D, const IntRect&);
  12082. bool ResolveToTexture(TextureCube);
  12083. const ScreenModeParams& GetScreenModeParams() const;
  12084. void SendEvent(StringHash);
  12085. void SendEvent(StringHash, VariantMap&);
  12086. void SetBlendMode(BlendMode, bool = false);
  12087. void SetBlockEvents(bool);
  12088. void SetClipPlane(bool, const Plane& = Plane :: UP, const Matrix3x4& = Matrix3x4 :: IDENTITY, const Matrix4& = Matrix4 :: IDENTITY);
  12089. void SetColorWrite(bool);
  12090. void SetCullMode(CullMode);
  12091. void SetDefaultTextureAnisotropy(uint);
  12092. void SetDefaultTextureFilterMode(TextureFilterMode);
  12093. bool SetDefaultWindowModes(int, int, const ScreenModeParams&);
  12094. void SetDepthBias(float, float);
  12095. void SetDepthStencil(RenderSurface);
  12096. void SetDepthStencil(Texture2D);
  12097. void SetDepthTest(CompareMode);
  12098. void SetDepthWrite(bool);
  12099. void SetDither(bool);
  12100. void SetFillMode(FillMode);
  12101. void SetFlushGPU(bool);
  12102. void SetForceGL2(bool);
  12103. void SetGlobalVar(StringHash, const Variant&);
  12104. void SetIndexBuffer(IndexBuffer);
  12105. void SetLineAntiAlias(bool);
  12106. bool SetMode(int, int);
  12107. bool SetMode(int, int, bool, bool, bool, bool, bool, bool, int, int, int);
  12108. void SetOrientations(const String&);
  12109. void SetRenderTarget(uint, RenderSurface);
  12110. void SetRenderTarget(uint, Texture2D);
  12111. void SetSRGB(bool);
  12112. void SetScissorTest(bool, const IntRect&);
  12113. void SetScissorTest(bool, const Rect& = Rect :: FULL, bool = true);
  12114. bool SetScreenMode(int, int);
  12115. bool SetScreenMode(int, int, const ScreenModeParams&, bool = false);
  12116. void SetShaderCacheDir(const String&);
  12117. void SetShaderParameter(StringHash, bool);
  12118. void SetShaderParameter(StringHash, const Color&);
  12119. void SetShaderParameter(StringHash, const Matrix3&);
  12120. void SetShaderParameter(StringHash, const Matrix3x4&);
  12121. void SetShaderParameter(StringHash, const Matrix4&);
  12122. void SetShaderParameter(StringHash, const Variant&);
  12123. void SetShaderParameter(StringHash, const Vector2&);
  12124. void SetShaderParameter(StringHash, const Vector3&);
  12125. void SetShaderParameter(StringHash, const Vector4&);
  12126. void SetShaderParameter(StringHash, float);
  12127. void SetShaderParameter(StringHash, int);
  12128. void SetShaders(ShaderVariation, ShaderVariation);
  12129. void SetStencilTest(bool, CompareMode = CMP_ALWAYS, StencilOp = OP_KEEP, StencilOp = OP_KEEP, StencilOp = OP_KEEP, uint = 0, uint = M_U32_MASK_ALL_BITS, uint = M_U32_MASK_ALL_BITS);
  12130. void SetTexture(uint, Texture);
  12131. void SetVertexBuffer(VertexBuffer);
  12132. bool SetVertexBuffers(Array<VertexBuffer>, uint = 0);
  12133. void SetViewport(const IntRect&);
  12134. void SetWindowIcon(Image);
  12135. bool SetWindowModes(const WindowModeParams&, const WindowModeParams&, bool = false);
  12136. void SetWindowPosition(const IntVector2&);
  12137. void SetWindowPosition(int, int);
  12138. void SetWindowTitle(const String&);
  12139. const String& GetApiName() const;
  12140. const String& GetCategory() const;
  12141. const String& GetOrientations() const;
  12142. const String& GetShaderCacheDir() const;
  12143. const String& GetTextureUnitName(TextureUnit);
  12144. const String& GetTypeName() const;
  12145. const String& GetWindowTitle() const;
  12146. bool TakeScreenShot(Image&);
  12147. bool ToggleFullscreen();
  12148. void UnsubscribeFromAllEvents();
  12149. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12150. void UnsubscribeFromEvent(Object, StringHash);
  12151. void UnsubscribeFromEvent(StringHash);
  12152. void UnsubscribeFromEvents(Object);
  12153. const Variant& GetGlobalVar(StringHash) const;
  12154. const VariantMap& GetGlobalVars() const;
  12155. int WeakRefs() const;
  12156. operator const Object() const;
  12157. operator const RefCounted() const;
  12158. // Properties:
  12159. /* readonly */
  12160. String apiName;
  12161. /* readonly */
  12162. bool borderless;
  12163. /* readonly */
  12164. String category;
  12165. /* readonly */
  12166. int currentMonitor;
  12167. /* readonly */
  12168. bool deferredSupport;
  12169. /* readonly */
  12170. Array<IntVector2> desktopResolution;
  12171. /* readonly */
  12172. bool deviceLost;
  12173. /* readonly */
  12174. Array<Vector3> displayDPI;
  12175. bool dither;
  12176. bool flushGPU;
  12177. /* readonly */
  12178. bool fullscreen;
  12179. Array<Variant> globalVar;
  12180. /* readonly */
  12181. VariantMap globalVars;
  12182. /* readonly */
  12183. bool hardwareShadowSupport;
  12184. /* readonly */
  12185. int height;
  12186. /* readonly */
  12187. bool initialized;
  12188. /* readonly */
  12189. bool instancingSupport;
  12190. /* readonly */
  12191. bool lightPrepassSupport;
  12192. /* readonly */
  12193. bool maximized;
  12194. /* readonly */
  12195. int monitorCount;
  12196. /* readonly */
  12197. int multiSample;
  12198. /* readonly */
  12199. Array<int> multiSampleLevels;
  12200. /* readonly */
  12201. uint numBatches;
  12202. /* readonly */
  12203. uint numPrimitives;
  12204. String orientations;
  12205. /* readonly */
  12206. bool readableDepthSupport;
  12207. /* readonly */
  12208. int refs;
  12209. /* readonly */
  12210. bool resizable;
  12211. /* readonly */
  12212. Array<Array<IntVector3>> resolutions;
  12213. bool sRGB;
  12214. /* readonly */
  12215. bool sRGBSupport;
  12216. /* readonly */
  12217. bool sRGBWriteSupport;
  12218. String shaderCacheDir;
  12219. /* readonly */
  12220. IntVector2 size;
  12221. /* readonly */
  12222. bool tripleBuffer;
  12223. /* readonly */
  12224. StringHash type;
  12225. /* readonly */
  12226. String typeName;
  12227. /* readonly */
  12228. bool vSync;
  12229. /* readonly */
  12230. int weakRefs;
  12231. /* readonly */
  12232. int width;
  12233. /* writeonly */
  12234. Image windowIcon;
  12235. IntVector2 windowPosition;
  12236. String windowTitle;
  12237. };
  12238. class HashBase
  12239. {
  12240. public:
  12241. ~HashBase();
  12242. HashBase();
  12243. // Methods:
  12244. HashBase& operator=(const HashBase&);
  12245. bool Empty() const;
  12246. int NumBuckets() const;
  12247. int Size() const;
  12248. void Swap(HashBase&);
  12249. // Constants:
  12250. static const int MAX_LOAD_FACTOR;
  12251. static const int MIN_BUCKETS;
  12252. };
  12253. class HashIteratorBase
  12254. {
  12255. public:
  12256. ~HashIteratorBase();
  12257. HashIteratorBase();
  12258. // Methods:
  12259. HashIteratorBase& operator=(const HashIteratorBase&);
  12260. bool operator==(const HashIteratorBase&) const;
  12261. void GotoNext();
  12262. void GotoPrev();
  12263. };
  12264. class HashNodeBase
  12265. {
  12266. public:
  12267. ~HashNodeBase();
  12268. HashNodeBase();
  12269. // Methods:
  12270. HashNodeBase& operator=(const HashNodeBase&);
  12271. };
  12272. class HeightfieldData
  12273. {
  12274. public:
  12275. HeightfieldData(Terrain&, int);
  12276. // Methods:
  12277. operator CollisionGeometryData() const;
  12278. operator RefCounted() const;
  12279. int Refs() const;
  12280. int WeakRefs() const;
  12281. operator const CollisionGeometryData() const;
  12282. operator const RefCounted() const;
  12283. // Properties:
  12284. float maxHeight;
  12285. float minHeight;
  12286. /* readonly */
  12287. int refs;
  12288. IntVector2 size;
  12289. Vector3 spacing;
  12290. /* readonly */
  12291. int weakRefs;
  12292. };
  12293. class HiresTimer
  12294. {
  12295. public:
  12296. ~HiresTimer();
  12297. HiresTimer();
  12298. // Methods:
  12299. HiresTimer& operator=(const HiresTimer&);
  12300. int64 GetUSec(bool);
  12301. void Reset();
  12302. };
  12303. class HttpRequest
  12304. {
  12305. public:
  12306. HttpRequest(const String&in, const String&in, String[]&, const String&in);
  12307. // Methods:
  12308. operator Deserializer() const;
  12309. int GetAvailableSize() const;
  12310. uint GetChecksum();
  12311. String GetError() const;
  12312. int64 GetPosition() const;
  12313. int64 GetSize() const;
  12314. HttpRequestState GetState() const;
  12315. bool IsEof() const;
  12316. bool IsOpen() const;
  12317. bool IsStarted() const;
  12318. Array<uint8> Read(uint);
  12319. bool ReadBool();
  12320. BoundingBox ReadBoundingBox();
  12321. Array<uint8> ReadBuffer();
  12322. int8 ReadByte();
  12323. Color ReadColor();
  12324. double ReadDouble();
  12325. String ReadFileID();
  12326. float ReadFloat();
  12327. int ReadInt();
  12328. int64 ReadInt64();
  12329. IntRect ReadIntRect();
  12330. IntVector2 ReadIntVector2();
  12331. IntVector3 ReadIntVector3();
  12332. String ReadLine();
  12333. Matrix3 ReadMatrix3();
  12334. Matrix3x4 ReadMatrix3x4();
  12335. Matrix4 ReadMatrix4();
  12336. uint ReadNetID();
  12337. Quaternion ReadPackedQuaternion();
  12338. Vector3 ReadPackedVector3(float);
  12339. Quaternion ReadQuaternion();
  12340. Rect ReadRect();
  12341. ResourceRef ReadResourceRef();
  12342. ResourceRefList ReadResourceRefList();
  12343. int16 ReadShort();
  12344. String ReadString();
  12345. StringHash ReadStringHash();
  12346. Array<String> ReadStringVector();
  12347. uint8 ReadUByte();
  12348. uint ReadUInt();
  12349. uint64 ReadUInt64();
  12350. uint16 ReadUShort();
  12351. uint ReadVLE();
  12352. Variant ReadVariant();
  12353. Variant ReadVariant(VariantType);
  12354. VariantMap ReadVariantMap();
  12355. Vector2 ReadVector2();
  12356. Vector3 ReadVector3();
  12357. Vector4 ReadVector4();
  12358. VectorBuffer ReadVectorBuffer(uint);
  12359. operator RefCounted() const;
  12360. int Refs() const;
  12361. bool Run();
  12362. int64 Seek(int64);
  12363. int64 SeekRelative(int64);
  12364. void SetPriority(int);
  12365. void Stop();
  12366. const String& GetName() const;
  12367. const String& GetURL() const;
  12368. const String& GetVerb() const;
  12369. int64 Tell() const;
  12370. void ThreadFunction();
  12371. int WeakRefs() const;
  12372. operator const Deserializer() const;
  12373. operator const RefCounted() const;
  12374. // Properties:
  12375. /* readonly */
  12376. int availableSize;
  12377. /* readonly */
  12378. uint checksum;
  12379. /* readonly */
  12380. bool eof;
  12381. /* readonly */
  12382. String error;
  12383. /* readonly */
  12384. String name;
  12385. /* readonly */
  12386. bool open;
  12387. /* readonly */
  12388. int64 position;
  12389. /* readonly */
  12390. int refs;
  12391. /* readonly */
  12392. int64 size;
  12393. /* readonly */
  12394. HttpRequestState state;
  12395. /* readonly */
  12396. String url;
  12397. /* readonly */
  12398. String verb;
  12399. /* readonly */
  12400. int weakRefs;
  12401. };
  12402. class IKConstraint
  12403. {
  12404. public:
  12405. IKConstraint();
  12406. // Methods:
  12407. void AllocateNetworkState();
  12408. operator Animatable() const;
  12409. void ApplyAttributes();
  12410. void CleanupConnection(Connection);
  12411. operator Component() const;
  12412. void DrawDebugGeometry(DebugRenderer, bool);
  12413. bool GetAnimationEnabled() const;
  12414. Variant GetAttribute(const String&) const;
  12415. Variant GetAttribute(uint) const;
  12416. ValueAnimation GetAttributeAnimation(const String&) const;
  12417. float GetAttributeAnimationSpeed(const String&) const;
  12418. float GetAttributeAnimationTime(const String&) const;
  12419. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12420. Variant GetAttributeDefault(const String&) const;
  12421. Variant GetAttributeDefault(uint) const;
  12422. bool GetBlockEvents() const;
  12423. Component GetComponent(StringHash) const;
  12424. VariantMap& GetEventDataMap() const;
  12425. Object GetEventSender() const;
  12426. uint GetID() const;
  12427. bool GetInterceptNetworkUpdate(const String&) const;
  12428. Node GetNode() const;
  12429. uint GetNumAttributes() const;
  12430. uint GetNumNetworkAttributes() const;
  12431. ObjectAnimation GetObjectAnimation() const;
  12432. ResourceRef GetObjectAnimationAttr() const;
  12433. Scene GetScene() const;
  12434. float GetStiffness() const;
  12435. float GetStretchiness() const;
  12436. Object GetSubsystem(StringHash) const;
  12437. StringHash GetType() const;
  12438. bool HasEventHandlers() const;
  12439. bool HasSubscribedToEvent(Object, StringHash) const;
  12440. bool HasSubscribedToEvent(StringHash) const;
  12441. bool IsEnabled() const;
  12442. bool IsEnabledEffective() const;
  12443. bool IsInstanceOf(StringHash) const;
  12444. bool IsReplicated() const;
  12445. bool IsTemporary() const;
  12446. bool Load(Deserializer&);
  12447. bool LoadJSON(const JSONValue&);
  12448. bool LoadXML(const XMLElement&);
  12449. void MarkNetworkUpdate();
  12450. operator Object() const;
  12451. void OnEvent(Object, StringHash, VariantMap&);
  12452. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12453. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12454. void OnSetEnabled();
  12455. void PrepareNetworkUpdate();
  12456. bool ReadDeltaUpdate(Deserializer&);
  12457. bool ReadLatestDataUpdate(Deserializer&);
  12458. operator RefCounted() const;
  12459. int Refs() const;
  12460. void Remove();
  12461. void RemoveAttributeAnimation(const String&);
  12462. void RemoveInstanceDefault();
  12463. void RemoveObjectAnimation();
  12464. void ResetToDefault();
  12465. bool Save(Serializer&) const;
  12466. bool SaveDefaultAttributes() const;
  12467. bool SaveJSON(JSONValue&) const;
  12468. bool SaveXML(XMLElement&) const;
  12469. void SendEvent(StringHash);
  12470. void SendEvent(StringHash, VariantMap&);
  12471. operator Serializable() const;
  12472. void SetAnimationEnabled(bool);
  12473. void SetAnimationTime(float);
  12474. bool SetAttribute(const String&, const Variant&);
  12475. bool SetAttribute(uint, const Variant&);
  12476. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12477. void SetAttributeAnimationSpeed(const String&, float);
  12478. void SetAttributeAnimationTime(const String&, float);
  12479. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12480. void SetBlockEvents(bool);
  12481. void SetEnabled(bool);
  12482. void SetGlobalVar(StringHash, const Variant&);
  12483. void SetInstanceDefault(bool);
  12484. void SetInterceptNetworkUpdate(const String&, bool);
  12485. void SetLengthConstraints(const Vector2&);
  12486. void SetObjectAnimation(ObjectAnimation);
  12487. void SetObjectAnimationAttr(const ResourceRef&);
  12488. void SetStiffness(float);
  12489. void SetStretchiness(float);
  12490. void SetTemporary(bool);
  12491. const String& GetCategory() const;
  12492. const String& GetTypeName() const;
  12493. void UnsubscribeFromAllEvents();
  12494. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12495. void UnsubscribeFromEvent(Object, StringHash);
  12496. void UnsubscribeFromEvent(StringHash);
  12497. void UnsubscribeFromEvents(Object);
  12498. const Variant& GetGlobalVar(StringHash) const;
  12499. const VariantMap& GetGlobalVars() const;
  12500. const Vector2& GetLengthConstraints() const;
  12501. int WeakRefs() const;
  12502. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12503. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12504. void WriteLatestDataUpdate(Serializer&, uint8);
  12505. operator const Animatable() const;
  12506. operator const Component() const;
  12507. operator const Object() const;
  12508. operator const RefCounted() const;
  12509. operator const Serializable() const;
  12510. // Properties:
  12511. bool animationEnabled;
  12512. /* readonly */
  12513. Array<Variant> attributeDefaults;
  12514. /* readonly */
  12515. Array<AttributeInfo> attributeInfos;
  12516. Array<Variant> attributes;
  12517. /* readonly */
  12518. String category;
  12519. bool enabled;
  12520. /* readonly */
  12521. bool enabledEffective;
  12522. Array<Variant> globalVar;
  12523. /* readonly */
  12524. VariantMap globalVars;
  12525. /* readonly */
  12526. uint id;
  12527. /* readonly */
  12528. Node node;
  12529. /* readonly */
  12530. uint numAttributes;
  12531. ObjectAnimation objectAnimation;
  12532. /* readonly */
  12533. int refs;
  12534. /* readonly */
  12535. bool replicated;
  12536. bool temporary;
  12537. /* readonly */
  12538. StringHash type;
  12539. /* readonly */
  12540. String typeName;
  12541. /* readonly */
  12542. int weakRefs;
  12543. };
  12544. class IKEffector
  12545. {
  12546. public:
  12547. IKEffector();
  12548. // Methods:
  12549. void AllocateNetworkState();
  12550. operator Animatable() const;
  12551. void ApplyAttributes();
  12552. void CleanupConnection(Connection);
  12553. operator Component() const;
  12554. void DrawDebugGeometry(DebugRenderer, bool);
  12555. void DrawDebugGeometry(bool);
  12556. bool GetAnimationEnabled() const;
  12557. Variant GetAttribute(const String&) const;
  12558. Variant GetAttribute(uint) const;
  12559. ValueAnimation GetAttributeAnimation(const String&) const;
  12560. float GetAttributeAnimationSpeed(const String&) const;
  12561. float GetAttributeAnimationTime(const String&) const;
  12562. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12563. Variant GetAttributeDefault(const String&) const;
  12564. Variant GetAttributeDefault(uint) const;
  12565. bool GetBlockEvents() const;
  12566. uint GetChainLength() const;
  12567. Component GetComponent(StringHash) const;
  12568. VariantMap& GetEventDataMap() const;
  12569. Object GetEventSender() const;
  12570. uint GetID() const;
  12571. bool GetINHERIT_PARENT_ROTATION() const;
  12572. bool GetInterceptNetworkUpdate(const String&) const;
  12573. Node GetNode() const;
  12574. uint GetNumAttributes() const;
  12575. uint GetNumNetworkAttributes() const;
  12576. ObjectAnimation GetObjectAnimation() const;
  12577. ResourceRef GetObjectAnimationAttr() const;
  12578. float GetRotationDecay() const;
  12579. float GetRotationWeight() const;
  12580. Scene GetScene() const;
  12581. Object GetSubsystem(StringHash) const;
  12582. Node GetTargetNode() const;
  12583. Vector3 GetTargetRotationEuler() const;
  12584. StringHash GetType() const;
  12585. bool GetWEIGHT_NLERP() const;
  12586. float GetWeight() const;
  12587. bool HasEventHandlers() const;
  12588. bool HasSubscribedToEvent(Object, StringHash) const;
  12589. bool HasSubscribedToEvent(StringHash) const;
  12590. bool IsEnabled() const;
  12591. bool IsEnabledEffective() const;
  12592. bool IsInstanceOf(StringHash) const;
  12593. bool IsReplicated() const;
  12594. bool IsTemporary() const;
  12595. bool Load(Deserializer&);
  12596. bool LoadJSON(const JSONValue&);
  12597. bool LoadXML(const XMLElement&);
  12598. void MarkNetworkUpdate();
  12599. operator Object() const;
  12600. void OnEvent(Object, StringHash, VariantMap&);
  12601. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12602. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12603. void OnSetEnabled();
  12604. void PrepareNetworkUpdate();
  12605. const Quaternion& GetTargetRotation() const;
  12606. bool ReadDeltaUpdate(Deserializer&);
  12607. bool ReadLatestDataUpdate(Deserializer&);
  12608. operator RefCounted() const;
  12609. int Refs() const;
  12610. void Remove();
  12611. void RemoveAttributeAnimation(const String&);
  12612. void RemoveInstanceDefault();
  12613. void RemoveObjectAnimation();
  12614. void ResetToDefault();
  12615. bool Save(Serializer&) const;
  12616. bool SaveDefaultAttributes() const;
  12617. bool SaveJSON(JSONValue&) const;
  12618. bool SaveXML(XMLElement&) const;
  12619. void SendEvent(StringHash);
  12620. void SendEvent(StringHash, VariantMap&);
  12621. operator Serializable() const;
  12622. void SetAnimationEnabled(bool);
  12623. void SetAnimationTime(float);
  12624. bool SetAttribute(const String&, const Variant&);
  12625. bool SetAttribute(uint, const Variant&);
  12626. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12627. void SetAttributeAnimationSpeed(const String&, float);
  12628. void SetAttributeAnimationTime(const String&, float);
  12629. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12630. void SetBlockEvents(bool);
  12631. void SetChainLength(uint);
  12632. void SetEnabled(bool);
  12633. void SetGlobalVar(StringHash, const Variant&);
  12634. void SetINHERIT_PARENT_ROTATION(bool);
  12635. void SetInstanceDefault(bool);
  12636. void SetInterceptNetworkUpdate(const String&, bool);
  12637. void SetObjectAnimation(ObjectAnimation);
  12638. void SetObjectAnimationAttr(const ResourceRef&);
  12639. void SetRotationDecay(float);
  12640. void SetRotationWeight(float);
  12641. void SetTargetName(const String&);
  12642. void SetTargetNode(Node);
  12643. void SetTargetPosition(const Vector3&);
  12644. void SetTargetRotation(const Quaternion&);
  12645. void SetTargetRotationEuler(const Vector3&);
  12646. void SetTemporary(bool);
  12647. void SetWEIGHT_NLERP(bool);
  12648. void SetWeight(float);
  12649. const String& GetCategory() const;
  12650. const String& GetTargetName() const;
  12651. const String& GetTypeName() const;
  12652. void UnsubscribeFromAllEvents();
  12653. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12654. void UnsubscribeFromEvent(Object, StringHash);
  12655. void UnsubscribeFromEvent(StringHash);
  12656. void UnsubscribeFromEvents(Object);
  12657. const Variant& GetGlobalVar(StringHash) const;
  12658. const VariantMap& GetGlobalVars() const;
  12659. const Vector3& GetTargetPosition() const;
  12660. int WeakRefs() const;
  12661. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12662. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12663. void WriteLatestDataUpdate(Serializer&, uint8);
  12664. operator const Animatable() const;
  12665. operator const Component() const;
  12666. operator const Object() const;
  12667. operator const RefCounted() const;
  12668. operator const Serializable() const;
  12669. // Properties:
  12670. bool animationEnabled;
  12671. /* readonly */
  12672. Array<Variant> attributeDefaults;
  12673. /* readonly */
  12674. Array<AttributeInfo> attributeInfos;
  12675. Array<Variant> attributes;
  12676. /* readonly */
  12677. String category;
  12678. uint chainLength;
  12679. bool enabled;
  12680. /* readonly */
  12681. bool enabledEffective;
  12682. Array<Variant> globalVar;
  12683. /* readonly */
  12684. VariantMap globalVars;
  12685. /* readonly */
  12686. uint id;
  12687. /* readonly */
  12688. Node node;
  12689. /* readonly */
  12690. uint numAttributes;
  12691. ObjectAnimation objectAnimation;
  12692. /* readonly */
  12693. int refs;
  12694. /* readonly */
  12695. bool replicated;
  12696. float rotationDecay;
  12697. float rotationWeight;
  12698. String targetName;
  12699. Node targetNode;
  12700. Vector3 targetPosition;
  12701. Quaternion targetRotation;
  12702. bool temporary;
  12703. /* readonly */
  12704. StringHash type;
  12705. /* readonly */
  12706. String typeName;
  12707. /* readonly */
  12708. int weakRefs;
  12709. float weight;
  12710. };
  12711. class IKSolver
  12712. {
  12713. public:
  12714. IKSolver();
  12715. // Methods:
  12716. void AllocateNetworkState();
  12717. operator Animatable() const;
  12718. void ApplyActivePoseToScene();
  12719. void ApplyAttributes();
  12720. void ApplyOriginalPoseToActivePose();
  12721. void ApplyOriginalPoseToScene();
  12722. void ApplySceneToActivePose();
  12723. void ApplySceneToOriginalPose();
  12724. void CalculateJointRotations();
  12725. void CleanupConnection(Connection);
  12726. operator Component() const;
  12727. void DrawDebugGeometry(DebugRenderer, bool);
  12728. void DrawDebugGeometry(bool);
  12729. bool GetAUTO_SOLVE() const;
  12730. bool GetAnimationEnabled() const;
  12731. Variant GetAttribute(const String&) const;
  12732. Variant GetAttribute(uint) const;
  12733. ValueAnimation GetAttributeAnimation(const String&) const;
  12734. float GetAttributeAnimationSpeed(const String&) const;
  12735. float GetAttributeAnimationTime(const String&) const;
  12736. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  12737. Variant GetAttributeDefault(const String&) const;
  12738. Variant GetAttributeDefault(uint) const;
  12739. bool GetBlockEvents() const;
  12740. bool GetCONSTRAINTS() const;
  12741. Component GetComponent(StringHash) const;
  12742. VariantMap& GetEventDataMap() const;
  12743. Object GetEventSender() const;
  12744. uint GetID() const;
  12745. bool GetInterceptNetworkUpdate(const String&) const;
  12746. bool GetJOINT_ROTATIONS() const;
  12747. uint GetMaximumIterations() const;
  12748. Node GetNode() const;
  12749. uint GetNumAttributes() const;
  12750. uint GetNumNetworkAttributes() const;
  12751. ObjectAnimation GetObjectAnimation() const;
  12752. ResourceRef GetObjectAnimationAttr() const;
  12753. Scene GetScene() const;
  12754. Object GetSubsystem(StringHash) const;
  12755. bool GetTARGET_ROTATIONS() const;
  12756. float GetTolerance() const;
  12757. StringHash GetType() const;
  12758. bool GetUPDATE_ACTIVE_POSE() const;
  12759. bool GetUPDATE_ORIGINAL_POSE() const;
  12760. bool GetUSE_ORIGINAL_POSE() const;
  12761. bool HasEventHandlers() const;
  12762. bool HasSubscribedToEvent(Object, StringHash) const;
  12763. bool HasSubscribedToEvent(StringHash) const;
  12764. bool IsEnabled() const;
  12765. bool IsEnabledEffective() const;
  12766. bool IsInstanceOf(StringHash) const;
  12767. bool IsReplicated() const;
  12768. bool IsTemporary() const;
  12769. bool Load(Deserializer&);
  12770. bool LoadJSON(const JSONValue&);
  12771. bool LoadXML(const XMLElement&);
  12772. void MarkNetworkUpdate();
  12773. operator Object() const;
  12774. void OnEvent(Object, StringHash, VariantMap&);
  12775. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  12776. void OnSetAttribute(const AttributeInfo&, const Variant&);
  12777. void OnSetEnabled();
  12778. void PrepareNetworkUpdate();
  12779. bool ReadDeltaUpdate(Deserializer&);
  12780. bool ReadLatestDataUpdate(Deserializer&);
  12781. void RebuildChainTrees();
  12782. void RecalculateSegmentLengths();
  12783. operator RefCounted() const;
  12784. int Refs() const;
  12785. void Remove();
  12786. void RemoveAttributeAnimation(const String&);
  12787. void RemoveInstanceDefault();
  12788. void RemoveObjectAnimation();
  12789. void ResetToDefault();
  12790. bool Save(Serializer&) const;
  12791. bool SaveDefaultAttributes() const;
  12792. bool SaveJSON(JSONValue&) const;
  12793. bool SaveXML(XMLElement&) const;
  12794. void SendEvent(StringHash);
  12795. void SendEvent(StringHash, VariantMap&);
  12796. operator Serializable() const;
  12797. void SetAUTO_SOLVE(bool);
  12798. void SetAnimationEnabled(bool);
  12799. void SetAnimationTime(float);
  12800. bool SetAttribute(const String&, const Variant&);
  12801. bool SetAttribute(uint, const Variant&);
  12802. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  12803. void SetAttributeAnimationSpeed(const String&, float);
  12804. void SetAttributeAnimationTime(const String&, float);
  12805. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  12806. void SetBlockEvents(bool);
  12807. void SetCONSTRAINTS(bool);
  12808. void SetEnabled(bool);
  12809. void SetGlobalVar(StringHash, const Variant&);
  12810. void SetInstanceDefault(bool);
  12811. void SetInterceptNetworkUpdate(const String&, bool);
  12812. void SetJOINT_ROTATIONS(bool);
  12813. void SetMaximumIterations(uint);
  12814. void SetObjectAnimation(ObjectAnimation);
  12815. void SetObjectAnimationAttr(const ResourceRef&);
  12816. void SetTARGET_ROTATIONS(bool);
  12817. void SetTemporary(bool);
  12818. void SetTolerance(float);
  12819. void SetUPDATE_ACTIVE_POSE(bool);
  12820. void SetUPDATE_ORIGINAL_POSE(bool);
  12821. void SetUSE_ORIGINAL_POSE(bool);
  12822. void Solve();
  12823. const String& GetCategory() const;
  12824. const String& GetTypeName() const;
  12825. void UnsubscribeFromAllEvents();
  12826. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12827. void UnsubscribeFromEvent(Object, StringHash);
  12828. void UnsubscribeFromEvent(StringHash);
  12829. void UnsubscribeFromEvents(Object);
  12830. const Variant& GetGlobalVar(StringHash) const;
  12831. const VariantMap& GetGlobalVars() const;
  12832. int WeakRefs() const;
  12833. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  12834. void WriteInitialDeltaUpdate(Serializer&, uint8);
  12835. void WriteLatestDataUpdate(Serializer&, uint8);
  12836. operator const Animatable() const;
  12837. operator const Component() const;
  12838. operator const Object() const;
  12839. operator const RefCounted() const;
  12840. operator const Serializable() const;
  12841. // Properties:
  12842. bool AUTO_SOLVE;
  12843. bool CONSTRAINTS;
  12844. bool JOINT_ROTATIONS;
  12845. bool TARGET_ROTATIONS;
  12846. bool UPDATE_ACTIVE_POSE;
  12847. bool UPDATE_ORIGINAL_POSE;
  12848. bool USE_ORIGINAL_POSE;
  12849. IKAlgorithm algorithm;
  12850. bool animationEnabled;
  12851. /* readonly */
  12852. Array<Variant> attributeDefaults;
  12853. /* readonly */
  12854. Array<AttributeInfo> attributeInfos;
  12855. Array<Variant> attributes;
  12856. /* readonly */
  12857. String category;
  12858. bool enabled;
  12859. /* readonly */
  12860. bool enabledEffective;
  12861. Array<Variant> globalVar;
  12862. /* readonly */
  12863. VariantMap globalVars;
  12864. /* readonly */
  12865. uint id;
  12866. uint maximumIterations;
  12867. /* readonly */
  12868. Node node;
  12869. /* readonly */
  12870. uint numAttributes;
  12871. ObjectAnimation objectAnimation;
  12872. /* readonly */
  12873. int refs;
  12874. /* readonly */
  12875. bool replicated;
  12876. bool temporary;
  12877. float tolerance;
  12878. /* readonly */
  12879. StringHash type;
  12880. /* readonly */
  12881. String typeName;
  12882. /* readonly */
  12883. int weakRefs;
  12884. };
  12885. class Image
  12886. {
  12887. public:
  12888. Image();
  12889. // Methods:
  12890. bool BeginLoad(Deserializer&);
  12891. void CleanupLevels();
  12892. void Clear(const Color&);
  12893. void ClearInt(uint);
  12894. Image ConvertToRGBA() const;
  12895. bool EndLoad();
  12896. bool FlipHorizontal();
  12897. bool FlipVertical();
  12898. AsyncLoadState GetAsyncLoadState() const;
  12899. bool GetBlockEvents() const;
  12900. uint GetComponents() const;
  12901. CompressedFormat GetCompressedFormat() const;
  12902. CompressedLevel GetCompressedLevel(uint) const;
  12903. Image GetDecompressedImage() const;
  12904. int GetDepth() const;
  12905. VariantMap& GetEventDataMap() const;
  12906. Object GetEventSender() const;
  12907. int GetHeight() const;
  12908. uint GetMemoryUse() const;
  12909. StringHash GetNameHash() const;
  12910. Image GetNextLevel() const;
  12911. Image GetNextSibling() const;
  12912. uint GetNumCompressedLevels() const;
  12913. Color GetPixel(int, int) const;
  12914. Color GetPixel(int, int, int) const;
  12915. Color GetPixelBilinear(float, float) const;
  12916. uint GetPixelInt(int, int) const;
  12917. uint GetPixelInt(int, int, int) const;
  12918. Color GetPixelTrilinear(float, float, float) const;
  12919. Image GetSubimage(const IntRect&) const;
  12920. Object GetSubsystem(StringHash) const;
  12921. StringHash GetType() const;
  12922. uint GetUseTimer();
  12923. int GetWidth() const;
  12924. bool HasAlphaChannel() const;
  12925. bool HasEventHandlers() const;
  12926. bool HasSubscribedToEvent(Object, StringHash) const;
  12927. bool HasSubscribedToEvent(StringHash) const;
  12928. bool IsArray() const;
  12929. bool IsCompressed() const;
  12930. bool IsCubemap() const;
  12931. bool IsInstanceOf(StringHash) const;
  12932. bool IsSRGB() const;
  12933. bool Load(Deserializer&);
  12934. bool Load(File);
  12935. bool Load(VectorBuffer&);
  12936. bool Load(const String&);
  12937. bool LoadColorLUT(Deserializer&);
  12938. bool LoadFile(const String&);
  12939. operator Object() const;
  12940. void OnEvent(Object, StringHash, VariantMap&);
  12941. void PrecalculateLevels();
  12942. operator RefCounted() const;
  12943. int Refs() const;
  12944. void ResetUseTimer();
  12945. bool Resize(int, int);
  12946. operator Resource() const;
  12947. bool Save(File) const;
  12948. bool Save(Serializer&) const;
  12949. bool Save(VectorBuffer&) const;
  12950. bool Save(const String&) const;
  12951. bool SaveBMP(const String&) const;
  12952. bool SaveDDS(const String&) const;
  12953. bool SaveFile(const String&) const;
  12954. bool SaveJPG(const String&, int) const;
  12955. bool SavePNG(const String&) const;
  12956. bool SaveTGA(const String&) const;
  12957. bool SaveWEBP(const String&, float = 0.0f) const;
  12958. void SendEvent(StringHash);
  12959. void SendEvent(StringHash, VariantMap&);
  12960. void SetAsyncLoadState(AsyncLoadState);
  12961. void SetBlockEvents(bool);
  12962. void SetGlobalVar(StringHash, const Variant&);
  12963. void SetMemoryUse(uint);
  12964. void SetName(const String&);
  12965. void SetPixel(int, int, const Color&);
  12966. void SetPixel(int, int, int, const Color&);
  12967. void SetPixelInt(int, int, int, uint);
  12968. void SetPixelInt(int, int, uint);
  12969. bool SetSize(int, int, int, uint);
  12970. bool SetSize(int, int, uint);
  12971. bool SetSubimage(Image, const IntRect&);
  12972. const String& GetCategory() const;
  12973. const String& GetName() const;
  12974. const String& GetTypeName() const;
  12975. void UnsubscribeFromAllEvents();
  12976. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  12977. void UnsubscribeFromEvent(Object, StringHash);
  12978. void UnsubscribeFromEvent(StringHash);
  12979. void UnsubscribeFromEvents(Object);
  12980. const Variant& GetGlobalVar(StringHash) const;
  12981. const VariantMap& GetGlobalVars() const;
  12982. int WeakRefs() const;
  12983. operator const Object() const;
  12984. operator const RefCounted() const;
  12985. operator const Resource() const;
  12986. // Properties:
  12987. /* readonly */
  12988. bool array;
  12989. /* readonly */
  12990. String category;
  12991. /* readonly */
  12992. uint components;
  12993. /* readonly */
  12994. bool compressed;
  12995. /* readonly */
  12996. CompressedFormat compressedFormat;
  12997. /* readonly */
  12998. bool cubemap;
  12999. /* readonly */
  13000. int depth;
  13001. Array<Variant> globalVar;
  13002. /* readonly */
  13003. VariantMap globalVars;
  13004. /* readonly */
  13005. bool hasAlphaChannel;
  13006. /* readonly */
  13007. int height;
  13008. /* readonly */
  13009. uint memoryUse;
  13010. String name;
  13011. /* readonly */
  13012. uint numCompressedLevels;
  13013. /* readonly */
  13014. int refs;
  13015. /* readonly */
  13016. bool sRGB;
  13017. /* readonly */
  13018. StringHash type;
  13019. /* readonly */
  13020. String typeName;
  13021. /* readonly */
  13022. uint useTimer;
  13023. /* readonly */
  13024. int weakRefs;
  13025. /* readonly */
  13026. int width;
  13027. };
  13028. class IndexBuffer
  13029. {
  13030. public:
  13031. IndexBuffer(bool = false);
  13032. // Methods:
  13033. void ClearDataLost();
  13034. bool GetBlockEvents() const;
  13035. VectorBuffer GetData();
  13036. VariantMap& GetEventDataMap() const;
  13037. Object GetEventSender() const;
  13038. uint GetGPUObjectName() const;
  13039. Graphics GetGraphics() const;
  13040. int GetIndexCount() const;
  13041. int GetIndexSize() const;
  13042. Object GetSubsystem(StringHash) const;
  13043. StringHash GetType() const;
  13044. bool GetUsedVertexRange(int, int, int&, int&);
  13045. bool HasEventHandlers() const;
  13046. bool HasPendingData() const;
  13047. bool HasSubscribedToEvent(Object, StringHash) const;
  13048. bool HasSubscribedToEvent(StringHash) const;
  13049. bool IsDataLost() const;
  13050. bool IsDynamic() const;
  13051. bool IsInstanceOf(StringHash) const;
  13052. bool IsLocked() const;
  13053. bool IsShadowed() const;
  13054. operator Object() const;
  13055. void OnDeviceLost();
  13056. void OnDeviceReset();
  13057. void OnEvent(Object, StringHash, VariantMap&);
  13058. operator RefCounted() const;
  13059. int Refs() const;
  13060. void Release();
  13061. void SendEvent(StringHash);
  13062. void SendEvent(StringHash, VariantMap&);
  13063. void SetBlockEvents(bool);
  13064. bool SetData(VectorBuffer&);
  13065. bool SetDataRange(VectorBuffer&, uint, uint, bool discard = false);
  13066. void SetGlobalVar(StringHash, const Variant&);
  13067. void SetShadowed(bool);
  13068. bool SetSize(int, bool, bool = false);
  13069. const String& GetCategory() const;
  13070. const String& GetTypeName() const;
  13071. void Unlock();
  13072. void UnsubscribeFromAllEvents();
  13073. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13074. void UnsubscribeFromEvent(Object, StringHash);
  13075. void UnsubscribeFromEvent(StringHash);
  13076. void UnsubscribeFromEvents(Object);
  13077. const Variant& GetGlobalVar(StringHash) const;
  13078. const VariantMap& GetGlobalVars() const;
  13079. int WeakRefs() const;
  13080. operator const Object() const;
  13081. operator const RefCounted() const;
  13082. // Properties:
  13083. /* readonly */
  13084. String category;
  13085. /* readonly */
  13086. bool dataLost;
  13087. /* readonly */
  13088. bool dynamic;
  13089. Array<Variant> globalVar;
  13090. /* readonly */
  13091. VariantMap globalVars;
  13092. /* readonly */
  13093. int indexCount;
  13094. /* readonly */
  13095. int indexSize;
  13096. /* readonly */
  13097. int refs;
  13098. bool shadowed;
  13099. /* readonly */
  13100. StringHash type;
  13101. /* readonly */
  13102. String typeName;
  13103. /* readonly */
  13104. int weakRefs;
  13105. };
  13106. class IndexBufferDesc
  13107. {
  13108. public:
  13109. ~IndexBufferDesc();
  13110. IndexBufferDesc();
  13111. // Methods:
  13112. IndexBufferDesc& operator=(const IndexBufferDesc&);
  13113. // Properties:
  13114. uint dataSize;
  13115. uint indexCount;
  13116. uint indexSize;
  13117. };
  13118. class Input
  13119. {
  13120. public:
  13121. Input();
  13122. // Methods:
  13123. int AddScreenJoystick(XMLFile = null, XMLFile = null);
  13124. void CenterMousePosition();
  13125. bool GetBlockEvents() const;
  13126. VariantMap& GetEventDataMap() const;
  13127. Object GetEventSender() const;
  13128. Vector2 GetInputScale() const;
  13129. JoystickState GetJoystick(int);
  13130. JoystickState GetJoystickByIndex(uint);
  13131. JoystickState GetJoystickByName(const String&);
  13132. bool GetKeyDown(uint) const;
  13133. uint GetKeyFromName(const String&) const;
  13134. uint GetKeyFromScancode(uint) const;
  13135. String GetKeyName(uint) const;
  13136. bool GetKeyPress(uint) const;
  13137. bool GetMouseButtonDown(uint) const;
  13138. bool GetMouseButtonPress(uint) const;
  13139. MouseMode GetMouseMode() const;
  13140. IntVector2 GetMouseMove() const;
  13141. int GetMouseMoveWheel() const;
  13142. int GetMouseMoveX() const;
  13143. int GetMouseMoveY() const;
  13144. IntVector2 GetMousePosition() const;
  13145. uint GetNumJoysticks() const;
  13146. uint GetNumTouches() const;
  13147. bool GetQualifierDown(uint) const;
  13148. bool GetQualifierPress(uint) const;
  13149. uint GetQualifiers() const;
  13150. bool GetScancodeDown(uint) const;
  13151. uint GetScancodeFromKey(uint) const;
  13152. uint GetScancodeFromName(const String&) const;
  13153. String GetScancodeName(uint) const;
  13154. bool GetScancodePress(uint) const;
  13155. bool GetScreenKeyboardSupport() const;
  13156. Object GetSubsystem(StringHash) const;
  13157. bool GetToggleFullscreen() const;
  13158. TouchState GetTouch(uint) const;
  13159. bool GetTouchEmulation() const;
  13160. StringHash GetType() const;
  13161. bool HasEventHandlers() const;
  13162. bool HasFocus();
  13163. bool HasSubscribedToEvent(Object, StringHash) const;
  13164. bool HasSubscribedToEvent(StringHash) const;
  13165. bool IsInstanceOf(StringHash) const;
  13166. bool IsMinimized() const;
  13167. bool IsMouseGrabbed() const;
  13168. bool IsMouseLocked() const;
  13169. bool IsMouseVisible() const;
  13170. bool IsScreenJoystickVisible(int) const;
  13171. bool IsScreenKeyboardVisible() const;
  13172. uint LoadGestures(Deserializer&);
  13173. uint LoadGestures(File);
  13174. uint LoadGestures(VectorBuffer&);
  13175. operator Object() const;
  13176. void OnEvent(Object, StringHash, VariantMap&);
  13177. bool RecordGesture();
  13178. operator RefCounted() const;
  13179. int Refs() const;
  13180. void RemoveAllGestures();
  13181. bool RemoveGesture(uint);
  13182. bool RemoveScreenJoystick(int);
  13183. void ResetMouseGrabbed();
  13184. void ResetMouseMode();
  13185. void ResetMouseVisible();
  13186. bool SaveGesture(File, uint);
  13187. bool SaveGesture(Serializer&, uint);
  13188. bool SaveGesture(VectorBuffer&, uint);
  13189. bool SaveGestures(File);
  13190. bool SaveGestures(Serializer&);
  13191. bool SaveGestures(VectorBuffer&);
  13192. void SendEvent(StringHash);
  13193. void SendEvent(StringHash, VariantMap&);
  13194. void SetBlockEvents(bool);
  13195. void SetGlobalVar(StringHash, const Variant&);
  13196. void SetMouseGrabbed(bool, bool = false);
  13197. void SetMouseMode(MouseMode, bool = false);
  13198. void SetMousePosition(const IntVector2&);
  13199. void SetMouseVisible(bool, bool = false);
  13200. void SetScreenJoystickVisible(int, bool);
  13201. void SetScreenKeyboardVisible(bool);
  13202. void SetToggleFullscreen(bool);
  13203. void SetTouchEmulation(bool);
  13204. const String& GetCategory() const;
  13205. const String& GetTypeName() const;
  13206. void UnsubscribeFromAllEvents();
  13207. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13208. void UnsubscribeFromEvent(Object, StringHash);
  13209. void UnsubscribeFromEvent(StringHash);
  13210. void UnsubscribeFromEvents(Object);
  13211. void Update();
  13212. const Variant& GetGlobalVar(StringHash) const;
  13213. const VariantMap& GetGlobalVars() const;
  13214. int WeakRefs() const;
  13215. operator const Object() const;
  13216. operator const RefCounted() const;
  13217. // Properties:
  13218. /* readonly */
  13219. String category;
  13220. /* readonly */
  13221. bool focus;
  13222. Array<Variant> globalVar;
  13223. /* readonly */
  13224. VariantMap globalVars;
  13225. /* readonly */
  13226. Vector2 inputScale;
  13227. /* readonly */
  13228. Array<JoystickState> joysticks;
  13229. /* readonly */
  13230. Array<JoystickState> joysticksByIndex;
  13231. /* readonly */
  13232. Array<JoystickState> joysticksByName;
  13233. /* readonly */
  13234. Array<bool> keyDown;
  13235. /* readonly */
  13236. Array<bool> keyPress;
  13237. /* readonly */
  13238. bool minimized;
  13239. /* readonly */
  13240. Array<bool> mouseButtonDown;
  13241. /* readonly */
  13242. Array<bool> mouseButtonPress;
  13243. bool mouseGrabbed;
  13244. /* readonly */
  13245. bool mouseLocked;
  13246. MouseMode mouseMode;
  13247. /* readonly */
  13248. IntVector2 mouseMove;
  13249. /* readonly */
  13250. int mouseMoveWheel;
  13251. /* readonly */
  13252. int mouseMoveX;
  13253. /* readonly */
  13254. int mouseMoveY;
  13255. IntVector2 mousePosition;
  13256. bool mouseVisible;
  13257. /* readonly */
  13258. uint numJoysticks;
  13259. /* readonly */
  13260. uint numTouches;
  13261. /* readonly */
  13262. Array<bool> qualifierDown;
  13263. /* readonly */
  13264. Array<bool> qualifierPress;
  13265. /* readonly */
  13266. uint qualifiers;
  13267. /* readonly */
  13268. int refs;
  13269. /* readonly */
  13270. Array<bool> scancodeDown;
  13271. /* readonly */
  13272. Array<bool> scancodePress;
  13273. Array<bool> screenJoystickVisible;
  13274. /* readonly */
  13275. bool screenKeyboardSupport;
  13276. bool screenKeyboardVisible;
  13277. bool toggleFullscreen;
  13278. bool touchEmulation;
  13279. /* readonly */
  13280. Array<TouchState> touches;
  13281. /* readonly */
  13282. StringHash type;
  13283. /* readonly */
  13284. String typeName;
  13285. /* readonly */
  13286. int weakRefs;
  13287. };
  13288. class InstanceData
  13289. {
  13290. public:
  13291. ~InstanceData();
  13292. InstanceData();
  13293. // Methods:
  13294. InstanceData& operator=(const InstanceData&);
  13295. // Properties:
  13296. float distance;
  13297. };
  13298. class IntRect
  13299. {
  13300. public:
  13301. IntRect();
  13302. IntRect(const IntVector2&in, const IntVector2&in);
  13303. IntRect(int, int, int, int);
  13304. IntRect(int[]&inout);
  13305. // Methods:
  13306. IntRect operator+(const IntRect&) const;
  13307. IntRect& operator+=(const IntRect&);
  13308. IntRect& operator=(const IntRect&);
  13309. bool operator==(const IntRect&) const;
  13310. int Bottom() const;
  13311. void Clip(const IntRect&);
  13312. int Height() const;
  13313. Intersection IsInside(const IntRect&) const;
  13314. Intersection IsInside(const IntVector2&) const;
  13315. int Left() const;
  13316. IntVector2 Max() const;
  13317. void Merge(const IntRect&);
  13318. IntVector2 Min() const;
  13319. int Right() const;
  13320. IntVector2 Size() const;
  13321. String ToString() const;
  13322. int Top() const;
  13323. int Width() const;
  13324. // Properties:
  13325. int bottom;
  13326. /* readonly */
  13327. Array<int> data;
  13328. /* readonly */
  13329. int height;
  13330. int left;
  13331. int right;
  13332. /* readonly */
  13333. IntVector2 size;
  13334. int top;
  13335. /* readonly */
  13336. int width;
  13337. // Constants:
  13338. static const IntRect ZERO;
  13339. };
  13340. class IntVector2
  13341. {
  13342. public:
  13343. IntVector2();
  13344. IntVector2(int, int);
  13345. IntVector2(const IntVector2&in);
  13346. IntVector2(int[]&inout);
  13347. // Methods:
  13348. IntVector2 operator+(const IntVector2&) const;
  13349. IntVector2& operator+=(const IntVector2&);
  13350. IntVector2& operator=(const IntVector2&);
  13351. bool operator==(const IntVector2&) const;
  13352. float Length() const;
  13353. uint ToHash() const;
  13354. String ToString() const;
  13355. // Properties:
  13356. /* readonly */
  13357. Array<int> data;
  13358. int x;
  13359. int y;
  13360. // Constants:
  13361. static const IntVector2 DOWN;
  13362. static const IntVector2 LEFT;
  13363. static const IntVector2 ONE;
  13364. static const IntVector2 RIGHT;
  13365. static const IntVector2 UP;
  13366. static const IntVector2 ZERO;
  13367. };
  13368. class IntVector3
  13369. {
  13370. public:
  13371. IntVector3();
  13372. IntVector3(int, int, int);
  13373. IntVector3(const IntVector3&in);
  13374. IntVector3(int[]&inout);
  13375. // Methods:
  13376. IntVector3 operator+(const IntVector3&) const;
  13377. IntVector3& operator+=(const IntVector3&);
  13378. IntVector3& operator=(const IntVector3&);
  13379. bool operator==(const IntVector3&) const;
  13380. float Length() const;
  13381. uint ToHash() const;
  13382. String ToString() const;
  13383. // Properties:
  13384. /* readonly */
  13385. Array<int> data;
  13386. int x;
  13387. int y;
  13388. int z;
  13389. // Constants:
  13390. static const IntVector3 BACK;
  13391. static const IntVector3 DOWN;
  13392. static const IntVector3 FORWARD;
  13393. static const IntVector3 LEFT;
  13394. static const IntVector3 ONE;
  13395. static const IntVector3 RIGHT;
  13396. static const IntVector3 UP;
  13397. static const IntVector3 ZERO;
  13398. };
  13399. class JSONFile
  13400. {
  13401. public:
  13402. JSONFile();
  13403. // Methods:
  13404. bool BeginLoad(Deserializer&);
  13405. bool EndLoad();
  13406. bool FromString(const String&);
  13407. AsyncLoadState GetAsyncLoadState() const;
  13408. bool GetBlockEvents() const;
  13409. VariantMap& GetEventDataMap() const;
  13410. Object GetEventSender() const;
  13411. uint GetMemoryUse() const;
  13412. StringHash GetNameHash() const;
  13413. JSONValue& GetRoot();
  13414. Object GetSubsystem(StringHash) const;
  13415. StringHash GetType() const;
  13416. uint GetUseTimer();
  13417. bool HasEventHandlers() const;
  13418. bool HasSubscribedToEvent(Object, StringHash) const;
  13419. bool HasSubscribedToEvent(StringHash) const;
  13420. bool IsInstanceOf(StringHash) const;
  13421. const JSONValue& GetRoot() const;
  13422. bool Load(Deserializer&);
  13423. bool Load(File);
  13424. bool Load(VectorBuffer&);
  13425. bool Load(const String&);
  13426. bool LoadFile(const String&);
  13427. operator Object() const;
  13428. void OnEvent(Object, StringHash, VariantMap&);
  13429. operator RefCounted() const;
  13430. int Refs() const;
  13431. void ResetUseTimer();
  13432. operator Resource() const;
  13433. bool Save(File) const;
  13434. bool Save(Serializer&) const;
  13435. bool Save(Serializer&, const String&) const;
  13436. bool Save(VectorBuffer&) const;
  13437. bool Save(const String&) const;
  13438. bool SaveFile(const String&) const;
  13439. void SendEvent(StringHash);
  13440. void SendEvent(StringHash, VariantMap&);
  13441. void SetAsyncLoadState(AsyncLoadState);
  13442. void SetBlockEvents(bool);
  13443. void SetGlobalVar(StringHash, const Variant&);
  13444. void SetMemoryUse(uint);
  13445. void SetName(const String&);
  13446. const String& GetCategory() const;
  13447. const String& GetName() const;
  13448. const String& GetTypeName() const;
  13449. String ToString(const String& = "\t") const;
  13450. void UnsubscribeFromAllEvents();
  13451. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13452. void UnsubscribeFromEvent(Object, StringHash);
  13453. void UnsubscribeFromEvent(StringHash);
  13454. void UnsubscribeFromEvents(Object);
  13455. const Variant& GetGlobalVar(StringHash) const;
  13456. const VariantMap& GetGlobalVars() const;
  13457. int WeakRefs() const;
  13458. operator const Object() const;
  13459. operator const RefCounted() const;
  13460. operator const Resource() const;
  13461. // Properties:
  13462. /* readonly */
  13463. String category;
  13464. Array<Variant> globalVar;
  13465. /* readonly */
  13466. VariantMap globalVars;
  13467. /* readonly */
  13468. uint memoryUse;
  13469. String name;
  13470. /* readonly */
  13471. int refs;
  13472. /* readonly */
  13473. JSONValue root;
  13474. /* readonly */
  13475. StringHash type;
  13476. /* readonly */
  13477. String typeName;
  13478. /* readonly */
  13479. uint useTimer;
  13480. /* readonly */
  13481. int weakRefs;
  13482. };
  13483. class JSONValue
  13484. {
  13485. public:
  13486. ~JSONValue();
  13487. JSONValue();
  13488. JSONValue(bool);
  13489. JSONValue(int);
  13490. JSONValue(uint);
  13491. JSONValue(float);
  13492. JSONValue(double);
  13493. JSONValue(const String&in);
  13494. JSONValue(const JSONValue&in);
  13495. // Methods:
  13496. JSONValue& operator=(bool);
  13497. JSONValue& operator=(const JSONValue&);
  13498. JSONValue& operator=(const String&);
  13499. JSONValue& operator=(double);
  13500. JSONValue& operator=(float);
  13501. JSONValue& operator=(int);
  13502. JSONValue& operator=(uint);
  13503. JSONValue& operator[](const String&);
  13504. JSONValue& operator[](uint);
  13505. void Clear();
  13506. bool Contains(const String&) const;
  13507. bool Erase(const String&);
  13508. void Erase(uint, uint = 1);
  13509. bool GetBool(bool = false) const;
  13510. double GetDouble(double = 0.0) const;
  13511. float GetFloat(float = 0.0f) const;
  13512. int GetInt(int = 0) const;
  13513. JSONNumberType GetNumberType() const;
  13514. String GetNumberTypeName() const;
  13515. uint GetUInt(uint = 0) const;
  13516. JSONValueType GetValueType() const;
  13517. String GetValueTypeName() const;
  13518. Variant GetVariant() const;
  13519. VariantMap GetVariantMap() const;
  13520. Variant GetVariantValue(VariantType) const;
  13521. void Insert(uint, const JSONValue&);
  13522. bool IsArray() const;
  13523. bool IsBool() const;
  13524. bool IsNull() const;
  13525. bool IsNumber() const;
  13526. bool IsObject() const;
  13527. bool IsString() const;
  13528. const JSONValue& operator[](const String&) const;
  13529. const JSONValue& operator[](uint) const;
  13530. const JSONValue& Get(const String&) const;
  13531. void Pop();
  13532. void Push(const JSONValue&);
  13533. void Resize(uint);
  13534. void Set(const String&, const JSONValue&);
  13535. void SetType(JSONValueType, JSONNumberType = JSONNT_NAN);
  13536. void SetVariant(const Variant&);
  13537. void SetVariantMap(const VariantMap&);
  13538. void SetVariantValue(const Variant&);
  13539. uint Size() const;
  13540. const String& GetString(const String& = String :: EMPTY) const;
  13541. // Properties:
  13542. /* readonly */
  13543. bool isArray;
  13544. /* readonly */
  13545. bool isBool;
  13546. /* readonly */
  13547. bool isNull;
  13548. /* readonly */
  13549. bool isNumber;
  13550. /* readonly */
  13551. bool isObject;
  13552. /* readonly */
  13553. bool isString;
  13554. /* readonly */
  13555. Array<String> keys;
  13556. /* readonly */
  13557. JSONNumberType numberType;
  13558. /* readonly */
  13559. String numberTypeName;
  13560. /* readonly */
  13561. uint size;
  13562. /* readonly */
  13563. JSONValueType valueType;
  13564. /* readonly */
  13565. String valueTypeName;
  13566. /* readonly */
  13567. Array<JSONValue> values;
  13568. // Constants:
  13569. static const JSONValue EMPTY;
  13570. };
  13571. class JoystickState
  13572. {
  13573. public:
  13574. // Methods:
  13575. JoystickState& operator=(const JoystickState&);
  13576. float GetAxisPosition(int) const;
  13577. bool GetButtonDown(int) const;
  13578. bool GetButtonPress(int) const;
  13579. int GetHatPosition(int) const;
  13580. int GetNumAxes() const;
  13581. int GetNumButtons() const;
  13582. int GetNumHats() const;
  13583. void Initialize(int, int, int);
  13584. bool IsController() const;
  13585. void Reset();
  13586. // Properties:
  13587. /* readonly */
  13588. Array<float> axisPosition;
  13589. /* readonly */
  13590. Array<bool> buttonDown;
  13591. /* readonly */
  13592. Array<bool> buttonPress;
  13593. /* readonly */
  13594. bool controller;
  13595. /* readonly */
  13596. Array<int> hatPosition;
  13597. int joystickID;
  13598. String name;
  13599. /* readonly */
  13600. int numAxes;
  13601. /* readonly */
  13602. int numButtons;
  13603. /* readonly */
  13604. int numHats;
  13605. };
  13606. class Light
  13607. {
  13608. public:
  13609. Light();
  13610. // Methods:
  13611. void AddLight(Light);
  13612. void AddVertexLight(Light);
  13613. void AllocateNetworkState();
  13614. operator Animatable() const;
  13615. void ApplyAttributes();
  13616. const BiasParameters& GetShadowBias() const;
  13617. const BoundingBox& GetBoundingBox() const;
  13618. const BoundingBox& GetWorldBoundingBox();
  13619. const CascadeParameters& GetShadowCascade() const;
  13620. void CleanupConnection(Connection);
  13621. const Color& GetColor() const;
  13622. operator Component() const;
  13623. void DrawDebugGeometry(DebugRenderer, bool);
  13624. bool DrawOcclusion(OcclusionBuffer);
  13625. operator Drawable() const;
  13626. const FocusParameters& GetShadowFocus() const;
  13627. bool GetAnimationEnabled() const;
  13628. float GetAspectRatio() const;
  13629. Variant GetAttribute(const String&) const;
  13630. Variant GetAttribute(uint) const;
  13631. ValueAnimation GetAttributeAnimation(const String&) const;
  13632. float GetAttributeAnimationSpeed(const String&) const;
  13633. float GetAttributeAnimationTime(const String&) const;
  13634. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13635. Variant GetAttributeDefault(const String&) const;
  13636. Variant GetAttributeDefault(uint) const;
  13637. Array<SourceBatch> GetBatches() const;
  13638. bool GetBlockEvents() const;
  13639. float GetBrightness() const;
  13640. bool GetCastShadows() const;
  13641. Color GetColorFromTemperature() const;
  13642. Component GetComponent(StringHash) const;
  13643. float GetDistance() const;
  13644. float GetDrawDistance() const;
  13645. uint8 GetDrawableFlags() const;
  13646. Color GetEffectiveColor() const;
  13647. float GetEffectiveSpecularIntensity() const;
  13648. VariantMap& GetEventDataMap() const;
  13649. Object GetEventSender() const;
  13650. float GetFadeDistance() const;
  13651. Light GetFirstLight() const;
  13652. float GetFov() const;
  13653. Frustum GetFrustum() const;
  13654. uint GetID() const;
  13655. float GetIntensityDivisor(float = 1.0f) const;
  13656. bool GetInterceptNetworkUpdate(const String&) const;
  13657. float GetLength() const;
  13658. uint GetLightMask() const;
  13659. LightType GetLightType() const;
  13660. Array<Light> GetLights() const;
  13661. float GetLodBias() const;
  13662. float GetLodDistance() const;
  13663. Geometry GetLodGeometry(uint, uint);
  13664. uint GetMaxLights() const;
  13665. float GetMaxZ() const;
  13666. float GetMinZ() const;
  13667. Node GetNode() const;
  13668. uint GetNumAttributes() const;
  13669. uint GetNumNetworkAttributes() const;
  13670. uint GetNumOccluderTriangles();
  13671. int GetNumShadowSplits() const;
  13672. ObjectAnimation GetObjectAnimation() const;
  13673. ResourceRef GetObjectAnimationAttr() const;
  13674. bool GetPerVertex() const;
  13675. float GetRadius() const;
  13676. Texture GetRampTexture() const;
  13677. ResourceRef GetRampTextureAttr() const;
  13678. float GetRange() const;
  13679. Scene GetScene() const;
  13680. float GetShadowDistance() const;
  13681. float GetShadowFadeDistance() const;
  13682. float GetShadowIntensity() const;
  13683. uint GetShadowMask() const;
  13684. float GetShadowMaxExtrusion() const;
  13685. float GetShadowNearFarRatio() const;
  13686. float GetShadowResolution() const;
  13687. Texture GetShapeTexture() const;
  13688. ResourceRef GetShapeTextureAttr() const;
  13689. float GetSortValue() const;
  13690. float GetSpecularIntensity() const;
  13691. Object GetSubsystem(StringHash) const;
  13692. float GetTemperature() const;
  13693. StringHash GetType() const;
  13694. UpdateGeometryType GetUpdateGeometryType();
  13695. bool GetUsePhysicalValues() const;
  13696. Array<Light> GetVertexLights() const;
  13697. uint GetViewMask() const;
  13698. Frustum GetViewSpaceFrustum(const Matrix3x4&) const;
  13699. Zone GetZone() const;
  13700. uint GetZoneMask() const;
  13701. bool HasBasePass(uint) const;
  13702. bool HasEventHandlers() const;
  13703. bool HasSubscribedToEvent(Object, StringHash) const;
  13704. bool HasSubscribedToEvent(StringHash) const;
  13705. bool IsEnabled() const;
  13706. bool IsEnabledEffective() const;
  13707. bool IsInView() const;
  13708. bool IsInView(Camera) const;
  13709. bool IsInView(const FrameInfo&, bool = false) const;
  13710. bool IsInstanceOf(StringHash) const;
  13711. bool IsNegative() const;
  13712. bool IsOccludee() const;
  13713. bool IsOccluder() const;
  13714. bool IsReplicated() const;
  13715. bool IsTemporary() const;
  13716. bool IsZoneDirty() const;
  13717. void LimitLights();
  13718. void LimitVertexLights(bool);
  13719. bool Load(Deserializer&);
  13720. bool LoadJSON(const JSONValue&);
  13721. bool LoadXML(const XMLElement&);
  13722. void MarkForUpdate();
  13723. void MarkInView(const FrameInfo&);
  13724. void MarkInView(int);
  13725. void MarkNetworkUpdate();
  13726. const Matrix3x4& GetVolumeTransform(Camera);
  13727. operator Object() const;
  13728. void OnEvent(Object, StringHash, VariantMap&);
  13729. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  13730. void OnSetAttribute(const AttributeInfo&, const Variant&);
  13731. void OnSetEnabled();
  13732. void PrepareNetworkUpdate();
  13733. bool ReadDeltaUpdate(Deserializer&);
  13734. bool ReadLatestDataUpdate(Deserializer&);
  13735. operator RefCounted() const;
  13736. int Refs() const;
  13737. void Remove();
  13738. void RemoveAttributeAnimation(const String&);
  13739. void RemoveInstanceDefault();
  13740. void RemoveObjectAnimation();
  13741. void ResetToDefault();
  13742. bool Save(Serializer&) const;
  13743. bool SaveDefaultAttributes() const;
  13744. bool SaveJSON(JSONValue&) const;
  13745. bool SaveXML(XMLElement&) const;
  13746. void SendEvent(StringHash);
  13747. void SendEvent(StringHash, VariantMap&);
  13748. operator Serializable() const;
  13749. void SetAnimationEnabled(bool);
  13750. void SetAnimationTime(float);
  13751. void SetAspectRatio(float);
  13752. bool SetAttribute(const String&, const Variant&);
  13753. bool SetAttribute(uint, const Variant&);
  13754. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  13755. void SetAttributeAnimationSpeed(const String&, float);
  13756. void SetAttributeAnimationTime(const String&, float);
  13757. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  13758. void SetBasePass(uint);
  13759. void SetBlockEvents(bool);
  13760. void SetBrightness(float);
  13761. void SetCastShadows(bool);
  13762. void SetColor(const Color&);
  13763. void SetDrawDistance(float);
  13764. void SetEnabled(bool);
  13765. void SetFadeDistance(float);
  13766. void SetFov(float);
  13767. void SetGlobalVar(StringHash, const Variant&);
  13768. void SetInstanceDefault(bool);
  13769. void SetIntensitySortValue(const BoundingBox&);
  13770. void SetIntensitySortValue(float);
  13771. void SetInterceptNetworkUpdate(const String&, bool);
  13772. void SetLength(float);
  13773. void SetLightMask(uint);
  13774. void SetLightType(LightType);
  13775. void SetLodBias(float);
  13776. void SetMaxLights(uint);
  13777. void SetMinMaxZ(float, float);
  13778. void SetObjectAnimation(ObjectAnimation);
  13779. void SetObjectAnimationAttr(const ResourceRef&);
  13780. void SetOccludee(bool);
  13781. void SetOccluder(bool);
  13782. void SetPerVertex(bool);
  13783. void SetRadius(float);
  13784. void SetRampTexture(Texture);
  13785. void SetRampTextureAttr(const ResourceRef&);
  13786. void SetRange(float);
  13787. void SetShadowBias(const BiasParameters&);
  13788. void SetShadowCascade(const CascadeParameters&);
  13789. void SetShadowDistance(float);
  13790. void SetShadowFadeDistance(float);
  13791. void SetShadowFocus(const FocusParameters&);
  13792. void SetShadowIntensity(float);
  13793. void SetShadowMask(uint);
  13794. void SetShadowMaxExtrusion(float);
  13795. void SetShadowNearFarRatio(float);
  13796. void SetShadowResolution(float);
  13797. void SetShapeTexture(Texture);
  13798. void SetShapeTextureAttr(const ResourceRef&);
  13799. void SetSortValue(float);
  13800. void SetSpecularIntensity(float);
  13801. void SetTemperature(float);
  13802. void SetTemporary(bool);
  13803. void SetUsePhysicalValues(bool);
  13804. void SetViewMask(uint);
  13805. void SetZone(Zone, bool = false);
  13806. void SetZoneMask(uint);
  13807. const String& GetCategory() const;
  13808. const String& GetTypeName() const;
  13809. void UnsubscribeFromAllEvents();
  13810. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  13811. void UnsubscribeFromEvent(Object, StringHash);
  13812. void UnsubscribeFromEvent(StringHash);
  13813. void UnsubscribeFromEvents(Object);
  13814. void Update(const FrameInfo&);
  13815. void UpdateBatches(const FrameInfo&);
  13816. void UpdateGeometry(const FrameInfo&);
  13817. const Variant& GetGlobalVar(StringHash) const;
  13818. const VariantMap& GetGlobalVars() const;
  13819. int WeakRefs() const;
  13820. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  13821. void WriteInitialDeltaUpdate(Serializer&, uint8);
  13822. void WriteLatestDataUpdate(Serializer&, uint8);
  13823. operator const Animatable() const;
  13824. operator const Component() const;
  13825. operator const Drawable() const;
  13826. operator const Object() const;
  13827. operator const RefCounted() const;
  13828. operator const Serializable() const;
  13829. // Properties:
  13830. bool animationEnabled;
  13831. float aspectRatio;
  13832. /* readonly */
  13833. Array<Variant> attributeDefaults;
  13834. /* readonly */
  13835. Array<AttributeInfo> attributeInfos;
  13836. Array<Variant> attributes;
  13837. /* readonly */
  13838. BoundingBox boundingBox;
  13839. float brightness;
  13840. bool castShadows;
  13841. /* readonly */
  13842. String category;
  13843. Color color;
  13844. /* readonly */
  13845. Color colorFromTemperature;
  13846. float drawDistance;
  13847. /* readonly */
  13848. Color effectiveColor;
  13849. /* readonly */
  13850. float effectiveSpecularIntensity;
  13851. bool enabled;
  13852. /* readonly */
  13853. bool enabledEffective;
  13854. float fadeDistance;
  13855. float fov;
  13856. /* readonly */
  13857. Frustum frustum;
  13858. Array<Variant> globalVar;
  13859. /* readonly */
  13860. VariantMap globalVars;
  13861. /* readonly */
  13862. uint id;
  13863. /* readonly */
  13864. bool inView;
  13865. float length;
  13866. uint lightMask;
  13867. LightType lightType;
  13868. float lodBias;
  13869. uint maxLights;
  13870. /* readonly */
  13871. bool negative;
  13872. /* readonly */
  13873. Node node;
  13874. /* readonly */
  13875. uint numAttributes;
  13876. /* readonly */
  13877. int numShadowSplits;
  13878. ObjectAnimation objectAnimation;
  13879. bool occludee;
  13880. bool occluder;
  13881. bool perVertex;
  13882. float radius;
  13883. Texture rampTexture;
  13884. float range;
  13885. /* readonly */
  13886. int refs;
  13887. /* readonly */
  13888. bool replicated;
  13889. BiasParameters shadowBias;
  13890. CascadeParameters shadowCascade;
  13891. float shadowDistance;
  13892. float shadowFadeDistance;
  13893. FocusParameters shadowFocus;
  13894. float shadowIntensity;
  13895. uint shadowMask;
  13896. float shadowMaxExtrusion;
  13897. float shadowNearFarRatio;
  13898. float shadowResolution;
  13899. Texture shapeTexture;
  13900. float specularIntensity;
  13901. float temperature;
  13902. bool temporary;
  13903. /* readonly */
  13904. StringHash type;
  13905. /* readonly */
  13906. String typeName;
  13907. bool usePhysicalValues;
  13908. uint viewMask;
  13909. /* readonly */
  13910. int weakRefs;
  13911. /* readonly */
  13912. BoundingBox worldBoundingBox;
  13913. /* readonly */
  13914. Zone zone;
  13915. uint zoneMask;
  13916. };
  13917. class LightBatchQueue
  13918. {
  13919. public:
  13920. ~LightBatchQueue();
  13921. LightBatchQueue();
  13922. // Methods:
  13923. LightBatchQueue& operator=(const LightBatchQueue&);
  13924. // Properties:
  13925. BatchQueue litBaseBatches;
  13926. BatchQueue litBatches;
  13927. bool negative;
  13928. };
  13929. class LightQueryResult
  13930. {
  13931. public:
  13932. ~LightQueryResult();
  13933. LightQueryResult();
  13934. // Methods:
  13935. LightQueryResult& operator=(const LightQueryResult&);
  13936. // Properties:
  13937. uint numSplits;
  13938. };
  13939. class LineEdit
  13940. {
  13941. public:
  13942. LineEdit();
  13943. // Methods:
  13944. void AddChild(UIElement);
  13945. void AddTag(const String&);
  13946. void AddTags(Array<String>);
  13947. void AddTags(const String&, int8 = ';');
  13948. void AdjustScissor(IntRect&);
  13949. void AllocateNetworkState();
  13950. operator Animatable() const;
  13951. void ApplyAttributes();
  13952. operator BorderImage() const;
  13953. void BringToFront();
  13954. const Color& GetColor(Corner) const;
  13955. const Color& GetColorAttr() const;
  13956. const Color& GetDerivedColor() const;
  13957. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  13958. void DisableLayoutUpdate();
  13959. IntVector2 ElementToScreen(const IntVector2&);
  13960. void EnableLayoutUpdate();
  13961. bool FilterAttributes(XMLElement&) const;
  13962. int FindChild(UIElement) const;
  13963. bool GetAnimationEnabled() const;
  13964. Variant GetAttribute(const String&) const;
  13965. Variant GetAttribute(uint) const;
  13966. ValueAnimation GetAttributeAnimation(const String&) const;
  13967. float GetAttributeAnimationSpeed(const String&) const;
  13968. float GetAttributeAnimationTime(const String&) const;
  13969. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  13970. Variant GetAttributeDefault(const String&) const;
  13971. Variant GetAttributeDefault(uint) const;
  13972. BlendMode GetBlendMode() const;
  13973. bool GetBlockEvents() const;
  13974. bool GetBringToBack() const;
  13975. bool GetBringToFront() const;
  13976. UIElement GetChild(const String&, bool = false) const;
  13977. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  13978. UIElement GetChild(int) const;
  13979. Array<UIElement> GetChildren() const;
  13980. Array<UIElement> GetChildren(bool) const;
  13981. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  13982. bool GetClipChildren() const;
  13983. IntRect GetCombinedScreenRect();
  13984. BorderImage GetCursor() const;
  13985. float GetCursorBlinkRate() const;
  13986. int GetCursorPosition() const;
  13987. XMLFile GetDefaultStyle(bool = true) const;
  13988. float GetDerivedOpacity() const;
  13989. uint GetDragButtonCombo() const;
  13990. int GetDragButtonCount() const;
  13991. uint GetDragDropMode() const;
  13992. uint GetEchoCharacter() const;
  13993. IntVector2 GetEffectiveMinSize() const;
  13994. UIElement GetElementEventSender() const;
  13995. bool GetEnableAnchor() const;
  13996. VariantMap& GetEventDataMap() const;
  13997. Object GetEventSender() const;
  13998. FocusMode GetFocusMode() const;
  13999. int GetHeight() const;
  14000. HorizontalAlignment GetHorizontalAlignment() const;
  14001. int GetIndent() const;
  14002. int GetIndentSpacing() const;
  14003. int GetIndentWidth() const;
  14004. bool GetInterceptNetworkUpdate(const String&) const;
  14005. int GetLayoutElementMaxSize() const;
  14006. LayoutMode GetLayoutMode() const;
  14007. int GetLayoutSpacing() const;
  14008. Material GetMaterial() const;
  14009. ResourceRef GetMaterialAttr() const;
  14010. int GetMaxHeight() const;
  14011. int GetMaxLength() const;
  14012. int GetMaxWidth() const;
  14013. int GetMinHeight() const;
  14014. int GetMinWidth() const;
  14015. uint GetNumAttributes() const;
  14016. int GetNumChildren(bool = false) const;
  14017. uint GetNumNetworkAttributes() const;
  14018. ObjectAnimation GetObjectAnimation() const;
  14019. ResourceRef GetObjectAnimationAttr() const;
  14020. float GetOpacity() const;
  14021. UIElement GetParent() const;
  14022. int GetPriority() const;
  14023. UIElement GetRoot() const;
  14024. bool GetSortChildren() const;
  14025. Object GetSubsystem(StringHash) const;
  14026. Array<String> GetTags() const;
  14027. Text GetTextElement() const;
  14028. Texture GetTexture() const;
  14029. ResourceRef GetTextureAttr() const;
  14030. TraversalMode GetTraversalMode() const;
  14031. StringHash GetType() const;
  14032. bool GetUseDerivedOpacity() const;
  14033. VerticalAlignment GetVerticalAlignment() const;
  14034. int GetWidth() const;
  14035. bool HasColorGradient() const;
  14036. bool HasEventHandlers() const;
  14037. bool HasFocus() const;
  14038. bool HasSubscribedToEvent(Object, StringHash) const;
  14039. bool HasSubscribedToEvent(StringHash) const;
  14040. bool HasTag(const String&) const;
  14041. void InsertChild(int, UIElement);
  14042. const IntRect& GetBorder() const;
  14043. const IntRect& GetClipBorder() const;
  14044. const IntRect& GetImageBorder() const;
  14045. const IntRect& GetImageRect() const;
  14046. const IntRect& GetLayoutBorder() const;
  14047. const IntVector2& GetChildOffset() const;
  14048. const IntVector2& GetDisabledOffset() const;
  14049. const IntVector2& GetHoverOffset() const;
  14050. const IntVector2& GetMaxOffset() const;
  14051. const IntVector2& GetMaxSize() const;
  14052. const IntVector2& GetMinOffset() const;
  14053. const IntVector2& GetMinSize() const;
  14054. const IntVector2& GetPosition() const;
  14055. const IntVector2& GetScreenPosition() const;
  14056. const IntVector2& GetSize() const;
  14057. bool IsChildOf(UIElement) const;
  14058. bool IsCursorMovable() const;
  14059. bool IsEditable() const;
  14060. bool IsElementEventSender() const;
  14061. bool IsEnabled() const;
  14062. bool IsEnabledSelf() const;
  14063. bool IsFixedHeight() const;
  14064. bool IsFixedSize() const;
  14065. bool IsFixedWidth() const;
  14066. bool IsHovering() const;
  14067. bool IsInside(IntVector2, bool);
  14068. bool IsInsideCombined(IntVector2, bool);
  14069. bool IsInstanceOf(StringHash) const;
  14070. bool IsInternal() const;
  14071. bool IsSelected() const;
  14072. bool IsTemporary() const;
  14073. bool IsTextCopyable() const;
  14074. bool IsTextSelectable() const;
  14075. bool IsTiled() const;
  14076. bool IsVisible() const;
  14077. bool IsVisibleEffective() const;
  14078. bool IsWheelHandler() const;
  14079. bool IsWithinScissor(const IntRect&);
  14080. bool Load(Deserializer&);
  14081. UIElement LoadChildXML(XMLFile, XMLFile);
  14082. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14083. bool LoadJSON(const JSONValue&);
  14084. bool LoadXML(Deserializer&);
  14085. bool LoadXML(File);
  14086. bool LoadXML(VectorBuffer&);
  14087. bool LoadXML(XMLFile, XMLFile);
  14088. bool LoadXML(const XMLElement&);
  14089. bool LoadXML(const XMLElement&, XMLFile);
  14090. void MarkNetworkUpdate();
  14091. operator Object() const;
  14092. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14093. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  14094. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14095. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14096. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14097. bool OnDragDropFinish(UIElement);
  14098. bool OnDragDropTest(UIElement);
  14099. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14100. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14101. void OnEvent(Object, StringHash, VariantMap&);
  14102. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  14103. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14104. void OnIndentSet();
  14105. void OnKey(uint, uint, uint);
  14106. void OnPositionSet(const IntVector2&);
  14107. void OnResize(const IntVector2&, const IntVector2&);
  14108. void OnSetAttribute(const AttributeInfo&, const Variant&);
  14109. void OnSetEditable();
  14110. void OnTextInput(const String&);
  14111. void OnWheel(int, uint, uint);
  14112. bool ReadDeltaUpdate(Deserializer&);
  14113. bool ReadLatestDataUpdate(Deserializer&);
  14114. operator RefCounted() const;
  14115. int Refs() const;
  14116. void Remove();
  14117. void RemoveAllChildren();
  14118. void RemoveAllTags();
  14119. void RemoveAttributeAnimation(const String&);
  14120. void RemoveChild(UIElement, int = 0);
  14121. void RemoveChild(uint);
  14122. void RemoveChildAtIndex(int);
  14123. void RemoveInstanceDefault();
  14124. void RemoveObjectAnimation();
  14125. bool RemoveTag(const String&);
  14126. void ResetDeepEnabled();
  14127. void ResetToDefault();
  14128. bool Save(Serializer&) const;
  14129. bool SaveDefaultAttributes() const;
  14130. bool SaveJSON(JSONValue&) const;
  14131. bool SaveXML(File, const String& indentation = "\t");
  14132. bool SaveXML(Serializer&, const String& = "\t") const;
  14133. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  14134. bool SaveXML(XMLElement&) const;
  14135. IntVector2 ScreenToElement(const IntVector2&);
  14136. void SendEvent(StringHash);
  14137. void SendEvent(StringHash, VariantMap&);
  14138. operator Serializable() const;
  14139. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14140. void SetAnimationEnabled(bool);
  14141. void SetAnimationTime(float);
  14142. bool SetAttribute(const String&, const Variant&);
  14143. bool SetAttribute(uint, const Variant&);
  14144. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14145. void SetAttributeAnimationSpeed(const String&, float);
  14146. void SetAttributeAnimationTime(const String&, float);
  14147. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14148. void SetBlendMode(BlendMode);
  14149. void SetBlockEvents(bool);
  14150. void SetBorder(const IntRect&);
  14151. void SetBringToBack(bool);
  14152. void SetBringToFront(bool);
  14153. void SetChildOffset(const IntVector2&);
  14154. void SetClipBorder(const IntRect&);
  14155. void SetClipChildren(bool);
  14156. void SetColor(Corner, const Color&);
  14157. void SetColor(const Color&);
  14158. void SetCursorBlinkRate(float);
  14159. void SetCursorMovable(bool);
  14160. void SetCursorPosition(int);
  14161. void SetDeepEnabled(bool);
  14162. void SetDefaultStyle(XMLFile);
  14163. void SetDisabledOffset(const IntVector2&);
  14164. void SetDisabledOffset(int, int);
  14165. void SetDragDropMode(uint);
  14166. void SetEchoCharacter(uint);
  14167. void SetEditable(bool);
  14168. void SetElementEventSender(bool);
  14169. void SetEnableAnchor(bool);
  14170. void SetEnabled(bool);
  14171. void SetEnabledRecursive(bool);
  14172. void SetFixedHeight(int);
  14173. void SetFixedSize(const IntVector2&);
  14174. void SetFixedSize(int, int);
  14175. void SetFixedWidth(int);
  14176. void SetFocus(bool);
  14177. void SetFocusMode(FocusMode);
  14178. void SetFullImageRect();
  14179. void SetGlobalVar(StringHash, const Variant&);
  14180. void SetHeight(int);
  14181. void SetHorizontalAlignment(HorizontalAlignment);
  14182. void SetHoverOffset(const IntVector2&);
  14183. void SetHoverOffset(int, int);
  14184. void SetHovering(bool);
  14185. void SetImageBorder(const IntRect&);
  14186. void SetImageRect(const IntRect&);
  14187. void SetIndent(int);
  14188. void SetIndentSpacing(int);
  14189. void SetInstanceDefault(bool);
  14190. void SetInterceptNetworkUpdate(const String&, bool);
  14191. void SetInternal(bool);
  14192. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  14193. void SetLayoutBorder(const IntRect&);
  14194. void SetLayoutFlexScale(const Vector2&);
  14195. void SetLayoutMode(LayoutMode);
  14196. void SetLayoutSpacing(int);
  14197. void SetMaterial(Material);
  14198. void SetMaterialAttr(const ResourceRef&);
  14199. void SetMaxAnchor(const Vector2&);
  14200. void SetMaxAnchor(float, float);
  14201. void SetMaxHeight(int);
  14202. void SetMaxLength(int);
  14203. void SetMaxOffset(const IntVector2&);
  14204. void SetMaxSize(const IntVector2&);
  14205. void SetMaxSize(int, int);
  14206. void SetMaxWidth(int);
  14207. void SetMinAnchor(const Vector2&);
  14208. void SetMinAnchor(float, float);
  14209. void SetMinHeight(int);
  14210. void SetMinOffset(const IntVector2&);
  14211. void SetMinSize(const IntVector2&);
  14212. void SetMinSize(int, int);
  14213. void SetMinWidth(int);
  14214. void SetName(const String&);
  14215. void SetObjectAnimation(ObjectAnimation);
  14216. void SetObjectAnimationAttr(const ResourceRef&);
  14217. void SetOpacity(float);
  14218. void SetParent(UIElement, int = ENDPOS);
  14219. void SetPivot(const Vector2&);
  14220. void SetPivot(float, float);
  14221. void SetPosition(const IntVector2&);
  14222. void SetPosition(int, int);
  14223. void SetPriority(int);
  14224. void SetRenderTexture(Texture2D);
  14225. void SetSelected(bool);
  14226. void SetSize(const IntVector2&);
  14227. void SetSize(int, int);
  14228. void SetSortChildren(bool);
  14229. bool SetStyle(const String&, XMLFile = null);
  14230. bool SetStyle(const XMLElement&);
  14231. bool SetStyleAuto(XMLFile = null);
  14232. void SetTags(Array<String>);
  14233. void SetTemporary(bool);
  14234. void SetText(const String&);
  14235. void SetTextCopyable(bool);
  14236. void SetTextSelectable(bool);
  14237. void SetTexture(Texture);
  14238. void SetTextureAttr(const ResourceRef&);
  14239. void SetTiled(bool);
  14240. void SetTraversalMode(TraversalMode);
  14241. void SetUseDerivedOpacity(bool);
  14242. void SetVar(StringHash, const Variant&);
  14243. void SetVerticalAlignment(VerticalAlignment);
  14244. void SetVisible(bool);
  14245. void SetWidth(int);
  14246. void SortChildren();
  14247. const String& GetAppliedStyle() const;
  14248. const String& GetCategory() const;
  14249. const String& GetName() const;
  14250. const String& GetText() const;
  14251. const String& GetTypeName() const;
  14252. operator UIElement() const;
  14253. void UnsubscribeFromAllEvents();
  14254. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  14255. void UnsubscribeFromEvent(Object, StringHash);
  14256. void UnsubscribeFromEvent(StringHash);
  14257. void UnsubscribeFromEvents(Object);
  14258. void Update(float);
  14259. void UpdateLayout();
  14260. const Variant& GetGlobalVar(StringHash) const;
  14261. const Variant& GetVar(const StringHash&) const;
  14262. const VariantMap& GetGlobalVars() const;
  14263. const VariantMap& GetVars() const;
  14264. const Vector2& GetLayoutFlexScale() const;
  14265. const Vector2& GetMaxAnchor() const;
  14266. const Vector2& GetMinAnchor() const;
  14267. const Vector2& GetPivot() const;
  14268. int WeakRefs() const;
  14269. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  14270. void WriteInitialDeltaUpdate(Serializer&, uint8);
  14271. void WriteLatestDataUpdate(Serializer&, uint8);
  14272. operator const Animatable() const;
  14273. operator const BorderImage() const;
  14274. operator const Object() const;
  14275. operator const RefCounted() const;
  14276. operator const Serializable() const;
  14277. operator const UIElement() const;
  14278. // Properties:
  14279. bool animationEnabled;
  14280. /* readonly */
  14281. Array<Variant> attributeDefaults;
  14282. /* readonly */
  14283. Array<AttributeInfo> attributeInfos;
  14284. Array<Variant> attributes;
  14285. BlendMode blendMode;
  14286. IntRect border;
  14287. bool bringToBack;
  14288. bool bringToFront;
  14289. /* readonly */
  14290. String category;
  14291. /* readonly */
  14292. IntVector2 childOffset;
  14293. /* readonly */
  14294. Array<UIElement> children;
  14295. IntRect clipBorder;
  14296. bool clipChildren;
  14297. /* writeonly */
  14298. Color color;
  14299. /* readonly */
  14300. bool colorGradient;
  14301. Array<Color> colors;
  14302. /* readonly */
  14303. IntRect combinedScreenRect;
  14304. /* readonly */
  14305. BorderImage cursor;
  14306. float cursorBlinkRate;
  14307. bool cursorMovable;
  14308. int cursorPosition;
  14309. XMLFile defaultStyle;
  14310. /* readonly */
  14311. float derivedOpacity;
  14312. IntVector2 disabledOffset;
  14313. /* readonly */
  14314. uint dragButtonCombo;
  14315. /* readonly */
  14316. int dragButtonCount;
  14317. uint dragDropMode;
  14318. uint echoCharacter;
  14319. bool editable;
  14320. bool elementEventSender;
  14321. bool enableAnchor;
  14322. bool enabled;
  14323. /* readonly */
  14324. bool enabledSelf;
  14325. /* readonly */
  14326. bool fixedHeight;
  14327. /* readonly */
  14328. bool fixedSize;
  14329. /* readonly */
  14330. bool fixedWidth;
  14331. bool focus;
  14332. FocusMode focusMode;
  14333. Array<Variant> globalVar;
  14334. /* readonly */
  14335. VariantMap globalVars;
  14336. int height;
  14337. HorizontalAlignment horizontalAlignment;
  14338. IntVector2 hoverOffset;
  14339. /* readonly */
  14340. bool hovering;
  14341. IntRect imageBorder;
  14342. IntRect imageRect;
  14343. int indent;
  14344. int indentSpacing;
  14345. /* readonly */
  14346. int indentWidth;
  14347. bool internal;
  14348. IntRect layoutBorder;
  14349. Vector2 layoutFlexScale;
  14350. LayoutMode layoutMode;
  14351. int layoutSpacing;
  14352. Material material;
  14353. Vector2 maxAnchor;
  14354. int maxHeight;
  14355. int maxLength;
  14356. IntVector2 maxOffset;
  14357. IntVector2 maxSize;
  14358. int maxWidth;
  14359. Vector2 minAnchor;
  14360. int minHeight;
  14361. IntVector2 minOffset;
  14362. IntVector2 minSize;
  14363. int minWidth;
  14364. String name;
  14365. /* readonly */
  14366. uint numAllChildren;
  14367. /* readonly */
  14368. uint numAttributes;
  14369. /* readonly */
  14370. uint numChildren;
  14371. ObjectAnimation objectAnimation;
  14372. float opacity;
  14373. UIElement parent;
  14374. Vector2 pivot;
  14375. IntVector2 position;
  14376. int priority;
  14377. /* readonly */
  14378. int refs;
  14379. /* readonly */
  14380. UIElement root;
  14381. /* readonly */
  14382. IntVector2 screenPosition;
  14383. bool selected;
  14384. IntVector2 size;
  14385. bool sortChildren;
  14386. String style;
  14387. /* readonly */
  14388. Array<String> tags;
  14389. bool temporary;
  14390. String text;
  14391. bool textCopyable;
  14392. /* readonly */
  14393. Text textElement;
  14394. bool textSelectable;
  14395. Texture texture;
  14396. bool tiled;
  14397. TraversalMode traversalMode;
  14398. /* readonly */
  14399. StringHash type;
  14400. /* readonly */
  14401. String typeName;
  14402. bool useDerivedOpacity;
  14403. /* readonly */
  14404. VariantMap vars;
  14405. VerticalAlignment verticalAlignment;
  14406. bool visible;
  14407. /* readonly */
  14408. bool visibleEffective;
  14409. /* readonly */
  14410. int weakRefs;
  14411. int width;
  14412. };
  14413. class LinkedListNode
  14414. {
  14415. public:
  14416. ~LinkedListNode();
  14417. LinkedListNode();
  14418. // Methods:
  14419. LinkedListNode& operator=(const LinkedListNode&);
  14420. };
  14421. class ListBase
  14422. {
  14423. public:
  14424. ~ListBase();
  14425. ListBase();
  14426. // Methods:
  14427. ListBase& operator=(const ListBase&);
  14428. void Swap(ListBase&);
  14429. };
  14430. class ListIteratorBase
  14431. {
  14432. public:
  14433. ~ListIteratorBase();
  14434. ListIteratorBase();
  14435. // Methods:
  14436. ListIteratorBase& operator=(const ListIteratorBase&);
  14437. bool operator==(const ListIteratorBase&) const;
  14438. void GotoNext();
  14439. void GotoPrev();
  14440. };
  14441. class ListNodeBase
  14442. {
  14443. public:
  14444. ~ListNodeBase();
  14445. ListNodeBase();
  14446. // Methods:
  14447. ListNodeBase& operator=(const ListNodeBase&);
  14448. };
  14449. class ListView
  14450. {
  14451. public:
  14452. ListView();
  14453. // Methods:
  14454. void AddChild(UIElement);
  14455. void AddItem(UIElement);
  14456. void AddSelection(int);
  14457. void AddTag(const String&);
  14458. void AddTags(Array<String>);
  14459. void AddTags(const String&, int8 = ';');
  14460. void AdjustScissor(IntRect&);
  14461. void AllocateNetworkState();
  14462. operator Animatable() const;
  14463. void ApplyAttributes();
  14464. void BringToFront();
  14465. void ChangeSelection(int, bool = false);
  14466. void ClearSelection();
  14467. const Color& GetColor(Corner) const;
  14468. const Color& GetColorAttr() const;
  14469. const Color& GetDerivedColor() const;
  14470. void CopySelectedItemsToClipboard() const;
  14471. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  14472. void DisableInternalLayoutUpdate();
  14473. void DisableLayoutUpdate();
  14474. IntVector2 ElementToScreen(const IntVector2&);
  14475. void EnableInternalLayoutUpdate();
  14476. void EnableLayoutUpdate();
  14477. void EnsureItemVisibility(UIElement);
  14478. void EnsureItemVisibility(int);
  14479. void Expand(int, bool, bool = false);
  14480. bool FilterAttributes(XMLElement&) const;
  14481. int FindChild(UIElement) const;
  14482. int FindItem(UIElement) const;
  14483. bool GetAnimationEnabled() const;
  14484. Variant GetAttribute(const String&) const;
  14485. Variant GetAttribute(uint) const;
  14486. ValueAnimation GetAttributeAnimation(const String&) const;
  14487. float GetAttributeAnimationSpeed(const String&) const;
  14488. float GetAttributeAnimationTime(const String&) const;
  14489. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  14490. Variant GetAttributeDefault(const String&) const;
  14491. Variant GetAttributeDefault(uint) const;
  14492. bool GetAutoDisableChildren() const;
  14493. float GetAutoDisableThreshold() const;
  14494. int GetBaseIndent() const;
  14495. bool GetBlockEvents() const;
  14496. bool GetBringToBack() const;
  14497. bool GetBringToFront() const;
  14498. UIElement GetChild(const String&, bool = false) const;
  14499. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  14500. UIElement GetChild(int) const;
  14501. Array<UIElement> GetChildren() const;
  14502. Array<UIElement> GetChildren(bool) const;
  14503. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  14504. bool GetClearSelectionOnDefocus() const;
  14505. bool GetClipChildren() const;
  14506. IntRect GetCombinedScreenRect();
  14507. UIElement GetContentElement() const;
  14508. XMLFile GetDefaultStyle(bool = true) const;
  14509. float GetDerivedOpacity() const;
  14510. uint GetDragButtonCombo() const;
  14511. int GetDragButtonCount() const;
  14512. uint GetDragDropMode() const;
  14513. IntVector2 GetEffectiveMinSize() const;
  14514. UIElement GetElementEventSender() const;
  14515. bool GetEnableAnchor() const;
  14516. VariantMap& GetEventDataMap() const;
  14517. Object GetEventSender() const;
  14518. FocusMode GetFocusMode() const;
  14519. int GetHeight() const;
  14520. bool GetHierarchyMode() const;
  14521. HighlightMode GetHighlightMode() const;
  14522. HorizontalAlignment GetHorizontalAlignment() const;
  14523. ScrollBar GetHorizontalScrollBar() const;
  14524. bool GetHorizontalScrollBarVisible() const;
  14525. int GetIndent() const;
  14526. int GetIndentSpacing() const;
  14527. int GetIndentWidth() const;
  14528. bool GetInterceptNetworkUpdate(const String&) const;
  14529. UIElement GetItem(int) const;
  14530. Array<UIElement> GetItems() const;
  14531. int GetLayoutElementMaxSize() const;
  14532. LayoutMode GetLayoutMode() const;
  14533. int GetLayoutSpacing() const;
  14534. int GetMaxHeight() const;
  14535. int GetMaxWidth() const;
  14536. int GetMinHeight() const;
  14537. int GetMinWidth() const;
  14538. bool GetMultiselect() const;
  14539. uint GetNumAttributes() const;
  14540. int GetNumChildren(bool = false) const;
  14541. int GetNumItems() const;
  14542. uint GetNumNetworkAttributes() const;
  14543. ObjectAnimation GetObjectAnimation() const;
  14544. ResourceRef GetObjectAnimationAttr() const;
  14545. float GetOpacity() const;
  14546. float GetPageStep() const;
  14547. UIElement GetParent() const;
  14548. int GetPriority() const;
  14549. UIElement GetRoot() const;
  14550. bool GetScrollBarsAutoVisible() const;
  14551. float GetScrollDeceleration() const;
  14552. BorderImage GetScrollPanel() const;
  14553. float GetScrollSnapEpsilon() const;
  14554. float GetScrollStep() const;
  14555. bool GetSelectOnClickEnd() const;
  14556. UIElement GetSelectedItem() const;
  14557. Array<UIElement> GetSelectedItems() const;
  14558. int GetSelection() const;
  14559. Array<int> GetSelections() const;
  14560. bool GetSortChildren() const;
  14561. Object GetSubsystem(StringHash) const;
  14562. Array<String> GetTags() const;
  14563. TraversalMode GetTraversalMode() const;
  14564. StringHash GetType() const;
  14565. bool GetUseDerivedOpacity() const;
  14566. VerticalAlignment GetVerticalAlignment() const;
  14567. ScrollBar GetVerticalScrollBar() const;
  14568. bool GetVerticalScrollBarVisible() const;
  14569. int GetWidth() const;
  14570. bool HasColorGradient() const;
  14571. bool HasEventHandlers() const;
  14572. bool HasFocus() const;
  14573. bool HasSubscribedToEvent(Object, StringHash) const;
  14574. bool HasSubscribedToEvent(StringHash) const;
  14575. bool HasTag(const String&) const;
  14576. void InsertChild(int, UIElement);
  14577. void InsertItem(int, UIElement, UIElement = null);
  14578. const IntRect& GetClipBorder() const;
  14579. const IntRect& GetLayoutBorder() const;
  14580. const IntVector2& GetChildOffset() const;
  14581. const IntVector2& GetMaxOffset() const;
  14582. const IntVector2& GetMaxSize() const;
  14583. const IntVector2& GetMinOffset() const;
  14584. const IntVector2& GetMinSize() const;
  14585. const IntVector2& GetPosition() const;
  14586. const IntVector2& GetScreenPosition() const;
  14587. const IntVector2& GetSize() const;
  14588. const IntVector2& GetViewPosition() const;
  14589. bool IsChildOf(UIElement) const;
  14590. bool IsEditable() const;
  14591. bool IsElementEventSender() const;
  14592. bool IsEnabled() const;
  14593. bool IsEnabledSelf() const;
  14594. bool IsExpanded(int) const;
  14595. bool IsFixedHeight() const;
  14596. bool IsFixedSize() const;
  14597. bool IsFixedWidth() const;
  14598. bool IsHovering() const;
  14599. bool IsInside(IntVector2, bool);
  14600. bool IsInsideCombined(IntVector2, bool);
  14601. bool IsInstanceOf(StringHash) const;
  14602. bool IsInternal() const;
  14603. bool IsSelected(int) const;
  14604. bool IsTemporary() const;
  14605. bool IsVisible() const;
  14606. bool IsVisibleEffective() const;
  14607. bool IsWheelHandler() const;
  14608. bool IsWithinScissor(const IntRect&);
  14609. bool Load(Deserializer&);
  14610. UIElement LoadChildXML(XMLFile, XMLFile);
  14611. UIElement LoadChildXML(const XMLElement&, XMLFile);
  14612. bool LoadJSON(const JSONValue&);
  14613. bool LoadXML(Deserializer&);
  14614. bool LoadXML(File);
  14615. bool LoadXML(VectorBuffer&);
  14616. bool LoadXML(XMLFile, XMLFile);
  14617. bool LoadXML(const XMLElement&);
  14618. bool LoadXML(const XMLElement&, XMLFile);
  14619. void MarkNetworkUpdate();
  14620. operator Object() const;
  14621. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14622. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  14623. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  14624. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14625. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14626. bool OnDragDropFinish(UIElement);
  14627. bool OnDragDropTest(UIElement);
  14628. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14629. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14630. void OnEvent(Object, StringHash, VariantMap&);
  14631. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  14632. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  14633. void OnIndentSet();
  14634. void OnKey(uint, uint, uint);
  14635. void OnPositionSet(const IntVector2&);
  14636. void OnResize(const IntVector2&, const IntVector2&);
  14637. void OnSetAttribute(const AttributeInfo&, const Variant&);
  14638. void OnSetEditable();
  14639. void OnTextInput(const String&);
  14640. void OnWheel(int, uint, uint);
  14641. bool ReadDeltaUpdate(Deserializer&);
  14642. bool ReadLatestDataUpdate(Deserializer&);
  14643. operator RefCounted() const;
  14644. int Refs() const;
  14645. void Remove();
  14646. void RemoveAllChildren();
  14647. void RemoveAllItems();
  14648. void RemoveAllTags();
  14649. void RemoveAttributeAnimation(const String&);
  14650. void RemoveChild(UIElement, int = 0);
  14651. void RemoveChild(uint);
  14652. void RemoveChildAtIndex(int);
  14653. void RemoveInstanceDefault();
  14654. void RemoveItem(UIElement, int = 0);
  14655. void RemoveItem(int);
  14656. void RemoveObjectAnimation();
  14657. void RemoveSelection(int);
  14658. bool RemoveTag(const String&);
  14659. void ResetDeepEnabled();
  14660. void ResetToDefault();
  14661. bool Save(Serializer&) const;
  14662. bool SaveDefaultAttributes() const;
  14663. bool SaveJSON(JSONValue&) const;
  14664. bool SaveXML(File, const String& indentation = "\t");
  14665. bool SaveXML(Serializer&, const String& = "\t") const;
  14666. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  14667. bool SaveXML(XMLElement&) const;
  14668. IntVector2 ScreenToElement(const IntVector2&);
  14669. operator ScrollView() const;
  14670. void SendEvent(StringHash);
  14671. void SendEvent(StringHash, VariantMap&);
  14672. operator Serializable() const;
  14673. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  14674. void SetAnimationEnabled(bool);
  14675. void SetAnimationTime(float);
  14676. bool SetAttribute(const String&, const Variant&);
  14677. bool SetAttribute(uint, const Variant&);
  14678. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  14679. void SetAttributeAnimationSpeed(const String&, float);
  14680. void SetAttributeAnimationTime(const String&, float);
  14681. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  14682. void SetAutoDisableChildren(bool);
  14683. void SetAutoDisableThreshold(float);
  14684. void SetBaseIndent(int);
  14685. void SetBlockEvents(bool);
  14686. void SetBringToBack(bool);
  14687. void SetBringToFront(bool);
  14688. void SetChildOffset(const IntVector2&);
  14689. void SetClearSelectionOnDefocus(bool);
  14690. void SetClipBorder(const IntRect&);
  14691. void SetClipChildren(bool);
  14692. void SetColor(Corner, const Color&);
  14693. void SetColor(const Color&);
  14694. void SetContentElement(UIElement);
  14695. void SetDeepEnabled(bool);
  14696. void SetDefaultStyle(XMLFile);
  14697. void SetDragDropMode(uint);
  14698. void SetEditable(bool);
  14699. void SetElementEventSender(bool);
  14700. void SetEnableAnchor(bool);
  14701. void SetEnabled(bool);
  14702. void SetEnabledRecursive(bool);
  14703. void SetFixedHeight(int);
  14704. void SetFixedSize(const IntVector2&);
  14705. void SetFixedSize(int, int);
  14706. void SetFixedWidth(int);
  14707. void SetFocus(bool);
  14708. void SetFocusMode(FocusMode);
  14709. void SetGlobalVar(StringHash, const Variant&);
  14710. void SetHeight(int);
  14711. void SetHierarchyMode(bool);
  14712. void SetHighlightMode(HighlightMode);
  14713. void SetHorizontalAlignment(HorizontalAlignment);
  14714. void SetHorizontalScrollBarVisible(bool);
  14715. void SetHovering(bool);
  14716. void SetIndent(int);
  14717. void SetIndentSpacing(int);
  14718. void SetInstanceDefault(bool);
  14719. void SetInterceptNetworkUpdate(const String&, bool);
  14720. void SetInternal(bool);
  14721. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  14722. void SetLayoutBorder(const IntRect&);
  14723. void SetLayoutFlexScale(const Vector2&);
  14724. void SetLayoutMode(LayoutMode);
  14725. void SetLayoutSpacing(int);
  14726. void SetMaxAnchor(const Vector2&);
  14727. void SetMaxAnchor(float, float);
  14728. void SetMaxHeight(int);
  14729. void SetMaxOffset(const IntVector2&);
  14730. void SetMaxSize(const IntVector2&);
  14731. void SetMaxSize(int, int);
  14732. void SetMaxWidth(int);
  14733. void SetMinAnchor(const Vector2&);
  14734. void SetMinAnchor(float, float);
  14735. void SetMinHeight(int);
  14736. void SetMinOffset(const IntVector2&);
  14737. void SetMinSize(const IntVector2&);
  14738. void SetMinSize(int, int);
  14739. void SetMinWidth(int);
  14740. void SetMultiselect(bool);
  14741. void SetName(const String&);
  14742. void SetObjectAnimation(ObjectAnimation);
  14743. void SetObjectAnimationAttr(const ResourceRef&);
  14744. void SetOpacity(float);
  14745. void SetPageStep(float);
  14746. void SetParent(UIElement, int = ENDPOS);
  14747. void SetPivot(const Vector2&);
  14748. void SetPivot(float, float);
  14749. void SetPosition(const IntVector2&);
  14750. void SetPosition(int, int);
  14751. void SetPriority(int);
  14752. void SetRenderTexture(Texture2D);
  14753. void SetScrollBarsAutoVisible(bool);
  14754. void SetScrollBarsVisible(bool, bool);
  14755. void SetScrollDeceleration(float);
  14756. void SetScrollSnapEpsilon(float);
  14757. void SetScrollStep(float);
  14758. void SetSelectOnClickEnd(bool);
  14759. void SetSelected(bool);
  14760. void SetSelection(int);
  14761. void SetSelections(Array<int>);
  14762. void SetSize(const IntVector2&);
  14763. void SetSize(int, int);
  14764. void SetSortChildren(bool);
  14765. bool SetStyle(const String&, XMLFile = null);
  14766. bool SetStyle(const XMLElement&);
  14767. bool SetStyleAuto(XMLFile = null);
  14768. void SetTags(Array<String>);
  14769. void SetTemporary(bool);
  14770. void SetTraversalMode(TraversalMode);
  14771. void SetUseDerivedOpacity(bool);
  14772. void SetVar(StringHash, const Variant&);
  14773. void SetVerticalAlignment(VerticalAlignment);
  14774. void SetVerticalScrollBarVisible(bool);
  14775. void SetViewPosition(const IntVector2&);
  14776. void SetViewPosition(int, int);
  14777. void SetViewPositionAttr(const IntVector2&);
  14778. void SetVisible(bool);
  14779. void SetWidth(int);
  14780. void SortChildren();
  14781. const String& GetAppliedStyle() const;
  14782. const String& GetCategory() const;
  14783. const String& GetName() const;
  14784. const String& GetTypeName() const;
  14785. void ToggleExpand(int, bool = false);
  14786. void ToggleSelection(int);
  14787. operator UIElement() const;
  14788. void UnsubscribeFromAllEvents();
  14789. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  14790. void UnsubscribeFromEvent(Object, StringHash);
  14791. void UnsubscribeFromEvent(StringHash);
  14792. void UnsubscribeFromEvents(Object);
  14793. void Update(float);
  14794. void UpdateInternalLayout();
  14795. void UpdateLayout();
  14796. const Variant& GetGlobalVar(StringHash) const;
  14797. const Variant& GetVar(const StringHash&) const;
  14798. const VariantMap& GetGlobalVars() const;
  14799. const VariantMap& GetVars() const;
  14800. const Vector2& GetLayoutFlexScale() const;
  14801. const Vector2& GetMaxAnchor() const;
  14802. const Vector2& GetMinAnchor() const;
  14803. const Vector2& GetPivot() const;
  14804. int WeakRefs() const;
  14805. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  14806. void WriteInitialDeltaUpdate(Serializer&, uint8);
  14807. void WriteLatestDataUpdate(Serializer&, uint8);
  14808. operator const Animatable() const;
  14809. operator const Object() const;
  14810. operator const RefCounted() const;
  14811. operator const ScrollView() const;
  14812. operator const Serializable() const;
  14813. operator const UIElement() const;
  14814. // Properties:
  14815. bool animationEnabled;
  14816. /* readonly */
  14817. Array<Variant> attributeDefaults;
  14818. /* readonly */
  14819. Array<AttributeInfo> attributeInfos;
  14820. Array<Variant> attributes;
  14821. bool autoDisableChildren;
  14822. float autoDisableThreshold;
  14823. int baseIndent;
  14824. bool bringToBack;
  14825. bool bringToFront;
  14826. /* readonly */
  14827. String category;
  14828. /* readonly */
  14829. IntVector2 childOffset;
  14830. /* readonly */
  14831. Array<UIElement> children;
  14832. bool clearSelectionOnDefocus;
  14833. IntRect clipBorder;
  14834. bool clipChildren;
  14835. /* writeonly */
  14836. Color color;
  14837. /* readonly */
  14838. bool colorGradient;
  14839. Array<Color> colors;
  14840. /* readonly */
  14841. IntRect combinedScreenRect;
  14842. UIElement contentElement;
  14843. XMLFile defaultStyle;
  14844. /* readonly */
  14845. float derivedOpacity;
  14846. /* readonly */
  14847. uint dragButtonCombo;
  14848. /* readonly */
  14849. int dragButtonCount;
  14850. uint dragDropMode;
  14851. bool editable;
  14852. bool elementEventSender;
  14853. bool enableAnchor;
  14854. bool enabled;
  14855. /* readonly */
  14856. bool enabledSelf;
  14857. /* readonly */
  14858. bool fixedHeight;
  14859. /* readonly */
  14860. bool fixedSize;
  14861. /* readonly */
  14862. bool fixedWidth;
  14863. bool focus;
  14864. FocusMode focusMode;
  14865. Array<Variant> globalVar;
  14866. /* readonly */
  14867. VariantMap globalVars;
  14868. int height;
  14869. bool hierarchyMode;
  14870. HighlightMode highlightMode;
  14871. HorizontalAlignment horizontalAlignment;
  14872. /* readonly */
  14873. ScrollBar horizontalScrollBar;
  14874. bool horizontalScrollBarVisible;
  14875. /* readonly */
  14876. bool hovering;
  14877. int indent;
  14878. int indentSpacing;
  14879. /* readonly */
  14880. int indentWidth;
  14881. bool internal;
  14882. /* readonly */
  14883. Array<UIElement> items;
  14884. IntRect layoutBorder;
  14885. Vector2 layoutFlexScale;
  14886. LayoutMode layoutMode;
  14887. int layoutSpacing;
  14888. Vector2 maxAnchor;
  14889. int maxHeight;
  14890. IntVector2 maxOffset;
  14891. IntVector2 maxSize;
  14892. int maxWidth;
  14893. Vector2 minAnchor;
  14894. int minHeight;
  14895. IntVector2 minOffset;
  14896. IntVector2 minSize;
  14897. int minWidth;
  14898. bool multiselect;
  14899. String name;
  14900. /* readonly */
  14901. uint numAllChildren;
  14902. /* readonly */
  14903. uint numAttributes;
  14904. /* readonly */
  14905. uint numChildren;
  14906. /* readonly */
  14907. int numItems;
  14908. ObjectAnimation objectAnimation;
  14909. float opacity;
  14910. float pageStep;
  14911. UIElement parent;
  14912. Vector2 pivot;
  14913. IntVector2 position;
  14914. int priority;
  14915. /* readonly */
  14916. int refs;
  14917. /* readonly */
  14918. UIElement root;
  14919. /* readonly */
  14920. IntVector2 screenPosition;
  14921. bool scrollBarsAutoVisible;
  14922. float scrollDeceleration;
  14923. /* readonly */
  14924. BorderImage scrollPanel;
  14925. float scrollSnapEpsilon;
  14926. float scrollStep;
  14927. bool selectOnClickEnd;
  14928. /* writeonly */
  14929. bool selected;
  14930. /* readonly */
  14931. UIElement selectedItem;
  14932. /* readonly */
  14933. Array<UIElement> selectedItems;
  14934. int selection;
  14935. /* readonly */
  14936. Array<int> selections;
  14937. IntVector2 size;
  14938. bool sortChildren;
  14939. String style;
  14940. /* readonly */
  14941. Array<String> tags;
  14942. bool temporary;
  14943. TraversalMode traversalMode;
  14944. /* readonly */
  14945. StringHash type;
  14946. /* readonly */
  14947. String typeName;
  14948. bool useDerivedOpacity;
  14949. /* readonly */
  14950. VariantMap vars;
  14951. VerticalAlignment verticalAlignment;
  14952. /* readonly */
  14953. ScrollBar verticalScrollBar;
  14954. bool verticalScrollBarVisible;
  14955. IntVector2 viewPosition;
  14956. bool visible;
  14957. /* readonly */
  14958. bool visibleEffective;
  14959. /* readonly */
  14960. int weakRefs;
  14961. int width;
  14962. };
  14963. class Localization
  14964. {
  14965. public:
  14966. Localization();
  14967. // Methods:
  14968. String Get(const String&);
  14969. bool GetBlockEvents() const;
  14970. VariantMap& GetEventDataMap() const;
  14971. Object GetEventSender() const;
  14972. String GetLanguage();
  14973. String GetLanguage(int);
  14974. int GetLanguageIndex() const;
  14975. int GetLanguageIndex(const String&);
  14976. int GetNumLanguages() const;
  14977. Object GetSubsystem(StringHash) const;
  14978. StringHash GetType() const;
  14979. bool HasEventHandlers() const;
  14980. bool HasSubscribedToEvent(Object, StringHash) const;
  14981. bool HasSubscribedToEvent(StringHash) const;
  14982. bool IsInstanceOf(StringHash) const;
  14983. void LoadJSONFile(const String&, const String& = String :: EMPTY);
  14984. void LoadMultipleLanguageJSON(const JSONValue&);
  14985. void LoadSingleLanguageJSON(const JSONValue&, const String& = String :: EMPTY);
  14986. operator Object() const;
  14987. void OnEvent(Object, StringHash, VariantMap&);
  14988. operator RefCounted() const;
  14989. int Refs() const;
  14990. void Reset();
  14991. void SendEvent(StringHash);
  14992. void SendEvent(StringHash, VariantMap&);
  14993. void SetBlockEvents(bool);
  14994. void SetGlobalVar(StringHash, const Variant&);
  14995. void SetLanguage(const String&);
  14996. void SetLanguage(int);
  14997. const String& GetCategory() const;
  14998. const String& GetTypeName() const;
  14999. void UnsubscribeFromAllEvents();
  15000. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15001. void UnsubscribeFromEvent(Object, StringHash);
  15002. void UnsubscribeFromEvent(StringHash);
  15003. void UnsubscribeFromEvents(Object);
  15004. const Variant& GetGlobalVar(StringHash) const;
  15005. const VariantMap& GetGlobalVars() const;
  15006. int WeakRefs() const;
  15007. operator const Object() const;
  15008. operator const RefCounted() const;
  15009. // Properties:
  15010. /* readonly */
  15011. String category;
  15012. Array<Variant> globalVar;
  15013. /* readonly */
  15014. VariantMap globalVars;
  15015. /* readonly */
  15016. String language;
  15017. /* readonly */
  15018. int languageIndex;
  15019. /* readonly */
  15020. int numLanguages;
  15021. /* readonly */
  15022. int refs;
  15023. /* readonly */
  15024. StringHash type;
  15025. /* readonly */
  15026. String typeName;
  15027. /* readonly */
  15028. int weakRefs;
  15029. };
  15030. class Log
  15031. {
  15032. public:
  15033. Log();
  15034. // Methods:
  15035. void Close();
  15036. void Debug(const String&);
  15037. void Error(const String&);
  15038. bool GetBlockEvents() const;
  15039. VariantMap& GetEventDataMap() const;
  15040. Object GetEventSender() const;
  15041. String GetLastMessage() const;
  15042. int GetLevel() const;
  15043. Object GetSubsystem(StringHash) const;
  15044. bool GetTimeStamp() const;
  15045. StringHash GetType() const;
  15046. bool HasEventHandlers() const;
  15047. bool HasSubscribedToEvent(Object, StringHash) const;
  15048. bool HasSubscribedToEvent(StringHash) const;
  15049. void Info(const String&);
  15050. bool IsInstanceOf(StringHash) const;
  15051. bool IsQuiet() const;
  15052. operator Object() const;
  15053. void OnEvent(Object, StringHash, VariantMap&);
  15054. void Open(const String&);
  15055. operator RefCounted() const;
  15056. int Refs() const;
  15057. void SendEvent(StringHash);
  15058. void SendEvent(StringHash, VariantMap&);
  15059. void SetBlockEvents(bool);
  15060. void SetGlobalVar(StringHash, const Variant&);
  15061. void SetLevel(int);
  15062. void SetQuiet(bool);
  15063. void SetTimeStamp(bool);
  15064. const String& GetCategory() const;
  15065. const String& GetTypeName() const;
  15066. void Trace(const String&);
  15067. void UnsubscribeFromAllEvents();
  15068. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15069. void UnsubscribeFromEvent(Object, StringHash);
  15070. void UnsubscribeFromEvent(StringHash);
  15071. void UnsubscribeFromEvents(Object);
  15072. const Variant& GetGlobalVar(StringHash) const;
  15073. const VariantMap& GetGlobalVars() const;
  15074. void Warning(const String&);
  15075. int WeakRefs() const;
  15076. void Write(const String&, bool error = false);
  15077. operator const Object() const;
  15078. operator const RefCounted() const;
  15079. // Properties:
  15080. /* readonly */
  15081. String category;
  15082. Array<Variant> globalVar;
  15083. /* readonly */
  15084. VariantMap globalVars;
  15085. /* readonly */
  15086. String lastMessage;
  15087. int level;
  15088. bool quiet;
  15089. /* readonly */
  15090. int refs;
  15091. bool timeStamp;
  15092. /* readonly */
  15093. StringHash type;
  15094. /* readonly */
  15095. String typeName;
  15096. /* readonly */
  15097. int weakRefs;
  15098. };
  15099. class LogicComponent
  15100. {
  15101. public:
  15102. LogicComponent();
  15103. // Methods:
  15104. void AllocateNetworkState();
  15105. operator Animatable() const;
  15106. void ApplyAttributes();
  15107. void CleanupConnection(Connection);
  15108. operator Component() const;
  15109. void DelayedStart();
  15110. void DrawDebugGeometry(DebugRenderer, bool);
  15111. void FixedPostUpdate(float);
  15112. void FixedUpdate(float);
  15113. bool GetAnimationEnabled() const;
  15114. Variant GetAttribute(const String&) const;
  15115. Variant GetAttribute(uint) const;
  15116. ValueAnimation GetAttributeAnimation(const String&) const;
  15117. float GetAttributeAnimationSpeed(const String&) const;
  15118. float GetAttributeAnimationTime(const String&) const;
  15119. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15120. Variant GetAttributeDefault(const String&) const;
  15121. Variant GetAttributeDefault(uint) const;
  15122. bool GetBlockEvents() const;
  15123. Component GetComponent(StringHash) const;
  15124. VariantMap& GetEventDataMap() const;
  15125. Object GetEventSender() const;
  15126. uint GetID() const;
  15127. bool GetInterceptNetworkUpdate(const String&) const;
  15128. Node GetNode() const;
  15129. uint GetNumAttributes() const;
  15130. uint GetNumNetworkAttributes() const;
  15131. ObjectAnimation GetObjectAnimation() const;
  15132. ResourceRef GetObjectAnimationAttr() const;
  15133. Scene GetScene() const;
  15134. Object GetSubsystem(StringHash) const;
  15135. StringHash GetType() const;
  15136. int GetUpdateEventMask() const;
  15137. bool HasEventHandlers() const;
  15138. bool HasSubscribedToEvent(Object, StringHash) const;
  15139. bool HasSubscribedToEvent(StringHash) const;
  15140. bool IsDelayedStartCalled() const;
  15141. bool IsEnabled() const;
  15142. bool IsEnabledEffective() const;
  15143. bool IsInstanceOf(StringHash) const;
  15144. bool IsReplicated() const;
  15145. bool IsTemporary() const;
  15146. bool Load(Deserializer&);
  15147. bool LoadJSON(const JSONValue&);
  15148. bool LoadXML(const XMLElement&);
  15149. void MarkNetworkUpdate();
  15150. operator Object() const;
  15151. void OnEvent(Object, StringHash, VariantMap&);
  15152. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  15153. void OnSetAttribute(const AttributeInfo&, const Variant&);
  15154. void OnSetEnabled();
  15155. void PostUpdate(float);
  15156. void PrepareNetworkUpdate();
  15157. operator RaycastVehicle() const;
  15158. bool ReadDeltaUpdate(Deserializer&);
  15159. bool ReadLatestDataUpdate(Deserializer&);
  15160. operator RefCounted() const;
  15161. int Refs() const;
  15162. void Remove();
  15163. void RemoveAttributeAnimation(const String&);
  15164. void RemoveInstanceDefault();
  15165. void RemoveObjectAnimation();
  15166. void ResetToDefault();
  15167. bool Save(Serializer&) const;
  15168. bool SaveDefaultAttributes() const;
  15169. bool SaveJSON(JSONValue&) const;
  15170. bool SaveXML(XMLElement&) const;
  15171. void SendEvent(StringHash);
  15172. void SendEvent(StringHash, VariantMap&);
  15173. operator Serializable() const;
  15174. void SetAnimationEnabled(bool);
  15175. void SetAnimationTime(float);
  15176. bool SetAttribute(const String&, const Variant&);
  15177. bool SetAttribute(uint, const Variant&);
  15178. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15179. void SetAttributeAnimationSpeed(const String&, float);
  15180. void SetAttributeAnimationTime(const String&, float);
  15181. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15182. void SetBlockEvents(bool);
  15183. void SetEnabled(bool);
  15184. void SetGlobalVar(StringHash, const Variant&);
  15185. void SetInstanceDefault(bool);
  15186. void SetInterceptNetworkUpdate(const String&, bool);
  15187. void SetObjectAnimation(ObjectAnimation);
  15188. void SetObjectAnimationAttr(const ResourceRef&);
  15189. void SetTemporary(bool);
  15190. void SetUpdateEventMask(int);
  15191. void Start();
  15192. void Stop();
  15193. const String& GetCategory() const;
  15194. const String& GetTypeName() const;
  15195. void UnsubscribeFromAllEvents();
  15196. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15197. void UnsubscribeFromEvent(Object, StringHash);
  15198. void UnsubscribeFromEvent(StringHash);
  15199. void UnsubscribeFromEvents(Object);
  15200. void Update(float);
  15201. const Variant& GetGlobalVar(StringHash) const;
  15202. const VariantMap& GetGlobalVars() const;
  15203. int WeakRefs() const;
  15204. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  15205. void WriteInitialDeltaUpdate(Serializer&, uint8);
  15206. void WriteLatestDataUpdate(Serializer&, uint8);
  15207. operator const Animatable() const;
  15208. operator const Component() const;
  15209. operator const Object() const;
  15210. operator const RaycastVehicle() const;
  15211. operator const RefCounted() const;
  15212. operator const Serializable() const;
  15213. // Properties:
  15214. bool animationEnabled;
  15215. /* readonly */
  15216. Array<Variant> attributeDefaults;
  15217. /* readonly */
  15218. Array<AttributeInfo> attributeInfos;
  15219. Array<Variant> attributes;
  15220. /* readonly */
  15221. String category;
  15222. bool enabled;
  15223. /* readonly */
  15224. bool enabledEffective;
  15225. Array<Variant> globalVar;
  15226. /* readonly */
  15227. VariantMap globalVars;
  15228. /* readonly */
  15229. uint id;
  15230. /* readonly */
  15231. Node node;
  15232. /* readonly */
  15233. uint numAttributes;
  15234. ObjectAnimation objectAnimation;
  15235. /* readonly */
  15236. int refs;
  15237. /* readonly */
  15238. bool replicated;
  15239. bool temporary;
  15240. /* readonly */
  15241. StringHash type;
  15242. /* readonly */
  15243. String typeName;
  15244. /* readonly */
  15245. int weakRefs;
  15246. };
  15247. class ManifoldPair
  15248. {
  15249. public:
  15250. ~ManifoldPair();
  15251. ManifoldPair();
  15252. // Methods:
  15253. ManifoldPair& operator=(const ManifoldPair&);
  15254. };
  15255. class Material
  15256. {
  15257. public:
  15258. Material();
  15259. // Methods:
  15260. bool BeginLoad(Deserializer&);
  15261. const BiasParameters& GetDepthBias() const;
  15262. Material Clone(const String& = String :: EMPTY) const;
  15263. bool EndLoad();
  15264. bool GetAlphaToCoverage() const;
  15265. AsyncLoadState GetAsyncLoadState() const;
  15266. int GetAuxViewFrameNumber() const;
  15267. bool GetBlockEvents() const;
  15268. CullMode GetCullMode() const;
  15269. VariantMap& GetEventDataMap() const;
  15270. Object GetEventSender() const;
  15271. FillMode GetFillMode() const;
  15272. bool GetLineAntiAlias() const;
  15273. uint GetMemoryUse() const;
  15274. StringHash GetNameHash() const;
  15275. int GetNumTechniques() const;
  15276. bool GetOcclusion() const;
  15277. Pass GetPass(int, const String&) const;
  15278. uint8 GetRenderOrder() const;
  15279. Scene GetScene() const;
  15280. ValueAnimation GetShaderParameterAnimation(const String&) const;
  15281. float GetShaderParameterAnimationSpeed(const String&) const;
  15282. WrapMode GetShaderParameterAnimationWrapMode(const String&) const;
  15283. uint GetShaderParameterHash() const;
  15284. CullMode GetShadowCullMode() const;
  15285. bool GetSpecular() const;
  15286. Object GetSubsystem(StringHash) const;
  15287. Technique GetTechnique(int) const;
  15288. Array<TechniqueEntry> GetTechniques() const;
  15289. Texture GetTexture(TextureUnit) const;
  15290. StringHash GetType() const;
  15291. uint GetUseTimer();
  15292. bool HasEventHandlers() const;
  15293. bool HasSubscribedToEvent(Object, StringHash) const;
  15294. bool HasSubscribedToEvent(StringHash) const;
  15295. bool IsInstanceOf(StringHash) const;
  15296. bool Load(Deserializer&);
  15297. bool Load(File);
  15298. bool Load(VectorBuffer&);
  15299. bool Load(const JSONValue&);
  15300. bool Load(const String&);
  15301. bool Load(const XMLElement&);
  15302. bool LoadFile(const String&);
  15303. void MarkForAuxView(int);
  15304. operator Object() const;
  15305. void OnEvent(Object, StringHash, VariantMap&);
  15306. operator RefCounted() const;
  15307. int Refs() const;
  15308. void ReleaseShaders();
  15309. void RemoveShaderParameter(const String&);
  15310. void ResetUseTimer();
  15311. operator Resource() const;
  15312. bool Save(File) const;
  15313. bool Save(JSONValue&) const;
  15314. bool Save(Serializer&) const;
  15315. bool Save(VectorBuffer&) const;
  15316. bool Save(XMLElement&) const;
  15317. bool Save(const String&) const;
  15318. bool SaveFile(const String&) const;
  15319. void SendEvent(StringHash);
  15320. void SendEvent(StringHash, VariantMap&);
  15321. void SetAlphaToCoverage(bool);
  15322. void SetAsyncLoadState(AsyncLoadState);
  15323. void SetBlockEvents(bool);
  15324. void SetCullMode(CullMode);
  15325. void SetDepthBias(const BiasParameters&);
  15326. void SetFillMode(FillMode);
  15327. void SetGlobalVar(StringHash, const Variant&);
  15328. void SetLineAntiAlias(bool);
  15329. void SetMemoryUse(uint);
  15330. void SetName(const String&);
  15331. void SetNumTechniques(int);
  15332. void SetOcclusion(bool);
  15333. void SetPixelShaderDefines(const String&);
  15334. void SetRenderOrder(uint8);
  15335. void SetScene(Scene);
  15336. void SetShaderParameter(const String&, const Variant&);
  15337. void SetShaderParameterAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15338. void SetShaderParameterAnimationSpeed(const String&, float);
  15339. void SetShaderParameterAnimationWrapMode(const String&, WrapMode);
  15340. void SetShadowCullMode(CullMode);
  15341. void SetTechnique(int, Technique, uint = QUALITY_LOW, float = 0.0f);
  15342. void SetTexture(TextureUnit, Texture);
  15343. void SetUVTransform(const Vector2&, float, const Vector2&);
  15344. void SetUVTransform(const Vector2&, float, float);
  15345. void SetVertexShaderDefines(const String&);
  15346. void SortTechniques();
  15347. const String& GetCategory() const;
  15348. const String& GetName() const;
  15349. const String& GetPixelShaderDefines() const;
  15350. const String& GetTypeName() const;
  15351. const String& GetVertexShaderDefines() const;
  15352. const TechniqueEntry& GetTechniqueEntry(int) const;
  15353. void UnsubscribeFromAllEvents();
  15354. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15355. void UnsubscribeFromEvent(Object, StringHash);
  15356. void UnsubscribeFromEvent(StringHash);
  15357. void UnsubscribeFromEvents(Object);
  15358. const Variant& GetGlobalVar(StringHash) const;
  15359. const Variant& GetShaderParameter(const String&) const;
  15360. const VariantMap& GetGlobalVars() const;
  15361. int WeakRefs() const;
  15362. operator const Object() const;
  15363. operator const RefCounted() const;
  15364. operator const Resource() const;
  15365. // Properties:
  15366. bool alphaToCoverage;
  15367. /* readonly */
  15368. String category;
  15369. CullMode cullMode;
  15370. BiasParameters depthBias;
  15371. FillMode fillMode;
  15372. Array<Variant> globalVar;
  15373. /* readonly */
  15374. VariantMap globalVars;
  15375. bool lineAntiAlias;
  15376. /* readonly */
  15377. uint memoryUse;
  15378. String name;
  15379. int numTechniques;
  15380. bool occlusion;
  15381. String pixelShaderDefines;
  15382. /* readonly */
  15383. int refs;
  15384. uint8 renderOrder;
  15385. Scene scene;
  15386. /* readonly */
  15387. Array<String> shaderParameterNames;
  15388. Array<Variant> shaderParameters;
  15389. CullMode shadowCullMode;
  15390. /* readonly */
  15391. Array<TechniqueEntry> techniqueEntries;
  15392. /* readonly */
  15393. Array<Technique> techniques;
  15394. Array<Texture> textures;
  15395. /* readonly */
  15396. StringHash type;
  15397. /* readonly */
  15398. String typeName;
  15399. /* readonly */
  15400. uint useTimer;
  15401. String vertexShaderDefines;
  15402. /* readonly */
  15403. int weakRefs;
  15404. };
  15405. class MaterialShaderParameter
  15406. {
  15407. public:
  15408. ~MaterialShaderParameter();
  15409. MaterialShaderParameter();
  15410. // Methods:
  15411. MaterialShaderParameter& operator=(const MaterialShaderParameter&);
  15412. // Properties:
  15413. String name;
  15414. Variant value;
  15415. };
  15416. class Matrix2
  15417. {
  15418. public:
  15419. Matrix2();
  15420. Matrix2(const Matrix2&in);
  15421. Matrix2(float, float, float, float);
  15422. // Methods:
  15423. Matrix2 operator+(const Matrix2&) const;
  15424. Matrix2& operator=(const Matrix2&);
  15425. bool operator==(const Matrix2&) const;
  15426. bool Equals(const Matrix2&) const;
  15427. Matrix2 Inverse() const;
  15428. bool IsInf() const;
  15429. bool IsNaN() const;
  15430. Vector2 Scale() const;
  15431. Matrix2 Scaled(const Vector2&) const;
  15432. void SetScale(const Vector2&);
  15433. void SetScale(float);
  15434. String ToString() const;
  15435. Matrix2 Transpose() const;
  15436. // Properties:
  15437. float m00;
  15438. float m01;
  15439. float m10;
  15440. float m11;
  15441. // Constants:
  15442. static const Matrix2 IDENTITY;
  15443. static const Matrix2 ZERO;
  15444. };
  15445. class Matrix3
  15446. {
  15447. public:
  15448. Matrix3();
  15449. Matrix3(const Matrix3&in);
  15450. Matrix3(float, float, float, float, float, float, float, float, float);
  15451. // Methods:
  15452. Matrix3 operator+(const Matrix3&) const;
  15453. Matrix3& operator=(const Matrix3&);
  15454. bool operator==(const Matrix3&) const;
  15455. Vector3 Column(uint) const;
  15456. float Element(uint, uint) const;
  15457. bool Equals(const Matrix3&) const;
  15458. Matrix3 Inverse() const;
  15459. bool IsInf() const;
  15460. bool IsNaN() const;
  15461. Vector3 Row(uint) const;
  15462. Vector3 Scale() const;
  15463. Matrix3 Scaled(const Vector3&) const;
  15464. void SetScale(const Vector3&);
  15465. void SetScale(float);
  15466. Vector3 SignedScale(const Matrix3&) const;
  15467. String ToString() const;
  15468. Matrix3 Transpose() const;
  15469. // Properties:
  15470. float m00;
  15471. float m01;
  15472. float m02;
  15473. float m10;
  15474. float m11;
  15475. float m12;
  15476. float m20;
  15477. float m21;
  15478. float m22;
  15479. // Constants:
  15480. static const Matrix3 IDENTITY;
  15481. static const Matrix3 ZERO;
  15482. };
  15483. class Matrix3x4
  15484. {
  15485. public:
  15486. Matrix3x4();
  15487. Matrix3x4(const Matrix3x4&in);
  15488. Matrix3x4(const Matrix3&in);
  15489. Matrix3x4(const Matrix4&in);
  15490. Matrix3x4(float, float, float, float, float, float, float, float, float, float, float, float);
  15491. Matrix3x4(const Vector3&in, const Quaternion&in, float);
  15492. Matrix3x4(const Vector3&in, const Quaternion&in, const Vector3&in);
  15493. // Methods:
  15494. Matrix3x4 operator+(const Matrix3x4&) const;
  15495. Matrix3x4& operator=(const Matrix3&);
  15496. Matrix3x4& operator=(const Matrix3x4&);
  15497. Matrix3x4& operator=(const Matrix4&);
  15498. bool operator==(const Matrix3x4&) const;
  15499. Vector3 Column(uint) const;
  15500. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  15501. float Element(uint, uint) const;
  15502. bool Equals(const Matrix3x4&) const;
  15503. Matrix3x4 Inverse() const;
  15504. bool IsInf() const;
  15505. bool IsNaN() const;
  15506. Quaternion Rotation() const;
  15507. Matrix3 RotationMatrix() const;
  15508. Vector4 Row(uint) const;
  15509. Vector3 Scale() const;
  15510. void SetRotation(const Matrix3&);
  15511. void SetScale(const Vector3&);
  15512. void SetScale(float);
  15513. void SetTranslation(const Vector3&);
  15514. Vector3 SignedScale(const Matrix3&) const;
  15515. Matrix3 ToMatrix3() const;
  15516. Matrix4 ToMatrix4() const;
  15517. String ToString() const;
  15518. Vector3 Translation() const;
  15519. // Properties:
  15520. float m00;
  15521. float m01;
  15522. float m02;
  15523. float m03;
  15524. float m10;
  15525. float m11;
  15526. float m12;
  15527. float m13;
  15528. float m20;
  15529. float m21;
  15530. float m22;
  15531. float m23;
  15532. // Constants:
  15533. static const Matrix3x4 IDENTITY;
  15534. static const Matrix3x4 ZERO;
  15535. };
  15536. class Matrix4
  15537. {
  15538. public:
  15539. Matrix4();
  15540. Matrix4(const Matrix4&in);
  15541. Matrix4(const Matrix3&in);
  15542. Matrix4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float);
  15543. // Methods:
  15544. Matrix4 operator+(const Matrix4&) const;
  15545. Matrix4& operator=(const Matrix3&);
  15546. Matrix4& operator=(const Matrix4&);
  15547. bool operator==(const Matrix4&) const;
  15548. Vector4 Column(uint) const;
  15549. void Decompose(Vector3&, Quaternion&, Vector3&) const;
  15550. float Element(uint, uint) const;
  15551. bool Equals(const Matrix4&) const;
  15552. Matrix4 Inverse() const;
  15553. bool IsInf() const;
  15554. bool IsNaN() const;
  15555. Quaternion Rotation() const;
  15556. Matrix3 RotationMatrix() const;
  15557. Vector4 Row(uint) const;
  15558. Vector3 Scale() const;
  15559. void SetRotation(const Matrix3&);
  15560. void SetScale(const Vector3&);
  15561. void SetScale(float);
  15562. void SetTranslation(const Vector3&);
  15563. Vector3 SignedScale(const Matrix3&) const;
  15564. Matrix3 ToMatrix3() const;
  15565. String ToString() const;
  15566. Vector3 Translation() const;
  15567. Matrix4 Transpose() const;
  15568. // Properties:
  15569. float m00;
  15570. float m01;
  15571. float m02;
  15572. float m03;
  15573. float m10;
  15574. float m11;
  15575. float m12;
  15576. float m13;
  15577. float m20;
  15578. float m21;
  15579. float m22;
  15580. float m23;
  15581. float m30;
  15582. float m31;
  15583. float m32;
  15584. float m33;
  15585. // Constants:
  15586. static const Matrix4 IDENTITY;
  15587. static const Matrix4 ZERO;
  15588. };
  15589. class Menu
  15590. {
  15591. public:
  15592. Menu();
  15593. Menu(const String&in);
  15594. // Methods:
  15595. void AddChild(UIElement);
  15596. void AddTag(const String&);
  15597. void AddTags(Array<String>);
  15598. void AddTags(const String&, int8 = ';');
  15599. void AdjustScissor(IntRect&);
  15600. void AllocateNetworkState();
  15601. operator Animatable() const;
  15602. void ApplyAttributes();
  15603. operator BorderImage() const;
  15604. void BringToFront();
  15605. operator Button() const;
  15606. const Color& GetColor(Corner) const;
  15607. const Color& GetColorAttr() const;
  15608. const Color& GetDerivedColor() const;
  15609. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  15610. void DisableLayoutUpdate();
  15611. operator DropDownList() const;
  15612. IntVector2 ElementToScreen(const IntVector2&);
  15613. void EnableLayoutUpdate();
  15614. bool FilterAttributes(XMLElement&) const;
  15615. int FindChild(UIElement) const;
  15616. int GetAcceleratorKey() const;
  15617. int GetAcceleratorQualifiers() const;
  15618. bool GetAnimationEnabled() const;
  15619. Variant GetAttribute(const String&) const;
  15620. Variant GetAttribute(uint) const;
  15621. ValueAnimation GetAttributeAnimation(const String&) const;
  15622. float GetAttributeAnimationSpeed(const String&) const;
  15623. float GetAttributeAnimationTime(const String&) const;
  15624. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  15625. Variant GetAttributeDefault(const String&) const;
  15626. Variant GetAttributeDefault(uint) const;
  15627. BlendMode GetBlendMode() const;
  15628. bool GetBlockEvents() const;
  15629. bool GetBringToBack() const;
  15630. bool GetBringToFront() const;
  15631. UIElement GetChild(const String&, bool = false) const;
  15632. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  15633. UIElement GetChild(int) const;
  15634. Array<UIElement> GetChildren() const;
  15635. Array<UIElement> GetChildren(bool) const;
  15636. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  15637. bool GetClipChildren() const;
  15638. IntRect GetCombinedScreenRect();
  15639. XMLFile GetDefaultStyle(bool = true) const;
  15640. float GetDerivedOpacity() const;
  15641. uint GetDragButtonCombo() const;
  15642. int GetDragButtonCount() const;
  15643. uint GetDragDropMode() const;
  15644. IntVector2 GetEffectiveMinSize() const;
  15645. UIElement GetElementEventSender() const;
  15646. bool GetEnableAnchor() const;
  15647. VariantMap& GetEventDataMap() const;
  15648. Object GetEventSender() const;
  15649. FocusMode GetFocusMode() const;
  15650. int GetHeight() const;
  15651. HorizontalAlignment GetHorizontalAlignment() const;
  15652. int GetIndent() const;
  15653. int GetIndentSpacing() const;
  15654. int GetIndentWidth() const;
  15655. bool GetInterceptNetworkUpdate(const String&) const;
  15656. int GetLayoutElementMaxSize() const;
  15657. LayoutMode GetLayoutMode() const;
  15658. int GetLayoutSpacing() const;
  15659. Material GetMaterial() const;
  15660. ResourceRef GetMaterialAttr() const;
  15661. int GetMaxHeight() const;
  15662. int GetMaxWidth() const;
  15663. int GetMinHeight() const;
  15664. int GetMinWidth() const;
  15665. uint GetNumAttributes() const;
  15666. int GetNumChildren(bool = false) const;
  15667. uint GetNumNetworkAttributes() const;
  15668. ObjectAnimation GetObjectAnimation() const;
  15669. ResourceRef GetObjectAnimationAttr() const;
  15670. float GetOpacity() const;
  15671. UIElement GetParent() const;
  15672. UIElement GetPopup() const;
  15673. int GetPriority() const;
  15674. float GetRepeatDelay() const;
  15675. float GetRepeatRate() const;
  15676. UIElement GetRoot() const;
  15677. bool GetShowPopup() const;
  15678. bool GetSortChildren() const;
  15679. Object GetSubsystem(StringHash) const;
  15680. Array<String> GetTags() const;
  15681. Texture GetTexture() const;
  15682. ResourceRef GetTextureAttr() const;
  15683. TraversalMode GetTraversalMode() const;
  15684. StringHash GetType() const;
  15685. bool GetUseDerivedOpacity() const;
  15686. VerticalAlignment GetVerticalAlignment() const;
  15687. int GetWidth() const;
  15688. bool HasColorGradient() const;
  15689. bool HasEventHandlers() const;
  15690. bool HasFocus() const;
  15691. bool HasSubscribedToEvent(Object, StringHash) const;
  15692. bool HasSubscribedToEvent(StringHash) const;
  15693. bool HasTag(const String&) const;
  15694. void InsertChild(int, UIElement);
  15695. const IntRect& GetBorder() const;
  15696. const IntRect& GetClipBorder() const;
  15697. const IntRect& GetImageBorder() const;
  15698. const IntRect& GetImageRect() const;
  15699. const IntRect& GetLayoutBorder() const;
  15700. const IntVector2& GetChildOffset() const;
  15701. const IntVector2& GetDisabledOffset() const;
  15702. const IntVector2& GetHoverOffset() const;
  15703. const IntVector2& GetMaxOffset() const;
  15704. const IntVector2& GetMaxSize() const;
  15705. const IntVector2& GetMinOffset() const;
  15706. const IntVector2& GetMinSize() const;
  15707. const IntVector2& GetPopupOffset() const;
  15708. const IntVector2& GetPosition() const;
  15709. const IntVector2& GetPressedChildOffset() const;
  15710. const IntVector2& GetPressedOffset() const;
  15711. const IntVector2& GetScreenPosition() const;
  15712. const IntVector2& GetSize() const;
  15713. bool IsChildOf(UIElement) const;
  15714. bool IsEditable() const;
  15715. bool IsElementEventSender() const;
  15716. bool IsEnabled() const;
  15717. bool IsEnabledSelf() const;
  15718. bool IsFixedHeight() const;
  15719. bool IsFixedSize() const;
  15720. bool IsFixedWidth() const;
  15721. bool IsHovering() const;
  15722. bool IsInside(IntVector2, bool);
  15723. bool IsInsideCombined(IntVector2, bool);
  15724. bool IsInstanceOf(StringHash) const;
  15725. bool IsInternal() const;
  15726. bool IsPressed() const;
  15727. bool IsSelected() const;
  15728. bool IsTemporary() const;
  15729. bool IsTiled() const;
  15730. bool IsVisible() const;
  15731. bool IsVisibleEffective() const;
  15732. bool IsWheelHandler() const;
  15733. bool IsWithinScissor(const IntRect&);
  15734. bool Load(Deserializer&);
  15735. UIElement LoadChildXML(XMLFile, XMLFile);
  15736. UIElement LoadChildXML(const XMLElement&, XMLFile);
  15737. bool LoadJSON(const JSONValue&);
  15738. bool LoadXML(Deserializer&);
  15739. bool LoadXML(File);
  15740. bool LoadXML(VectorBuffer&);
  15741. bool LoadXML(XMLFile, XMLFile);
  15742. bool LoadXML(const XMLElement&);
  15743. bool LoadXML(const XMLElement&, XMLFile);
  15744. void MarkNetworkUpdate();
  15745. operator Object() const;
  15746. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  15747. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  15748. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  15749. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15750. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15751. bool OnDragDropFinish(UIElement);
  15752. bool OnDragDropTest(UIElement);
  15753. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15754. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15755. void OnEvent(Object, StringHash, VariantMap&);
  15756. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  15757. void OnHidePopup();
  15758. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  15759. void OnIndentSet();
  15760. void OnKey(uint, uint, uint);
  15761. void OnPositionSet(const IntVector2&);
  15762. void OnResize(const IntVector2&, const IntVector2&);
  15763. void OnSetAttribute(const AttributeInfo&, const Variant&);
  15764. void OnSetEditable();
  15765. void OnShowPopup();
  15766. void OnTextInput(const String&);
  15767. void OnWheel(int, uint, uint);
  15768. bool ReadDeltaUpdate(Deserializer&);
  15769. bool ReadLatestDataUpdate(Deserializer&);
  15770. operator RefCounted() const;
  15771. int Refs() const;
  15772. void Remove();
  15773. void RemoveAllChildren();
  15774. void RemoveAllTags();
  15775. void RemoveAttributeAnimation(const String&);
  15776. void RemoveChild(UIElement, int = 0);
  15777. void RemoveChild(uint);
  15778. void RemoveChildAtIndex(int);
  15779. void RemoveInstanceDefault();
  15780. void RemoveObjectAnimation();
  15781. bool RemoveTag(const String&);
  15782. void ResetDeepEnabled();
  15783. void ResetToDefault();
  15784. bool Save(Serializer&) const;
  15785. bool SaveDefaultAttributes() const;
  15786. bool SaveJSON(JSONValue&) const;
  15787. bool SaveXML(File, const String& indentation = "\t");
  15788. bool SaveXML(Serializer&, const String& = "\t") const;
  15789. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  15790. bool SaveXML(XMLElement&) const;
  15791. IntVector2 ScreenToElement(const IntVector2&);
  15792. void SendEvent(StringHash);
  15793. void SendEvent(StringHash, VariantMap&);
  15794. operator Serializable() const;
  15795. void SetAccelerator(int, int);
  15796. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  15797. void SetAnimationEnabled(bool);
  15798. void SetAnimationTime(float);
  15799. bool SetAttribute(const String&, const Variant&);
  15800. bool SetAttribute(uint, const Variant&);
  15801. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  15802. void SetAttributeAnimationSpeed(const String&, float);
  15803. void SetAttributeAnimationTime(const String&, float);
  15804. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  15805. void SetBlendMode(BlendMode);
  15806. void SetBlockEvents(bool);
  15807. void SetBorder(const IntRect&);
  15808. void SetBringToBack(bool);
  15809. void SetBringToFront(bool);
  15810. void SetChildOffset(const IntVector2&);
  15811. void SetClipBorder(const IntRect&);
  15812. void SetClipChildren(bool);
  15813. void SetColor(Corner, const Color&);
  15814. void SetColor(const Color&);
  15815. void SetDeepEnabled(bool);
  15816. void SetDefaultStyle(XMLFile);
  15817. void SetDisabledOffset(const IntVector2&);
  15818. void SetDisabledOffset(int, int);
  15819. void SetDragDropMode(uint);
  15820. void SetEditable(bool);
  15821. void SetElementEventSender(bool);
  15822. void SetEnableAnchor(bool);
  15823. void SetEnabled(bool);
  15824. void SetEnabledRecursive(bool);
  15825. void SetFixedHeight(int);
  15826. void SetFixedSize(const IntVector2&);
  15827. void SetFixedSize(int, int);
  15828. void SetFixedWidth(int);
  15829. void SetFocus(bool);
  15830. void SetFocusMode(FocusMode);
  15831. void SetFullImageRect();
  15832. void SetGlobalVar(StringHash, const Variant&);
  15833. void SetHeight(int);
  15834. void SetHorizontalAlignment(HorizontalAlignment);
  15835. void SetHoverOffset(const IntVector2&);
  15836. void SetHoverOffset(int, int);
  15837. void SetHovering(bool);
  15838. void SetImageBorder(const IntRect&);
  15839. void SetImageRect(const IntRect&);
  15840. void SetIndent(int);
  15841. void SetIndentSpacing(int);
  15842. void SetInstanceDefault(bool);
  15843. void SetInterceptNetworkUpdate(const String&, bool);
  15844. void SetInternal(bool);
  15845. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  15846. void SetLayoutBorder(const IntRect&);
  15847. void SetLayoutFlexScale(const Vector2&);
  15848. void SetLayoutMode(LayoutMode);
  15849. void SetLayoutSpacing(int);
  15850. void SetMaterial(Material);
  15851. void SetMaterialAttr(const ResourceRef&);
  15852. void SetMaxAnchor(const Vector2&);
  15853. void SetMaxAnchor(float, float);
  15854. void SetMaxHeight(int);
  15855. void SetMaxOffset(const IntVector2&);
  15856. void SetMaxSize(const IntVector2&);
  15857. void SetMaxSize(int, int);
  15858. void SetMaxWidth(int);
  15859. void SetMinAnchor(const Vector2&);
  15860. void SetMinAnchor(float, float);
  15861. void SetMinHeight(int);
  15862. void SetMinOffset(const IntVector2&);
  15863. void SetMinSize(const IntVector2&);
  15864. void SetMinSize(int, int);
  15865. void SetMinWidth(int);
  15866. void SetName(const String&);
  15867. void SetObjectAnimation(ObjectAnimation);
  15868. void SetObjectAnimationAttr(const ResourceRef&);
  15869. void SetOpacity(float);
  15870. void SetParent(UIElement, int = ENDPOS);
  15871. void SetPivot(const Vector2&);
  15872. void SetPivot(float, float);
  15873. void SetPopup(UIElement);
  15874. void SetPopupOffset(const IntVector2&);
  15875. void SetPopupOffset(int, int);
  15876. void SetPosition(const IntVector2&);
  15877. void SetPosition(int, int);
  15878. void SetPressedChildOffset(const IntVector2&);
  15879. void SetPressedChildOffset(int, int);
  15880. void SetPressedOffset(const IntVector2&);
  15881. void SetPressedOffset(int, int);
  15882. void SetPriority(int);
  15883. void SetRenderTexture(Texture2D);
  15884. void SetRepeat(float, float);
  15885. void SetRepeatDelay(float);
  15886. void SetRepeatRate(float);
  15887. void SetSelected(bool);
  15888. void SetSize(const IntVector2&);
  15889. void SetSize(int, int);
  15890. void SetSortChildren(bool);
  15891. bool SetStyle(const String&, XMLFile = null);
  15892. bool SetStyle(const XMLElement&);
  15893. bool SetStyleAuto(XMLFile = null);
  15894. void SetTags(Array<String>);
  15895. void SetTemporary(bool);
  15896. void SetTexture(Texture);
  15897. void SetTextureAttr(const ResourceRef&);
  15898. void SetTiled(bool);
  15899. void SetTraversalMode(TraversalMode);
  15900. void SetUseDerivedOpacity(bool);
  15901. void SetVar(StringHash, const Variant&);
  15902. void SetVerticalAlignment(VerticalAlignment);
  15903. void SetVisible(bool);
  15904. void SetWidth(int);
  15905. void ShowPopup(bool);
  15906. void SortChildren();
  15907. const String& GetAppliedStyle() const;
  15908. const String& GetCategory() const;
  15909. const String& GetName() const;
  15910. const String& GetTypeName() const;
  15911. operator UIElement() const;
  15912. void UnsubscribeFromAllEvents();
  15913. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  15914. void UnsubscribeFromEvent(Object, StringHash);
  15915. void UnsubscribeFromEvent(StringHash);
  15916. void UnsubscribeFromEvents(Object);
  15917. void Update(float);
  15918. void UpdateLayout();
  15919. const Variant& GetGlobalVar(StringHash) const;
  15920. const Variant& GetVar(const StringHash&) const;
  15921. const VariantMap& GetGlobalVars() const;
  15922. const VariantMap& GetVars() const;
  15923. const Vector2& GetLayoutFlexScale() const;
  15924. const Vector2& GetMaxAnchor() const;
  15925. const Vector2& GetMinAnchor() const;
  15926. const Vector2& GetPivot() const;
  15927. int WeakRefs() const;
  15928. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  15929. void WriteInitialDeltaUpdate(Serializer&, uint8);
  15930. void WriteLatestDataUpdate(Serializer&, uint8);
  15931. operator const Animatable() const;
  15932. operator const BorderImage() const;
  15933. operator const Button() const;
  15934. operator const DropDownList() const;
  15935. operator const Object() const;
  15936. operator const RefCounted() const;
  15937. operator const Serializable() const;
  15938. operator const UIElement() const;
  15939. // Properties:
  15940. /* readonly */
  15941. int acceleratorKey;
  15942. /* readonly */
  15943. int acceleratorQualifiers;
  15944. bool animationEnabled;
  15945. /* readonly */
  15946. Array<Variant> attributeDefaults;
  15947. /* readonly */
  15948. Array<AttributeInfo> attributeInfos;
  15949. Array<Variant> attributes;
  15950. BlendMode blendMode;
  15951. IntRect border;
  15952. bool bringToBack;
  15953. bool bringToFront;
  15954. /* readonly */
  15955. String category;
  15956. /* readonly */
  15957. IntVector2 childOffset;
  15958. /* readonly */
  15959. Array<UIElement> children;
  15960. IntRect clipBorder;
  15961. bool clipChildren;
  15962. /* writeonly */
  15963. Color color;
  15964. /* readonly */
  15965. bool colorGradient;
  15966. Array<Color> colors;
  15967. /* readonly */
  15968. IntRect combinedScreenRect;
  15969. XMLFile defaultStyle;
  15970. /* readonly */
  15971. float derivedOpacity;
  15972. IntVector2 disabledOffset;
  15973. /* readonly */
  15974. uint dragButtonCombo;
  15975. /* readonly */
  15976. int dragButtonCount;
  15977. uint dragDropMode;
  15978. bool editable;
  15979. bool elementEventSender;
  15980. bool enableAnchor;
  15981. bool enabled;
  15982. /* readonly */
  15983. bool enabledSelf;
  15984. /* readonly */
  15985. bool fixedHeight;
  15986. /* readonly */
  15987. bool fixedSize;
  15988. /* readonly */
  15989. bool fixedWidth;
  15990. bool focus;
  15991. FocusMode focusMode;
  15992. Array<Variant> globalVar;
  15993. /* readonly */
  15994. VariantMap globalVars;
  15995. int height;
  15996. HorizontalAlignment horizontalAlignment;
  15997. IntVector2 hoverOffset;
  15998. /* readonly */
  15999. bool hovering;
  16000. IntRect imageBorder;
  16001. IntRect imageRect;
  16002. int indent;
  16003. int indentSpacing;
  16004. /* readonly */
  16005. int indentWidth;
  16006. bool internal;
  16007. IntRect layoutBorder;
  16008. Vector2 layoutFlexScale;
  16009. LayoutMode layoutMode;
  16010. int layoutSpacing;
  16011. Material material;
  16012. Vector2 maxAnchor;
  16013. int maxHeight;
  16014. IntVector2 maxOffset;
  16015. IntVector2 maxSize;
  16016. int maxWidth;
  16017. Vector2 minAnchor;
  16018. int minHeight;
  16019. IntVector2 minOffset;
  16020. IntVector2 minSize;
  16021. int minWidth;
  16022. String name;
  16023. /* readonly */
  16024. uint numAllChildren;
  16025. /* readonly */
  16026. uint numAttributes;
  16027. /* readonly */
  16028. uint numChildren;
  16029. ObjectAnimation objectAnimation;
  16030. float opacity;
  16031. UIElement parent;
  16032. Vector2 pivot;
  16033. UIElement popup;
  16034. IntVector2 popupOffset;
  16035. IntVector2 position;
  16036. /* readonly */
  16037. bool pressed;
  16038. IntVector2 pressedChildOffset;
  16039. IntVector2 pressedOffset;
  16040. int priority;
  16041. /* readonly */
  16042. int refs;
  16043. float repeatDelay;
  16044. float repeatRate;
  16045. /* readonly */
  16046. UIElement root;
  16047. /* readonly */
  16048. IntVector2 screenPosition;
  16049. bool selected;
  16050. bool showPopup;
  16051. IntVector2 size;
  16052. bool sortChildren;
  16053. String style;
  16054. /* readonly */
  16055. Array<String> tags;
  16056. bool temporary;
  16057. Texture texture;
  16058. bool tiled;
  16059. TraversalMode traversalMode;
  16060. /* readonly */
  16061. StringHash type;
  16062. /* readonly */
  16063. String typeName;
  16064. bool useDerivedOpacity;
  16065. /* readonly */
  16066. VariantMap vars;
  16067. VerticalAlignment verticalAlignment;
  16068. bool visible;
  16069. /* readonly */
  16070. bool visibleEffective;
  16071. /* readonly */
  16072. int weakRefs;
  16073. int width;
  16074. };
  16075. class MessageBox
  16076. {
  16077. public:
  16078. MessageBox(const String&in = String :: EMPTY, const String&in = String :: EMPTY, XMLFile& = null, XMLFile& = null);
  16079. // Methods:
  16080. bool GetBlockEvents() const;
  16081. VariantMap& GetEventDataMap() const;
  16082. Object GetEventSender() const;
  16083. Object GetSubsystem(StringHash) const;
  16084. StringHash GetType() const;
  16085. UIElement GetWindow() const;
  16086. bool HasEventHandlers() const;
  16087. bool HasSubscribedToEvent(Object, StringHash) const;
  16088. bool HasSubscribedToEvent(StringHash) const;
  16089. bool IsInstanceOf(StringHash) const;
  16090. operator Object() const;
  16091. void OnEvent(Object, StringHash, VariantMap&);
  16092. operator RefCounted() const;
  16093. int Refs() const;
  16094. void SendEvent(StringHash);
  16095. void SendEvent(StringHash, VariantMap&);
  16096. void SetBlockEvents(bool);
  16097. void SetGlobalVar(StringHash, const Variant&);
  16098. void SetMessage(const String&);
  16099. void SetTitle(const String&);
  16100. const String& GetCategory() const;
  16101. const String& GetMessage() const;
  16102. const String& GetTitle() const;
  16103. const String& GetTypeName() const;
  16104. void UnsubscribeFromAllEvents();
  16105. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16106. void UnsubscribeFromEvent(Object, StringHash);
  16107. void UnsubscribeFromEvent(StringHash);
  16108. void UnsubscribeFromEvents(Object);
  16109. const Variant& GetGlobalVar(StringHash) const;
  16110. const VariantMap& GetGlobalVars() const;
  16111. int WeakRefs() const;
  16112. operator const Object() const;
  16113. operator const RefCounted() const;
  16114. // Properties:
  16115. /* readonly */
  16116. String category;
  16117. Array<Variant> globalVar;
  16118. /* readonly */
  16119. VariantMap globalVars;
  16120. String message;
  16121. /* readonly */
  16122. int refs;
  16123. String title;
  16124. /* readonly */
  16125. StringHash type;
  16126. /* readonly */
  16127. String typeName;
  16128. /* readonly */
  16129. int weakRefs;
  16130. /* readonly */
  16131. UIElement window;
  16132. };
  16133. class Model
  16134. {
  16135. public:
  16136. Model();
  16137. // Methods:
  16138. void AddMetadata(const String&, const Variant&);
  16139. bool BeginLoad(Deserializer&);
  16140. const BoundingBox& GetBoundingBox() const;
  16141. Model Clone(const String& = String :: EMPTY) const;
  16142. bool EndLoad();
  16143. AsyncLoadState GetAsyncLoadState() const;
  16144. bool GetBlockEvents() const;
  16145. VariantMap& GetEventDataMap() const;
  16146. Object GetEventSender() const;
  16147. Geometry GetGeometry(uint, uint) const;
  16148. Array<Vector3> GetGeometryCenters() const;
  16149. Array<IndexBuffer> GetIndexBuffers() const;
  16150. uint GetMemoryUse() const;
  16151. uint GetMorphRangeCount(uint) const;
  16152. uint GetMorphRangeStart(uint) const;
  16153. Array<ModelMorph> GetMorphs() const;
  16154. StringHash GetNameHash() const;
  16155. uint GetNumGeometries() const;
  16156. uint GetNumGeometryLodLevels(uint) const;
  16157. uint GetNumMorphs() const;
  16158. Skeleton& GetSkeleton();
  16159. Object GetSubsystem(StringHash) const;
  16160. StringHash GetType() const;
  16161. uint GetUseTimer();
  16162. Array<VertexBuffer> GetVertexBuffers() const;
  16163. bool HasEventHandlers() const;
  16164. bool HasMetadata() const;
  16165. bool HasSubscribedToEvent(Object, StringHash) const;
  16166. bool HasSubscribedToEvent(StringHash) const;
  16167. bool IsInstanceOf(StringHash) const;
  16168. bool Load(Deserializer&);
  16169. bool Load(File);
  16170. bool Load(VectorBuffer&);
  16171. bool Load(const String&);
  16172. bool LoadFile(const String&);
  16173. operator Object() const;
  16174. void OnEvent(Object, StringHash, VariantMap&);
  16175. operator RefCounted() const;
  16176. int Refs() const;
  16177. void RemoveAllMetadata();
  16178. void RemoveMetadata(const String&);
  16179. void ResetUseTimer();
  16180. operator Resource() const;
  16181. operator ResourceWithMetadata() const;
  16182. bool Save(File) const;
  16183. bool Save(Serializer&) const;
  16184. bool Save(VectorBuffer&) const;
  16185. bool Save(const String&) const;
  16186. bool SaveFile(const String&) const;
  16187. void SendEvent(StringHash);
  16188. void SendEvent(StringHash, VariantMap&);
  16189. void SetAsyncLoadState(AsyncLoadState);
  16190. void SetBlockEvents(bool);
  16191. void SetBoundingBox(const BoundingBox&);
  16192. bool SetGeometry(uint, uint, Geometry);
  16193. bool SetGeometryCenter(uint, const Vector3&);
  16194. void SetGlobalVar(StringHash, const Variant&);
  16195. bool SetIndexBuffers(Array<IndexBuffer>);
  16196. void SetMemoryUse(uint);
  16197. void SetMorphs(Array<ModelMorph>);
  16198. void SetName(const String&);
  16199. void SetNumGeometries(uint);
  16200. bool SetNumGeometryLodLevels(uint, uint);
  16201. void SetSkeleton(const Skeleton&);
  16202. bool SetVertexBuffers(Array<Array<Array<VertexBuffer>, uint>, uint>);
  16203. const String& GetCategory() const;
  16204. const String& GetName() const;
  16205. const String& GetTypeName() const;
  16206. void UnsubscribeFromAllEvents();
  16207. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16208. void UnsubscribeFromEvent(Object, StringHash);
  16209. void UnsubscribeFromEvent(StringHash);
  16210. void UnsubscribeFromEvents(Object);
  16211. const Variant& GetGlobalVar(StringHash) const;
  16212. const Variant& GetMetadata(const String&) const;
  16213. const VariantMap& GetGlobalVars() const;
  16214. const Vector3& GetGeometryCenter(int) const;
  16215. int WeakRefs() const;
  16216. operator const Object() const;
  16217. operator const RefCounted() const;
  16218. operator const Resource() const;
  16219. operator const ResourceWithMetadata() const;
  16220. // Properties:
  16221. BoundingBox boundingBox;
  16222. /* readonly */
  16223. String category;
  16224. Array<Vector3> geometryCenters;
  16225. Array<Variant> globalVar;
  16226. /* readonly */
  16227. VariantMap globalVars;
  16228. /* readonly */
  16229. bool hasMetadata;
  16230. /* readonly */
  16231. uint memoryUse;
  16232. Array<Variant> metadata;
  16233. String name;
  16234. uint numGeometries;
  16235. Array<uint> numGeometryLodLevels;
  16236. /* readonly */
  16237. uint numMorphs;
  16238. /* readonly */
  16239. int refs;
  16240. /* readonly */
  16241. Skeleton skeleton;
  16242. /* readonly */
  16243. StringHash type;
  16244. /* readonly */
  16245. String typeName;
  16246. /* readonly */
  16247. uint useTimer;
  16248. /* readonly */
  16249. int weakRefs;
  16250. };
  16251. class ModelMorph
  16252. {
  16253. public:
  16254. ~ModelMorph();
  16255. ModelMorph();
  16256. // Methods:
  16257. ModelMorph& operator=(const ModelMorph&);
  16258. // Properties:
  16259. String name;
  16260. StringHash nameHash;
  16261. float weight;
  16262. };
  16263. class Mutex
  16264. {
  16265. public:
  16266. ~Mutex();
  16267. Mutex();
  16268. // Methods:
  16269. Mutex& operator=(const Mutex&);
  16270. void Acquire();
  16271. void Release();
  16272. bool TryAcquire();
  16273. };
  16274. class MutexLock
  16275. {
  16276. public:
  16277. ~MutexLock();
  16278. MutexLock(Mutex&inout);
  16279. };
  16280. class NamedPipe
  16281. {
  16282. public:
  16283. NamedPipe();
  16284. NamedPipe(const String&in, bool);
  16285. // Methods:
  16286. void Close();
  16287. operator Deserializer() const;
  16288. bool GetBlockEvents() const;
  16289. uint GetChecksum();
  16290. VariantMap& GetEventDataMap() const;
  16291. Object GetEventSender() const;
  16292. int64 GetPosition() const;
  16293. int64 GetSize() const;
  16294. Object GetSubsystem(StringHash) const;
  16295. StringHash GetType() const;
  16296. bool HasEventHandlers() const;
  16297. bool HasSubscribedToEvent(Object, StringHash) const;
  16298. bool HasSubscribedToEvent(StringHash) const;
  16299. bool IsEof() const;
  16300. bool IsInstanceOf(StringHash) const;
  16301. bool IsOpen() const;
  16302. bool IsServer() const;
  16303. operator Object() const;
  16304. void OnEvent(Object, StringHash, VariantMap&);
  16305. bool Open(const String&, bool);
  16306. Array<uint8> Read(uint);
  16307. bool ReadBool();
  16308. BoundingBox ReadBoundingBox();
  16309. Array<uint8> ReadBuffer();
  16310. int8 ReadByte();
  16311. Color ReadColor();
  16312. double ReadDouble();
  16313. String ReadFileID();
  16314. float ReadFloat();
  16315. int ReadInt();
  16316. int64 ReadInt64();
  16317. IntRect ReadIntRect();
  16318. IntVector2 ReadIntVector2();
  16319. IntVector3 ReadIntVector3();
  16320. String ReadLine();
  16321. Matrix3 ReadMatrix3();
  16322. Matrix3x4 ReadMatrix3x4();
  16323. Matrix4 ReadMatrix4();
  16324. uint ReadNetID();
  16325. Quaternion ReadPackedQuaternion();
  16326. Vector3 ReadPackedVector3(float);
  16327. Quaternion ReadQuaternion();
  16328. Rect ReadRect();
  16329. ResourceRef ReadResourceRef();
  16330. ResourceRefList ReadResourceRefList();
  16331. int16 ReadShort();
  16332. String ReadString();
  16333. StringHash ReadStringHash();
  16334. Array<String> ReadStringVector();
  16335. uint8 ReadUByte();
  16336. uint ReadUInt();
  16337. uint64 ReadUInt64();
  16338. uint16 ReadUShort();
  16339. uint ReadVLE();
  16340. Variant ReadVariant();
  16341. Variant ReadVariant(VariantType);
  16342. VariantMap ReadVariantMap();
  16343. Vector2 ReadVector2();
  16344. Vector3 ReadVector3();
  16345. Vector4 ReadVector4();
  16346. VectorBuffer ReadVectorBuffer(uint);
  16347. operator RefCounted() const;
  16348. int Refs() const;
  16349. int64 Seek(int64);
  16350. int64 SeekRelative(int64);
  16351. void SendEvent(StringHash);
  16352. void SendEvent(StringHash, VariantMap&);
  16353. operator Serializer() const;
  16354. void SetBlockEvents(bool);
  16355. void SetGlobalVar(StringHash, const Variant&);
  16356. void SetName(const String&);
  16357. const String& GetCategory() const;
  16358. const String& GetName() const;
  16359. const String& GetTypeName() const;
  16360. int64 Tell() const;
  16361. void UnsubscribeFromAllEvents();
  16362. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16363. void UnsubscribeFromEvent(Object, StringHash);
  16364. void UnsubscribeFromEvent(StringHash);
  16365. void UnsubscribeFromEvents(Object);
  16366. const Variant& GetGlobalVar(StringHash) const;
  16367. const VariantMap& GetGlobalVars() const;
  16368. int WeakRefs() const;
  16369. uint Write(Array<uint8>);
  16370. bool WriteBool(bool);
  16371. bool WriteBoundingBox(const BoundingBox&);
  16372. bool WriteBuffer(Array<uint8>);
  16373. bool WriteByte(int8);
  16374. bool WriteColor(const Color&);
  16375. bool WriteDouble(double);
  16376. bool WriteFileID(const String&);
  16377. bool WriteFloat(float);
  16378. bool WriteInt(int);
  16379. bool WriteInt64(int64);
  16380. bool WriteIntRect(const IntRect&);
  16381. bool WriteIntVector2(const IntVector2&);
  16382. bool WriteIntVector3(const IntVector3&);
  16383. bool WriteLine(const String&);
  16384. bool WriteMatrix3(const Matrix3&);
  16385. bool WriteMatrix3x4(const Matrix3x4&);
  16386. bool WriteMatrix4(const Matrix4&);
  16387. bool WriteNetID(uint);
  16388. bool WritePackedQuaternion(const Quaternion&);
  16389. bool WritePackedVector3(const Vector3&, float);
  16390. bool WriteQuaternion(const Quaternion&);
  16391. bool WriteRect(const Rect&);
  16392. bool WriteResourceRef(const ResourceRef&);
  16393. bool WriteResourceRefList(const ResourceRefList&);
  16394. bool WriteShort(int16);
  16395. bool WriteString(const String&);
  16396. bool WriteStringHash(const StringHash&);
  16397. bool WriteStringVector(Array<String>);
  16398. bool WriteUByte(uint8);
  16399. bool WriteUInt(uint);
  16400. bool WriteUInt64(uint64);
  16401. bool WriteUShort(uint16);
  16402. bool WriteVLE(uint);
  16403. bool WriteVariant(const Variant&);
  16404. bool WriteVariantData(const Variant&);
  16405. bool WriteVariantMap(const VariantMap&);
  16406. bool WriteVector2(const Vector2&);
  16407. bool WriteVector3(const Vector3&);
  16408. bool WriteVector4(const Vector4&);
  16409. bool WriteVectorBuffer(const VectorBuffer&);
  16410. operator const Deserializer() const;
  16411. operator const Object() const;
  16412. operator const RefCounted() const;
  16413. operator const Serializer() const;
  16414. // Properties:
  16415. /* readonly */
  16416. String category;
  16417. /* readonly */
  16418. uint checksum;
  16419. /* readonly */
  16420. bool eof;
  16421. Array<Variant> globalVar;
  16422. /* readonly */
  16423. VariantMap globalVars;
  16424. String name;
  16425. /* readonly */
  16426. bool open;
  16427. /* readonly */
  16428. int64 position;
  16429. /* readonly */
  16430. int refs;
  16431. /* readonly */
  16432. bool server;
  16433. /* readonly */
  16434. int64 size;
  16435. /* readonly */
  16436. StringHash type;
  16437. /* readonly */
  16438. String typeName;
  16439. /* readonly */
  16440. int weakRefs;
  16441. };
  16442. class NavArea
  16443. {
  16444. public:
  16445. NavArea();
  16446. // Methods:
  16447. void AllocateNetworkState();
  16448. operator Animatable() const;
  16449. void ApplyAttributes();
  16450. void CleanupConnection(Connection);
  16451. operator Component() const;
  16452. void DrawDebugGeometry(DebugRenderer, bool);
  16453. bool GetAnimationEnabled() const;
  16454. uint GetAreaID() const;
  16455. Variant GetAttribute(const String&) const;
  16456. Variant GetAttribute(uint) const;
  16457. ValueAnimation GetAttributeAnimation(const String&) const;
  16458. float GetAttributeAnimationSpeed(const String&) const;
  16459. float GetAttributeAnimationTime(const String&) const;
  16460. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16461. Variant GetAttributeDefault(const String&) const;
  16462. Variant GetAttributeDefault(uint) const;
  16463. bool GetBlockEvents() const;
  16464. BoundingBox GetBoundingBox() const;
  16465. Component GetComponent(StringHash) const;
  16466. VariantMap& GetEventDataMap() const;
  16467. Object GetEventSender() const;
  16468. uint GetID() const;
  16469. bool GetInterceptNetworkUpdate(const String&) const;
  16470. Node GetNode() const;
  16471. uint GetNumAttributes() const;
  16472. uint GetNumNetworkAttributes() const;
  16473. ObjectAnimation GetObjectAnimation() const;
  16474. ResourceRef GetObjectAnimationAttr() const;
  16475. Scene GetScene() const;
  16476. Object GetSubsystem(StringHash) const;
  16477. StringHash GetType() const;
  16478. BoundingBox GetWorldBoundingBox() const;
  16479. bool HasEventHandlers() const;
  16480. bool HasSubscribedToEvent(Object, StringHash) const;
  16481. bool HasSubscribedToEvent(StringHash) const;
  16482. bool IsEnabled() const;
  16483. bool IsEnabledEffective() const;
  16484. bool IsInstanceOf(StringHash) const;
  16485. bool IsReplicated() const;
  16486. bool IsTemporary() const;
  16487. bool Load(Deserializer&);
  16488. bool LoadJSON(const JSONValue&);
  16489. bool LoadXML(const XMLElement&);
  16490. void MarkNetworkUpdate();
  16491. operator Object() const;
  16492. void OnEvent(Object, StringHash, VariantMap&);
  16493. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16494. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16495. void OnSetEnabled();
  16496. void PrepareNetworkUpdate();
  16497. bool ReadDeltaUpdate(Deserializer&);
  16498. bool ReadLatestDataUpdate(Deserializer&);
  16499. operator RefCounted() const;
  16500. int Refs() const;
  16501. void Remove();
  16502. void RemoveAttributeAnimation(const String&);
  16503. void RemoveInstanceDefault();
  16504. void RemoveObjectAnimation();
  16505. void ResetToDefault();
  16506. bool Save(Serializer&) const;
  16507. bool SaveDefaultAttributes() const;
  16508. bool SaveJSON(JSONValue&) const;
  16509. bool SaveXML(XMLElement&) const;
  16510. void SendEvent(StringHash);
  16511. void SendEvent(StringHash, VariantMap&);
  16512. operator Serializable() const;
  16513. void SetAnimationEnabled(bool);
  16514. void SetAnimationTime(float);
  16515. void SetAreaID(uint);
  16516. bool SetAttribute(const String&, const Variant&);
  16517. bool SetAttribute(uint, const Variant&);
  16518. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16519. void SetAttributeAnimationSpeed(const String&, float);
  16520. void SetAttributeAnimationTime(const String&, float);
  16521. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16522. void SetBlockEvents(bool);
  16523. void SetBoundingBox(const BoundingBox&);
  16524. void SetEnabled(bool);
  16525. void SetGlobalVar(StringHash, const Variant&);
  16526. void SetInstanceDefault(bool);
  16527. void SetInterceptNetworkUpdate(const String&, bool);
  16528. void SetObjectAnimation(ObjectAnimation);
  16529. void SetObjectAnimationAttr(const ResourceRef&);
  16530. void SetTemporary(bool);
  16531. const String& GetCategory() const;
  16532. const String& GetTypeName() const;
  16533. void UnsubscribeFromAllEvents();
  16534. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16535. void UnsubscribeFromEvent(Object, StringHash);
  16536. void UnsubscribeFromEvent(StringHash);
  16537. void UnsubscribeFromEvents(Object);
  16538. const Variant& GetGlobalVar(StringHash) const;
  16539. const VariantMap& GetGlobalVars() const;
  16540. int WeakRefs() const;
  16541. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16542. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16543. void WriteLatestDataUpdate(Serializer&, uint8);
  16544. operator const Animatable() const;
  16545. operator const Component() const;
  16546. operator const Object() const;
  16547. operator const RefCounted() const;
  16548. operator const Serializable() const;
  16549. // Properties:
  16550. bool animationEnabled;
  16551. uint areaID;
  16552. /* readonly */
  16553. Array<Variant> attributeDefaults;
  16554. /* readonly */
  16555. Array<AttributeInfo> attributeInfos;
  16556. Array<Variant> attributes;
  16557. BoundingBox boundingBox;
  16558. /* readonly */
  16559. String category;
  16560. bool enabled;
  16561. /* readonly */
  16562. bool enabledEffective;
  16563. Array<Variant> globalVar;
  16564. /* readonly */
  16565. VariantMap globalVars;
  16566. /* readonly */
  16567. uint id;
  16568. /* readonly */
  16569. Node node;
  16570. /* readonly */
  16571. uint numAttributes;
  16572. ObjectAnimation objectAnimation;
  16573. /* readonly */
  16574. int refs;
  16575. /* readonly */
  16576. bool replicated;
  16577. bool temporary;
  16578. /* readonly */
  16579. StringHash type;
  16580. /* readonly */
  16581. String typeName;
  16582. /* readonly */
  16583. int weakRefs;
  16584. /* readonly */
  16585. BoundingBox worldBoundingBox;
  16586. };
  16587. class NavAreaStub
  16588. {
  16589. public:
  16590. ~NavAreaStub();
  16591. NavAreaStub();
  16592. // Methods:
  16593. NavAreaStub& operator=(const NavAreaStub&);
  16594. // Properties:
  16595. uint8 areaID;
  16596. BoundingBox bounds;
  16597. };
  16598. class NavBuildData
  16599. {
  16600. public:
  16601. ~NavBuildData();
  16602. NavBuildData();
  16603. // Methods:
  16604. NavBuildData& operator=(const NavBuildData&);
  16605. // Properties:
  16606. BoundingBox worldBoundingBox;
  16607. };
  16608. class Navigable
  16609. {
  16610. public:
  16611. Navigable();
  16612. // Methods:
  16613. void AllocateNetworkState();
  16614. operator Animatable() const;
  16615. void ApplyAttributes();
  16616. void CleanupConnection(Connection);
  16617. operator Component() const;
  16618. void DrawDebugGeometry(DebugRenderer, bool);
  16619. bool GetAnimationEnabled() const;
  16620. Variant GetAttribute(const String&) const;
  16621. Variant GetAttribute(uint) const;
  16622. ValueAnimation GetAttributeAnimation(const String&) const;
  16623. float GetAttributeAnimationSpeed(const String&) const;
  16624. float GetAttributeAnimationTime(const String&) const;
  16625. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16626. Variant GetAttributeDefault(const String&) const;
  16627. Variant GetAttributeDefault(uint) const;
  16628. bool GetBlockEvents() const;
  16629. Component GetComponent(StringHash) const;
  16630. VariantMap& GetEventDataMap() const;
  16631. Object GetEventSender() const;
  16632. uint GetID() const;
  16633. bool GetInterceptNetworkUpdate(const String&) const;
  16634. Node GetNode() const;
  16635. uint GetNumAttributes() const;
  16636. uint GetNumNetworkAttributes() const;
  16637. ObjectAnimation GetObjectAnimation() const;
  16638. ResourceRef GetObjectAnimationAttr() const;
  16639. Scene GetScene() const;
  16640. Object GetSubsystem(StringHash) const;
  16641. StringHash GetType() const;
  16642. bool HasEventHandlers() const;
  16643. bool HasSubscribedToEvent(Object, StringHash) const;
  16644. bool HasSubscribedToEvent(StringHash) const;
  16645. bool IsEnabled() const;
  16646. bool IsEnabledEffective() const;
  16647. bool IsInstanceOf(StringHash) const;
  16648. bool IsRecursive() const;
  16649. bool IsReplicated() const;
  16650. bool IsTemporary() const;
  16651. bool Load(Deserializer&);
  16652. bool LoadJSON(const JSONValue&);
  16653. bool LoadXML(const XMLElement&);
  16654. void MarkNetworkUpdate();
  16655. operator Object() const;
  16656. void OnEvent(Object, StringHash, VariantMap&);
  16657. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16658. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16659. void OnSetEnabled();
  16660. void PrepareNetworkUpdate();
  16661. bool ReadDeltaUpdate(Deserializer&);
  16662. bool ReadLatestDataUpdate(Deserializer&);
  16663. operator RefCounted() const;
  16664. int Refs() const;
  16665. void Remove();
  16666. void RemoveAttributeAnimation(const String&);
  16667. void RemoveInstanceDefault();
  16668. void RemoveObjectAnimation();
  16669. void ResetToDefault();
  16670. bool Save(Serializer&) const;
  16671. bool SaveDefaultAttributes() const;
  16672. bool SaveJSON(JSONValue&) const;
  16673. bool SaveXML(XMLElement&) const;
  16674. void SendEvent(StringHash);
  16675. void SendEvent(StringHash, VariantMap&);
  16676. operator Serializable() const;
  16677. void SetAnimationEnabled(bool);
  16678. void SetAnimationTime(float);
  16679. bool SetAttribute(const String&, const Variant&);
  16680. bool SetAttribute(uint, const Variant&);
  16681. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16682. void SetAttributeAnimationSpeed(const String&, float);
  16683. void SetAttributeAnimationTime(const String&, float);
  16684. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16685. void SetBlockEvents(bool);
  16686. void SetEnabled(bool);
  16687. void SetGlobalVar(StringHash, const Variant&);
  16688. void SetInstanceDefault(bool);
  16689. void SetInterceptNetworkUpdate(const String&, bool);
  16690. void SetObjectAnimation(ObjectAnimation);
  16691. void SetObjectAnimationAttr(const ResourceRef&);
  16692. void SetRecursive(bool);
  16693. void SetTemporary(bool);
  16694. const String& GetCategory() const;
  16695. const String& GetTypeName() const;
  16696. void UnsubscribeFromAllEvents();
  16697. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16698. void UnsubscribeFromEvent(Object, StringHash);
  16699. void UnsubscribeFromEvent(StringHash);
  16700. void UnsubscribeFromEvents(Object);
  16701. const Variant& GetGlobalVar(StringHash) const;
  16702. const VariantMap& GetGlobalVars() const;
  16703. int WeakRefs() const;
  16704. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16705. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16706. void WriteLatestDataUpdate(Serializer&, uint8);
  16707. operator const Animatable() const;
  16708. operator const Component() const;
  16709. operator const Object() const;
  16710. operator const RefCounted() const;
  16711. operator const Serializable() const;
  16712. // Properties:
  16713. bool animationEnabled;
  16714. /* readonly */
  16715. Array<Variant> attributeDefaults;
  16716. /* readonly */
  16717. Array<AttributeInfo> attributeInfos;
  16718. Array<Variant> attributes;
  16719. /* readonly */
  16720. String category;
  16721. bool enabled;
  16722. /* readonly */
  16723. bool enabledEffective;
  16724. Array<Variant> globalVar;
  16725. /* readonly */
  16726. VariantMap globalVars;
  16727. /* readonly */
  16728. uint id;
  16729. /* readonly */
  16730. Node node;
  16731. /* readonly */
  16732. uint numAttributes;
  16733. ObjectAnimation objectAnimation;
  16734. bool recursive;
  16735. /* readonly */
  16736. int refs;
  16737. /* readonly */
  16738. bool replicated;
  16739. bool temporary;
  16740. /* readonly */
  16741. StringHash type;
  16742. /* readonly */
  16743. String typeName;
  16744. /* readonly */
  16745. int weakRefs;
  16746. };
  16747. class NavigationGeometryInfo
  16748. {
  16749. public:
  16750. ~NavigationGeometryInfo();
  16751. NavigationGeometryInfo();
  16752. // Methods:
  16753. NavigationGeometryInfo& operator=(const NavigationGeometryInfo&);
  16754. // Properties:
  16755. BoundingBox boundingBox;
  16756. int lodLevel;
  16757. Matrix3x4 transform;
  16758. };
  16759. class NavigationMesh
  16760. {
  16761. public:
  16762. NavigationMesh();
  16763. // Methods:
  16764. bool AddTile(const VectorBuffer&) const;
  16765. bool AddTile(Array<uint8>);
  16766. bool Allocate(const BoundingBox&, uint);
  16767. void AllocateNetworkState();
  16768. operator Animatable() const;
  16769. void ApplyAttributes();
  16770. const BoundingBox& GetBoundingBox() const;
  16771. bool Build();
  16772. bool Build(const BoundingBox&);
  16773. bool Build(const IntVector2&, const IntVector2&);
  16774. void CleanupConnection(Connection);
  16775. operator Component() const;
  16776. void DrawDebugGeometry(DebugRenderer, bool);
  16777. void DrawDebugGeometry(bool);
  16778. operator DynamicNavigationMesh() const;
  16779. Vector3 FindNearestPoint(const Vector3&, const Vector3& = Vector3 :: ONE);
  16780. Array<Vector3> FindPath(const Vector3&, const Vector3&, const Vector3& extents = Vector3 :: ONE);
  16781. float GetAgentHeight() const;
  16782. float GetAgentMaxClimb() const;
  16783. float GetAgentMaxSlope() const;
  16784. float GetAgentRadius() const;
  16785. bool GetAnimationEnabled() const;
  16786. float GetAreaCost(uint) const;
  16787. Variant GetAttribute(const String&) const;
  16788. Variant GetAttribute(uint) const;
  16789. ValueAnimation GetAttributeAnimation(const String&) const;
  16790. float GetAttributeAnimationSpeed(const String&) const;
  16791. float GetAttributeAnimationTime(const String&) const;
  16792. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  16793. Variant GetAttributeDefault(const String&) const;
  16794. Variant GetAttributeDefault(uint) const;
  16795. bool GetBlockEvents() const;
  16796. float GetCellHeight() const;
  16797. float GetCellSize() const;
  16798. Component GetComponent(StringHash) const;
  16799. float GetDetailSampleDistance() const;
  16800. float GetDetailSampleMaxError() const;
  16801. float GetDistanceToWall(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  16802. bool GetDrawNavAreas() const;
  16803. bool GetDrawOffMeshConnections() const;
  16804. float GetEdgeMaxError() const;
  16805. float GetEdgeMaxLength() const;
  16806. VariantMap& GetEventDataMap() const;
  16807. Object GetEventSender() const;
  16808. uint GetID() const;
  16809. bool GetInterceptNetworkUpdate(const String&) const;
  16810. String GetMeshName() const;
  16811. Array<uint8> GetNavigationDataAttr() const;
  16812. Node GetNode() const;
  16813. uint GetNumAttributes() const;
  16814. uint GetNumNetworkAttributes() const;
  16815. IntVector2 GetNumTiles() const;
  16816. ObjectAnimation GetObjectAnimation() const;
  16817. ResourceRef GetObjectAnimationAttr() const;
  16818. NavmeshPartitionType GetPartitionType() const;
  16819. Vector3 GetRandomPoint();
  16820. Vector3 GetRandomPointInCircle(const Vector3&, float, const Vector3& = Vector3 :: ONE);
  16821. float GetRegionMergeSize() const;
  16822. float GetRegionMinSize() const;
  16823. Scene GetScene() const;
  16824. Object GetSubsystem(StringHash) const;
  16825. BoundingBox GetTileBoundingBox(const IntVector2&) const;
  16826. VectorBuffer GetTileData(const IntVector2&) const;
  16827. IntVector2 GetTileIndex(const Vector3&) const;
  16828. int GetTileSize() const;
  16829. StringHash GetType() const;
  16830. BoundingBox GetWorldBoundingBox() const;
  16831. bool HasEventHandlers() const;
  16832. bool HasSubscribedToEvent(Object, StringHash) const;
  16833. bool HasSubscribedToEvent(StringHash) const;
  16834. bool HasTile(const IntVector2&) const;
  16835. bool IsEnabled() const;
  16836. bool IsEnabledEffective() const;
  16837. bool IsInitialized() const;
  16838. bool IsInstanceOf(StringHash) const;
  16839. bool IsReplicated() const;
  16840. bool IsTemporary() const;
  16841. bool Load(Deserializer&);
  16842. bool LoadJSON(const JSONValue&);
  16843. bool LoadXML(const XMLElement&);
  16844. void MarkNetworkUpdate();
  16845. Vector3 MoveAlongSurface(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE, int = 3);
  16846. operator Object() const;
  16847. void OnEvent(Object, StringHash, VariantMap&);
  16848. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  16849. void OnSetAttribute(const AttributeInfo&, const Variant&);
  16850. void OnSetEnabled();
  16851. void PrepareNetworkUpdate();
  16852. Vector3 Raycast(const Vector3&, const Vector3&, const Vector3& = Vector3 :: ONE);
  16853. bool ReadDeltaUpdate(Deserializer&);
  16854. bool ReadLatestDataUpdate(Deserializer&);
  16855. operator RefCounted() const;
  16856. int Refs() const;
  16857. void Remove();
  16858. void RemoveAllTiles();
  16859. void RemoveAttributeAnimation(const String&);
  16860. void RemoveInstanceDefault();
  16861. void RemoveObjectAnimation();
  16862. void RemoveTile(const IntVector2&);
  16863. void ResetToDefault();
  16864. bool Save(Serializer&) const;
  16865. bool SaveDefaultAttributes() const;
  16866. bool SaveJSON(JSONValue&) const;
  16867. bool SaveXML(XMLElement&) const;
  16868. void SendEvent(StringHash);
  16869. void SendEvent(StringHash, VariantMap&);
  16870. operator Serializable() const;
  16871. void SetAgentHeight(float);
  16872. void SetAgentMaxClimb(float);
  16873. void SetAgentMaxSlope(float);
  16874. void SetAgentRadius(float);
  16875. void SetAnimationEnabled(bool);
  16876. void SetAnimationTime(float);
  16877. void SetAreaCost(uint, float);
  16878. bool SetAttribute(const String&, const Variant&);
  16879. bool SetAttribute(uint, const Variant&);
  16880. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  16881. void SetAttributeAnimationSpeed(const String&, float);
  16882. void SetAttributeAnimationTime(const String&, float);
  16883. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  16884. void SetBlockEvents(bool);
  16885. void SetCellHeight(float);
  16886. void SetCellSize(float);
  16887. void SetDetailSampleDistance(float);
  16888. void SetDetailSampleMaxError(float);
  16889. void SetDrawNavAreas(bool);
  16890. void SetDrawOffMeshConnections(bool);
  16891. void SetEdgeMaxError(float);
  16892. void SetEdgeMaxLength(float);
  16893. void SetEnabled(bool);
  16894. void SetGlobalVar(StringHash, const Variant&);
  16895. void SetInstanceDefault(bool);
  16896. void SetInterceptNetworkUpdate(const String&, bool);
  16897. void SetMeshName(const String&);
  16898. void SetNavigationDataAttr(Array<uint8>);
  16899. void SetObjectAnimation(ObjectAnimation);
  16900. void SetObjectAnimationAttr(const ResourceRef&);
  16901. void SetPadding(const Vector3&);
  16902. void SetPartitionType(NavmeshPartitionType);
  16903. void SetRegionMergeSize(float);
  16904. void SetRegionMinSize(float);
  16905. void SetTemporary(bool);
  16906. void SetTileSize(int);
  16907. const String& GetCategory() const;
  16908. const String& GetTypeName() const;
  16909. void UnsubscribeFromAllEvents();
  16910. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  16911. void UnsubscribeFromEvent(Object, StringHash);
  16912. void UnsubscribeFromEvent(StringHash);
  16913. void UnsubscribeFromEvents(Object);
  16914. const Variant& GetGlobalVar(StringHash) const;
  16915. const VariantMap& GetGlobalVars() const;
  16916. const Vector3& GetPadding() const;
  16917. int WeakRefs() const;
  16918. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  16919. void WriteInitialDeltaUpdate(Serializer&, uint8);
  16920. void WriteLatestDataUpdate(Serializer&, uint8);
  16921. operator const Animatable() const;
  16922. operator const Component() const;
  16923. operator const DynamicNavigationMesh() const;
  16924. operator const Object() const;
  16925. operator const RefCounted() const;
  16926. operator const Serializable() const;
  16927. // Properties:
  16928. float agentHeight;
  16929. float agentMaxClimb;
  16930. float agentMaxSlope;
  16931. float agentRadius;
  16932. bool animationEnabled;
  16933. /* readonly */
  16934. Array<Variant> attributeDefaults;
  16935. /* readonly */
  16936. Array<AttributeInfo> attributeInfos;
  16937. Array<Variant> attributes;
  16938. /* readonly */
  16939. BoundingBox boundingBox;
  16940. /* readonly */
  16941. String category;
  16942. float cellHeight;
  16943. float cellSize;
  16944. float detailSampleDistance;
  16945. float detailSampleMaxError;
  16946. bool drawNavAreas;
  16947. bool drawOffMeshConnections;
  16948. float edgeMaxError;
  16949. float edgeMaxLength;
  16950. bool enabled;
  16951. /* readonly */
  16952. bool enabledEffective;
  16953. Array<Variant> globalVar;
  16954. /* readonly */
  16955. VariantMap globalVars;
  16956. /* readonly */
  16957. uint id;
  16958. /* readonly */
  16959. bool initialized;
  16960. /* readonly */
  16961. Node node;
  16962. /* readonly */
  16963. uint numAttributes;
  16964. /* readonly */
  16965. IntVector2 numTiles;
  16966. ObjectAnimation objectAnimation;
  16967. Vector3 padding;
  16968. NavmeshPartitionType partitionType;
  16969. /* readonly */
  16970. int refs;
  16971. float regionMergeSize;
  16972. float regionMinSize;
  16973. /* readonly */
  16974. bool replicated;
  16975. bool temporary;
  16976. int tileSize;
  16977. /* readonly */
  16978. StringHash type;
  16979. /* readonly */
  16980. String typeName;
  16981. /* readonly */
  16982. int weakRefs;
  16983. /* readonly */
  16984. BoundingBox worldBoundingBox;
  16985. };
  16986. class NavigationPathPoint
  16987. {
  16988. public:
  16989. ~NavigationPathPoint();
  16990. NavigationPathPoint();
  16991. // Methods:
  16992. NavigationPathPoint& operator=(const NavigationPathPoint&);
  16993. // Properties:
  16994. uint8 areaID;
  16995. NavigationPathPointFlag flag;
  16996. Vector3 position;
  16997. };
  16998. class Network
  16999. {
  17000. public:
  17001. Network();
  17002. // Methods:
  17003. void AttemptNATPunchtrough(const String&, Scene, const VariantMap& = VariantMap ( ));
  17004. void BanAddress(const String&);
  17005. void BroadcastMessage(int, bool, bool, const VectorBuffer&, uint = 0);
  17006. void BroadcastRemoteEvent(Node, StringHash, bool, const VariantMap& = VariantMap ( ));
  17007. void BroadcastRemoteEvent(Scene, StringHash, bool, const VariantMap& = VariantMap ( ));
  17008. void BroadcastRemoteEvent(StringHash, bool, const VariantMap& = VariantMap ( ));
  17009. bool CheckRemoteEvent(StringHash) const;
  17010. bool Connect(const String&, uint16, Scene, const VariantMap& = VariantMap ( ));
  17011. void Disconnect(int = 0);
  17012. void DiscoverHosts(uint);
  17013. bool GetBlockEvents() const;
  17014. Array<Connection> GetClientConnections() const;
  17015. VariantMap& GetEventDataMap() const;
  17016. Object GetEventSender() const;
  17017. Connection GetServerConnection() const;
  17018. int GetSimulatedLatency() const;
  17019. float GetSimulatedPacketLoss() const;
  17020. Object GetSubsystem(StringHash) const;
  17021. StringHash GetType() const;
  17022. int GetUpdateFps() const;
  17023. bool HasEventHandlers() const;
  17024. bool HasSubscribedToEvent(Object, StringHash) const;
  17025. bool HasSubscribedToEvent(StringHash) const;
  17026. bool IsInstanceOf(StringHash) const;
  17027. bool IsServerRunning() const;
  17028. HttpRequest MakeHttpRequest(const String&, const String& = String :: EMPTY, Array<String> = null, const String& = String :: EMPTY);
  17029. operator Object() const;
  17030. void OnEvent(Object, StringHash, VariantMap&);
  17031. void PostUpdate(float);
  17032. operator RefCounted() const;
  17033. int Refs() const;
  17034. void RegisterRemoteEvent(StringHash);
  17035. void SendEvent(StringHash);
  17036. void SendEvent(StringHash, VariantMap&);
  17037. void SendPackageToClients(Scene, PackageFile);
  17038. void SetBlockEvents(bool);
  17039. void SetDiscoveryBeacon(const VariantMap&);
  17040. void SetGlobalVar(StringHash, const Variant&);
  17041. void SetNATServerInfo(const String&, uint16);
  17042. void SetPackageCacheDir(const String&);
  17043. void SetPassword(const String&);
  17044. void SetSimulatedLatency(int);
  17045. void SetSimulatedPacketLoss(float);
  17046. void SetUpdateFps(int);
  17047. void StartNATClient();
  17048. bool StartServer(uint16, uint = 128);
  17049. void StopServer();
  17050. const String& GetCategory() const;
  17051. const String& GetGUID() const;
  17052. const String& GetPackageCacheDir() const;
  17053. const String& GetTypeName() const;
  17054. void UnregisterAllRemoteEvents();
  17055. void UnregisterRemoteEvent(StringHash);
  17056. void UnsubscribeFromAllEvents();
  17057. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17058. void UnsubscribeFromEvent(Object, StringHash);
  17059. void UnsubscribeFromEvent(StringHash);
  17060. void UnsubscribeFromEvents(Object);
  17061. void Update(float);
  17062. const Variant& GetGlobalVar(StringHash) const;
  17063. const VariantMap& GetGlobalVars() const;
  17064. int WeakRefs() const;
  17065. operator const Object() const;
  17066. operator const RefCounted() const;
  17067. // Properties:
  17068. /* readonly */
  17069. String category;
  17070. /* readonly */
  17071. Array<Connection> clientConnections;
  17072. Array<Variant> globalVar;
  17073. /* readonly */
  17074. VariantMap globalVars;
  17075. /* readonly */
  17076. String guid;
  17077. String packageCacheDir;
  17078. /* readonly */
  17079. int refs;
  17080. /* readonly */
  17081. Connection serverConnection;
  17082. /* readonly */
  17083. bool serverRunning;
  17084. int simulatedLatency;
  17085. float simulatedPacketLoss;
  17086. /* readonly */
  17087. StringHash type;
  17088. /* readonly */
  17089. String typeName;
  17090. int updateFps;
  17091. /* readonly */
  17092. int weakRefs;
  17093. };
  17094. class NetworkPriority
  17095. {
  17096. public:
  17097. NetworkPriority();
  17098. // Methods:
  17099. void AllocateNetworkState();
  17100. operator Animatable() const;
  17101. void ApplyAttributes();
  17102. bool CheckUpdate(float, float&);
  17103. void CleanupConnection(Connection);
  17104. operator Component() const;
  17105. void DrawDebugGeometry(DebugRenderer, bool);
  17106. bool GetAlwaysUpdateOwner() const;
  17107. bool GetAnimationEnabled() const;
  17108. Variant GetAttribute(const String&) const;
  17109. Variant GetAttribute(uint) const;
  17110. ValueAnimation GetAttributeAnimation(const String&) const;
  17111. float GetAttributeAnimationSpeed(const String&) const;
  17112. float GetAttributeAnimationTime(const String&) const;
  17113. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  17114. Variant GetAttributeDefault(const String&) const;
  17115. Variant GetAttributeDefault(uint) const;
  17116. float GetBasePriority() const;
  17117. bool GetBlockEvents() const;
  17118. Component GetComponent(StringHash) const;
  17119. float GetDistanceFactor() const;
  17120. VariantMap& GetEventDataMap() const;
  17121. Object GetEventSender() const;
  17122. uint GetID() const;
  17123. bool GetInterceptNetworkUpdate(const String&) const;
  17124. float GetMinPriority() const;
  17125. Node GetNode() const;
  17126. uint GetNumAttributes() const;
  17127. uint GetNumNetworkAttributes() const;
  17128. ObjectAnimation GetObjectAnimation() const;
  17129. ResourceRef GetObjectAnimationAttr() const;
  17130. Scene GetScene() const;
  17131. Object GetSubsystem(StringHash) const;
  17132. StringHash GetType() const;
  17133. bool HasEventHandlers() const;
  17134. bool HasSubscribedToEvent(Object, StringHash) const;
  17135. bool HasSubscribedToEvent(StringHash) const;
  17136. bool IsEnabled() const;
  17137. bool IsEnabledEffective() const;
  17138. bool IsInstanceOf(StringHash) const;
  17139. bool IsReplicated() const;
  17140. bool IsTemporary() const;
  17141. bool Load(Deserializer&);
  17142. bool LoadJSON(const JSONValue&);
  17143. bool LoadXML(const XMLElement&);
  17144. void MarkNetworkUpdate();
  17145. operator Object() const;
  17146. void OnEvent(Object, StringHash, VariantMap&);
  17147. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  17148. void OnSetAttribute(const AttributeInfo&, const Variant&);
  17149. void OnSetEnabled();
  17150. void PrepareNetworkUpdate();
  17151. bool ReadDeltaUpdate(Deserializer&);
  17152. bool ReadLatestDataUpdate(Deserializer&);
  17153. operator RefCounted() const;
  17154. int Refs() const;
  17155. void Remove();
  17156. void RemoveAttributeAnimation(const String&);
  17157. void RemoveInstanceDefault();
  17158. void RemoveObjectAnimation();
  17159. void ResetToDefault();
  17160. bool Save(Serializer&) const;
  17161. bool SaveDefaultAttributes() const;
  17162. bool SaveJSON(JSONValue&) const;
  17163. bool SaveXML(XMLElement&) const;
  17164. void SendEvent(StringHash);
  17165. void SendEvent(StringHash, VariantMap&);
  17166. operator Serializable() const;
  17167. void SetAlwaysUpdateOwner(bool);
  17168. void SetAnimationEnabled(bool);
  17169. void SetAnimationTime(float);
  17170. bool SetAttribute(const String&, const Variant&);
  17171. bool SetAttribute(uint, const Variant&);
  17172. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  17173. void SetAttributeAnimationSpeed(const String&, float);
  17174. void SetAttributeAnimationTime(const String&, float);
  17175. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  17176. void SetBasePriority(float);
  17177. void SetBlockEvents(bool);
  17178. void SetDistanceFactor(float);
  17179. void SetEnabled(bool);
  17180. void SetGlobalVar(StringHash, const Variant&);
  17181. void SetInstanceDefault(bool);
  17182. void SetInterceptNetworkUpdate(const String&, bool);
  17183. void SetMinPriority(float);
  17184. void SetObjectAnimation(ObjectAnimation);
  17185. void SetObjectAnimationAttr(const ResourceRef&);
  17186. void SetTemporary(bool);
  17187. const String& GetCategory() const;
  17188. const String& GetTypeName() const;
  17189. void UnsubscribeFromAllEvents();
  17190. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17191. void UnsubscribeFromEvent(Object, StringHash);
  17192. void UnsubscribeFromEvent(StringHash);
  17193. void UnsubscribeFromEvents(Object);
  17194. const Variant& GetGlobalVar(StringHash) const;
  17195. const VariantMap& GetGlobalVars() const;
  17196. int WeakRefs() const;
  17197. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  17198. void WriteInitialDeltaUpdate(Serializer&, uint8);
  17199. void WriteLatestDataUpdate(Serializer&, uint8);
  17200. operator const Animatable() const;
  17201. operator const Component() const;
  17202. operator const Object() const;
  17203. operator const RefCounted() const;
  17204. operator const Serializable() const;
  17205. // Properties:
  17206. bool alwaysUpdateOwner;
  17207. bool animationEnabled;
  17208. /* readonly */
  17209. Array<Variant> attributeDefaults;
  17210. /* readonly */
  17211. Array<AttributeInfo> attributeInfos;
  17212. Array<Variant> attributes;
  17213. float basePriority;
  17214. /* readonly */
  17215. String category;
  17216. float distanceFactor;
  17217. bool enabled;
  17218. /* readonly */
  17219. bool enabledEffective;
  17220. Array<Variant> globalVar;
  17221. /* readonly */
  17222. VariantMap globalVars;
  17223. /* readonly */
  17224. uint id;
  17225. float minPriority;
  17226. /* readonly */
  17227. Node node;
  17228. /* readonly */
  17229. uint numAttributes;
  17230. ObjectAnimation objectAnimation;
  17231. /* readonly */
  17232. int refs;
  17233. /* readonly */
  17234. bool replicated;
  17235. bool temporary;
  17236. /* readonly */
  17237. StringHash type;
  17238. /* readonly */
  17239. String typeName;
  17240. /* readonly */
  17241. int weakRefs;
  17242. };
  17243. class NetworkState
  17244. {
  17245. public:
  17246. ~NetworkState();
  17247. NetworkState();
  17248. // Methods:
  17249. NetworkState& operator=(const NetworkState&);
  17250. // Properties:
  17251. uint64 interceptMask;
  17252. VariantMap previousVars;
  17253. };
  17254. class Node
  17255. {
  17256. public:
  17257. Node();
  17258. Node(const String&in);
  17259. // Methods:
  17260. void AddChild(Node, int = ENDPOS);
  17261. void AddComponent(Component, uint, CreateMode);
  17262. void AddListener(Component);
  17263. void AddTag(const String&);
  17264. void AddTags(Array<String>);
  17265. void AddTags(const String&, int8 = ';');
  17266. void AllocateNetworkState();
  17267. operator Animatable() const;
  17268. void ApplyAttributes();
  17269. void CleanupConnection(Connection);
  17270. Node Clone(CreateMode = REPLICATED);
  17271. Component CloneComponent(Component, CreateMode, uint = 0);
  17272. Component CloneComponent(Component, uint = 0);
  17273. Node CreateChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0, bool = false);
  17274. Node CreateChild(uint, CreateMode, bool = false);
  17275. Component CreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  17276. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode mode = REPLICATED);
  17277. ScriptObject CreateScriptObject(const String&, const String&, CreateMode mode = REPLICATED);
  17278. Node CreateTemporaryChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0);
  17279. bool GetAnimationEnabled() const;
  17280. Variant GetAttribute(const String&) const;
  17281. Variant GetAttribute(uint) const;
  17282. ValueAnimation GetAttributeAnimation(const String&) const;
  17283. float GetAttributeAnimationSpeed(const String&) const;
  17284. float GetAttributeAnimationTime(const String&) const;
  17285. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  17286. Variant GetAttributeDefault(const String&) const;
  17287. Variant GetAttributeDefault(uint) const;
  17288. bool GetBlockEvents() const;
  17289. Node GetChild(StringHash, bool = false) const;
  17290. Node GetChild(const String&, bool = false) const;
  17291. Node GetChild(int) const;
  17292. Array<Node> GetChildren() const;
  17293. Array<Node> GetChildren(bool) const;
  17294. Array<Node> GetChildrenWithComponent(StringHash, bool = false) const;
  17295. Array<Node> GetChildrenWithScript(bool = false) const;
  17296. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  17297. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  17298. Component GetComponent(StringHash, bool = false) const;
  17299. Array<Component> GetComponents() const;
  17300. Array<Component> GetComponents(const String&, bool = false) const;
  17301. Array<Node> GetDependencyNodes() const;
  17302. Vector3 GetDirection() const;
  17303. VariantMap& GetEventDataMap() const;
  17304. Object GetEventSender() const;
  17305. uint GetID() const;
  17306. bool GetInterceptNetworkUpdate(const String&) const;
  17307. StringHash GetNameHash() const;
  17308. Array<uint8> GetNetParentAttr() const;
  17309. Array<uint8> GetNetRotationAttr() const;
  17310. uint GetNumAttributes() const;
  17311. int GetNumChildren(bool = false) const;
  17312. int GetNumComponents() const;
  17313. uint GetNumNetworkAttributes() const;
  17314. int GetNumNetworkComponents() const;
  17315. int GetNumPersistentChildren() const;
  17316. int GetNumPersistentComponents() const;
  17317. ObjectAnimation GetObjectAnimation() const;
  17318. ResourceRef GetObjectAnimationAttr() const;
  17319. Component GetOrCreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  17320. Connection GetOwner() const;
  17321. Node GetParent() const;
  17322. Component GetParentComponent(StringHash, bool = false) const;
  17323. Vector2 GetPosition2D() const;
  17324. Vector3 GetRight() const;
  17325. float GetRotation2D() const;
  17326. Vector2 GetScale2D() const;
  17327. Scene GetScene() const;
  17328. ScriptObject GetScriptObject() const;
  17329. ScriptObject GetScriptObject(const String&) const;
  17330. Vector3 GetSignedWorldScale() const;
  17331. Object GetSubsystem(StringHash) const;
  17332. Array<String> GetTags() const;
  17333. Matrix3x4 GetTransform() const;
  17334. StringHash GetType() const;
  17335. Vector3 GetUp() const;
  17336. Vector3 GetWorldDirection() const;
  17337. Vector3 GetWorldPosition() const;
  17338. Vector2 GetWorldPosition2D() const;
  17339. Vector3 GetWorldRight() const;
  17340. Quaternion GetWorldRotation() const;
  17341. float GetWorldRotation2D() const;
  17342. Vector3 GetWorldScale() const;
  17343. Vector2 GetWorldScale2D() const;
  17344. Vector3 GetWorldUp() const;
  17345. bool HasComponent(StringHash) const;
  17346. bool HasEventHandlers() const;
  17347. bool HasSubscribedToEvent(Object, StringHash) const;
  17348. bool HasSubscribedToEvent(StringHash) const;
  17349. bool HasTag(const String&) const;
  17350. bool IsChildOf(Node) const;
  17351. bool IsDirty() const;
  17352. bool IsEnabled() const;
  17353. bool IsEnabledSelf() const;
  17354. bool IsInstanceOf(StringHash) const;
  17355. bool IsReplicated() const;
  17356. bool IsTemporary() const;
  17357. bool Load(Deserializer&);
  17358. bool Load(Deserializer&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17359. bool LoadJSON(const JSONValue&);
  17360. bool LoadJSON(const JSONValue&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17361. bool LoadXML(const XMLElement&);
  17362. bool LoadXML(const XMLElement&, SceneResolver&, bool = true, bool = false, CreateMode = REPLICATED);
  17363. Vector3 LocalToWorld(const Vector3&) const;
  17364. Vector3 LocalToWorld(const Vector4&) const;
  17365. Vector2 LocalToWorld2D(const Vector2&) const;
  17366. bool LookAt(const Vector3&, const Vector3& = Vector3 :: UP, TransformSpace = TS_WORLD);
  17367. void MarkDirty();
  17368. void MarkNetworkUpdate();
  17369. void MarkReplicationDirty();
  17370. const Matrix3x4& GetWorldTransform() const;
  17371. operator Object() const;
  17372. void OnEvent(Object, StringHash, VariantMap&);
  17373. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  17374. void OnSetAttribute(const AttributeInfo&, const Variant&);
  17375. void Pitch(float, TransformSpace = TS_LOCAL);
  17376. void PrepareNetworkUpdate();
  17377. const Quaternion& GetRotation() const;
  17378. bool ReadDeltaUpdate(Deserializer&);
  17379. bool ReadLatestDataUpdate(Deserializer&);
  17380. operator RefCounted() const;
  17381. int Refs() const;
  17382. void Remove();
  17383. void RemoveAllChildren();
  17384. void RemoveAllComponents();
  17385. void RemoveAllTags();
  17386. void RemoveAttributeAnimation(const String&);
  17387. void RemoveChild(Node);
  17388. void RemoveChildren(bool, bool, bool);
  17389. void RemoveComponent(Component);
  17390. void RemoveComponent(StringHash);
  17391. void RemoveComponents(StringHash);
  17392. void RemoveComponents(bool, bool);
  17393. void RemoveInstanceDefault();
  17394. void RemoveListener(Component);
  17395. void RemoveObjectAnimation();
  17396. bool RemoveTag(const String&);
  17397. void ReorderComponent(Component, int);
  17398. void ResetDeepEnabled();
  17399. void ResetScene();
  17400. void ResetToDefault();
  17401. void Roll(float, TransformSpace = TS_LOCAL);
  17402. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  17403. void Rotate2D(float, TransformSpace = TS_LOCAL);
  17404. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  17405. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  17406. bool Save(Serializer&) const;
  17407. bool SaveDefaultAttributes() const;
  17408. bool SaveJSON(File);
  17409. bool SaveJSON(JSONValue&) const;
  17410. bool SaveJSON(Serializer&, const String& = "\t") const;
  17411. bool SaveJSON(VectorBuffer&);
  17412. bool SaveXML(File, const String& = "\t");
  17413. bool SaveXML(Serializer&, const String& = "\t") const;
  17414. bool SaveXML(VectorBuffer&, const String& = "\t");
  17415. bool SaveXML(XMLElement&) const;
  17416. void Scale(const Vector3&);
  17417. void Scale(float);
  17418. void Scale2D(const Vector2&);
  17419. operator Scene() const;
  17420. void SendEvent(StringHash);
  17421. void SendEvent(StringHash, VariantMap&);
  17422. operator Serializable() const;
  17423. void SetAnimationEnabled(bool);
  17424. void SetAnimationTime(float);
  17425. bool SetAttribute(const String&, const Variant&);
  17426. bool SetAttribute(uint, const Variant&);
  17427. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  17428. void SetAttributeAnimationSpeed(const String&, float);
  17429. void SetAttributeAnimationTime(const String&, float);
  17430. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  17431. void SetBlockEvents(bool);
  17432. void SetDeepEnabled(bool);
  17433. void SetDirection(const Vector3&);
  17434. void SetEnabled(bool);
  17435. void SetEnabledRecursive(bool);
  17436. void SetGlobalVar(StringHash, const Variant&);
  17437. void SetID(uint);
  17438. void SetInstanceDefault(bool);
  17439. void SetInterceptNetworkUpdate(const String&, bool);
  17440. void SetName(const String&);
  17441. void SetNetParentAttr(Array<uint8>);
  17442. void SetNetPositionAttr(const Vector3&);
  17443. void SetNetRotationAttr(Array<uint8>);
  17444. void SetObjectAnimation(ObjectAnimation);
  17445. void SetObjectAnimationAttr(const ResourceRef&);
  17446. void SetOwner(Connection);
  17447. void SetParent(Node);
  17448. void SetPosition(const Vector3&);
  17449. void SetPosition2D(const Vector2&);
  17450. void SetPosition2D(float, float);
  17451. void SetPositionSilent(const Vector3&);
  17452. void SetRotation(const Quaternion&);
  17453. void SetRotation2D(float);
  17454. void SetRotationSilent(const Quaternion&);
  17455. void SetScale(const Vector3&);
  17456. void SetScale(float);
  17457. void SetScale2D(const Vector2&);
  17458. void SetScale2D(float, float);
  17459. void SetScaleSilent(const Vector3&);
  17460. void SetScene(Scene);
  17461. void SetTags(Array<String>);
  17462. void SetTemporary(bool);
  17463. void SetTransform(const Matrix3x4&);
  17464. void SetTransform(const Vector3&, const Quaternion&);
  17465. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  17466. void SetTransform(const Vector3&, const Quaternion&, float);
  17467. void SetTransform2D(const Vector2&, float);
  17468. void SetTransform2D(const Vector2&, float, const Vector2&);
  17469. void SetTransform2D(const Vector2&, float, float);
  17470. void SetTransformSilent(const Vector3&, const Quaternion&, const Vector3&);
  17471. void SetVar(StringHash, const Variant&);
  17472. void SetWorldDirection(const Vector3&);
  17473. void SetWorldPosition(const Vector3&);
  17474. void SetWorldPosition2D(const Vector2&);
  17475. void SetWorldPosition2D(float, float);
  17476. void SetWorldRotation(const Quaternion&);
  17477. void SetWorldRotation2D(float);
  17478. void SetWorldScale(const Vector3&);
  17479. void SetWorldScale(float);
  17480. void SetWorldScale2D(const Vector2&);
  17481. void SetWorldScale2D(float, float);
  17482. void SetWorldTransform(const Matrix3x4&);
  17483. void SetWorldTransform(const Vector3&, const Quaternion&);
  17484. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  17485. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  17486. void SetWorldTransform2D(const Vector2&, float);
  17487. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  17488. void SetWorldTransform2D(const Vector2&, float, float);
  17489. const String& GetCategory() const;
  17490. const String& GetName() const;
  17491. const String& GetTypeName() const;
  17492. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  17493. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  17494. void UnsubscribeFromAllEvents();
  17495. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17496. void UnsubscribeFromEvent(Object, StringHash);
  17497. void UnsubscribeFromEvent(StringHash);
  17498. void UnsubscribeFromEvents(Object);
  17499. const Variant& GetGlobalVar(StringHash) const;
  17500. const Variant& GetVar(StringHash) const;
  17501. const VariantMap& GetGlobalVars() const;
  17502. const VariantMap& GetVars() const;
  17503. const Vector3& GetNetPositionAttr() const;
  17504. const Vector3& GetPosition() const;
  17505. const Vector3& GetScale() const;
  17506. int WeakRefs() const;
  17507. Vector3 WorldToLocal(const Vector3&) const;
  17508. Vector3 WorldToLocal(const Vector4&) const;
  17509. Vector2 WorldToLocal2D(const Vector2&) const;
  17510. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  17511. void WriteInitialDeltaUpdate(Serializer&, uint8);
  17512. void WriteLatestDataUpdate(Serializer&, uint8);
  17513. void Yaw(float, TransformSpace = TS_LOCAL);
  17514. operator const Animatable() const;
  17515. operator const Object() const;
  17516. operator const RefCounted() const;
  17517. operator const Scene() const;
  17518. operator const Serializable() const;
  17519. // Properties:
  17520. /* readonly */
  17521. Array<Node> allChildrenByName;
  17522. bool animationEnabled;
  17523. /* readonly */
  17524. Array<Variant> attributeDefaults;
  17525. /* readonly */
  17526. Array<AttributeInfo> attributeInfos;
  17527. Array<Variant> attributes;
  17528. /* readonly */
  17529. String category;
  17530. /* readonly */
  17531. Array<Node> children;
  17532. /* readonly */
  17533. Array<Node> childrenByName;
  17534. /* readonly */
  17535. Array<Component> components;
  17536. Vector3 direction;
  17537. bool enabled;
  17538. /* readonly */
  17539. bool enabledSelf;
  17540. Array<Variant> globalVar;
  17541. /* readonly */
  17542. VariantMap globalVars;
  17543. uint id;
  17544. String name;
  17545. /* readonly */
  17546. uint numAllChildren;
  17547. /* readonly */
  17548. uint numAttributes;
  17549. /* readonly */
  17550. uint numChildren;
  17551. /* readonly */
  17552. int numComponents;
  17553. ObjectAnimation objectAnimation;
  17554. Connection owner;
  17555. Node parent;
  17556. Vector3 position;
  17557. Vector2 position2D;
  17558. /* readonly */
  17559. int refs;
  17560. /* readonly */
  17561. bool replicated;
  17562. /* readonly */
  17563. Vector3 right;
  17564. Quaternion rotation;
  17565. float rotation2D;
  17566. Vector3 scale;
  17567. Vector2 scale2D;
  17568. /* readonly */
  17569. Scene scene;
  17570. /* readonly */
  17571. ScriptObject scriptObject;
  17572. /* readonly */
  17573. Vector3 signedWorldScale;
  17574. /* readonly */
  17575. Array<String> tags;
  17576. bool temporary;
  17577. /* readonly */
  17578. Matrix3x4 transform;
  17579. /* readonly */
  17580. StringHash type;
  17581. /* readonly */
  17582. String typeName;
  17583. /* readonly */
  17584. Vector3 up;
  17585. /* readonly */
  17586. VariantMap vars;
  17587. /* readonly */
  17588. int weakRefs;
  17589. Vector3 worldDirection;
  17590. Vector3 worldPosition;
  17591. Vector2 worldPosition2D;
  17592. /* readonly */
  17593. Vector3 worldRight;
  17594. Quaternion worldRotation;
  17595. float worldRotation2D;
  17596. Vector3 worldScale;
  17597. Vector2 worldScale2D;
  17598. /* readonly */
  17599. Matrix3x4 worldTransform;
  17600. /* readonly */
  17601. Vector3 worldUp;
  17602. };
  17603. class NodeImpl
  17604. {
  17605. public:
  17606. ~NodeImpl();
  17607. NodeImpl();
  17608. // Methods:
  17609. NodeImpl& operator=(const NodeImpl&);
  17610. // Properties:
  17611. VectorBuffer attrBuffer;
  17612. String name;
  17613. StringHash nameHash;
  17614. };
  17615. class NodeReplicationState
  17616. {
  17617. public:
  17618. ~NodeReplicationState();
  17619. NodeReplicationState();
  17620. // Methods:
  17621. NodeReplicationState& operator=(const NodeReplicationState&);
  17622. // Properties:
  17623. DirtyBits dirtyAttributes;
  17624. bool markedDirty;
  17625. float priorityAcc;
  17626. };
  17627. class Object
  17628. {
  17629. public:
  17630. // Methods:
  17631. operator Animatable() const;
  17632. operator AnimatedModel() const;
  17633. operator AnimatedSprite2D() const;
  17634. operator Animation() const;
  17635. operator AnimationController() const;
  17636. operator AnimationSet2D() const;
  17637. operator Audio() const;
  17638. operator BillboardSet() const;
  17639. operator BorderImage() const;
  17640. operator Button() const;
  17641. operator Camera() const;
  17642. operator CheckBox() const;
  17643. operator CollisionBox2D() const;
  17644. operator CollisionChain2D() const;
  17645. operator CollisionCircle2D() const;
  17646. operator CollisionEdge2D() const;
  17647. operator CollisionPolygon2D() const;
  17648. operator CollisionShape2D() const;
  17649. operator CollisionShape() const;
  17650. operator Component() const;
  17651. operator Connection() const;
  17652. operator Console() const;
  17653. operator ConstantBuffer() const;
  17654. operator Constraint2D() const;
  17655. operator Constraint() const;
  17656. operator ConstraintDistance2D() const;
  17657. operator ConstraintFriction2D() const;
  17658. operator ConstraintGear2D() const;
  17659. operator ConstraintMotor2D() const;
  17660. operator ConstraintMouse2D() const;
  17661. operator ConstraintPrismatic2D() const;
  17662. operator ConstraintPulley2D() const;
  17663. operator ConstraintRevolute2D() const;
  17664. operator ConstraintWeld2D() const;
  17665. operator ConstraintWheel2D() const;
  17666. operator CrowdAgent() const;
  17667. operator CrowdManager() const;
  17668. operator Cursor() const;
  17669. operator CustomGeometry() const;
  17670. operator Database() const;
  17671. operator DebugHud() const;
  17672. operator DebugRenderer() const;
  17673. operator DecalSet() const;
  17674. operator Drawable2D() const;
  17675. operator Drawable() const;
  17676. operator DropDownList() const;
  17677. operator DynamicNavigationMesh() const;
  17678. operator Engine() const;
  17679. operator EventProfiler() const;
  17680. operator File() const;
  17681. operator FileSelector() const;
  17682. operator FileSystem() const;
  17683. operator FileWatcher() const;
  17684. operator Font() const;
  17685. operator Geometry() const;
  17686. bool GetBlockEvents() const;
  17687. VariantMap& GetEventDataMap() const;
  17688. Object GetEventSender() const;
  17689. Object GetSubsystem(StringHash) const;
  17690. StringHash GetType() const;
  17691. operator Graphics() const;
  17692. bool HasEventHandlers() const;
  17693. bool HasSubscribedToEvent(Object, StringHash) const;
  17694. bool HasSubscribedToEvent(StringHash) const;
  17695. operator IKConstraint() const;
  17696. operator IKEffector() const;
  17697. operator IKSolver() const;
  17698. operator Image() const;
  17699. operator IndexBuffer() const;
  17700. operator Input() const;
  17701. bool IsInstanceOf(StringHash) const;
  17702. operator JSONFile() const;
  17703. operator Light() const;
  17704. operator LineEdit() const;
  17705. operator ListView() const;
  17706. operator Localization() const;
  17707. operator Log() const;
  17708. operator LogicComponent() const;
  17709. operator Material() const;
  17710. operator Menu() const;
  17711. operator MessageBox() const;
  17712. operator Model() const;
  17713. operator NamedPipe() const;
  17714. operator NavArea() const;
  17715. operator Navigable() const;
  17716. operator NavigationMesh() const;
  17717. operator Network() const;
  17718. operator NetworkPriority() const;
  17719. operator Node() const;
  17720. operator ObjectAnimation() const;
  17721. operator Obstacle() const;
  17722. operator OcclusionBuffer() const;
  17723. operator Octree() const;
  17724. operator OffMeshConnection() const;
  17725. void OnEvent(Object, StringHash, VariantMap&);
  17726. operator PackageFile() const;
  17727. operator ParticleEffect2D() const;
  17728. operator ParticleEffect() const;
  17729. operator ParticleEmitter2D() const;
  17730. operator ParticleEmitter() const;
  17731. operator PhysicsWorld2D() const;
  17732. operator PhysicsWorld() const;
  17733. operator Profiler() const;
  17734. operator ProgressBar() const;
  17735. operator RaycastVehicle() const;
  17736. operator RefCounted() const;
  17737. int Refs() const;
  17738. operator Renderer2D() const;
  17739. operator Renderer() const;
  17740. operator Resource() const;
  17741. operator ResourceCache() const;
  17742. operator ResourceWithMetadata() const;
  17743. operator RibbonTrail() const;
  17744. operator RigidBody2D() const;
  17745. operator RigidBody() const;
  17746. operator Scene() const;
  17747. operator ScriptInstance() const;
  17748. operator ScrollBar() const;
  17749. operator ScrollView() const;
  17750. void SendEvent(StringHash);
  17751. void SendEvent(StringHash, VariantMap&);
  17752. operator Serializable() const;
  17753. void SetBlockEvents(bool);
  17754. void SetGlobalVar(StringHash, const Variant&);
  17755. operator Shader() const;
  17756. operator ShaderPrecache() const;
  17757. operator Skybox() const;
  17758. operator Slider() const;
  17759. operator SmoothedTransform() const;
  17760. operator Sound() const;
  17761. operator SoundListener() const;
  17762. operator SoundSource3D() const;
  17763. operator SoundSource() const;
  17764. operator SplinePath() const;
  17765. operator Sprite2D() const;
  17766. operator Sprite() const;
  17767. operator SpriteSheet2D() const;
  17768. operator StaticModel() const;
  17769. operator StaticModelGroup() const;
  17770. operator StaticSprite2D() const;
  17771. operator StretchableSprite2D() const;
  17772. const String& GetCategory() const;
  17773. const String& GetTypeName() const;
  17774. operator Technique() const;
  17775. operator Terrain() const;
  17776. operator TerrainPatch() const;
  17777. operator Text3D() const;
  17778. operator Text() const;
  17779. operator Texture2D() const;
  17780. operator Texture2DArray() const;
  17781. operator Texture3D() const;
  17782. operator Texture() const;
  17783. operator TextureCube() const;
  17784. operator TileMap2D() const;
  17785. operator TileMapLayer2D() const;
  17786. operator Time() const;
  17787. operator TmxFile2D() const;
  17788. operator ToolTip() const;
  17789. operator UI() const;
  17790. operator UIComponent() const;
  17791. operator UIElement() const;
  17792. operator UISelectable() const;
  17793. operator UnknownComponent() const;
  17794. void UnsubscribeFromAllEvents();
  17795. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  17796. void UnsubscribeFromEvent(Object, StringHash);
  17797. void UnsubscribeFromEvent(StringHash);
  17798. void UnsubscribeFromEvents(Object);
  17799. operator ValueAnimation() const;
  17800. const Variant& GetGlobalVar(StringHash) const;
  17801. const VariantMap& GetGlobalVars() const;
  17802. operator VertexBuffer() const;
  17803. operator View3D() const;
  17804. operator View() const;
  17805. operator Viewport() const;
  17806. int WeakRefs() const;
  17807. operator Window() const;
  17808. operator WorkQueue() const;
  17809. operator XMLFile() const;
  17810. operator Zone() const;
  17811. operator const Animatable() const;
  17812. operator const AnimatedModel() const;
  17813. operator const AnimatedSprite2D() const;
  17814. operator const Animation() const;
  17815. operator const AnimationController() const;
  17816. operator const AnimationSet2D() const;
  17817. operator const Audio() const;
  17818. operator const BillboardSet() const;
  17819. operator const BorderImage() const;
  17820. operator const Button() const;
  17821. operator const Camera() const;
  17822. operator const CheckBox() const;
  17823. operator const CollisionBox2D() const;
  17824. operator const CollisionChain2D() const;
  17825. operator const CollisionCircle2D() const;
  17826. operator const CollisionEdge2D() const;
  17827. operator const CollisionPolygon2D() const;
  17828. operator const CollisionShape2D() const;
  17829. operator const CollisionShape() const;
  17830. operator const Component() const;
  17831. operator const Connection() const;
  17832. operator const Console() const;
  17833. operator const ConstantBuffer() const;
  17834. operator const Constraint2D() const;
  17835. operator const Constraint() const;
  17836. operator const ConstraintDistance2D() const;
  17837. operator const ConstraintFriction2D() const;
  17838. operator const ConstraintGear2D() const;
  17839. operator const ConstraintMotor2D() const;
  17840. operator const ConstraintMouse2D() const;
  17841. operator const ConstraintPrismatic2D() const;
  17842. operator const ConstraintPulley2D() const;
  17843. operator const ConstraintRevolute2D() const;
  17844. operator const ConstraintWeld2D() const;
  17845. operator const ConstraintWheel2D() const;
  17846. operator const CrowdAgent() const;
  17847. operator const CrowdManager() const;
  17848. operator const Cursor() const;
  17849. operator const CustomGeometry() const;
  17850. operator const Database() const;
  17851. operator const DebugHud() const;
  17852. operator const DebugRenderer() const;
  17853. operator const DecalSet() const;
  17854. operator const Drawable2D() const;
  17855. operator const Drawable() const;
  17856. operator const DropDownList() const;
  17857. operator const DynamicNavigationMesh() const;
  17858. operator const Engine() const;
  17859. operator const EventProfiler() const;
  17860. operator const File() const;
  17861. operator const FileSelector() const;
  17862. operator const FileSystem() const;
  17863. operator const FileWatcher() const;
  17864. operator const Font() const;
  17865. operator const Geometry() const;
  17866. operator const Graphics() const;
  17867. operator const IKConstraint() const;
  17868. operator const IKEffector() const;
  17869. operator const IKSolver() const;
  17870. operator const Image() const;
  17871. operator const IndexBuffer() const;
  17872. operator const Input() const;
  17873. operator const JSONFile() const;
  17874. operator const Light() const;
  17875. operator const LineEdit() const;
  17876. operator const ListView() const;
  17877. operator const Localization() const;
  17878. operator const Log() const;
  17879. operator const LogicComponent() const;
  17880. operator const Material() const;
  17881. operator const Menu() const;
  17882. operator const MessageBox() const;
  17883. operator const Model() const;
  17884. operator const NamedPipe() const;
  17885. operator const NavArea() const;
  17886. operator const Navigable() const;
  17887. operator const NavigationMesh() const;
  17888. operator const Network() const;
  17889. operator const NetworkPriority() const;
  17890. operator const Node() const;
  17891. operator const ObjectAnimation() const;
  17892. operator const Obstacle() const;
  17893. operator const OcclusionBuffer() const;
  17894. operator const Octree() const;
  17895. operator const OffMeshConnection() const;
  17896. operator const PackageFile() const;
  17897. operator const ParticleEffect2D() const;
  17898. operator const ParticleEffect() const;
  17899. operator const ParticleEmitter2D() const;
  17900. operator const ParticleEmitter() const;
  17901. operator const PhysicsWorld2D() const;
  17902. operator const PhysicsWorld() const;
  17903. operator const Profiler() const;
  17904. operator const ProgressBar() const;
  17905. operator const RaycastVehicle() const;
  17906. operator const RefCounted() const;
  17907. operator const Renderer2D() const;
  17908. operator const Renderer() const;
  17909. operator const Resource() const;
  17910. operator const ResourceCache() const;
  17911. operator const ResourceWithMetadata() const;
  17912. operator const RibbonTrail() const;
  17913. operator const RigidBody2D() const;
  17914. operator const RigidBody() const;
  17915. operator const Scene() const;
  17916. operator const ScriptInstance() const;
  17917. operator const ScrollBar() const;
  17918. operator const ScrollView() const;
  17919. operator const Serializable() const;
  17920. operator const Shader() const;
  17921. operator const ShaderPrecache() const;
  17922. operator const Skybox() const;
  17923. operator const Slider() const;
  17924. operator const SmoothedTransform() const;
  17925. operator const Sound() const;
  17926. operator const SoundListener() const;
  17927. operator const SoundSource3D() const;
  17928. operator const SoundSource() const;
  17929. operator const SplinePath() const;
  17930. operator const Sprite2D() const;
  17931. operator const Sprite() const;
  17932. operator const SpriteSheet2D() const;
  17933. operator const StaticModel() const;
  17934. operator const StaticModelGroup() const;
  17935. operator const StaticSprite2D() const;
  17936. operator const StretchableSprite2D() const;
  17937. operator const Technique() const;
  17938. operator const Terrain() const;
  17939. operator const TerrainPatch() const;
  17940. operator const Text3D() const;
  17941. operator const Text() const;
  17942. operator const Texture2D() const;
  17943. operator const Texture2DArray() const;
  17944. operator const Texture3D() const;
  17945. operator const Texture() const;
  17946. operator const TextureCube() const;
  17947. operator const TileMap2D() const;
  17948. operator const TileMapLayer2D() const;
  17949. operator const Time() const;
  17950. operator const TmxFile2D() const;
  17951. operator const ToolTip() const;
  17952. operator const UI() const;
  17953. operator const UIComponent() const;
  17954. operator const UIElement() const;
  17955. operator const UISelectable() const;
  17956. operator const UnknownComponent() const;
  17957. operator const ValueAnimation() const;
  17958. operator const VertexBuffer() const;
  17959. operator const View3D() const;
  17960. operator const View() const;
  17961. operator const Viewport() const;
  17962. operator const Window() const;
  17963. operator const WorkQueue() const;
  17964. operator const XMLFile() const;
  17965. operator const Zone() const;
  17966. // Properties:
  17967. /* readonly */
  17968. String category;
  17969. Array<Variant> globalVar;
  17970. /* readonly */
  17971. VariantMap globalVars;
  17972. /* readonly */
  17973. int refs;
  17974. /* readonly */
  17975. StringHash type;
  17976. /* readonly */
  17977. String typeName;
  17978. /* readonly */
  17979. int weakRefs;
  17980. };
  17981. class ObjectAnimation
  17982. {
  17983. public:
  17984. ObjectAnimation();
  17985. // Methods:
  17986. void AddAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  17987. bool BeginLoad(Deserializer&);
  17988. bool EndLoad();
  17989. AsyncLoadState GetAsyncLoadState() const;
  17990. ValueAnimation GetAttributeAnimation(const String&) const;
  17991. ValueAnimationInfo GetAttributeAnimationInfo(const String&) const;
  17992. float GetAttributeAnimationSpeed(const String&) const;
  17993. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  17994. bool GetBlockEvents() const;
  17995. VariantMap& GetEventDataMap() const;
  17996. Object GetEventSender() const;
  17997. uint GetMemoryUse() const;
  17998. StringHash GetNameHash() const;
  17999. Object GetSubsystem(StringHash) const;
  18000. StringHash GetType() const;
  18001. uint GetUseTimer();
  18002. bool HasEventHandlers() const;
  18003. bool HasSubscribedToEvent(Object, StringHash) const;
  18004. bool HasSubscribedToEvent(StringHash) const;
  18005. bool IsInstanceOf(StringHash) const;
  18006. bool Load(Deserializer&);
  18007. bool Load(File);
  18008. bool Load(VectorBuffer&);
  18009. bool Load(const String&);
  18010. bool LoadFile(const String&);
  18011. bool LoadJSON(const JSONValue&);
  18012. bool LoadXML(const XMLElement&);
  18013. operator Object() const;
  18014. void OnEvent(Object, StringHash, VariantMap&);
  18015. operator RefCounted() const;
  18016. int Refs() const;
  18017. void RemoveAttributeAnimation(ValueAnimation);
  18018. void RemoveAttributeAnimation(const String&);
  18019. void ResetUseTimer();
  18020. operator Resource() const;
  18021. bool Save(File) const;
  18022. bool Save(Serializer&) const;
  18023. bool Save(VectorBuffer&) const;
  18024. bool Save(const String&) const;
  18025. bool SaveFile(const String&) const;
  18026. bool SaveJSON(JSONValue&) const;
  18027. bool SaveXML(XMLElement&) const;
  18028. void SendEvent(StringHash);
  18029. void SendEvent(StringHash, VariantMap&);
  18030. void SetAsyncLoadState(AsyncLoadState);
  18031. void SetBlockEvents(bool);
  18032. void SetGlobalVar(StringHash, const Variant&);
  18033. void SetMemoryUse(uint);
  18034. void SetName(const String&);
  18035. const String& GetCategory() const;
  18036. const String& GetName() const;
  18037. const String& GetTypeName() const;
  18038. void UnsubscribeFromAllEvents();
  18039. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18040. void UnsubscribeFromEvent(Object, StringHash);
  18041. void UnsubscribeFromEvent(StringHash);
  18042. void UnsubscribeFromEvents(Object);
  18043. const Variant& GetGlobalVar(StringHash) const;
  18044. const VariantMap& GetGlobalVars() const;
  18045. int WeakRefs() const;
  18046. operator const Object() const;
  18047. operator const RefCounted() const;
  18048. operator const Resource() const;
  18049. // Properties:
  18050. /* readonly */
  18051. Array<ValueAnimation> attributeAnimations;
  18052. /* readonly */
  18053. String category;
  18054. Array<Variant> globalVar;
  18055. /* readonly */
  18056. VariantMap globalVars;
  18057. /* readonly */
  18058. uint memoryUse;
  18059. String name;
  18060. /* readonly */
  18061. int refs;
  18062. /* readonly */
  18063. Array<float> speeds;
  18064. /* readonly */
  18065. StringHash type;
  18066. /* readonly */
  18067. String typeName;
  18068. /* readonly */
  18069. uint useTimer;
  18070. /* readonly */
  18071. int weakRefs;
  18072. /* readonly */
  18073. Array<WrapMode> wrapModes;
  18074. };
  18075. class ObjectFactory
  18076. {
  18077. public:
  18078. // Methods:
  18079. Object CreateObject();
  18080. StringHash GetType() const;
  18081. operator RefCounted() const;
  18082. int Refs() const;
  18083. const String& GetTypeName() const;
  18084. int WeakRefs() const;
  18085. operator const RefCounted() const;
  18086. // Properties:
  18087. /* readonly */
  18088. int refs;
  18089. /* readonly */
  18090. int weakRefs;
  18091. };
  18092. class Obstacle
  18093. {
  18094. public:
  18095. Obstacle();
  18096. // Methods:
  18097. void AllocateNetworkState();
  18098. operator Animatable() const;
  18099. void ApplyAttributes();
  18100. void CleanupConnection(Connection);
  18101. operator Component() const;
  18102. void DrawDebugGeometry(DebugRenderer, bool);
  18103. void DrawDebugGeometry(bool);
  18104. bool GetAnimationEnabled() const;
  18105. Variant GetAttribute(const String&) const;
  18106. Variant GetAttribute(uint) const;
  18107. ValueAnimation GetAttributeAnimation(const String&) const;
  18108. float GetAttributeAnimationSpeed(const String&) const;
  18109. float GetAttributeAnimationTime(const String&) const;
  18110. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18111. Variant GetAttributeDefault(const String&) const;
  18112. Variant GetAttributeDefault(uint) const;
  18113. bool GetBlockEvents() const;
  18114. Component GetComponent(StringHash) const;
  18115. VariantMap& GetEventDataMap() const;
  18116. Object GetEventSender() const;
  18117. float GetHeight() const;
  18118. uint GetID() const;
  18119. bool GetInterceptNetworkUpdate(const String&) const;
  18120. Node GetNode() const;
  18121. uint GetNumAttributes() const;
  18122. uint GetNumNetworkAttributes() const;
  18123. ObjectAnimation GetObjectAnimation() const;
  18124. ResourceRef GetObjectAnimationAttr() const;
  18125. uint GetObstacleID() const;
  18126. float GetRadius() const;
  18127. Scene GetScene() const;
  18128. Object GetSubsystem(StringHash) const;
  18129. StringHash GetType() const;
  18130. bool HasEventHandlers() const;
  18131. bool HasSubscribedToEvent(Object, StringHash) const;
  18132. bool HasSubscribedToEvent(StringHash) const;
  18133. bool IsEnabled() const;
  18134. bool IsEnabledEffective() const;
  18135. bool IsInstanceOf(StringHash) const;
  18136. bool IsReplicated() const;
  18137. bool IsTemporary() const;
  18138. bool Load(Deserializer&);
  18139. bool LoadJSON(const JSONValue&);
  18140. bool LoadXML(const XMLElement&);
  18141. void MarkNetworkUpdate();
  18142. operator Object() const;
  18143. void OnEvent(Object, StringHash, VariantMap&);
  18144. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18145. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18146. void OnSetEnabled();
  18147. void PrepareNetworkUpdate();
  18148. bool ReadDeltaUpdate(Deserializer&);
  18149. bool ReadLatestDataUpdate(Deserializer&);
  18150. operator RefCounted() const;
  18151. int Refs() const;
  18152. void Remove();
  18153. void RemoveAttributeAnimation(const String&);
  18154. void RemoveInstanceDefault();
  18155. void RemoveObjectAnimation();
  18156. void ResetToDefault();
  18157. bool Save(Serializer&) const;
  18158. bool SaveDefaultAttributes() const;
  18159. bool SaveJSON(JSONValue&) const;
  18160. bool SaveXML(XMLElement&) const;
  18161. void SendEvent(StringHash);
  18162. void SendEvent(StringHash, VariantMap&);
  18163. operator Serializable() const;
  18164. void SetAnimationEnabled(bool);
  18165. void SetAnimationTime(float);
  18166. bool SetAttribute(const String&, const Variant&);
  18167. bool SetAttribute(uint, const Variant&);
  18168. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18169. void SetAttributeAnimationSpeed(const String&, float);
  18170. void SetAttributeAnimationTime(const String&, float);
  18171. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18172. void SetBlockEvents(bool);
  18173. void SetEnabled(bool);
  18174. void SetGlobalVar(StringHash, const Variant&);
  18175. void SetHeight(float);
  18176. void SetInstanceDefault(bool);
  18177. void SetInterceptNetworkUpdate(const String&, bool);
  18178. void SetObjectAnimation(ObjectAnimation);
  18179. void SetObjectAnimationAttr(const ResourceRef&);
  18180. void SetRadius(float);
  18181. void SetTemporary(bool);
  18182. const String& GetCategory() const;
  18183. const String& GetTypeName() const;
  18184. void UnsubscribeFromAllEvents();
  18185. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18186. void UnsubscribeFromEvent(Object, StringHash);
  18187. void UnsubscribeFromEvent(StringHash);
  18188. void UnsubscribeFromEvents(Object);
  18189. const Variant& GetGlobalVar(StringHash) const;
  18190. const VariantMap& GetGlobalVars() const;
  18191. int WeakRefs() const;
  18192. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18193. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18194. void WriteLatestDataUpdate(Serializer&, uint8);
  18195. operator const Animatable() const;
  18196. operator const Component() const;
  18197. operator const Object() const;
  18198. operator const RefCounted() const;
  18199. operator const Serializable() const;
  18200. // Properties:
  18201. bool animationEnabled;
  18202. /* readonly */
  18203. Array<Variant> attributeDefaults;
  18204. /* readonly */
  18205. Array<AttributeInfo> attributeInfos;
  18206. Array<Variant> attributes;
  18207. /* readonly */
  18208. String category;
  18209. bool enabled;
  18210. /* readonly */
  18211. bool enabledEffective;
  18212. Array<Variant> globalVar;
  18213. /* readonly */
  18214. VariantMap globalVars;
  18215. float height;
  18216. /* readonly */
  18217. uint id;
  18218. /* readonly */
  18219. Node node;
  18220. /* readonly */
  18221. uint numAttributes;
  18222. ObjectAnimation objectAnimation;
  18223. /* readonly */
  18224. uint obstacleId;
  18225. float radius;
  18226. /* readonly */
  18227. int refs;
  18228. /* readonly */
  18229. bool replicated;
  18230. bool temporary;
  18231. /* readonly */
  18232. StringHash type;
  18233. /* readonly */
  18234. String typeName;
  18235. /* readonly */
  18236. int weakRefs;
  18237. };
  18238. class OcclusionBatch
  18239. {
  18240. public:
  18241. ~OcclusionBatch();
  18242. OcclusionBatch();
  18243. // Methods:
  18244. OcclusionBatch& operator=(const OcclusionBatch&);
  18245. // Properties:
  18246. uint drawCount;
  18247. uint drawStart;
  18248. uint indexSize;
  18249. Matrix3x4 model;
  18250. uint vertexSize;
  18251. };
  18252. class OcclusionBuffer
  18253. {
  18254. public:
  18255. OcclusionBuffer();
  18256. // Methods:
  18257. void BuildDepthHierarchy();
  18258. void Clear();
  18259. void DrawBatch(const OcclusionBatch&, int);
  18260. void DrawTriangles();
  18261. bool GetBlockEvents() const;
  18262. CullMode GetCullMode() const;
  18263. VariantMap& GetEventDataMap() const;
  18264. Object GetEventSender() const;
  18265. int GetHeight() const;
  18266. uint GetMaxTriangles() const;
  18267. uint GetNumTriangles() const;
  18268. Object GetSubsystem(StringHash) const;
  18269. StringHash GetType() const;
  18270. uint GetUseTimer();
  18271. int GetWidth() const;
  18272. bool HasEventHandlers() const;
  18273. bool HasSubscribedToEvent(Object, StringHash) const;
  18274. bool HasSubscribedToEvent(StringHash) const;
  18275. bool IsInstanceOf(StringHash) const;
  18276. bool IsThreaded() const;
  18277. bool IsVisible(const BoundingBox&) const;
  18278. const Matrix3x4& GetView() const;
  18279. const Matrix4& GetProjection() const;
  18280. operator Object() const;
  18281. void OnEvent(Object, StringHash, VariantMap&);
  18282. operator RefCounted() const;
  18283. int Refs() const;
  18284. void Reset();
  18285. void ResetUseTimer();
  18286. void SendEvent(StringHash);
  18287. void SendEvent(StringHash, VariantMap&);
  18288. void SetBlockEvents(bool);
  18289. void SetCullMode(CullMode);
  18290. void SetGlobalVar(StringHash, const Variant&);
  18291. void SetMaxTriangles(uint);
  18292. bool SetSize(int, int, bool);
  18293. void SetView(Camera);
  18294. const String& GetCategory() const;
  18295. const String& GetTypeName() const;
  18296. void UnsubscribeFromAllEvents();
  18297. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18298. void UnsubscribeFromEvent(Object, StringHash);
  18299. void UnsubscribeFromEvent(StringHash);
  18300. void UnsubscribeFromEvents(Object);
  18301. const Variant& GetGlobalVar(StringHash) const;
  18302. const VariantMap& GetGlobalVars() const;
  18303. int WeakRefs() const;
  18304. operator const Object() const;
  18305. operator const RefCounted() const;
  18306. // Properties:
  18307. /* readonly */
  18308. String category;
  18309. Array<Variant> globalVar;
  18310. /* readonly */
  18311. VariantMap globalVars;
  18312. /* readonly */
  18313. int refs;
  18314. /* readonly */
  18315. StringHash type;
  18316. /* readonly */
  18317. String typeName;
  18318. /* readonly */
  18319. int weakRefs;
  18320. };
  18321. class OcclusionBufferData
  18322. {
  18323. public:
  18324. ~OcclusionBufferData();
  18325. OcclusionBufferData();
  18326. // Methods:
  18327. OcclusionBufferData& operator=(const OcclusionBufferData&);
  18328. // Properties:
  18329. bool used;
  18330. };
  18331. class Octree
  18332. {
  18333. public:
  18334. Octree();
  18335. // Methods:
  18336. void AddDrawable(Drawable);
  18337. void AddManualDrawable(Drawable);
  18338. void AllocateNetworkState();
  18339. operator Animatable() const;
  18340. void ApplyAttributes();
  18341. const BoundingBox& GetCullingBox() const;
  18342. const BoundingBox& GetWorldBoundingBox() const;
  18343. void CancelUpdate(Drawable);
  18344. bool CheckDrawableFit(const BoundingBox&) const;
  18345. void CleanupConnection(Connection);
  18346. operator Component() const;
  18347. void DeleteChild(int);
  18348. void DrawDebugGeometry(DebugRenderer, bool);
  18349. void DrawDebugGeometry(bool);
  18350. Array<Drawable> GetAllDrawables(uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18351. bool GetAnimationEnabled() const;
  18352. Variant GetAttribute(const String&) const;
  18353. Variant GetAttribute(uint) const;
  18354. ValueAnimation GetAttributeAnimation(const String&) const;
  18355. float GetAttributeAnimationSpeed(const String&) const;
  18356. float GetAttributeAnimationTime(const String&) const;
  18357. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18358. Variant GetAttributeDefault(const String&) const;
  18359. Variant GetAttributeDefault(uint) const;
  18360. bool GetBlockEvents() const;
  18361. Component GetComponent(StringHash) const;
  18362. Array<Drawable> GetDrawables(const BoundingBox&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18363. Array<Drawable> GetDrawables(const Frustum&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18364. Array<Drawable> GetDrawables(const Sphere&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18365. Array<Drawable> GetDrawables(const Vector3&, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK);
  18366. VariantMap& GetEventDataMap() const;
  18367. Object GetEventSender() const;
  18368. uint GetID() const;
  18369. bool GetInterceptNetworkUpdate(const String&) const;
  18370. int GetLevel() const;
  18371. Node GetNode() const;
  18372. uint GetNumAttributes() const;
  18373. int GetNumDrawables() const;
  18374. int GetNumLevels() const;
  18375. uint GetNumNetworkAttributes() const;
  18376. ObjectAnimation GetObjectAnimation() const;
  18377. ResourceRef GetObjectAnimationAttr() const;
  18378. Octree GetRoot() const;
  18379. Scene GetScene() const;
  18380. Object GetSubsystem(StringHash) const;
  18381. StringHash GetType() const;
  18382. bool HasEventHandlers() const;
  18383. bool HasSubscribedToEvent(Object, StringHash) const;
  18384. bool HasSubscribedToEvent(StringHash) const;
  18385. void InsertDrawable(Drawable);
  18386. bool IsEmpty();
  18387. bool IsEnabled() const;
  18388. bool IsEnabledEffective() const;
  18389. bool IsInstanceOf(StringHash) const;
  18390. bool IsReplicated() const;
  18391. bool IsTemporary() const;
  18392. bool Load(Deserializer&);
  18393. bool LoadJSON(const JSONValue&);
  18394. bool LoadXML(const XMLElement&);
  18395. void MarkNetworkUpdate();
  18396. operator Object() const;
  18397. void OnEvent(Object, StringHash, VariantMap&);
  18398. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18399. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18400. void OnSetEnabled();
  18401. void PrepareNetworkUpdate();
  18402. void QueueUpdate(Drawable);
  18403. Array<RayQueryResult> Raycast(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  18404. RayQueryResult RaycastSingle(const Ray&, RayQueryLevel = RAY_TRIANGLE, float = M_INFINITY, uint8 = DRAWABLE_ANY, uint = DEFAULT_VIEWMASK) const;
  18405. bool ReadDeltaUpdate(Deserializer&);
  18406. bool ReadLatestDataUpdate(Deserializer&);
  18407. operator RefCounted() const;
  18408. int Refs() const;
  18409. void Remove();
  18410. void RemoveAttributeAnimation(const String&);
  18411. void RemoveDrawable(Drawable, bool = true);
  18412. void RemoveInstanceDefault();
  18413. void RemoveManualDrawable(Drawable);
  18414. void RemoveObjectAnimation();
  18415. void ResetRoot();
  18416. void ResetToDefault();
  18417. bool Save(Serializer&) const;
  18418. bool SaveDefaultAttributes() const;
  18419. bool SaveJSON(JSONValue&) const;
  18420. bool SaveXML(XMLElement&) const;
  18421. void SendEvent(StringHash);
  18422. void SendEvent(StringHash, VariantMap&);
  18423. operator Serializable() const;
  18424. void SetAnimationEnabled(bool);
  18425. void SetAnimationTime(float);
  18426. bool SetAttribute(const String&, const Variant&);
  18427. bool SetAttribute(uint, const Variant&);
  18428. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18429. void SetAttributeAnimationSpeed(const String&, float);
  18430. void SetAttributeAnimationTime(const String&, float);
  18431. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18432. void SetBlockEvents(bool);
  18433. void SetEnabled(bool);
  18434. void SetGlobalVar(StringHash, const Variant&);
  18435. void SetInstanceDefault(bool);
  18436. void SetInterceptNetworkUpdate(const String&, bool);
  18437. void SetObjectAnimation(ObjectAnimation);
  18438. void SetObjectAnimationAttr(const ResourceRef&);
  18439. void SetSize(const BoundingBox&, int);
  18440. void SetTemporary(bool);
  18441. const String& GetCategory() const;
  18442. const String& GetTypeName() const;
  18443. void UnsubscribeFromAllEvents();
  18444. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18445. void UnsubscribeFromEvent(Object, StringHash);
  18446. void UnsubscribeFromEvent(StringHash);
  18447. void UnsubscribeFromEvents(Object);
  18448. void Update(const FrameInfo&);
  18449. const Variant& GetGlobalVar(StringHash) const;
  18450. const VariantMap& GetGlobalVars() const;
  18451. int WeakRefs() const;
  18452. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18453. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18454. void WriteLatestDataUpdate(Serializer&, uint8);
  18455. operator const Animatable() const;
  18456. operator const Component() const;
  18457. operator const Object() const;
  18458. operator const RefCounted() const;
  18459. operator const Serializable() const;
  18460. // Properties:
  18461. bool animationEnabled;
  18462. /* readonly */
  18463. Array<Variant> attributeDefaults;
  18464. /* readonly */
  18465. Array<AttributeInfo> attributeInfos;
  18466. Array<Variant> attributes;
  18467. /* readonly */
  18468. String category;
  18469. bool enabled;
  18470. /* readonly */
  18471. bool enabledEffective;
  18472. Array<Variant> globalVar;
  18473. /* readonly */
  18474. VariantMap globalVars;
  18475. /* readonly */
  18476. uint id;
  18477. /* readonly */
  18478. Node node;
  18479. /* readonly */
  18480. uint numAttributes;
  18481. /* readonly */
  18482. int numLevels;
  18483. ObjectAnimation objectAnimation;
  18484. /* readonly */
  18485. int refs;
  18486. /* readonly */
  18487. bool replicated;
  18488. bool temporary;
  18489. /* readonly */
  18490. StringHash type;
  18491. /* readonly */
  18492. String typeName;
  18493. /* readonly */
  18494. int weakRefs;
  18495. /* readonly */
  18496. BoundingBox worldBoundingBox;
  18497. };
  18498. class OctreeQueryResult
  18499. {
  18500. public:
  18501. ~OctreeQueryResult();
  18502. OctreeQueryResult();
  18503. // Methods:
  18504. OctreeQueryResult& operator=(const OctreeQueryResult&);
  18505. };
  18506. class OffMeshConnection
  18507. {
  18508. public:
  18509. OffMeshConnection();
  18510. // Methods:
  18511. void AllocateNetworkState();
  18512. operator Animatable() const;
  18513. void ApplyAttributes();
  18514. void CleanupConnection(Connection);
  18515. operator Component() const;
  18516. void DrawDebugGeometry(DebugRenderer, bool);
  18517. bool GetAnimationEnabled() const;
  18518. uint GetAreaID() const;
  18519. Variant GetAttribute(const String&) const;
  18520. Variant GetAttribute(uint) const;
  18521. ValueAnimation GetAttributeAnimation(const String&) const;
  18522. float GetAttributeAnimationSpeed(const String&) const;
  18523. float GetAttributeAnimationTime(const String&) const;
  18524. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  18525. Variant GetAttributeDefault(const String&) const;
  18526. Variant GetAttributeDefault(uint) const;
  18527. bool GetBlockEvents() const;
  18528. Component GetComponent(StringHash) const;
  18529. Node GetEndPoint() const;
  18530. VariantMap& GetEventDataMap() const;
  18531. Object GetEventSender() const;
  18532. uint GetID() const;
  18533. bool GetInterceptNetworkUpdate(const String&) const;
  18534. uint GetMask() const;
  18535. Node GetNode() const;
  18536. uint GetNumAttributes() const;
  18537. uint GetNumNetworkAttributes() const;
  18538. ObjectAnimation GetObjectAnimation() const;
  18539. ResourceRef GetObjectAnimationAttr() const;
  18540. float GetRadius() const;
  18541. Scene GetScene() const;
  18542. Object GetSubsystem(StringHash) const;
  18543. StringHash GetType() const;
  18544. bool HasEventHandlers() const;
  18545. bool HasSubscribedToEvent(Object, StringHash) const;
  18546. bool HasSubscribedToEvent(StringHash) const;
  18547. bool IsBidirectional() const;
  18548. bool IsEnabled() const;
  18549. bool IsEnabledEffective() const;
  18550. bool IsInstanceOf(StringHash) const;
  18551. bool IsReplicated() const;
  18552. bool IsTemporary() const;
  18553. bool Load(Deserializer&);
  18554. bool LoadJSON(const JSONValue&);
  18555. bool LoadXML(const XMLElement&);
  18556. void MarkNetworkUpdate();
  18557. operator Object() const;
  18558. void OnEvent(Object, StringHash, VariantMap&);
  18559. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  18560. void OnSetAttribute(const AttributeInfo&, const Variant&);
  18561. void OnSetEnabled();
  18562. void PrepareNetworkUpdate();
  18563. bool ReadDeltaUpdate(Deserializer&);
  18564. bool ReadLatestDataUpdate(Deserializer&);
  18565. operator RefCounted() const;
  18566. int Refs() const;
  18567. void Remove();
  18568. void RemoveAttributeAnimation(const String&);
  18569. void RemoveInstanceDefault();
  18570. void RemoveObjectAnimation();
  18571. void ResetToDefault();
  18572. bool Save(Serializer&) const;
  18573. bool SaveDefaultAttributes() const;
  18574. bool SaveJSON(JSONValue&) const;
  18575. bool SaveXML(XMLElement&) const;
  18576. void SendEvent(StringHash);
  18577. void SendEvent(StringHash, VariantMap&);
  18578. operator Serializable() const;
  18579. void SetAnimationEnabled(bool);
  18580. void SetAnimationTime(float);
  18581. void SetAreaID(uint);
  18582. bool SetAttribute(const String&, const Variant&);
  18583. bool SetAttribute(uint, const Variant&);
  18584. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  18585. void SetAttributeAnimationSpeed(const String&, float);
  18586. void SetAttributeAnimationTime(const String&, float);
  18587. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  18588. void SetBidirectional(bool);
  18589. void SetBlockEvents(bool);
  18590. void SetEnabled(bool);
  18591. void SetEndPoint(Node);
  18592. void SetGlobalVar(StringHash, const Variant&);
  18593. void SetInstanceDefault(bool);
  18594. void SetInterceptNetworkUpdate(const String&, bool);
  18595. void SetMask(uint);
  18596. void SetObjectAnimation(ObjectAnimation);
  18597. void SetObjectAnimationAttr(const ResourceRef&);
  18598. void SetRadius(float);
  18599. void SetTemporary(bool);
  18600. const String& GetCategory() const;
  18601. const String& GetTypeName() const;
  18602. void UnsubscribeFromAllEvents();
  18603. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18604. void UnsubscribeFromEvent(Object, StringHash);
  18605. void UnsubscribeFromEvent(StringHash);
  18606. void UnsubscribeFromEvents(Object);
  18607. const Variant& GetGlobalVar(StringHash) const;
  18608. const VariantMap& GetGlobalVars() const;
  18609. int WeakRefs() const;
  18610. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  18611. void WriteInitialDeltaUpdate(Serializer&, uint8);
  18612. void WriteLatestDataUpdate(Serializer&, uint8);
  18613. operator const Animatable() const;
  18614. operator const Component() const;
  18615. operator const Object() const;
  18616. operator const RefCounted() const;
  18617. operator const Serializable() const;
  18618. // Properties:
  18619. bool animationEnabled;
  18620. uint areaID;
  18621. /* readonly */
  18622. Array<Variant> attributeDefaults;
  18623. /* readonly */
  18624. Array<AttributeInfo> attributeInfos;
  18625. Array<Variant> attributes;
  18626. bool bidirectional;
  18627. /* readonly */
  18628. String category;
  18629. bool enabled;
  18630. /* readonly */
  18631. bool enabledEffective;
  18632. Node endPoint;
  18633. Array<Variant> globalVar;
  18634. /* readonly */
  18635. VariantMap globalVars;
  18636. /* readonly */
  18637. uint id;
  18638. uint mask;
  18639. /* readonly */
  18640. Node node;
  18641. /* readonly */
  18642. uint numAttributes;
  18643. ObjectAnimation objectAnimation;
  18644. float radius;
  18645. /* readonly */
  18646. int refs;
  18647. /* readonly */
  18648. bool replicated;
  18649. bool temporary;
  18650. /* readonly */
  18651. StringHash type;
  18652. /* readonly */
  18653. String typeName;
  18654. /* readonly */
  18655. int weakRefs;
  18656. };
  18657. class OggVorbisSoundStream
  18658. {
  18659. public:
  18660. OggVorbisSoundStream(Sound&);
  18661. // Methods:
  18662. float GetFrequency() const;
  18663. uint GetIntFrequency() const;
  18664. uint GetSampleSize() const;
  18665. bool GetStopAtEnd() const;
  18666. bool IsSixteenBit() const;
  18667. bool IsStereo() const;
  18668. operator RefCounted() const;
  18669. int Refs() const;
  18670. bool Seek(uint);
  18671. void SetFormat(uint, bool, bool);
  18672. void SetStopAtEnd(bool);
  18673. operator SoundStream() const;
  18674. int WeakRefs() const;
  18675. operator const RefCounted() const;
  18676. operator const SoundStream() const;
  18677. // Properties:
  18678. /* readonly */
  18679. int refs;
  18680. /* readonly */
  18681. int weakRefs;
  18682. };
  18683. class PackageDownload
  18684. {
  18685. public:
  18686. ~PackageDownload();
  18687. PackageDownload();
  18688. // Methods:
  18689. PackageDownload& operator=(const PackageDownload&);
  18690. // Properties:
  18691. uint checksum;
  18692. bool initiated;
  18693. String name;
  18694. uint totalFragments;
  18695. };
  18696. class PackageEntry
  18697. {
  18698. public:
  18699. // Methods:
  18700. PackageEntry& operator=(const PackageEntry&);
  18701. // Properties:
  18702. uint checksum;
  18703. uint offset;
  18704. uint size;
  18705. };
  18706. class PackageFile
  18707. {
  18708. public:
  18709. PackageFile();
  18710. PackageFile(const String&in, uint = 0);
  18711. // Methods:
  18712. bool Exists(const String&) const;
  18713. bool GetBlockEvents() const;
  18714. uint GetChecksum() const;
  18715. Array<String> GetEntryNames() const;
  18716. VariantMap& GetEventDataMap() const;
  18717. Object GetEventSender() const;
  18718. StringHash GetNameHash() const;
  18719. uint GetNumFiles() const;
  18720. Object GetSubsystem(StringHash) const;
  18721. uint GetTotalDataSize() const;
  18722. uint GetTotalSize() const;
  18723. StringHash GetType() const;
  18724. bool HasEventHandlers() const;
  18725. bool HasSubscribedToEvent(Object, StringHash) const;
  18726. bool HasSubscribedToEvent(StringHash) const;
  18727. bool IsCompressed() const;
  18728. bool IsInstanceOf(StringHash) const;
  18729. operator Object() const;
  18730. void OnEvent(Object, StringHash, VariantMap&);
  18731. bool Open(const String&, uint = 0);
  18732. operator RefCounted() const;
  18733. int Refs() const;
  18734. void SendEvent(StringHash);
  18735. void SendEvent(StringHash, VariantMap&);
  18736. void SetBlockEvents(bool);
  18737. void SetGlobalVar(StringHash, const Variant&);
  18738. const String& GetCategory() const;
  18739. const String& GetName() const;
  18740. const String& GetTypeName() const;
  18741. void UnsubscribeFromAllEvents();
  18742. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18743. void UnsubscribeFromEvent(Object, StringHash);
  18744. void UnsubscribeFromEvent(StringHash);
  18745. void UnsubscribeFromEvents(Object);
  18746. const Variant& GetGlobalVar(StringHash) const;
  18747. const VariantMap& GetGlobalVars() const;
  18748. int WeakRefs() const;
  18749. operator const Object() const;
  18750. operator const RefCounted() const;
  18751. // Properties:
  18752. /* readonly */
  18753. String category;
  18754. /* readonly */
  18755. uint checksum;
  18756. /* readonly */
  18757. bool compressed;
  18758. Array<Variant> globalVar;
  18759. /* readonly */
  18760. VariantMap globalVars;
  18761. /* readonly */
  18762. String name;
  18763. /* readonly */
  18764. uint numFiles;
  18765. /* readonly */
  18766. int refs;
  18767. /* readonly */
  18768. uint totalDataSize;
  18769. /* readonly */
  18770. uint totalSize;
  18771. /* readonly */
  18772. StringHash type;
  18773. /* readonly */
  18774. String typeName;
  18775. /* readonly */
  18776. int weakRefs;
  18777. };
  18778. class PackageUpload
  18779. {
  18780. public:
  18781. ~PackageUpload();
  18782. PackageUpload();
  18783. // Methods:
  18784. PackageUpload& operator=(const PackageUpload&);
  18785. // Properties:
  18786. uint fragment;
  18787. uint totalFragments;
  18788. };
  18789. class Particle
  18790. {
  18791. public:
  18792. ~Particle();
  18793. Particle();
  18794. // Methods:
  18795. Particle& operator=(const Particle&);
  18796. // Properties:
  18797. int colorIndex;
  18798. float rotationSpeed;
  18799. float scale;
  18800. Vector2 size;
  18801. int texIndex;
  18802. float timeToLive;
  18803. float timer;
  18804. Vector3 velocity;
  18805. };
  18806. class Particle2D
  18807. {
  18808. public:
  18809. ~Particle2D();
  18810. Particle2D();
  18811. // Methods:
  18812. Particle2D& operator=(const Particle2D&);
  18813. // Properties:
  18814. Color color;
  18815. Color colorDelta;
  18816. float emitRadius;
  18817. float emitRadiusDelta;
  18818. float emitRotation;
  18819. float emitRotationDelta;
  18820. Vector3 position;
  18821. float radialAcceleration;
  18822. float rotation;
  18823. float rotationDelta;
  18824. float size;
  18825. float sizeDelta;
  18826. Vector2 startPos;
  18827. float tangentialAcceleration;
  18828. float timeToLive;
  18829. Vector2 velocity;
  18830. };
  18831. class ParticleEffect
  18832. {
  18833. public:
  18834. ParticleEffect();
  18835. // Methods:
  18836. void AddColorFrame(const ColorFrame&);
  18837. void AddColorTime(const Color&, float);
  18838. void AddTextureFrame(const TextureFrame&);
  18839. void AddTextureTime(const Rect&, float);
  18840. bool BeginLoad(Deserializer&);
  18841. ParticleEffect Clone(const String& = String :: EMPTY) const;
  18842. bool EndLoad();
  18843. float GetActiveTime() const;
  18844. float GetAnimationLodBias() const;
  18845. AsyncLoadState GetAsyncLoadState() const;
  18846. bool GetBlockEvents() const;
  18847. ColorFrame GetColorFrame(uint) const;
  18848. float GetDampingForce() const;
  18849. EmitterType GetEmitterType() const;
  18850. VariantMap& GetEventDataMap() const;
  18851. Object GetEventSender() const;
  18852. FaceCameraMode GetFaceCameraMode() const;
  18853. float GetInactiveTime() const;
  18854. Material GetMaterial() const;
  18855. float GetMaxEmissionRate() const;
  18856. float GetMaxRotation() const;
  18857. float GetMaxRotationSpeed() const;
  18858. float GetMaxTimeToLive() const;
  18859. float GetMaxVelocity() const;
  18860. uint GetMemoryUse() const;
  18861. float GetMinEmissionRate() const;
  18862. float GetMinRotation() const;
  18863. float GetMinRotationSpeed() const;
  18864. float GetMinTimeToLive() const;
  18865. float GetMinVelocity() const;
  18866. StringHash GetNameHash() const;
  18867. uint GetNumColorFrames() const;
  18868. uint GetNumParticles() const;
  18869. uint GetNumTextureFrames() const;
  18870. Vector3 GetRandomDirection() const;
  18871. float GetRandomRotation() const;
  18872. float GetRandomRotationSpeed() const;
  18873. Vector2 GetRandomSize() const;
  18874. float GetRandomTimeToLive() const;
  18875. float GetRandomVelocity() const;
  18876. float GetSizeAdd() const;
  18877. float GetSizeMul() const;
  18878. Object GetSubsystem(StringHash) const;
  18879. TextureFrame GetTextureFrame(uint) const;
  18880. StringHash GetType() const;
  18881. bool GetUpdateInvisible() const;
  18882. uint GetUseTimer();
  18883. bool HasEventHandlers() const;
  18884. bool HasSubscribedToEvent(Object, StringHash) const;
  18885. bool HasSubscribedToEvent(StringHash) const;
  18886. bool IsFixedScreenSize() const;
  18887. bool IsInstanceOf(StringHash) const;
  18888. bool IsRelative() const;
  18889. bool IsScaled() const;
  18890. bool IsSorted() const;
  18891. bool Load(Deserializer&);
  18892. bool Load(File);
  18893. bool Load(VectorBuffer&);
  18894. bool Load(const String&);
  18895. bool Load(const XMLElement&);
  18896. bool LoadFile(const String&);
  18897. operator Object() const;
  18898. void OnEvent(Object, StringHash, VariantMap&);
  18899. operator RefCounted() const;
  18900. int Refs() const;
  18901. void RemoveColorFrame(uint);
  18902. void RemoveTextureFrame(uint);
  18903. void ResetUseTimer();
  18904. operator Resource() const;
  18905. bool Save(File) const;
  18906. bool Save(Serializer&) const;
  18907. bool Save(VectorBuffer&) const;
  18908. bool Save(XMLElement&) const;
  18909. bool Save(const String&) const;
  18910. bool SaveFile(const String&) const;
  18911. void SendEvent(StringHash);
  18912. void SendEvent(StringHash, VariantMap&);
  18913. void SetActiveTime(float);
  18914. void SetAnimationLodBias(float);
  18915. void SetAsyncLoadState(AsyncLoadState);
  18916. void SetBlockEvents(bool);
  18917. void SetColorFrame(uint, const ColorFrame&);
  18918. void SetConstantForce(const Vector3&);
  18919. void SetDampingForce(float);
  18920. void SetEmitterSize(const Vector3&);
  18921. void SetEmitterType(EmitterType);
  18922. void SetFaceCameraMode(FaceCameraMode);
  18923. void SetFixedScreenSize(bool);
  18924. void SetGlobalVar(StringHash, const Variant&);
  18925. void SetInactiveTime(float);
  18926. void SetMaterial(Material);
  18927. void SetMaxDirection(const Vector3&);
  18928. void SetMaxEmissionRate(float);
  18929. void SetMaxParticleSize(const Vector2&);
  18930. void SetMaxRotation(float);
  18931. void SetMaxRotationSpeed(float);
  18932. void SetMaxTimeToLive(float);
  18933. void SetMaxVelocity(float);
  18934. void SetMemoryUse(uint);
  18935. void SetMinDirection(const Vector3&);
  18936. void SetMinEmissionRate(float);
  18937. void SetMinParticleSize(const Vector2&);
  18938. void SetMinRotation(float);
  18939. void SetMinRotationSpeed(float);
  18940. void SetMinTimeToLive(float);
  18941. void SetMinVelocity(float);
  18942. void SetName(const String&);
  18943. void SetNumColorFrames(uint);
  18944. void SetNumParticles(uint);
  18945. void SetNumTextureFrames(uint);
  18946. void SetRelative(bool);
  18947. void SetScaled(bool);
  18948. void SetSizeAdd(float);
  18949. void SetSizeMul(float);
  18950. void SetSorted(bool);
  18951. void SetTextureFrame(uint, const TextureFrame&);
  18952. void SetUpdateInvisible(bool);
  18953. void SortColorFrames();
  18954. void SortTextureFrames();
  18955. const String& GetCategory() const;
  18956. const String& GetName() const;
  18957. const String& GetTypeName() const;
  18958. void UnsubscribeFromAllEvents();
  18959. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  18960. void UnsubscribeFromEvent(Object, StringHash);
  18961. void UnsubscribeFromEvent(StringHash);
  18962. void UnsubscribeFromEvents(Object);
  18963. const Variant& GetGlobalVar(StringHash) const;
  18964. const VariantMap& GetGlobalVars() const;
  18965. const Vector2& GetMaxParticleSize() const;
  18966. const Vector2& GetMinParticleSize() const;
  18967. const Vector3& GetConstantForce() const;
  18968. const Vector3& GetEmitterSize() const;
  18969. const Vector3& GetMaxDirection() const;
  18970. const Vector3& GetMinDirection() const;
  18971. int WeakRefs() const;
  18972. operator const Object() const;
  18973. operator const RefCounted() const;
  18974. operator const Resource() const;
  18975. // Properties:
  18976. float activeTime;
  18977. float animationLodBias;
  18978. /* readonly */
  18979. String category;
  18980. Vector3 constantForce;
  18981. float dampingForce;
  18982. Vector3 emitterSize;
  18983. EmitterType emitterType;
  18984. FaceCameraMode faceCameraMode;
  18985. bool fixedScreenSize;
  18986. Array<Variant> globalVar;
  18987. /* readonly */
  18988. VariantMap globalVars;
  18989. float inactiveTime;
  18990. Material material;
  18991. Vector3 maxDirection;
  18992. float maxEmissionRate;
  18993. Vector2 maxParticleSize;
  18994. float maxRotation;
  18995. float maxRotationSpeed;
  18996. float maxTimeToLive;
  18997. float maxVelocity;
  18998. /* readonly */
  18999. uint memoryUse;
  19000. Vector3 minDirection;
  19001. float minEmissionRate;
  19002. Vector2 minParticleSize;
  19003. float minRotation;
  19004. float minRotationSpeed;
  19005. float minTimeToLive;
  19006. float minVelocity;
  19007. String name;
  19008. uint numColorFrames;
  19009. uint numParticles;
  19010. uint numTextureFrames;
  19011. /* readonly */
  19012. int refs;
  19013. bool relative;
  19014. bool scaled;
  19015. float sizeAdd;
  19016. float sizeMul;
  19017. bool sorted;
  19018. /* readonly */
  19019. StringHash type;
  19020. /* readonly */
  19021. String typeName;
  19022. bool updateInvisible;
  19023. /* readonly */
  19024. uint useTimer;
  19025. /* readonly */
  19026. int weakRefs;
  19027. };
  19028. class ParticleEffect2D
  19029. {
  19030. public:
  19031. ParticleEffect2D();
  19032. // Methods:
  19033. bool BeginLoad(Deserializer&);
  19034. ParticleEffect2D Clone(const String& = String :: EMPTY) const;
  19035. const Color& GetFinishColor() const;
  19036. const Color& GetFinishColorVariance() const;
  19037. const Color& GetStartColor() const;
  19038. const Color& GetStartColorVariance() const;
  19039. bool EndLoad();
  19040. float GetAngle() const;
  19041. float GetAngleVariance() const;
  19042. AsyncLoadState GetAsyncLoadState() const;
  19043. BlendMode GetBlendMode() const;
  19044. bool GetBlockEvents() const;
  19045. float GetDuration() const;
  19046. EmitterType2D GetEmitterType() const;
  19047. VariantMap& GetEventDataMap() const;
  19048. Object GetEventSender() const;
  19049. float GetFinishParticleSize() const;
  19050. float GetFinishParticleSizeVariance() const;
  19051. int GetMaxParticles() const;
  19052. float GetMaxRadius() const;
  19053. float GetMaxRadiusVariance() const;
  19054. uint GetMemoryUse() const;
  19055. float GetMinRadius() const;
  19056. float GetMinRadiusVariance() const;
  19057. StringHash GetNameHash() const;
  19058. float GetParticleLifeSpan() const;
  19059. float GetParticleLifespanVariance() const;
  19060. float GetRadialAccelVariance() const;
  19061. float GetRadialAcceleration() const;
  19062. float GetRotatePerSecond() const;
  19063. float GetRotatePerSecondVariance() const;
  19064. float GetRotationEnd() const;
  19065. float GetRotationEndVariance() const;
  19066. float GetRotationStart() const;
  19067. float GetRotationStartVariance() const;
  19068. float GetSpeed() const;
  19069. float GetSpeedVariance() const;
  19070. Sprite2D GetSprite() const;
  19071. float GetStartParticleSize() const;
  19072. float GetStartParticleSizeVariance() const;
  19073. Object GetSubsystem(StringHash) const;
  19074. float GetTangentialAccelVariance() const;
  19075. float GetTangentialAcceleration() const;
  19076. StringHash GetType() const;
  19077. uint GetUseTimer();
  19078. bool HasEventHandlers() const;
  19079. bool HasSubscribedToEvent(Object, StringHash) const;
  19080. bool HasSubscribedToEvent(StringHash) const;
  19081. bool IsInstanceOf(StringHash) const;
  19082. bool Load(Deserializer&);
  19083. bool Load(File);
  19084. bool Load(VectorBuffer&);
  19085. bool Load(const String&);
  19086. bool LoadFile(const String&);
  19087. operator Object() const;
  19088. void OnEvent(Object, StringHash, VariantMap&);
  19089. operator RefCounted() const;
  19090. int Refs() const;
  19091. void ResetUseTimer();
  19092. operator Resource() const;
  19093. bool Save(File) const;
  19094. bool Save(Serializer&) const;
  19095. bool Save(VectorBuffer&) const;
  19096. bool Save(const String&) const;
  19097. bool SaveFile(const String&) const;
  19098. void SendEvent(StringHash);
  19099. void SendEvent(StringHash, VariantMap&);
  19100. void SetAngle(float);
  19101. void SetAngleVariance(float);
  19102. void SetAsyncLoadState(AsyncLoadState);
  19103. void SetBlendMode(BlendMode);
  19104. void SetBlockEvents(bool);
  19105. void SetDuration(float);
  19106. void SetEmitterType(EmitterType2D);
  19107. void SetFinishColor(const Color&);
  19108. void SetFinishColorVariance(const Color&);
  19109. void SetFinishParticleSize(float);
  19110. void SetFinishParticleSizeVariance(float);
  19111. void SetGlobalVar(StringHash, const Variant&);
  19112. void SetGravity(const Vector2&);
  19113. void SetMaxParticles(int);
  19114. void SetMaxRadius(float);
  19115. void SetMaxRadiusVariance(float);
  19116. void SetMemoryUse(uint);
  19117. void SetMinRadius(float);
  19118. void SetMinRadiusVariance(float);
  19119. void SetName(const String&);
  19120. void SetParticleLifeSpan(float);
  19121. void SetParticleLifespanVariance(float);
  19122. void SetRadialAccelVariance(float);
  19123. void SetRadialAcceleration(float);
  19124. void SetRotatePerSecond(float);
  19125. void SetRotatePerSecondVariance(float);
  19126. void SetRotationEnd(float);
  19127. void SetRotationEndVariance(float);
  19128. void SetRotationStart(float);
  19129. void SetRotationStartVariance(float);
  19130. void SetSourcePositionVariance(const Vector2&);
  19131. void SetSpeed(float);
  19132. void SetSpeedVariance(float);
  19133. void SetSprite(Sprite2D);
  19134. void SetStartColor(const Color&);
  19135. void SetStartColorVariance(const Color&);
  19136. void SetStartParticleSize(float);
  19137. void SetStartParticleSizeVariance(float);
  19138. void SetTangentialAccelVariance(float);
  19139. void SetTangentialAcceleration(float);
  19140. const String& GetCategory() const;
  19141. const String& GetName() const;
  19142. const String& GetTypeName() const;
  19143. void UnsubscribeFromAllEvents();
  19144. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19145. void UnsubscribeFromEvent(Object, StringHash);
  19146. void UnsubscribeFromEvent(StringHash);
  19147. void UnsubscribeFromEvents(Object);
  19148. const Variant& GetGlobalVar(StringHash) const;
  19149. const VariantMap& GetGlobalVars() const;
  19150. const Vector2& GetGravity() const;
  19151. const Vector2& GetSourcePositionVariance() const;
  19152. int WeakRefs() const;
  19153. operator const Object() const;
  19154. operator const RefCounted() const;
  19155. operator const Resource() const;
  19156. // Properties:
  19157. /* readonly */
  19158. String category;
  19159. Array<Variant> globalVar;
  19160. /* readonly */
  19161. VariantMap globalVars;
  19162. /* readonly */
  19163. uint memoryUse;
  19164. String name;
  19165. /* readonly */
  19166. int refs;
  19167. /* readonly */
  19168. StringHash type;
  19169. /* readonly */
  19170. String typeName;
  19171. /* readonly */
  19172. uint useTimer;
  19173. /* readonly */
  19174. int weakRefs;
  19175. };
  19176. class ParticleEmitter
  19177. {
  19178. public:
  19179. ParticleEmitter();
  19180. // Methods:
  19181. void AddLight(Light);
  19182. void AddVertexLight(Light);
  19183. void AllocateNetworkState();
  19184. operator Animatable() const;
  19185. void ApplyAttributes();
  19186. void ApplyEffect();
  19187. operator BillboardSet() const;
  19188. const BoundingBox& GetBoundingBox() const;
  19189. const BoundingBox& GetWorldBoundingBox();
  19190. void CleanupConnection(Connection);
  19191. void Commit();
  19192. operator Component() const;
  19193. void DrawDebugGeometry(DebugRenderer, bool);
  19194. bool DrawOcclusion(OcclusionBuffer);
  19195. operator Drawable() const;
  19196. bool GetAnimationEnabled() const;
  19197. float GetAnimationLodBias() const;
  19198. Variant GetAttribute(const String&) const;
  19199. Variant GetAttribute(uint) const;
  19200. ValueAnimation GetAttributeAnimation(const String&) const;
  19201. float GetAttributeAnimationSpeed(const String&) const;
  19202. float GetAttributeAnimationTime(const String&) const;
  19203. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19204. Variant GetAttributeDefault(const String&) const;
  19205. Variant GetAttributeDefault(uint) const;
  19206. AutoRemoveMode GetAutoRemoveMode() const;
  19207. Array<SourceBatch> GetBatches() const;
  19208. Billboard GetBillboard(uint);
  19209. bool GetBlockEvents() const;
  19210. bool GetCastShadows() const;
  19211. Component GetComponent(StringHash) const;
  19212. float GetDistance() const;
  19213. float GetDrawDistance() const;
  19214. uint8 GetDrawableFlags() const;
  19215. ParticleEffect GetEffect() const;
  19216. ResourceRef GetEffectAttr() const;
  19217. VariantMap& GetEventDataMap() const;
  19218. Object GetEventSender() const;
  19219. FaceCameraMode GetFaceCameraMode() const;
  19220. Light GetFirstLight() const;
  19221. uint GetID() const;
  19222. bool GetInterceptNetworkUpdate(const String&) const;
  19223. uint GetLightMask() const;
  19224. Array<Light> GetLights() const;
  19225. float GetLodBias() const;
  19226. float GetLodDistance() const;
  19227. Geometry GetLodGeometry(uint, uint);
  19228. Material GetMaterial() const;
  19229. ResourceRef GetMaterialAttr() const;
  19230. uint GetMaxLights() const;
  19231. float GetMaxZ() const;
  19232. float GetMinAngle() const;
  19233. float GetMinZ() const;
  19234. Array<uint8> GetNetBillboardsAttr() const;
  19235. Node GetNode() const;
  19236. uint GetNumAttributes() const;
  19237. uint GetNumBillboards() const;
  19238. uint GetNumNetworkAttributes() const;
  19239. uint GetNumOccluderTriangles();
  19240. int GetNumParticles() const;
  19241. ObjectAnimation GetObjectAnimation() const;
  19242. ResourceRef GetObjectAnimationAttr() const;
  19243. Scene GetScene() const;
  19244. bool GetSerializeParticles() const;
  19245. float GetShadowDistance() const;
  19246. uint GetShadowMask() const;
  19247. float GetSortValue() const;
  19248. Object GetSubsystem(StringHash) const;
  19249. StringHash GetType() const;
  19250. UpdateGeometryType GetUpdateGeometryType();
  19251. Array<Light> GetVertexLights() const;
  19252. uint GetViewMask() const;
  19253. Zone GetZone() const;
  19254. uint GetZoneMask() const;
  19255. bool HasBasePass(uint) const;
  19256. bool HasEventHandlers() const;
  19257. bool HasSubscribedToEvent(Object, StringHash) const;
  19258. bool HasSubscribedToEvent(StringHash) const;
  19259. bool IsEmitting() const;
  19260. bool IsEnabled() const;
  19261. bool IsEnabledEffective() const;
  19262. bool IsFixedScreenSize() const;
  19263. bool IsInView() const;
  19264. bool IsInView(Camera) const;
  19265. bool IsInView(const FrameInfo&, bool = false) const;
  19266. bool IsInstanceOf(StringHash) const;
  19267. bool IsOccludee() const;
  19268. bool IsOccluder() const;
  19269. bool IsRelative() const;
  19270. bool IsReplicated() const;
  19271. bool IsScaled() const;
  19272. bool IsSorted() const;
  19273. bool IsTemporary() const;
  19274. bool IsZoneDirty() const;
  19275. void LimitLights();
  19276. void LimitVertexLights(bool);
  19277. bool Load(Deserializer&);
  19278. bool LoadJSON(const JSONValue&);
  19279. bool LoadXML(const XMLElement&);
  19280. void MarkForUpdate();
  19281. void MarkInView(const FrameInfo&);
  19282. void MarkInView(int);
  19283. void MarkNetworkUpdate();
  19284. operator Object() const;
  19285. void OnEvent(Object, StringHash, VariantMap&);
  19286. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19287. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19288. void OnSetEnabled();
  19289. void PrepareNetworkUpdate();
  19290. bool ReadDeltaUpdate(Deserializer&);
  19291. bool ReadLatestDataUpdate(Deserializer&);
  19292. operator RefCounted() const;
  19293. int Refs() const;
  19294. void Remove();
  19295. void RemoveAllParticles();
  19296. void RemoveAttributeAnimation(const String&);
  19297. void RemoveInstanceDefault();
  19298. void RemoveObjectAnimation();
  19299. void Reset();
  19300. void ResetEmissionTimer();
  19301. void ResetToDefault();
  19302. bool Save(Serializer&) const;
  19303. bool SaveDefaultAttributes() const;
  19304. bool SaveJSON(JSONValue&) const;
  19305. bool SaveXML(XMLElement&) const;
  19306. void SendEvent(StringHash);
  19307. void SendEvent(StringHash, VariantMap&);
  19308. operator Serializable() const;
  19309. void SetAnimationEnabled(bool);
  19310. void SetAnimationLodBias(float);
  19311. void SetAnimationTime(float);
  19312. bool SetAttribute(const String&, const Variant&);
  19313. bool SetAttribute(uint, const Variant&);
  19314. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19315. void SetAttributeAnimationSpeed(const String&, float);
  19316. void SetAttributeAnimationTime(const String&, float);
  19317. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19318. void SetAutoRemoveMode(AutoRemoveMode);
  19319. void SetBasePass(uint);
  19320. void SetBlockEvents(bool);
  19321. void SetCastShadows(bool);
  19322. void SetDrawDistance(float);
  19323. void SetEffect(ParticleEffect);
  19324. void SetEffectAttr(const ResourceRef&);
  19325. void SetEmitting(bool);
  19326. void SetEnabled(bool);
  19327. void SetFaceCameraMode(FaceCameraMode);
  19328. void SetFixedScreenSize(bool);
  19329. void SetGlobalVar(StringHash, const Variant&);
  19330. void SetInstanceDefault(bool);
  19331. void SetInterceptNetworkUpdate(const String&, bool);
  19332. void SetLightMask(uint);
  19333. void SetLodBias(float);
  19334. void SetMaterial(Material);
  19335. void SetMaterialAttr(const ResourceRef&);
  19336. void SetMaxLights(uint);
  19337. void SetMinAngle(float);
  19338. void SetMinMaxZ(float, float);
  19339. void SetNetBillboardsAttr(Array<uint8>);
  19340. void SetNumBillboards(uint);
  19341. void SetNumParticles(int);
  19342. void SetObjectAnimation(ObjectAnimation);
  19343. void SetObjectAnimationAttr(const ResourceRef&);
  19344. void SetOccludee(bool);
  19345. void SetOccluder(bool);
  19346. void SetRelative(bool);
  19347. void SetScaled(bool);
  19348. void SetSerializeParticles(bool);
  19349. void SetShadowDistance(float);
  19350. void SetShadowMask(uint);
  19351. void SetSortValue(float);
  19352. void SetSorted(bool);
  19353. void SetTemporary(bool);
  19354. void SetViewMask(uint);
  19355. void SetZone(Zone, bool = false);
  19356. void SetZoneMask(uint);
  19357. const String& GetCategory() const;
  19358. const String& GetTypeName() const;
  19359. void UnsubscribeFromAllEvents();
  19360. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19361. void UnsubscribeFromEvent(Object, StringHash);
  19362. void UnsubscribeFromEvent(StringHash);
  19363. void UnsubscribeFromEvents(Object);
  19364. void Update(const FrameInfo&);
  19365. void UpdateBatches(const FrameInfo&);
  19366. void UpdateGeometry(const FrameInfo&);
  19367. const Variant& GetGlobalVar(StringHash) const;
  19368. const VariantMap& GetGlobalVars() const;
  19369. int WeakRefs() const;
  19370. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  19371. void WriteInitialDeltaUpdate(Serializer&, uint8);
  19372. void WriteLatestDataUpdate(Serializer&, uint8);
  19373. operator const Animatable() const;
  19374. operator const BillboardSet() const;
  19375. operator const Component() const;
  19376. operator const Drawable() const;
  19377. operator const Object() const;
  19378. operator const RefCounted() const;
  19379. operator const Serializable() const;
  19380. // Properties:
  19381. bool animationEnabled;
  19382. float animationLodBias;
  19383. /* readonly */
  19384. Array<Variant> attributeDefaults;
  19385. /* readonly */
  19386. Array<AttributeInfo> attributeInfos;
  19387. Array<Variant> attributes;
  19388. AutoRemoveMode autoRemoveMode;
  19389. /* readonly */
  19390. Array<Billboard> billboards;
  19391. /* readonly */
  19392. BoundingBox boundingBox;
  19393. bool castShadows;
  19394. /* readonly */
  19395. String category;
  19396. float drawDistance;
  19397. ParticleEffect effect;
  19398. bool emitting;
  19399. bool enabled;
  19400. /* readonly */
  19401. bool enabledEffective;
  19402. FaceCameraMode faceCameraMode;
  19403. bool fixedScreenSize;
  19404. Array<Variant> globalVar;
  19405. /* readonly */
  19406. VariantMap globalVars;
  19407. /* readonly */
  19408. uint id;
  19409. /* readonly */
  19410. bool inView;
  19411. uint lightMask;
  19412. float lodBias;
  19413. Material material;
  19414. uint maxLights;
  19415. float minAngle;
  19416. /* readonly */
  19417. Node node;
  19418. /* readonly */
  19419. uint numAttributes;
  19420. uint numBillboards;
  19421. int numParticles;
  19422. ObjectAnimation objectAnimation;
  19423. bool occludee;
  19424. bool occluder;
  19425. /* readonly */
  19426. int refs;
  19427. bool relative;
  19428. /* readonly */
  19429. bool replicated;
  19430. bool scaled;
  19431. bool serializeParticles;
  19432. float shadowDistance;
  19433. uint shadowMask;
  19434. bool sorted;
  19435. bool temporary;
  19436. /* readonly */
  19437. StringHash type;
  19438. /* readonly */
  19439. String typeName;
  19440. uint viewMask;
  19441. /* readonly */
  19442. int weakRefs;
  19443. /* readonly */
  19444. BoundingBox worldBoundingBox;
  19445. /* readonly */
  19446. Zone zone;
  19447. uint zoneMask;
  19448. };
  19449. class ParticleEmitter2D
  19450. {
  19451. public:
  19452. ParticleEmitter2D();
  19453. // Methods:
  19454. void AddLight(Light);
  19455. void AddVertexLight(Light);
  19456. void AllocateNetworkState();
  19457. operator Animatable() const;
  19458. void ApplyAttributes();
  19459. const BoundingBox& GetBoundingBox() const;
  19460. const BoundingBox& GetWorldBoundingBox();
  19461. void CleanupConnection(Connection);
  19462. operator Component() const;
  19463. void DrawDebugGeometry(DebugRenderer, bool);
  19464. bool DrawOcclusion(OcclusionBuffer);
  19465. operator Drawable2D() const;
  19466. operator Drawable() const;
  19467. bool GetAnimationEnabled() const;
  19468. Variant GetAttribute(const String&) const;
  19469. Variant GetAttribute(uint) const;
  19470. ValueAnimation GetAttributeAnimation(const String&) const;
  19471. float GetAttributeAnimationSpeed(const String&) const;
  19472. float GetAttributeAnimationTime(const String&) const;
  19473. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19474. Variant GetAttributeDefault(const String&) const;
  19475. Variant GetAttributeDefault(uint) const;
  19476. Array<SourceBatch> GetBatches() const;
  19477. BlendMode GetBlendMode() const;
  19478. bool GetBlockEvents() const;
  19479. bool GetCastShadows() const;
  19480. Component GetComponent(StringHash) const;
  19481. float GetDistance() const;
  19482. float GetDrawDistance() const;
  19483. uint8 GetDrawableFlags() const;
  19484. ParticleEffect2D GetEffect() const;
  19485. VariantMap& GetEventDataMap() const;
  19486. Object GetEventSender() const;
  19487. Light GetFirstLight() const;
  19488. uint GetID() const;
  19489. bool GetInterceptNetworkUpdate(const String&) const;
  19490. int GetLayer() const;
  19491. uint GetLightMask() const;
  19492. Array<Light> GetLights() const;
  19493. float GetLodBias() const;
  19494. float GetLodDistance() const;
  19495. Geometry GetLodGeometry(uint, uint);
  19496. uint GetMaxLights() const;
  19497. uint GetMaxParticles() const;
  19498. float GetMaxZ() const;
  19499. float GetMinZ() const;
  19500. Node GetNode() const;
  19501. uint GetNumAttributes() const;
  19502. uint GetNumNetworkAttributes() const;
  19503. uint GetNumOccluderTriangles();
  19504. ObjectAnimation GetObjectAnimation() const;
  19505. ResourceRef GetObjectAnimationAttr() const;
  19506. int GetOrderInLayer() const;
  19507. ResourceRef GetParticleEffectAttr() const;
  19508. Scene GetScene() const;
  19509. float GetShadowDistance() const;
  19510. uint GetShadowMask() const;
  19511. float GetSortValue() const;
  19512. Array<SourceBatch2D> GetSourceBatches();
  19513. Sprite2D GetSprite() const;
  19514. ResourceRef GetSpriteAttr() const;
  19515. Object GetSubsystem(StringHash) const;
  19516. StringHash GetType() const;
  19517. UpdateGeometryType GetUpdateGeometryType();
  19518. Array<Light> GetVertexLights() const;
  19519. uint GetViewMask() const;
  19520. Zone GetZone() const;
  19521. uint GetZoneMask() const;
  19522. bool HasBasePass(uint) const;
  19523. bool HasEventHandlers() const;
  19524. bool HasSubscribedToEvent(Object, StringHash) const;
  19525. bool HasSubscribedToEvent(StringHash) const;
  19526. bool IsEmitting() const;
  19527. bool IsEnabled() const;
  19528. bool IsEnabledEffective() const;
  19529. bool IsInView() const;
  19530. bool IsInView(Camera) const;
  19531. bool IsInView(const FrameInfo&, bool = false) const;
  19532. bool IsInstanceOf(StringHash) const;
  19533. bool IsOccludee() const;
  19534. bool IsOccluder() const;
  19535. bool IsReplicated() const;
  19536. bool IsTemporary() const;
  19537. bool IsZoneDirty() const;
  19538. void LimitLights();
  19539. void LimitVertexLights(bool);
  19540. bool Load(Deserializer&);
  19541. bool LoadJSON(const JSONValue&);
  19542. bool LoadXML(const XMLElement&);
  19543. void MarkForUpdate();
  19544. void MarkInView(const FrameInfo&);
  19545. void MarkInView(int);
  19546. void MarkNetworkUpdate();
  19547. operator Object() const;
  19548. void OnEvent(Object, StringHash, VariantMap&);
  19549. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19550. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19551. void OnSetEnabled();
  19552. void PrepareNetworkUpdate();
  19553. bool ReadDeltaUpdate(Deserializer&);
  19554. bool ReadLatestDataUpdate(Deserializer&);
  19555. operator RefCounted() const;
  19556. int Refs() const;
  19557. void Remove();
  19558. void RemoveAttributeAnimation(const String&);
  19559. void RemoveInstanceDefault();
  19560. void RemoveObjectAnimation();
  19561. void ResetToDefault();
  19562. bool Save(Serializer&) const;
  19563. bool SaveDefaultAttributes() const;
  19564. bool SaveJSON(JSONValue&) const;
  19565. bool SaveXML(XMLElement&) const;
  19566. void SendEvent(StringHash);
  19567. void SendEvent(StringHash, VariantMap&);
  19568. operator Serializable() const;
  19569. void SetAnimationEnabled(bool);
  19570. void SetAnimationTime(float);
  19571. bool SetAttribute(const String&, const Variant&);
  19572. bool SetAttribute(uint, const Variant&);
  19573. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19574. void SetAttributeAnimationSpeed(const String&, float);
  19575. void SetAttributeAnimationTime(const String&, float);
  19576. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19577. void SetBasePass(uint);
  19578. void SetBlendMode(BlendMode);
  19579. void SetBlockEvents(bool);
  19580. void SetCastShadows(bool);
  19581. void SetDrawDistance(float);
  19582. void SetEffect(ParticleEffect2D);
  19583. void SetEmitting(bool);
  19584. void SetEnabled(bool);
  19585. void SetGlobalVar(StringHash, const Variant&);
  19586. void SetInstanceDefault(bool);
  19587. void SetInterceptNetworkUpdate(const String&, bool);
  19588. void SetLayer(int);
  19589. void SetLightMask(uint);
  19590. void SetLodBias(float);
  19591. void SetMaxLights(uint);
  19592. void SetMaxParticles(uint);
  19593. void SetMinMaxZ(float, float);
  19594. void SetObjectAnimation(ObjectAnimation);
  19595. void SetObjectAnimationAttr(const ResourceRef&);
  19596. void SetOccludee(bool);
  19597. void SetOccluder(bool);
  19598. void SetOrderInLayer(int);
  19599. void SetParticleEffectAttr(const ResourceRef&);
  19600. void SetShadowDistance(float);
  19601. void SetShadowMask(uint);
  19602. void SetSortValue(float);
  19603. void SetSprite(Sprite2D);
  19604. void SetSpriteAttr(const ResourceRef&);
  19605. void SetTemporary(bool);
  19606. void SetViewMask(uint);
  19607. void SetZone(Zone, bool = false);
  19608. void SetZoneMask(uint);
  19609. const String& GetCategory() const;
  19610. const String& GetTypeName() const;
  19611. void UnsubscribeFromAllEvents();
  19612. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19613. void UnsubscribeFromEvent(Object, StringHash);
  19614. void UnsubscribeFromEvent(StringHash);
  19615. void UnsubscribeFromEvents(Object);
  19616. void UpdateBatches(const FrameInfo&);
  19617. void UpdateGeometry(const FrameInfo&);
  19618. const Variant& GetGlobalVar(StringHash) const;
  19619. const VariantMap& GetGlobalVars() const;
  19620. int WeakRefs() const;
  19621. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  19622. void WriteInitialDeltaUpdate(Serializer&, uint8);
  19623. void WriteLatestDataUpdate(Serializer&, uint8);
  19624. operator const Animatable() const;
  19625. operator const Component() const;
  19626. operator const Drawable2D() const;
  19627. operator const Drawable() const;
  19628. operator const Object() const;
  19629. operator const RefCounted() const;
  19630. operator const Serializable() const;
  19631. // Properties:
  19632. bool animationEnabled;
  19633. /* readonly */
  19634. Array<Variant> attributeDefaults;
  19635. /* readonly */
  19636. Array<AttributeInfo> attributeInfos;
  19637. Array<Variant> attributes;
  19638. BlendMode blendMode;
  19639. /* readonly */
  19640. BoundingBox boundingBox;
  19641. bool castShadows;
  19642. /* readonly */
  19643. String category;
  19644. float drawDistance;
  19645. ParticleEffect2D effect;
  19646. bool emitting;
  19647. bool enabled;
  19648. /* readonly */
  19649. bool enabledEffective;
  19650. Array<Variant> globalVar;
  19651. /* readonly */
  19652. VariantMap globalVars;
  19653. /* readonly */
  19654. uint id;
  19655. /* readonly */
  19656. bool inView;
  19657. int layer;
  19658. uint lightMask;
  19659. float lodBias;
  19660. uint maxLights;
  19661. /* readonly */
  19662. Node node;
  19663. /* readonly */
  19664. uint numAttributes;
  19665. ObjectAnimation objectAnimation;
  19666. bool occludee;
  19667. bool occluder;
  19668. int orderInLayer;
  19669. /* readonly */
  19670. int refs;
  19671. /* readonly */
  19672. bool replicated;
  19673. float shadowDistance;
  19674. uint shadowMask;
  19675. Sprite2D sprite;
  19676. bool temporary;
  19677. /* readonly */
  19678. StringHash type;
  19679. /* readonly */
  19680. String typeName;
  19681. uint viewMask;
  19682. /* readonly */
  19683. int weakRefs;
  19684. /* readonly */
  19685. BoundingBox worldBoundingBox;
  19686. /* readonly */
  19687. Zone zone;
  19688. uint zoneMask;
  19689. };
  19690. class Pass
  19691. {
  19692. public:
  19693. Pass(const String&in);
  19694. // Methods:
  19695. bool GetAlphaToCoverage() const;
  19696. BlendMode GetBlendMode() const;
  19697. CullMode GetCullMode() const;
  19698. CompareMode GetDepthTestMode() const;
  19699. bool GetDepthWrite() const;
  19700. String GetEffectivePixelShaderDefines() const;
  19701. String GetEffectiveVertexShaderDefines() const;
  19702. int GetIndex() const;
  19703. PassLightingMode GetLightingMode() const;
  19704. Array<ShaderVariation> GetPixelShaders();
  19705. Array<ShaderVariation> GetPixelShaders(const StringHash&);
  19706. int GetShadersLoadedFrameNumber() const;
  19707. Array<ShaderVariation> GetVertexShaders();
  19708. Array<ShaderVariation> GetVertexShaders(const StringHash&);
  19709. bool IsDesktop() const;
  19710. void MarkShadersLoaded(int);
  19711. operator RefCounted() const;
  19712. int Refs() const;
  19713. void ReleaseShaders();
  19714. void SetAlphaToCoverage(bool);
  19715. void SetBlendMode(BlendMode);
  19716. void SetCullMode(CullMode);
  19717. void SetDepthTestMode(CompareMode);
  19718. void SetDepthWrite(bool);
  19719. void SetIsDesktop(bool);
  19720. void SetLightingMode(PassLightingMode);
  19721. void SetPixelShader(const String&);
  19722. void SetPixelShaderDefineExcludes(const String&);
  19723. void SetPixelShaderDefines(const String&);
  19724. void SetVertexShader(const String&);
  19725. void SetVertexShaderDefineExcludes(const String&);
  19726. void SetVertexShaderDefines(const String&);
  19727. const String& GetName() const;
  19728. const String& GetPixelShader() const;
  19729. const String& GetPixelShaderDefineExcludes() const;
  19730. const String& GetPixelShaderDefines() const;
  19731. const String& GetVertexShader() const;
  19732. const String& GetVertexShaderDefineExcludes() const;
  19733. const String& GetVertexShaderDefines() const;
  19734. int WeakRefs() const;
  19735. operator const RefCounted() const;
  19736. // Properties:
  19737. bool alphaToCoverage;
  19738. BlendMode blendMode;
  19739. CullMode cullMode;
  19740. CompareMode depthTestMode;
  19741. bool depthWrite;
  19742. bool desktop;
  19743. PassLightingMode lightingMode;
  19744. String pixelShader;
  19745. String pixelShaderDefineExcludes;
  19746. String pixelShaderDefines;
  19747. /* readonly */
  19748. int refs;
  19749. String vertexShader;
  19750. String vertexShaderDefineExcludes;
  19751. String vertexShaderDefines;
  19752. /* readonly */
  19753. int weakRefs;
  19754. };
  19755. class PerThreadSceneResult
  19756. {
  19757. public:
  19758. ~PerThreadSceneResult();
  19759. PerThreadSceneResult();
  19760. // Methods:
  19761. PerThreadSceneResult& operator=(const PerThreadSceneResult&);
  19762. // Properties:
  19763. float maxZ;
  19764. float minZ;
  19765. };
  19766. class PhysicsRaycastResult
  19767. {
  19768. public:
  19769. ~PhysicsRaycastResult();
  19770. PhysicsRaycastResult();
  19771. // Methods:
  19772. PhysicsRaycastResult& operator=(const PhysicsRaycastResult&);
  19773. // Properties:
  19774. /* readonly */
  19775. RigidBody body;
  19776. float distance;
  19777. float hitFraction;
  19778. Vector3 normal;
  19779. Vector3 position;
  19780. };
  19781. class PhysicsRaycastResult2D
  19782. {
  19783. public:
  19784. ~PhysicsRaycastResult2D();
  19785. PhysicsRaycastResult2D();
  19786. // Methods:
  19787. PhysicsRaycastResult2D& operator=(const PhysicsRaycastResult2D&);
  19788. // Properties:
  19789. /* readonly */
  19790. RigidBody2D body;
  19791. float distance;
  19792. Vector2 normal;
  19793. Vector2 position;
  19794. };
  19795. class PhysicsWorld
  19796. {
  19797. public:
  19798. PhysicsWorld();
  19799. // Methods:
  19800. void AddCollisionShape(CollisionShape);
  19801. void AddConstraint(Constraint);
  19802. void AddDelayedWorldTransform(const DelayedWorldTransform&);
  19803. void AddRigidBody(RigidBody);
  19804. void AllocateNetworkState();
  19805. operator Animatable() const;
  19806. void ApplyAttributes();
  19807. void CleanupConnection(Connection);
  19808. void CleanupGeometryCache();
  19809. operator Component() const;
  19810. PhysicsRaycastResult ConvexCast(CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = 0xffff);
  19811. void ConvexCast(PhysicsRaycastResult&, CollisionShape, const Vector3&, const Quaternion&, const Vector3&, const Quaternion&, uint = M_MAX_UNSIGNED);
  19812. void DrawDebugGeometry(DebugRenderer, bool);
  19813. void DrawDebugGeometry(bool);
  19814. bool GetAnimationEnabled() const;
  19815. Variant GetAttribute(const String&) const;
  19816. Variant GetAttribute(uint) const;
  19817. ValueAnimation GetAttributeAnimation(const String&) const;
  19818. float GetAttributeAnimationSpeed(const String&) const;
  19819. float GetAttributeAnimationTime(const String&) const;
  19820. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  19821. Variant GetAttributeDefault(const String&) const;
  19822. Variant GetAttributeDefault(uint) const;
  19823. bool GetBlockEvents() const;
  19824. Array<RigidBody> GetCollidingBodies(RigidBody);
  19825. Component GetComponent(StringHash) const;
  19826. VariantMap& GetEventDataMap() const;
  19827. Object GetEventSender() const;
  19828. int GetFps() const;
  19829. Vector3 GetGravity() const;
  19830. uint GetID() const;
  19831. bool GetInterceptNetworkUpdate(const String&) const;
  19832. bool GetInternalEdge() const;
  19833. bool GetInterpolation() const;
  19834. float GetMaxNetworkAngularVelocity() const;
  19835. int GetMaxSubSteps() const;
  19836. Node GetNode() const;
  19837. uint GetNumAttributes() const;
  19838. int GetNumIterations() const;
  19839. uint GetNumNetworkAttributes() const;
  19840. ObjectAnimation GetObjectAnimation() const;
  19841. ResourceRef GetObjectAnimationAttr() const;
  19842. Array<RigidBody> GetRigidBodies(RigidBody);
  19843. Array<RigidBody> GetRigidBodies(const BoundingBox&, uint collisionMask = 0xffff);
  19844. Array<RigidBody> GetRigidBodies(const Sphere&, uint = 0xffff);
  19845. Scene GetScene() const;
  19846. bool GetSplitImpulse() const;
  19847. Object GetSubsystem(StringHash) const;
  19848. StringHash GetType() const;
  19849. bool HasEventHandlers() const;
  19850. bool HasSubscribedToEvent(Object, StringHash) const;
  19851. bool HasSubscribedToEvent(StringHash) const;
  19852. bool IsApplyingTransforms() const;
  19853. bool IsEnabled() const;
  19854. bool IsEnabledEffective() const;
  19855. bool IsInstanceOf(StringHash) const;
  19856. bool IsReplicated() const;
  19857. bool IsSimulating() const;
  19858. bool IsTemporary() const;
  19859. bool IsUpdateEnabled() const;
  19860. bool Load(Deserializer&);
  19861. bool LoadJSON(const JSONValue&);
  19862. bool LoadXML(const XMLElement&);
  19863. void MarkNetworkUpdate();
  19864. operator Object() const;
  19865. void OnEvent(Object, StringHash, VariantMap&);
  19866. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  19867. void OnSetAttribute(const AttributeInfo&, const Variant&);
  19868. void OnSetEnabled();
  19869. void PrepareNetworkUpdate();
  19870. Array<PhysicsRaycastResult> Raycast(const Ray&, float, uint = 0xffff);
  19871. void RaycastSingle(PhysicsRaycastResult&, const Ray&, float, uint = M_MAX_UNSIGNED);
  19872. PhysicsRaycastResult RaycastSingle(const Ray&, float, uint = 0xffff);
  19873. void RaycastSingleSegmented(PhysicsRaycastResult&, const Ray&, float, float, uint = M_MAX_UNSIGNED, float = 0.1f);
  19874. PhysicsRaycastResult RaycastSingleSegmented(const Ray&, float, float, uint collisionMask = 0xffff, float overlapDistance = 0.1f);
  19875. bool ReadDeltaUpdate(Deserializer&);
  19876. bool ReadLatestDataUpdate(Deserializer&);
  19877. operator RefCounted() const;
  19878. int Refs() const;
  19879. void Remove();
  19880. void RemoveAttributeAnimation(const String&);
  19881. void RemoveCachedGeometry(Model);
  19882. void RemoveCollisionShape(CollisionShape);
  19883. void RemoveConstraint(Constraint);
  19884. void RemoveInstanceDefault();
  19885. void RemoveObjectAnimation();
  19886. void RemoveRigidBody(RigidBody);
  19887. void ResetToDefault();
  19888. bool Save(Serializer&) const;
  19889. bool SaveDefaultAttributes() const;
  19890. bool SaveJSON(JSONValue&) const;
  19891. bool SaveXML(XMLElement&) const;
  19892. void SendEvent(StringHash);
  19893. void SendEvent(StringHash, VariantMap&);
  19894. operator Serializable() const;
  19895. void SetAnimationEnabled(bool);
  19896. void SetAnimationTime(float);
  19897. void SetApplyingTransforms(bool);
  19898. bool SetAttribute(const String&, const Variant&);
  19899. bool SetAttribute(uint, const Variant&);
  19900. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  19901. void SetAttributeAnimationSpeed(const String&, float);
  19902. void SetAttributeAnimationTime(const String&, float);
  19903. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  19904. void SetBlockEvents(bool);
  19905. void SetDebugDepthTest(bool);
  19906. void SetDebugRenderer(DebugRenderer);
  19907. void SetEnabled(bool);
  19908. void SetFps(int);
  19909. void SetGlobalVar(StringHash, const Variant&);
  19910. void SetGravity(const Vector3&);
  19911. void SetInstanceDefault(bool);
  19912. void SetInterceptNetworkUpdate(const String&, bool);
  19913. void SetInternalEdge(bool);
  19914. void SetInterpolation(bool);
  19915. void SetMaxNetworkAngularVelocity(float);
  19916. void SetMaxSubSteps(int);
  19917. void SetNumIterations(int);
  19918. void SetObjectAnimation(ObjectAnimation);
  19919. void SetObjectAnimationAttr(const ResourceRef&);
  19920. void SetSplitImpulse(bool);
  19921. void SetTemporary(bool);
  19922. void SetUpdateEnabled(bool);
  19923. void SphereCast(PhysicsRaycastResult&, const Ray&, float, float, uint = M_MAX_UNSIGNED);
  19924. PhysicsRaycastResult SphereCast(const Ray&, float, float, uint collisionMask = 0xffff);
  19925. const String& GetCategory() const;
  19926. const String& GetTypeName() const;
  19927. void UnsubscribeFromAllEvents();
  19928. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  19929. void UnsubscribeFromEvent(Object, StringHash);
  19930. void UnsubscribeFromEvent(StringHash);
  19931. void UnsubscribeFromEvents(Object);
  19932. void Update(float);
  19933. void UpdateCollisions();
  19934. const Variant& GetGlobalVar(StringHash) const;
  19935. const VariantMap& GetGlobalVars() const;
  19936. int WeakRefs() const;
  19937. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  19938. void WriteInitialDeltaUpdate(Serializer&, uint8);
  19939. void WriteLatestDataUpdate(Serializer&, uint8);
  19940. operator const Animatable() const;
  19941. operator const Component() const;
  19942. operator const Object() const;
  19943. operator const RefCounted() const;
  19944. operator const Serializable() const;
  19945. int getDebugMode() const;
  19946. void setDebugMode(int);
  19947. // Properties:
  19948. bool animationEnabled;
  19949. /* readonly */
  19950. Array<Variant> attributeDefaults;
  19951. /* readonly */
  19952. Array<AttributeInfo> attributeInfos;
  19953. Array<Variant> attributes;
  19954. /* readonly */
  19955. String category;
  19956. bool enabled;
  19957. /* readonly */
  19958. bool enabledEffective;
  19959. int fps;
  19960. Array<Variant> globalVar;
  19961. /* readonly */
  19962. VariantMap globalVars;
  19963. Vector3 gravity;
  19964. /* readonly */
  19965. uint id;
  19966. bool internalEdge;
  19967. bool interpolation;
  19968. int maxSubSteps;
  19969. /* readonly */
  19970. Node node;
  19971. /* readonly */
  19972. uint numAttributes;
  19973. int numIterations;
  19974. ObjectAnimation objectAnimation;
  19975. /* readonly */
  19976. int refs;
  19977. /* readonly */
  19978. bool replicated;
  19979. bool splitImpulse;
  19980. bool temporary;
  19981. /* readonly */
  19982. StringHash type;
  19983. /* readonly */
  19984. String typeName;
  19985. bool updateEnabled;
  19986. /* readonly */
  19987. int weakRefs;
  19988. };
  19989. class PhysicsWorld2D
  19990. {
  19991. public:
  19992. PhysicsWorld2D();
  19993. // Methods:
  19994. void AddDelayedWorldTransform(const DelayedWorldTransform2D&);
  19995. void AddRigidBody(RigidBody2D);
  19996. void AllocateNetworkState();
  19997. operator Animatable() const;
  19998. void ApplyAttributes();
  19999. void CleanupConnection(Connection);
  20000. operator Component() const;
  20001. void DrawDebugGeometry();
  20002. void DrawDebugGeometry(DebugRenderer, bool);
  20003. bool GetAllowSleeping() const;
  20004. bool GetAnimationEnabled() const;
  20005. Variant GetAttribute(const String&) const;
  20006. Variant GetAttribute(uint) const;
  20007. ValueAnimation GetAttributeAnimation(const String&) const;
  20008. float GetAttributeAnimationSpeed(const String&) const;
  20009. float GetAttributeAnimationTime(const String&) const;
  20010. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  20011. Variant GetAttributeDefault(const String&) const;
  20012. Variant GetAttributeDefault(uint) const;
  20013. bool GetAutoClearForces() const;
  20014. bool GetBlockEvents() const;
  20015. Component GetComponent(StringHash) const;
  20016. bool GetContinuousPhysics() const;
  20017. bool GetDrawAabb() const;
  20018. bool GetDrawCenterOfMass() const;
  20019. bool GetDrawJoint() const;
  20020. bool GetDrawPair() const;
  20021. bool GetDrawShape() const;
  20022. VariantMap& GetEventDataMap() const;
  20023. Object GetEventSender() const;
  20024. uint GetID() const;
  20025. bool GetInterceptNetworkUpdate(const String&) const;
  20026. Node GetNode() const;
  20027. uint GetNumAttributes() const;
  20028. uint GetNumNetworkAttributes() const;
  20029. ObjectAnimation GetObjectAnimation() const;
  20030. ResourceRef GetObjectAnimationAttr() const;
  20031. int GetPositionIterations() const;
  20032. Array<RigidBody2D> GetRigidBodies(const Rect&, uint16 = 0xffff);
  20033. RigidBody2D GetRigidBody(const Vector2&, uint16 = M_U16_MASK_ALL_BITS);
  20034. RigidBody2D GetRigidBody(int, int, uint16 = M_U16_MASK_ALL_BITS);
  20035. Scene GetScene() const;
  20036. bool GetSubStepping() const;
  20037. Object GetSubsystem(StringHash) const;
  20038. StringHash GetType() const;
  20039. int GetVelocityIterations() const;
  20040. bool GetWarmStarting() const;
  20041. bool HasEventHandlers() const;
  20042. bool HasSubscribedToEvent(Object, StringHash) const;
  20043. bool HasSubscribedToEvent(StringHash) const;
  20044. bool IsApplyingTransforms() const;
  20045. bool IsEnabled() const;
  20046. bool IsEnabledEffective() const;
  20047. bool IsInstanceOf(StringHash) const;
  20048. bool IsReplicated() const;
  20049. bool IsTemporary() const;
  20050. bool IsUpdateEnabled() const;
  20051. bool Load(Deserializer&);
  20052. bool LoadJSON(const JSONValue&);
  20053. bool LoadXML(const XMLElement&);
  20054. void MarkNetworkUpdate();
  20055. operator Object() const;
  20056. void OnEvent(Object, StringHash, VariantMap&);
  20057. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  20058. void OnSetAttribute(const AttributeInfo&, const Variant&);
  20059. void OnSetEnabled();
  20060. void PrepareNetworkUpdate();
  20061. Array<PhysicsRaycastResult2D> Raycast(const Vector2&, const Vector2&, uint16 = 0xffff);
  20062. void RaycastSingle(PhysicsRaycastResult2D&, const Vector2&, const Vector2&, uint16 = M_U16_MASK_ALL_BITS);
  20063. PhysicsRaycastResult2D RaycastSingle(const Vector2&, const Vector2&, uint16 = 0xffff);
  20064. bool ReadDeltaUpdate(Deserializer&);
  20065. bool ReadLatestDataUpdate(Deserializer&);
  20066. operator RefCounted() const;
  20067. int Refs() const;
  20068. void Remove();
  20069. void RemoveAttributeAnimation(const String&);
  20070. void RemoveInstanceDefault();
  20071. void RemoveObjectAnimation();
  20072. void RemoveRigidBody(RigidBody2D);
  20073. void ResetToDefault();
  20074. bool Save(Serializer&) const;
  20075. bool SaveDefaultAttributes() const;
  20076. bool SaveJSON(JSONValue&) const;
  20077. bool SaveXML(XMLElement&) const;
  20078. void SendEvent(StringHash);
  20079. void SendEvent(StringHash, VariantMap&);
  20080. operator Serializable() const;
  20081. void SetAllowSleeping(bool);
  20082. void SetAnimationEnabled(bool);
  20083. void SetAnimationTime(float);
  20084. void SetApplyingTransforms(bool);
  20085. bool SetAttribute(const String&, const Variant&);
  20086. bool SetAttribute(uint, const Variant&);
  20087. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  20088. void SetAttributeAnimationSpeed(const String&, float);
  20089. void SetAttributeAnimationTime(const String&, float);
  20090. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  20091. void SetAutoClearForces(bool);
  20092. void SetBlockEvents(bool);
  20093. void SetContinuousPhysics(bool);
  20094. void SetDrawAabb(bool);
  20095. void SetDrawCenterOfMass(bool);
  20096. void SetDrawJoint(bool);
  20097. void SetDrawPair(bool);
  20098. void SetDrawShape(bool);
  20099. void SetEnabled(bool);
  20100. void SetGlobalVar(StringHash, const Variant&);
  20101. void SetGravity(const Vector2&);
  20102. void SetInstanceDefault(bool);
  20103. void SetInterceptNetworkUpdate(const String&, bool);
  20104. void SetObjectAnimation(ObjectAnimation);
  20105. void SetObjectAnimationAttr(const ResourceRef&);
  20106. void SetPositionIterations(int);
  20107. void SetSubStepping(bool);
  20108. void SetTemporary(bool);
  20109. void SetUpdateEnabled(bool);
  20110. void SetVelocityIterations(int);
  20111. void SetWarmStarting(bool);
  20112. const String& GetCategory() const;
  20113. const String& GetTypeName() const;
  20114. void UnsubscribeFromAllEvents();
  20115. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20116. void UnsubscribeFromEvent(Object, StringHash);
  20117. void UnsubscribeFromEvent(StringHash);
  20118. void UnsubscribeFromEvents(Object);
  20119. void Update(float);
  20120. const Variant& GetGlobalVar(StringHash) const;
  20121. const VariantMap& GetGlobalVars() const;
  20122. const Vector2& GetGravity() const;
  20123. int WeakRefs() const;
  20124. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  20125. void WriteInitialDeltaUpdate(Serializer&, uint8);
  20126. void WriteLatestDataUpdate(Serializer&, uint8);
  20127. operator const Animatable() const;
  20128. operator const Component() const;
  20129. operator const Object() const;
  20130. operator const RefCounted() const;
  20131. operator const Serializable() const;
  20132. // Properties:
  20133. bool allowSleeping;
  20134. bool animationEnabled;
  20135. /* readonly */
  20136. Array<Variant> attributeDefaults;
  20137. /* readonly */
  20138. Array<AttributeInfo> attributeInfos;
  20139. Array<Variant> attributes;
  20140. bool autoClearForces;
  20141. /* readonly */
  20142. String category;
  20143. bool continuousPhysics;
  20144. bool drawAabb;
  20145. bool drawCenterOfMass;
  20146. bool drawJoint;
  20147. bool drawPair;
  20148. bool drawShape;
  20149. bool enabled;
  20150. /* readonly */
  20151. bool enabledEffective;
  20152. Array<Variant> globalVar;
  20153. /* readonly */
  20154. VariantMap globalVars;
  20155. Vector2 gravity;
  20156. /* readonly */
  20157. uint id;
  20158. /* readonly */
  20159. Node node;
  20160. /* readonly */
  20161. uint numAttributes;
  20162. ObjectAnimation objectAnimation;
  20163. int positionIterations;
  20164. /* readonly */
  20165. int refs;
  20166. /* readonly */
  20167. bool replicated;
  20168. bool subStepping;
  20169. bool temporary;
  20170. /* readonly */
  20171. StringHash type;
  20172. /* readonly */
  20173. String typeName;
  20174. bool updateEnabled;
  20175. int velocityIterations;
  20176. bool warmStarting;
  20177. /* readonly */
  20178. int weakRefs;
  20179. };
  20180. class PhysicsWorldConfig
  20181. {
  20182. public:
  20183. ~PhysicsWorldConfig();
  20184. PhysicsWorldConfig();
  20185. // Methods:
  20186. PhysicsWorldConfig& operator=(const PhysicsWorldConfig&);
  20187. };
  20188. class Plane
  20189. {
  20190. public:
  20191. Plane();
  20192. Plane(const Plane&in);
  20193. Plane(const Vector3&in, const Vector3&in, const Vector3&in);
  20194. Plane(const Vector3&in, const Vector3&in);
  20195. Plane(const Vector4&in);
  20196. // Methods:
  20197. Plane& operator=(const Plane&);
  20198. void Define(const Vector3&, const Vector3&);
  20199. void Define(const Vector3&, const Vector3&, const Vector3&);
  20200. void Define(const Vector4&);
  20201. float Distance(const Vector3&) const;
  20202. Vector3 Project(const Vector3&) const;
  20203. Vector3 Reflect(const Vector3&) const;
  20204. Matrix3x4 ReflectionMatrix() const;
  20205. Vector4 ToVector4() const;
  20206. void Transform(const Matrix3&);
  20207. void Transform(const Matrix3x4&);
  20208. void Transform(const Matrix4&);
  20209. Plane Transformed(const Matrix3&) const;
  20210. Plane Transformed(const Matrix3x4&) const;
  20211. Plane Transformed(const Matrix4&) const;
  20212. // Properties:
  20213. Vector3 absNormal;
  20214. float d;
  20215. Vector3 normal;
  20216. /* readonly */
  20217. Matrix3x4 reflectionMatrix;
  20218. // Constants:
  20219. static const Plane UP;
  20220. };
  20221. class Polyhedron
  20222. {
  20223. public:
  20224. ~Polyhedron();
  20225. Polyhedron();
  20226. Polyhedron(const Polyhedron&in);
  20227. Polyhedron(const BoundingBox&in);
  20228. Polyhedron(const Frustum&in);
  20229. // Methods:
  20230. Polyhedron& operator=(const Polyhedron&);
  20231. void AddFace(Array<Vector3>);
  20232. void AddFace(const Vector3&, const Vector3&, const Vector3&);
  20233. void AddFace(const Vector3&, const Vector3&, const Vector3&, const Vector3&);
  20234. void Clear();
  20235. void Clip(const BoundingBox&);
  20236. void Clip(const Frustum&);
  20237. void Clip(const Plane&);
  20238. void Define(const BoundingBox&);
  20239. void Define(const Frustum&);
  20240. bool Empty() const;
  20241. void Transform(const Matrix3&);
  20242. void Transform(const Matrix3x4&);
  20243. Polyhedron Transformed(const Matrix3&) const;
  20244. Polyhedron Transformed(const Matrix3x4&) const;
  20245. // Properties:
  20246. /* readonly */
  20247. Array<Array<Vector3>> face;
  20248. /* readonly */
  20249. uint numFaces;
  20250. };
  20251. class Profiler
  20252. {
  20253. public:
  20254. Profiler();
  20255. // Methods:
  20256. void BeginFrame();
  20257. void BeginInterval();
  20258. void EndBlock();
  20259. void EndFrame();
  20260. operator EventProfiler() const;
  20261. bool GetBlockEvents() const;
  20262. VariantMap& GetEventDataMap() const;
  20263. Object GetEventSender() const;
  20264. Object GetSubsystem(StringHash) const;
  20265. StringHash GetType() const;
  20266. bool HasEventHandlers() const;
  20267. bool HasSubscribedToEvent(Object, StringHash) const;
  20268. bool HasSubscribedToEvent(StringHash) const;
  20269. bool IsInstanceOf(StringHash) const;
  20270. operator Object() const;
  20271. void OnEvent(Object, StringHash, VariantMap&);
  20272. operator RefCounted() const;
  20273. int Refs() const;
  20274. void SendEvent(StringHash);
  20275. void SendEvent(StringHash, VariantMap&);
  20276. void SetBlockEvents(bool);
  20277. void SetGlobalVar(StringHash, const Variant&);
  20278. const String& GetCategory() const;
  20279. const String& GetTypeName() const;
  20280. const String& PrintData(bool = false, bool = false, uint = M_MAX_UNSIGNED) const;
  20281. void UnsubscribeFromAllEvents();
  20282. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20283. void UnsubscribeFromEvent(Object, StringHash);
  20284. void UnsubscribeFromEvent(StringHash);
  20285. void UnsubscribeFromEvents(Object);
  20286. const Variant& GetGlobalVar(StringHash) const;
  20287. const VariantMap& GetGlobalVars() const;
  20288. int WeakRefs() const;
  20289. operator const EventProfiler() const;
  20290. operator const Object() const;
  20291. operator const RefCounted() const;
  20292. // Properties:
  20293. /* readonly */
  20294. String category;
  20295. Array<Variant> globalVar;
  20296. /* readonly */
  20297. VariantMap globalVars;
  20298. /* readonly */
  20299. int refs;
  20300. /* readonly */
  20301. StringHash type;
  20302. /* readonly */
  20303. String typeName;
  20304. /* readonly */
  20305. int weakRefs;
  20306. };
  20307. class ProgressBar
  20308. {
  20309. public:
  20310. ProgressBar();
  20311. // Methods:
  20312. void AddChild(UIElement);
  20313. void AddTag(const String&);
  20314. void AddTags(Array<String>);
  20315. void AddTags(const String&, int8 = ';');
  20316. void AdjustScissor(IntRect&);
  20317. void AllocateNetworkState();
  20318. operator Animatable() const;
  20319. void ApplyAttributes();
  20320. operator BorderImage() const;
  20321. void BringToFront();
  20322. void ChangeValue(float);
  20323. const Color& GetColor(Corner) const;
  20324. const Color& GetColorAttr() const;
  20325. const Color& GetDerivedColor() const;
  20326. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  20327. void DisableLayoutUpdate();
  20328. IntVector2 ElementToScreen(const IntVector2&);
  20329. void EnableLayoutUpdate();
  20330. bool FilterAttributes(XMLElement&) const;
  20331. int FindChild(UIElement) const;
  20332. bool GetAnimationEnabled() const;
  20333. Variant GetAttribute(const String&) const;
  20334. Variant GetAttribute(uint) const;
  20335. ValueAnimation GetAttributeAnimation(const String&) const;
  20336. float GetAttributeAnimationSpeed(const String&) const;
  20337. float GetAttributeAnimationTime(const String&) const;
  20338. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  20339. Variant GetAttributeDefault(const String&) const;
  20340. Variant GetAttributeDefault(uint) const;
  20341. BlendMode GetBlendMode() const;
  20342. bool GetBlockEvents() const;
  20343. bool GetBringToBack() const;
  20344. bool GetBringToFront() const;
  20345. UIElement GetChild(const String&, bool = false) const;
  20346. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  20347. UIElement GetChild(int) const;
  20348. Array<UIElement> GetChildren() const;
  20349. Array<UIElement> GetChildren(bool) const;
  20350. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  20351. bool GetClipChildren() const;
  20352. IntRect GetCombinedScreenRect();
  20353. XMLFile GetDefaultStyle(bool = true) const;
  20354. float GetDerivedOpacity() const;
  20355. uint GetDragButtonCombo() const;
  20356. int GetDragButtonCount() const;
  20357. uint GetDragDropMode() const;
  20358. IntVector2 GetEffectiveMinSize() const;
  20359. UIElement GetElementEventSender() const;
  20360. bool GetEnableAnchor() const;
  20361. VariantMap& GetEventDataMap() const;
  20362. Object GetEventSender() const;
  20363. FocusMode GetFocusMode() const;
  20364. int GetHeight() const;
  20365. HorizontalAlignment GetHorizontalAlignment() const;
  20366. int GetIndent() const;
  20367. int GetIndentSpacing() const;
  20368. int GetIndentWidth() const;
  20369. bool GetInterceptNetworkUpdate(const String&) const;
  20370. BorderImage GetKnob() const;
  20371. int GetLayoutElementMaxSize() const;
  20372. LayoutMode GetLayoutMode() const;
  20373. int GetLayoutSpacing() const;
  20374. Material GetMaterial() const;
  20375. ResourceRef GetMaterialAttr() const;
  20376. int GetMaxHeight() const;
  20377. int GetMaxWidth() const;
  20378. int GetMinHeight() const;
  20379. int GetMinWidth() const;
  20380. uint GetNumAttributes() const;
  20381. int GetNumChildren(bool = false) const;
  20382. uint GetNumNetworkAttributes() const;
  20383. ObjectAnimation GetObjectAnimation() const;
  20384. ResourceRef GetObjectAnimationAttr() const;
  20385. float GetOpacity() const;
  20386. Orientation GetOrientation() const;
  20387. UIElement GetParent() const;
  20388. int GetPriority() const;
  20389. float GetRange() const;
  20390. UIElement GetRoot() const;
  20391. bool GetShowPercentText() const;
  20392. bool GetSortChildren() const;
  20393. Object GetSubsystem(StringHash) const;
  20394. Array<String> GetTags() const;
  20395. Texture GetTexture() const;
  20396. ResourceRef GetTextureAttr() const;
  20397. TraversalMode GetTraversalMode() const;
  20398. StringHash GetType() const;
  20399. bool GetUseDerivedOpacity() const;
  20400. float GetValue() const;
  20401. VerticalAlignment GetVerticalAlignment() const;
  20402. int GetWidth() const;
  20403. bool HasColorGradient() const;
  20404. bool HasEventHandlers() const;
  20405. bool HasFocus() const;
  20406. bool HasSubscribedToEvent(Object, StringHash) const;
  20407. bool HasSubscribedToEvent(StringHash) const;
  20408. bool HasTag(const String&) const;
  20409. void InsertChild(int, UIElement);
  20410. const IntRect& GetBorder() const;
  20411. const IntRect& GetClipBorder() const;
  20412. const IntRect& GetImageBorder() const;
  20413. const IntRect& GetImageRect() const;
  20414. const IntRect& GetLayoutBorder() const;
  20415. const IntVector2& GetChildOffset() const;
  20416. const IntVector2& GetDisabledOffset() const;
  20417. const IntVector2& GetHoverOffset() const;
  20418. const IntVector2& GetMaxOffset() const;
  20419. const IntVector2& GetMaxSize() const;
  20420. const IntVector2& GetMinOffset() const;
  20421. const IntVector2& GetMinSize() const;
  20422. const IntVector2& GetPosition() const;
  20423. const IntVector2& GetScreenPosition() const;
  20424. const IntVector2& GetSize() const;
  20425. bool IsChildOf(UIElement) const;
  20426. bool IsEditable() const;
  20427. bool IsElementEventSender() const;
  20428. bool IsEnabled() const;
  20429. bool IsEnabledSelf() const;
  20430. bool IsFixedHeight() const;
  20431. bool IsFixedSize() const;
  20432. bool IsFixedWidth() const;
  20433. bool IsHovering() const;
  20434. bool IsInside(IntVector2, bool);
  20435. bool IsInsideCombined(IntVector2, bool);
  20436. bool IsInstanceOf(StringHash) const;
  20437. bool IsInternal() const;
  20438. bool IsSelected() const;
  20439. bool IsTemporary() const;
  20440. bool IsTiled() const;
  20441. bool IsVisible() const;
  20442. bool IsVisibleEffective() const;
  20443. bool IsWheelHandler() const;
  20444. bool IsWithinScissor(const IntRect&);
  20445. bool Load(Deserializer&);
  20446. UIElement LoadChildXML(XMLFile, XMLFile);
  20447. UIElement LoadChildXML(const XMLElement&, XMLFile);
  20448. bool LoadJSON(const JSONValue&);
  20449. bool LoadXML(Deserializer&);
  20450. bool LoadXML(File);
  20451. bool LoadXML(VectorBuffer&);
  20452. bool LoadXML(XMLFile, XMLFile);
  20453. bool LoadXML(const XMLElement&);
  20454. bool LoadXML(const XMLElement&, XMLFile);
  20455. void MarkNetworkUpdate();
  20456. operator Object() const;
  20457. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  20458. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  20459. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  20460. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20461. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20462. bool OnDragDropFinish(UIElement);
  20463. bool OnDragDropTest(UIElement);
  20464. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20465. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20466. void OnEvent(Object, StringHash, VariantMap&);
  20467. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  20468. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  20469. void OnIndentSet();
  20470. void OnKey(uint, uint, uint);
  20471. void OnPositionSet(const IntVector2&);
  20472. void OnResize(const IntVector2&, const IntVector2&);
  20473. void OnSetAttribute(const AttributeInfo&, const Variant&);
  20474. void OnSetEditable();
  20475. void OnTextInput(const String&);
  20476. void OnWheel(int, uint, uint);
  20477. bool ReadDeltaUpdate(Deserializer&);
  20478. bool ReadLatestDataUpdate(Deserializer&);
  20479. operator RefCounted() const;
  20480. int Refs() const;
  20481. void Remove();
  20482. void RemoveAllChildren();
  20483. void RemoveAllTags();
  20484. void RemoveAttributeAnimation(const String&);
  20485. void RemoveChild(UIElement, int = 0);
  20486. void RemoveChild(uint);
  20487. void RemoveChildAtIndex(int);
  20488. void RemoveInstanceDefault();
  20489. void RemoveObjectAnimation();
  20490. bool RemoveTag(const String&);
  20491. void ResetDeepEnabled();
  20492. void ResetToDefault();
  20493. bool Save(Serializer&) const;
  20494. bool SaveDefaultAttributes() const;
  20495. bool SaveJSON(JSONValue&) const;
  20496. bool SaveXML(File, const String& indentation = "\t");
  20497. bool SaveXML(Serializer&, const String& = "\t") const;
  20498. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  20499. bool SaveXML(XMLElement&) const;
  20500. IntVector2 ScreenToElement(const IntVector2&);
  20501. void SendEvent(StringHash);
  20502. void SendEvent(StringHash, VariantMap&);
  20503. operator Serializable() const;
  20504. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  20505. void SetAnimationEnabled(bool);
  20506. void SetAnimationTime(float);
  20507. bool SetAttribute(const String&, const Variant&);
  20508. bool SetAttribute(uint, const Variant&);
  20509. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  20510. void SetAttributeAnimationSpeed(const String&, float);
  20511. void SetAttributeAnimationTime(const String&, float);
  20512. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  20513. void SetBlendMode(BlendMode);
  20514. void SetBlockEvents(bool);
  20515. void SetBorder(const IntRect&);
  20516. void SetBringToBack(bool);
  20517. void SetBringToFront(bool);
  20518. void SetChildOffset(const IntVector2&);
  20519. void SetClipBorder(const IntRect&);
  20520. void SetClipChildren(bool);
  20521. void SetColor(Corner, const Color&);
  20522. void SetColor(const Color&);
  20523. void SetDeepEnabled(bool);
  20524. void SetDefaultStyle(XMLFile);
  20525. void SetDisabledOffset(const IntVector2&);
  20526. void SetDisabledOffset(int, int);
  20527. void SetDragDropMode(uint);
  20528. void SetEditable(bool);
  20529. void SetElementEventSender(bool);
  20530. void SetEnableAnchor(bool);
  20531. void SetEnabled(bool);
  20532. void SetEnabledRecursive(bool);
  20533. void SetFixedHeight(int);
  20534. void SetFixedSize(const IntVector2&);
  20535. void SetFixedSize(int, int);
  20536. void SetFixedWidth(int);
  20537. void SetFocus(bool);
  20538. void SetFocusMode(FocusMode);
  20539. void SetFullImageRect();
  20540. void SetGlobalVar(StringHash, const Variant&);
  20541. void SetHeight(int);
  20542. void SetHorizontalAlignment(HorizontalAlignment);
  20543. void SetHoverOffset(const IntVector2&);
  20544. void SetHoverOffset(int, int);
  20545. void SetHovering(bool);
  20546. void SetImageBorder(const IntRect&);
  20547. void SetImageRect(const IntRect&);
  20548. void SetIndent(int);
  20549. void SetIndentSpacing(int);
  20550. void SetInstanceDefault(bool);
  20551. void SetInterceptNetworkUpdate(const String&, bool);
  20552. void SetInternal(bool);
  20553. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  20554. void SetLayoutBorder(const IntRect&);
  20555. void SetLayoutFlexScale(const Vector2&);
  20556. void SetLayoutMode(LayoutMode);
  20557. void SetLayoutSpacing(int);
  20558. void SetLoadingPercentStyle(const String&);
  20559. void SetMaterial(Material);
  20560. void SetMaterialAttr(const ResourceRef&);
  20561. void SetMaxAnchor(const Vector2&);
  20562. void SetMaxAnchor(float, float);
  20563. void SetMaxHeight(int);
  20564. void SetMaxOffset(const IntVector2&);
  20565. void SetMaxSize(const IntVector2&);
  20566. void SetMaxSize(int, int);
  20567. void SetMaxWidth(int);
  20568. void SetMinAnchor(const Vector2&);
  20569. void SetMinAnchor(float, float);
  20570. void SetMinHeight(int);
  20571. void SetMinOffset(const IntVector2&);
  20572. void SetMinSize(const IntVector2&);
  20573. void SetMinSize(int, int);
  20574. void SetMinWidth(int);
  20575. void SetName(const String&);
  20576. void SetObjectAnimation(ObjectAnimation);
  20577. void SetObjectAnimationAttr(const ResourceRef&);
  20578. void SetOpacity(float);
  20579. void SetOrientation(Orientation);
  20580. void SetParent(UIElement, int = ENDPOS);
  20581. void SetPivot(const Vector2&);
  20582. void SetPivot(float, float);
  20583. void SetPosition(const IntVector2&);
  20584. void SetPosition(int, int);
  20585. void SetPriority(int);
  20586. void SetRange(float);
  20587. void SetRenderTexture(Texture2D);
  20588. void SetSelected(bool);
  20589. void SetShowPercentText(bool);
  20590. void SetSize(const IntVector2&);
  20591. void SetSize(int, int);
  20592. void SetSortChildren(bool);
  20593. bool SetStyle(const String&, XMLFile = null);
  20594. bool SetStyle(const XMLElement&);
  20595. bool SetStyleAuto(XMLFile = null);
  20596. void SetTags(Array<String>);
  20597. void SetTemporary(bool);
  20598. void SetTexture(Texture);
  20599. void SetTextureAttr(const ResourceRef&);
  20600. void SetTiled(bool);
  20601. void SetTraversalMode(TraversalMode);
  20602. void SetUseDerivedOpacity(bool);
  20603. void SetValue(float);
  20604. void SetVar(StringHash, const Variant&);
  20605. void SetVerticalAlignment(VerticalAlignment);
  20606. void SetVisible(bool);
  20607. void SetWidth(int);
  20608. void SortChildren();
  20609. const String& GetAppliedStyle() const;
  20610. const String& GetCategory() const;
  20611. const String& GetLoadingPercentStyle() const;
  20612. const String& GetName() const;
  20613. const String& GetTypeName() const;
  20614. operator UIElement() const;
  20615. void UnsubscribeFromAllEvents();
  20616. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  20617. void UnsubscribeFromEvent(Object, StringHash);
  20618. void UnsubscribeFromEvent(StringHash);
  20619. void UnsubscribeFromEvents(Object);
  20620. void Update(float);
  20621. void UpdateLayout();
  20622. const Variant& GetGlobalVar(StringHash) const;
  20623. const Variant& GetVar(const StringHash&) const;
  20624. const VariantMap& GetGlobalVars() const;
  20625. const VariantMap& GetVars() const;
  20626. const Vector2& GetLayoutFlexScale() const;
  20627. const Vector2& GetMaxAnchor() const;
  20628. const Vector2& GetMinAnchor() const;
  20629. const Vector2& GetPivot() const;
  20630. int WeakRefs() const;
  20631. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  20632. void WriteInitialDeltaUpdate(Serializer&, uint8);
  20633. void WriteLatestDataUpdate(Serializer&, uint8);
  20634. operator const Animatable() const;
  20635. operator const BorderImage() const;
  20636. operator const Object() const;
  20637. operator const RefCounted() const;
  20638. operator const Serializable() const;
  20639. operator const UIElement() const;
  20640. // Properties:
  20641. bool animationEnabled;
  20642. /* readonly */
  20643. Array<Variant> attributeDefaults;
  20644. /* readonly */
  20645. Array<AttributeInfo> attributeInfos;
  20646. Array<Variant> attributes;
  20647. BlendMode blendMode;
  20648. IntRect border;
  20649. bool bringToBack;
  20650. bool bringToFront;
  20651. /* readonly */
  20652. String category;
  20653. /* readonly */
  20654. IntVector2 childOffset;
  20655. /* readonly */
  20656. Array<UIElement> children;
  20657. IntRect clipBorder;
  20658. bool clipChildren;
  20659. /* writeonly */
  20660. Color color;
  20661. /* readonly */
  20662. bool colorGradient;
  20663. Array<Color> colors;
  20664. /* readonly */
  20665. IntRect combinedScreenRect;
  20666. XMLFile defaultStyle;
  20667. /* readonly */
  20668. float derivedOpacity;
  20669. IntVector2 disabledOffset;
  20670. /* readonly */
  20671. uint dragButtonCombo;
  20672. /* readonly */
  20673. int dragButtonCount;
  20674. uint dragDropMode;
  20675. bool editable;
  20676. bool elementEventSender;
  20677. bool enableAnchor;
  20678. bool enabled;
  20679. /* readonly */
  20680. bool enabledSelf;
  20681. /* readonly */
  20682. bool fixedHeight;
  20683. /* readonly */
  20684. bool fixedSize;
  20685. /* readonly */
  20686. bool fixedWidth;
  20687. bool focus;
  20688. FocusMode focusMode;
  20689. Array<Variant> globalVar;
  20690. /* readonly */
  20691. VariantMap globalVars;
  20692. int height;
  20693. HorizontalAlignment horizontalAlignment;
  20694. IntVector2 hoverOffset;
  20695. /* readonly */
  20696. bool hovering;
  20697. IntRect imageBorder;
  20698. IntRect imageRect;
  20699. int indent;
  20700. int indentSpacing;
  20701. /* readonly */
  20702. int indentWidth;
  20703. bool internal;
  20704. /* readonly */
  20705. BorderImage knob;
  20706. IntRect layoutBorder;
  20707. Vector2 layoutFlexScale;
  20708. LayoutMode layoutMode;
  20709. int layoutSpacing;
  20710. Material material;
  20711. Vector2 maxAnchor;
  20712. int maxHeight;
  20713. IntVector2 maxOffset;
  20714. IntVector2 maxSize;
  20715. int maxWidth;
  20716. Vector2 minAnchor;
  20717. int minHeight;
  20718. IntVector2 minOffset;
  20719. IntVector2 minSize;
  20720. int minWidth;
  20721. String name;
  20722. /* readonly */
  20723. uint numAllChildren;
  20724. /* readonly */
  20725. uint numAttributes;
  20726. /* readonly */
  20727. uint numChildren;
  20728. ObjectAnimation objectAnimation;
  20729. float opacity;
  20730. Orientation orientation;
  20731. UIElement parent;
  20732. Vector2 pivot;
  20733. IntVector2 position;
  20734. int priority;
  20735. float range;
  20736. /* readonly */
  20737. int refs;
  20738. /* readonly */
  20739. UIElement root;
  20740. /* readonly */
  20741. IntVector2 screenPosition;
  20742. bool selected;
  20743. bool showPercentText;
  20744. IntVector2 size;
  20745. bool sortChildren;
  20746. String style;
  20747. /* readonly */
  20748. Array<String> tags;
  20749. bool temporary;
  20750. Texture texture;
  20751. bool tiled;
  20752. TraversalMode traversalMode;
  20753. /* readonly */
  20754. StringHash type;
  20755. /* readonly */
  20756. String typeName;
  20757. bool useDerivedOpacity;
  20758. float value;
  20759. /* readonly */
  20760. VariantMap vars;
  20761. VerticalAlignment verticalAlignment;
  20762. bool visible;
  20763. /* readonly */
  20764. bool visibleEffective;
  20765. /* readonly */
  20766. int weakRefs;
  20767. int width;
  20768. };
  20769. class PropertySet2D
  20770. {
  20771. public:
  20772. PropertySet2D();
  20773. // Methods:
  20774. bool HasProperty(const String&) const;
  20775. void Load(const XMLElement&);
  20776. operator RefCounted() const;
  20777. int Refs() const;
  20778. const String& GetProperty(const String&) const;
  20779. int WeakRefs() const;
  20780. operator const RefCounted() const;
  20781. // Properties:
  20782. /* readonly */
  20783. int refs;
  20784. /* readonly */
  20785. int weakRefs;
  20786. };
  20787. class Quaternion
  20788. {
  20789. public:
  20790. Quaternion();
  20791. Quaternion(const Quaternion&in);
  20792. Quaternion(float, float, float, float);
  20793. Quaternion(float, const Vector3&in);
  20794. Quaternion(float);
  20795. Quaternion(float, float, float);
  20796. Quaternion(const Vector3&in);
  20797. Quaternion(const Vector3&in, const Vector3&in);
  20798. Quaternion(const Vector3&in, const Vector3&in, const Vector3&in);
  20799. Quaternion(const Matrix3&in);
  20800. // Methods:
  20801. Quaternion operator+(const Quaternion&) const;
  20802. Quaternion& operator+=(const Quaternion&);
  20803. Quaternion& operator=(const Quaternion&);
  20804. bool operator==(const Quaternion&) const;
  20805. float Angle() const;
  20806. Vector3 Axis() const;
  20807. Quaternion Conjugate() const;
  20808. float DotProduct(const Quaternion&) const;
  20809. bool Equals(const Quaternion&) const;
  20810. Vector3 EulerAngles() const;
  20811. void FromAngleAxis(float, const Vector3&);
  20812. void FromAxes(const Vector3&, const Vector3&, const Vector3&);
  20813. void FromEulerAngles(float, float, float);
  20814. bool FromLookRotation(const Vector3&, const Vector3& = Vector3 :: UP);
  20815. void FromRotationMatrix(const Matrix3&);
  20816. void FromRotationTo(const Vector3&, const Vector3&);
  20817. Quaternion Inverse() const;
  20818. bool IsInf() const;
  20819. bool IsNaN() const;
  20820. float LengthSquared() const;
  20821. Quaternion Nlerp(const Quaternion&, float, bool = false) const;
  20822. void Normalize();
  20823. Quaternion Normalized() const;
  20824. float PitchAngle() const;
  20825. float RollAngle() const;
  20826. Matrix3 RotationMatrix() const;
  20827. Quaternion Slerp(const Quaternion&, float) const;
  20828. String ToString() const;
  20829. float YawAngle() const;
  20830. // Properties:
  20831. /* readonly */
  20832. float angle;
  20833. /* readonly */
  20834. Vector3 axis;
  20835. /* readonly */
  20836. Vector3 eulerAngles;
  20837. /* readonly */
  20838. float pitch;
  20839. /* readonly */
  20840. float roll;
  20841. /* readonly */
  20842. Matrix3 rotationMatrix;
  20843. float w;
  20844. float x;
  20845. float y;
  20846. /* readonly */
  20847. float yaw;
  20848. float z;
  20849. // Constants:
  20850. static const Quaternion IDENTITY;
  20851. };
  20852. class Ray
  20853. {
  20854. public:
  20855. Ray();
  20856. Ray(const Vector3&in, const Vector3&in);
  20857. Ray(const Ray&in);
  20858. // Methods:
  20859. Ray& operator=(const Ray&);
  20860. bool operator==(const Ray&) const;
  20861. Vector3 ClosestPoint(const Ray&) const;
  20862. void Define(const Vector3&, const Vector3&);
  20863. float Distance(const Vector3&) const;
  20864. float HitDistance(const BoundingBox&) const;
  20865. float HitDistance(const Frustum&, bool = true) const;
  20866. float HitDistance(const Plane&) const;
  20867. float HitDistance(const Sphere&) const;
  20868. float HitDistance(const Vector3&, const Vector3&, const Vector3&) const;
  20869. Vector3 Project(const Vector3&) const;
  20870. Ray Transformed(const Matrix3x4&) const;
  20871. // Properties:
  20872. Vector3 direction;
  20873. Vector3 origin;
  20874. };
  20875. class RayQueryResult
  20876. {
  20877. public:
  20878. ~RayQueryResult();
  20879. RayQueryResult();
  20880. // Methods:
  20881. RayQueryResult& operator=(const RayQueryResult&);
  20882. // Properties:
  20883. float distance;
  20884. /* readonly */
  20885. Drawable drawable;
  20886. /* readonly */
  20887. Node node;
  20888. Vector3 normal;
  20889. Vector3 position;
  20890. int subObject;
  20891. Vector2 textureUV;
  20892. };
  20893. class RaycastVehicle
  20894. {
  20895. public:
  20896. // Methods:
  20897. void AddWheel(Node, Vector3, Vector3, float, float, bool);
  20898. void AllocateNetworkState();
  20899. operator Animatable() const;
  20900. void ApplyAttributes();
  20901. void CleanupConnection(Connection);
  20902. operator Component() const;
  20903. void DelayedStart();
  20904. void DrawDebugGeometry(DebugRenderer, bool);
  20905. void FixedPostUpdate(float);
  20906. void FixedUpdate(float);
  20907. bool GetAnimationEnabled() const;
  20908. Variant GetAttribute(const String&) const;
  20909. Variant GetAttribute(uint) const;
  20910. ValueAnimation GetAttributeAnimation(const String&) const;
  20911. float GetAttributeAnimationSpeed(const String&) const;
  20912. float GetAttributeAnimationTime(const String&) const;
  20913. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  20914. Variant GetAttributeDefault(const String&) const;
  20915. Variant GetAttributeDefault(uint) const;
  20916. bool GetBlockEvents() const;
  20917. float GetBrake(int) const;
  20918. Component GetComponent(StringHash) const;
  20919. Vector3 GetContactNormal(int) const;
  20920. Vector3 GetContactPosition(int) const;
  20921. IntVector3 GetCoordinateSystem() const;
  20922. float GetEngineForce(int) const;
  20923. VariantMap& GetEventDataMap() const;
  20924. Object GetEventSender() const;
  20925. uint GetID() const;
  20926. float GetInAirRPM() const;
  20927. bool GetInterceptNetworkUpdate(const String&) const;
  20928. float GetMaxSideSlipSpeed() const;
  20929. float GetMaxSuspensionTravel(int);
  20930. Node GetNode() const;
  20931. uint GetNumAttributes() const;
  20932. uint GetNumNetworkAttributes() const;
  20933. int GetNumWheels() const;
  20934. ObjectAnimation GetObjectAnimation() const;
  20935. ResourceRef GetObjectAnimationAttr() const;
  20936. Scene GetScene() const;
  20937. float GetSteeringValue(int) const;
  20938. Object GetSubsystem(StringHash) const;
  20939. StringHash GetType() const;
  20940. int GetUpdateEventMask() const;
  20941. Vector3 GetWheelAxle(int) const;
  20942. Vector3 GetWheelConnectionPoint(int) const;
  20943. float GetWheelDampingCompression(int) const;
  20944. float GetWheelDampingRelaxation(int) const;
  20945. Vector3 GetWheelDirection(int) const;
  20946. float GetWheelFrictionSlip(int) const;
  20947. float GetWheelMaxSuspensionForce(int) const;
  20948. Node GetWheelNode(int) const;
  20949. Vector3 GetWheelPosition(int);
  20950. float GetWheelRadius(int) const;
  20951. float GetWheelRestLength(int) const;
  20952. float GetWheelRollInfluence(int) const;
  20953. Quaternion GetWheelRotation(int);
  20954. float GetWheelSideSlipSpeed(int) const;
  20955. float GetWheelSkidInfo(int) const;
  20956. float GetWheelSkidInfoCumulative(int) const;
  20957. float GetWheelSuspensionStiffness(int) const;
  20958. bool HasEventHandlers() const;
  20959. bool HasSubscribedToEvent(Object, StringHash) const;
  20960. bool HasSubscribedToEvent(StringHash) const;
  20961. void Init();
  20962. bool IsDelayedStartCalled() const;
  20963. bool IsEnabled() const;
  20964. bool IsEnabledEffective() const;
  20965. bool IsFrontWheel(int) const;
  20966. bool IsInstanceOf(StringHash) const;
  20967. bool IsReplicated() const;
  20968. bool IsTemporary() const;
  20969. bool Load(Deserializer&);
  20970. bool LoadJSON(const JSONValue&);
  20971. bool LoadXML(const XMLElement&);
  20972. operator LogicComponent() const;
  20973. void MarkNetworkUpdate();
  20974. operator Object() const;
  20975. void OnEvent(Object, StringHash, VariantMap&);
  20976. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  20977. void OnSetAttribute(const AttributeInfo&, const Variant&);
  20978. void OnSetEnabled();
  20979. void PostUpdate(float);
  20980. void PrepareNetworkUpdate();
  20981. bool ReadDeltaUpdate(Deserializer&);
  20982. bool ReadLatestDataUpdate(Deserializer&);
  20983. operator RefCounted() const;
  20984. int Refs() const;
  20985. void Remove();
  20986. void RemoveAttributeAnimation(const String&);
  20987. void RemoveInstanceDefault();
  20988. void RemoveObjectAnimation();
  20989. void ResetSuspension();
  20990. void ResetToDefault();
  20991. void ResetWheels();
  20992. bool Save(Serializer&) const;
  20993. bool SaveDefaultAttributes() const;
  20994. bool SaveJSON(JSONValue&) const;
  20995. bool SaveXML(XMLElement&) const;
  20996. void SendEvent(StringHash);
  20997. void SendEvent(StringHash, VariantMap&);
  20998. operator Serializable() const;
  20999. void SetAnimationEnabled(bool);
  21000. void SetAnimationTime(float);
  21001. bool SetAttribute(const String&, const Variant&);
  21002. bool SetAttribute(uint, const Variant&);
  21003. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  21004. void SetAttributeAnimationSpeed(const String&, float);
  21005. void SetAttributeAnimationTime(const String&, float);
  21006. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  21007. void SetBlockEvents(bool);
  21008. void SetBrake(int, float);
  21009. void SetCoordinateSystem(const IntVector3& = RIGHT_FORWARD_UP);
  21010. void SetEnabled(bool);
  21011. void SetEngineForce(int, float);
  21012. void SetGlobalVar(StringHash, const Variant&);
  21013. void SetInAirRPM(float);
  21014. void SetInstanceDefault(bool);
  21015. void SetInterceptNetworkUpdate(const String&, bool);
  21016. void SetMaxSideSlipSpeed(float);
  21017. void SetMaxSuspensionTravel(int, float);
  21018. void SetObjectAnimation(ObjectAnimation);
  21019. void SetObjectAnimationAttr(const ResourceRef&);
  21020. void SetSteeringValue(int, float);
  21021. void SetTemporary(bool);
  21022. void SetUpdateEventMask(int);
  21023. void SetWheelAxle(int, Vector3);
  21024. void SetWheelDampingCompression(int, float);
  21025. void SetWheelDampingRelaxation(int, float);
  21026. void SetWheelDirection(int, Vector3);
  21027. void SetWheelFrictionSlip(int, float);
  21028. void SetWheelMaxSuspensionForce(int, float);
  21029. void SetWheelRadius(int, float);
  21030. void SetWheelRestLength(int, float);
  21031. void SetWheelRollInfluence(int, float);
  21032. void SetWheelSkidInfo(int, float);
  21033. void SetWheelSkidInfoCumulative(int, float);
  21034. void SetWheelSuspensionStiffness(int, float);
  21035. void Start();
  21036. void Stop();
  21037. const String& GetCategory() const;
  21038. const String& GetTypeName() const;
  21039. void UnsubscribeFromAllEvents();
  21040. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  21041. void UnsubscribeFromEvent(Object, StringHash);
  21042. void UnsubscribeFromEvent(StringHash);
  21043. void UnsubscribeFromEvents(Object);
  21044. void Update(float);
  21045. void UpdateWheelTransform(int, bool);
  21046. const Variant& GetGlobalVar(StringHash) const;
  21047. const VariantMap& GetGlobalVars() const;
  21048. int WeakRefs() const;
  21049. bool WheelIsGrounded(int) const;
  21050. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  21051. void WriteInitialDeltaUpdate(Serializer&, uint8);
  21052. void WriteLatestDataUpdate(Serializer&, uint8);
  21053. operator const Animatable() const;
  21054. operator const Component() const;
  21055. operator const LogicComponent() const;
  21056. operator const Object() const;
  21057. operator const RefCounted() const;
  21058. operator const Serializable() const;
  21059. // Properties:
  21060. bool animationEnabled;
  21061. /* readonly */
  21062. Array<Variant> attributeDefaults;
  21063. /* readonly */
  21064. Array<AttributeInfo> attributeInfos;
  21065. Array<Variant> attributes;
  21066. /* readonly */
  21067. String category;
  21068. IntVector3 coordinateSystem;
  21069. bool enabled;
  21070. /* readonly */
  21071. bool enabledEffective;
  21072. Array<Variant> globalVar;
  21073. /* readonly */
  21074. VariantMap globalVars;
  21075. /* readonly */
  21076. uint id;
  21077. float inAirRPM;
  21078. float maxSideSlipSpeed;
  21079. /* readonly */
  21080. Node node;
  21081. /* readonly */
  21082. uint numAttributes;
  21083. /* readonly */
  21084. int numWheels;
  21085. ObjectAnimation objectAnimation;
  21086. /* readonly */
  21087. int refs;
  21088. /* readonly */
  21089. bool replicated;
  21090. bool temporary;
  21091. /* readonly */
  21092. StringHash type;
  21093. /* readonly */
  21094. String typeName;
  21095. /* readonly */
  21096. int weakRefs;
  21097. // Constants:
  21098. static const IntVector3 FORWARD_RIGHT_UP;
  21099. static const IntVector3 FORWARD_UP_RIGHT;
  21100. static const IntVector3 RIGHT_FORWARD_UP;
  21101. static const IntVector3 RIGHT_UP_FORWARD;
  21102. static const IntVector3 UP_FORWARD_RIGHT;
  21103. static const IntVector3 UP_RIGHT_FORWARD;
  21104. };
  21105. class Rect
  21106. {
  21107. public:
  21108. Rect();
  21109. Rect(const Vector2&in, const Vector2&in);
  21110. Rect(float, float, float, float);
  21111. Rect(const Vector4&in);
  21112. Rect(const Rect&in);
  21113. // Methods:
  21114. Rect operator+(const Rect&) const;
  21115. Rect& operator+=(const Rect&);
  21116. Rect& operator=(const Rect&);
  21117. bool operator==(const Rect&) const;
  21118. float Bottom() const;
  21119. Vector2 Center() const;
  21120. void Clear();
  21121. void Clip(const Rect&);
  21122. void Define(const Rect&);
  21123. void Define(const Vector2&);
  21124. void Define(const Vector2&, const Vector2&);
  21125. bool Defined() const;
  21126. bool Equals(const Rect&) const;
  21127. Vector2 HalfSize() const;
  21128. Intersection IsInside(const Rect&) const;
  21129. Intersection IsInside(const Vector2&) const;
  21130. float Left() const;
  21131. Vector2 Max() const;
  21132. void Merge(const Rect&);
  21133. void Merge(const Vector2&);
  21134. Vector2 Min() const;
  21135. float Right() const;
  21136. Vector2 Size() const;
  21137. String ToString() const;
  21138. Vector4 ToVector4() const;
  21139. float Top() const;
  21140. // Properties:
  21141. /* readonly */
  21142. float bottom;
  21143. /* readonly */
  21144. Vector2 center;
  21145. /* readonly */
  21146. Vector2 halfSize;
  21147. /* readonly */
  21148. float left;
  21149. Vector2 max;
  21150. Vector2 min;
  21151. /* readonly */
  21152. float right;
  21153. /* readonly */
  21154. Vector2 size;
  21155. /* readonly */
  21156. float top;
  21157. // Constants:
  21158. static const Rect FULL;
  21159. static const Rect POSITIVE;
  21160. static const Rect ZERO;
  21161. };
  21162. class RefCount
  21163. {
  21164. public:
  21165. ~RefCount();
  21166. RefCount();
  21167. // Methods:
  21168. RefCount& operator=(const RefCount&);
  21169. // Properties:
  21170. int refs;
  21171. int weakRefs;
  21172. };
  21173. class RefCounted
  21174. {
  21175. public:
  21176. RefCounted();
  21177. // Methods:
  21178. operator Animatable() const;
  21179. operator AnimatedModel() const;
  21180. operator AnimatedSprite2D() const;
  21181. operator Animation() const;
  21182. operator AnimationController() const;
  21183. operator AnimationSet2D() const;
  21184. operator AnimationState() const;
  21185. operator AttributeAccessor() const;
  21186. operator AttributeAnimationInfo() const;
  21187. operator Audio() const;
  21188. operator BillboardSet() const;
  21189. operator BorderImage() const;
  21190. operator BufferedSoundStream() const;
  21191. operator Button() const;
  21192. operator Camera() const;
  21193. operator CheckBox() const;
  21194. operator CollisionBox2D() const;
  21195. operator CollisionChain2D() const;
  21196. operator CollisionCircle2D() const;
  21197. operator CollisionEdge2D() const;
  21198. operator CollisionGeometryData() const;
  21199. operator CollisionPolygon2D() const;
  21200. operator CollisionShape2D() const;
  21201. operator CollisionShape() const;
  21202. operator Component() const;
  21203. operator Connection() const;
  21204. operator Console() const;
  21205. operator ConstantBuffer() const;
  21206. operator Constraint2D() const;
  21207. operator Constraint() const;
  21208. operator ConstraintDistance2D() const;
  21209. operator ConstraintFriction2D() const;
  21210. operator ConstraintGear2D() const;
  21211. operator ConstraintMotor2D() const;
  21212. operator ConstraintMouse2D() const;
  21213. operator ConstraintPrismatic2D() const;
  21214. operator ConstraintPulley2D() const;
  21215. operator ConstraintRevolute2D() const;
  21216. operator ConstraintWeld2D() const;
  21217. operator ConstraintWheel2D() const;
  21218. operator Context() const;
  21219. operator ConvexData() const;
  21220. operator CrowdAgent() const;
  21221. operator CrowdManager() const;
  21222. operator Cursor() const;
  21223. operator CustomGeometry() const;
  21224. operator Database() const;
  21225. operator DebugHud() const;
  21226. operator DebugRenderer() const;
  21227. operator DecalSet() const;
  21228. operator Drawable2D() const;
  21229. operator Drawable() const;
  21230. operator DropDownList() const;
  21231. operator DynamicNavigationMesh() const;
  21232. operator Engine() const;
  21233. operator EventProfiler() const;
  21234. operator EventReceiverGroup() const;
  21235. operator File() const;
  21236. operator FileSelector() const;
  21237. operator FileSystem() const;
  21238. operator FileWatcher() const;
  21239. operator Font() const;
  21240. operator FontFace() const;
  21241. operator FontFaceBitmap() const;
  21242. operator FontFaceFreeType() const;
  21243. operator GImpactMeshData() const;
  21244. operator Geometry() const;
  21245. operator Graphics() const;
  21246. operator HeightfieldData() const;
  21247. operator HttpRequest() const;
  21248. operator IKConstraint() const;
  21249. operator IKEffector() const;
  21250. operator IKSolver() const;
  21251. operator Image() const;
  21252. operator IndexBuffer() const;
  21253. operator Input() const;
  21254. operator JSONFile() const;
  21255. operator Light() const;
  21256. operator LineEdit() const;
  21257. operator ListView() const;
  21258. operator Localization() const;
  21259. operator Log() const;
  21260. operator LogicComponent() const;
  21261. operator Material() const;
  21262. operator Menu() const;
  21263. operator MessageBox() const;
  21264. operator Model() const;
  21265. operator NamedPipe() const;
  21266. operator NavArea() const;
  21267. operator Navigable() const;
  21268. operator NavigationMesh() const;
  21269. operator Network() const;
  21270. operator NetworkPriority() const;
  21271. operator Node() const;
  21272. operator Object() const;
  21273. operator ObjectAnimation() const;
  21274. operator ObjectFactory() const;
  21275. operator Obstacle() const;
  21276. operator OcclusionBuffer() const;
  21277. operator Octree() const;
  21278. operator OffMeshConnection() const;
  21279. operator OggVorbisSoundStream() const;
  21280. operator PackageFile() const;
  21281. operator ParticleEffect2D() const;
  21282. operator ParticleEffect() const;
  21283. operator ParticleEmitter2D() const;
  21284. operator ParticleEmitter() const;
  21285. operator Pass() const;
  21286. operator PhysicsWorld2D() const;
  21287. operator PhysicsWorld() const;
  21288. operator Profiler() const;
  21289. operator ProgressBar() const;
  21290. operator PropertySet2D() const;
  21291. operator RaycastVehicle() const;
  21292. int Refs() const;
  21293. operator RenderPath() const;
  21294. operator RenderSurface() const;
  21295. operator Renderer2D() const;
  21296. operator Renderer() const;
  21297. operator Resource() const;
  21298. operator ResourceCache() const;
  21299. operator ResourceWithMetadata() const;
  21300. operator RibbonTrail() const;
  21301. operator RigidBody2D() const;
  21302. operator RigidBody() const;
  21303. operator Scene() const;
  21304. operator ScriptInstance() const;
  21305. operator ScrollBar() const;
  21306. operator ScrollView() const;
  21307. operator Serializable() const;
  21308. operator Shader() const;
  21309. operator ShaderParameterAnimationInfo() const;
  21310. operator ShaderPrecache() const;
  21311. operator ShaderVariation() const;
  21312. operator Skybox() const;
  21313. operator Slider() const;
  21314. operator SmoothedTransform() const;
  21315. operator Sound() const;
  21316. operator SoundListener() const;
  21317. operator SoundSource3D() const;
  21318. operator SoundSource() const;
  21319. operator SoundStream() const;
  21320. operator SplinePath() const;
  21321. operator Sprite2D() const;
  21322. operator Sprite() const;
  21323. operator SpriteSheet2D() const;
  21324. operator StaticModel() const;
  21325. operator StaticModelGroup() const;
  21326. operator StaticSprite2D() const;
  21327. operator StretchableSprite2D() const;
  21328. operator Technique() const;
  21329. operator Terrain() const;
  21330. operator TerrainPatch() const;
  21331. operator Text3D() const;
  21332. operator Text() const;
  21333. operator Texture2D() const;
  21334. operator Texture2DArray() const;
  21335. operator Texture3D() const;
  21336. operator Texture() const;
  21337. operator TextureCube() const;
  21338. operator Tile2D() const;
  21339. operator TileMap2D() const;
  21340. operator TileMapLayer2D() const;
  21341. operator TileMapObject2D() const;
  21342. operator Time() const;
  21343. operator TmxFile2D() const;
  21344. operator TmxImageLayer2D() const;
  21345. operator TmxLayer2D() const;
  21346. operator TmxObjectGroup2D() const;
  21347. operator TmxTileLayer2D() const;
  21348. operator ToolTip() const;
  21349. operator TriangleMeshData() const;
  21350. operator UI() const;
  21351. operator UIComponent() const;
  21352. operator UIElement() const;
  21353. operator UISelectable() const;
  21354. operator UnknownComponent() const;
  21355. operator ValueAnimation() const;
  21356. operator ValueAnimationInfo() const;
  21357. operator VertexBuffer() const;
  21358. operator View3D() const;
  21359. operator View() const;
  21360. operator Viewport() const;
  21361. int WeakRefs() const;
  21362. operator Window() const;
  21363. operator WorkQueue() const;
  21364. operator XMLFile() const;
  21365. operator Zone() const;
  21366. operator const Animatable() const;
  21367. operator const AnimatedModel() const;
  21368. operator const AnimatedSprite2D() const;
  21369. operator const Animation() const;
  21370. operator const AnimationController() const;
  21371. operator const AnimationSet2D() const;
  21372. operator const AnimationState() const;
  21373. operator const AttributeAccessor() const;
  21374. operator const AttributeAnimationInfo() const;
  21375. operator const Audio() const;
  21376. operator const BillboardSet() const;
  21377. operator const BorderImage() const;
  21378. operator const BufferedSoundStream() const;
  21379. operator const Button() const;
  21380. operator const Camera() const;
  21381. operator const CheckBox() const;
  21382. operator const CollisionBox2D() const;
  21383. operator const CollisionChain2D() const;
  21384. operator const CollisionCircle2D() const;
  21385. operator const CollisionEdge2D() const;
  21386. operator const CollisionGeometryData() const;
  21387. operator const CollisionPolygon2D() const;
  21388. operator const CollisionShape2D() const;
  21389. operator const CollisionShape() const;
  21390. operator const Component() const;
  21391. operator const Connection() const;
  21392. operator const Console() const;
  21393. operator const ConstantBuffer() const;
  21394. operator const Constraint2D() const;
  21395. operator const Constraint() const;
  21396. operator const ConstraintDistance2D() const;
  21397. operator const ConstraintFriction2D() const;
  21398. operator const ConstraintGear2D() const;
  21399. operator const ConstraintMotor2D() const;
  21400. operator const ConstraintMouse2D() const;
  21401. operator const ConstraintPrismatic2D() const;
  21402. operator const ConstraintPulley2D() const;
  21403. operator const ConstraintRevolute2D() const;
  21404. operator const ConstraintWeld2D() const;
  21405. operator const ConstraintWheel2D() const;
  21406. operator const Context() const;
  21407. operator const ConvexData() const;
  21408. operator const CrowdAgent() const;
  21409. operator const CrowdManager() const;
  21410. operator const Cursor() const;
  21411. operator const CustomGeometry() const;
  21412. operator const Database() const;
  21413. operator const DebugHud() const;
  21414. operator const DebugRenderer() const;
  21415. operator const DecalSet() const;
  21416. operator const Drawable2D() const;
  21417. operator const Drawable() const;
  21418. operator const DropDownList() const;
  21419. operator const DynamicNavigationMesh() const;
  21420. operator const Engine() const;
  21421. operator const EventProfiler() const;
  21422. operator const EventReceiverGroup() const;
  21423. operator const File() const;
  21424. operator const FileSelector() const;
  21425. operator const FileSystem() const;
  21426. operator const FileWatcher() const;
  21427. operator const Font() const;
  21428. operator const FontFace() const;
  21429. operator const FontFaceBitmap() const;
  21430. operator const FontFaceFreeType() const;
  21431. operator const GImpactMeshData() const;
  21432. operator const Geometry() const;
  21433. operator const Graphics() const;
  21434. operator const HeightfieldData() const;
  21435. operator const HttpRequest() const;
  21436. operator const IKConstraint() const;
  21437. operator const IKEffector() const;
  21438. operator const IKSolver() const;
  21439. operator const Image() const;
  21440. operator const IndexBuffer() const;
  21441. operator const Input() const;
  21442. operator const JSONFile() const;
  21443. operator const Light() const;
  21444. operator const LineEdit() const;
  21445. operator const ListView() const;
  21446. operator const Localization() const;
  21447. operator const Log() const;
  21448. operator const LogicComponent() const;
  21449. operator const Material() const;
  21450. operator const Menu() const;
  21451. operator const MessageBox() const;
  21452. operator const Model() const;
  21453. operator const NamedPipe() const;
  21454. operator const NavArea() const;
  21455. operator const Navigable() const;
  21456. operator const NavigationMesh() const;
  21457. operator const Network() const;
  21458. operator const NetworkPriority() const;
  21459. operator const Node() const;
  21460. operator const Object() const;
  21461. operator const ObjectAnimation() const;
  21462. operator const ObjectFactory() const;
  21463. operator const Obstacle() const;
  21464. operator const OcclusionBuffer() const;
  21465. operator const Octree() const;
  21466. operator const OffMeshConnection() const;
  21467. operator const OggVorbisSoundStream() const;
  21468. operator const PackageFile() const;
  21469. operator const ParticleEffect2D() const;
  21470. operator const ParticleEffect() const;
  21471. operator const ParticleEmitter2D() const;
  21472. operator const ParticleEmitter() const;
  21473. operator const Pass() const;
  21474. operator const PhysicsWorld2D() const;
  21475. operator const PhysicsWorld() const;
  21476. operator const Profiler() const;
  21477. operator const ProgressBar() const;
  21478. operator const PropertySet2D() const;
  21479. operator const RaycastVehicle() const;
  21480. operator const RenderPath() const;
  21481. operator const RenderSurface() const;
  21482. operator const Renderer2D() const;
  21483. operator const Renderer() const;
  21484. operator const Resource() const;
  21485. operator const ResourceCache() const;
  21486. operator const ResourceWithMetadata() const;
  21487. operator const RibbonTrail() const;
  21488. operator const RigidBody2D() const;
  21489. operator const RigidBody() const;
  21490. operator const Scene() const;
  21491. operator const ScriptInstance() const;
  21492. operator const ScrollBar() const;
  21493. operator const ScrollView() const;
  21494. operator const Serializable() const;
  21495. operator const Shader() const;
  21496. operator const ShaderParameterAnimationInfo() const;
  21497. operator const ShaderPrecache() const;
  21498. operator const ShaderVariation() const;
  21499. operator const Skybox() const;
  21500. operator const Slider() const;
  21501. operator const SmoothedTransform() const;
  21502. operator const Sound() const;
  21503. operator const SoundListener() const;
  21504. operator const SoundSource3D() const;
  21505. operator const SoundSource() const;
  21506. operator const SoundStream() const;
  21507. operator const SplinePath() const;
  21508. operator const Sprite2D() const;
  21509. operator const Sprite() const;
  21510. operator const SpriteSheet2D() const;
  21511. operator const StaticModel() const;
  21512. operator const StaticModelGroup() const;
  21513. operator const StaticSprite2D() const;
  21514. operator const StretchableSprite2D() const;
  21515. operator const Technique() const;
  21516. operator const Terrain() const;
  21517. operator const TerrainPatch() const;
  21518. operator const Text3D() const;
  21519. operator const Text() const;
  21520. operator const Texture2D() const;
  21521. operator const Texture2DArray() const;
  21522. operator const Texture3D() const;
  21523. operator const Texture() const;
  21524. operator const TextureCube() const;
  21525. operator const Tile2D() const;
  21526. operator const TileMap2D() const;
  21527. operator const TileMapLayer2D() const;
  21528. operator const TileMapObject2D() const;
  21529. operator const Time() const;
  21530. operator const TmxFile2D() const;
  21531. operator const TmxImageLayer2D() const;
  21532. operator const TmxLayer2D() const;
  21533. operator const TmxObjectGroup2D() const;
  21534. operator const TmxTileLayer2D() const;
  21535. operator const ToolTip() const;
  21536. operator const TriangleMeshData() const;
  21537. operator const UI() const;
  21538. operator const UIComponent() const;
  21539. operator const UIElement() const;
  21540. operator const UISelectable() const;
  21541. operator const UnknownComponent() const;
  21542. operator const ValueAnimation() const;
  21543. operator const ValueAnimationInfo() const;
  21544. operator const VertexBuffer() const;
  21545. operator const View3D() const;
  21546. operator const View() const;
  21547. operator const Viewport() const;
  21548. operator const Window() const;
  21549. operator const WorkQueue() const;
  21550. operator const XMLFile() const;
  21551. operator const Zone() const;
  21552. // Properties:
  21553. /* readonly */
  21554. int refs;
  21555. /* readonly */
  21556. int weakRefs;
  21557. };
  21558. class RemoteEvent
  21559. {
  21560. public:
  21561. ~RemoteEvent();
  21562. RemoteEvent();
  21563. // Methods:
  21564. RemoteEvent& operator=(const RemoteEvent&);
  21565. // Properties:
  21566. VariantMap eventData;
  21567. StringHash eventType;
  21568. bool inOrder;
  21569. uint senderID;
  21570. };
  21571. class RenderPath
  21572. {
  21573. public:
  21574. RenderPath();
  21575. // Methods:
  21576. void AddCommand(const RenderPathCommand&);
  21577. void AddRenderTarget(const RenderTargetInfo&);
  21578. bool Append(XMLFile);
  21579. RenderPath Clone();
  21580. int GetNumCommands() const;
  21581. int GetNumRenderTargets() const;
  21582. void InsertCommand(uint, const RenderPathCommand&);
  21583. bool IsAdded(const String&) const;
  21584. bool IsEnabled(const String&) const;
  21585. bool Load(XMLFile);
  21586. operator RefCounted() const;
  21587. int Refs() const;
  21588. void RemoveCommand(uint);
  21589. void RemoveCommands(const String&);
  21590. void RemoveRenderTarget(const String&);
  21591. void RemoveRenderTarget(uint);
  21592. void RemoveRenderTargets(const String&);
  21593. void SetCommand(uint, const RenderPathCommand&);
  21594. void SetEnabled(const String&, bool);
  21595. void SetRenderTarget(uint, const RenderTargetInfo&);
  21596. void SetShaderParameter(const String&, const Variant&);
  21597. void ToggleEnabled(const String&);
  21598. const Variant& GetShaderParameter(const String&) const;
  21599. int WeakRefs() const;
  21600. operator const RefCounted() const;
  21601. // Properties:
  21602. /* readonly */
  21603. Array<bool> added;
  21604. Array<RenderPathCommand> commands;
  21605. /* readonly */
  21606. Array<bool> enabled;
  21607. /* readonly */
  21608. int numCommands;
  21609. /* readonly */
  21610. int numRenderTargets;
  21611. /* readonly */
  21612. int refs;
  21613. Array<RenderTargetInfo> renderTargets;
  21614. Array<Variant> shaderParameters;
  21615. /* readonly */
  21616. int weakRefs;
  21617. };
  21618. class RenderPathCommand
  21619. {
  21620. public:
  21621. ~RenderPathCommand();
  21622. RenderPathCommand();
  21623. // Methods:
  21624. RenderPathCommand& operator=(const RenderPathCommand&);
  21625. int GetNumOutputs() const;
  21626. CubeMapFace GetOutputFace(int) const;
  21627. void Load(const XMLElement&);
  21628. void RemoveShaderParameter(const String&);
  21629. void SetDepthStencilName(const String&);
  21630. void SetNumOutputs(int);
  21631. void SetOutput(int, const String&, CubeMapFace = FACE_POSITIVE_X);
  21632. void SetOutputFace(int, CubeMapFace);
  21633. void SetOutputName(int, const String&);
  21634. void SetShaderParameter(const String&, const Variant&);
  21635. void SetTextureName(TextureUnit, const String&);
  21636. const String& GetDepthStencilName() const;
  21637. const String& GetOutputName(int) const;
  21638. const String& GetTextureName(TextureUnit) const;
  21639. const Variant& GetShaderParameter(const String&) const;
  21640. // Properties:
  21641. BlendMode blendMode;
  21642. Color clearColor;
  21643. float clearDepth;
  21644. uint clearFlags;
  21645. uint clearStencil;
  21646. String depthStencilName;
  21647. String depthStencilName;
  21648. bool enabled;
  21649. String eventName;
  21650. bool markToStencil;
  21651. String metadata;
  21652. int numOutputs;
  21653. Array<CubeMapFace> outputFaces;
  21654. Array<String> outputNames;
  21655. String pass;
  21656. uint passIndex;
  21657. String pixelShaderDefines;
  21658. String pixelShaderName;
  21659. Array<Variant> shaderParameters;
  21660. RenderCommandSortMode sortMode;
  21661. String tag;
  21662. Array<String> textureNames;
  21663. RenderCommandType type;
  21664. bool useFogColor;
  21665. bool useLitBase;
  21666. bool vertexLights;
  21667. String vertexShaderDefines;
  21668. String vertexShaderName;
  21669. };
  21670. class RenderSurface
  21671. {
  21672. public:
  21673. RenderSurface(Texture&);
  21674. // Methods:
  21675. bool CreateRenderBuffer(uint, uint, uint, int);
  21676. bool GetAutoResolve() const;
  21677. int GetHeight() const;
  21678. RenderSurface GetLinkedDepthStencil() const;
  21679. RenderSurface GetLinkedRenderTarget() const;
  21680. int GetMultiSample() const;
  21681. uint GetNumViewports() const;
  21682. Texture GetParentTexture() const;
  21683. uint GetRenderBuffer() const;
  21684. uint GetTarget() const;
  21685. RenderSurfaceUpdateMode GetUpdateMode() const;
  21686. TextureUsage GetUsage() const;
  21687. Viewport GetViewport(uint) const;
  21688. int GetWidth() const;
  21689. bool IsResolveDirty() const;
  21690. bool IsUpdateQueued() const;
  21691. void OnDeviceLost();
  21692. void QueueUpdate();
  21693. operator RefCounted() const;
  21694. int Refs() const;
  21695. void Release();
  21696. void ResetUpdateQueued();
  21697. void SetLinkedDepthStencil(RenderSurface);
  21698. void SetLinkedRenderTarget(RenderSurface);
  21699. void SetNumViewports(uint);
  21700. void SetResolveDirty(bool);
  21701. void SetUpdateMode(RenderSurfaceUpdateMode);
  21702. void SetViewport(uint, Viewport);
  21703. int WeakRefs() const;
  21704. operator const RefCounted() const;
  21705. // Properties:
  21706. /* readonly */
  21707. int height;
  21708. RenderSurface linkedDepthStencil;
  21709. RenderSurface linkedRenderTarget;
  21710. uint numViewports;
  21711. /* readonly */
  21712. Texture parentTexture;
  21713. /* readonly */
  21714. int refs;
  21715. /* readonly */
  21716. bool resolveDirty;
  21717. RenderSurfaceUpdateMode updateMode;
  21718. /* readonly */
  21719. TextureUsage usage;
  21720. Array<Viewport> viewports;
  21721. /* readonly */
  21722. int weakRefs;
  21723. /* readonly */
  21724. int width;
  21725. };
  21726. class RenderTargetInfo
  21727. {
  21728. public:
  21729. ~RenderTargetInfo();
  21730. RenderTargetInfo();
  21731. // Methods:
  21732. RenderTargetInfo& operator=(const RenderTargetInfo&);
  21733. void Load(const XMLElement&);
  21734. // Properties:
  21735. bool autoResolve;
  21736. bool cubemap;
  21737. bool enabled;
  21738. bool filtered;
  21739. uint format;
  21740. int multiSample;
  21741. String name;
  21742. bool persistent;
  21743. bool sRGB;
  21744. Vector2 size;
  21745. RenderTargetSizeMode sizeMode;
  21746. String tag;
  21747. };
  21748. class Renderer
  21749. {
  21750. public:
  21751. Renderer();
  21752. // Methods:
  21753. void ApplyShadowMapFilter(View, Texture2D, float);
  21754. void DrawDebugGeometry(bool);
  21755. const FrameInfo& GetFrameInfo() const;
  21756. bool GetBlockEvents() const;
  21757. Texture2D GetDefaultLightRamp() const;
  21758. Texture2D GetDefaultLightSpot() const;
  21759. Material GetDefaultMaterial() const;
  21760. RenderPath GetDefaultRenderPath() const;
  21761. Technique GetDefaultTechnique() const;
  21762. Zone GetDefaultZone() const;
  21763. RenderSurface GetDepthStencil(int, int, int, bool);
  21764. bool GetDrawShadows() const;
  21765. bool GetDynamicInstancing() const;
  21766. VariantMap& GetEventDataMap() const;
  21767. Object GetEventSender() const;
  21768. TextureCube GetFaceSelectCubeMap() const;
  21769. bool GetHDRRendering() const;
  21770. TextureCube GetIndirectionCubeMap() const;
  21771. VertexBuffer GetInstancingBuffer() const;
  21772. Geometry GetLightGeometry(Light);
  21773. uint GetMaterialQuality() const;
  21774. int GetMaxOccluderTriangles() const;
  21775. int GetMaxShadowMaps() const;
  21776. int GetMaxSortedInstances() const;
  21777. int GetMinInstances() const;
  21778. float GetMobileNormalOffsetMul() const;
  21779. float GetMobileShadowBiasAdd() const;
  21780. float GetMobileShadowBiasMul() const;
  21781. uint GetNumBatches() const;
  21782. int GetNumExtraInstancingBufferElements() const;
  21783. uint GetNumGeometries(bool = false) const;
  21784. uint GetNumLights(bool = false) const;
  21785. uint GetNumOccluders(bool = false) const;
  21786. uint GetNumPrimitives() const;
  21787. uint GetNumShadowMaps(bool = false) const;
  21788. uint GetNumViewports() const;
  21789. uint GetNumViews() const;
  21790. float GetOccluderSizeThreshold() const;
  21791. OcclusionBuffer GetOcclusionBuffer(Camera);
  21792. int GetOcclusionBufferSize() const;
  21793. View GetPreparedView(Camera);
  21794. Geometry GetQuadGeometry();
  21795. bool GetReuseShadowMaps() const;
  21796. Texture GetScreenBuffer(int, int, uint, int, bool, bool, bool, bool, uint = 0);
  21797. Camera GetShadowCamera();
  21798. Texture2D GetShadowMap(Light, Camera, uint, uint);
  21799. int GetShadowMapSize() const;
  21800. ShadowQuality GetShadowQuality() const;
  21801. float GetShadowSoftness() const;
  21802. bool GetSpecularLighting() const;
  21803. Object GetSubsystem(StringHash) const;
  21804. int GetTextureAnisotropy() const;
  21805. TextureFilterMode GetTextureFilterMode() const;
  21806. uint GetTextureQuality() const;
  21807. bool GetThreadedOcclusion() const;
  21808. StringHash GetType() const;
  21809. int GetVSMMultiSample() const;
  21810. Vector2 GetVSMShadowParameters() const;
  21811. Viewport GetViewport(uint) const;
  21812. Viewport GetViewportForScene(Scene, uint) const;
  21813. bool HasEventHandlers() const;
  21814. bool HasSubscribedToEvent(Object, StringHash) const;
  21815. bool HasSubscribedToEvent(StringHash) const;
  21816. bool IsInstanceOf(StringHash) const;
  21817. operator Object() const;
  21818. void OnEvent(Object, StringHash, VariantMap&);
  21819. void OptimizeLightByScissor(Light, Camera);
  21820. void OptimizeLightByStencil(Light, Camera);
  21821. void QueueRenderSurface(RenderSurface);
  21822. void QueueViewport(RenderSurface, Viewport);
  21823. const Rect& GetLightScissor(Light, Camera);
  21824. operator RefCounted() const;
  21825. int Refs() const;
  21826. void ReloadShaders();
  21827. void Render();
  21828. bool ResizeInstancingBuffer(uint);
  21829. void SendEvent(StringHash);
  21830. void SendEvent(StringHash, VariantMap&);
  21831. void SetBatchShaders(Batch&, Technique, bool, const BatchQueue&);
  21832. void SetBlockEvents(bool);
  21833. void SetCullMode(CullMode, Camera);
  21834. void SetDefaultRenderPath(RenderPath);
  21835. void SetDefaultRenderPath(XMLFile);
  21836. void SetDefaultTechnique(Technique);
  21837. void SetDrawShadows(bool);
  21838. void SetDynamicInstancing(bool);
  21839. void SetGlobalVar(StringHash, const Variant&);
  21840. void SetHDRRendering(bool);
  21841. void SetLightVolumeBatchShaders(Batch&, Camera, const String&, const String&, const String&, const String&);
  21842. void SetMaterialQuality(uint);
  21843. void SetMaxOccluderTriangles(int);
  21844. void SetMaxShadowMaps(int);
  21845. void SetMaxSortedInstances(int);
  21846. void SetMinInstances(int);
  21847. void SetMobileNormalOffsetMul(float);
  21848. void SetMobileShadowBiasAdd(float);
  21849. void SetMobileShadowBiasMul(float);
  21850. void SetNumExtraInstancingBufferElements(int);
  21851. void SetNumViewports(uint);
  21852. void SetOccluderSizeThreshold(float);
  21853. void SetOcclusionBufferSize(int);
  21854. void SetReuseShadowMaps(bool);
  21855. void SetShadowMapSize(int);
  21856. void SetShadowQuality(ShadowQuality);
  21857. void SetShadowSoftness(float);
  21858. void SetSpecularLighting(bool);
  21859. void SetTextureAnisotropy(int);
  21860. void SetTextureFilterMode(TextureFilterMode);
  21861. void SetTextureQuality(uint);
  21862. void SetThreadedOcclusion(bool);
  21863. void SetVSMMultiSample(int);
  21864. void SetVSMShadowParameters(float, float);
  21865. void SetViewport(uint, Viewport);
  21866. void StorePreparedView(View, Camera);
  21867. const String& GetCategory() const;
  21868. const String& GetTypeName() const;
  21869. void UnsubscribeFromAllEvents();
  21870. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  21871. void UnsubscribeFromEvent(Object, StringHash);
  21872. void UnsubscribeFromEvent(StringHash);
  21873. void UnsubscribeFromEvents(Object);
  21874. void Update(float);
  21875. const Variant& GetGlobalVar(StringHash) const;
  21876. const VariantMap& GetGlobalVars() const;
  21877. int WeakRefs() const;
  21878. operator const Object() const;
  21879. operator const RefCounted() const;
  21880. // Properties:
  21881. /* readonly */
  21882. String category;
  21883. /* readonly */
  21884. Texture2D defaultLightRamp;
  21885. /* readonly */
  21886. Texture2D defaultLightSpot;
  21887. /* readonly */
  21888. Material defaultMaterial;
  21889. RenderPath defaultRenderPath;
  21890. Technique defaultTechnique;
  21891. /* readonly */
  21892. Zone defaultZone;
  21893. bool drawShadows;
  21894. bool dynamicInstancing;
  21895. Array<Variant> globalVar;
  21896. /* readonly */
  21897. VariantMap globalVars;
  21898. bool hdrRendering;
  21899. uint materialQuality;
  21900. int maxOccluderTriangles;
  21901. int maxShadowMaps;
  21902. int maxSortedInstances;
  21903. int minInstances;
  21904. float mobileNormalOffsetMul;
  21905. float mobileShadowBiasAdd;
  21906. float mobileShadowBiasMul;
  21907. /* readonly */
  21908. uint numBatches;
  21909. int numExtraInstancingBufferElements;
  21910. /* readonly */
  21911. Array<uint> numGeometries;
  21912. /* readonly */
  21913. Array<uint> numLights;
  21914. /* readonly */
  21915. Array<uint> numOccluders;
  21916. /* readonly */
  21917. uint numPrimitives;
  21918. /* readonly */
  21919. Array<uint> numShadowMaps;
  21920. uint numViewports;
  21921. /* readonly */
  21922. uint numViews;
  21923. float occluderSizeThreshold;
  21924. int occlusionBufferSize;
  21925. /* readonly */
  21926. int refs;
  21927. bool reuseShadowMaps;
  21928. int shadowMapSize;
  21929. ShadowQuality shadowQuality;
  21930. float shadowSoftness;
  21931. bool specularLighting;
  21932. int textureAnisotropy;
  21933. TextureFilterMode textureFilterMode;
  21934. uint textureQuality;
  21935. bool threadedOcclusion;
  21936. /* readonly */
  21937. StringHash type;
  21938. /* readonly */
  21939. String typeName;
  21940. Array<Viewport> viewports;
  21941. int vsmMultiSample;
  21942. Vector2 vsmShadowParameters;
  21943. /* readonly */
  21944. int weakRefs;
  21945. };
  21946. class Renderer2D
  21947. {
  21948. public:
  21949. Renderer2D();
  21950. // Methods:
  21951. void AddDrawable(Drawable2D);
  21952. void AddLight(Light);
  21953. void AddVertexLight(Light);
  21954. void AllocateNetworkState();
  21955. operator Animatable() const;
  21956. void ApplyAttributes();
  21957. const BoundingBox& GetBoundingBox() const;
  21958. const BoundingBox& GetWorldBoundingBox();
  21959. bool CheckVisibility(Drawable2D) const;
  21960. void CleanupConnection(Connection);
  21961. operator Component() const;
  21962. void DrawDebugGeometry(DebugRenderer, bool);
  21963. bool DrawOcclusion(OcclusionBuffer);
  21964. operator Drawable() const;
  21965. bool GetAnimationEnabled() const;
  21966. Variant GetAttribute(const String&) const;
  21967. Variant GetAttribute(uint) const;
  21968. ValueAnimation GetAttributeAnimation(const String&) const;
  21969. float GetAttributeAnimationSpeed(const String&) const;
  21970. float GetAttributeAnimationTime(const String&) const;
  21971. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  21972. Variant GetAttributeDefault(const String&) const;
  21973. Variant GetAttributeDefault(uint) const;
  21974. Array<SourceBatch> GetBatches() const;
  21975. bool GetBlockEvents() const;
  21976. bool GetCastShadows() const;
  21977. Component GetComponent(StringHash) const;
  21978. float GetDistance() const;
  21979. float GetDrawDistance() const;
  21980. uint8 GetDrawableFlags() const;
  21981. VariantMap& GetEventDataMap() const;
  21982. Object GetEventSender() const;
  21983. Light GetFirstLight() const;
  21984. uint GetID() const;
  21985. bool GetInterceptNetworkUpdate(const String&) const;
  21986. uint GetLightMask() const;
  21987. Array<Light> GetLights() const;
  21988. float GetLodBias() const;
  21989. float GetLodDistance() const;
  21990. Geometry GetLodGeometry(uint, uint);
  21991. Material GetMaterial(Texture2D, BlendMode);
  21992. uint GetMaxLights() const;
  21993. float GetMaxZ() const;
  21994. float GetMinZ() const;
  21995. Node GetNode() const;
  21996. uint GetNumAttributes() const;
  21997. uint GetNumNetworkAttributes() const;
  21998. uint GetNumOccluderTriangles();
  21999. ObjectAnimation GetObjectAnimation() const;
  22000. ResourceRef GetObjectAnimationAttr() const;
  22001. Scene GetScene() const;
  22002. float GetShadowDistance() const;
  22003. uint GetShadowMask() const;
  22004. float GetSortValue() const;
  22005. Object GetSubsystem(StringHash) const;
  22006. StringHash GetType() const;
  22007. UpdateGeometryType GetUpdateGeometryType();
  22008. Array<Light> GetVertexLights() const;
  22009. uint GetViewMask() const;
  22010. Zone GetZone() const;
  22011. uint GetZoneMask() const;
  22012. bool HasBasePass(uint) const;
  22013. bool HasEventHandlers() const;
  22014. bool HasSubscribedToEvent(Object, StringHash) const;
  22015. bool HasSubscribedToEvent(StringHash) const;
  22016. bool IsEnabled() const;
  22017. bool IsEnabledEffective() const;
  22018. bool IsInView() const;
  22019. bool IsInView(Camera) const;
  22020. bool IsInView(const FrameInfo&, bool = false) const;
  22021. bool IsInstanceOf(StringHash) const;
  22022. bool IsOccludee() const;
  22023. bool IsOccluder() const;
  22024. bool IsReplicated() const;
  22025. bool IsTemporary() const;
  22026. bool IsZoneDirty() const;
  22027. void LimitLights();
  22028. void LimitVertexLights(bool);
  22029. bool Load(Deserializer&);
  22030. bool LoadJSON(const JSONValue&);
  22031. bool LoadXML(const XMLElement&);
  22032. void MarkForUpdate();
  22033. void MarkInView(const FrameInfo&);
  22034. void MarkInView(int);
  22035. void MarkNetworkUpdate();
  22036. operator Object() const;
  22037. void OnEvent(Object, StringHash, VariantMap&);
  22038. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  22039. void OnSetAttribute(const AttributeInfo&, const Variant&);
  22040. void OnSetEnabled();
  22041. void PrepareNetworkUpdate();
  22042. bool ReadDeltaUpdate(Deserializer&);
  22043. bool ReadLatestDataUpdate(Deserializer&);
  22044. operator RefCounted() const;
  22045. int Refs() const;
  22046. void Remove();
  22047. void RemoveAttributeAnimation(const String&);
  22048. void RemoveDrawable(Drawable2D);
  22049. void RemoveInstanceDefault();
  22050. void RemoveObjectAnimation();
  22051. void ResetToDefault();
  22052. bool Save(Serializer&) const;
  22053. bool SaveDefaultAttributes() const;
  22054. bool SaveJSON(JSONValue&) const;
  22055. bool SaveXML(XMLElement&) const;
  22056. void SendEvent(StringHash);
  22057. void SendEvent(StringHash, VariantMap&);
  22058. operator Serializable() const;
  22059. void SetAnimationEnabled(bool);
  22060. void SetAnimationTime(float);
  22061. bool SetAttribute(const String&, const Variant&);
  22062. bool SetAttribute(uint, const Variant&);
  22063. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  22064. void SetAttributeAnimationSpeed(const String&, float);
  22065. void SetAttributeAnimationTime(const String&, float);
  22066. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  22067. void SetBasePass(uint);
  22068. void SetBlockEvents(bool);
  22069. void SetCastShadows(bool);
  22070. void SetDrawDistance(float);
  22071. void SetEnabled(bool);
  22072. void SetGlobalVar(StringHash, const Variant&);
  22073. void SetInstanceDefault(bool);
  22074. void SetInterceptNetworkUpdate(const String&, bool);
  22075. void SetLightMask(uint);
  22076. void SetLodBias(float);
  22077. void SetMaxLights(uint);
  22078. void SetMinMaxZ(float, float);
  22079. void SetObjectAnimation(ObjectAnimation);
  22080. void SetObjectAnimationAttr(const ResourceRef&);
  22081. void SetOccludee(bool);
  22082. void SetOccluder(bool);
  22083. void SetShadowDistance(float);
  22084. void SetShadowMask(uint);
  22085. void SetSortValue(float);
  22086. void SetTemporary(bool);
  22087. void SetViewMask(uint);
  22088. void SetZone(Zone, bool = false);
  22089. void SetZoneMask(uint);
  22090. const String& GetCategory() const;
  22091. const String& GetTypeName() const;
  22092. void UnsubscribeFromAllEvents();
  22093. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22094. void UnsubscribeFromEvent(Object, StringHash);
  22095. void UnsubscribeFromEvent(StringHash);
  22096. void UnsubscribeFromEvents(Object);
  22097. void Update(const FrameInfo&);
  22098. void UpdateBatches(const FrameInfo&);
  22099. void UpdateGeometry(const FrameInfo&);
  22100. const Variant& GetGlobalVar(StringHash) const;
  22101. const VariantMap& GetGlobalVars() const;
  22102. int WeakRefs() const;
  22103. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  22104. void WriteInitialDeltaUpdate(Serializer&, uint8);
  22105. void WriteLatestDataUpdate(Serializer&, uint8);
  22106. operator const Animatable() const;
  22107. operator const Component() const;
  22108. operator const Drawable() const;
  22109. operator const Object() const;
  22110. operator const RefCounted() const;
  22111. operator const Serializable() const;
  22112. // Properties:
  22113. bool animationEnabled;
  22114. /* readonly */
  22115. Array<Variant> attributeDefaults;
  22116. /* readonly */
  22117. Array<AttributeInfo> attributeInfos;
  22118. Array<Variant> attributes;
  22119. /* readonly */
  22120. BoundingBox boundingBox;
  22121. bool castShadows;
  22122. /* readonly */
  22123. String category;
  22124. float drawDistance;
  22125. bool enabled;
  22126. /* readonly */
  22127. bool enabledEffective;
  22128. Array<Variant> globalVar;
  22129. /* readonly */
  22130. VariantMap globalVars;
  22131. /* readonly */
  22132. uint id;
  22133. /* readonly */
  22134. bool inView;
  22135. uint lightMask;
  22136. float lodBias;
  22137. uint maxLights;
  22138. /* readonly */
  22139. Node node;
  22140. /* readonly */
  22141. uint numAttributes;
  22142. ObjectAnimation objectAnimation;
  22143. bool occludee;
  22144. bool occluder;
  22145. /* readonly */
  22146. int refs;
  22147. /* readonly */
  22148. bool replicated;
  22149. float shadowDistance;
  22150. uint shadowMask;
  22151. bool temporary;
  22152. /* readonly */
  22153. StringHash type;
  22154. /* readonly */
  22155. String typeName;
  22156. uint viewMask;
  22157. /* readonly */
  22158. int weakRefs;
  22159. /* readonly */
  22160. BoundingBox worldBoundingBox;
  22161. /* readonly */
  22162. Zone zone;
  22163. uint zoneMask;
  22164. };
  22165. class ReplicationState
  22166. {
  22167. public:
  22168. ~ReplicationState();
  22169. ReplicationState();
  22170. // Methods:
  22171. ReplicationState& operator=(const ReplicationState&);
  22172. };
  22173. class Resource
  22174. {
  22175. public:
  22176. Resource();
  22177. // Methods:
  22178. operator Animation() const;
  22179. operator AnimationSet2D() const;
  22180. bool BeginLoad(Deserializer&);
  22181. bool EndLoad();
  22182. operator Font() const;
  22183. AsyncLoadState GetAsyncLoadState() const;
  22184. bool GetBlockEvents() const;
  22185. VariantMap& GetEventDataMap() const;
  22186. Object GetEventSender() const;
  22187. uint GetMemoryUse() const;
  22188. StringHash GetNameHash() const;
  22189. Object GetSubsystem(StringHash) const;
  22190. StringHash GetType() const;
  22191. uint GetUseTimer();
  22192. bool HasEventHandlers() const;
  22193. bool HasSubscribedToEvent(Object, StringHash) const;
  22194. bool HasSubscribedToEvent(StringHash) const;
  22195. operator Image() const;
  22196. bool IsInstanceOf(StringHash) const;
  22197. operator JSONFile() const;
  22198. bool Load(Deserializer&);
  22199. bool Load(File);
  22200. bool Load(VectorBuffer&);
  22201. bool Load(const String&);
  22202. bool LoadFile(const String&);
  22203. operator Material() const;
  22204. operator Model() const;
  22205. operator Object() const;
  22206. operator ObjectAnimation() const;
  22207. void OnEvent(Object, StringHash, VariantMap&);
  22208. operator ParticleEffect2D() const;
  22209. operator ParticleEffect() const;
  22210. operator RefCounted() const;
  22211. int Refs() const;
  22212. void ResetUseTimer();
  22213. operator ResourceWithMetadata() const;
  22214. bool Save(File) const;
  22215. bool Save(Serializer&) const;
  22216. bool Save(VectorBuffer&) const;
  22217. bool Save(const String&) const;
  22218. bool SaveFile(const String&) const;
  22219. void SendEvent(StringHash);
  22220. void SendEvent(StringHash, VariantMap&);
  22221. void SetAsyncLoadState(AsyncLoadState);
  22222. void SetBlockEvents(bool);
  22223. void SetGlobalVar(StringHash, const Variant&);
  22224. void SetMemoryUse(uint);
  22225. void SetName(const String&);
  22226. operator Shader() const;
  22227. operator Sound() const;
  22228. operator Sprite2D() const;
  22229. operator SpriteSheet2D() const;
  22230. const String& GetCategory() const;
  22231. const String& GetName() const;
  22232. const String& GetTypeName() const;
  22233. operator Technique() const;
  22234. operator Texture2D() const;
  22235. operator Texture2DArray() const;
  22236. operator Texture3D() const;
  22237. operator Texture() const;
  22238. operator TextureCube() const;
  22239. operator TmxFile2D() const;
  22240. void UnsubscribeFromAllEvents();
  22241. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22242. void UnsubscribeFromEvent(Object, StringHash);
  22243. void UnsubscribeFromEvent(StringHash);
  22244. void UnsubscribeFromEvents(Object);
  22245. operator ValueAnimation() const;
  22246. const Variant& GetGlobalVar(StringHash) const;
  22247. const VariantMap& GetGlobalVars() const;
  22248. int WeakRefs() const;
  22249. operator XMLFile() const;
  22250. operator const Animation() const;
  22251. operator const AnimationSet2D() const;
  22252. operator const Font() const;
  22253. operator const Image() const;
  22254. operator const JSONFile() const;
  22255. operator const Material() const;
  22256. operator const Model() const;
  22257. operator const Object() const;
  22258. operator const ObjectAnimation() const;
  22259. operator const ParticleEffect2D() const;
  22260. operator const ParticleEffect() const;
  22261. operator const RefCounted() const;
  22262. operator const ResourceWithMetadata() const;
  22263. operator const Shader() const;
  22264. operator const Sound() const;
  22265. operator const Sprite2D() const;
  22266. operator const SpriteSheet2D() const;
  22267. operator const Technique() const;
  22268. operator const Texture2D() const;
  22269. operator const Texture2DArray() const;
  22270. operator const Texture3D() const;
  22271. operator const Texture() const;
  22272. operator const TextureCube() const;
  22273. operator const TmxFile2D() const;
  22274. operator const ValueAnimation() const;
  22275. operator const XMLFile() const;
  22276. // Properties:
  22277. /* readonly */
  22278. String category;
  22279. Array<Variant> globalVar;
  22280. /* readonly */
  22281. VariantMap globalVars;
  22282. /* readonly */
  22283. uint memoryUse;
  22284. String name;
  22285. /* readonly */
  22286. int refs;
  22287. /* readonly */
  22288. StringHash type;
  22289. /* readonly */
  22290. String typeName;
  22291. /* readonly */
  22292. uint useTimer;
  22293. /* readonly */
  22294. int weakRefs;
  22295. };
  22296. class ResourceCache
  22297. {
  22298. public:
  22299. ResourceCache();
  22300. // Methods:
  22301. bool AddManualResource(Resource);
  22302. bool AddPackageFile(PackageFile, uint = PRIORITY_LAST);
  22303. bool AddPackageFile(const String&, uint = PRIORITY_LAST);
  22304. bool AddResourceDir(const String&, uint = PRIORITY_LAST);
  22305. bool BackgroundLoadResource(StringHash, const String&, bool = true, Resource = null);
  22306. bool Exists(const String&) const;
  22307. bool GetAutoReloadResources() const;
  22308. bool GetBlockEvents() const;
  22309. VariantMap& GetEventDataMap() const;
  22310. Object GetEventSender() const;
  22311. Resource GetExistingResource(StringHash, const String&);
  22312. File GetFile(const String&, bool = true);
  22313. int GetFinishBackgroundResourcesMs() const;
  22314. uint64 GetMemoryBudget(StringHash) const;
  22315. uint64 GetMemoryUse(StringHash) const;
  22316. uint GetNumBackgroundLoadResources() const;
  22317. Array<PackageFile> GetPackageFiles() const;
  22318. String GetPreferredResourceDir(const String&) const;
  22319. Resource GetResource(StringHash, const String&, bool = true);
  22320. Array<String> GetResourceDirs() const;
  22321. String GetResourceFileName(const String&) const;
  22322. Array<Resource> GetResources(StringHash);
  22323. bool GetReturnFailedResources() const;
  22324. bool GetSearchPackagesFirst() const;
  22325. Object GetSubsystem(StringHash) const;
  22326. Resource GetTempResource(StringHash, const String&, bool = true);
  22327. uint64 GetTotalMemoryUse() const;
  22328. StringHash GetType() const;
  22329. bool HasEventHandlers() const;
  22330. bool HasSubscribedToEvent(Object, StringHash) const;
  22331. bool HasSubscribedToEvent(StringHash) const;
  22332. bool IsInstanceOf(StringHash) const;
  22333. operator Object() const;
  22334. void OnEvent(Object, StringHash, VariantMap&);
  22335. String PrintMemoryUsage() const;
  22336. operator RefCounted() const;
  22337. int Refs() const;
  22338. void ReleaseAllResources(bool = false);
  22339. void ReleaseResource(StringHash, const String&, bool = false);
  22340. void ReleaseResources(StringHash, bool = false);
  22341. void ReleaseResources(StringHash, const String&, bool = false);
  22342. void ReleaseResources(const String&, bool = false);
  22343. bool ReloadResource(Resource);
  22344. void ReloadResourceWithDependencies(const String&);
  22345. void RemovePackageFile(PackageFile, bool = true, bool = false);
  22346. void RemovePackageFile(const String&, bool = true, bool = false);
  22347. void RemoveResourceDir(const String&);
  22348. void ResetDependencies(Resource);
  22349. String SanitateResourceDirName(const String&) const;
  22350. String SanitateResourceName(const String&) const;
  22351. void SendEvent(StringHash);
  22352. void SendEvent(StringHash, VariantMap&);
  22353. void SetAutoReloadResources(bool);
  22354. void SetBlockEvents(bool);
  22355. void SetFinishBackgroundResourcesMs(int);
  22356. void SetGlobalVar(StringHash, const Variant&);
  22357. void SetMemoryBudget(StringHash, uint64);
  22358. void SetReturnFailedResources(bool);
  22359. void SetSearchPackagesFirst(bool);
  22360. void StoreResourceDependency(Resource, const String&);
  22361. const String& GetCategory() const;
  22362. const String& GetTypeName() const;
  22363. void UnsubscribeFromAllEvents();
  22364. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22365. void UnsubscribeFromEvent(Object, StringHash);
  22366. void UnsubscribeFromEvent(StringHash);
  22367. void UnsubscribeFromEvents(Object);
  22368. const Variant& GetGlobalVar(StringHash) const;
  22369. const VariantMap& GetGlobalVars() const;
  22370. int WeakRefs() const;
  22371. operator const Object() const;
  22372. operator const RefCounted() const;
  22373. // Properties:
  22374. bool autoReloadResources;
  22375. /* readonly */
  22376. String category;
  22377. int finishBackgroundResourcesMs;
  22378. Array<Variant> globalVar;
  22379. /* readonly */
  22380. VariantMap globalVars;
  22381. Array<uint64> memoryBudget;
  22382. /* readonly */
  22383. Array<uint64> memoryUse;
  22384. /* readonly */
  22385. uint numBackgroundLoadResources;
  22386. /* readonly */
  22387. Array<PackageFile> packageFiles;
  22388. /* readonly */
  22389. int refs;
  22390. /* readonly */
  22391. Array<String> resourceDirs;
  22392. bool returnFailedResources;
  22393. bool searchPackagesFirst;
  22394. /* readonly */
  22395. uint64 totalMemoryUse;
  22396. /* readonly */
  22397. StringHash type;
  22398. /* readonly */
  22399. String typeName;
  22400. /* readonly */
  22401. int weakRefs;
  22402. };
  22403. class ResourceGroup
  22404. {
  22405. public:
  22406. ~ResourceGroup();
  22407. ResourceGroup();
  22408. // Methods:
  22409. ResourceGroup& operator=(const ResourceGroup&);
  22410. // Properties:
  22411. uint64 memoryBudget;
  22412. uint64 memoryUse;
  22413. };
  22414. class ResourceRef
  22415. {
  22416. public:
  22417. ~ResourceRef();
  22418. ResourceRef();
  22419. ResourceRef(StringHash);
  22420. ResourceRef(StringHash, const String&in);
  22421. ResourceRef(const String&in, const String&in);
  22422. ResourceRef(const ResourceRef&in);
  22423. // Methods:
  22424. ResourceRef& operator=(const ResourceRef&);
  22425. bool operator==(const ResourceRef&) const;
  22426. // Properties:
  22427. String name;
  22428. StringHash type;
  22429. };
  22430. class ResourceRefList
  22431. {
  22432. public:
  22433. ~ResourceRefList();
  22434. ResourceRefList();
  22435. ResourceRefList(StringHash);
  22436. ResourceRefList(StringHash, String[]@);
  22437. // Methods:
  22438. ResourceRefList& operator=(const ResourceRefList&);
  22439. bool operator==(const ResourceRefList&) const;
  22440. void Resize(uint);
  22441. // Properties:
  22442. /* readonly */
  22443. bool empty;
  22444. /* readonly */
  22445. uint length;
  22446. Array<String> names;
  22447. StringHash type;
  22448. };
  22449. class ResourceWithMetadata
  22450. {
  22451. public:
  22452. ResourceWithMetadata();
  22453. // Methods:
  22454. void AddMetadata(const String&, const Variant&);
  22455. operator Animation() const;
  22456. bool BeginLoad(Deserializer&);
  22457. bool EndLoad();
  22458. AsyncLoadState GetAsyncLoadState() const;
  22459. bool GetBlockEvents() const;
  22460. VariantMap& GetEventDataMap() const;
  22461. Object GetEventSender() const;
  22462. uint GetMemoryUse() const;
  22463. StringHash GetNameHash() const;
  22464. Object GetSubsystem(StringHash) const;
  22465. StringHash GetType() const;
  22466. uint GetUseTimer();
  22467. bool HasEventHandlers() const;
  22468. bool HasMetadata() const;
  22469. bool HasSubscribedToEvent(Object, StringHash) const;
  22470. bool HasSubscribedToEvent(StringHash) const;
  22471. bool IsInstanceOf(StringHash) const;
  22472. bool Load(Deserializer&);
  22473. bool Load(File);
  22474. bool Load(VectorBuffer&);
  22475. bool Load(const String&);
  22476. bool LoadFile(const String&);
  22477. operator Model() const;
  22478. operator Object() const;
  22479. void OnEvent(Object, StringHash, VariantMap&);
  22480. operator RefCounted() const;
  22481. int Refs() const;
  22482. void RemoveAllMetadata();
  22483. void RemoveMetadata(const String&);
  22484. void ResetUseTimer();
  22485. operator Resource() const;
  22486. bool Save(File) const;
  22487. bool Save(Serializer&) const;
  22488. bool Save(VectorBuffer&) const;
  22489. bool Save(const String&) const;
  22490. bool SaveFile(const String&) const;
  22491. void SendEvent(StringHash);
  22492. void SendEvent(StringHash, VariantMap&);
  22493. void SetAsyncLoadState(AsyncLoadState);
  22494. void SetBlockEvents(bool);
  22495. void SetGlobalVar(StringHash, const Variant&);
  22496. void SetMemoryUse(uint);
  22497. void SetName(const String&);
  22498. operator Sound() const;
  22499. const String& GetCategory() const;
  22500. const String& GetName() const;
  22501. const String& GetTypeName() const;
  22502. operator Texture2D() const;
  22503. operator Texture2DArray() const;
  22504. operator Texture3D() const;
  22505. operator Texture() const;
  22506. operator TextureCube() const;
  22507. void UnsubscribeFromAllEvents();
  22508. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22509. void UnsubscribeFromEvent(Object, StringHash);
  22510. void UnsubscribeFromEvent(StringHash);
  22511. void UnsubscribeFromEvents(Object);
  22512. const Variant& GetGlobalVar(StringHash) const;
  22513. const Variant& GetMetadata(const String&) const;
  22514. const VariantMap& GetGlobalVars() const;
  22515. int WeakRefs() const;
  22516. operator const Animation() const;
  22517. operator const Model() const;
  22518. operator const Object() const;
  22519. operator const RefCounted() const;
  22520. operator const Resource() const;
  22521. operator const Sound() const;
  22522. operator const Texture2D() const;
  22523. operator const Texture2DArray() const;
  22524. operator const Texture3D() const;
  22525. operator const Texture() const;
  22526. operator const TextureCube() const;
  22527. // Properties:
  22528. /* readonly */
  22529. String category;
  22530. Array<Variant> globalVar;
  22531. /* readonly */
  22532. VariantMap globalVars;
  22533. /* readonly */
  22534. bool hasMetadata;
  22535. /* readonly */
  22536. uint memoryUse;
  22537. Array<Variant> metadata;
  22538. String name;
  22539. /* readonly */
  22540. int refs;
  22541. /* readonly */
  22542. StringHash type;
  22543. /* readonly */
  22544. String typeName;
  22545. /* readonly */
  22546. uint useTimer;
  22547. /* readonly */
  22548. int weakRefs;
  22549. };
  22550. class RibbonTrail
  22551. {
  22552. public:
  22553. RibbonTrail();
  22554. // Methods:
  22555. void AddLight(Light);
  22556. void AddVertexLight(Light);
  22557. void AllocateNetworkState();
  22558. operator Animatable() const;
  22559. void ApplyAttributes();
  22560. const BoundingBox& GetBoundingBox() const;
  22561. const BoundingBox& GetWorldBoundingBox();
  22562. void CleanupConnection(Connection);
  22563. const Color& GetEndColor() const;
  22564. const Color& GetStartColor() const;
  22565. void Commit();
  22566. operator Component() const;
  22567. void DrawDebugGeometry(DebugRenderer, bool);
  22568. bool DrawOcclusion(OcclusionBuffer);
  22569. operator Drawable() const;
  22570. bool GetAnimationEnabled() const;
  22571. float GetAnimationLodBias() const;
  22572. Variant GetAttribute(const String&) const;
  22573. Variant GetAttribute(uint) const;
  22574. ValueAnimation GetAttributeAnimation(const String&) const;
  22575. float GetAttributeAnimationSpeed(const String&) const;
  22576. float GetAttributeAnimationTime(const String&) const;
  22577. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  22578. Variant GetAttributeDefault(const String&) const;
  22579. Variant GetAttributeDefault(uint) const;
  22580. Array<SourceBatch> GetBatches() const;
  22581. bool GetBlockEvents() const;
  22582. bool GetCastShadows() const;
  22583. Component GetComponent(StringHash) const;
  22584. float GetDistance() const;
  22585. float GetDrawDistance() const;
  22586. uint8 GetDrawableFlags() const;
  22587. float GetEndScale() const;
  22588. VariantMap& GetEventDataMap() const;
  22589. Object GetEventSender() const;
  22590. Light GetFirstLight() const;
  22591. uint GetID() const;
  22592. bool GetInterceptNetworkUpdate(const String&) const;
  22593. float GetLifetime() const;
  22594. uint GetLightMask() const;
  22595. Array<Light> GetLights() const;
  22596. float GetLodBias() const;
  22597. float GetLodDistance() const;
  22598. Geometry GetLodGeometry(uint, uint);
  22599. Material GetMaterial() const;
  22600. ResourceRef GetMaterialAttr() const;
  22601. uint GetMaxLights() const;
  22602. float GetMaxZ() const;
  22603. float GetMinZ() const;
  22604. Node GetNode() const;
  22605. uint GetNumAttributes() const;
  22606. uint GetNumNetworkAttributes() const;
  22607. uint GetNumOccluderTriangles();
  22608. ObjectAnimation GetObjectAnimation() const;
  22609. ResourceRef GetObjectAnimationAttr() const;
  22610. Scene GetScene() const;
  22611. float GetShadowDistance() const;
  22612. uint GetShadowMask() const;
  22613. float GetSortValue() const;
  22614. float GetStartScale() const;
  22615. Object GetSubsystem(StringHash) const;
  22616. uint GetTailColumn() const;
  22617. TrailType GetTrailType() const;
  22618. StringHash GetType() const;
  22619. UpdateGeometryType GetUpdateGeometryType();
  22620. bool GetUpdateInvisible() const;
  22621. float GetVertexDistance() const;
  22622. Array<Light> GetVertexLights() const;
  22623. uint GetViewMask() const;
  22624. float GetWidth() const;
  22625. Zone GetZone() const;
  22626. uint GetZoneMask() const;
  22627. bool HasBasePass(uint) const;
  22628. bool HasEventHandlers() const;
  22629. bool HasSubscribedToEvent(Object, StringHash) const;
  22630. bool HasSubscribedToEvent(StringHash) const;
  22631. bool IsEmitting() const;
  22632. bool IsEnabled() const;
  22633. bool IsEnabledEffective() const;
  22634. bool IsInView() const;
  22635. bool IsInView(Camera) const;
  22636. bool IsInView(const FrameInfo&, bool = false) const;
  22637. bool IsInstanceOf(StringHash) const;
  22638. bool IsOccludee() const;
  22639. bool IsOccluder() const;
  22640. bool IsReplicated() const;
  22641. bool IsSorted() const;
  22642. bool IsTemporary() const;
  22643. bool IsZoneDirty() const;
  22644. void LimitLights();
  22645. void LimitVertexLights(bool);
  22646. bool Load(Deserializer&);
  22647. bool LoadJSON(const JSONValue&);
  22648. bool LoadXML(const XMLElement&);
  22649. void MarkForUpdate();
  22650. void MarkInView(const FrameInfo&);
  22651. void MarkInView(int);
  22652. void MarkNetworkUpdate();
  22653. operator Object() const;
  22654. void OnEvent(Object, StringHash, VariantMap&);
  22655. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  22656. void OnSetAttribute(const AttributeInfo&, const Variant&);
  22657. void OnSetEnabled();
  22658. void PrepareNetworkUpdate();
  22659. bool ReadDeltaUpdate(Deserializer&);
  22660. bool ReadLatestDataUpdate(Deserializer&);
  22661. operator RefCounted() const;
  22662. int Refs() const;
  22663. void Remove();
  22664. void RemoveAttributeAnimation(const String&);
  22665. void RemoveInstanceDefault();
  22666. void RemoveObjectAnimation();
  22667. void ResetToDefault();
  22668. bool Save(Serializer&) const;
  22669. bool SaveDefaultAttributes() const;
  22670. bool SaveJSON(JSONValue&) const;
  22671. bool SaveXML(XMLElement&) const;
  22672. void SendEvent(StringHash);
  22673. void SendEvent(StringHash, VariantMap&);
  22674. operator Serializable() const;
  22675. void SetAnimationEnabled(bool);
  22676. void SetAnimationLodBias(float);
  22677. void SetAnimationTime(float);
  22678. bool SetAttribute(const String&, const Variant&);
  22679. bool SetAttribute(uint, const Variant&);
  22680. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  22681. void SetAttributeAnimationSpeed(const String&, float);
  22682. void SetAttributeAnimationTime(const String&, float);
  22683. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  22684. void SetBasePass(uint);
  22685. void SetBaseVelocity(const Vector3&);
  22686. void SetBlockEvents(bool);
  22687. void SetCastShadows(bool);
  22688. void SetDrawDistance(float);
  22689. void SetEmitting(bool);
  22690. void SetEnabled(bool);
  22691. void SetEndColor(const Color&);
  22692. void SetEndScale(float);
  22693. void SetGlobalVar(StringHash, const Variant&);
  22694. void SetInstanceDefault(bool);
  22695. void SetInterceptNetworkUpdate(const String&, bool);
  22696. void SetLifetime(float);
  22697. void SetLightMask(uint);
  22698. void SetLodBias(float);
  22699. void SetMaterial(Material);
  22700. void SetMaterialAttr(const ResourceRef&);
  22701. void SetMaxLights(uint);
  22702. void SetMinMaxZ(float, float);
  22703. void SetObjectAnimation(ObjectAnimation);
  22704. void SetObjectAnimationAttr(const ResourceRef&);
  22705. void SetOccludee(bool);
  22706. void SetOccluder(bool);
  22707. void SetShadowDistance(float);
  22708. void SetShadowMask(uint);
  22709. void SetSortValue(float);
  22710. void SetSorted(bool);
  22711. void SetStartColor(const Color&);
  22712. void SetStartScale(float);
  22713. void SetTailColumn(uint);
  22714. void SetTemporary(bool);
  22715. void SetTrailType(TrailType);
  22716. void SetUpdateInvisible(bool);
  22717. void SetVertexDistance(float);
  22718. void SetViewMask(uint);
  22719. void SetWidth(float);
  22720. void SetZone(Zone, bool = false);
  22721. void SetZoneMask(uint);
  22722. const String& GetCategory() const;
  22723. const String& GetTypeName() const;
  22724. void UnsubscribeFromAllEvents();
  22725. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22726. void UnsubscribeFromEvent(Object, StringHash);
  22727. void UnsubscribeFromEvent(StringHash);
  22728. void UnsubscribeFromEvents(Object);
  22729. void Update(const FrameInfo&);
  22730. void UpdateBatches(const FrameInfo&);
  22731. void UpdateGeometry(const FrameInfo&);
  22732. const Variant& GetGlobalVar(StringHash) const;
  22733. const VariantMap& GetGlobalVars() const;
  22734. const Vector3& GetBaseVelocity() const;
  22735. int WeakRefs() const;
  22736. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  22737. void WriteInitialDeltaUpdate(Serializer&, uint8);
  22738. void WriteLatestDataUpdate(Serializer&, uint8);
  22739. operator const Animatable() const;
  22740. operator const Component() const;
  22741. operator const Drawable() const;
  22742. operator const Object() const;
  22743. operator const RefCounted() const;
  22744. operator const Serializable() const;
  22745. // Properties:
  22746. bool animationEnabled;
  22747. float animationLodBias;
  22748. /* readonly */
  22749. Array<Variant> attributeDefaults;
  22750. /* readonly */
  22751. Array<AttributeInfo> attributeInfos;
  22752. Array<Variant> attributes;
  22753. Vector3 baseVelocity;
  22754. /* readonly */
  22755. BoundingBox boundingBox;
  22756. bool castShadows;
  22757. /* readonly */
  22758. String category;
  22759. float drawDistance;
  22760. bool emitting;
  22761. bool enabled;
  22762. /* readonly */
  22763. bool enabledEffective;
  22764. Color endColor;
  22765. float endScale;
  22766. Array<Variant> globalVar;
  22767. /* readonly */
  22768. VariantMap globalVars;
  22769. /* readonly */
  22770. uint id;
  22771. /* readonly */
  22772. bool inView;
  22773. float lifetime;
  22774. uint lightMask;
  22775. float lodBias;
  22776. Material material;
  22777. uint maxLights;
  22778. /* readonly */
  22779. Node node;
  22780. /* readonly */
  22781. uint numAttributes;
  22782. ObjectAnimation objectAnimation;
  22783. bool occludee;
  22784. bool occluder;
  22785. /* readonly */
  22786. int refs;
  22787. /* readonly */
  22788. bool replicated;
  22789. float shadowDistance;
  22790. uint shadowMask;
  22791. bool sorted;
  22792. Color startColor;
  22793. float startScale;
  22794. uint tailColumn;
  22795. bool temporary;
  22796. TrailType trailType;
  22797. /* readonly */
  22798. StringHash type;
  22799. /* readonly */
  22800. String typeName;
  22801. bool updateInvisible;
  22802. float vertexDistance;
  22803. uint viewMask;
  22804. /* readonly */
  22805. int weakRefs;
  22806. float width;
  22807. /* readonly */
  22808. BoundingBox worldBoundingBox;
  22809. /* readonly */
  22810. Zone zone;
  22811. uint zoneMask;
  22812. };
  22813. class RigidBody
  22814. {
  22815. public:
  22816. RigidBody();
  22817. // Methods:
  22818. void Activate();
  22819. void AddConstraint(Constraint);
  22820. void AllocateNetworkState();
  22821. operator Animatable() const;
  22822. void ApplyAttributes();
  22823. void ApplyForce(const Vector3&);
  22824. void ApplyForce(const Vector3&, const Vector3&);
  22825. void ApplyImpulse(const Vector3&);
  22826. void ApplyImpulse(const Vector3&, const Vector3&);
  22827. void ApplyTorque(const Vector3&);
  22828. void ApplyTorqueImpulse(const Vector3&);
  22829. void ApplyWorldTransform(const Vector3&, const Quaternion&);
  22830. void CleanupConnection(Connection);
  22831. operator Component() const;
  22832. void DisableMassUpdate();
  22833. void DrawDebugGeometry(DebugRenderer, bool);
  22834. void EnableMassUpdate();
  22835. float GetAngularDamping() const;
  22836. Vector3 GetAngularFactor() const;
  22837. float GetAngularRestThreshold() const;
  22838. Vector3 GetAngularVelocity() const;
  22839. bool GetAnimationEnabled() const;
  22840. Vector3 GetAnisotropicFriction() const;
  22841. Variant GetAttribute(const String&) const;
  22842. Variant GetAttribute(uint) const;
  22843. ValueAnimation GetAttributeAnimation(const String&) const;
  22844. float GetAttributeAnimationSpeed(const String&) const;
  22845. float GetAttributeAnimationTime(const String&) const;
  22846. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  22847. Variant GetAttributeDefault(const String&) const;
  22848. Variant GetAttributeDefault(uint) const;
  22849. bool GetBlockEvents() const;
  22850. float GetCcdMotionThreshold() const;
  22851. float GetCcdRadius() const;
  22852. CollisionEventMode GetCollisionEventMode() const;
  22853. uint GetCollisionLayer() const;
  22854. uint GetCollisionMask() const;
  22855. Component GetComponent(StringHash) const;
  22856. float GetContactProcessingThreshold() const;
  22857. VariantMap& GetEventDataMap() const;
  22858. Object GetEventSender() const;
  22859. float GetFriction() const;
  22860. uint GetID() const;
  22861. bool GetInterceptNetworkUpdate(const String&) const;
  22862. float GetLinearDamping() const;
  22863. Vector3 GetLinearFactor() const;
  22864. float GetLinearRestThreshold() const;
  22865. Vector3 GetLinearVelocity() const;
  22866. float GetMass() const;
  22867. Array<uint8> GetNetAngularVelocityAttr() const;
  22868. Node GetNode() const;
  22869. uint GetNumAttributes() const;
  22870. uint GetNumNetworkAttributes() const;
  22871. ObjectAnimation GetObjectAnimation() const;
  22872. ResourceRef GetObjectAnimationAttr() const;
  22873. PhysicsWorld GetPhysicsWorld() const;
  22874. Vector3 GetPosition() const;
  22875. float GetRestitution() const;
  22876. float GetRollingFriction() const;
  22877. Quaternion GetRotation() const;
  22878. Scene GetScene() const;
  22879. Object GetSubsystem(StringHash) const;
  22880. StringHash GetType() const;
  22881. bool GetUseGravity() const;
  22882. Vector3 GetVelocityAtPoint(const Vector3&) const;
  22883. bool HasEventHandlers() const;
  22884. bool HasSubscribedToEvent(Object, StringHash) const;
  22885. bool HasSubscribedToEvent(StringHash) const;
  22886. bool IsActive() const;
  22887. bool IsEnabled() const;
  22888. bool IsEnabledEffective() const;
  22889. bool IsInstanceOf(StringHash) const;
  22890. bool IsKinematic() const;
  22891. bool IsReplicated() const;
  22892. bool IsTemporary() const;
  22893. bool IsTrigger() const;
  22894. bool Load(Deserializer&);
  22895. bool LoadJSON(const JSONValue&);
  22896. bool LoadXML(const XMLElement&);
  22897. void MarkNetworkUpdate();
  22898. operator Object() const;
  22899. void OnEvent(Object, StringHash, VariantMap&);
  22900. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  22901. void OnSetAttribute(const AttributeInfo&, const Variant&);
  22902. void OnSetEnabled();
  22903. void PrepareNetworkUpdate();
  22904. void ReAddBodyToWorld();
  22905. bool ReadDeltaUpdate(Deserializer&);
  22906. bool ReadLatestDataUpdate(Deserializer&);
  22907. operator RefCounted() const;
  22908. int Refs() const;
  22909. void ReleaseBody();
  22910. void Remove();
  22911. void RemoveAttributeAnimation(const String&);
  22912. void RemoveConstraint(Constraint);
  22913. void RemoveInstanceDefault();
  22914. void RemoveObjectAnimation();
  22915. void ResetForces();
  22916. void ResetToDefault();
  22917. bool Save(Serializer&) const;
  22918. bool SaveDefaultAttributes() const;
  22919. bool SaveJSON(JSONValue&) const;
  22920. bool SaveXML(XMLElement&) const;
  22921. void SendEvent(StringHash);
  22922. void SendEvent(StringHash, VariantMap&);
  22923. operator Serializable() const;
  22924. void SetAngularDamping(float);
  22925. void SetAngularFactor(const Vector3&);
  22926. void SetAngularRestThreshold(float);
  22927. void SetAngularVelocity(const Vector3&);
  22928. void SetAnimationEnabled(bool);
  22929. void SetAnimationTime(float);
  22930. void SetAnisotropicFriction(const Vector3&);
  22931. bool SetAttribute(const String&, const Variant&);
  22932. bool SetAttribute(uint, const Variant&);
  22933. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  22934. void SetAttributeAnimationSpeed(const String&, float);
  22935. void SetAttributeAnimationTime(const String&, float);
  22936. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  22937. void SetBlockEvents(bool);
  22938. void SetCcdMotionThreshold(float);
  22939. void SetCcdRadius(float);
  22940. void SetCollisionEventMode(CollisionEventMode);
  22941. void SetCollisionLayer(uint);
  22942. void SetCollisionLayerAndMask(uint, uint);
  22943. void SetCollisionMask(uint);
  22944. void SetContactProcessingThreshold(float);
  22945. void SetEnabled(bool);
  22946. void SetFriction(float);
  22947. void SetGlobalVar(StringHash, const Variant&);
  22948. void SetGravityOverride(const Vector3&);
  22949. void SetInstanceDefault(bool);
  22950. void SetInterceptNetworkUpdate(const String&, bool);
  22951. void SetKinematic(bool);
  22952. void SetLinearDamping(float);
  22953. void SetLinearFactor(const Vector3&);
  22954. void SetLinearRestThreshold(float);
  22955. void SetLinearVelocity(const Vector3&);
  22956. void SetMass(float);
  22957. void SetNetAngularVelocityAttr(Array<uint8>);
  22958. void SetObjectAnimation(ObjectAnimation);
  22959. void SetObjectAnimationAttr(const ResourceRef&);
  22960. void SetPosition(const Vector3&);
  22961. void SetRestitution(float);
  22962. void SetRollingFriction(float);
  22963. void SetRotation(const Quaternion&);
  22964. void SetTemporary(bool);
  22965. void SetTransform(const Vector3&, const Quaternion&);
  22966. void SetTrigger(bool);
  22967. void SetUseGravity(bool);
  22968. const String& GetCategory() const;
  22969. const String& GetTypeName() const;
  22970. void UnsubscribeFromAllEvents();
  22971. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  22972. void UnsubscribeFromEvent(Object, StringHash);
  22973. void UnsubscribeFromEvent(StringHash);
  22974. void UnsubscribeFromEvents(Object);
  22975. void UpdateGravity();
  22976. void UpdateMass();
  22977. const Variant& GetGlobalVar(StringHash) const;
  22978. const VariantMap& GetGlobalVars() const;
  22979. const Vector3& GetCenterOfMass() const;
  22980. const Vector3& GetGravityOverride() const;
  22981. int WeakRefs() const;
  22982. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  22983. void WriteInitialDeltaUpdate(Serializer&, uint8);
  22984. void WriteLatestDataUpdate(Serializer&, uint8);
  22985. operator const Animatable() const;
  22986. operator const Component() const;
  22987. operator const Object() const;
  22988. operator const RefCounted() const;
  22989. operator const Serializable() const;
  22990. // Properties:
  22991. /* readonly */
  22992. bool active;
  22993. float angularDamping;
  22994. Vector3 angularFactor;
  22995. float angularRestThreshold;
  22996. Vector3 angularVelocity;
  22997. bool animationEnabled;
  22998. Vector3 anisotropicFriction;
  22999. /* readonly */
  23000. Array<Variant> attributeDefaults;
  23001. /* readonly */
  23002. Array<AttributeInfo> attributeInfos;
  23003. Array<Variant> attributes;
  23004. /* readonly */
  23005. String category;
  23006. float ccdMotionThreshold;
  23007. float ccdRadius;
  23008. /* readonly */
  23009. Vector3 centerOfMass;
  23010. /* readonly */
  23011. Array<RigidBody> collidingBodies;
  23012. CollisionEventMode collisionEventMode;
  23013. uint collisionLayer;
  23014. uint collisionMask;
  23015. float contactProcessingThreshold;
  23016. bool enabled;
  23017. /* readonly */
  23018. bool enabledEffective;
  23019. float friction;
  23020. Array<Variant> globalVar;
  23021. /* readonly */
  23022. VariantMap globalVars;
  23023. Vector3 gravityOverride;
  23024. /* readonly */
  23025. uint id;
  23026. bool kinematic;
  23027. float linearDamping;
  23028. Vector3 linearFactor;
  23029. float linearRestThreshold;
  23030. Vector3 linearVelocity;
  23031. float mass;
  23032. /* readonly */
  23033. Node node;
  23034. /* readonly */
  23035. uint numAttributes;
  23036. ObjectAnimation objectAnimation;
  23037. Vector3 position;
  23038. /* readonly */
  23039. int refs;
  23040. /* readonly */
  23041. bool replicated;
  23042. float restitution;
  23043. float rollingFriction;
  23044. Quaternion rotation;
  23045. bool temporary;
  23046. bool trigger;
  23047. /* readonly */
  23048. StringHash type;
  23049. /* readonly */
  23050. String typeName;
  23051. bool useGravity;
  23052. /* readonly */
  23053. int weakRefs;
  23054. };
  23055. class RigidBody2D
  23056. {
  23057. public:
  23058. RigidBody2D();
  23059. // Methods:
  23060. void AddCollisionShape2D(CollisionShape2D);
  23061. void AddConstraint2D(Constraint2D);
  23062. void AllocateNetworkState();
  23063. operator Animatable() const;
  23064. void ApplyAngularImpulse(float, bool);
  23065. void ApplyAttributes();
  23066. void ApplyForce(const Vector2&, const Vector2&, bool);
  23067. void ApplyForceToCenter(const Vector2&, bool);
  23068. void ApplyLinearImpulse(const Vector2&, const Vector2&, bool);
  23069. void ApplyLinearImpulseToCenter(const Vector2&, bool);
  23070. void ApplyTorque(float, bool);
  23071. void ApplyWorldTransform();
  23072. void ApplyWorldTransform(const Vector3&, const Quaternion&);
  23073. void CleanupConnection(Connection);
  23074. operator Component() const;
  23075. void CreateBody();
  23076. void DrawDebugGeometry(DebugRenderer, bool);
  23077. float GetAngularDamping() const;
  23078. float GetAngularVelocity() const;
  23079. bool GetAnimationEnabled() const;
  23080. Variant GetAttribute(const String&) const;
  23081. Variant GetAttribute(uint) const;
  23082. ValueAnimation GetAttributeAnimation(const String&) const;
  23083. float GetAttributeAnimationSpeed(const String&) const;
  23084. float GetAttributeAnimationTime(const String&) const;
  23085. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23086. Variant GetAttributeDefault(const String&) const;
  23087. Variant GetAttributeDefault(uint) const;
  23088. bool GetBlockEvents() const;
  23089. BodyType2D GetBodyType() const;
  23090. Component GetComponent(StringHash) const;
  23091. VariantMap& GetEventDataMap() const;
  23092. Object GetEventSender() const;
  23093. float GetGravityScale() const;
  23094. uint GetID() const;
  23095. float GetInertia() const;
  23096. bool GetInterceptNetworkUpdate(const String&) const;
  23097. float GetLinearDamping() const;
  23098. Vector2 GetLinearVelocity() const;
  23099. float GetMass() const;
  23100. Vector2 GetMassCenter() const;
  23101. Node GetNode() const;
  23102. uint GetNumAttributes() const;
  23103. uint GetNumNetworkAttributes() const;
  23104. ObjectAnimation GetObjectAnimation() const;
  23105. ResourceRef GetObjectAnimationAttr() const;
  23106. Scene GetScene() const;
  23107. Object GetSubsystem(StringHash) const;
  23108. StringHash GetType() const;
  23109. bool GetUseFixtureMass() const;
  23110. bool HasEventHandlers() const;
  23111. bool HasSubscribedToEvent(Object, StringHash) const;
  23112. bool HasSubscribedToEvent(StringHash) const;
  23113. bool IsAllowSleep() const;
  23114. bool IsAwake() const;
  23115. bool IsBullet() const;
  23116. bool IsEnabled() const;
  23117. bool IsEnabledEffective() const;
  23118. bool IsFixedRotation() const;
  23119. bool IsInstanceOf(StringHash) const;
  23120. bool IsReplicated() const;
  23121. bool IsTemporary() const;
  23122. bool Load(Deserializer&);
  23123. bool LoadJSON(const JSONValue&);
  23124. bool LoadXML(const XMLElement&);
  23125. void MarkNetworkUpdate();
  23126. operator Object() const;
  23127. void OnEvent(Object, StringHash, VariantMap&);
  23128. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  23129. void OnSetAttribute(const AttributeInfo&, const Variant&);
  23130. void OnSetEnabled();
  23131. void PrepareNetworkUpdate();
  23132. bool ReadDeltaUpdate(Deserializer&);
  23133. bool ReadLatestDataUpdate(Deserializer&);
  23134. operator RefCounted() const;
  23135. int Refs() const;
  23136. void ReleaseBody();
  23137. void Remove();
  23138. void RemoveAttributeAnimation(const String&);
  23139. void RemoveCollisionShape2D(CollisionShape2D);
  23140. void RemoveConstraint2D(Constraint2D);
  23141. void RemoveInstanceDefault();
  23142. void RemoveObjectAnimation();
  23143. void ResetToDefault();
  23144. bool Save(Serializer&) const;
  23145. bool SaveDefaultAttributes() const;
  23146. bool SaveJSON(JSONValue&) const;
  23147. bool SaveXML(XMLElement&) const;
  23148. void SendEvent(StringHash);
  23149. void SendEvent(StringHash, VariantMap&);
  23150. operator Serializable() const;
  23151. void SetAllowSleep(bool);
  23152. void SetAngularDamping(float);
  23153. void SetAngularVelocity(float);
  23154. void SetAnimationEnabled(bool);
  23155. void SetAnimationTime(float);
  23156. bool SetAttribute(const String&, const Variant&);
  23157. bool SetAttribute(uint, const Variant&);
  23158. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23159. void SetAttributeAnimationSpeed(const String&, float);
  23160. void SetAttributeAnimationTime(const String&, float);
  23161. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23162. void SetAwake(bool);
  23163. void SetBlockEvents(bool);
  23164. void SetBodyType(BodyType2D);
  23165. void SetBullet(bool);
  23166. void SetEnabled(bool);
  23167. void SetFixedRotation(bool);
  23168. void SetGlobalVar(StringHash, const Variant&);
  23169. void SetGravityScale(float);
  23170. void SetInertia(float);
  23171. void SetInstanceDefault(bool);
  23172. void SetInterceptNetworkUpdate(const String&, bool);
  23173. void SetLinearDamping(float);
  23174. void SetLinearVelocity(const Vector2&);
  23175. void SetMass(float);
  23176. void SetMassCenter(const Vector2&);
  23177. void SetObjectAnimation(ObjectAnimation);
  23178. void SetObjectAnimationAttr(const ResourceRef&);
  23179. void SetTemporary(bool);
  23180. void SetUseFixtureMass(bool);
  23181. const String& GetCategory() const;
  23182. const String& GetTypeName() const;
  23183. void UnsubscribeFromAllEvents();
  23184. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23185. void UnsubscribeFromEvent(Object, StringHash);
  23186. void UnsubscribeFromEvent(StringHash);
  23187. void UnsubscribeFromEvents(Object);
  23188. const Variant& GetGlobalVar(StringHash) const;
  23189. const VariantMap& GetGlobalVars() const;
  23190. int WeakRefs() const;
  23191. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23192. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23193. void WriteLatestDataUpdate(Serializer&, uint8);
  23194. operator const Animatable() const;
  23195. operator const Component() const;
  23196. operator const Object() const;
  23197. operator const RefCounted() const;
  23198. operator const Serializable() const;
  23199. // Properties:
  23200. bool allowSleep;
  23201. float angularDamping;
  23202. bool animationEnabled;
  23203. /* readonly */
  23204. Array<Variant> attributeDefaults;
  23205. /* readonly */
  23206. Array<AttributeInfo> attributeInfos;
  23207. Array<Variant> attributes;
  23208. bool awake;
  23209. BodyType2D bodyType;
  23210. bool bullet;
  23211. /* readonly */
  23212. String category;
  23213. bool enabled;
  23214. /* readonly */
  23215. bool enabledEffective;
  23216. bool fixedRotation;
  23217. Array<Variant> globalVar;
  23218. /* readonly */
  23219. VariantMap globalVars;
  23220. float gravityScale;
  23221. /* readonly */
  23222. uint id;
  23223. float inertia;
  23224. float linearDamping;
  23225. Vector2 linearVelocity;
  23226. float mass;
  23227. Vector2 massCenter;
  23228. /* readonly */
  23229. Node node;
  23230. /* readonly */
  23231. uint numAttributes;
  23232. ObjectAnimation objectAnimation;
  23233. /* readonly */
  23234. int refs;
  23235. /* readonly */
  23236. bool replicated;
  23237. bool temporary;
  23238. /* readonly */
  23239. StringHash type;
  23240. /* readonly */
  23241. String typeName;
  23242. bool useFixtureMass;
  23243. /* readonly */
  23244. int weakRefs;
  23245. };
  23246. class Scene
  23247. {
  23248. public:
  23249. Scene();
  23250. Scene(const String&in);
  23251. // Methods:
  23252. void AddChild(Node, int = ENDPOS);
  23253. void AddComponent(Component, uint, CreateMode);
  23254. void AddListener(Component);
  23255. void AddRequiredPackageFile(PackageFile);
  23256. void AddTag(const String&);
  23257. void AddTags(Array<String>);
  23258. void AddTags(const String&, int8 = ';');
  23259. void AllocateNetworkState();
  23260. operator Animatable() const;
  23261. void ApplyAttributes();
  23262. void BeginThreadedUpdate();
  23263. void CleanupConnection(Connection);
  23264. void Clear(bool = true, bool = true);
  23265. void ClearRequiredPackageFiles();
  23266. Node Clone(CreateMode = REPLICATED);
  23267. Component CloneComponent(Component, CreateMode, uint = 0);
  23268. Component CloneComponent(Component, uint = 0);
  23269. void ComponentAdded(Component);
  23270. void ComponentRemoved(Component);
  23271. Node CreateChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0, bool = false);
  23272. Node CreateChild(uint, CreateMode, bool = false);
  23273. Component CreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  23274. ScriptObject CreateScriptObject(ScriptFile, const String&, CreateMode mode = REPLICATED);
  23275. ScriptObject CreateScriptObject(const String&, const String&, CreateMode mode = REPLICATED);
  23276. Node CreateTemporaryChild(const String& = String :: EMPTY, CreateMode = REPLICATED, uint = 0);
  23277. void DelayedMarkedDirty(Component);
  23278. void EndThreadedUpdate();
  23279. bool GetAnimationEnabled() const;
  23280. LoadMode GetAsyncLoadMode() const;
  23281. int GetAsyncLoadingMs() const;
  23282. float GetAsyncProgress() const;
  23283. Variant GetAttribute(const String&) const;
  23284. Variant GetAttribute(uint) const;
  23285. ValueAnimation GetAttributeAnimation(const String&) const;
  23286. float GetAttributeAnimationSpeed(const String&) const;
  23287. float GetAttributeAnimationTime(const String&) const;
  23288. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23289. Variant GetAttributeDefault(const String&) const;
  23290. Variant GetAttributeDefault(uint) const;
  23291. bool GetBlockEvents() const;
  23292. uint GetChecksum() const;
  23293. Node GetChild(StringHash, bool = false) const;
  23294. Node GetChild(const String&, bool = false) const;
  23295. Node GetChild(int) const;
  23296. Array<Node> GetChildren() const;
  23297. Array<Node> GetChildren(bool) const;
  23298. Array<Node> GetChildrenWithComponent(StringHash, bool = false) const;
  23299. Array<Node> GetChildrenWithScript(bool = false) const;
  23300. Array<Node> GetChildrenWithScript(const String&, bool = false) const;
  23301. Array<Node> GetChildrenWithTag(const String&, bool = false) const;
  23302. Component GetComponent(StringHash, bool = false) const;
  23303. Component GetComponent(uint) const;
  23304. Array<Component> GetComponents() const;
  23305. Array<Component> GetComponents(const String&, bool = false) const;
  23306. Array<Node> GetDependencyNodes() const;
  23307. Vector3 GetDirection() const;
  23308. float GetElapsedTime() const;
  23309. VariantMap& GetEventDataMap() const;
  23310. Object GetEventSender() const;
  23311. uint GetFreeComponentID(CreateMode);
  23312. uint GetFreeNodeID(CreateMode);
  23313. uint GetID() const;
  23314. bool GetInterceptNetworkUpdate(const String&) const;
  23315. StringHash GetNameHash() const;
  23316. Array<uint8> GetNetParentAttr() const;
  23317. Array<uint8> GetNetRotationAttr() const;
  23318. Node GetNode(uint) const;
  23319. Array<Node> GetNodesWithTag(const String&) const;
  23320. uint GetNumAttributes() const;
  23321. int GetNumChildren(bool = false) const;
  23322. int GetNumComponents() const;
  23323. uint GetNumNetworkAttributes() const;
  23324. int GetNumNetworkComponents() const;
  23325. int GetNumPersistentChildren() const;
  23326. int GetNumPersistentComponents() const;
  23327. ObjectAnimation GetObjectAnimation() const;
  23328. ResourceRef GetObjectAnimationAttr() const;
  23329. Component GetOrCreateComponent(StringHash, CreateMode = REPLICATED, uint = 0);
  23330. Connection GetOwner() const;
  23331. Node GetParent() const;
  23332. Component GetParentComponent(StringHash, bool = false) const;
  23333. Vector2 GetPosition2D() const;
  23334. Array<PackageFile> GetRequiredPackageFiles() const;
  23335. Vector3 GetRight() const;
  23336. float GetRotation2D() const;
  23337. Vector2 GetScale2D() const;
  23338. Scene GetScene() const;
  23339. ScriptObject GetScriptObject() const;
  23340. ScriptObject GetScriptObject(const String&) const;
  23341. Vector3 GetSignedWorldScale() const;
  23342. float GetSmoothingConstant() const;
  23343. float GetSnapThreshold() const;
  23344. Object GetSubsystem(StringHash) const;
  23345. Array<String> GetTags() const;
  23346. float GetTimeScale() const;
  23347. Matrix3x4 GetTransform() const;
  23348. StringHash GetType() const;
  23349. Vector3 GetUp() const;
  23350. String GetVarNamesAttr() const;
  23351. Vector3 GetWorldDirection() const;
  23352. Vector3 GetWorldPosition() const;
  23353. Vector2 GetWorldPosition2D() const;
  23354. Vector3 GetWorldRight() const;
  23355. Quaternion GetWorldRotation() const;
  23356. float GetWorldRotation2D() const;
  23357. Vector3 GetWorldScale() const;
  23358. Vector2 GetWorldScale2D() const;
  23359. Vector3 GetWorldUp() const;
  23360. bool HasComponent(StringHash) const;
  23361. bool HasEventHandlers() const;
  23362. bool HasSubscribedToEvent(Object, StringHash) const;
  23363. bool HasSubscribedToEvent(StringHash) const;
  23364. bool HasTag(const String&) const;
  23365. Node Instantiate(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23366. Node Instantiate(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23367. Node Instantiate(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23368. Node InstantiateJSON(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23369. Node InstantiateJSON(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23370. Node InstantiateJSON(JSONFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23371. Node InstantiateJSON(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23372. Node InstantiateJSON(const JSONValue&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23373. Node InstantiateXML(Deserializer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23374. Node InstantiateXML(File, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23375. Node InstantiateXML(VectorBuffer&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23376. Node InstantiateXML(XMLFile, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23377. Node InstantiateXML(const XMLElement&, const Vector3&, const Quaternion&, CreateMode = REPLICATED);
  23378. bool IsAsyncLoading() const;
  23379. bool IsChildOf(Node) const;
  23380. bool IsDirty() const;
  23381. bool IsEnabled() const;
  23382. bool IsEnabledSelf() const;
  23383. bool IsInstanceOf(StringHash) const;
  23384. bool IsReplicated() const;
  23385. bool IsTemporary() const;
  23386. bool IsThreadedUpdate() const;
  23387. bool IsUpdateEnabled() const;
  23388. bool Load(Deserializer&);
  23389. bool LoadAsync(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23390. bool LoadAsyncJSON(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23391. bool LoadAsyncXML(File, LoadMode = LOAD_SCENE_AND_RESOURCES);
  23392. bool LoadJSON(Deserializer&);
  23393. bool LoadJSON(File);
  23394. bool LoadJSON(VectorBuffer&);
  23395. bool LoadJSON(const JSONValue&);
  23396. bool LoadXML(Deserializer&);
  23397. bool LoadXML(File);
  23398. bool LoadXML(VectorBuffer&);
  23399. bool LoadXML(const XMLElement&);
  23400. Vector3 LocalToWorld(const Vector3&) const;
  23401. Vector3 LocalToWorld(const Vector4&) const;
  23402. Vector2 LocalToWorld2D(const Vector2&) const;
  23403. bool LookAt(const Vector3&, const Vector3& = Vector3 :: UP, TransformSpace = TS_WORLD);
  23404. void MarkDirty();
  23405. void MarkNetworkUpdate();
  23406. void MarkNetworkUpdate(Component);
  23407. void MarkNetworkUpdate(Node);
  23408. void MarkReplicationDirty(Node);
  23409. const Matrix3x4& GetWorldTransform() const;
  23410. operator Node() const;
  23411. void NodeAdded(Node);
  23412. void NodeRemoved(Node);
  23413. void NodeTagAdded(Node, const String&);
  23414. void NodeTagRemoved(Node, const String&);
  23415. operator Object() const;
  23416. void OnEvent(Object, StringHash, VariantMap&);
  23417. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  23418. void OnSetAttribute(const AttributeInfo&, const Variant&);
  23419. void Pitch(float, TransformSpace = TS_LOCAL);
  23420. void PrepareNetworkUpdate();
  23421. const Quaternion& GetRotation() const;
  23422. bool ReadDeltaUpdate(Deserializer&);
  23423. bool ReadLatestDataUpdate(Deserializer&);
  23424. operator RefCounted() const;
  23425. int Refs() const;
  23426. void RegisterVar(const String&);
  23427. void Remove();
  23428. void RemoveAllChildren();
  23429. void RemoveAllComponents();
  23430. void RemoveAllTags();
  23431. void RemoveAttributeAnimation(const String&);
  23432. void RemoveChild(Node);
  23433. void RemoveChildren(bool, bool, bool);
  23434. void RemoveComponent(Component);
  23435. void RemoveComponent(StringHash);
  23436. void RemoveComponents(StringHash);
  23437. void RemoveComponents(bool, bool);
  23438. void RemoveInstanceDefault();
  23439. void RemoveListener(Component);
  23440. void RemoveObjectAnimation();
  23441. bool RemoveTag(const String&);
  23442. void ReorderComponent(Component, int);
  23443. void ResetDeepEnabled();
  23444. void ResetScene();
  23445. void ResetToDefault();
  23446. void Roll(float, TransformSpace = TS_LOCAL);
  23447. void Rotate(const Quaternion&, TransformSpace = TS_LOCAL);
  23448. void Rotate2D(float, TransformSpace = TS_LOCAL);
  23449. void RotateAround(const Vector3&, const Quaternion&, TransformSpace = TS_LOCAL);
  23450. void RotateAround2D(const Vector2&, float, TransformSpace = TS_LOCAL);
  23451. bool Save(Serializer&) const;
  23452. bool SaveDefaultAttributes() const;
  23453. bool SaveJSON(File);
  23454. bool SaveJSON(JSONValue&) const;
  23455. bool SaveJSON(Serializer&, const String& = "\t") const;
  23456. bool SaveJSON(VectorBuffer&);
  23457. bool SaveXML(File, const String& = "\t");
  23458. bool SaveXML(Serializer&, const String& = "\t") const;
  23459. bool SaveXML(VectorBuffer&, const String& = "\t");
  23460. bool SaveXML(XMLElement&) const;
  23461. void Scale(const Vector3&);
  23462. void Scale(float);
  23463. void Scale2D(const Vector2&);
  23464. void SendEvent(StringHash);
  23465. void SendEvent(StringHash, VariantMap&);
  23466. operator Serializable() const;
  23467. void SetAnimationEnabled(bool);
  23468. void SetAnimationTime(float);
  23469. void SetAsyncLoadingMs(int);
  23470. bool SetAttribute(const String&, const Variant&);
  23471. bool SetAttribute(uint, const Variant&);
  23472. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23473. void SetAttributeAnimationSpeed(const String&, float);
  23474. void SetAttributeAnimationTime(const String&, float);
  23475. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23476. void SetBlockEvents(bool);
  23477. void SetDeepEnabled(bool);
  23478. void SetDirection(const Vector3&);
  23479. void SetElapsedTime(float);
  23480. void SetEnabled(bool);
  23481. void SetEnabledRecursive(bool);
  23482. void SetGlobalVar(StringHash, const Variant&);
  23483. void SetID(uint);
  23484. void SetInstanceDefault(bool);
  23485. void SetInterceptNetworkUpdate(const String&, bool);
  23486. void SetName(const String&);
  23487. void SetNetParentAttr(Array<uint8>);
  23488. void SetNetPositionAttr(const Vector3&);
  23489. void SetNetRotationAttr(Array<uint8>);
  23490. void SetObjectAnimation(ObjectAnimation);
  23491. void SetObjectAnimationAttr(const ResourceRef&);
  23492. void SetOwner(Connection);
  23493. void SetParent(Node);
  23494. void SetPosition(const Vector3&);
  23495. void SetPosition2D(const Vector2&);
  23496. void SetPosition2D(float, float);
  23497. void SetPositionSilent(const Vector3&);
  23498. void SetRotation(const Quaternion&);
  23499. void SetRotation2D(float);
  23500. void SetRotationSilent(const Quaternion&);
  23501. void SetScale(const Vector3&);
  23502. void SetScale(float);
  23503. void SetScale2D(const Vector2&);
  23504. void SetScale2D(float, float);
  23505. void SetScaleSilent(const Vector3&);
  23506. void SetScene(Scene);
  23507. void SetSmoothingConstant(float);
  23508. void SetSnapThreshold(float);
  23509. void SetTags(Array<String>);
  23510. void SetTemporary(bool);
  23511. void SetTimeScale(float);
  23512. void SetTransform(const Matrix3x4&);
  23513. void SetTransform(const Vector3&, const Quaternion&);
  23514. void SetTransform(const Vector3&, const Quaternion&, const Vector3&);
  23515. void SetTransform(const Vector3&, const Quaternion&, float);
  23516. void SetTransform2D(const Vector2&, float);
  23517. void SetTransform2D(const Vector2&, float, const Vector2&);
  23518. void SetTransform2D(const Vector2&, float, float);
  23519. void SetTransformSilent(const Vector3&, const Quaternion&, const Vector3&);
  23520. void SetUpdateEnabled(bool);
  23521. void SetVar(StringHash, const Variant&);
  23522. void SetVarNamesAttr(const String&);
  23523. void SetWorldDirection(const Vector3&);
  23524. void SetWorldPosition(const Vector3&);
  23525. void SetWorldPosition2D(const Vector2&);
  23526. void SetWorldPosition2D(float, float);
  23527. void SetWorldRotation(const Quaternion&);
  23528. void SetWorldRotation2D(float);
  23529. void SetWorldScale(const Vector3&);
  23530. void SetWorldScale(float);
  23531. void SetWorldScale2D(const Vector2&);
  23532. void SetWorldScale2D(float, float);
  23533. void SetWorldTransform(const Matrix3x4&);
  23534. void SetWorldTransform(const Vector3&, const Quaternion&);
  23535. void SetWorldTransform(const Vector3&, const Quaternion&, const Vector3&);
  23536. void SetWorldTransform(const Vector3&, const Quaternion&, float);
  23537. void SetWorldTransform2D(const Vector2&, float);
  23538. void SetWorldTransform2D(const Vector2&, float, const Vector2&);
  23539. void SetWorldTransform2D(const Vector2&, float, float);
  23540. void StopAsyncLoading();
  23541. const String& GetCategory() const;
  23542. const String& GetFileName() const;
  23543. const String& GetName() const;
  23544. const String& GetTypeName() const;
  23545. const String& GetVarName(StringHash) const;
  23546. void Translate(const Vector3&, TransformSpace = TS_LOCAL);
  23547. void Translate2D(const Vector2&, TransformSpace = TS_LOCAL);
  23548. void UnregisterAllVars();
  23549. void UnregisterVar(const String&);
  23550. void UnsubscribeFromAllEvents();
  23551. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23552. void UnsubscribeFromEvent(Object, StringHash);
  23553. void UnsubscribeFromEvent(StringHash);
  23554. void UnsubscribeFromEvents(Object);
  23555. void Update(float);
  23556. const Variant& GetGlobalVar(StringHash) const;
  23557. const Variant& GetVar(StringHash) const;
  23558. const VariantMap& GetGlobalVars() const;
  23559. const VariantMap& GetVars() const;
  23560. const Vector3& GetNetPositionAttr() const;
  23561. const Vector3& GetPosition() const;
  23562. const Vector3& GetScale() const;
  23563. int WeakRefs() const;
  23564. Vector3 WorldToLocal(const Vector3&) const;
  23565. Vector3 WorldToLocal(const Vector4&) const;
  23566. Vector2 WorldToLocal2D(const Vector2&) const;
  23567. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23568. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23569. void WriteLatestDataUpdate(Serializer&, uint8);
  23570. void Yaw(float, TransformSpace = TS_LOCAL);
  23571. operator const Animatable() const;
  23572. operator const Node() const;
  23573. operator const Object() const;
  23574. operator const RefCounted() const;
  23575. operator const Serializable() const;
  23576. // Properties:
  23577. /* readonly */
  23578. Array<Node> allChildrenByName;
  23579. bool animationEnabled;
  23580. /* readonly */
  23581. LoadMode asyncLoadMode;
  23582. /* readonly */
  23583. bool asyncLoading;
  23584. int asyncLoadingMs;
  23585. /* readonly */
  23586. float asyncProgress;
  23587. /* readonly */
  23588. Array<Variant> attributeDefaults;
  23589. /* readonly */
  23590. Array<AttributeInfo> attributeInfos;
  23591. Array<Variant> attributes;
  23592. /* readonly */
  23593. String category;
  23594. /* readonly */
  23595. uint checksum;
  23596. /* readonly */
  23597. Array<Node> children;
  23598. /* readonly */
  23599. Array<Node> childrenByName;
  23600. /* readonly */
  23601. Array<Component> components;
  23602. /* readonly */
  23603. DebugRenderer debugRenderer;
  23604. Vector3 direction;
  23605. float elapsedTime;
  23606. bool enabled;
  23607. /* readonly */
  23608. bool enabledSelf;
  23609. /* readonly */
  23610. String fileName;
  23611. Array<Variant> globalVar;
  23612. /* readonly */
  23613. VariantMap globalVars;
  23614. uint id;
  23615. String name;
  23616. /* readonly */
  23617. uint numAllChildren;
  23618. /* readonly */
  23619. uint numAttributes;
  23620. /* readonly */
  23621. uint numChildren;
  23622. /* readonly */
  23623. int numComponents;
  23624. ObjectAnimation objectAnimation;
  23625. /* readonly */
  23626. Octree octree;
  23627. Connection owner;
  23628. Node parent;
  23629. /* readonly */
  23630. PhysicsWorld physicsWorld;
  23631. /* readonly */
  23632. PhysicsWorld2D physicsWorld2D;
  23633. Vector3 position;
  23634. Vector2 position2D;
  23635. /* readonly */
  23636. int refs;
  23637. /* readonly */
  23638. bool replicated;
  23639. /* readonly */
  23640. Array<PackageFile> requiredPackageFiles;
  23641. /* readonly */
  23642. Vector3 right;
  23643. Quaternion rotation;
  23644. float rotation2D;
  23645. Vector3 scale;
  23646. Vector2 scale2D;
  23647. /* readonly */
  23648. Scene scene;
  23649. /* readonly */
  23650. ScriptObject scriptObject;
  23651. /* readonly */
  23652. Vector3 signedWorldScale;
  23653. float smoothingConstant;
  23654. float snapThreshold;
  23655. /* readonly */
  23656. Array<String> tags;
  23657. bool temporary;
  23658. float timeScale;
  23659. /* readonly */
  23660. Matrix3x4 transform;
  23661. /* readonly */
  23662. StringHash type;
  23663. /* readonly */
  23664. String typeName;
  23665. /* readonly */
  23666. Vector3 up;
  23667. bool updateEnabled;
  23668. /* readonly */
  23669. VariantMap vars;
  23670. /* readonly */
  23671. int weakRefs;
  23672. Vector3 worldDirection;
  23673. Vector3 worldPosition;
  23674. Vector2 worldPosition2D;
  23675. /* readonly */
  23676. Vector3 worldRight;
  23677. Quaternion worldRotation;
  23678. float worldRotation2D;
  23679. Vector3 worldScale;
  23680. Vector2 worldScale2D;
  23681. /* readonly */
  23682. Matrix3x4 worldTransform;
  23683. /* readonly */
  23684. Vector3 worldUp;
  23685. };
  23686. class ScenePassInfo
  23687. {
  23688. public:
  23689. ~ScenePassInfo();
  23690. ScenePassInfo();
  23691. // Methods:
  23692. ScenePassInfo& operator=(const ScenePassInfo&);
  23693. // Properties:
  23694. bool allowInstancing;
  23695. bool markToStencil;
  23696. uint passIndex;
  23697. bool vertexLights;
  23698. };
  23699. class SceneReplicationState
  23700. {
  23701. public:
  23702. ~SceneReplicationState();
  23703. SceneReplicationState();
  23704. // Methods:
  23705. SceneReplicationState& operator=(const SceneReplicationState&);
  23706. void Clear();
  23707. };
  23708. class SceneResolver
  23709. {
  23710. public:
  23711. ~SceneResolver();
  23712. SceneResolver();
  23713. // Methods:
  23714. SceneResolver& operator=(const SceneResolver&);
  23715. void AddComponent(uint, Component);
  23716. void AddNode(uint, Node);
  23717. void Reset();
  23718. void Resolve();
  23719. };
  23720. class ScratchBuffer
  23721. {
  23722. public:
  23723. ~ScratchBuffer();
  23724. ScratchBuffer();
  23725. // Methods:
  23726. ScratchBuffer& operator=(const ScratchBuffer&);
  23727. // Properties:
  23728. bool reserved;
  23729. int size;
  23730. };
  23731. class ScreenModeParams
  23732. {
  23733. public:
  23734. ~ScreenModeParams();
  23735. ScreenModeParams();
  23736. // Methods:
  23737. ScreenModeParams& operator=(const ScreenModeParams&);
  23738. bool operator==(const ScreenModeParams&) const;
  23739. bool EqualsExceptVSync(const ScreenModeParams&) const;
  23740. // Properties:
  23741. bool borderless;
  23742. bool fullscreen;
  23743. bool highDPI;
  23744. int monitor;
  23745. int multiSample;
  23746. int refreshRate;
  23747. bool resizable;
  23748. bool tripleBuffer;
  23749. bool vsync;
  23750. };
  23751. class Script
  23752. {
  23753. public:
  23754. Script();
  23755. // Methods:
  23756. void DumpAPI(DumpMode mode = DOXYGEN, const String& sourceTree = String ( ));
  23757. bool Execute(const String&);
  23758. bool GetBlockEvents() const;
  23759. VariantMap& GetEventDataMap() const;
  23760. Object GetEventSender() const;
  23761. Object GetSubsystem(StringHash) const;
  23762. StringHash GetType() const;
  23763. bool HasEventHandlers() const;
  23764. bool HasSubscribedToEvent(Object, StringHash) const;
  23765. bool HasSubscribedToEvent(StringHash) const;
  23766. bool IsInstanceOf(StringHash) const;
  23767. void OnEvent(Object, StringHash, VariantMap&);
  23768. int Refs() const;
  23769. void SendEvent(StringHash);
  23770. void SendEvent(StringHash, VariantMap&);
  23771. void SetBlockEvents(bool);
  23772. void SetGlobalVar(StringHash, const Variant&);
  23773. const String& GetCategory() const;
  23774. const String& GetTypeName() const;
  23775. void UnsubscribeFromAllEvents();
  23776. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23777. void UnsubscribeFromEvent(Object, StringHash);
  23778. void UnsubscribeFromEvent(StringHash);
  23779. void UnsubscribeFromEvents(Object);
  23780. const Variant& GetGlobalVar(StringHash) const;
  23781. const VariantMap& GetGlobalVars() const;
  23782. int WeakRefs() const;
  23783. // Properties:
  23784. /* readonly */
  23785. String category;
  23786. Scene defaultScene;
  23787. ScriptFile defaultScriptFile;
  23788. bool executeConsoleCommands;
  23789. Array<Variant> globalVar;
  23790. /* readonly */
  23791. VariantMap globalVars;
  23792. /* readonly */
  23793. int refs;
  23794. /* readonly */
  23795. StringHash type;
  23796. /* readonly */
  23797. String typeName;
  23798. /* readonly */
  23799. int weakRefs;
  23800. };
  23801. class ScriptFile
  23802. {
  23803. public:
  23804. ScriptFile();
  23805. // Methods:
  23806. bool BeginLoad(Deserializer&);
  23807. void ClearDelayedExecute(const String& declaration = String ( ));
  23808. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  23809. bool EndLoad();
  23810. bool Execute(const String&, const Array<Variant> params = null);
  23811. AsyncLoadState GetAsyncLoadState() const;
  23812. bool GetBlockEvents() const;
  23813. VariantMap& GetEventDataMap() const;
  23814. Object GetEventSender() const;
  23815. uint GetMemoryUse() const;
  23816. StringHash GetNameHash() const;
  23817. Object GetSubsystem(StringHash) const;
  23818. StringHash GetType() const;
  23819. uint GetUseTimer();
  23820. bool HasEventHandlers() const;
  23821. bool HasSubscribedToEvent(Object, StringHash) const;
  23822. bool HasSubscribedToEvent(StringHash) const;
  23823. bool IsInstanceOf(StringHash) const;
  23824. bool Load(Deserializer&);
  23825. bool Load(File);
  23826. bool Load(VectorBuffer&);
  23827. bool Load(const String&);
  23828. bool LoadFile(const String&);
  23829. void OnEvent(Object, StringHash, VariantMap&);
  23830. int Refs() const;
  23831. void ResetUseTimer();
  23832. bool Save(File) const;
  23833. bool Save(Serializer&) const;
  23834. bool Save(VectorBuffer&) const;
  23835. bool Save(const String&) const;
  23836. bool SaveFile(const String&) const;
  23837. void SendEvent(StringHash);
  23838. void SendEvent(StringHash, VariantMap&);
  23839. void SetAsyncLoadState(AsyncLoadState);
  23840. void SetBlockEvents(bool);
  23841. void SetGlobalVar(StringHash, const Variant&);
  23842. void SetMemoryUse(uint);
  23843. void SetName(const String&);
  23844. const String& GetCategory() const;
  23845. const String& GetName() const;
  23846. const String& GetTypeName() const;
  23847. void UnsubscribeFromAllEvents();
  23848. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23849. void UnsubscribeFromEvent(Object, StringHash);
  23850. void UnsubscribeFromEvent(StringHash);
  23851. void UnsubscribeFromEvents(Object);
  23852. const Variant& GetGlobalVar(StringHash) const;
  23853. const VariantMap& GetGlobalVars() const;
  23854. int WeakRefs() const;
  23855. // Properties:
  23856. /* readonly */
  23857. String category;
  23858. /* readonly */
  23859. bool compiled;
  23860. Array<Variant> globalVar;
  23861. /* readonly */
  23862. VariantMap globalVars;
  23863. /* readonly */
  23864. uint memoryUse;
  23865. String name;
  23866. /* readonly */
  23867. int refs;
  23868. /* readonly */
  23869. StringHash type;
  23870. /* readonly */
  23871. String typeName;
  23872. /* readonly */
  23873. uint useTimer;
  23874. /* readonly */
  23875. int weakRefs;
  23876. };
  23877. class ScriptInstance
  23878. {
  23879. public:
  23880. ScriptInstance();
  23881. // Methods:
  23882. void AllocateNetworkState();
  23883. operator Animatable() const;
  23884. void ApplyAttributes();
  23885. void CleanupConnection(Connection);
  23886. void ClearDelayedExecute(const String& declaration = String ( ));
  23887. operator Component() const;
  23888. bool CreateObject(ScriptFile, const String&);
  23889. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  23890. bool Execute(const String&, const Array<Variant> params = null);
  23891. bool GetAnimationEnabled() const;
  23892. Variant GetAttribute(const String&) const;
  23893. Variant GetAttribute(uint) const;
  23894. ValueAnimation GetAttributeAnimation(const String&) const;
  23895. float GetAttributeAnimationSpeed(const String&) const;
  23896. float GetAttributeAnimationTime(const String&) const;
  23897. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  23898. Variant GetAttributeDefault(const String&) const;
  23899. Variant GetAttributeDefault(uint) const;
  23900. bool GetBlockEvents() const;
  23901. Component GetComponent(StringHash) const;
  23902. VariantMap& GetEventDataMap() const;
  23903. Object GetEventSender() const;
  23904. uint GetID() const;
  23905. bool GetInterceptNetworkUpdate(const String&) const;
  23906. Node GetNode() const;
  23907. uint GetNumAttributes() const;
  23908. uint GetNumNetworkAttributes() const;
  23909. ObjectAnimation GetObjectAnimation() const;
  23910. ResourceRef GetObjectAnimationAttr() const;
  23911. Scene GetScene() const;
  23912. Object GetSubsystem(StringHash) const;
  23913. StringHash GetType() const;
  23914. bool HasEventHandlers() const;
  23915. bool HasMethod(const String& declaration) const;
  23916. bool HasSubscribedToEvent(Object, StringHash) const;
  23917. bool HasSubscribedToEvent(StringHash) const;
  23918. bool IsA(const String& declaration) const;
  23919. bool IsEnabled() const;
  23920. bool IsEnabledEffective() const;
  23921. bool IsInstanceOf(StringHash) const;
  23922. bool IsReplicated() const;
  23923. bool IsTemporary() const;
  23924. bool Load(Deserializer&);
  23925. bool LoadJSON(const JSONValue&);
  23926. bool LoadXML(const XMLElement&);
  23927. void MarkNetworkUpdate();
  23928. operator Object() const;
  23929. void OnEvent(Object, StringHash, VariantMap&);
  23930. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  23931. void OnSetAttribute(const AttributeInfo&, const Variant&);
  23932. void OnSetEnabled();
  23933. void PrepareNetworkUpdate();
  23934. bool ReadDeltaUpdate(Deserializer&);
  23935. bool ReadLatestDataUpdate(Deserializer&);
  23936. operator RefCounted() const;
  23937. int Refs() const;
  23938. void Remove();
  23939. void RemoveAttributeAnimation(const String&);
  23940. void RemoveInstanceDefault();
  23941. void RemoveObjectAnimation();
  23942. void ResetToDefault();
  23943. bool Save(Serializer&) const;
  23944. bool SaveDefaultAttributes() const;
  23945. bool SaveJSON(JSONValue&) const;
  23946. bool SaveXML(XMLElement&) const;
  23947. void SendEvent(StringHash);
  23948. void SendEvent(StringHash, VariantMap&);
  23949. operator Serializable() const;
  23950. void SetAnimationEnabled(bool);
  23951. void SetAnimationTime(float);
  23952. bool SetAttribute(const String&, const Variant&);
  23953. bool SetAttribute(uint, const Variant&);
  23954. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  23955. void SetAttributeAnimationSpeed(const String&, float);
  23956. void SetAttributeAnimationTime(const String&, float);
  23957. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  23958. void SetBlockEvents(bool);
  23959. void SetEnabled(bool);
  23960. void SetGlobalVar(StringHash, const Variant&);
  23961. void SetInstanceDefault(bool);
  23962. void SetInterceptNetworkUpdate(const String&, bool);
  23963. void SetObjectAnimation(ObjectAnimation);
  23964. void SetObjectAnimationAttr(const ResourceRef&);
  23965. void SetTemporary(bool);
  23966. const String& GetCategory() const;
  23967. const String& GetTypeName() const;
  23968. void UnsubscribeFromAllEvents();
  23969. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  23970. void UnsubscribeFromEvent(Object, StringHash);
  23971. void UnsubscribeFromEvent(StringHash);
  23972. void UnsubscribeFromEvents(Object);
  23973. const Variant& GetGlobalVar(StringHash) const;
  23974. const VariantMap& GetGlobalVars() const;
  23975. int WeakRefs() const;
  23976. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  23977. void WriteInitialDeltaUpdate(Serializer&, uint8);
  23978. void WriteLatestDataUpdate(Serializer&, uint8);
  23979. operator const Animatable() const;
  23980. operator const Component() const;
  23981. operator const Object() const;
  23982. operator const RefCounted() const;
  23983. operator const Serializable() const;
  23984. // Properties:
  23985. bool animationEnabled;
  23986. /* readonly */
  23987. Array<Variant> attributeDefaults;
  23988. /* readonly */
  23989. Array<AttributeInfo> attributeInfos;
  23990. Array<Variant> attributes;
  23991. /* readonly */
  23992. String category;
  23993. String className;
  23994. bool enabled;
  23995. /* readonly */
  23996. bool enabledEffective;
  23997. Array<Variant> globalVar;
  23998. /* readonly */
  23999. VariantMap globalVars;
  24000. /* readonly */
  24001. uint id;
  24002. /* readonly */
  24003. Node node;
  24004. /* readonly */
  24005. uint numAttributes;
  24006. ObjectAnimation objectAnimation;
  24007. /* readonly */
  24008. int refs;
  24009. /* readonly */
  24010. bool replicated;
  24011. ScriptFile scriptFile;
  24012. /* readonly */
  24013. ScriptObject scriptObject;
  24014. bool temporary;
  24015. /* readonly */
  24016. StringHash type;
  24017. /* readonly */
  24018. String typeName;
  24019. /* readonly */
  24020. int weakRefs;
  24021. };
  24022. class ScriptObject
  24023. {
  24024. public:
  24025. };
  24026. class ScrollBar
  24027. {
  24028. public:
  24029. ScrollBar();
  24030. // Methods:
  24031. void AddChild(UIElement);
  24032. void AddTag(const String&);
  24033. void AddTags(Array<String>);
  24034. void AddTags(const String&, int8 = ';');
  24035. void AdjustScissor(IntRect&);
  24036. void AllocateNetworkState();
  24037. operator Animatable() const;
  24038. void ApplyAttributes();
  24039. operator BorderImage() const;
  24040. void BringToFront();
  24041. void ChangeValue(float);
  24042. const Color& GetColor(Corner) const;
  24043. const Color& GetColorAttr() const;
  24044. const Color& GetDerivedColor() const;
  24045. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  24046. void DisableLayoutUpdate();
  24047. IntVector2 ElementToScreen(const IntVector2&);
  24048. void EnableLayoutUpdate();
  24049. bool FilterAttributes(XMLElement&) const;
  24050. int FindChild(UIElement) const;
  24051. bool GetAnimationEnabled() const;
  24052. Variant GetAttribute(const String&) const;
  24053. Variant GetAttribute(uint) const;
  24054. ValueAnimation GetAttributeAnimation(const String&) const;
  24055. float GetAttributeAnimationSpeed(const String&) const;
  24056. float GetAttributeAnimationTime(const String&) const;
  24057. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  24058. Variant GetAttributeDefault(const String&) const;
  24059. Variant GetAttributeDefault(uint) const;
  24060. Button GetBackButton() const;
  24061. BlendMode GetBlendMode() const;
  24062. bool GetBlockEvents() const;
  24063. bool GetBringToBack() const;
  24064. bool GetBringToFront() const;
  24065. UIElement GetChild(const String&, bool = false) const;
  24066. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  24067. UIElement GetChild(int) const;
  24068. Array<UIElement> GetChildren() const;
  24069. Array<UIElement> GetChildren(bool) const;
  24070. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  24071. bool GetClipChildren() const;
  24072. IntRect GetCombinedScreenRect();
  24073. XMLFile GetDefaultStyle(bool = true) const;
  24074. float GetDerivedOpacity() const;
  24075. uint GetDragButtonCombo() const;
  24076. int GetDragButtonCount() const;
  24077. uint GetDragDropMode() const;
  24078. IntVector2 GetEffectiveMinSize() const;
  24079. float GetEffectiveScrollStep() const;
  24080. UIElement GetElementEventSender() const;
  24081. bool GetEnableAnchor() const;
  24082. VariantMap& GetEventDataMap() const;
  24083. Object GetEventSender() const;
  24084. FocusMode GetFocusMode() const;
  24085. Button GetForwardButton() const;
  24086. int GetHeight() const;
  24087. HorizontalAlignment GetHorizontalAlignment() const;
  24088. int GetIndent() const;
  24089. int GetIndentSpacing() const;
  24090. int GetIndentWidth() const;
  24091. bool GetInterceptNetworkUpdate(const String&) const;
  24092. int GetLayoutElementMaxSize() const;
  24093. LayoutMode GetLayoutMode() const;
  24094. int GetLayoutSpacing() const;
  24095. Material GetMaterial() const;
  24096. ResourceRef GetMaterialAttr() const;
  24097. int GetMaxHeight() const;
  24098. int GetMaxWidth() const;
  24099. int GetMinHeight() const;
  24100. int GetMinWidth() const;
  24101. uint GetNumAttributes() const;
  24102. int GetNumChildren(bool = false) const;
  24103. uint GetNumNetworkAttributes() const;
  24104. ObjectAnimation GetObjectAnimation() const;
  24105. ResourceRef GetObjectAnimationAttr() const;
  24106. float GetOpacity() const;
  24107. Orientation GetOrientation() const;
  24108. UIElement GetParent() const;
  24109. int GetPriority() const;
  24110. float GetRange() const;
  24111. UIElement GetRoot() const;
  24112. float GetScrollStep() const;
  24113. Slider GetSlider() const;
  24114. bool GetSortChildren() const;
  24115. float GetStepFactor() const;
  24116. Object GetSubsystem(StringHash) const;
  24117. Array<String> GetTags() const;
  24118. Texture GetTexture() const;
  24119. ResourceRef GetTextureAttr() const;
  24120. TraversalMode GetTraversalMode() const;
  24121. StringHash GetType() const;
  24122. bool GetUseDerivedOpacity() const;
  24123. float GetValue() const;
  24124. VerticalAlignment GetVerticalAlignment() const;
  24125. int GetWidth() const;
  24126. bool HasColorGradient() const;
  24127. bool HasEventHandlers() const;
  24128. bool HasFocus() const;
  24129. bool HasSubscribedToEvent(Object, StringHash) const;
  24130. bool HasSubscribedToEvent(StringHash) const;
  24131. bool HasTag(const String&) const;
  24132. void InsertChild(int, UIElement);
  24133. const IntRect& GetBorder() const;
  24134. const IntRect& GetClipBorder() const;
  24135. const IntRect& GetImageBorder() const;
  24136. const IntRect& GetImageRect() const;
  24137. const IntRect& GetLayoutBorder() const;
  24138. const IntVector2& GetChildOffset() const;
  24139. const IntVector2& GetDisabledOffset() const;
  24140. const IntVector2& GetHoverOffset() const;
  24141. const IntVector2& GetMaxOffset() const;
  24142. const IntVector2& GetMaxSize() const;
  24143. const IntVector2& GetMinOffset() const;
  24144. const IntVector2& GetMinSize() const;
  24145. const IntVector2& GetPosition() const;
  24146. const IntVector2& GetScreenPosition() const;
  24147. const IntVector2& GetSize() const;
  24148. bool IsChildOf(UIElement) const;
  24149. bool IsEditable() const;
  24150. bool IsElementEventSender() const;
  24151. bool IsEnabled() const;
  24152. bool IsEnabledSelf() const;
  24153. bool IsFixedHeight() const;
  24154. bool IsFixedSize() const;
  24155. bool IsFixedWidth() const;
  24156. bool IsHovering() const;
  24157. bool IsInside(IntVector2, bool);
  24158. bool IsInsideCombined(IntVector2, bool);
  24159. bool IsInstanceOf(StringHash) const;
  24160. bool IsInternal() const;
  24161. bool IsSelected() const;
  24162. bool IsTemporary() const;
  24163. bool IsTiled() const;
  24164. bool IsVisible() const;
  24165. bool IsVisibleEffective() const;
  24166. bool IsWheelHandler() const;
  24167. bool IsWithinScissor(const IntRect&);
  24168. bool Load(Deserializer&);
  24169. UIElement LoadChildXML(XMLFile, XMLFile);
  24170. UIElement LoadChildXML(const XMLElement&, XMLFile);
  24171. bool LoadJSON(const JSONValue&);
  24172. bool LoadXML(Deserializer&);
  24173. bool LoadXML(File);
  24174. bool LoadXML(VectorBuffer&);
  24175. bool LoadXML(XMLFile, XMLFile);
  24176. bool LoadXML(const XMLElement&);
  24177. bool LoadXML(const XMLElement&, XMLFile);
  24178. void MarkNetworkUpdate();
  24179. operator Object() const;
  24180. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24181. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  24182. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24183. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24184. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24185. bool OnDragDropFinish(UIElement);
  24186. bool OnDragDropTest(UIElement);
  24187. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24188. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24189. void OnEvent(Object, StringHash, VariantMap&);
  24190. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  24191. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24192. void OnIndentSet();
  24193. void OnKey(uint, uint, uint);
  24194. void OnPositionSet(const IntVector2&);
  24195. void OnResize(const IntVector2&, const IntVector2&);
  24196. void OnSetAttribute(const AttributeInfo&, const Variant&);
  24197. void OnSetEditable();
  24198. void OnTextInput(const String&);
  24199. void OnWheel(int, uint, uint);
  24200. bool ReadDeltaUpdate(Deserializer&);
  24201. bool ReadLatestDataUpdate(Deserializer&);
  24202. operator RefCounted() const;
  24203. int Refs() const;
  24204. void Remove();
  24205. void RemoveAllChildren();
  24206. void RemoveAllTags();
  24207. void RemoveAttributeAnimation(const String&);
  24208. void RemoveChild(UIElement, int = 0);
  24209. void RemoveChild(uint);
  24210. void RemoveChildAtIndex(int);
  24211. void RemoveInstanceDefault();
  24212. void RemoveObjectAnimation();
  24213. bool RemoveTag(const String&);
  24214. void ResetDeepEnabled();
  24215. void ResetToDefault();
  24216. bool Save(Serializer&) const;
  24217. bool SaveDefaultAttributes() const;
  24218. bool SaveJSON(JSONValue&) const;
  24219. bool SaveXML(File, const String& indentation = "\t");
  24220. bool SaveXML(Serializer&, const String& = "\t") const;
  24221. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  24222. bool SaveXML(XMLElement&) const;
  24223. IntVector2 ScreenToElement(const IntVector2&);
  24224. void SendEvent(StringHash);
  24225. void SendEvent(StringHash, VariantMap&);
  24226. operator Serializable() const;
  24227. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  24228. void SetAnimationEnabled(bool);
  24229. void SetAnimationTime(float);
  24230. bool SetAttribute(const String&, const Variant&);
  24231. bool SetAttribute(uint, const Variant&);
  24232. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  24233. void SetAttributeAnimationSpeed(const String&, float);
  24234. void SetAttributeAnimationTime(const String&, float);
  24235. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  24236. void SetBlendMode(BlendMode);
  24237. void SetBlockEvents(bool);
  24238. void SetBorder(const IntRect&);
  24239. void SetBringToBack(bool);
  24240. void SetBringToFront(bool);
  24241. void SetChildOffset(const IntVector2&);
  24242. void SetClipBorder(const IntRect&);
  24243. void SetClipChildren(bool);
  24244. void SetColor(Corner, const Color&);
  24245. void SetColor(const Color&);
  24246. void SetDeepEnabled(bool);
  24247. void SetDefaultStyle(XMLFile);
  24248. void SetDisabledOffset(const IntVector2&);
  24249. void SetDisabledOffset(int, int);
  24250. void SetDragDropMode(uint);
  24251. void SetEditable(bool);
  24252. void SetElementEventSender(bool);
  24253. void SetEnableAnchor(bool);
  24254. void SetEnabled(bool);
  24255. void SetEnabledRecursive(bool);
  24256. void SetFixedHeight(int);
  24257. void SetFixedSize(const IntVector2&);
  24258. void SetFixedSize(int, int);
  24259. void SetFixedWidth(int);
  24260. void SetFocus(bool);
  24261. void SetFocusMode(FocusMode);
  24262. void SetFullImageRect();
  24263. void SetGlobalVar(StringHash, const Variant&);
  24264. void SetHeight(int);
  24265. void SetHorizontalAlignment(HorizontalAlignment);
  24266. void SetHoverOffset(const IntVector2&);
  24267. void SetHoverOffset(int, int);
  24268. void SetHovering(bool);
  24269. void SetImageBorder(const IntRect&);
  24270. void SetImageRect(const IntRect&);
  24271. void SetIndent(int);
  24272. void SetIndentSpacing(int);
  24273. void SetInstanceDefault(bool);
  24274. void SetInterceptNetworkUpdate(const String&, bool);
  24275. void SetInternal(bool);
  24276. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  24277. void SetLayoutBorder(const IntRect&);
  24278. void SetLayoutFlexScale(const Vector2&);
  24279. void SetLayoutMode(LayoutMode);
  24280. void SetLayoutSpacing(int);
  24281. void SetMaterial(Material);
  24282. void SetMaterialAttr(const ResourceRef&);
  24283. void SetMaxAnchor(const Vector2&);
  24284. void SetMaxAnchor(float, float);
  24285. void SetMaxHeight(int);
  24286. void SetMaxOffset(const IntVector2&);
  24287. void SetMaxSize(const IntVector2&);
  24288. void SetMaxSize(int, int);
  24289. void SetMaxWidth(int);
  24290. void SetMinAnchor(const Vector2&);
  24291. void SetMinAnchor(float, float);
  24292. void SetMinHeight(int);
  24293. void SetMinOffset(const IntVector2&);
  24294. void SetMinSize(const IntVector2&);
  24295. void SetMinSize(int, int);
  24296. void SetMinWidth(int);
  24297. void SetName(const String&);
  24298. void SetObjectAnimation(ObjectAnimation);
  24299. void SetObjectAnimationAttr(const ResourceRef&);
  24300. void SetOpacity(float);
  24301. void SetOrientation(Orientation);
  24302. void SetParent(UIElement, int = ENDPOS);
  24303. void SetPivot(const Vector2&);
  24304. void SetPivot(float, float);
  24305. void SetPosition(const IntVector2&);
  24306. void SetPosition(int, int);
  24307. void SetPriority(int);
  24308. void SetRange(float);
  24309. void SetRenderTexture(Texture2D);
  24310. void SetScrollStep(float);
  24311. void SetSelected(bool);
  24312. void SetSize(const IntVector2&);
  24313. void SetSize(int, int);
  24314. void SetSortChildren(bool);
  24315. void SetStepFactor(float);
  24316. bool SetStyle(const String&, XMLFile = null);
  24317. bool SetStyle(const XMLElement&);
  24318. bool SetStyleAuto(XMLFile = null);
  24319. void SetTags(Array<String>);
  24320. void SetTemporary(bool);
  24321. void SetTexture(Texture);
  24322. void SetTextureAttr(const ResourceRef&);
  24323. void SetTiled(bool);
  24324. void SetTraversalMode(TraversalMode);
  24325. void SetUseDerivedOpacity(bool);
  24326. void SetValue(float);
  24327. void SetVar(StringHash, const Variant&);
  24328. void SetVerticalAlignment(VerticalAlignment);
  24329. void SetVisible(bool);
  24330. void SetWidth(int);
  24331. void SortChildren();
  24332. void StepBack();
  24333. void StepForward();
  24334. const String& GetAppliedStyle() const;
  24335. const String& GetCategory() const;
  24336. const String& GetName() const;
  24337. const String& GetTypeName() const;
  24338. operator UIElement() const;
  24339. void UnsubscribeFromAllEvents();
  24340. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  24341. void UnsubscribeFromEvent(Object, StringHash);
  24342. void UnsubscribeFromEvent(StringHash);
  24343. void UnsubscribeFromEvents(Object);
  24344. void Update(float);
  24345. void UpdateLayout();
  24346. const Variant& GetGlobalVar(StringHash) const;
  24347. const Variant& GetVar(const StringHash&) const;
  24348. const VariantMap& GetGlobalVars() const;
  24349. const VariantMap& GetVars() const;
  24350. const Vector2& GetLayoutFlexScale() const;
  24351. const Vector2& GetMaxAnchor() const;
  24352. const Vector2& GetMinAnchor() const;
  24353. const Vector2& GetPivot() const;
  24354. int WeakRefs() const;
  24355. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  24356. void WriteInitialDeltaUpdate(Serializer&, uint8);
  24357. void WriteLatestDataUpdate(Serializer&, uint8);
  24358. operator const Animatable() const;
  24359. operator const BorderImage() const;
  24360. operator const Object() const;
  24361. operator const RefCounted() const;
  24362. operator const Serializable() const;
  24363. operator const UIElement() const;
  24364. // Properties:
  24365. bool animationEnabled;
  24366. /* readonly */
  24367. Array<Variant> attributeDefaults;
  24368. /* readonly */
  24369. Array<AttributeInfo> attributeInfos;
  24370. Array<Variant> attributes;
  24371. /* readonly */
  24372. Button backButton;
  24373. BlendMode blendMode;
  24374. IntRect border;
  24375. bool bringToBack;
  24376. bool bringToFront;
  24377. /* readonly */
  24378. String category;
  24379. /* readonly */
  24380. IntVector2 childOffset;
  24381. /* readonly */
  24382. Array<UIElement> children;
  24383. IntRect clipBorder;
  24384. bool clipChildren;
  24385. /* writeonly */
  24386. Color color;
  24387. /* readonly */
  24388. bool colorGradient;
  24389. Array<Color> colors;
  24390. /* readonly */
  24391. IntRect combinedScreenRect;
  24392. XMLFile defaultStyle;
  24393. /* readonly */
  24394. float derivedOpacity;
  24395. IntVector2 disabledOffset;
  24396. /* readonly */
  24397. uint dragButtonCombo;
  24398. /* readonly */
  24399. int dragButtonCount;
  24400. uint dragDropMode;
  24401. bool editable;
  24402. /* readonly */
  24403. float effectiveScrollStep;
  24404. bool elementEventSender;
  24405. bool enableAnchor;
  24406. bool enabled;
  24407. /* readonly */
  24408. bool enabledSelf;
  24409. /* readonly */
  24410. bool fixedHeight;
  24411. /* readonly */
  24412. bool fixedSize;
  24413. /* readonly */
  24414. bool fixedWidth;
  24415. bool focus;
  24416. FocusMode focusMode;
  24417. /* readonly */
  24418. Button forwardButton;
  24419. Array<Variant> globalVar;
  24420. /* readonly */
  24421. VariantMap globalVars;
  24422. int height;
  24423. HorizontalAlignment horizontalAlignment;
  24424. IntVector2 hoverOffset;
  24425. /* readonly */
  24426. bool hovering;
  24427. IntRect imageBorder;
  24428. IntRect imageRect;
  24429. int indent;
  24430. int indentSpacing;
  24431. /* readonly */
  24432. int indentWidth;
  24433. bool internal;
  24434. IntRect layoutBorder;
  24435. Vector2 layoutFlexScale;
  24436. LayoutMode layoutMode;
  24437. int layoutSpacing;
  24438. Material material;
  24439. Vector2 maxAnchor;
  24440. int maxHeight;
  24441. IntVector2 maxOffset;
  24442. IntVector2 maxSize;
  24443. int maxWidth;
  24444. Vector2 minAnchor;
  24445. int minHeight;
  24446. IntVector2 minOffset;
  24447. IntVector2 minSize;
  24448. int minWidth;
  24449. String name;
  24450. /* readonly */
  24451. uint numAllChildren;
  24452. /* readonly */
  24453. uint numAttributes;
  24454. /* readonly */
  24455. uint numChildren;
  24456. ObjectAnimation objectAnimation;
  24457. float opacity;
  24458. Orientation orientation;
  24459. UIElement parent;
  24460. Vector2 pivot;
  24461. IntVector2 position;
  24462. int priority;
  24463. float range;
  24464. /* readonly */
  24465. int refs;
  24466. /* readonly */
  24467. UIElement root;
  24468. /* readonly */
  24469. IntVector2 screenPosition;
  24470. float scrollStep;
  24471. bool selected;
  24472. IntVector2 size;
  24473. /* readonly */
  24474. Slider slider;
  24475. bool sortChildren;
  24476. float stepFactor;
  24477. String style;
  24478. /* readonly */
  24479. Array<String> tags;
  24480. bool temporary;
  24481. Texture texture;
  24482. bool tiled;
  24483. TraversalMode traversalMode;
  24484. /* readonly */
  24485. StringHash type;
  24486. /* readonly */
  24487. String typeName;
  24488. bool useDerivedOpacity;
  24489. float value;
  24490. /* readonly */
  24491. VariantMap vars;
  24492. VerticalAlignment verticalAlignment;
  24493. bool visible;
  24494. /* readonly */
  24495. bool visibleEffective;
  24496. /* readonly */
  24497. int weakRefs;
  24498. int width;
  24499. };
  24500. class ScrollView
  24501. {
  24502. public:
  24503. ScrollView();
  24504. // Methods:
  24505. void AddChild(UIElement);
  24506. void AddTag(const String&);
  24507. void AddTags(Array<String>);
  24508. void AddTags(const String&, int8 = ';');
  24509. void AdjustScissor(IntRect&);
  24510. void AllocateNetworkState();
  24511. operator Animatable() const;
  24512. void ApplyAttributes();
  24513. void BringToFront();
  24514. const Color& GetColor(Corner) const;
  24515. const Color& GetColorAttr() const;
  24516. const Color& GetDerivedColor() const;
  24517. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  24518. void DisableLayoutUpdate();
  24519. IntVector2 ElementToScreen(const IntVector2&);
  24520. void EnableLayoutUpdate();
  24521. bool FilterAttributes(XMLElement&) const;
  24522. int FindChild(UIElement) const;
  24523. bool GetAnimationEnabled() const;
  24524. Variant GetAttribute(const String&) const;
  24525. Variant GetAttribute(uint) const;
  24526. ValueAnimation GetAttributeAnimation(const String&) const;
  24527. float GetAttributeAnimationSpeed(const String&) const;
  24528. float GetAttributeAnimationTime(const String&) const;
  24529. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  24530. Variant GetAttributeDefault(const String&) const;
  24531. Variant GetAttributeDefault(uint) const;
  24532. bool GetAutoDisableChildren() const;
  24533. float GetAutoDisableThreshold() const;
  24534. bool GetBlockEvents() const;
  24535. bool GetBringToBack() const;
  24536. bool GetBringToFront() const;
  24537. UIElement GetChild(const String&, bool = false) const;
  24538. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  24539. UIElement GetChild(int) const;
  24540. Array<UIElement> GetChildren() const;
  24541. Array<UIElement> GetChildren(bool) const;
  24542. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  24543. bool GetClipChildren() const;
  24544. IntRect GetCombinedScreenRect();
  24545. UIElement GetContentElement() const;
  24546. XMLFile GetDefaultStyle(bool = true) const;
  24547. float GetDerivedOpacity() const;
  24548. uint GetDragButtonCombo() const;
  24549. int GetDragButtonCount() const;
  24550. uint GetDragDropMode() const;
  24551. IntVector2 GetEffectiveMinSize() const;
  24552. UIElement GetElementEventSender() const;
  24553. bool GetEnableAnchor() const;
  24554. VariantMap& GetEventDataMap() const;
  24555. Object GetEventSender() const;
  24556. FocusMode GetFocusMode() const;
  24557. int GetHeight() const;
  24558. HorizontalAlignment GetHorizontalAlignment() const;
  24559. ScrollBar GetHorizontalScrollBar() const;
  24560. bool GetHorizontalScrollBarVisible() const;
  24561. int GetIndent() const;
  24562. int GetIndentSpacing() const;
  24563. int GetIndentWidth() const;
  24564. bool GetInterceptNetworkUpdate(const String&) const;
  24565. int GetLayoutElementMaxSize() const;
  24566. LayoutMode GetLayoutMode() const;
  24567. int GetLayoutSpacing() const;
  24568. int GetMaxHeight() const;
  24569. int GetMaxWidth() const;
  24570. int GetMinHeight() const;
  24571. int GetMinWidth() const;
  24572. uint GetNumAttributes() const;
  24573. int GetNumChildren(bool = false) const;
  24574. uint GetNumNetworkAttributes() const;
  24575. ObjectAnimation GetObjectAnimation() const;
  24576. ResourceRef GetObjectAnimationAttr() const;
  24577. float GetOpacity() const;
  24578. float GetPageStep() const;
  24579. UIElement GetParent() const;
  24580. int GetPriority() const;
  24581. UIElement GetRoot() const;
  24582. bool GetScrollBarsAutoVisible() const;
  24583. float GetScrollDeceleration() const;
  24584. BorderImage GetScrollPanel() const;
  24585. float GetScrollSnapEpsilon() const;
  24586. float GetScrollStep() const;
  24587. bool GetSortChildren() const;
  24588. Object GetSubsystem(StringHash) const;
  24589. Array<String> GetTags() const;
  24590. TraversalMode GetTraversalMode() const;
  24591. StringHash GetType() const;
  24592. bool GetUseDerivedOpacity() const;
  24593. VerticalAlignment GetVerticalAlignment() const;
  24594. ScrollBar GetVerticalScrollBar() const;
  24595. bool GetVerticalScrollBarVisible() const;
  24596. int GetWidth() const;
  24597. bool HasColorGradient() const;
  24598. bool HasEventHandlers() const;
  24599. bool HasFocus() const;
  24600. bool HasSubscribedToEvent(Object, StringHash) const;
  24601. bool HasSubscribedToEvent(StringHash) const;
  24602. bool HasTag(const String&) const;
  24603. void InsertChild(int, UIElement);
  24604. const IntRect& GetClipBorder() const;
  24605. const IntRect& GetLayoutBorder() const;
  24606. const IntVector2& GetChildOffset() const;
  24607. const IntVector2& GetMaxOffset() const;
  24608. const IntVector2& GetMaxSize() const;
  24609. const IntVector2& GetMinOffset() const;
  24610. const IntVector2& GetMinSize() const;
  24611. const IntVector2& GetPosition() const;
  24612. const IntVector2& GetScreenPosition() const;
  24613. const IntVector2& GetSize() const;
  24614. const IntVector2& GetViewPosition() const;
  24615. bool IsChildOf(UIElement) const;
  24616. bool IsEditable() const;
  24617. bool IsElementEventSender() const;
  24618. bool IsEnabled() const;
  24619. bool IsEnabledSelf() const;
  24620. bool IsFixedHeight() const;
  24621. bool IsFixedSize() const;
  24622. bool IsFixedWidth() const;
  24623. bool IsHovering() const;
  24624. bool IsInside(IntVector2, bool);
  24625. bool IsInsideCombined(IntVector2, bool);
  24626. bool IsInstanceOf(StringHash) const;
  24627. bool IsInternal() const;
  24628. bool IsSelected() const;
  24629. bool IsTemporary() const;
  24630. bool IsVisible() const;
  24631. bool IsVisibleEffective() const;
  24632. bool IsWheelHandler() const;
  24633. bool IsWithinScissor(const IntRect&);
  24634. operator ListView() const;
  24635. bool Load(Deserializer&);
  24636. UIElement LoadChildXML(XMLFile, XMLFile);
  24637. UIElement LoadChildXML(const XMLElement&, XMLFile);
  24638. bool LoadJSON(const JSONValue&);
  24639. bool LoadXML(Deserializer&);
  24640. bool LoadXML(File);
  24641. bool LoadXML(VectorBuffer&);
  24642. bool LoadXML(XMLFile, XMLFile);
  24643. bool LoadXML(const XMLElement&);
  24644. bool LoadXML(const XMLElement&, XMLFile);
  24645. void MarkNetworkUpdate();
  24646. operator Object() const;
  24647. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24648. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  24649. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  24650. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24651. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24652. bool OnDragDropFinish(UIElement);
  24653. bool OnDragDropTest(UIElement);
  24654. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24655. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24656. void OnEvent(Object, StringHash, VariantMap&);
  24657. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  24658. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  24659. void OnIndentSet();
  24660. void OnKey(uint, uint, uint);
  24661. void OnPositionSet(const IntVector2&);
  24662. void OnResize(const IntVector2&, const IntVector2&);
  24663. void OnSetAttribute(const AttributeInfo&, const Variant&);
  24664. void OnSetEditable();
  24665. void OnTextInput(const String&);
  24666. void OnWheel(int, uint, uint);
  24667. bool ReadDeltaUpdate(Deserializer&);
  24668. bool ReadLatestDataUpdate(Deserializer&);
  24669. operator RefCounted() const;
  24670. int Refs() const;
  24671. void Remove();
  24672. void RemoveAllChildren();
  24673. void RemoveAllTags();
  24674. void RemoveAttributeAnimation(const String&);
  24675. void RemoveChild(UIElement, int = 0);
  24676. void RemoveChild(uint);
  24677. void RemoveChildAtIndex(int);
  24678. void RemoveInstanceDefault();
  24679. void RemoveObjectAnimation();
  24680. bool RemoveTag(const String&);
  24681. void ResetDeepEnabled();
  24682. void ResetToDefault();
  24683. bool Save(Serializer&) const;
  24684. bool SaveDefaultAttributes() const;
  24685. bool SaveJSON(JSONValue&) const;
  24686. bool SaveXML(File, const String& indentation = "\t");
  24687. bool SaveXML(Serializer&, const String& = "\t") const;
  24688. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  24689. bool SaveXML(XMLElement&) const;
  24690. IntVector2 ScreenToElement(const IntVector2&);
  24691. void SendEvent(StringHash);
  24692. void SendEvent(StringHash, VariantMap&);
  24693. operator Serializable() const;
  24694. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  24695. void SetAnimationEnabled(bool);
  24696. void SetAnimationTime(float);
  24697. bool SetAttribute(const String&, const Variant&);
  24698. bool SetAttribute(uint, const Variant&);
  24699. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  24700. void SetAttributeAnimationSpeed(const String&, float);
  24701. void SetAttributeAnimationTime(const String&, float);
  24702. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  24703. void SetAutoDisableChildren(bool);
  24704. void SetAutoDisableThreshold(float);
  24705. void SetBlockEvents(bool);
  24706. void SetBringToBack(bool);
  24707. void SetBringToFront(bool);
  24708. void SetChildOffset(const IntVector2&);
  24709. void SetClipBorder(const IntRect&);
  24710. void SetClipChildren(bool);
  24711. void SetColor(Corner, const Color&);
  24712. void SetColor(const Color&);
  24713. void SetContentElement(UIElement);
  24714. void SetDeepEnabled(bool);
  24715. void SetDefaultStyle(XMLFile);
  24716. void SetDragDropMode(uint);
  24717. void SetEditable(bool);
  24718. void SetElementEventSender(bool);
  24719. void SetEnableAnchor(bool);
  24720. void SetEnabled(bool);
  24721. void SetEnabledRecursive(bool);
  24722. void SetFixedHeight(int);
  24723. void SetFixedSize(const IntVector2&);
  24724. void SetFixedSize(int, int);
  24725. void SetFixedWidth(int);
  24726. void SetFocus(bool);
  24727. void SetFocusMode(FocusMode);
  24728. void SetGlobalVar(StringHash, const Variant&);
  24729. void SetHeight(int);
  24730. void SetHorizontalAlignment(HorizontalAlignment);
  24731. void SetHorizontalScrollBarVisible(bool);
  24732. void SetHovering(bool);
  24733. void SetIndent(int);
  24734. void SetIndentSpacing(int);
  24735. void SetInstanceDefault(bool);
  24736. void SetInterceptNetworkUpdate(const String&, bool);
  24737. void SetInternal(bool);
  24738. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  24739. void SetLayoutBorder(const IntRect&);
  24740. void SetLayoutFlexScale(const Vector2&);
  24741. void SetLayoutMode(LayoutMode);
  24742. void SetLayoutSpacing(int);
  24743. void SetMaxAnchor(const Vector2&);
  24744. void SetMaxAnchor(float, float);
  24745. void SetMaxHeight(int);
  24746. void SetMaxOffset(const IntVector2&);
  24747. void SetMaxSize(const IntVector2&);
  24748. void SetMaxSize(int, int);
  24749. void SetMaxWidth(int);
  24750. void SetMinAnchor(const Vector2&);
  24751. void SetMinAnchor(float, float);
  24752. void SetMinHeight(int);
  24753. void SetMinOffset(const IntVector2&);
  24754. void SetMinSize(const IntVector2&);
  24755. void SetMinSize(int, int);
  24756. void SetMinWidth(int);
  24757. void SetName(const String&);
  24758. void SetObjectAnimation(ObjectAnimation);
  24759. void SetObjectAnimationAttr(const ResourceRef&);
  24760. void SetOpacity(float);
  24761. void SetPageStep(float);
  24762. void SetParent(UIElement, int = ENDPOS);
  24763. void SetPivot(const Vector2&);
  24764. void SetPivot(float, float);
  24765. void SetPosition(const IntVector2&);
  24766. void SetPosition(int, int);
  24767. void SetPriority(int);
  24768. void SetRenderTexture(Texture2D);
  24769. void SetScrollBarsAutoVisible(bool);
  24770. void SetScrollBarsVisible(bool, bool);
  24771. void SetScrollDeceleration(float);
  24772. void SetScrollSnapEpsilon(float);
  24773. void SetScrollStep(float);
  24774. void SetSelected(bool);
  24775. void SetSize(const IntVector2&);
  24776. void SetSize(int, int);
  24777. void SetSortChildren(bool);
  24778. bool SetStyle(const String&, XMLFile = null);
  24779. bool SetStyle(const XMLElement&);
  24780. bool SetStyleAuto(XMLFile = null);
  24781. void SetTags(Array<String>);
  24782. void SetTemporary(bool);
  24783. void SetTraversalMode(TraversalMode);
  24784. void SetUseDerivedOpacity(bool);
  24785. void SetVar(StringHash, const Variant&);
  24786. void SetVerticalAlignment(VerticalAlignment);
  24787. void SetVerticalScrollBarVisible(bool);
  24788. void SetViewPosition(const IntVector2&);
  24789. void SetViewPosition(int, int);
  24790. void SetViewPositionAttr(const IntVector2&);
  24791. void SetVisible(bool);
  24792. void SetWidth(int);
  24793. void SortChildren();
  24794. const String& GetAppliedStyle() const;
  24795. const String& GetCategory() const;
  24796. const String& GetName() const;
  24797. const String& GetTypeName() const;
  24798. operator UIElement() const;
  24799. void UnsubscribeFromAllEvents();
  24800. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  24801. void UnsubscribeFromEvent(Object, StringHash);
  24802. void UnsubscribeFromEvent(StringHash);
  24803. void UnsubscribeFromEvents(Object);
  24804. void Update(float);
  24805. void UpdateLayout();
  24806. const Variant& GetGlobalVar(StringHash) const;
  24807. const Variant& GetVar(const StringHash&) const;
  24808. const VariantMap& GetGlobalVars() const;
  24809. const VariantMap& GetVars() const;
  24810. const Vector2& GetLayoutFlexScale() const;
  24811. const Vector2& GetMaxAnchor() const;
  24812. const Vector2& GetMinAnchor() const;
  24813. const Vector2& GetPivot() const;
  24814. int WeakRefs() const;
  24815. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  24816. void WriteInitialDeltaUpdate(Serializer&, uint8);
  24817. void WriteLatestDataUpdate(Serializer&, uint8);
  24818. operator const Animatable() const;
  24819. operator const ListView() const;
  24820. operator const Object() const;
  24821. operator const RefCounted() const;
  24822. operator const Serializable() const;
  24823. operator const UIElement() const;
  24824. // Properties:
  24825. bool animationEnabled;
  24826. /* readonly */
  24827. Array<Variant> attributeDefaults;
  24828. /* readonly */
  24829. Array<AttributeInfo> attributeInfos;
  24830. Array<Variant> attributes;
  24831. bool autoDisableChildren;
  24832. float autoDisableThreshold;
  24833. bool bringToBack;
  24834. bool bringToFront;
  24835. /* readonly */
  24836. String category;
  24837. /* readonly */
  24838. IntVector2 childOffset;
  24839. /* readonly */
  24840. Array<UIElement> children;
  24841. IntRect clipBorder;
  24842. bool clipChildren;
  24843. /* writeonly */
  24844. Color color;
  24845. /* readonly */
  24846. bool colorGradient;
  24847. Array<Color> colors;
  24848. /* readonly */
  24849. IntRect combinedScreenRect;
  24850. UIElement contentElement;
  24851. XMLFile defaultStyle;
  24852. /* readonly */
  24853. float derivedOpacity;
  24854. /* readonly */
  24855. uint dragButtonCombo;
  24856. /* readonly */
  24857. int dragButtonCount;
  24858. uint dragDropMode;
  24859. bool editable;
  24860. bool elementEventSender;
  24861. bool enableAnchor;
  24862. bool enabled;
  24863. /* readonly */
  24864. bool enabledSelf;
  24865. /* readonly */
  24866. bool fixedHeight;
  24867. /* readonly */
  24868. bool fixedSize;
  24869. /* readonly */
  24870. bool fixedWidth;
  24871. bool focus;
  24872. FocusMode focusMode;
  24873. Array<Variant> globalVar;
  24874. /* readonly */
  24875. VariantMap globalVars;
  24876. int height;
  24877. HorizontalAlignment horizontalAlignment;
  24878. /* readonly */
  24879. ScrollBar horizontalScrollBar;
  24880. bool horizontalScrollBarVisible;
  24881. /* readonly */
  24882. bool hovering;
  24883. int indent;
  24884. int indentSpacing;
  24885. /* readonly */
  24886. int indentWidth;
  24887. bool internal;
  24888. IntRect layoutBorder;
  24889. Vector2 layoutFlexScale;
  24890. LayoutMode layoutMode;
  24891. int layoutSpacing;
  24892. Vector2 maxAnchor;
  24893. int maxHeight;
  24894. IntVector2 maxOffset;
  24895. IntVector2 maxSize;
  24896. int maxWidth;
  24897. Vector2 minAnchor;
  24898. int minHeight;
  24899. IntVector2 minOffset;
  24900. IntVector2 minSize;
  24901. int minWidth;
  24902. String name;
  24903. /* readonly */
  24904. uint numAllChildren;
  24905. /* readonly */
  24906. uint numAttributes;
  24907. /* readonly */
  24908. uint numChildren;
  24909. ObjectAnimation objectAnimation;
  24910. float opacity;
  24911. float pageStep;
  24912. UIElement parent;
  24913. Vector2 pivot;
  24914. IntVector2 position;
  24915. int priority;
  24916. /* readonly */
  24917. int refs;
  24918. /* readonly */
  24919. UIElement root;
  24920. /* readonly */
  24921. IntVector2 screenPosition;
  24922. bool scrollBarsAutoVisible;
  24923. float scrollDeceleration;
  24924. /* readonly */
  24925. BorderImage scrollPanel;
  24926. float scrollSnapEpsilon;
  24927. float scrollStep;
  24928. bool selected;
  24929. IntVector2 size;
  24930. bool sortChildren;
  24931. String style;
  24932. /* readonly */
  24933. Array<String> tags;
  24934. bool temporary;
  24935. TraversalMode traversalMode;
  24936. /* readonly */
  24937. StringHash type;
  24938. /* readonly */
  24939. String typeName;
  24940. bool useDerivedOpacity;
  24941. /* readonly */
  24942. VariantMap vars;
  24943. VerticalAlignment verticalAlignment;
  24944. /* readonly */
  24945. ScrollBar verticalScrollBar;
  24946. bool verticalScrollBarVisible;
  24947. IntVector2 viewPosition;
  24948. bool visible;
  24949. /* readonly */
  24950. bool visibleEffective;
  24951. /* readonly */
  24952. int weakRefs;
  24953. int width;
  24954. };
  24955. class Serializable
  24956. {
  24957. public:
  24958. Serializable();
  24959. // Methods:
  24960. void AllocateNetworkState();
  24961. operator Animatable() const;
  24962. operator AnimatedModel() const;
  24963. operator AnimatedSprite2D() const;
  24964. operator AnimationController() const;
  24965. void ApplyAttributes();
  24966. operator BillboardSet() const;
  24967. operator BorderImage() const;
  24968. operator Button() const;
  24969. operator Camera() const;
  24970. operator CheckBox() const;
  24971. operator CollisionBox2D() const;
  24972. operator CollisionChain2D() const;
  24973. operator CollisionCircle2D() const;
  24974. operator CollisionEdge2D() const;
  24975. operator CollisionPolygon2D() const;
  24976. operator CollisionShape2D() const;
  24977. operator CollisionShape() const;
  24978. operator Component() const;
  24979. operator Constraint2D() const;
  24980. operator Constraint() const;
  24981. operator ConstraintDistance2D() const;
  24982. operator ConstraintFriction2D() const;
  24983. operator ConstraintGear2D() const;
  24984. operator ConstraintMotor2D() const;
  24985. operator ConstraintMouse2D() const;
  24986. operator ConstraintPrismatic2D() const;
  24987. operator ConstraintPulley2D() const;
  24988. operator ConstraintRevolute2D() const;
  24989. operator ConstraintWeld2D() const;
  24990. operator ConstraintWheel2D() const;
  24991. operator CrowdAgent() const;
  24992. operator CrowdManager() const;
  24993. operator Cursor() const;
  24994. operator CustomGeometry() const;
  24995. operator DebugRenderer() const;
  24996. operator DecalSet() const;
  24997. operator Drawable2D() const;
  24998. operator Drawable() const;
  24999. operator DropDownList() const;
  25000. operator DynamicNavigationMesh() const;
  25001. Variant GetAttribute(const String&) const;
  25002. Variant GetAttribute(uint) const;
  25003. Variant GetAttributeDefault(const String&) const;
  25004. Variant GetAttributeDefault(uint) const;
  25005. bool GetBlockEvents() const;
  25006. VariantMap& GetEventDataMap() const;
  25007. Object GetEventSender() const;
  25008. bool GetInterceptNetworkUpdate(const String&) const;
  25009. uint GetNumAttributes() const;
  25010. uint GetNumNetworkAttributes() const;
  25011. Object GetSubsystem(StringHash) const;
  25012. StringHash GetType() const;
  25013. bool HasEventHandlers() const;
  25014. bool HasSubscribedToEvent(Object, StringHash) const;
  25015. bool HasSubscribedToEvent(StringHash) const;
  25016. operator IKConstraint() const;
  25017. operator IKEffector() const;
  25018. operator IKSolver() const;
  25019. bool IsInstanceOf(StringHash) const;
  25020. bool IsTemporary() const;
  25021. operator Light() const;
  25022. operator LineEdit() const;
  25023. operator ListView() const;
  25024. bool Load(Deserializer&);
  25025. bool LoadJSON(const JSONValue&);
  25026. bool LoadXML(const XMLElement&);
  25027. operator LogicComponent() const;
  25028. void MarkNetworkUpdate();
  25029. operator Menu() const;
  25030. operator NavArea() const;
  25031. operator Navigable() const;
  25032. operator NavigationMesh() const;
  25033. operator NetworkPriority() const;
  25034. operator Node() const;
  25035. operator Object() const;
  25036. operator Obstacle() const;
  25037. operator Octree() const;
  25038. operator OffMeshConnection() const;
  25039. void OnEvent(Object, StringHash, VariantMap&);
  25040. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  25041. void OnSetAttribute(const AttributeInfo&, const Variant&);
  25042. operator ParticleEmitter2D() const;
  25043. operator ParticleEmitter() const;
  25044. operator PhysicsWorld2D() const;
  25045. operator PhysicsWorld() const;
  25046. operator ProgressBar() const;
  25047. operator RaycastVehicle() const;
  25048. bool ReadDeltaUpdate(Deserializer&);
  25049. bool ReadLatestDataUpdate(Deserializer&);
  25050. operator RefCounted() const;
  25051. int Refs() const;
  25052. void RemoveInstanceDefault();
  25053. operator Renderer2D() const;
  25054. void ResetToDefault();
  25055. operator RibbonTrail() const;
  25056. operator RigidBody2D() const;
  25057. operator RigidBody() const;
  25058. bool Save(Serializer&) const;
  25059. bool SaveDefaultAttributes() const;
  25060. bool SaveJSON(JSONValue&) const;
  25061. bool SaveXML(XMLElement&) const;
  25062. operator Scene() const;
  25063. operator ScriptInstance() const;
  25064. operator ScrollBar() const;
  25065. operator ScrollView() const;
  25066. void SendEvent(StringHash);
  25067. void SendEvent(StringHash, VariantMap&);
  25068. bool SetAttribute(const String&, const Variant&);
  25069. bool SetAttribute(uint, const Variant&);
  25070. void SetBlockEvents(bool);
  25071. void SetGlobalVar(StringHash, const Variant&);
  25072. void SetInstanceDefault(bool);
  25073. void SetInterceptNetworkUpdate(const String&, bool);
  25074. void SetTemporary(bool);
  25075. operator Skybox() const;
  25076. operator Slider() const;
  25077. operator SmoothedTransform() const;
  25078. operator SoundListener() const;
  25079. operator SoundSource3D() const;
  25080. operator SoundSource() const;
  25081. operator SplinePath() const;
  25082. operator Sprite() const;
  25083. operator StaticModel() const;
  25084. operator StaticModelGroup() const;
  25085. operator StaticSprite2D() const;
  25086. operator StretchableSprite2D() const;
  25087. const String& GetCategory() const;
  25088. const String& GetTypeName() const;
  25089. operator Terrain() const;
  25090. operator TerrainPatch() const;
  25091. operator Text3D() const;
  25092. operator Text() const;
  25093. operator TileMap2D() const;
  25094. operator TileMapLayer2D() const;
  25095. operator ToolTip() const;
  25096. operator UIComponent() const;
  25097. operator UIElement() const;
  25098. operator UISelectable() const;
  25099. operator UnknownComponent() const;
  25100. void UnsubscribeFromAllEvents();
  25101. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25102. void UnsubscribeFromEvent(Object, StringHash);
  25103. void UnsubscribeFromEvent(StringHash);
  25104. void UnsubscribeFromEvents(Object);
  25105. const Variant& GetGlobalVar(StringHash) const;
  25106. const VariantMap& GetGlobalVars() const;
  25107. operator View3D() const;
  25108. int WeakRefs() const;
  25109. operator Window() const;
  25110. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  25111. void WriteInitialDeltaUpdate(Serializer&, uint8);
  25112. void WriteLatestDataUpdate(Serializer&, uint8);
  25113. operator Zone() const;
  25114. operator const Animatable() const;
  25115. operator const AnimatedModel() const;
  25116. operator const AnimatedSprite2D() const;
  25117. operator const AnimationController() const;
  25118. operator const BillboardSet() const;
  25119. operator const BorderImage() const;
  25120. operator const Button() const;
  25121. operator const Camera() const;
  25122. operator const CheckBox() const;
  25123. operator const CollisionBox2D() const;
  25124. operator const CollisionChain2D() const;
  25125. operator const CollisionCircle2D() const;
  25126. operator const CollisionEdge2D() const;
  25127. operator const CollisionPolygon2D() const;
  25128. operator const CollisionShape2D() const;
  25129. operator const CollisionShape() const;
  25130. operator const Component() const;
  25131. operator const Constraint2D() const;
  25132. operator const Constraint() const;
  25133. operator const ConstraintDistance2D() const;
  25134. operator const ConstraintFriction2D() const;
  25135. operator const ConstraintGear2D() const;
  25136. operator const ConstraintMotor2D() const;
  25137. operator const ConstraintMouse2D() const;
  25138. operator const ConstraintPrismatic2D() const;
  25139. operator const ConstraintPulley2D() const;
  25140. operator const ConstraintRevolute2D() const;
  25141. operator const ConstraintWeld2D() const;
  25142. operator const ConstraintWheel2D() const;
  25143. operator const CrowdAgent() const;
  25144. operator const CrowdManager() const;
  25145. operator const Cursor() const;
  25146. operator const CustomGeometry() const;
  25147. operator const DebugRenderer() const;
  25148. operator const DecalSet() const;
  25149. operator const Drawable2D() const;
  25150. operator const Drawable() const;
  25151. operator const DropDownList() const;
  25152. operator const DynamicNavigationMesh() const;
  25153. operator const IKConstraint() const;
  25154. operator const IKEffector() const;
  25155. operator const IKSolver() const;
  25156. operator const Light() const;
  25157. operator const LineEdit() const;
  25158. operator const ListView() const;
  25159. operator const LogicComponent() const;
  25160. operator const Menu() const;
  25161. operator const NavArea() const;
  25162. operator const Navigable() const;
  25163. operator const NavigationMesh() const;
  25164. operator const NetworkPriority() const;
  25165. operator const Node() const;
  25166. operator const Object() const;
  25167. operator const Obstacle() const;
  25168. operator const Octree() const;
  25169. operator const OffMeshConnection() const;
  25170. operator const ParticleEmitter2D() const;
  25171. operator const ParticleEmitter() const;
  25172. operator const PhysicsWorld2D() const;
  25173. operator const PhysicsWorld() const;
  25174. operator const ProgressBar() const;
  25175. operator const RaycastVehicle() const;
  25176. operator const RefCounted() const;
  25177. operator const Renderer2D() const;
  25178. operator const RibbonTrail() const;
  25179. operator const RigidBody2D() const;
  25180. operator const RigidBody() const;
  25181. operator const Scene() const;
  25182. operator const ScriptInstance() const;
  25183. operator const ScrollBar() const;
  25184. operator const ScrollView() const;
  25185. operator const Skybox() const;
  25186. operator const Slider() const;
  25187. operator const SmoothedTransform() const;
  25188. operator const SoundListener() const;
  25189. operator const SoundSource3D() const;
  25190. operator const SoundSource() const;
  25191. operator const SplinePath() const;
  25192. operator const Sprite() const;
  25193. operator const StaticModel() const;
  25194. operator const StaticModelGroup() const;
  25195. operator const StaticSprite2D() const;
  25196. operator const StretchableSprite2D() const;
  25197. operator const Terrain() const;
  25198. operator const TerrainPatch() const;
  25199. operator const Text3D() const;
  25200. operator const Text() const;
  25201. operator const TileMap2D() const;
  25202. operator const TileMapLayer2D() const;
  25203. operator const ToolTip() const;
  25204. operator const UIComponent() const;
  25205. operator const UIElement() const;
  25206. operator const UISelectable() const;
  25207. operator const UnknownComponent() const;
  25208. operator const View3D() const;
  25209. operator const Window() const;
  25210. operator const Zone() const;
  25211. // Properties:
  25212. /* readonly */
  25213. Array<Variant> attributeDefaults;
  25214. /* readonly */
  25215. Array<AttributeInfo> attributeInfos;
  25216. Array<Variant> attributes;
  25217. /* readonly */
  25218. String category;
  25219. Array<Variant> globalVar;
  25220. /* readonly */
  25221. VariantMap globalVars;
  25222. /* readonly */
  25223. uint numAttributes;
  25224. /* readonly */
  25225. int refs;
  25226. bool temporary;
  25227. /* readonly */
  25228. StringHash type;
  25229. /* readonly */
  25230. String typeName;
  25231. /* readonly */
  25232. int weakRefs;
  25233. };
  25234. class Serializer
  25235. {
  25236. public:
  25237. // Methods:
  25238. Serializer& operator=(const Serializer&);
  25239. operator File() const;
  25240. operator NamedPipe() const;
  25241. uint Write(Array<uint8>);
  25242. bool WriteBool(bool);
  25243. bool WriteBoundingBox(const BoundingBox&);
  25244. bool WriteBuffer(Array<uint8>);
  25245. bool WriteByte(int8);
  25246. bool WriteColor(const Color&);
  25247. bool WriteDouble(double);
  25248. bool WriteFileID(const String&);
  25249. bool WriteFloat(float);
  25250. bool WriteInt(int);
  25251. bool WriteInt64(int64);
  25252. bool WriteIntRect(const IntRect&);
  25253. bool WriteIntVector2(const IntVector2&);
  25254. bool WriteIntVector3(const IntVector3&);
  25255. bool WriteLine(const String&);
  25256. bool WriteMatrix3(const Matrix3&);
  25257. bool WriteMatrix3x4(const Matrix3x4&);
  25258. bool WriteMatrix4(const Matrix4&);
  25259. bool WriteNetID(uint);
  25260. bool WritePackedQuaternion(const Quaternion&);
  25261. bool WritePackedVector3(const Vector3&, float);
  25262. bool WriteQuaternion(const Quaternion&);
  25263. bool WriteRect(const Rect&);
  25264. bool WriteResourceRef(const ResourceRef&);
  25265. bool WriteResourceRefList(const ResourceRefList&);
  25266. bool WriteShort(int16);
  25267. bool WriteString(const String&);
  25268. bool WriteStringHash(const StringHash&);
  25269. bool WriteStringVector(Array<String>);
  25270. bool WriteUByte(uint8);
  25271. bool WriteUInt(uint);
  25272. bool WriteUInt64(uint64);
  25273. bool WriteUShort(uint16);
  25274. bool WriteVLE(uint);
  25275. bool WriteVariant(const Variant&);
  25276. bool WriteVariantData(const Variant&);
  25277. bool WriteVariantMap(const VariantMap&);
  25278. bool WriteVector2(const Vector2&);
  25279. bool WriteVector3(const Vector3&);
  25280. bool WriteVector4(const Vector4&);
  25281. bool WriteVectorBuffer(const VectorBuffer&);
  25282. operator const File() const;
  25283. operator const NamedPipe() const;
  25284. };
  25285. class Shader
  25286. {
  25287. public:
  25288. Shader();
  25289. // Methods:
  25290. bool BeginLoad(Deserializer&);
  25291. bool EndLoad();
  25292. AsyncLoadState GetAsyncLoadState() const;
  25293. bool GetBlockEvents() const;
  25294. VariantMap& GetEventDataMap() const;
  25295. Object GetEventSender() const;
  25296. uint GetMemoryUse() const;
  25297. StringHash GetNameHash() const;
  25298. Object GetSubsystem(StringHash) const;
  25299. uint GetTimeStamp() const;
  25300. StringHash GetType() const;
  25301. uint GetUseTimer();
  25302. ShaderVariation GetVariation(ShaderType, const String&);
  25303. bool HasEventHandlers() const;
  25304. bool HasSubscribedToEvent(Object, StringHash) const;
  25305. bool HasSubscribedToEvent(StringHash) const;
  25306. bool IsInstanceOf(StringHash) const;
  25307. bool Load(Deserializer&);
  25308. bool Load(File);
  25309. bool Load(VectorBuffer&);
  25310. bool Load(const String&);
  25311. bool LoadFile(const String&);
  25312. operator Object() const;
  25313. void OnEvent(Object, StringHash, VariantMap&);
  25314. operator RefCounted() const;
  25315. int Refs() const;
  25316. void ResetUseTimer();
  25317. operator Resource() const;
  25318. bool Save(File) const;
  25319. bool Save(Serializer&) const;
  25320. bool Save(VectorBuffer&) const;
  25321. bool Save(const String&) const;
  25322. bool SaveFile(const String&) const;
  25323. void SendEvent(StringHash);
  25324. void SendEvent(StringHash, VariantMap&);
  25325. void SetAsyncLoadState(AsyncLoadState);
  25326. void SetBlockEvents(bool);
  25327. void SetGlobalVar(StringHash, const Variant&);
  25328. void SetMemoryUse(uint);
  25329. void SetName(const String&);
  25330. const String& GetCategory() const;
  25331. const String& GetName() const;
  25332. const String& GetSourceCode(ShaderType) const;
  25333. const String& GetTypeName() const;
  25334. void UnsubscribeFromAllEvents();
  25335. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25336. void UnsubscribeFromEvent(Object, StringHash);
  25337. void UnsubscribeFromEvent(StringHash);
  25338. void UnsubscribeFromEvents(Object);
  25339. const Variant& GetGlobalVar(StringHash) const;
  25340. const VariantMap& GetGlobalVars() const;
  25341. int WeakRefs() const;
  25342. operator const Object() const;
  25343. operator const RefCounted() const;
  25344. operator const Resource() const;
  25345. // Properties:
  25346. /* readonly */
  25347. String category;
  25348. Array<Variant> globalVar;
  25349. /* readonly */
  25350. VariantMap globalVars;
  25351. /* readonly */
  25352. uint memoryUse;
  25353. String name;
  25354. /* readonly */
  25355. int refs;
  25356. /* readonly */
  25357. StringHash type;
  25358. /* readonly */
  25359. String typeName;
  25360. /* readonly */
  25361. uint useTimer;
  25362. /* readonly */
  25363. int weakRefs;
  25364. };
  25365. class ShaderParameter
  25366. {
  25367. public:
  25368. ~ShaderParameter();
  25369. ShaderParameter();
  25370. ShaderParameter(const String&in, uint, int);
  25371. ShaderParameter(ShaderType, const String&in, uint, uint, uint);
  25372. ShaderParameter(ShaderType, const String&in, uint, uint);
  25373. // Methods:
  25374. ShaderParameter& operator=(const ShaderParameter&);
  25375. // Properties:
  25376. uint buffer;
  25377. uint glType;
  25378. int location;
  25379. String name;
  25380. uint offset;
  25381. uint regCount;
  25382. uint register;
  25383. uint size;
  25384. ShaderType type;
  25385. };
  25386. class ShaderParameterAnimationInfo
  25387. {
  25388. public:
  25389. ShaderParameterAnimationInfo(Material&, const String&in, ValueAnimation&, WrapMode, float);
  25390. ShaderParameterAnimationInfo(const ShaderParameterAnimationInfo&in);
  25391. // Methods:
  25392. ValueAnimation GetAnimation() const;
  25393. float GetSpeed() const;
  25394. Object GetTarget() const;
  25395. float GetTime() const;
  25396. WrapMode GetWrapMode() const;
  25397. operator RefCounted() const;
  25398. int Refs() const;
  25399. void SetSpeed(float);
  25400. bool SetTime(float);
  25401. void SetWrapMode(WrapMode);
  25402. const String& GetName() const;
  25403. bool Update(float);
  25404. operator ValueAnimationInfo() const;
  25405. int WeakRefs() const;
  25406. operator const RefCounted() const;
  25407. operator const ValueAnimationInfo() const;
  25408. // Properties:
  25409. /* readonly */
  25410. int refs;
  25411. /* readonly */
  25412. int weakRefs;
  25413. };
  25414. class ShaderPrecache
  25415. {
  25416. public:
  25417. ShaderPrecache(const String&in);
  25418. // Methods:
  25419. bool GetBlockEvents() const;
  25420. VariantMap& GetEventDataMap() const;
  25421. Object GetEventSender() const;
  25422. Object GetSubsystem(StringHash) const;
  25423. StringHash GetType() const;
  25424. bool HasEventHandlers() const;
  25425. bool HasSubscribedToEvent(Object, StringHash) const;
  25426. bool HasSubscribedToEvent(StringHash) const;
  25427. bool IsInstanceOf(StringHash) const;
  25428. operator Object() const;
  25429. void OnEvent(Object, StringHash, VariantMap&);
  25430. operator RefCounted() const;
  25431. int Refs() const;
  25432. void SendEvent(StringHash);
  25433. void SendEvent(StringHash, VariantMap&);
  25434. void SetBlockEvents(bool);
  25435. void SetGlobalVar(StringHash, const Variant&);
  25436. void StoreShaders(ShaderVariation, ShaderVariation);
  25437. const String& GetCategory() const;
  25438. const String& GetTypeName() const;
  25439. void UnsubscribeFromAllEvents();
  25440. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25441. void UnsubscribeFromEvent(Object, StringHash);
  25442. void UnsubscribeFromEvent(StringHash);
  25443. void UnsubscribeFromEvents(Object);
  25444. const Variant& GetGlobalVar(StringHash) const;
  25445. const VariantMap& GetGlobalVars() const;
  25446. int WeakRefs() const;
  25447. operator const Object() const;
  25448. operator const RefCounted() const;
  25449. // Properties:
  25450. /* readonly */
  25451. String category;
  25452. Array<Variant> globalVar;
  25453. /* readonly */
  25454. VariantMap globalVars;
  25455. /* readonly */
  25456. int refs;
  25457. /* readonly */
  25458. StringHash type;
  25459. /* readonly */
  25460. String typeName;
  25461. /* readonly */
  25462. int weakRefs;
  25463. };
  25464. class ShaderVariation
  25465. {
  25466. public:
  25467. ShaderVariation(Shader&, ShaderType);
  25468. // Methods:
  25469. void ClearDataLost();
  25470. bool Create();
  25471. Array<uint8> GetByteCode() const;
  25472. uint64 GetElementHash() const;
  25473. String GetFullName() const;
  25474. uint GetGPUObjectName() const;
  25475. Graphics GetGraphics() const;
  25476. Shader GetOwner() const;
  25477. ShaderType GetShaderType() const;
  25478. bool HasParameter(StringHash) const;
  25479. bool HasPendingData() const;
  25480. bool HasTextureUnit(TextureUnit) const;
  25481. bool IsDataLost() const;
  25482. void OnDeviceLost();
  25483. void OnDeviceReset();
  25484. operator RefCounted() const;
  25485. int Refs() const;
  25486. void Release();
  25487. void SetDefines(const String&);
  25488. void SetName(const String&);
  25489. const String& GetCompilerOutput() const;
  25490. const String& GetDefines() const;
  25491. const String& GetDefinesClipPlane();
  25492. const String& GetName() const;
  25493. int WeakRefs() const;
  25494. operator const RefCounted() const;
  25495. // Properties:
  25496. /* readonly */
  25497. bool dataLost;
  25498. /* readonly */
  25499. int refs;
  25500. /* readonly */
  25501. int weakRefs;
  25502. };
  25503. class ShadowBatchQueue
  25504. {
  25505. public:
  25506. ~ShadowBatchQueue();
  25507. ShadowBatchQueue();
  25508. // Methods:
  25509. ShadowBatchQueue& operator=(const ShadowBatchQueue&);
  25510. // Properties:
  25511. float farSplit;
  25512. float nearSplit;
  25513. BatchQueue shadowBatches;
  25514. IntRect shadowViewport;
  25515. };
  25516. class SimpleNavBuildData
  25517. {
  25518. public:
  25519. ~SimpleNavBuildData();
  25520. SimpleNavBuildData();
  25521. // Methods:
  25522. SimpleNavBuildData& operator=(const SimpleNavBuildData&);
  25523. // Properties:
  25524. BoundingBox worldBoundingBox;
  25525. };
  25526. class Skeleton
  25527. {
  25528. public:
  25529. // Methods:
  25530. Skeleton& operator=(const Skeleton&);
  25531. void ClearBones();
  25532. void Define(const Skeleton&);
  25533. Bone GetBone(const String&);
  25534. Bone GetBone(const StringHash&);
  25535. Bone GetBone(int);
  25536. int GetBoneIndex(Bone) const;
  25537. int GetBoneIndex(const String&) const;
  25538. int GetBoneIndex(const StringHash&) const;
  25539. Bone GetBoneParent(Bone);
  25540. int GetNumBones() const;
  25541. Bone GetRootBone();
  25542. bool Load(Deserializer&);
  25543. void Reset();
  25544. void ResetSilent();
  25545. bool Save(Serializer&) const;
  25546. void SetRootBoneIndex(int);
  25547. // Properties:
  25548. /* readonly */
  25549. Array<Bone> bones;
  25550. /* readonly */
  25551. int numBones;
  25552. /* readonly */
  25553. Bone rootBone;
  25554. };
  25555. class Skybox
  25556. {
  25557. public:
  25558. Skybox();
  25559. // Methods:
  25560. void AddLight(Light);
  25561. void AddVertexLight(Light);
  25562. void AllocateNetworkState();
  25563. operator Animatable() const;
  25564. void ApplyAttributes();
  25565. void ApplyMaterialList(const String& = String :: EMPTY);
  25566. const BoundingBox& GetBoundingBox() const;
  25567. const BoundingBox& GetWorldBoundingBox();
  25568. void CleanupConnection(Connection);
  25569. operator Component() const;
  25570. void DrawDebugGeometry(DebugRenderer, bool);
  25571. bool DrawOcclusion(OcclusionBuffer);
  25572. operator Drawable() const;
  25573. bool GetAnimationEnabled() const;
  25574. Variant GetAttribute(const String&) const;
  25575. Variant GetAttribute(uint) const;
  25576. ValueAnimation GetAttributeAnimation(const String&) const;
  25577. float GetAttributeAnimationSpeed(const String&) const;
  25578. float GetAttributeAnimationTime(const String&) const;
  25579. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  25580. Variant GetAttributeDefault(const String&) const;
  25581. Variant GetAttributeDefault(uint) const;
  25582. Array<SourceBatch> GetBatches() const;
  25583. bool GetBlockEvents() const;
  25584. bool GetCastShadows() const;
  25585. Component GetComponent(StringHash) const;
  25586. float GetDistance() const;
  25587. float GetDrawDistance() const;
  25588. uint8 GetDrawableFlags() const;
  25589. VariantMap& GetEventDataMap() const;
  25590. Object GetEventSender() const;
  25591. Light GetFirstLight() const;
  25592. uint GetID() const;
  25593. bool GetInterceptNetworkUpdate(const String&) const;
  25594. uint GetLightMask() const;
  25595. Array<Light> GetLights() const;
  25596. float GetLodBias() const;
  25597. float GetLodDistance() const;
  25598. Geometry GetLodGeometry(uint, uint);
  25599. Material GetMaterial() const;
  25600. Material GetMaterial(uint) const;
  25601. uint GetMaxLights() const;
  25602. float GetMaxZ() const;
  25603. float GetMinZ() const;
  25604. Model GetModel() const;
  25605. ResourceRef GetModelAttr() const;
  25606. Node GetNode() const;
  25607. uint GetNumAttributes() const;
  25608. uint GetNumGeometries() const;
  25609. uint GetNumNetworkAttributes() const;
  25610. uint GetNumOccluderTriangles();
  25611. ObjectAnimation GetObjectAnimation() const;
  25612. ResourceRef GetObjectAnimationAttr() const;
  25613. uint GetOcclusionLodLevel() const;
  25614. Scene GetScene() const;
  25615. float GetShadowDistance() const;
  25616. uint GetShadowMask() const;
  25617. float GetSortValue() const;
  25618. Object GetSubsystem(StringHash) const;
  25619. StringHash GetType() const;
  25620. UpdateGeometryType GetUpdateGeometryType();
  25621. Array<Light> GetVertexLights() const;
  25622. uint GetViewMask() const;
  25623. Zone GetZone() const;
  25624. uint GetZoneMask() const;
  25625. bool HasBasePass(uint) const;
  25626. bool HasEventHandlers() const;
  25627. bool HasSubscribedToEvent(Object, StringHash) const;
  25628. bool HasSubscribedToEvent(StringHash) const;
  25629. bool IsEnabled() const;
  25630. bool IsEnabledEffective() const;
  25631. bool IsInView() const;
  25632. bool IsInView(Camera) const;
  25633. bool IsInView(const FrameInfo&, bool = false) const;
  25634. bool IsInside(const Vector3&) const;
  25635. bool IsInsideLocal(const Vector3&) const;
  25636. bool IsInstanceOf(StringHash) const;
  25637. bool IsOccludee() const;
  25638. bool IsOccluder() const;
  25639. bool IsReplicated() const;
  25640. bool IsTemporary() const;
  25641. bool IsZoneDirty() const;
  25642. void LimitLights();
  25643. void LimitVertexLights(bool);
  25644. bool Load(Deserializer&);
  25645. bool LoadJSON(const JSONValue&);
  25646. bool LoadXML(const XMLElement&);
  25647. void MarkForUpdate();
  25648. void MarkInView(const FrameInfo&);
  25649. void MarkInView(int);
  25650. void MarkNetworkUpdate();
  25651. operator Object() const;
  25652. void OnEvent(Object, StringHash, VariantMap&);
  25653. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  25654. void OnSetAttribute(const AttributeInfo&, const Variant&);
  25655. void OnSetEnabled();
  25656. void PrepareNetworkUpdate();
  25657. bool ReadDeltaUpdate(Deserializer&);
  25658. bool ReadLatestDataUpdate(Deserializer&);
  25659. operator RefCounted() const;
  25660. int Refs() const;
  25661. void Remove();
  25662. void RemoveAttributeAnimation(const String&);
  25663. void RemoveInstanceDefault();
  25664. void RemoveObjectAnimation();
  25665. void ResetToDefault();
  25666. const ResourceRefList& GetMaterialsAttr() const;
  25667. bool Save(Serializer&) const;
  25668. bool SaveDefaultAttributes() const;
  25669. bool SaveJSON(JSONValue&) const;
  25670. bool SaveXML(XMLElement&) const;
  25671. void SendEvent(StringHash);
  25672. void SendEvent(StringHash, VariantMap&);
  25673. operator Serializable() const;
  25674. void SetAnimationEnabled(bool);
  25675. void SetAnimationTime(float);
  25676. bool SetAttribute(const String&, const Variant&);
  25677. bool SetAttribute(uint, const Variant&);
  25678. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  25679. void SetAttributeAnimationSpeed(const String&, float);
  25680. void SetAttributeAnimationTime(const String&, float);
  25681. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  25682. void SetBasePass(uint);
  25683. void SetBlockEvents(bool);
  25684. void SetCastShadows(bool);
  25685. void SetDrawDistance(float);
  25686. void SetEnabled(bool);
  25687. void SetGlobalVar(StringHash, const Variant&);
  25688. void SetInstanceDefault(bool);
  25689. void SetInterceptNetworkUpdate(const String&, bool);
  25690. void SetLightMask(uint);
  25691. void SetLodBias(float);
  25692. void SetMaterial(Material);
  25693. bool SetMaterial(uint, Material);
  25694. void SetMaterialsAttr(const ResourceRefList&);
  25695. void SetMaxLights(uint);
  25696. void SetMinMaxZ(float, float);
  25697. void SetModel(Model);
  25698. void SetModelAttr(const ResourceRef&);
  25699. void SetObjectAnimation(ObjectAnimation);
  25700. void SetObjectAnimationAttr(const ResourceRef&);
  25701. void SetOccludee(bool);
  25702. void SetOccluder(bool);
  25703. void SetOcclusionLodLevel(uint);
  25704. void SetShadowDistance(float);
  25705. void SetShadowMask(uint);
  25706. void SetSortValue(float);
  25707. void SetTemporary(bool);
  25708. void SetViewMask(uint);
  25709. void SetZone(Zone, bool = false);
  25710. void SetZoneMask(uint);
  25711. operator StaticModel() const;
  25712. const String& GetCategory() const;
  25713. const String& GetTypeName() const;
  25714. void UnsubscribeFromAllEvents();
  25715. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  25716. void UnsubscribeFromEvent(Object, StringHash);
  25717. void UnsubscribeFromEvent(StringHash);
  25718. void UnsubscribeFromEvents(Object);
  25719. void Update(const FrameInfo&);
  25720. void UpdateBatches(const FrameInfo&);
  25721. void UpdateGeometry(const FrameInfo&);
  25722. const Variant& GetGlobalVar(StringHash) const;
  25723. const VariantMap& GetGlobalVars() const;
  25724. int WeakRefs() const;
  25725. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  25726. void WriteInitialDeltaUpdate(Serializer&, uint8);
  25727. void WriteLatestDataUpdate(Serializer&, uint8);
  25728. operator const Animatable() const;
  25729. operator const Component() const;
  25730. operator const Drawable() const;
  25731. operator const Object() const;
  25732. operator const RefCounted() const;
  25733. operator const Serializable() const;
  25734. operator const StaticModel() const;
  25735. // Properties:
  25736. bool animationEnabled;
  25737. /* readonly */
  25738. Array<Variant> attributeDefaults;
  25739. /* readonly */
  25740. Array<AttributeInfo> attributeInfos;
  25741. Array<Variant> attributes;
  25742. /* readonly */
  25743. BoundingBox boundingBox;
  25744. bool castShadows;
  25745. /* readonly */
  25746. String category;
  25747. float drawDistance;
  25748. bool enabled;
  25749. /* readonly */
  25750. bool enabledEffective;
  25751. Array<Variant> globalVar;
  25752. /* readonly */
  25753. VariantMap globalVars;
  25754. /* readonly */
  25755. uint id;
  25756. /* readonly */
  25757. bool inView;
  25758. uint lightMask;
  25759. float lodBias;
  25760. Material material;
  25761. Array<Material> materials;
  25762. uint maxLights;
  25763. Model model;
  25764. /* readonly */
  25765. Node node;
  25766. /* readonly */
  25767. uint numAttributes;
  25768. /* readonly */
  25769. uint numGeometries;
  25770. ObjectAnimation objectAnimation;
  25771. bool occludee;
  25772. bool occluder;
  25773. uint occlusionLodLevel;
  25774. /* readonly */
  25775. int refs;
  25776. /* readonly */
  25777. bool replicated;
  25778. float shadowDistance;
  25779. uint shadowMask;
  25780. bool temporary;
  25781. /* readonly */
  25782. StringHash type;
  25783. /* readonly */
  25784. String typeName;
  25785. uint viewMask;
  25786. /* readonly */
  25787. int weakRefs;
  25788. /* readonly */
  25789. BoundingBox worldBoundingBox;
  25790. /* readonly */
  25791. Zone zone;
  25792. uint zoneMask;
  25793. };
  25794. class Slider
  25795. {
  25796. public:
  25797. Slider();
  25798. // Methods:
  25799. void AddChild(UIElement);
  25800. void AddTag(const String&);
  25801. void AddTags(Array<String>);
  25802. void AddTags(const String&, int8 = ';');
  25803. void AdjustScissor(IntRect&);
  25804. void AllocateNetworkState();
  25805. operator Animatable() const;
  25806. void ApplyAttributes();
  25807. operator BorderImage() const;
  25808. void BringToFront();
  25809. void ChangeValue(float);
  25810. const Color& GetColor(Corner) const;
  25811. const Color& GetColorAttr() const;
  25812. const Color& GetDerivedColor() const;
  25813. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  25814. void DisableLayoutUpdate();
  25815. IntVector2 ElementToScreen(const IntVector2&);
  25816. void EnableLayoutUpdate();
  25817. bool FilterAttributes(XMLElement&) const;
  25818. int FindChild(UIElement) const;
  25819. bool GetAnimationEnabled() const;
  25820. Variant GetAttribute(const String&) const;
  25821. Variant GetAttribute(uint) const;
  25822. ValueAnimation GetAttributeAnimation(const String&) const;
  25823. float GetAttributeAnimationSpeed(const String&) const;
  25824. float GetAttributeAnimationTime(const String&) const;
  25825. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  25826. Variant GetAttributeDefault(const String&) const;
  25827. Variant GetAttributeDefault(uint) const;
  25828. BlendMode GetBlendMode() const;
  25829. bool GetBlockEvents() const;
  25830. bool GetBringToBack() const;
  25831. bool GetBringToFront() const;
  25832. UIElement GetChild(const String&, bool = false) const;
  25833. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  25834. UIElement GetChild(int) const;
  25835. Array<UIElement> GetChildren() const;
  25836. Array<UIElement> GetChildren(bool) const;
  25837. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  25838. bool GetClipChildren() const;
  25839. IntRect GetCombinedScreenRect();
  25840. XMLFile GetDefaultStyle(bool = true) const;
  25841. float GetDerivedOpacity() const;
  25842. uint GetDragButtonCombo() const;
  25843. int GetDragButtonCount() const;
  25844. uint GetDragDropMode() const;
  25845. IntVector2 GetEffectiveMinSize() const;
  25846. UIElement GetElementEventSender() const;
  25847. bool GetEnableAnchor() const;
  25848. VariantMap& GetEventDataMap() const;
  25849. Object GetEventSender() const;
  25850. FocusMode GetFocusMode() const;
  25851. int GetHeight() const;
  25852. HorizontalAlignment GetHorizontalAlignment() const;
  25853. int GetIndent() const;
  25854. int GetIndentSpacing() const;
  25855. int GetIndentWidth() const;
  25856. bool GetInterceptNetworkUpdate(const String&) const;
  25857. BorderImage GetKnob() const;
  25858. int GetLayoutElementMaxSize() const;
  25859. LayoutMode GetLayoutMode() const;
  25860. int GetLayoutSpacing() const;
  25861. Material GetMaterial() const;
  25862. ResourceRef GetMaterialAttr() const;
  25863. int GetMaxHeight() const;
  25864. int GetMaxWidth() const;
  25865. int GetMinHeight() const;
  25866. int GetMinWidth() const;
  25867. uint GetNumAttributes() const;
  25868. int GetNumChildren(bool = false) const;
  25869. uint GetNumNetworkAttributes() const;
  25870. ObjectAnimation GetObjectAnimation() const;
  25871. ResourceRef GetObjectAnimationAttr() const;
  25872. float GetOpacity() const;
  25873. Orientation GetOrientation() const;
  25874. UIElement GetParent() const;
  25875. int GetPriority() const;
  25876. float GetRange() const;
  25877. float GetRepeatRate() const;
  25878. UIElement GetRoot() const;
  25879. bool GetSortChildren() const;
  25880. Object GetSubsystem(StringHash) const;
  25881. Array<String> GetTags() const;
  25882. Texture GetTexture() const;
  25883. ResourceRef GetTextureAttr() const;
  25884. TraversalMode GetTraversalMode() const;
  25885. StringHash GetType() const;
  25886. bool GetUseDerivedOpacity() const;
  25887. float GetValue() const;
  25888. VerticalAlignment GetVerticalAlignment() const;
  25889. int GetWidth() const;
  25890. bool HasColorGradient() const;
  25891. bool HasEventHandlers() const;
  25892. bool HasFocus() const;
  25893. bool HasSubscribedToEvent(Object, StringHash) const;
  25894. bool HasSubscribedToEvent(StringHash) const;
  25895. bool HasTag(const String&) const;
  25896. void InsertChild(int, UIElement);
  25897. const IntRect& GetBorder() const;
  25898. const IntRect& GetClipBorder() const;
  25899. const IntRect& GetImageBorder() const;
  25900. const IntRect& GetImageRect() const;
  25901. const IntRect& GetLayoutBorder() const;
  25902. const IntVector2& GetChildOffset() const;
  25903. const IntVector2& GetDisabledOffset() const;
  25904. const IntVector2& GetHoverOffset() const;
  25905. const IntVector2& GetMaxOffset() const;
  25906. const IntVector2& GetMaxSize() const;
  25907. const IntVector2& GetMinOffset() const;
  25908. const IntVector2& GetMinSize() const;
  25909. const IntVector2& GetPosition() const;
  25910. const IntVector2& GetScreenPosition() const;
  25911. const IntVector2& GetSize() const;
  25912. bool IsChildOf(UIElement) const;
  25913. bool IsEditable() const;
  25914. bool IsElementEventSender() const;
  25915. bool IsEnabled() const;
  25916. bool IsEnabledSelf() const;
  25917. bool IsFixedHeight() const;
  25918. bool IsFixedSize() const;
  25919. bool IsFixedWidth() const;
  25920. bool IsHovering() const;
  25921. bool IsInside(IntVector2, bool);
  25922. bool IsInsideCombined(IntVector2, bool);
  25923. bool IsInstanceOf(StringHash) const;
  25924. bool IsInternal() const;
  25925. bool IsSelected() const;
  25926. bool IsTemporary() const;
  25927. bool IsTiled() const;
  25928. bool IsVisible() const;
  25929. bool IsVisibleEffective() const;
  25930. bool IsWheelHandler() const;
  25931. bool IsWithinScissor(const IntRect&);
  25932. bool Load(Deserializer&);
  25933. UIElement LoadChildXML(XMLFile, XMLFile);
  25934. UIElement LoadChildXML(const XMLElement&, XMLFile);
  25935. bool LoadJSON(const JSONValue&);
  25936. bool LoadXML(Deserializer&);
  25937. bool LoadXML(File);
  25938. bool LoadXML(VectorBuffer&);
  25939. bool LoadXML(XMLFile, XMLFile);
  25940. bool LoadXML(const XMLElement&);
  25941. bool LoadXML(const XMLElement&, XMLFile);
  25942. void MarkNetworkUpdate();
  25943. operator Object() const;
  25944. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  25945. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  25946. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  25947. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25948. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25949. bool OnDragDropFinish(UIElement);
  25950. bool OnDragDropTest(UIElement);
  25951. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25952. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25953. void OnEvent(Object, StringHash, VariantMap&);
  25954. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  25955. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  25956. void OnIndentSet();
  25957. void OnKey(uint, uint, uint);
  25958. void OnPositionSet(const IntVector2&);
  25959. void OnResize(const IntVector2&, const IntVector2&);
  25960. void OnSetAttribute(const AttributeInfo&, const Variant&);
  25961. void OnSetEditable();
  25962. void OnTextInput(const String&);
  25963. void OnWheel(int, uint, uint);
  25964. bool ReadDeltaUpdate(Deserializer&);
  25965. bool ReadLatestDataUpdate(Deserializer&);
  25966. operator RefCounted() const;
  25967. int Refs() const;
  25968. void Remove();
  25969. void RemoveAllChildren();
  25970. void RemoveAllTags();
  25971. void RemoveAttributeAnimation(const String&);
  25972. void RemoveChild(UIElement, int = 0);
  25973. void RemoveChild(uint);
  25974. void RemoveChildAtIndex(int);
  25975. void RemoveInstanceDefault();
  25976. void RemoveObjectAnimation();
  25977. bool RemoveTag(const String&);
  25978. void ResetDeepEnabled();
  25979. void ResetToDefault();
  25980. bool Save(Serializer&) const;
  25981. bool SaveDefaultAttributes() const;
  25982. bool SaveJSON(JSONValue&) const;
  25983. bool SaveXML(File, const String& indentation = "\t");
  25984. bool SaveXML(Serializer&, const String& = "\t") const;
  25985. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  25986. bool SaveXML(XMLElement&) const;
  25987. IntVector2 ScreenToElement(const IntVector2&);
  25988. void SendEvent(StringHash);
  25989. void SendEvent(StringHash, VariantMap&);
  25990. operator Serializable() const;
  25991. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  25992. void SetAnimationEnabled(bool);
  25993. void SetAnimationTime(float);
  25994. bool SetAttribute(const String&, const Variant&);
  25995. bool SetAttribute(uint, const Variant&);
  25996. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  25997. void SetAttributeAnimationSpeed(const String&, float);
  25998. void SetAttributeAnimationTime(const String&, float);
  25999. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26000. void SetBlendMode(BlendMode);
  26001. void SetBlockEvents(bool);
  26002. void SetBorder(const IntRect&);
  26003. void SetBringToBack(bool);
  26004. void SetBringToFront(bool);
  26005. void SetChildOffset(const IntVector2&);
  26006. void SetClipBorder(const IntRect&);
  26007. void SetClipChildren(bool);
  26008. void SetColor(Corner, const Color&);
  26009. void SetColor(const Color&);
  26010. void SetDeepEnabled(bool);
  26011. void SetDefaultStyle(XMLFile);
  26012. void SetDisabledOffset(const IntVector2&);
  26013. void SetDisabledOffset(int, int);
  26014. void SetDragDropMode(uint);
  26015. void SetEditable(bool);
  26016. void SetElementEventSender(bool);
  26017. void SetEnableAnchor(bool);
  26018. void SetEnabled(bool);
  26019. void SetEnabledRecursive(bool);
  26020. void SetFixedHeight(int);
  26021. void SetFixedSize(const IntVector2&);
  26022. void SetFixedSize(int, int);
  26023. void SetFixedWidth(int);
  26024. void SetFocus(bool);
  26025. void SetFocusMode(FocusMode);
  26026. void SetFullImageRect();
  26027. void SetGlobalVar(StringHash, const Variant&);
  26028. void SetHeight(int);
  26029. void SetHorizontalAlignment(HorizontalAlignment);
  26030. void SetHoverOffset(const IntVector2&);
  26031. void SetHoverOffset(int, int);
  26032. void SetHovering(bool);
  26033. void SetImageBorder(const IntRect&);
  26034. void SetImageRect(const IntRect&);
  26035. void SetIndent(int);
  26036. void SetIndentSpacing(int);
  26037. void SetInstanceDefault(bool);
  26038. void SetInterceptNetworkUpdate(const String&, bool);
  26039. void SetInternal(bool);
  26040. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  26041. void SetLayoutBorder(const IntRect&);
  26042. void SetLayoutFlexScale(const Vector2&);
  26043. void SetLayoutMode(LayoutMode);
  26044. void SetLayoutSpacing(int);
  26045. void SetMaterial(Material);
  26046. void SetMaterialAttr(const ResourceRef&);
  26047. void SetMaxAnchor(const Vector2&);
  26048. void SetMaxAnchor(float, float);
  26049. void SetMaxHeight(int);
  26050. void SetMaxOffset(const IntVector2&);
  26051. void SetMaxSize(const IntVector2&);
  26052. void SetMaxSize(int, int);
  26053. void SetMaxWidth(int);
  26054. void SetMinAnchor(const Vector2&);
  26055. void SetMinAnchor(float, float);
  26056. void SetMinHeight(int);
  26057. void SetMinOffset(const IntVector2&);
  26058. void SetMinSize(const IntVector2&);
  26059. void SetMinSize(int, int);
  26060. void SetMinWidth(int);
  26061. void SetName(const String&);
  26062. void SetObjectAnimation(ObjectAnimation);
  26063. void SetObjectAnimationAttr(const ResourceRef&);
  26064. void SetOpacity(float);
  26065. void SetOrientation(Orientation);
  26066. void SetParent(UIElement, int = ENDPOS);
  26067. void SetPivot(const Vector2&);
  26068. void SetPivot(float, float);
  26069. void SetPosition(const IntVector2&);
  26070. void SetPosition(int, int);
  26071. void SetPriority(int);
  26072. void SetRange(float);
  26073. void SetRenderTexture(Texture2D);
  26074. void SetRepeatRate(float);
  26075. void SetSelected(bool);
  26076. void SetSize(const IntVector2&);
  26077. void SetSize(int, int);
  26078. void SetSortChildren(bool);
  26079. bool SetStyle(const String&, XMLFile = null);
  26080. bool SetStyle(const XMLElement&);
  26081. bool SetStyleAuto(XMLFile = null);
  26082. void SetTags(Array<String>);
  26083. void SetTemporary(bool);
  26084. void SetTexture(Texture);
  26085. void SetTextureAttr(const ResourceRef&);
  26086. void SetTiled(bool);
  26087. void SetTraversalMode(TraversalMode);
  26088. void SetUseDerivedOpacity(bool);
  26089. void SetValue(float);
  26090. void SetVar(StringHash, const Variant&);
  26091. void SetVerticalAlignment(VerticalAlignment);
  26092. void SetVisible(bool);
  26093. void SetWidth(int);
  26094. void SortChildren();
  26095. const String& GetAppliedStyle() const;
  26096. const String& GetCategory() const;
  26097. const String& GetName() const;
  26098. const String& GetTypeName() const;
  26099. operator UIElement() const;
  26100. void UnsubscribeFromAllEvents();
  26101. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26102. void UnsubscribeFromEvent(Object, StringHash);
  26103. void UnsubscribeFromEvent(StringHash);
  26104. void UnsubscribeFromEvents(Object);
  26105. void Update(float);
  26106. void UpdateLayout();
  26107. const Variant& GetGlobalVar(StringHash) const;
  26108. const Variant& GetVar(const StringHash&) const;
  26109. const VariantMap& GetGlobalVars() const;
  26110. const VariantMap& GetVars() const;
  26111. const Vector2& GetLayoutFlexScale() const;
  26112. const Vector2& GetMaxAnchor() const;
  26113. const Vector2& GetMinAnchor() const;
  26114. const Vector2& GetPivot() const;
  26115. int WeakRefs() const;
  26116. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26117. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26118. void WriteLatestDataUpdate(Serializer&, uint8);
  26119. operator const Animatable() const;
  26120. operator const BorderImage() const;
  26121. operator const Object() const;
  26122. operator const RefCounted() const;
  26123. operator const Serializable() const;
  26124. operator const UIElement() const;
  26125. // Properties:
  26126. bool animationEnabled;
  26127. /* readonly */
  26128. Array<Variant> attributeDefaults;
  26129. /* readonly */
  26130. Array<AttributeInfo> attributeInfos;
  26131. Array<Variant> attributes;
  26132. BlendMode blendMode;
  26133. IntRect border;
  26134. bool bringToBack;
  26135. bool bringToFront;
  26136. /* readonly */
  26137. String category;
  26138. /* readonly */
  26139. IntVector2 childOffset;
  26140. /* readonly */
  26141. Array<UIElement> children;
  26142. IntRect clipBorder;
  26143. bool clipChildren;
  26144. /* writeonly */
  26145. Color color;
  26146. /* readonly */
  26147. bool colorGradient;
  26148. Array<Color> colors;
  26149. /* readonly */
  26150. IntRect combinedScreenRect;
  26151. XMLFile defaultStyle;
  26152. /* readonly */
  26153. float derivedOpacity;
  26154. IntVector2 disabledOffset;
  26155. /* readonly */
  26156. uint dragButtonCombo;
  26157. /* readonly */
  26158. int dragButtonCount;
  26159. uint dragDropMode;
  26160. bool editable;
  26161. bool elementEventSender;
  26162. bool enableAnchor;
  26163. bool enabled;
  26164. /* readonly */
  26165. bool enabledSelf;
  26166. /* readonly */
  26167. bool fixedHeight;
  26168. /* readonly */
  26169. bool fixedSize;
  26170. /* readonly */
  26171. bool fixedWidth;
  26172. bool focus;
  26173. FocusMode focusMode;
  26174. Array<Variant> globalVar;
  26175. /* readonly */
  26176. VariantMap globalVars;
  26177. int height;
  26178. HorizontalAlignment horizontalAlignment;
  26179. IntVector2 hoverOffset;
  26180. /* readonly */
  26181. bool hovering;
  26182. IntRect imageBorder;
  26183. IntRect imageRect;
  26184. int indent;
  26185. int indentSpacing;
  26186. /* readonly */
  26187. int indentWidth;
  26188. bool internal;
  26189. /* readonly */
  26190. BorderImage knob;
  26191. IntRect layoutBorder;
  26192. Vector2 layoutFlexScale;
  26193. LayoutMode layoutMode;
  26194. int layoutSpacing;
  26195. Material material;
  26196. Vector2 maxAnchor;
  26197. int maxHeight;
  26198. IntVector2 maxOffset;
  26199. IntVector2 maxSize;
  26200. int maxWidth;
  26201. Vector2 minAnchor;
  26202. int minHeight;
  26203. IntVector2 minOffset;
  26204. IntVector2 minSize;
  26205. int minWidth;
  26206. String name;
  26207. /* readonly */
  26208. uint numAllChildren;
  26209. /* readonly */
  26210. uint numAttributes;
  26211. /* readonly */
  26212. uint numChildren;
  26213. ObjectAnimation objectAnimation;
  26214. float opacity;
  26215. Orientation orientation;
  26216. UIElement parent;
  26217. Vector2 pivot;
  26218. IntVector2 position;
  26219. int priority;
  26220. float range;
  26221. /* readonly */
  26222. int refs;
  26223. float repeatRate;
  26224. /* readonly */
  26225. UIElement root;
  26226. /* readonly */
  26227. IntVector2 screenPosition;
  26228. bool selected;
  26229. IntVector2 size;
  26230. bool sortChildren;
  26231. String style;
  26232. /* readonly */
  26233. Array<String> tags;
  26234. bool temporary;
  26235. Texture texture;
  26236. bool tiled;
  26237. TraversalMode traversalMode;
  26238. /* readonly */
  26239. StringHash type;
  26240. /* readonly */
  26241. String typeName;
  26242. bool useDerivedOpacity;
  26243. float value;
  26244. /* readonly */
  26245. VariantMap vars;
  26246. VerticalAlignment verticalAlignment;
  26247. bool visible;
  26248. /* readonly */
  26249. bool visibleEffective;
  26250. /* readonly */
  26251. int weakRefs;
  26252. int width;
  26253. };
  26254. class SmoothedTransform
  26255. {
  26256. public:
  26257. SmoothedTransform();
  26258. // Methods:
  26259. void AllocateNetworkState();
  26260. operator Animatable() const;
  26261. void ApplyAttributes();
  26262. void CleanupConnection(Connection);
  26263. operator Component() const;
  26264. void DrawDebugGeometry(DebugRenderer, bool);
  26265. bool GetAnimationEnabled() const;
  26266. Variant GetAttribute(const String&) const;
  26267. Variant GetAttribute(uint) const;
  26268. ValueAnimation GetAttributeAnimation(const String&) const;
  26269. float GetAttributeAnimationSpeed(const String&) const;
  26270. float GetAttributeAnimationTime(const String&) const;
  26271. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26272. Variant GetAttributeDefault(const String&) const;
  26273. Variant GetAttributeDefault(uint) const;
  26274. bool GetBlockEvents() const;
  26275. Component GetComponent(StringHash) const;
  26276. VariantMap& GetEventDataMap() const;
  26277. Object GetEventSender() const;
  26278. uint GetID() const;
  26279. bool GetInterceptNetworkUpdate(const String&) const;
  26280. Node GetNode() const;
  26281. uint GetNumAttributes() const;
  26282. uint GetNumNetworkAttributes() const;
  26283. ObjectAnimation GetObjectAnimation() const;
  26284. ResourceRef GetObjectAnimationAttr() const;
  26285. Scene GetScene() const;
  26286. Object GetSubsystem(StringHash) const;
  26287. Vector3 GetTargetWorldPosition() const;
  26288. Quaternion GetTargetWorldRotation() const;
  26289. StringHash GetType() const;
  26290. bool HasEventHandlers() const;
  26291. bool HasSubscribedToEvent(Object, StringHash) const;
  26292. bool HasSubscribedToEvent(StringHash) const;
  26293. bool IsEnabled() const;
  26294. bool IsEnabledEffective() const;
  26295. bool IsInProgress() const;
  26296. bool IsInstanceOf(StringHash) const;
  26297. bool IsReplicated() const;
  26298. bool IsTemporary() const;
  26299. bool Load(Deserializer&);
  26300. bool LoadJSON(const JSONValue&);
  26301. bool LoadXML(const XMLElement&);
  26302. void MarkNetworkUpdate();
  26303. operator Object() const;
  26304. void OnEvent(Object, StringHash, VariantMap&);
  26305. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26306. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26307. void OnSetEnabled();
  26308. void PrepareNetworkUpdate();
  26309. const Quaternion& GetTargetRotation() const;
  26310. bool ReadDeltaUpdate(Deserializer&);
  26311. bool ReadLatestDataUpdate(Deserializer&);
  26312. operator RefCounted() const;
  26313. int Refs() const;
  26314. void Remove();
  26315. void RemoveAttributeAnimation(const String&);
  26316. void RemoveInstanceDefault();
  26317. void RemoveObjectAnimation();
  26318. void ResetToDefault();
  26319. bool Save(Serializer&) const;
  26320. bool SaveDefaultAttributes() const;
  26321. bool SaveJSON(JSONValue&) const;
  26322. bool SaveXML(XMLElement&) const;
  26323. void SendEvent(StringHash);
  26324. void SendEvent(StringHash, VariantMap&);
  26325. operator Serializable() const;
  26326. void SetAnimationEnabled(bool);
  26327. void SetAnimationTime(float);
  26328. bool SetAttribute(const String&, const Variant&);
  26329. bool SetAttribute(uint, const Variant&);
  26330. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26331. void SetAttributeAnimationSpeed(const String&, float);
  26332. void SetAttributeAnimationTime(const String&, float);
  26333. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26334. void SetBlockEvents(bool);
  26335. void SetEnabled(bool);
  26336. void SetGlobalVar(StringHash, const Variant&);
  26337. void SetInstanceDefault(bool);
  26338. void SetInterceptNetworkUpdate(const String&, bool);
  26339. void SetObjectAnimation(ObjectAnimation);
  26340. void SetObjectAnimationAttr(const ResourceRef&);
  26341. void SetTargetPosition(const Vector3&);
  26342. void SetTargetRotation(const Quaternion&);
  26343. void SetTargetWorldPosition(const Vector3&);
  26344. void SetTargetWorldRotation(const Quaternion&);
  26345. void SetTemporary(bool);
  26346. const String& GetCategory() const;
  26347. const String& GetTypeName() const;
  26348. void UnsubscribeFromAllEvents();
  26349. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26350. void UnsubscribeFromEvent(Object, StringHash);
  26351. void UnsubscribeFromEvent(StringHash);
  26352. void UnsubscribeFromEvents(Object);
  26353. void Update(float, float);
  26354. const Variant& GetGlobalVar(StringHash) const;
  26355. const VariantMap& GetGlobalVars() const;
  26356. const Vector3& GetTargetPosition() const;
  26357. int WeakRefs() const;
  26358. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26359. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26360. void WriteLatestDataUpdate(Serializer&, uint8);
  26361. operator const Animatable() const;
  26362. operator const Component() const;
  26363. operator const Object() const;
  26364. operator const RefCounted() const;
  26365. operator const Serializable() const;
  26366. // Properties:
  26367. bool animationEnabled;
  26368. /* readonly */
  26369. Array<Variant> attributeDefaults;
  26370. /* readonly */
  26371. Array<AttributeInfo> attributeInfos;
  26372. Array<Variant> attributes;
  26373. /* readonly */
  26374. String category;
  26375. bool enabled;
  26376. /* readonly */
  26377. bool enabledEffective;
  26378. Array<Variant> globalVar;
  26379. /* readonly */
  26380. VariantMap globalVars;
  26381. /* readonly */
  26382. uint id;
  26383. /* readonly */
  26384. bool inProgress;
  26385. /* readonly */
  26386. Node node;
  26387. /* readonly */
  26388. uint numAttributes;
  26389. ObjectAnimation objectAnimation;
  26390. /* readonly */
  26391. int refs;
  26392. /* readonly */
  26393. bool replicated;
  26394. Vector3 targetPosition;
  26395. Quaternion targetRotation;
  26396. Vector3 targetWorldPosition;
  26397. Quaternion targetWorldRotation;
  26398. bool temporary;
  26399. /* readonly */
  26400. StringHash type;
  26401. /* readonly */
  26402. String typeName;
  26403. /* readonly */
  26404. int weakRefs;
  26405. };
  26406. class Sound
  26407. {
  26408. public:
  26409. Sound();
  26410. // Methods:
  26411. void AddMetadata(const String&, const Variant&);
  26412. bool BeginLoad(Deserializer&);
  26413. bool EndLoad();
  26414. void FixInterpolation();
  26415. AsyncLoadState GetAsyncLoadState() const;
  26416. bool GetBlockEvents() const;
  26417. uint GetDataSize() const;
  26418. SoundStream GetDecoderStream() const;
  26419. VariantMap& GetEventDataMap() const;
  26420. Object GetEventSender() const;
  26421. float GetFrequency() const;
  26422. uint GetIntFrequency() const;
  26423. float GetLength() const;
  26424. uint GetMemoryUse() const;
  26425. StringHash GetNameHash() const;
  26426. uint GetSampleSize() const;
  26427. Object GetSubsystem(StringHash) const;
  26428. StringHash GetType() const;
  26429. uint GetUseTimer();
  26430. bool HasEventHandlers() const;
  26431. bool HasMetadata() const;
  26432. bool HasSubscribedToEvent(Object, StringHash) const;
  26433. bool HasSubscribedToEvent(StringHash) const;
  26434. bool IsCompressed() const;
  26435. bool IsInstanceOf(StringHash) const;
  26436. bool IsLooped() const;
  26437. bool IsSixteenBit() const;
  26438. bool IsStereo() const;
  26439. bool Load(Deserializer&);
  26440. bool Load(File);
  26441. bool Load(VectorBuffer&);
  26442. bool Load(const String&);
  26443. bool LoadFile(const String&);
  26444. bool LoadOggVorbis(Deserializer&);
  26445. bool LoadRaw(Deserializer&);
  26446. bool LoadWav(Deserializer&);
  26447. operator Object() const;
  26448. void OnEvent(Object, StringHash, VariantMap&);
  26449. operator RefCounted() const;
  26450. int Refs() const;
  26451. void RemoveAllMetadata();
  26452. void RemoveMetadata(const String&);
  26453. void ResetUseTimer();
  26454. operator Resource() const;
  26455. operator ResourceWithMetadata() const;
  26456. bool Save(File) const;
  26457. bool Save(Serializer&) const;
  26458. bool Save(VectorBuffer&) const;
  26459. bool Save(const String&) const;
  26460. bool SaveFile(const String&) const;
  26461. void SendEvent(StringHash);
  26462. void SendEvent(StringHash, VariantMap&);
  26463. void SetAsyncLoadState(AsyncLoadState);
  26464. void SetBlockEvents(bool);
  26465. void SetFormat(uint, bool, bool);
  26466. void SetGlobalVar(StringHash, const Variant&);
  26467. void SetLoop(uint, uint);
  26468. void SetLooped(bool);
  26469. void SetMemoryUse(uint);
  26470. void SetName(const String&);
  26471. void SetSize(uint);
  26472. const String& GetCategory() const;
  26473. const String& GetName() const;
  26474. const String& GetTypeName() const;
  26475. void UnsubscribeFromAllEvents();
  26476. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26477. void UnsubscribeFromEvent(Object, StringHash);
  26478. void UnsubscribeFromEvent(StringHash);
  26479. void UnsubscribeFromEvents(Object);
  26480. const Variant& GetGlobalVar(StringHash) const;
  26481. const Variant& GetMetadata(const String&) const;
  26482. const VariantMap& GetGlobalVars() const;
  26483. int WeakRefs() const;
  26484. operator const Object() const;
  26485. operator const RefCounted() const;
  26486. operator const Resource() const;
  26487. operator const ResourceWithMetadata() const;
  26488. // Properties:
  26489. /* readonly */
  26490. String category;
  26491. /* readonly */
  26492. bool compressed;
  26493. /* readonly */
  26494. float frequency;
  26495. Array<Variant> globalVar;
  26496. /* readonly */
  26497. VariantMap globalVars;
  26498. /* readonly */
  26499. bool hasMetadata;
  26500. /* readonly */
  26501. float length;
  26502. bool looped;
  26503. /* readonly */
  26504. uint memoryUse;
  26505. Array<Variant> metadata;
  26506. String name;
  26507. /* readonly */
  26508. int refs;
  26509. /* readonly */
  26510. uint sampleSize;
  26511. /* readonly */
  26512. bool sixteenBit;
  26513. /* readonly */
  26514. bool stereo;
  26515. /* readonly */
  26516. StringHash type;
  26517. /* readonly */
  26518. String typeName;
  26519. /* readonly */
  26520. uint useTimer;
  26521. /* readonly */
  26522. int weakRefs;
  26523. };
  26524. class SoundListener
  26525. {
  26526. public:
  26527. SoundListener();
  26528. // Methods:
  26529. void AllocateNetworkState();
  26530. operator Animatable() const;
  26531. void ApplyAttributes();
  26532. void CleanupConnection(Connection);
  26533. operator Component() const;
  26534. void DrawDebugGeometry(DebugRenderer, bool);
  26535. bool GetAnimationEnabled() const;
  26536. Variant GetAttribute(const String&) const;
  26537. Variant GetAttribute(uint) const;
  26538. ValueAnimation GetAttributeAnimation(const String&) const;
  26539. float GetAttributeAnimationSpeed(const String&) const;
  26540. float GetAttributeAnimationTime(const String&) const;
  26541. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26542. Variant GetAttributeDefault(const String&) const;
  26543. Variant GetAttributeDefault(uint) const;
  26544. bool GetBlockEvents() const;
  26545. Component GetComponent(StringHash) const;
  26546. VariantMap& GetEventDataMap() const;
  26547. Object GetEventSender() const;
  26548. uint GetID() const;
  26549. bool GetInterceptNetworkUpdate(const String&) const;
  26550. Node GetNode() const;
  26551. uint GetNumAttributes() const;
  26552. uint GetNumNetworkAttributes() const;
  26553. ObjectAnimation GetObjectAnimation() const;
  26554. ResourceRef GetObjectAnimationAttr() const;
  26555. Scene GetScene() const;
  26556. Object GetSubsystem(StringHash) const;
  26557. StringHash GetType() const;
  26558. bool HasEventHandlers() const;
  26559. bool HasSubscribedToEvent(Object, StringHash) const;
  26560. bool HasSubscribedToEvent(StringHash) const;
  26561. bool IsEnabled() const;
  26562. bool IsEnabledEffective() const;
  26563. bool IsInstanceOf(StringHash) const;
  26564. bool IsReplicated() const;
  26565. bool IsTemporary() const;
  26566. bool Load(Deserializer&);
  26567. bool LoadJSON(const JSONValue&);
  26568. bool LoadXML(const XMLElement&);
  26569. void MarkNetworkUpdate();
  26570. operator Object() const;
  26571. void OnEvent(Object, StringHash, VariantMap&);
  26572. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26573. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26574. void OnSetEnabled();
  26575. void PrepareNetworkUpdate();
  26576. bool ReadDeltaUpdate(Deserializer&);
  26577. bool ReadLatestDataUpdate(Deserializer&);
  26578. operator RefCounted() const;
  26579. int Refs() const;
  26580. void Remove();
  26581. void RemoveAttributeAnimation(const String&);
  26582. void RemoveInstanceDefault();
  26583. void RemoveObjectAnimation();
  26584. void ResetToDefault();
  26585. bool Save(Serializer&) const;
  26586. bool SaveDefaultAttributes() const;
  26587. bool SaveJSON(JSONValue&) const;
  26588. bool SaveXML(XMLElement&) const;
  26589. void SendEvent(StringHash);
  26590. void SendEvent(StringHash, VariantMap&);
  26591. operator Serializable() const;
  26592. void SetAnimationEnabled(bool);
  26593. void SetAnimationTime(float);
  26594. bool SetAttribute(const String&, const Variant&);
  26595. bool SetAttribute(uint, const Variant&);
  26596. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26597. void SetAttributeAnimationSpeed(const String&, float);
  26598. void SetAttributeAnimationTime(const String&, float);
  26599. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26600. void SetBlockEvents(bool);
  26601. void SetEnabled(bool);
  26602. void SetGlobalVar(StringHash, const Variant&);
  26603. void SetInstanceDefault(bool);
  26604. void SetInterceptNetworkUpdate(const String&, bool);
  26605. void SetObjectAnimation(ObjectAnimation);
  26606. void SetObjectAnimationAttr(const ResourceRef&);
  26607. void SetTemporary(bool);
  26608. const String& GetCategory() const;
  26609. const String& GetTypeName() const;
  26610. void UnsubscribeFromAllEvents();
  26611. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26612. void UnsubscribeFromEvent(Object, StringHash);
  26613. void UnsubscribeFromEvent(StringHash);
  26614. void UnsubscribeFromEvents(Object);
  26615. const Variant& GetGlobalVar(StringHash) const;
  26616. const VariantMap& GetGlobalVars() const;
  26617. int WeakRefs() const;
  26618. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26619. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26620. void WriteLatestDataUpdate(Serializer&, uint8);
  26621. operator const Animatable() const;
  26622. operator const Component() const;
  26623. operator const Object() const;
  26624. operator const RefCounted() const;
  26625. operator const Serializable() const;
  26626. // Properties:
  26627. bool animationEnabled;
  26628. /* readonly */
  26629. Array<Variant> attributeDefaults;
  26630. /* readonly */
  26631. Array<AttributeInfo> attributeInfos;
  26632. Array<Variant> attributes;
  26633. /* readonly */
  26634. String category;
  26635. bool enabled;
  26636. /* readonly */
  26637. bool enabledEffective;
  26638. Array<Variant> globalVar;
  26639. /* readonly */
  26640. VariantMap globalVars;
  26641. /* readonly */
  26642. uint id;
  26643. /* readonly */
  26644. Node node;
  26645. /* readonly */
  26646. uint numAttributes;
  26647. ObjectAnimation objectAnimation;
  26648. /* readonly */
  26649. int refs;
  26650. /* readonly */
  26651. bool replicated;
  26652. bool temporary;
  26653. /* readonly */
  26654. StringHash type;
  26655. /* readonly */
  26656. String typeName;
  26657. /* readonly */
  26658. int weakRefs;
  26659. };
  26660. class SoundSource
  26661. {
  26662. public:
  26663. SoundSource();
  26664. // Methods:
  26665. void AllocateNetworkState();
  26666. operator Animatable() const;
  26667. void ApplyAttributes();
  26668. void CleanupConnection(Connection);
  26669. operator Component() const;
  26670. void DrawDebugGeometry(DebugRenderer, bool);
  26671. bool GetAnimationEnabled() const;
  26672. float GetAttenuation() const;
  26673. Variant GetAttribute(const String&) const;
  26674. Variant GetAttribute(uint) const;
  26675. ValueAnimation GetAttributeAnimation(const String&) const;
  26676. float GetAttributeAnimationSpeed(const String&) const;
  26677. float GetAttributeAnimationTime(const String&) const;
  26678. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26679. Variant GetAttributeDefault(const String&) const;
  26680. Variant GetAttributeDefault(uint) const;
  26681. AutoRemoveMode GetAutoRemoveMode() const;
  26682. bool GetBlockEvents() const;
  26683. Component GetComponent(StringHash) const;
  26684. VariantMap& GetEventDataMap() const;
  26685. Object GetEventSender() const;
  26686. float GetFrequency() const;
  26687. float GetGain() const;
  26688. uint GetID() const;
  26689. bool GetInterceptNetworkUpdate(const String&) const;
  26690. Node GetNode() const;
  26691. uint GetNumAttributes() const;
  26692. uint GetNumNetworkAttributes() const;
  26693. ObjectAnimation GetObjectAnimation() const;
  26694. ResourceRef GetObjectAnimationAttr() const;
  26695. float GetPanning() const;
  26696. int GetPositionAttr() const;
  26697. Scene GetScene() const;
  26698. Sound GetSound() const;
  26699. ResourceRef GetSoundAttr() const;
  26700. String GetSoundType() const;
  26701. Object GetSubsystem(StringHash) const;
  26702. float GetTimePosition() const;
  26703. StringHash GetType() const;
  26704. bool HasEventHandlers() const;
  26705. bool HasSubscribedToEvent(Object, StringHash) const;
  26706. bool HasSubscribedToEvent(StringHash) const;
  26707. bool IsEnabled() const;
  26708. bool IsEnabledEffective() const;
  26709. bool IsInstanceOf(StringHash) const;
  26710. bool IsPlaying() const;
  26711. bool IsReplicated() const;
  26712. bool IsTemporary() const;
  26713. bool Load(Deserializer&);
  26714. bool LoadJSON(const JSONValue&);
  26715. bool LoadXML(const XMLElement&);
  26716. void MarkNetworkUpdate();
  26717. operator Object() const;
  26718. void OnEvent(Object, StringHash, VariantMap&);
  26719. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26720. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26721. void OnSetEnabled();
  26722. void Play(Sound);
  26723. void Play(Sound, float);
  26724. void Play(Sound, float, float);
  26725. void Play(Sound, float, float, float);
  26726. void Play(SoundStream);
  26727. void PrepareNetworkUpdate();
  26728. bool ReadDeltaUpdate(Deserializer&);
  26729. bool ReadLatestDataUpdate(Deserializer&);
  26730. operator RefCounted() const;
  26731. int Refs() const;
  26732. void Remove();
  26733. void RemoveAttributeAnimation(const String&);
  26734. void RemoveInstanceDefault();
  26735. void RemoveObjectAnimation();
  26736. void ResetToDefault();
  26737. bool Save(Serializer&) const;
  26738. bool SaveDefaultAttributes() const;
  26739. bool SaveJSON(JSONValue&) const;
  26740. bool SaveXML(XMLElement&) const;
  26741. void Seek(float);
  26742. void SendEvent(StringHash);
  26743. void SendEvent(StringHash, VariantMap&);
  26744. operator Serializable() const;
  26745. void SetAnimationEnabled(bool);
  26746. void SetAnimationTime(float);
  26747. void SetAttenuation(float);
  26748. bool SetAttribute(const String&, const Variant&);
  26749. bool SetAttribute(uint, const Variant&);
  26750. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26751. void SetAttributeAnimationSpeed(const String&, float);
  26752. void SetAttributeAnimationTime(const String&, float);
  26753. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26754. void SetAutoRemoveMode(AutoRemoveMode);
  26755. void SetBlockEvents(bool);
  26756. void SetEnabled(bool);
  26757. void SetFrequency(float);
  26758. void SetGain(float);
  26759. void SetGlobalVar(StringHash, const Variant&);
  26760. void SetInstanceDefault(bool);
  26761. void SetInterceptNetworkUpdate(const String&, bool);
  26762. void SetObjectAnimation(ObjectAnimation);
  26763. void SetObjectAnimationAttr(const ResourceRef&);
  26764. void SetPanning(float);
  26765. void SetPlayingAttr(bool);
  26766. void SetPositionAttr(int);
  26767. void SetSoundAttr(const ResourceRef&);
  26768. void SetSoundType(const String&);
  26769. void SetTemporary(bool);
  26770. operator SoundSource3D() const;
  26771. void Stop();
  26772. const String& GetCategory() const;
  26773. const String& GetTypeName() const;
  26774. void UnsubscribeFromAllEvents();
  26775. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26776. void UnsubscribeFromEvent(Object, StringHash);
  26777. void UnsubscribeFromEvent(StringHash);
  26778. void UnsubscribeFromEvents(Object);
  26779. void Update(float);
  26780. void UpdateMasterGain();
  26781. const Variant& GetGlobalVar(StringHash) const;
  26782. const VariantMap& GetGlobalVars() const;
  26783. int WeakRefs() const;
  26784. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26785. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26786. void WriteLatestDataUpdate(Serializer&, uint8);
  26787. operator const Animatable() const;
  26788. operator const Component() const;
  26789. operator const Object() const;
  26790. operator const RefCounted() const;
  26791. operator const Serializable() const;
  26792. operator const SoundSource3D() const;
  26793. // Properties:
  26794. bool animationEnabled;
  26795. /* readonly */
  26796. float attenuation;
  26797. /* readonly */
  26798. Array<Variant> attributeDefaults;
  26799. /* readonly */
  26800. Array<AttributeInfo> attributeInfos;
  26801. Array<Variant> attributes;
  26802. AutoRemoveMode autoRemoveMode;
  26803. /* readonly */
  26804. String category;
  26805. bool enabled;
  26806. /* readonly */
  26807. bool enabledEffective;
  26808. float frequency;
  26809. float gain;
  26810. Array<Variant> globalVar;
  26811. /* readonly */
  26812. VariantMap globalVars;
  26813. /* readonly */
  26814. uint id;
  26815. /* readonly */
  26816. Node node;
  26817. /* readonly */
  26818. uint numAttributes;
  26819. ObjectAnimation objectAnimation;
  26820. float panning;
  26821. /* readonly */
  26822. bool playing;
  26823. /* readonly */
  26824. int refs;
  26825. /* readonly */
  26826. bool replicated;
  26827. /* readonly */
  26828. Sound sound;
  26829. String soundType;
  26830. bool temporary;
  26831. /* readonly */
  26832. float timePosition;
  26833. /* readonly */
  26834. StringHash type;
  26835. /* readonly */
  26836. String typeName;
  26837. /* readonly */
  26838. int weakRefs;
  26839. };
  26840. class SoundSource3D
  26841. {
  26842. public:
  26843. SoundSource3D();
  26844. // Methods:
  26845. void AllocateNetworkState();
  26846. operator Animatable() const;
  26847. void ApplyAttributes();
  26848. void CalculateAttenuation();
  26849. void CleanupConnection(Connection);
  26850. operator Component() const;
  26851. void DrawDebugGeometry(DebugRenderer, bool);
  26852. bool GetAnimationEnabled() const;
  26853. float GetAttenuation() const;
  26854. Variant GetAttribute(const String&) const;
  26855. Variant GetAttribute(uint) const;
  26856. ValueAnimation GetAttributeAnimation(const String&) const;
  26857. float GetAttributeAnimationSpeed(const String&) const;
  26858. float GetAttributeAnimationTime(const String&) const;
  26859. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  26860. Variant GetAttributeDefault(const String&) const;
  26861. Variant GetAttributeDefault(uint) const;
  26862. AutoRemoveMode GetAutoRemoveMode() const;
  26863. bool GetBlockEvents() const;
  26864. Component GetComponent(StringHash) const;
  26865. VariantMap& GetEventDataMap() const;
  26866. Object GetEventSender() const;
  26867. float GetFarDistance() const;
  26868. float GetFrequency() const;
  26869. float GetGain() const;
  26870. uint GetID() const;
  26871. float GetInnerAngle() const;
  26872. bool GetInterceptNetworkUpdate(const String&) const;
  26873. float GetNearDistance() const;
  26874. Node GetNode() const;
  26875. uint GetNumAttributes() const;
  26876. uint GetNumNetworkAttributes() const;
  26877. ObjectAnimation GetObjectAnimation() const;
  26878. ResourceRef GetObjectAnimationAttr() const;
  26879. float GetOuterAngle() const;
  26880. float GetPanning() const;
  26881. int GetPositionAttr() const;
  26882. Scene GetScene() const;
  26883. Sound GetSound() const;
  26884. ResourceRef GetSoundAttr() const;
  26885. String GetSoundType() const;
  26886. Object GetSubsystem(StringHash) const;
  26887. float GetTimePosition() const;
  26888. StringHash GetType() const;
  26889. bool HasEventHandlers() const;
  26890. bool HasSubscribedToEvent(Object, StringHash) const;
  26891. bool HasSubscribedToEvent(StringHash) const;
  26892. bool IsEnabled() const;
  26893. bool IsEnabledEffective() const;
  26894. bool IsInstanceOf(StringHash) const;
  26895. bool IsPlaying() const;
  26896. bool IsReplicated() const;
  26897. bool IsTemporary() const;
  26898. bool Load(Deserializer&);
  26899. bool LoadJSON(const JSONValue&);
  26900. bool LoadXML(const XMLElement&);
  26901. void MarkNetworkUpdate();
  26902. operator Object() const;
  26903. void OnEvent(Object, StringHash, VariantMap&);
  26904. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  26905. void OnSetAttribute(const AttributeInfo&, const Variant&);
  26906. void OnSetEnabled();
  26907. void Play(Sound);
  26908. void Play(Sound, float);
  26909. void Play(Sound, float, float);
  26910. void Play(Sound, float, float, float);
  26911. void Play(SoundStream);
  26912. void PrepareNetworkUpdate();
  26913. bool ReadDeltaUpdate(Deserializer&);
  26914. bool ReadLatestDataUpdate(Deserializer&);
  26915. operator RefCounted() const;
  26916. int Refs() const;
  26917. void Remove();
  26918. void RemoveAttributeAnimation(const String&);
  26919. void RemoveInstanceDefault();
  26920. void RemoveObjectAnimation();
  26921. void ResetToDefault();
  26922. float RollAngleoffFactor() const;
  26923. bool Save(Serializer&) const;
  26924. bool SaveDefaultAttributes() const;
  26925. bool SaveJSON(JSONValue&) const;
  26926. bool SaveXML(XMLElement&) const;
  26927. void Seek(float);
  26928. void SendEvent(StringHash);
  26929. void SendEvent(StringHash, VariantMap&);
  26930. operator Serializable() const;
  26931. void SetAngleAttenuation(float, float);
  26932. void SetAnimationEnabled(bool);
  26933. void SetAnimationTime(float);
  26934. void SetAttenuation(float);
  26935. bool SetAttribute(const String&, const Variant&);
  26936. bool SetAttribute(uint, const Variant&);
  26937. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  26938. void SetAttributeAnimationSpeed(const String&, float);
  26939. void SetAttributeAnimationTime(const String&, float);
  26940. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  26941. void SetAutoRemoveMode(AutoRemoveMode);
  26942. void SetBlockEvents(bool);
  26943. void SetDistanceAttenuation(float, float, float);
  26944. void SetEnabled(bool);
  26945. void SetFarDistance(float);
  26946. void SetFrequency(float);
  26947. void SetGain(float);
  26948. void SetGlobalVar(StringHash, const Variant&);
  26949. void SetInnerAngle(float);
  26950. void SetInstanceDefault(bool);
  26951. void SetInterceptNetworkUpdate(const String&, bool);
  26952. void SetNearDistance(float);
  26953. void SetObjectAnimation(ObjectAnimation);
  26954. void SetObjectAnimationAttr(const ResourceRef&);
  26955. void SetOuterAngle(float);
  26956. void SetPanning(float);
  26957. void SetPlayingAttr(bool);
  26958. void SetPositionAttr(int);
  26959. void SetRolloffFactor(float);
  26960. void SetSoundAttr(const ResourceRef&);
  26961. void SetSoundType(const String&);
  26962. void SetTemporary(bool);
  26963. operator SoundSource() const;
  26964. void Stop();
  26965. const String& GetCategory() const;
  26966. const String& GetTypeName() const;
  26967. void UnsubscribeFromAllEvents();
  26968. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  26969. void UnsubscribeFromEvent(Object, StringHash);
  26970. void UnsubscribeFromEvent(StringHash);
  26971. void UnsubscribeFromEvents(Object);
  26972. void Update(float);
  26973. void UpdateMasterGain();
  26974. const Variant& GetGlobalVar(StringHash) const;
  26975. const VariantMap& GetGlobalVars() const;
  26976. int WeakRefs() const;
  26977. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  26978. void WriteInitialDeltaUpdate(Serializer&, uint8);
  26979. void WriteLatestDataUpdate(Serializer&, uint8);
  26980. operator const Animatable() const;
  26981. operator const Component() const;
  26982. operator const Object() const;
  26983. operator const RefCounted() const;
  26984. operator const Serializable() const;
  26985. operator const SoundSource() const;
  26986. // Properties:
  26987. bool animationEnabled;
  26988. /* readonly */
  26989. float attenuation;
  26990. /* readonly */
  26991. Array<Variant> attributeDefaults;
  26992. /* readonly */
  26993. Array<AttributeInfo> attributeInfos;
  26994. Array<Variant> attributes;
  26995. AutoRemoveMode autoRemoveMode;
  26996. /* readonly */
  26997. String category;
  26998. bool enabled;
  26999. /* readonly */
  27000. bool enabledEffective;
  27001. float farDistance;
  27002. float frequency;
  27003. float gain;
  27004. Array<Variant> globalVar;
  27005. /* readonly */
  27006. VariantMap globalVars;
  27007. /* readonly */
  27008. uint id;
  27009. float innerAngle;
  27010. float nearDistance;
  27011. /* readonly */
  27012. Node node;
  27013. /* readonly */
  27014. uint numAttributes;
  27015. ObjectAnimation objectAnimation;
  27016. float outerAngle;
  27017. float panning;
  27018. /* readonly */
  27019. bool playing;
  27020. /* readonly */
  27021. int refs;
  27022. /* readonly */
  27023. bool replicated;
  27024. float rolloffFactor;
  27025. /* readonly */
  27026. Sound sound;
  27027. String soundType;
  27028. bool temporary;
  27029. /* readonly */
  27030. float timePosition;
  27031. /* readonly */
  27032. StringHash type;
  27033. /* readonly */
  27034. String typeName;
  27035. /* readonly */
  27036. int weakRefs;
  27037. };
  27038. class SoundStream
  27039. {
  27040. public:
  27041. // Methods:
  27042. operator BufferedSoundStream() const;
  27043. float GetFrequency() const;
  27044. uint GetIntFrequency() const;
  27045. uint GetSampleSize() const;
  27046. bool GetStopAtEnd() const;
  27047. bool IsSixteenBit() const;
  27048. bool IsStereo() const;
  27049. operator OggVorbisSoundStream() const;
  27050. operator RefCounted() const;
  27051. int Refs() const;
  27052. bool Seek(uint);
  27053. void SetFormat(uint, bool, bool);
  27054. void SetStopAtEnd(bool);
  27055. int WeakRefs() const;
  27056. operator const BufferedSoundStream() const;
  27057. operator const OggVorbisSoundStream() const;
  27058. operator const RefCounted() const;
  27059. // Properties:
  27060. /* readonly */
  27061. int refs;
  27062. /* readonly */
  27063. int weakRefs;
  27064. };
  27065. class SourceBatch
  27066. {
  27067. public:
  27068. ~SourceBatch();
  27069. SourceBatch();
  27070. SourceBatch(const SourceBatch&in);
  27071. // Methods:
  27072. SourceBatch& operator=(const SourceBatch&);
  27073. // Properties:
  27074. float distance;
  27075. GeometryType geometryType;
  27076. uint numWorldTransforms;
  27077. };
  27078. class SourceBatch2D
  27079. {
  27080. public:
  27081. ~SourceBatch2D();
  27082. SourceBatch2D();
  27083. // Methods:
  27084. SourceBatch2D& operator=(const SourceBatch2D&);
  27085. // Properties:
  27086. float distance;
  27087. int drawOrder;
  27088. };
  27089. class Sphere
  27090. {
  27091. public:
  27092. Sphere();
  27093. Sphere(const Sphere&in);
  27094. Sphere(const Vector3&in, float);
  27095. Sphere(const BoundingBox&in);
  27096. Sphere(const Frustum&in);
  27097. Sphere(const Polyhedron&in);
  27098. // Methods:
  27099. Sphere& operator=(const Sphere&);
  27100. bool operator==(const Sphere&) const;
  27101. void Clear();
  27102. void Define(const BoundingBox&);
  27103. void Define(const Frustum&);
  27104. void Define(const Polyhedron&);
  27105. void Define(const Sphere&);
  27106. void Define(const Vector3&, float);
  27107. bool Defined() const;
  27108. float Distance(const Vector3&) const;
  27109. Vector3 GetLocalPoint(float, float) const;
  27110. Vector3 GetPoint(float, float) const;
  27111. Intersection IsInside(const BoundingBox&) const;
  27112. Intersection IsInside(const Sphere&) const;
  27113. Intersection IsInside(const Vector3&) const;
  27114. Intersection IsInsideFast(const BoundingBox&) const;
  27115. Intersection IsInsideFast(const Sphere&) const;
  27116. void Merge(const BoundingBox&);
  27117. void Merge(const Frustum&);
  27118. void Merge(const Polyhedron&);
  27119. void Merge(const Sphere&);
  27120. void Merge(const Vector3&);
  27121. // Properties:
  27122. Vector3 center;
  27123. float radius;
  27124. };
  27125. class Spline
  27126. {
  27127. public:
  27128. ~Spline();
  27129. Spline();
  27130. Spline(InterpolationMode);
  27131. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  27132. Spline(const Spline&in);
  27133. Spline(Variant[]@, InterpolationMode = BEZIER_CURVE);
  27134. // Methods:
  27135. Spline& operator=(const Spline&);
  27136. bool operator==(const Spline&) const;
  27137. void AddKnot(const Variant&);
  27138. void AddKnot(const Variant&, uint);
  27139. void Clear();
  27140. InterpolationMode GetInterpolationMode() const;
  27141. Variant GetKnot(uint) const;
  27142. Variant GetPoint(float) const;
  27143. void RemoveKnot();
  27144. void RemoveKnot(uint);
  27145. void SetInterpolationMode(InterpolationMode);
  27146. void SetKnot(const Variant&, uint);
  27147. void SetKnots(Array<Variant>);
  27148. // Properties:
  27149. InterpolationMode interpolationMode;
  27150. Array<Variant> knot;
  27151. Array<Variant> knots;
  27152. };
  27153. class SplinePath
  27154. {
  27155. public:
  27156. SplinePath();
  27157. // Methods:
  27158. void AddControlPoint(Node, uint = M_MAX_UNSIGNED);
  27159. void AllocateNetworkState();
  27160. operator Animatable() const;
  27161. void ApplyAttributes();
  27162. void CleanupConnection(Connection);
  27163. void ClearControlPoints();
  27164. operator Component() const;
  27165. void DrawDebugGeometry(DebugRenderer, bool);
  27166. bool GetAnimationEnabled() const;
  27167. Variant GetAttribute(const String&) const;
  27168. Variant GetAttribute(uint) const;
  27169. ValueAnimation GetAttributeAnimation(const String&) const;
  27170. float GetAttributeAnimationSpeed(const String&) const;
  27171. float GetAttributeAnimationTime(const String&) const;
  27172. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  27173. Variant GetAttributeDefault(const String&) const;
  27174. Variant GetAttributeDefault(uint) const;
  27175. bool GetBlockEvents() const;
  27176. Component GetComponent(StringHash) const;
  27177. uint GetControlledIdAttr() const;
  27178. Node GetControlledNode() const;
  27179. VariantMap& GetEventDataMap() const;
  27180. Object GetEventSender() const;
  27181. uint GetID() const;
  27182. bool GetInterceptNetworkUpdate(const String&) const;
  27183. InterpolationMode GetInterpolationMode() const;
  27184. float GetLength() const;
  27185. Node GetNode() const;
  27186. uint GetNumAttributes() const;
  27187. uint GetNumNetworkAttributes() const;
  27188. ObjectAnimation GetObjectAnimation() const;
  27189. ResourceRef GetObjectAnimationAttr() const;
  27190. Vector3 GetPoint(float) const;
  27191. Vector3 GetPosition() const;
  27192. Scene GetScene() const;
  27193. float GetSpeed() const;
  27194. Object GetSubsystem(StringHash) const;
  27195. StringHash GetType() const;
  27196. bool HasEventHandlers() const;
  27197. bool HasSubscribedToEvent(Object, StringHash) const;
  27198. bool HasSubscribedToEvent(StringHash) const;
  27199. bool IsEnabled() const;
  27200. bool IsEnabledEffective() const;
  27201. bool IsFinished() const;
  27202. bool IsInstanceOf(StringHash) const;
  27203. bool IsReplicated() const;
  27204. bool IsTemporary() const;
  27205. bool Load(Deserializer&);
  27206. bool LoadJSON(const JSONValue&);
  27207. bool LoadXML(const XMLElement&);
  27208. void MarkNetworkUpdate();
  27209. void Move(float);
  27210. operator Object() const;
  27211. void OnEvent(Object, StringHash, VariantMap&);
  27212. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  27213. void OnSetAttribute(const AttributeInfo&, const Variant&);
  27214. void OnSetEnabled();
  27215. void PrepareNetworkUpdate();
  27216. bool ReadDeltaUpdate(Deserializer&);
  27217. bool ReadLatestDataUpdate(Deserializer&);
  27218. operator RefCounted() const;
  27219. int Refs() const;
  27220. void Remove();
  27221. void RemoveAttributeAnimation(const String&);
  27222. void RemoveControlPoint(Node);
  27223. void RemoveInstanceDefault();
  27224. void RemoveObjectAnimation();
  27225. void Reset();
  27226. void ResetToDefault();
  27227. bool Save(Serializer&) const;
  27228. bool SaveDefaultAttributes() const;
  27229. bool SaveJSON(JSONValue&) const;
  27230. bool SaveXML(XMLElement&) const;
  27231. void SendEvent(StringHash);
  27232. void SendEvent(StringHash, VariantMap&);
  27233. operator Serializable() const;
  27234. void SetAnimationEnabled(bool);
  27235. void SetAnimationTime(float);
  27236. bool SetAttribute(const String&, const Variant&);
  27237. bool SetAttribute(uint, const Variant&);
  27238. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  27239. void SetAttributeAnimationSpeed(const String&, float);
  27240. void SetAttributeAnimationTime(const String&, float);
  27241. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  27242. void SetBlockEvents(bool);
  27243. void SetControlledIdAttr(uint);
  27244. void SetControlledNode(Node);
  27245. void SetEnabled(bool);
  27246. void SetGlobalVar(StringHash, const Variant&);
  27247. void SetInstanceDefault(bool);
  27248. void SetInterceptNetworkUpdate(const String&, bool);
  27249. void SetInterpolationMode(InterpolationMode);
  27250. void SetObjectAnimation(ObjectAnimation);
  27251. void SetObjectAnimationAttr(const ResourceRef&);
  27252. void SetPosition(float);
  27253. void SetSpeed(float);
  27254. void SetTemporary(bool);
  27255. const String& GetCategory() const;
  27256. const String& GetTypeName() const;
  27257. void UnsubscribeFromAllEvents();
  27258. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27259. void UnsubscribeFromEvent(Object, StringHash);
  27260. void UnsubscribeFromEvent(StringHash);
  27261. void UnsubscribeFromEvents(Object);
  27262. const Variant& GetGlobalVar(StringHash) const;
  27263. const VariantMap& GetGlobalVars() const;
  27264. int WeakRefs() const;
  27265. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  27266. void WriteInitialDeltaUpdate(Serializer&, uint8);
  27267. void WriteLatestDataUpdate(Serializer&, uint8);
  27268. operator const Animatable() const;
  27269. operator const Component() const;
  27270. operator const Object() const;
  27271. operator const RefCounted() const;
  27272. operator const Serializable() const;
  27273. // Properties:
  27274. bool animationEnabled;
  27275. /* readonly */
  27276. Array<Variant> attributeDefaults;
  27277. /* readonly */
  27278. Array<AttributeInfo> attributeInfos;
  27279. Array<Variant> attributes;
  27280. /* readonly */
  27281. String category;
  27282. Node controlledNode;
  27283. bool enabled;
  27284. /* readonly */
  27285. bool enabledEffective;
  27286. Array<Variant> globalVar;
  27287. /* readonly */
  27288. VariantMap globalVars;
  27289. /* readonly */
  27290. uint id;
  27291. InterpolationMode interpolationMode;
  27292. /* readonly */
  27293. bool isFinished;
  27294. /* readonly */
  27295. float length;
  27296. /* readonly */
  27297. Node node;
  27298. /* readonly */
  27299. uint numAttributes;
  27300. ObjectAnimation objectAnimation;
  27301. /* readonly */
  27302. int refs;
  27303. /* readonly */
  27304. bool replicated;
  27305. float speed;
  27306. bool temporary;
  27307. /* readonly */
  27308. StringHash type;
  27309. /* readonly */
  27310. String typeName;
  27311. /* readonly */
  27312. int weakRefs;
  27313. };
  27314. class Sprite
  27315. {
  27316. public:
  27317. Sprite();
  27318. // Methods:
  27319. void AddChild(UIElement);
  27320. void AddTag(const String&);
  27321. void AddTags(Array<String>);
  27322. void AddTags(const String&, int8 = ';');
  27323. void AdjustScissor(IntRect&);
  27324. void AllocateNetworkState();
  27325. operator Animatable() const;
  27326. void ApplyAttributes();
  27327. void BringToFront();
  27328. const Color& GetColor(Corner) const;
  27329. const Color& GetColorAttr() const;
  27330. const Color& GetDerivedColor() const;
  27331. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  27332. void DisableLayoutUpdate();
  27333. IntVector2 ElementToScreen(const IntVector2&);
  27334. void EnableLayoutUpdate();
  27335. bool FilterAttributes(XMLElement&) const;
  27336. int FindChild(UIElement) const;
  27337. bool GetAnimationEnabled() const;
  27338. Variant GetAttribute(const String&) const;
  27339. Variant GetAttribute(uint) const;
  27340. ValueAnimation GetAttributeAnimation(const String&) const;
  27341. float GetAttributeAnimationSpeed(const String&) const;
  27342. float GetAttributeAnimationTime(const String&) const;
  27343. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  27344. Variant GetAttributeDefault(const String&) const;
  27345. Variant GetAttributeDefault(uint) const;
  27346. BlendMode GetBlendMode() const;
  27347. bool GetBlockEvents() const;
  27348. bool GetBringToBack() const;
  27349. bool GetBringToFront() const;
  27350. UIElement GetChild(const String&, bool = false) const;
  27351. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  27352. UIElement GetChild(int) const;
  27353. Array<UIElement> GetChildren() const;
  27354. Array<UIElement> GetChildren(bool) const;
  27355. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  27356. bool GetClipChildren() const;
  27357. IntRect GetCombinedScreenRect();
  27358. XMLFile GetDefaultStyle(bool = true) const;
  27359. float GetDerivedOpacity() const;
  27360. uint GetDragButtonCombo() const;
  27361. int GetDragButtonCount() const;
  27362. uint GetDragDropMode() const;
  27363. IntVector2 GetEffectiveMinSize() const;
  27364. UIElement GetElementEventSender() const;
  27365. bool GetEnableAnchor() const;
  27366. VariantMap& GetEventDataMap() const;
  27367. Object GetEventSender() const;
  27368. FocusMode GetFocusMode() const;
  27369. int GetHeight() const;
  27370. HorizontalAlignment GetHorizontalAlignment() const;
  27371. int GetIndent() const;
  27372. int GetIndentSpacing() const;
  27373. int GetIndentWidth() const;
  27374. bool GetInterceptNetworkUpdate(const String&) const;
  27375. int GetLayoutElementMaxSize() const;
  27376. LayoutMode GetLayoutMode() const;
  27377. int GetLayoutSpacing() const;
  27378. int GetMaxHeight() const;
  27379. int GetMaxWidth() const;
  27380. int GetMinHeight() const;
  27381. int GetMinWidth() const;
  27382. uint GetNumAttributes() const;
  27383. int GetNumChildren(bool = false) const;
  27384. uint GetNumNetworkAttributes() const;
  27385. ObjectAnimation GetObjectAnimation() const;
  27386. ResourceRef GetObjectAnimationAttr() const;
  27387. float GetOpacity() const;
  27388. UIElement GetParent() const;
  27389. int GetPriority() const;
  27390. UIElement GetRoot() const;
  27391. float GetRotation() const;
  27392. bool GetSortChildren() const;
  27393. Object GetSubsystem(StringHash) const;
  27394. Array<String> GetTags() const;
  27395. Texture GetTexture() const;
  27396. ResourceRef GetTextureAttr() const;
  27397. TraversalMode GetTraversalMode() const;
  27398. StringHash GetType() const;
  27399. bool GetUseDerivedOpacity() const;
  27400. VerticalAlignment GetVerticalAlignment() const;
  27401. int GetWidth() const;
  27402. bool HasColorGradient() const;
  27403. bool HasEventHandlers() const;
  27404. bool HasFocus() const;
  27405. bool HasSubscribedToEvent(Object, StringHash) const;
  27406. bool HasSubscribedToEvent(StringHash) const;
  27407. bool HasTag(const String&) const;
  27408. void InsertChild(int, UIElement);
  27409. const IntRect& GetClipBorder() const;
  27410. const IntRect& GetImageRect() const;
  27411. const IntRect& GetLayoutBorder() const;
  27412. const IntVector2& GetChildOffset() const;
  27413. const IntVector2& GetHotSpot() const;
  27414. const IntVector2& GetMaxOffset() const;
  27415. const IntVector2& GetMaxSize() const;
  27416. const IntVector2& GetMinOffset() const;
  27417. const IntVector2& GetMinSize() const;
  27418. const IntVector2& GetScreenPosition() const;
  27419. const IntVector2& GetSize() const;
  27420. bool IsChildOf(UIElement) const;
  27421. bool IsEditable() const;
  27422. bool IsElementEventSender() const;
  27423. bool IsEnabled() const;
  27424. bool IsEnabledSelf() const;
  27425. bool IsFixedHeight() const;
  27426. bool IsFixedSize() const;
  27427. bool IsFixedWidth() const;
  27428. bool IsHovering() const;
  27429. bool IsInside(IntVector2, bool);
  27430. bool IsInsideCombined(IntVector2, bool);
  27431. bool IsInstanceOf(StringHash) const;
  27432. bool IsInternal() const;
  27433. bool IsSelected() const;
  27434. bool IsTemporary() const;
  27435. bool IsVisible() const;
  27436. bool IsVisibleEffective() const;
  27437. bool IsWheelHandler() const;
  27438. bool IsWithinScissor(const IntRect&);
  27439. bool Load(Deserializer&);
  27440. UIElement LoadChildXML(XMLFile, XMLFile);
  27441. UIElement LoadChildXML(const XMLElement&, XMLFile);
  27442. bool LoadJSON(const JSONValue&);
  27443. bool LoadXML(Deserializer&);
  27444. bool LoadXML(File);
  27445. bool LoadXML(VectorBuffer&);
  27446. bool LoadXML(XMLFile, XMLFile);
  27447. bool LoadXML(const XMLElement&);
  27448. bool LoadXML(const XMLElement&, XMLFile);
  27449. void MarkNetworkUpdate();
  27450. const Matrix3x4& GetTransform() const;
  27451. operator Object() const;
  27452. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  27453. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  27454. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  27455. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27456. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27457. bool OnDragDropFinish(UIElement);
  27458. bool OnDragDropTest(UIElement);
  27459. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27460. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27461. void OnEvent(Object, StringHash, VariantMap&);
  27462. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  27463. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  27464. void OnIndentSet();
  27465. void OnKey(uint, uint, uint);
  27466. void OnPositionSet(const IntVector2&);
  27467. void OnResize(const IntVector2&, const IntVector2&);
  27468. void OnSetAttribute(const AttributeInfo&, const Variant&);
  27469. void OnSetEditable();
  27470. void OnTextInput(const String&);
  27471. void OnWheel(int, uint, uint);
  27472. bool ReadDeltaUpdate(Deserializer&);
  27473. bool ReadLatestDataUpdate(Deserializer&);
  27474. operator RefCounted() const;
  27475. int Refs() const;
  27476. void Remove();
  27477. void RemoveAllChildren();
  27478. void RemoveAllTags();
  27479. void RemoveAttributeAnimation(const String&);
  27480. void RemoveChild(UIElement, int = 0);
  27481. void RemoveChild(uint);
  27482. void RemoveChildAtIndex(int);
  27483. void RemoveInstanceDefault();
  27484. void RemoveObjectAnimation();
  27485. bool RemoveTag(const String&);
  27486. void ResetDeepEnabled();
  27487. void ResetToDefault();
  27488. bool Save(Serializer&) const;
  27489. bool SaveDefaultAttributes() const;
  27490. bool SaveJSON(JSONValue&) const;
  27491. bool SaveXML(File, const String& indentation = "\t");
  27492. bool SaveXML(Serializer&, const String& = "\t") const;
  27493. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  27494. bool SaveXML(XMLElement&) const;
  27495. IntVector2 ScreenToElement(const IntVector2&);
  27496. void SendEvent(StringHash);
  27497. void SendEvent(StringHash, VariantMap&);
  27498. operator Serializable() const;
  27499. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  27500. void SetAnimationEnabled(bool);
  27501. void SetAnimationTime(float);
  27502. bool SetAttribute(const String&, const Variant&);
  27503. bool SetAttribute(uint, const Variant&);
  27504. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  27505. void SetAttributeAnimationSpeed(const String&, float);
  27506. void SetAttributeAnimationTime(const String&, float);
  27507. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  27508. void SetBlendMode(BlendMode);
  27509. void SetBlockEvents(bool);
  27510. void SetBringToBack(bool);
  27511. void SetBringToFront(bool);
  27512. void SetChildOffset(const IntVector2&);
  27513. void SetClipBorder(const IntRect&);
  27514. void SetClipChildren(bool);
  27515. void SetColor(Corner, const Color&);
  27516. void SetColor(const Color&);
  27517. void SetDeepEnabled(bool);
  27518. void SetDefaultStyle(XMLFile);
  27519. void SetDragDropMode(uint);
  27520. void SetEditable(bool);
  27521. void SetElementEventSender(bool);
  27522. void SetEnableAnchor(bool);
  27523. void SetEnabled(bool);
  27524. void SetEnabledRecursive(bool);
  27525. void SetFixedHeight(int);
  27526. void SetFixedSize(const IntVector2&);
  27527. void SetFixedSize(int, int);
  27528. void SetFixedWidth(int);
  27529. void SetFocus(bool);
  27530. void SetFocusMode(FocusMode);
  27531. void SetFullImageRect();
  27532. void SetGlobalVar(StringHash, const Variant&);
  27533. void SetHeight(int);
  27534. void SetHorizontalAlignment(HorizontalAlignment);
  27535. void SetHotSpot(const IntVector2&);
  27536. void SetHotSpot(int, int);
  27537. void SetHovering(bool);
  27538. void SetImageRect(const IntRect&);
  27539. void SetIndent(int);
  27540. void SetIndentSpacing(int);
  27541. void SetInstanceDefault(bool);
  27542. void SetInterceptNetworkUpdate(const String&, bool);
  27543. void SetInternal(bool);
  27544. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  27545. void SetLayoutBorder(const IntRect&);
  27546. void SetLayoutFlexScale(const Vector2&);
  27547. void SetLayoutMode(LayoutMode);
  27548. void SetLayoutSpacing(int);
  27549. void SetMaxAnchor(const Vector2&);
  27550. void SetMaxAnchor(float, float);
  27551. void SetMaxHeight(int);
  27552. void SetMaxOffset(const IntVector2&);
  27553. void SetMaxSize(const IntVector2&);
  27554. void SetMaxSize(int, int);
  27555. void SetMaxWidth(int);
  27556. void SetMinAnchor(const Vector2&);
  27557. void SetMinAnchor(float, float);
  27558. void SetMinHeight(int);
  27559. void SetMinOffset(const IntVector2&);
  27560. void SetMinSize(const IntVector2&);
  27561. void SetMinSize(int, int);
  27562. void SetMinWidth(int);
  27563. void SetName(const String&);
  27564. void SetObjectAnimation(ObjectAnimation);
  27565. void SetObjectAnimationAttr(const ResourceRef&);
  27566. void SetOpacity(float);
  27567. void SetParent(UIElement, int = ENDPOS);
  27568. void SetPivot(const Vector2&);
  27569. void SetPivot(float, float);
  27570. void SetPosition(const Vector2&);
  27571. void SetPosition(float, float);
  27572. void SetPriority(int);
  27573. void SetRenderTexture(Texture2D);
  27574. void SetRotation(float);
  27575. void SetScale(const Vector2&);
  27576. void SetScale(float);
  27577. void SetScale(float, float);
  27578. void SetSelected(bool);
  27579. void SetSize(const IntVector2&);
  27580. void SetSize(int, int);
  27581. void SetSortChildren(bool);
  27582. bool SetStyle(const String&, XMLFile = null);
  27583. bool SetStyle(const XMLElement&);
  27584. bool SetStyleAuto(XMLFile = null);
  27585. void SetTags(Array<String>);
  27586. void SetTemporary(bool);
  27587. void SetTexture(Texture);
  27588. void SetTextureAttr(const ResourceRef&);
  27589. void SetTraversalMode(TraversalMode);
  27590. void SetUseDerivedOpacity(bool);
  27591. void SetVar(StringHash, const Variant&);
  27592. void SetVerticalAlignment(VerticalAlignment);
  27593. void SetVisible(bool);
  27594. void SetWidth(int);
  27595. void SortChildren();
  27596. const String& GetAppliedStyle() const;
  27597. const String& GetCategory() const;
  27598. const String& GetName() const;
  27599. const String& GetTypeName() const;
  27600. operator UIElement() const;
  27601. void UnsubscribeFromAllEvents();
  27602. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27603. void UnsubscribeFromEvent(Object, StringHash);
  27604. void UnsubscribeFromEvent(StringHash);
  27605. void UnsubscribeFromEvents(Object);
  27606. void Update(float);
  27607. void UpdateLayout();
  27608. const Variant& GetGlobalVar(StringHash) const;
  27609. const Variant& GetVar(const StringHash&) const;
  27610. const VariantMap& GetGlobalVars() const;
  27611. const VariantMap& GetVars() const;
  27612. const Vector2& GetLayoutFlexScale() const;
  27613. const Vector2& GetMaxAnchor() const;
  27614. const Vector2& GetMinAnchor() const;
  27615. const Vector2& GetPivot() const;
  27616. const Vector2& GetPosition() const;
  27617. const Vector2& GetScale() const;
  27618. int WeakRefs() const;
  27619. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  27620. void WriteInitialDeltaUpdate(Serializer&, uint8);
  27621. void WriteLatestDataUpdate(Serializer&, uint8);
  27622. operator const Animatable() const;
  27623. operator const Object() const;
  27624. operator const RefCounted() const;
  27625. operator const Serializable() const;
  27626. operator const UIElement() const;
  27627. // Properties:
  27628. bool animationEnabled;
  27629. /* readonly */
  27630. Array<Variant> attributeDefaults;
  27631. /* readonly */
  27632. Array<AttributeInfo> attributeInfos;
  27633. Array<Variant> attributes;
  27634. BlendMode blendMode;
  27635. bool bringToBack;
  27636. bool bringToFront;
  27637. /* readonly */
  27638. String category;
  27639. /* readonly */
  27640. IntVector2 childOffset;
  27641. /* readonly */
  27642. Array<UIElement> children;
  27643. IntRect clipBorder;
  27644. bool clipChildren;
  27645. /* writeonly */
  27646. Color color;
  27647. /* readonly */
  27648. bool colorGradient;
  27649. Array<Color> colors;
  27650. /* readonly */
  27651. IntRect combinedScreenRect;
  27652. XMLFile defaultStyle;
  27653. /* readonly */
  27654. float derivedOpacity;
  27655. /* readonly */
  27656. uint dragButtonCombo;
  27657. /* readonly */
  27658. int dragButtonCount;
  27659. uint dragDropMode;
  27660. bool editable;
  27661. bool elementEventSender;
  27662. bool enableAnchor;
  27663. bool enabled;
  27664. /* readonly */
  27665. bool enabledSelf;
  27666. /* readonly */
  27667. bool fixedHeight;
  27668. /* readonly */
  27669. bool fixedSize;
  27670. /* readonly */
  27671. bool fixedWidth;
  27672. bool focus;
  27673. FocusMode focusMode;
  27674. Array<Variant> globalVar;
  27675. /* readonly */
  27676. VariantMap globalVars;
  27677. int height;
  27678. HorizontalAlignment horizontalAlignment;
  27679. IntVector2 hotSpot;
  27680. /* readonly */
  27681. bool hovering;
  27682. IntRect imageRect;
  27683. int indent;
  27684. int indentSpacing;
  27685. /* readonly */
  27686. int indentWidth;
  27687. bool internal;
  27688. IntRect layoutBorder;
  27689. Vector2 layoutFlexScale;
  27690. LayoutMode layoutMode;
  27691. int layoutSpacing;
  27692. Vector2 maxAnchor;
  27693. int maxHeight;
  27694. IntVector2 maxOffset;
  27695. IntVector2 maxSize;
  27696. int maxWidth;
  27697. Vector2 minAnchor;
  27698. int minHeight;
  27699. IntVector2 minOffset;
  27700. IntVector2 minSize;
  27701. int minWidth;
  27702. String name;
  27703. /* readonly */
  27704. uint numAllChildren;
  27705. /* readonly */
  27706. uint numAttributes;
  27707. /* readonly */
  27708. uint numChildren;
  27709. ObjectAnimation objectAnimation;
  27710. float opacity;
  27711. UIElement parent;
  27712. Vector2 pivot;
  27713. Vector2 position;
  27714. int priority;
  27715. /* readonly */
  27716. int refs;
  27717. /* readonly */
  27718. UIElement root;
  27719. float rotation;
  27720. Vector2 scale;
  27721. /* readonly */
  27722. IntVector2 screenPosition;
  27723. bool selected;
  27724. IntVector2 size;
  27725. bool sortChildren;
  27726. String style;
  27727. /* readonly */
  27728. Array<String> tags;
  27729. bool temporary;
  27730. Texture texture;
  27731. TraversalMode traversalMode;
  27732. /* readonly */
  27733. StringHash type;
  27734. /* readonly */
  27735. String typeName;
  27736. bool useDerivedOpacity;
  27737. /* readonly */
  27738. VariantMap vars;
  27739. VerticalAlignment verticalAlignment;
  27740. bool visible;
  27741. /* readonly */
  27742. bool visibleEffective;
  27743. /* readonly */
  27744. int weakRefs;
  27745. int width;
  27746. };
  27747. class Sprite2D
  27748. {
  27749. public:
  27750. Sprite2D();
  27751. // Methods:
  27752. bool BeginLoad(Deserializer&);
  27753. bool EndLoad();
  27754. AsyncLoadState GetAsyncLoadState() const;
  27755. bool GetBlockEvents() const;
  27756. bool GetDrawRectangle(Rect&, bool = false, bool = false) const;
  27757. bool GetDrawRectangle(Rect&, const Vector2&, bool = false, bool = false) const;
  27758. VariantMap& GetEventDataMap() const;
  27759. Object GetEventSender() const;
  27760. uint GetMemoryUse() const;
  27761. StringHash GetNameHash() const;
  27762. SpriteSheet2D GetSpriteSheet() const;
  27763. Object GetSubsystem(StringHash) const;
  27764. Texture2D GetTexture() const;
  27765. float GetTextureEdgeOffset() const;
  27766. bool GetTextureRectangle(Rect&, bool = false, bool = false) const;
  27767. StringHash GetType() const;
  27768. uint GetUseTimer();
  27769. bool HasEventHandlers() const;
  27770. bool HasSubscribedToEvent(Object, StringHash) const;
  27771. bool HasSubscribedToEvent(StringHash) const;
  27772. const IntRect& GetRectangle() const;
  27773. const IntVector2& GetOffset() const;
  27774. bool IsInstanceOf(StringHash) const;
  27775. bool Load(Deserializer&);
  27776. bool Load(File);
  27777. bool Load(VectorBuffer&);
  27778. bool Load(const String&);
  27779. bool LoadFile(const String&);
  27780. operator Object() const;
  27781. void OnEvent(Object, StringHash, VariantMap&);
  27782. operator RefCounted() const;
  27783. int Refs() const;
  27784. void ResetUseTimer();
  27785. operator Resource() const;
  27786. bool Save(File) const;
  27787. bool Save(Serializer&) const;
  27788. bool Save(VectorBuffer&) const;
  27789. bool Save(const String&) const;
  27790. bool SaveFile(const String&) const;
  27791. void SendEvent(StringHash);
  27792. void SendEvent(StringHash, VariantMap&);
  27793. void SetAsyncLoadState(AsyncLoadState);
  27794. void SetBlockEvents(bool);
  27795. void SetGlobalVar(StringHash, const Variant&);
  27796. void SetHotSpot(const Vector2&);
  27797. void SetMemoryUse(uint);
  27798. void SetName(const String&);
  27799. void SetOffset(const IntVector2&);
  27800. void SetRectangle(const IntRect&);
  27801. void SetSpriteSheet(SpriteSheet2D);
  27802. void SetTexture(Texture2D);
  27803. void SetTextureEdgeOffset(float);
  27804. const String& GetCategory() const;
  27805. const String& GetName() const;
  27806. const String& GetTypeName() const;
  27807. void UnsubscribeFromAllEvents();
  27808. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27809. void UnsubscribeFromEvent(Object, StringHash);
  27810. void UnsubscribeFromEvent(StringHash);
  27811. void UnsubscribeFromEvents(Object);
  27812. const Variant& GetGlobalVar(StringHash) const;
  27813. const VariantMap& GetGlobalVars() const;
  27814. const Vector2& GetHotSpot() const;
  27815. int WeakRefs() const;
  27816. operator const Object() const;
  27817. operator const RefCounted() const;
  27818. operator const Resource() const;
  27819. // Properties:
  27820. /* readonly */
  27821. String category;
  27822. Array<Variant> globalVar;
  27823. /* readonly */
  27824. VariantMap globalVars;
  27825. Vector2 hotSpot;
  27826. /* readonly */
  27827. uint memoryUse;
  27828. String name;
  27829. IntVector2 offset;
  27830. IntRect rectangle;
  27831. /* readonly */
  27832. int refs;
  27833. Texture2D texture;
  27834. float textureEdgeOffset;
  27835. /* readonly */
  27836. StringHash type;
  27837. /* readonly */
  27838. String typeName;
  27839. /* readonly */
  27840. uint useTimer;
  27841. /* readonly */
  27842. int weakRefs;
  27843. };
  27844. class SpriteSheet2D
  27845. {
  27846. public:
  27847. SpriteSheet2D();
  27848. // Methods:
  27849. bool BeginLoad(Deserializer&);
  27850. void DefineSprite(const String&, const IntRect&, const Vector2& = Vector2 ( 0.5f , 0.5f ), const IntVector2& = IntVector2 :: ZERO);
  27851. bool EndLoad();
  27852. AsyncLoadState GetAsyncLoadState() const;
  27853. bool GetBlockEvents() const;
  27854. VariantMap& GetEventDataMap() const;
  27855. Object GetEventSender() const;
  27856. uint GetMemoryUse() const;
  27857. StringHash GetNameHash() const;
  27858. Sprite2D GetSprite(const String&) const;
  27859. Object GetSubsystem(StringHash) const;
  27860. Texture2D GetTexture() const;
  27861. StringHash GetType() const;
  27862. uint GetUseTimer();
  27863. bool HasEventHandlers() const;
  27864. bool HasSubscribedToEvent(Object, StringHash) const;
  27865. bool HasSubscribedToEvent(StringHash) const;
  27866. bool IsInstanceOf(StringHash) const;
  27867. bool Load(Deserializer&);
  27868. bool Load(File);
  27869. bool Load(VectorBuffer&);
  27870. bool Load(const String&);
  27871. bool LoadFile(const String&);
  27872. operator Object() const;
  27873. void OnEvent(Object, StringHash, VariantMap&);
  27874. operator RefCounted() const;
  27875. int Refs() const;
  27876. void ResetUseTimer();
  27877. operator Resource() const;
  27878. bool Save(File) const;
  27879. bool Save(Serializer&) const;
  27880. bool Save(VectorBuffer&) const;
  27881. bool Save(const String&) const;
  27882. bool SaveFile(const String&) const;
  27883. void SendEvent(StringHash);
  27884. void SendEvent(StringHash, VariantMap&);
  27885. void SetAsyncLoadState(AsyncLoadState);
  27886. void SetBlockEvents(bool);
  27887. void SetGlobalVar(StringHash, const Variant&);
  27888. void SetMemoryUse(uint);
  27889. void SetName(const String&);
  27890. void SetTexture(Texture2D);
  27891. const String& GetCategory() const;
  27892. const String& GetName() const;
  27893. const String& GetTypeName() const;
  27894. void UnsubscribeFromAllEvents();
  27895. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  27896. void UnsubscribeFromEvent(Object, StringHash);
  27897. void UnsubscribeFromEvent(StringHash);
  27898. void UnsubscribeFromEvents(Object);
  27899. const Variant& GetGlobalVar(StringHash) const;
  27900. const VariantMap& GetGlobalVars() const;
  27901. int WeakRefs() const;
  27902. operator const Object() const;
  27903. operator const RefCounted() const;
  27904. operator const Resource() const;
  27905. // Properties:
  27906. /* readonly */
  27907. String category;
  27908. Array<Variant> globalVar;
  27909. /* readonly */
  27910. VariantMap globalVars;
  27911. /* readonly */
  27912. uint memoryUse;
  27913. String name;
  27914. /* readonly */
  27915. int refs;
  27916. Texture2D texture;
  27917. /* readonly */
  27918. StringHash type;
  27919. /* readonly */
  27920. String typeName;
  27921. /* readonly */
  27922. uint useTimer;
  27923. /* readonly */
  27924. int weakRefs;
  27925. };
  27926. class StaticModel
  27927. {
  27928. public:
  27929. StaticModel();
  27930. // Methods:
  27931. void AddLight(Light);
  27932. void AddVertexLight(Light);
  27933. void AllocateNetworkState();
  27934. operator Animatable() const;
  27935. operator AnimatedModel() const;
  27936. void ApplyAttributes();
  27937. void ApplyMaterialList(const String& = String :: EMPTY);
  27938. const BoundingBox& GetBoundingBox() const;
  27939. const BoundingBox& GetWorldBoundingBox();
  27940. void CleanupConnection(Connection);
  27941. operator Component() const;
  27942. void DrawDebugGeometry(DebugRenderer, bool);
  27943. bool DrawOcclusion(OcclusionBuffer);
  27944. operator Drawable() const;
  27945. bool GetAnimationEnabled() const;
  27946. Variant GetAttribute(const String&) const;
  27947. Variant GetAttribute(uint) const;
  27948. ValueAnimation GetAttributeAnimation(const String&) const;
  27949. float GetAttributeAnimationSpeed(const String&) const;
  27950. float GetAttributeAnimationTime(const String&) const;
  27951. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  27952. Variant GetAttributeDefault(const String&) const;
  27953. Variant GetAttributeDefault(uint) const;
  27954. Array<SourceBatch> GetBatches() const;
  27955. bool GetBlockEvents() const;
  27956. bool GetCastShadows() const;
  27957. Component GetComponent(StringHash) const;
  27958. float GetDistance() const;
  27959. float GetDrawDistance() const;
  27960. uint8 GetDrawableFlags() const;
  27961. VariantMap& GetEventDataMap() const;
  27962. Object GetEventSender() const;
  27963. Light GetFirstLight() const;
  27964. uint GetID() const;
  27965. bool GetInterceptNetworkUpdate(const String&) const;
  27966. uint GetLightMask() const;
  27967. Array<Light> GetLights() const;
  27968. float GetLodBias() const;
  27969. float GetLodDistance() const;
  27970. Geometry GetLodGeometry(uint, uint);
  27971. Material GetMaterial() const;
  27972. Material GetMaterial(uint) const;
  27973. uint GetMaxLights() const;
  27974. float GetMaxZ() const;
  27975. float GetMinZ() const;
  27976. Model GetModel() const;
  27977. ResourceRef GetModelAttr() const;
  27978. Node GetNode() const;
  27979. uint GetNumAttributes() const;
  27980. uint GetNumGeometries() const;
  27981. uint GetNumNetworkAttributes() const;
  27982. uint GetNumOccluderTriangles();
  27983. ObjectAnimation GetObjectAnimation() const;
  27984. ResourceRef GetObjectAnimationAttr() const;
  27985. uint GetOcclusionLodLevel() const;
  27986. Scene GetScene() const;
  27987. float GetShadowDistance() const;
  27988. uint GetShadowMask() const;
  27989. float GetSortValue() const;
  27990. Object GetSubsystem(StringHash) const;
  27991. StringHash GetType() const;
  27992. UpdateGeometryType GetUpdateGeometryType();
  27993. Array<Light> GetVertexLights() const;
  27994. uint GetViewMask() const;
  27995. Zone GetZone() const;
  27996. uint GetZoneMask() const;
  27997. bool HasBasePass(uint) const;
  27998. bool HasEventHandlers() const;
  27999. bool HasSubscribedToEvent(Object, StringHash) const;
  28000. bool HasSubscribedToEvent(StringHash) const;
  28001. bool IsEnabled() const;
  28002. bool IsEnabledEffective() const;
  28003. bool IsInView() const;
  28004. bool IsInView(Camera) const;
  28005. bool IsInView(const FrameInfo&, bool = false) const;
  28006. bool IsInside(const Vector3&) const;
  28007. bool IsInsideLocal(const Vector3&) const;
  28008. bool IsInstanceOf(StringHash) const;
  28009. bool IsOccludee() const;
  28010. bool IsOccluder() const;
  28011. bool IsReplicated() const;
  28012. bool IsTemporary() const;
  28013. bool IsZoneDirty() const;
  28014. void LimitLights();
  28015. void LimitVertexLights(bool);
  28016. bool Load(Deserializer&);
  28017. bool LoadJSON(const JSONValue&);
  28018. bool LoadXML(const XMLElement&);
  28019. void MarkForUpdate();
  28020. void MarkInView(const FrameInfo&);
  28021. void MarkInView(int);
  28022. void MarkNetworkUpdate();
  28023. operator Object() const;
  28024. void OnEvent(Object, StringHash, VariantMap&);
  28025. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28026. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28027. void OnSetEnabled();
  28028. void PrepareNetworkUpdate();
  28029. bool ReadDeltaUpdate(Deserializer&);
  28030. bool ReadLatestDataUpdate(Deserializer&);
  28031. operator RefCounted() const;
  28032. int Refs() const;
  28033. void Remove();
  28034. void RemoveAttributeAnimation(const String&);
  28035. void RemoveInstanceDefault();
  28036. void RemoveObjectAnimation();
  28037. void ResetToDefault();
  28038. const ResourceRefList& GetMaterialsAttr() const;
  28039. bool Save(Serializer&) const;
  28040. bool SaveDefaultAttributes() const;
  28041. bool SaveJSON(JSONValue&) const;
  28042. bool SaveXML(XMLElement&) const;
  28043. void SendEvent(StringHash);
  28044. void SendEvent(StringHash, VariantMap&);
  28045. operator Serializable() const;
  28046. void SetAnimationEnabled(bool);
  28047. void SetAnimationTime(float);
  28048. bool SetAttribute(const String&, const Variant&);
  28049. bool SetAttribute(uint, const Variant&);
  28050. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28051. void SetAttributeAnimationSpeed(const String&, float);
  28052. void SetAttributeAnimationTime(const String&, float);
  28053. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28054. void SetBasePass(uint);
  28055. void SetBlockEvents(bool);
  28056. void SetCastShadows(bool);
  28057. void SetDrawDistance(float);
  28058. void SetEnabled(bool);
  28059. void SetGlobalVar(StringHash, const Variant&);
  28060. void SetInstanceDefault(bool);
  28061. void SetInterceptNetworkUpdate(const String&, bool);
  28062. void SetLightMask(uint);
  28063. void SetLodBias(float);
  28064. void SetMaterial(Material);
  28065. bool SetMaterial(uint, Material);
  28066. void SetMaterialsAttr(const ResourceRefList&);
  28067. void SetMaxLights(uint);
  28068. void SetMinMaxZ(float, float);
  28069. void SetModel(Model);
  28070. void SetModelAttr(const ResourceRef&);
  28071. void SetObjectAnimation(ObjectAnimation);
  28072. void SetObjectAnimationAttr(const ResourceRef&);
  28073. void SetOccludee(bool);
  28074. void SetOccluder(bool);
  28075. void SetOcclusionLodLevel(uint);
  28076. void SetShadowDistance(float);
  28077. void SetShadowMask(uint);
  28078. void SetSortValue(float);
  28079. void SetTemporary(bool);
  28080. void SetViewMask(uint);
  28081. void SetZone(Zone, bool = false);
  28082. void SetZoneMask(uint);
  28083. operator Skybox() const;
  28084. operator StaticModelGroup() const;
  28085. const String& GetCategory() const;
  28086. const String& GetTypeName() const;
  28087. void UnsubscribeFromAllEvents();
  28088. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28089. void UnsubscribeFromEvent(Object, StringHash);
  28090. void UnsubscribeFromEvent(StringHash);
  28091. void UnsubscribeFromEvents(Object);
  28092. void Update(const FrameInfo&);
  28093. void UpdateBatches(const FrameInfo&);
  28094. void UpdateGeometry(const FrameInfo&);
  28095. const Variant& GetGlobalVar(StringHash) const;
  28096. const VariantMap& GetGlobalVars() const;
  28097. int WeakRefs() const;
  28098. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28099. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28100. void WriteLatestDataUpdate(Serializer&, uint8);
  28101. operator const Animatable() const;
  28102. operator const AnimatedModel() const;
  28103. operator const Component() const;
  28104. operator const Drawable() const;
  28105. operator const Object() const;
  28106. operator const RefCounted() const;
  28107. operator const Serializable() const;
  28108. operator const Skybox() const;
  28109. operator const StaticModelGroup() const;
  28110. // Properties:
  28111. bool animationEnabled;
  28112. /* readonly */
  28113. Array<Variant> attributeDefaults;
  28114. /* readonly */
  28115. Array<AttributeInfo> attributeInfos;
  28116. Array<Variant> attributes;
  28117. /* readonly */
  28118. BoundingBox boundingBox;
  28119. bool castShadows;
  28120. /* readonly */
  28121. String category;
  28122. float drawDistance;
  28123. bool enabled;
  28124. /* readonly */
  28125. bool enabledEffective;
  28126. Array<Variant> globalVar;
  28127. /* readonly */
  28128. VariantMap globalVars;
  28129. /* readonly */
  28130. uint id;
  28131. /* readonly */
  28132. bool inView;
  28133. uint lightMask;
  28134. float lodBias;
  28135. Material material;
  28136. Array<Material> materials;
  28137. uint maxLights;
  28138. Model model;
  28139. /* readonly */
  28140. Node node;
  28141. /* readonly */
  28142. uint numAttributes;
  28143. /* readonly */
  28144. uint numGeometries;
  28145. ObjectAnimation objectAnimation;
  28146. bool occludee;
  28147. bool occluder;
  28148. uint occlusionLodLevel;
  28149. /* readonly */
  28150. int refs;
  28151. /* readonly */
  28152. bool replicated;
  28153. float shadowDistance;
  28154. uint shadowMask;
  28155. bool temporary;
  28156. /* readonly */
  28157. StringHash type;
  28158. /* readonly */
  28159. String typeName;
  28160. uint viewMask;
  28161. /* readonly */
  28162. int weakRefs;
  28163. /* readonly */
  28164. BoundingBox worldBoundingBox;
  28165. /* readonly */
  28166. Zone zone;
  28167. uint zoneMask;
  28168. };
  28169. class StaticModelGeometryData
  28170. {
  28171. public:
  28172. ~StaticModelGeometryData();
  28173. StaticModelGeometryData();
  28174. // Methods:
  28175. StaticModelGeometryData& operator=(const StaticModelGeometryData&);
  28176. // Properties:
  28177. Vector3 center;
  28178. int lodLevel;
  28179. };
  28180. class StaticModelGroup
  28181. {
  28182. public:
  28183. StaticModelGroup();
  28184. // Methods:
  28185. void AddInstanceNode(Node);
  28186. void AddLight(Light);
  28187. void AddVertexLight(Light);
  28188. void AllocateNetworkState();
  28189. operator Animatable() const;
  28190. void ApplyAttributes();
  28191. void ApplyMaterialList(const String& = String :: EMPTY);
  28192. const BoundingBox& GetBoundingBox() const;
  28193. const BoundingBox& GetWorldBoundingBox();
  28194. void CleanupConnection(Connection);
  28195. operator Component() const;
  28196. void DrawDebugGeometry(DebugRenderer, bool);
  28197. bool DrawOcclusion(OcclusionBuffer);
  28198. operator Drawable() const;
  28199. bool GetAnimationEnabled() const;
  28200. Variant GetAttribute(const String&) const;
  28201. Variant GetAttribute(uint) const;
  28202. ValueAnimation GetAttributeAnimation(const String&) const;
  28203. float GetAttributeAnimationSpeed(const String&) const;
  28204. float GetAttributeAnimationTime(const String&) const;
  28205. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28206. Variant GetAttributeDefault(const String&) const;
  28207. Variant GetAttributeDefault(uint) const;
  28208. Array<SourceBatch> GetBatches() const;
  28209. bool GetBlockEvents() const;
  28210. bool GetCastShadows() const;
  28211. Component GetComponent(StringHash) const;
  28212. float GetDistance() const;
  28213. float GetDrawDistance() const;
  28214. uint8 GetDrawableFlags() const;
  28215. VariantMap& GetEventDataMap() const;
  28216. Object GetEventSender() const;
  28217. Light GetFirstLight() const;
  28218. uint GetID() const;
  28219. Node GetInstanceNode(uint) const;
  28220. bool GetInterceptNetworkUpdate(const String&) const;
  28221. uint GetLightMask() const;
  28222. Array<Light> GetLights() const;
  28223. float GetLodBias() const;
  28224. float GetLodDistance() const;
  28225. Geometry GetLodGeometry(uint, uint);
  28226. Material GetMaterial() const;
  28227. Material GetMaterial(uint) const;
  28228. uint GetMaxLights() const;
  28229. float GetMaxZ() const;
  28230. float GetMinZ() const;
  28231. Model GetModel() const;
  28232. ResourceRef GetModelAttr() const;
  28233. Node GetNode() const;
  28234. uint GetNumAttributes() const;
  28235. uint GetNumGeometries() const;
  28236. uint GetNumInstanceNodes() const;
  28237. uint GetNumNetworkAttributes() const;
  28238. uint GetNumOccluderTriangles();
  28239. ObjectAnimation GetObjectAnimation() const;
  28240. ResourceRef GetObjectAnimationAttr() const;
  28241. uint GetOcclusionLodLevel() const;
  28242. Scene GetScene() const;
  28243. float GetShadowDistance() const;
  28244. uint GetShadowMask() const;
  28245. float GetSortValue() const;
  28246. Object GetSubsystem(StringHash) const;
  28247. StringHash GetType() const;
  28248. UpdateGeometryType GetUpdateGeometryType();
  28249. Array<Light> GetVertexLights() const;
  28250. uint GetViewMask() const;
  28251. Zone GetZone() const;
  28252. uint GetZoneMask() const;
  28253. bool HasBasePass(uint) const;
  28254. bool HasEventHandlers() const;
  28255. bool HasSubscribedToEvent(Object, StringHash) const;
  28256. bool HasSubscribedToEvent(StringHash) const;
  28257. bool IsEnabled() const;
  28258. bool IsEnabledEffective() const;
  28259. bool IsInView() const;
  28260. bool IsInView(Camera) const;
  28261. bool IsInView(const FrameInfo&, bool = false) const;
  28262. bool IsInside(const Vector3&) const;
  28263. bool IsInsideLocal(const Vector3&) const;
  28264. bool IsInstanceOf(StringHash) const;
  28265. bool IsOccludee() const;
  28266. bool IsOccluder() const;
  28267. bool IsReplicated() const;
  28268. bool IsTemporary() const;
  28269. bool IsZoneDirty() const;
  28270. void LimitLights();
  28271. void LimitVertexLights(bool);
  28272. bool Load(Deserializer&);
  28273. bool LoadJSON(const JSONValue&);
  28274. bool LoadXML(const XMLElement&);
  28275. void MarkForUpdate();
  28276. void MarkInView(const FrameInfo&);
  28277. void MarkInView(int);
  28278. void MarkNetworkUpdate();
  28279. operator Object() const;
  28280. void OnEvent(Object, StringHash, VariantMap&);
  28281. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28282. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28283. void OnSetEnabled();
  28284. void PrepareNetworkUpdate();
  28285. bool ReadDeltaUpdate(Deserializer&);
  28286. bool ReadLatestDataUpdate(Deserializer&);
  28287. operator RefCounted() const;
  28288. int Refs() const;
  28289. void Remove();
  28290. void RemoveAllInstanceNodes();
  28291. void RemoveAttributeAnimation(const String&);
  28292. void RemoveInstanceDefault();
  28293. void RemoveInstanceNode(Node);
  28294. void RemoveObjectAnimation();
  28295. void ResetToDefault();
  28296. const ResourceRefList& GetMaterialsAttr() const;
  28297. bool Save(Serializer&) const;
  28298. bool SaveDefaultAttributes() const;
  28299. bool SaveJSON(JSONValue&) const;
  28300. bool SaveXML(XMLElement&) const;
  28301. void SendEvent(StringHash);
  28302. void SendEvent(StringHash, VariantMap&);
  28303. operator Serializable() const;
  28304. void SetAnimationEnabled(bool);
  28305. void SetAnimationTime(float);
  28306. bool SetAttribute(const String&, const Variant&);
  28307. bool SetAttribute(uint, const Variant&);
  28308. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28309. void SetAttributeAnimationSpeed(const String&, float);
  28310. void SetAttributeAnimationTime(const String&, float);
  28311. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28312. void SetBasePass(uint);
  28313. void SetBlockEvents(bool);
  28314. void SetCastShadows(bool);
  28315. void SetDrawDistance(float);
  28316. void SetEnabled(bool);
  28317. void SetGlobalVar(StringHash, const Variant&);
  28318. void SetInstanceDefault(bool);
  28319. void SetInterceptNetworkUpdate(const String&, bool);
  28320. void SetLightMask(uint);
  28321. void SetLodBias(float);
  28322. void SetMaterial(Material);
  28323. bool SetMaterial(uint, Material);
  28324. void SetMaterialsAttr(const ResourceRefList&);
  28325. void SetMaxLights(uint);
  28326. void SetMinMaxZ(float, float);
  28327. void SetModel(Model);
  28328. void SetModelAttr(const ResourceRef&);
  28329. void SetObjectAnimation(ObjectAnimation);
  28330. void SetObjectAnimationAttr(const ResourceRef&);
  28331. void SetOccludee(bool);
  28332. void SetOccluder(bool);
  28333. void SetOcclusionLodLevel(uint);
  28334. void SetShadowDistance(float);
  28335. void SetShadowMask(uint);
  28336. void SetSortValue(float);
  28337. void SetTemporary(bool);
  28338. void SetViewMask(uint);
  28339. void SetZone(Zone, bool = false);
  28340. void SetZoneMask(uint);
  28341. operator StaticModel() const;
  28342. const String& GetCategory() const;
  28343. const String& GetTypeName() const;
  28344. void UnsubscribeFromAllEvents();
  28345. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28346. void UnsubscribeFromEvent(Object, StringHash);
  28347. void UnsubscribeFromEvent(StringHash);
  28348. void UnsubscribeFromEvents(Object);
  28349. void Update(const FrameInfo&);
  28350. void UpdateBatches(const FrameInfo&);
  28351. void UpdateGeometry(const FrameInfo&);
  28352. const Variant& GetGlobalVar(StringHash) const;
  28353. const VariantMap& GetGlobalVars() const;
  28354. int WeakRefs() const;
  28355. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28356. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28357. void WriteLatestDataUpdate(Serializer&, uint8);
  28358. operator const Animatable() const;
  28359. operator const Component() const;
  28360. operator const Drawable() const;
  28361. operator const Object() const;
  28362. operator const RefCounted() const;
  28363. operator const Serializable() const;
  28364. operator const StaticModel() const;
  28365. // Properties:
  28366. bool animationEnabled;
  28367. /* readonly */
  28368. Array<Variant> attributeDefaults;
  28369. /* readonly */
  28370. Array<AttributeInfo> attributeInfos;
  28371. Array<Variant> attributes;
  28372. /* readonly */
  28373. BoundingBox boundingBox;
  28374. bool castShadows;
  28375. /* readonly */
  28376. String category;
  28377. float drawDistance;
  28378. bool enabled;
  28379. /* readonly */
  28380. bool enabledEffective;
  28381. Array<Variant> globalVar;
  28382. /* readonly */
  28383. VariantMap globalVars;
  28384. /* readonly */
  28385. uint id;
  28386. /* readonly */
  28387. bool inView;
  28388. /* readonly */
  28389. Array<Node> instanceNodes;
  28390. uint lightMask;
  28391. float lodBias;
  28392. Material material;
  28393. Array<Material> materials;
  28394. uint maxLights;
  28395. Model model;
  28396. /* readonly */
  28397. Node node;
  28398. /* readonly */
  28399. uint numAttributes;
  28400. /* readonly */
  28401. uint numGeometries;
  28402. /* readonly */
  28403. uint numInstanceNodes;
  28404. ObjectAnimation objectAnimation;
  28405. bool occludee;
  28406. bool occluder;
  28407. uint occlusionLodLevel;
  28408. /* readonly */
  28409. int refs;
  28410. /* readonly */
  28411. bool replicated;
  28412. float shadowDistance;
  28413. uint shadowMask;
  28414. bool temporary;
  28415. /* readonly */
  28416. StringHash type;
  28417. /* readonly */
  28418. String typeName;
  28419. uint viewMask;
  28420. /* readonly */
  28421. int weakRefs;
  28422. /* readonly */
  28423. BoundingBox worldBoundingBox;
  28424. /* readonly */
  28425. Zone zone;
  28426. uint zoneMask;
  28427. };
  28428. class StaticSprite2D
  28429. {
  28430. public:
  28431. StaticSprite2D();
  28432. // Methods:
  28433. void AddLight(Light);
  28434. void AddVertexLight(Light);
  28435. void AllocateNetworkState();
  28436. operator Animatable() const;
  28437. operator AnimatedSprite2D() const;
  28438. void ApplyAttributes();
  28439. const BoundingBox& GetBoundingBox() const;
  28440. const BoundingBox& GetWorldBoundingBox();
  28441. void CleanupConnection(Connection);
  28442. const Color& GetColor() const;
  28443. operator Component() const;
  28444. void DrawDebugGeometry(DebugRenderer, bool);
  28445. bool DrawOcclusion(OcclusionBuffer);
  28446. operator Drawable2D() const;
  28447. operator Drawable() const;
  28448. float GetAlpha() const;
  28449. bool GetAnimationEnabled() const;
  28450. Variant GetAttribute(const String&) const;
  28451. Variant GetAttribute(uint) const;
  28452. ValueAnimation GetAttributeAnimation(const String&) const;
  28453. float GetAttributeAnimationSpeed(const String&) const;
  28454. float GetAttributeAnimationTime(const String&) const;
  28455. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28456. Variant GetAttributeDefault(const String&) const;
  28457. Variant GetAttributeDefault(uint) const;
  28458. Array<SourceBatch> GetBatches() const;
  28459. BlendMode GetBlendMode() const;
  28460. bool GetBlockEvents() const;
  28461. bool GetCastShadows() const;
  28462. Component GetComponent(StringHash) const;
  28463. Material GetCustomMaterial() const;
  28464. ResourceRef GetCustomMaterialAttr() const;
  28465. float GetDistance() const;
  28466. float GetDrawDistance() const;
  28467. uint8 GetDrawableFlags() const;
  28468. VariantMap& GetEventDataMap() const;
  28469. Object GetEventSender() const;
  28470. Light GetFirstLight() const;
  28471. bool GetFlipX() const;
  28472. bool GetFlipY() const;
  28473. uint GetID() const;
  28474. bool GetInterceptNetworkUpdate(const String&) const;
  28475. int GetLayer() const;
  28476. uint GetLightMask() const;
  28477. Array<Light> GetLights() const;
  28478. float GetLodBias() const;
  28479. float GetLodDistance() const;
  28480. Geometry GetLodGeometry(uint, uint);
  28481. uint GetMaxLights() const;
  28482. float GetMaxZ() const;
  28483. float GetMinZ() const;
  28484. Node GetNode() const;
  28485. uint GetNumAttributes() const;
  28486. uint GetNumNetworkAttributes() const;
  28487. uint GetNumOccluderTriangles();
  28488. ObjectAnimation GetObjectAnimation() const;
  28489. ResourceRef GetObjectAnimationAttr() const;
  28490. int GetOrderInLayer() const;
  28491. Scene GetScene() const;
  28492. float GetShadowDistance() const;
  28493. uint GetShadowMask() const;
  28494. float GetSortValue() const;
  28495. Array<SourceBatch2D> GetSourceBatches();
  28496. Sprite2D GetSprite() const;
  28497. ResourceRef GetSpriteAttr() const;
  28498. Object GetSubsystem(StringHash) const;
  28499. bool GetSwapXY() const;
  28500. StringHash GetType() const;
  28501. UpdateGeometryType GetUpdateGeometryType();
  28502. bool GetUseDrawRect() const;
  28503. bool GetUseHotSpot() const;
  28504. bool GetUseTextureRect() const;
  28505. Array<Light> GetVertexLights() const;
  28506. uint GetViewMask() const;
  28507. Zone GetZone() const;
  28508. uint GetZoneMask() const;
  28509. bool HasBasePass(uint) const;
  28510. bool HasEventHandlers() const;
  28511. bool HasSubscribedToEvent(Object, StringHash) const;
  28512. bool HasSubscribedToEvent(StringHash) const;
  28513. bool IsEnabled() const;
  28514. bool IsEnabledEffective() const;
  28515. bool IsInView() const;
  28516. bool IsInView(Camera) const;
  28517. bool IsInView(const FrameInfo&, bool = false) const;
  28518. bool IsInstanceOf(StringHash) const;
  28519. bool IsOccludee() const;
  28520. bool IsOccluder() const;
  28521. bool IsReplicated() const;
  28522. bool IsTemporary() const;
  28523. bool IsZoneDirty() const;
  28524. void LimitLights();
  28525. void LimitVertexLights(bool);
  28526. bool Load(Deserializer&);
  28527. bool LoadJSON(const JSONValue&);
  28528. bool LoadXML(const XMLElement&);
  28529. void MarkForUpdate();
  28530. void MarkInView(const FrameInfo&);
  28531. void MarkInView(int);
  28532. void MarkNetworkUpdate();
  28533. operator Object() const;
  28534. void OnEvent(Object, StringHash, VariantMap&);
  28535. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28536. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28537. void OnSetEnabled();
  28538. void PrepareNetworkUpdate();
  28539. bool ReadDeltaUpdate(Deserializer&);
  28540. bool ReadLatestDataUpdate(Deserializer&);
  28541. const Rect& GetDrawRect() const;
  28542. const Rect& GetTextureRect() const;
  28543. operator RefCounted() const;
  28544. int Refs() const;
  28545. void Remove();
  28546. void RemoveAttributeAnimation(const String&);
  28547. void RemoveInstanceDefault();
  28548. void RemoveObjectAnimation();
  28549. void ResetToDefault();
  28550. bool Save(Serializer&) const;
  28551. bool SaveDefaultAttributes() const;
  28552. bool SaveJSON(JSONValue&) const;
  28553. bool SaveXML(XMLElement&) const;
  28554. void SendEvent(StringHash);
  28555. void SendEvent(StringHash, VariantMap&);
  28556. operator Serializable() const;
  28557. void SetAlpha(float);
  28558. void SetAnimationEnabled(bool);
  28559. void SetAnimationTime(float);
  28560. bool SetAttribute(const String&, const Variant&);
  28561. bool SetAttribute(uint, const Variant&);
  28562. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28563. void SetAttributeAnimationSpeed(const String&, float);
  28564. void SetAttributeAnimationTime(const String&, float);
  28565. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28566. void SetBasePass(uint);
  28567. void SetBlendMode(BlendMode);
  28568. void SetBlockEvents(bool);
  28569. void SetCastShadows(bool);
  28570. void SetColor(const Color&);
  28571. void SetCustomMaterial(Material);
  28572. void SetCustomMaterialAttr(const ResourceRef&);
  28573. void SetDrawDistance(float);
  28574. void SetDrawRect(const Rect&);
  28575. void SetEnabled(bool);
  28576. void SetFlip(bool, bool, bool = false);
  28577. void SetFlipX(bool);
  28578. void SetFlipY(bool);
  28579. void SetGlobalVar(StringHash, const Variant&);
  28580. void SetHotSpot(const Vector2&);
  28581. void SetInstanceDefault(bool);
  28582. void SetInterceptNetworkUpdate(const String&, bool);
  28583. void SetLayer(int);
  28584. void SetLightMask(uint);
  28585. void SetLodBias(float);
  28586. void SetMaxLights(uint);
  28587. void SetMinMaxZ(float, float);
  28588. void SetObjectAnimation(ObjectAnimation);
  28589. void SetObjectAnimationAttr(const ResourceRef&);
  28590. void SetOccludee(bool);
  28591. void SetOccluder(bool);
  28592. void SetOrderInLayer(int);
  28593. void SetShadowDistance(float);
  28594. void SetShadowMask(uint);
  28595. void SetSortValue(float);
  28596. void SetSprite(Sprite2D);
  28597. void SetSpriteAttr(const ResourceRef&);
  28598. void SetSwapXY(bool);
  28599. void SetTemporary(bool);
  28600. void SetTextureRect(const Rect&);
  28601. void SetUseDrawRect(bool);
  28602. void SetUseHotSpot(bool);
  28603. void SetUseTextureRect(bool);
  28604. void SetViewMask(uint);
  28605. void SetZone(Zone, bool = false);
  28606. void SetZoneMask(uint);
  28607. operator StretchableSprite2D() const;
  28608. const String& GetCategory() const;
  28609. const String& GetTypeName() const;
  28610. void UnsubscribeFromAllEvents();
  28611. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28612. void UnsubscribeFromEvent(Object, StringHash);
  28613. void UnsubscribeFromEvent(StringHash);
  28614. void UnsubscribeFromEvents(Object);
  28615. void Update(const FrameInfo&);
  28616. void UpdateBatches(const FrameInfo&);
  28617. void UpdateGeometry(const FrameInfo&);
  28618. const Variant& GetGlobalVar(StringHash) const;
  28619. const VariantMap& GetGlobalVars() const;
  28620. const Vector2& GetHotSpot() const;
  28621. int WeakRefs() const;
  28622. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28623. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28624. void WriteLatestDataUpdate(Serializer&, uint8);
  28625. operator const Animatable() const;
  28626. operator const AnimatedSprite2D() const;
  28627. operator const Component() const;
  28628. operator const Drawable2D() const;
  28629. operator const Drawable() const;
  28630. operator const Object() const;
  28631. operator const RefCounted() const;
  28632. operator const Serializable() const;
  28633. operator const StretchableSprite2D() const;
  28634. // Properties:
  28635. float alpha;
  28636. bool animationEnabled;
  28637. /* readonly */
  28638. Array<Variant> attributeDefaults;
  28639. /* readonly */
  28640. Array<AttributeInfo> attributeInfos;
  28641. Array<Variant> attributes;
  28642. BlendMode blendMode;
  28643. /* readonly */
  28644. BoundingBox boundingBox;
  28645. bool castShadows;
  28646. /* readonly */
  28647. String category;
  28648. Color color;
  28649. Material customMaterial;
  28650. float drawDistance;
  28651. Rect drawRect;
  28652. bool enabled;
  28653. /* readonly */
  28654. bool enabledEffective;
  28655. bool flipX;
  28656. bool flipY;
  28657. Array<Variant> globalVar;
  28658. /* readonly */
  28659. VariantMap globalVars;
  28660. Vector2 hotSpot;
  28661. /* readonly */
  28662. uint id;
  28663. /* readonly */
  28664. bool inView;
  28665. int layer;
  28666. uint lightMask;
  28667. float lodBias;
  28668. uint maxLights;
  28669. /* readonly */
  28670. Node node;
  28671. /* readonly */
  28672. uint numAttributes;
  28673. ObjectAnimation objectAnimation;
  28674. bool occludee;
  28675. bool occluder;
  28676. int orderInLayer;
  28677. /* readonly */
  28678. int refs;
  28679. /* readonly */
  28680. bool replicated;
  28681. float shadowDistance;
  28682. uint shadowMask;
  28683. Sprite2D sprite;
  28684. bool swapXY;
  28685. bool temporary;
  28686. Rect textureRect;
  28687. /* readonly */
  28688. StringHash type;
  28689. /* readonly */
  28690. String typeName;
  28691. bool useDrawRect;
  28692. bool useHotSpot;
  28693. bool useTextureRect;
  28694. uint viewMask;
  28695. /* readonly */
  28696. int weakRefs;
  28697. /* readonly */
  28698. BoundingBox worldBoundingBox;
  28699. /* readonly */
  28700. Zone zone;
  28701. uint zoneMask;
  28702. };
  28703. class StoredLogMessage
  28704. {
  28705. public:
  28706. ~StoredLogMessage();
  28707. StoredLogMessage();
  28708. StoredLogMessage(const String&in, int, bool);
  28709. // Methods:
  28710. StoredLogMessage& operator=(const StoredLogMessage&);
  28711. // Properties:
  28712. bool error;
  28713. int level;
  28714. String message;
  28715. };
  28716. class StretchableSprite2D
  28717. {
  28718. public:
  28719. StretchableSprite2D();
  28720. // Methods:
  28721. void AddLight(Light);
  28722. void AddVertexLight(Light);
  28723. void AllocateNetworkState();
  28724. operator Animatable() const;
  28725. void ApplyAttributes();
  28726. const BoundingBox& GetBoundingBox() const;
  28727. const BoundingBox& GetWorldBoundingBox();
  28728. void CleanupConnection(Connection);
  28729. const Color& GetColor() const;
  28730. operator Component() const;
  28731. void DrawDebugGeometry(DebugRenderer, bool);
  28732. bool DrawOcclusion(OcclusionBuffer);
  28733. operator Drawable2D() const;
  28734. operator Drawable() const;
  28735. float GetAlpha() const;
  28736. bool GetAnimationEnabled() const;
  28737. Variant GetAttribute(const String&) const;
  28738. Variant GetAttribute(uint) const;
  28739. ValueAnimation GetAttributeAnimation(const String&) const;
  28740. float GetAttributeAnimationSpeed(const String&) const;
  28741. float GetAttributeAnimationTime(const String&) const;
  28742. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  28743. Variant GetAttributeDefault(const String&) const;
  28744. Variant GetAttributeDefault(uint) const;
  28745. Array<SourceBatch> GetBatches() const;
  28746. BlendMode GetBlendMode() const;
  28747. bool GetBlockEvents() const;
  28748. bool GetCastShadows() const;
  28749. Component GetComponent(StringHash) const;
  28750. Material GetCustomMaterial() const;
  28751. ResourceRef GetCustomMaterialAttr() const;
  28752. float GetDistance() const;
  28753. float GetDrawDistance() const;
  28754. uint8 GetDrawableFlags() const;
  28755. VariantMap& GetEventDataMap() const;
  28756. Object GetEventSender() const;
  28757. Light GetFirstLight() const;
  28758. bool GetFlipX() const;
  28759. bool GetFlipY() const;
  28760. uint GetID() const;
  28761. bool GetInterceptNetworkUpdate(const String&) const;
  28762. int GetLayer() const;
  28763. uint GetLightMask() const;
  28764. Array<Light> GetLights() const;
  28765. float GetLodBias() const;
  28766. float GetLodDistance() const;
  28767. Geometry GetLodGeometry(uint, uint);
  28768. uint GetMaxLights() const;
  28769. float GetMaxZ() const;
  28770. float GetMinZ() const;
  28771. Node GetNode() const;
  28772. uint GetNumAttributes() const;
  28773. uint GetNumNetworkAttributes() const;
  28774. uint GetNumOccluderTriangles();
  28775. ObjectAnimation GetObjectAnimation() const;
  28776. ResourceRef GetObjectAnimationAttr() const;
  28777. int GetOrderInLayer() const;
  28778. Scene GetScene() const;
  28779. float GetShadowDistance() const;
  28780. uint GetShadowMask() const;
  28781. float GetSortValue() const;
  28782. Array<SourceBatch2D> GetSourceBatches();
  28783. Sprite2D GetSprite() const;
  28784. ResourceRef GetSpriteAttr() const;
  28785. Object GetSubsystem(StringHash) const;
  28786. bool GetSwapXY() const;
  28787. StringHash GetType() const;
  28788. UpdateGeometryType GetUpdateGeometryType();
  28789. bool GetUseDrawRect() const;
  28790. bool GetUseHotSpot() const;
  28791. bool GetUseTextureRect() const;
  28792. Array<Light> GetVertexLights() const;
  28793. uint GetViewMask() const;
  28794. Zone GetZone() const;
  28795. uint GetZoneMask() const;
  28796. bool HasBasePass(uint) const;
  28797. bool HasEventHandlers() const;
  28798. bool HasSubscribedToEvent(Object, StringHash) const;
  28799. bool HasSubscribedToEvent(StringHash) const;
  28800. const IntRect& GetBorder() const;
  28801. bool IsEnabled() const;
  28802. bool IsEnabledEffective() const;
  28803. bool IsInView() const;
  28804. bool IsInView(Camera) const;
  28805. bool IsInView(const FrameInfo&, bool = false) const;
  28806. bool IsInstanceOf(StringHash) const;
  28807. bool IsOccludee() const;
  28808. bool IsOccluder() const;
  28809. bool IsReplicated() const;
  28810. bool IsTemporary() const;
  28811. bool IsZoneDirty() const;
  28812. void LimitLights();
  28813. void LimitVertexLights(bool);
  28814. bool Load(Deserializer&);
  28815. bool LoadJSON(const JSONValue&);
  28816. bool LoadXML(const XMLElement&);
  28817. void MarkForUpdate();
  28818. void MarkInView(const FrameInfo&);
  28819. void MarkInView(int);
  28820. void MarkNetworkUpdate();
  28821. operator Object() const;
  28822. void OnEvent(Object, StringHash, VariantMap&);
  28823. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  28824. void OnSetAttribute(const AttributeInfo&, const Variant&);
  28825. void OnSetEnabled();
  28826. void PrepareNetworkUpdate();
  28827. bool ReadDeltaUpdate(Deserializer&);
  28828. bool ReadLatestDataUpdate(Deserializer&);
  28829. const Rect& GetDrawRect() const;
  28830. const Rect& GetTextureRect() const;
  28831. operator RefCounted() const;
  28832. int Refs() const;
  28833. void Remove();
  28834. void RemoveAttributeAnimation(const String&);
  28835. void RemoveInstanceDefault();
  28836. void RemoveObjectAnimation();
  28837. void ResetToDefault();
  28838. bool Save(Serializer&) const;
  28839. bool SaveDefaultAttributes() const;
  28840. bool SaveJSON(JSONValue&) const;
  28841. bool SaveXML(XMLElement&) const;
  28842. void SendEvent(StringHash);
  28843. void SendEvent(StringHash, VariantMap&);
  28844. operator Serializable() const;
  28845. void SetAlpha(float);
  28846. void SetAnimationEnabled(bool);
  28847. void SetAnimationTime(float);
  28848. bool SetAttribute(const String&, const Variant&);
  28849. bool SetAttribute(uint, const Variant&);
  28850. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  28851. void SetAttributeAnimationSpeed(const String&, float);
  28852. void SetAttributeAnimationTime(const String&, float);
  28853. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  28854. void SetBasePass(uint);
  28855. void SetBlendMode(BlendMode);
  28856. void SetBlockEvents(bool);
  28857. void SetBorder(const IntRect&);
  28858. void SetCastShadows(bool);
  28859. void SetColor(const Color&);
  28860. void SetCustomMaterial(Material);
  28861. void SetCustomMaterialAttr(const ResourceRef&);
  28862. void SetDrawDistance(float);
  28863. void SetDrawRect(const Rect&);
  28864. void SetEnabled(bool);
  28865. void SetFlip(bool, bool, bool = false);
  28866. void SetFlipX(bool);
  28867. void SetFlipY(bool);
  28868. void SetGlobalVar(StringHash, const Variant&);
  28869. void SetHotSpot(const Vector2&);
  28870. void SetInstanceDefault(bool);
  28871. void SetInterceptNetworkUpdate(const String&, bool);
  28872. void SetLayer(int);
  28873. void SetLightMask(uint);
  28874. void SetLodBias(float);
  28875. void SetMaxLights(uint);
  28876. void SetMinMaxZ(float, float);
  28877. void SetObjectAnimation(ObjectAnimation);
  28878. void SetObjectAnimationAttr(const ResourceRef&);
  28879. void SetOccludee(bool);
  28880. void SetOccluder(bool);
  28881. void SetOrderInLayer(int);
  28882. void SetShadowDistance(float);
  28883. void SetShadowMask(uint);
  28884. void SetSortValue(float);
  28885. void SetSprite(Sprite2D);
  28886. void SetSpriteAttr(const ResourceRef&);
  28887. void SetSwapXY(bool);
  28888. void SetTemporary(bool);
  28889. void SetTextureRect(const Rect&);
  28890. void SetUseDrawRect(bool);
  28891. void SetUseHotSpot(bool);
  28892. void SetUseTextureRect(bool);
  28893. void SetViewMask(uint);
  28894. void SetZone(Zone, bool = false);
  28895. void SetZoneMask(uint);
  28896. operator StaticSprite2D() const;
  28897. const String& GetCategory() const;
  28898. const String& GetTypeName() const;
  28899. void UnsubscribeFromAllEvents();
  28900. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  28901. void UnsubscribeFromEvent(Object, StringHash);
  28902. void UnsubscribeFromEvent(StringHash);
  28903. void UnsubscribeFromEvents(Object);
  28904. void Update(const FrameInfo&);
  28905. void UpdateBatches(const FrameInfo&);
  28906. void UpdateGeometry(const FrameInfo&);
  28907. const Variant& GetGlobalVar(StringHash) const;
  28908. const VariantMap& GetGlobalVars() const;
  28909. const Vector2& GetHotSpot() const;
  28910. int WeakRefs() const;
  28911. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  28912. void WriteInitialDeltaUpdate(Serializer&, uint8);
  28913. void WriteLatestDataUpdate(Serializer&, uint8);
  28914. operator const Animatable() const;
  28915. operator const Component() const;
  28916. operator const Drawable2D() const;
  28917. operator const Drawable() const;
  28918. operator const Object() const;
  28919. operator const RefCounted() const;
  28920. operator const Serializable() const;
  28921. operator const StaticSprite2D() const;
  28922. // Properties:
  28923. float alpha;
  28924. bool animationEnabled;
  28925. /* readonly */
  28926. Array<Variant> attributeDefaults;
  28927. /* readonly */
  28928. Array<AttributeInfo> attributeInfos;
  28929. Array<Variant> attributes;
  28930. BlendMode blendMode;
  28931. IntRect border;
  28932. /* readonly */
  28933. BoundingBox boundingBox;
  28934. bool castShadows;
  28935. /* readonly */
  28936. String category;
  28937. Color color;
  28938. Material customMaterial;
  28939. float drawDistance;
  28940. Rect drawRect;
  28941. bool enabled;
  28942. /* readonly */
  28943. bool enabledEffective;
  28944. bool flipX;
  28945. bool flipY;
  28946. Array<Variant> globalVar;
  28947. /* readonly */
  28948. VariantMap globalVars;
  28949. Vector2 hotSpot;
  28950. /* readonly */
  28951. uint id;
  28952. /* readonly */
  28953. bool inView;
  28954. int layer;
  28955. uint lightMask;
  28956. float lodBias;
  28957. uint maxLights;
  28958. /* readonly */
  28959. Node node;
  28960. /* readonly */
  28961. uint numAttributes;
  28962. ObjectAnimation objectAnimation;
  28963. bool occludee;
  28964. bool occluder;
  28965. int orderInLayer;
  28966. /* readonly */
  28967. int refs;
  28968. /* readonly */
  28969. bool replicated;
  28970. float shadowDistance;
  28971. uint shadowMask;
  28972. Sprite2D sprite;
  28973. bool swapXY;
  28974. bool temporary;
  28975. Rect textureRect;
  28976. /* readonly */
  28977. StringHash type;
  28978. /* readonly */
  28979. String typeName;
  28980. bool useDrawRect;
  28981. bool useHotSpot;
  28982. bool useTextureRect;
  28983. uint viewMask;
  28984. /* readonly */
  28985. int weakRefs;
  28986. /* readonly */
  28987. BoundingBox worldBoundingBox;
  28988. /* readonly */
  28989. Zone zone;
  28990. uint zoneMask;
  28991. };
  28992. class String
  28993. {
  28994. public:
  28995. ~String();
  28996. String();
  28997. String(const String&in);
  28998. String(int);
  28999. String(int16);
  29000. String(int64);
  29001. String(uint);
  29002. String(uint16);
  29003. String(uint64);
  29004. String(float);
  29005. String(double);
  29006. String(bool);
  29007. String(int8);
  29008. String(int8, int);
  29009. String(const char*);
  29010. // Methods:
  29011. String operator+(bool) const;
  29012. String operator+(const String&) const;
  29013. String operator+(double) const;
  29014. String operator+(float) const;
  29015. String operator+(int) const;
  29016. String operator+(uint) const;
  29017. String& operator+=(bool);
  29018. String& operator+=(const String&);
  29019. String& operator+=(double);
  29020. String& operator+=(float);
  29021. String& operator+=(int);
  29022. String& operator+=(int16);
  29023. String& operator+=(int64);
  29024. String& operator+=(int8);
  29025. String& operator+=(uint);
  29026. String& operator+=(uint16);
  29027. String& operator+=(uint64);
  29028. int operator<(const String&) const;
  29029. String& operator=(bool);
  29030. String& operator=(const String&);
  29031. String& operator=(double);
  29032. String& operator=(float);
  29033. String& operator=(int);
  29034. String& operator=(uint);
  29035. bool operator==(const String&) const;
  29036. int8& operator[](int);
  29037. String& Append(const String&);
  29038. String& Append(int8);
  29039. String& AppendUTF8(uint);
  29040. int8& At(int);
  29041. uint AtUTF8(int) const;
  29042. int8 Back() const;
  29043. int ByteOffsetUTF8(int) const;
  29044. int Capacity() const;
  29045. void Clear();
  29046. void Compact();
  29047. int Compare(const String&, bool = true) const;
  29048. bool Contains(const String&, bool = true) const;
  29049. bool Contains(int8, bool = true) const;
  29050. bool Empty() const;
  29051. bool EndsWith(const String&, bool = true) const;
  29052. void Erase(int, int = 1);
  29053. int Find(const String&, int = 0, bool = true) const;
  29054. int Find(int8, int = 0, bool = true) const;
  29055. int FindLast(const String&, int = String :: NPOS, bool = true) const;
  29056. int FindLast(int8, int = String :: NPOS, bool = true) const;
  29057. int8 Front() const;
  29058. void Insert(int, const String&);
  29059. void Insert(int, int8);
  29060. bool IsShort() const;
  29061. void Join(Array<String>, const String&);
  29062. int Length() const;
  29063. int LengthUTF8() const;
  29064. uint NextUTF8Char(int&) const;
  29065. void Replace(const String&, const String&, bool = true);
  29066. void Replace(int, int, const String&);
  29067. void Replace(int8, int8, bool = true);
  29068. void ReplaceUTF8(int, uint);
  29069. String Replaced(const String&, const String&, bool = true) const;
  29070. String Replaced(int8, int8, bool = true) const;
  29071. void Reserve(int);
  29072. void Resize(int);
  29073. Array<String> Split(int8, bool = false) const;
  29074. bool StartsWith(const String&, bool = true) const;
  29075. String Substring(int) const;
  29076. String Substring(int, int) const;
  29077. String SubstringUTF8(int) const;
  29078. String SubstringUTF8(int, int) const;
  29079. void Swap(String&);
  29080. bool ToBool() const;
  29081. Color ToColor() const;
  29082. double ToDouble() const;
  29083. float ToFloat() const;
  29084. uint ToHash() const;
  29085. int ToInt(int base = 10) const;
  29086. int64 ToInt64(int base = 10) const;
  29087. IntRect ToIntRect() const;
  29088. IntVector2 ToIntVector2() const;
  29089. IntVector3 ToIntVector3() const;
  29090. String ToLower() const;
  29091. Matrix3 ToMatrix3() const;
  29092. Matrix3x4 ToMatrix3x4() const;
  29093. Matrix4 ToMatrix4() const;
  29094. Quaternion ToQuaternion() const;
  29095. uint ToUInt(int base = 10) const;
  29096. uint64 ToUInt64(int base = 10) const;
  29097. String ToUpper() const;
  29098. Vector2 ToVector2() const;
  29099. Vector3 ToVector3() const;
  29100. Vector4 ToVector4(bool allowMissingCoords = false) const;
  29101. Variant ToVectorVariant() const;
  29102. String Trimmed() const;
  29103. const int8& operator[](int) const;
  29104. const int8& At(int) const;
  29105. // Properties:
  29106. /* readonly */
  29107. bool empty;
  29108. /* readonly */
  29109. int length;
  29110. /* readonly */
  29111. int utf8Length;
  29112. // Constants:
  29113. static const String EMPTY;
  29114. static const int NPOS;
  29115. };
  29116. class StringHash
  29117. {
  29118. public:
  29119. StringHash();
  29120. StringHash(const StringHash&in);
  29121. StringHash(uint);
  29122. StringHash(const String&in);
  29123. // Methods:
  29124. StringHash operator+(const StringHash&) const;
  29125. StringHash& operator+=(const StringHash&);
  29126. int operator<(const StringHash&) const;
  29127. StringHash& operator=(const StringHash&);
  29128. bool operator==(const StringHash&) const;
  29129. String Reverse() const;
  29130. uint ToHash() const;
  29131. String ToString() const;
  29132. uint Value() const;
  29133. // Properties:
  29134. /* readonly */
  29135. uint value;
  29136. // Constants:
  29137. static const StringHash ZERO;
  29138. };
  29139. class StringHashRegister
  29140. {
  29141. public:
  29142. ~StringHashRegister();
  29143. StringHashRegister(bool);
  29144. // Methods:
  29145. bool Contains(const StringHash&) const;
  29146. String GetStringCopy(const StringHash&) const;
  29147. const String& GetString(const StringHash&) const;
  29148. };
  29149. class Technique
  29150. {
  29151. public:
  29152. Technique();
  29153. // Methods:
  29154. bool BeginLoad(Deserializer&);
  29155. Technique Clone(const String& = String :: EMPTY) const;
  29156. Technique CloneWithDefines(const String&, const String&);
  29157. Pass CreatePass(const String&);
  29158. bool EndLoad();
  29159. AsyncLoadState GetAsyncLoadState() const;
  29160. bool GetBlockEvents() const;
  29161. VariantMap& GetEventDataMap() const;
  29162. Object GetEventSender() const;
  29163. uint GetMemoryUse() const;
  29164. StringHash GetNameHash() const;
  29165. int GetNumPasses() const;
  29166. Pass GetPass(const String&) const;
  29167. Pass GetPass(int) const;
  29168. Array<String> GetPassNames() const;
  29169. Array<Pass> GetPasses() const;
  29170. Object GetSubsystem(StringHash) const;
  29171. Pass GetSupportedPass(const String&) const;
  29172. Pass GetSupportedPass(int) const;
  29173. StringHash GetType() const;
  29174. uint GetUseTimer();
  29175. bool HasEventHandlers() const;
  29176. bool HasPass(const String&) const;
  29177. bool HasPass(int) const;
  29178. bool HasSubscribedToEvent(Object, StringHash) const;
  29179. bool HasSubscribedToEvent(StringHash) const;
  29180. bool IsDesktop() const;
  29181. bool IsInstanceOf(StringHash) const;
  29182. bool IsSupported() const;
  29183. bool Load(Deserializer&);
  29184. bool Load(File);
  29185. bool Load(VectorBuffer&);
  29186. bool Load(const String&);
  29187. bool LoadFile(const String&);
  29188. operator Object() const;
  29189. void OnEvent(Object, StringHash, VariantMap&);
  29190. operator RefCounted() const;
  29191. int Refs() const;
  29192. void ReleaseShaders();
  29193. void RemovePass(const String&);
  29194. void ResetUseTimer();
  29195. operator Resource() const;
  29196. bool Save(File) const;
  29197. bool Save(Serializer&) const;
  29198. bool Save(VectorBuffer&) const;
  29199. bool Save(const String&) const;
  29200. bool SaveFile(const String&) const;
  29201. void SendEvent(StringHash);
  29202. void SendEvent(StringHash, VariantMap&);
  29203. void SetAsyncLoadState(AsyncLoadState);
  29204. void SetBlockEvents(bool);
  29205. void SetGlobalVar(StringHash, const Variant&);
  29206. void SetIsDesktop(bool);
  29207. void SetMemoryUse(uint);
  29208. void SetName(const String&);
  29209. const String& GetCategory() const;
  29210. const String& GetName() const;
  29211. const String& GetTypeName() const;
  29212. void UnsubscribeFromAllEvents();
  29213. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29214. void UnsubscribeFromEvent(Object, StringHash);
  29215. void UnsubscribeFromEvent(StringHash);
  29216. void UnsubscribeFromEvents(Object);
  29217. const Variant& GetGlobalVar(StringHash) const;
  29218. const VariantMap& GetGlobalVars() const;
  29219. int WeakRefs() const;
  29220. operator const Object() const;
  29221. operator const RefCounted() const;
  29222. operator const Resource() const;
  29223. // Properties:
  29224. /* readonly */
  29225. String category;
  29226. bool desktop;
  29227. Array<Variant> globalVar;
  29228. /* readonly */
  29229. VariantMap globalVars;
  29230. /* readonly */
  29231. uint memoryUse;
  29232. String name;
  29233. /* readonly */
  29234. int numPasses;
  29235. /* readonly */
  29236. Array<String> passNames;
  29237. /* readonly */
  29238. Array<Pass> passes;
  29239. /* readonly */
  29240. int refs;
  29241. /* readonly */
  29242. bool supported;
  29243. /* readonly */
  29244. StringHash type;
  29245. /* readonly */
  29246. String typeName;
  29247. /* readonly */
  29248. uint useTimer;
  29249. /* readonly */
  29250. int weakRefs;
  29251. // Constants:
  29252. static const int alphaPassIndex;
  29253. static const int basePassIndex;
  29254. static const int deferredPassIndex;
  29255. static const int lightPassIndex;
  29256. static const int litAlphaPassIndex;
  29257. static const int litBasePassIndex;
  29258. static const int materialPassIndex;
  29259. static const int shadowPassIndex;
  29260. };
  29261. class TechniqueEntry
  29262. {
  29263. public:
  29264. ~TechniqueEntry();
  29265. TechniqueEntry();
  29266. TechniqueEntry(Technique@, uint, float);
  29267. // Methods:
  29268. TechniqueEntry& operator=(const TechniqueEntry&);
  29269. // Properties:
  29270. float lodDistance;
  29271. uint qualityLevel;
  29272. Technique technique;
  29273. };
  29274. class Terrain
  29275. {
  29276. public:
  29277. Terrain();
  29278. // Methods:
  29279. void AllocateNetworkState();
  29280. operator Animatable() const;
  29281. void ApplyAttributes();
  29282. void ApplyHeightMap();
  29283. void CleanupConnection(Connection);
  29284. operator Component() const;
  29285. void CreatePatchGeometry(TerrainPatch);
  29286. void DrawDebugGeometry(DebugRenderer, bool);
  29287. bool GetAnimationEnabled() const;
  29288. Variant GetAttribute(const String&) const;
  29289. Variant GetAttribute(uint) const;
  29290. ValueAnimation GetAttributeAnimation(const String&) const;
  29291. float GetAttributeAnimationSpeed(const String&) const;
  29292. float GetAttributeAnimationTime(const String&) const;
  29293. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29294. Variant GetAttributeDefault(const String&) const;
  29295. Variant GetAttributeDefault(uint) const;
  29296. bool GetBlockEvents() const;
  29297. bool GetCastShadows() const;
  29298. Component GetComponent(StringHash) const;
  29299. float GetDrawDistance() const;
  29300. Terrain GetEastNeighbor() const;
  29301. VariantMap& GetEventDataMap() const;
  29302. Object GetEventSender() const;
  29303. float GetHeight(const Vector3&) const;
  29304. Image GetHeightMap() const;
  29305. ResourceRef GetHeightMapAttr() const;
  29306. uint GetID() const;
  29307. bool GetInterceptNetworkUpdate(const String&) const;
  29308. uint GetLightMask() const;
  29309. float GetLodBias() const;
  29310. Material GetMaterial() const;
  29311. ResourceRef GetMaterialAttr() const;
  29312. uint GetMaxLights() const;
  29313. uint GetMaxLodLevels() const;
  29314. TerrainPatch GetNeighborPatch(int, int) const;
  29315. Node GetNode() const;
  29316. Vector3 GetNormal(const Vector3&) const;
  29317. Terrain GetNorthNeighbor() const;
  29318. uint GetNumAttributes() const;
  29319. uint GetNumNetworkAttributes() const;
  29320. ObjectAnimation GetObjectAnimation() const;
  29321. ResourceRef GetObjectAnimationAttr() const;
  29322. uint GetOcclusionLodLevel() const;
  29323. TerrainPatch GetPatch(int) const;
  29324. TerrainPatch GetPatch(int, int) const;
  29325. int GetPatchSize() const;
  29326. Scene GetScene() const;
  29327. float GetShadowDistance() const;
  29328. uint GetShadowMask() const;
  29329. bool GetSmoothing() const;
  29330. Terrain GetSouthNeighbor() const;
  29331. Object GetSubsystem(StringHash) const;
  29332. StringHash GetType() const;
  29333. uint GetViewMask() const;
  29334. Terrain GetWestNeighbor() const;
  29335. uint GetZoneMask() const;
  29336. bool HasEventHandlers() const;
  29337. bool HasSubscribedToEvent(Object, StringHash) const;
  29338. bool HasSubscribedToEvent(StringHash) const;
  29339. Vector3 HeightMapToWorld(const IntVector2&) const;
  29340. const IntVector2& GetNumPatches() const;
  29341. const IntVector2& GetNumVertices() const;
  29342. bool IsEnabled() const;
  29343. bool IsEnabledEffective() const;
  29344. bool IsInstanceOf(StringHash) const;
  29345. bool IsOccludee() const;
  29346. bool IsOccluder() const;
  29347. bool IsReplicated() const;
  29348. bool IsTemporary() const;
  29349. bool IsVisible() const;
  29350. bool Load(Deserializer&);
  29351. bool LoadJSON(const JSONValue&);
  29352. bool LoadXML(const XMLElement&);
  29353. void MarkNetworkUpdate();
  29354. operator Object() const;
  29355. void OnEvent(Object, StringHash, VariantMap&);
  29356. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29357. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29358. void OnSetEnabled();
  29359. void PrepareNetworkUpdate();
  29360. bool ReadDeltaUpdate(Deserializer&);
  29361. bool ReadLatestDataUpdate(Deserializer&);
  29362. operator RefCounted() const;
  29363. int Refs() const;
  29364. void Remove();
  29365. void RemoveAttributeAnimation(const String&);
  29366. void RemoveInstanceDefault();
  29367. void RemoveObjectAnimation();
  29368. void ResetToDefault();
  29369. bool Save(Serializer&) const;
  29370. bool SaveDefaultAttributes() const;
  29371. bool SaveJSON(JSONValue&) const;
  29372. bool SaveXML(XMLElement&) const;
  29373. void SendEvent(StringHash);
  29374. void SendEvent(StringHash, VariantMap&);
  29375. operator Serializable() const;
  29376. void SetAnimationEnabled(bool);
  29377. void SetAnimationTime(float);
  29378. bool SetAttribute(const String&, const Variant&);
  29379. bool SetAttribute(uint, const Variant&);
  29380. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  29381. void SetAttributeAnimationSpeed(const String&, float);
  29382. void SetAttributeAnimationTime(const String&, float);
  29383. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  29384. void SetBlockEvents(bool);
  29385. void SetCastShadows(bool);
  29386. void SetDrawDistance(float);
  29387. void SetEastNeighbor(Terrain);
  29388. void SetEnabled(bool);
  29389. void SetGlobalVar(StringHash, const Variant&);
  29390. bool SetHeightMap(Image);
  29391. void SetHeightMapAttr(const ResourceRef&);
  29392. void SetInstanceDefault(bool);
  29393. void SetInterceptNetworkUpdate(const String&, bool);
  29394. void SetLightMask(uint);
  29395. void SetLodBias(float);
  29396. void SetMaterial(Material);
  29397. void SetMaterialAttr(const ResourceRef&);
  29398. void SetMaxLights(uint);
  29399. void SetMaxLodLevels(uint);
  29400. void SetMaxLodLevelsAttr(uint);
  29401. void SetNeighbors(Terrain, Terrain, Terrain, Terrain);
  29402. void SetNorthNeighbor(Terrain);
  29403. void SetObjectAnimation(ObjectAnimation);
  29404. void SetObjectAnimationAttr(const ResourceRef&);
  29405. void SetOccludee(bool);
  29406. void SetOccluder(bool);
  29407. void SetOcclusionLodLevel(uint);
  29408. void SetOcclusionLodLevelAttr(uint);
  29409. void SetPatchSize(int);
  29410. void SetPatchSizeAttr(int);
  29411. void SetShadowDistance(float);
  29412. void SetShadowMask(uint);
  29413. void SetSmoothing(bool);
  29414. void SetSouthNeighbor(Terrain);
  29415. void SetSpacing(const Vector3&);
  29416. void SetTemporary(bool);
  29417. void SetViewMask(uint);
  29418. void SetWestNeighbor(Terrain);
  29419. void SetZoneMask(uint);
  29420. const String& GetCategory() const;
  29421. const String& GetTypeName() const;
  29422. void UnsubscribeFromAllEvents();
  29423. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29424. void UnsubscribeFromEvent(Object, StringHash);
  29425. void UnsubscribeFromEvent(StringHash);
  29426. void UnsubscribeFromEvents(Object);
  29427. void UpdatePatchLod(TerrainPatch);
  29428. const Variant& GetGlobalVar(StringHash) const;
  29429. const VariantMap& GetGlobalVars() const;
  29430. const Vector3& GetSpacing() const;
  29431. int WeakRefs() const;
  29432. IntVector2 WorldToHeightMap(const Vector3&) const;
  29433. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  29434. void WriteInitialDeltaUpdate(Serializer&, uint8);
  29435. void WriteLatestDataUpdate(Serializer&, uint8);
  29436. operator const Animatable() const;
  29437. operator const Component() const;
  29438. operator const Object() const;
  29439. operator const RefCounted() const;
  29440. operator const Serializable() const;
  29441. // Properties:
  29442. bool animationEnabled;
  29443. /* readonly */
  29444. Array<Variant> attributeDefaults;
  29445. /* readonly */
  29446. Array<AttributeInfo> attributeInfos;
  29447. Array<Variant> attributes;
  29448. bool castShadows;
  29449. /* readonly */
  29450. String category;
  29451. float drawDistance;
  29452. Terrain eastNeighbor;
  29453. bool enabled;
  29454. /* readonly */
  29455. bool enabledEffective;
  29456. Array<Variant> globalVar;
  29457. /* readonly */
  29458. VariantMap globalVars;
  29459. Image heightMap;
  29460. /* readonly */
  29461. uint id;
  29462. uint lightMask;
  29463. float lodBias;
  29464. Material material;
  29465. uint maxLights;
  29466. uint maxLodLevels;
  29467. /* readonly */
  29468. Node node;
  29469. Terrain northNeighbor;
  29470. /* readonly */
  29471. uint numAttributes;
  29472. /* readonly */
  29473. IntVector2 numPatches;
  29474. /* readonly */
  29475. IntVector2 numVertices;
  29476. ObjectAnimation objectAnimation;
  29477. bool occludee;
  29478. bool occluder;
  29479. uint occlusionLodLevel;
  29480. int patchSize;
  29481. /* readonly */
  29482. Array<TerrainPatch> patches;
  29483. /* readonly */
  29484. int refs;
  29485. /* readonly */
  29486. bool replicated;
  29487. float shadowDistance;
  29488. uint shadowMask;
  29489. bool smoothing;
  29490. Terrain southNeighbor;
  29491. Vector3 spacing;
  29492. bool temporary;
  29493. /* readonly */
  29494. StringHash type;
  29495. /* readonly */
  29496. String typeName;
  29497. uint viewMask;
  29498. /* readonly */
  29499. int weakRefs;
  29500. Terrain westNeighbor;
  29501. uint zoneMask;
  29502. };
  29503. class TerrainPatch
  29504. {
  29505. public:
  29506. TerrainPatch();
  29507. // Methods:
  29508. void AddLight(Light);
  29509. void AddVertexLight(Light);
  29510. void AllocateNetworkState();
  29511. operator Animatable() const;
  29512. void ApplyAttributes();
  29513. const BoundingBox& GetBoundingBox() const;
  29514. const BoundingBox& GetWorldBoundingBox();
  29515. void CleanupConnection(Connection);
  29516. operator Component() const;
  29517. void DrawDebugGeometry(DebugRenderer, bool);
  29518. bool DrawOcclusion(OcclusionBuffer);
  29519. operator Drawable() const;
  29520. bool GetAnimationEnabled() const;
  29521. Variant GetAttribute(const String&) const;
  29522. Variant GetAttribute(uint) const;
  29523. ValueAnimation GetAttributeAnimation(const String&) const;
  29524. float GetAttributeAnimationSpeed(const String&) const;
  29525. float GetAttributeAnimationTime(const String&) const;
  29526. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29527. Variant GetAttributeDefault(const String&) const;
  29528. Variant GetAttributeDefault(uint) const;
  29529. Array<SourceBatch> GetBatches() const;
  29530. bool GetBlockEvents() const;
  29531. bool GetCastShadows() const;
  29532. Component GetComponent(StringHash) const;
  29533. float GetDistance() const;
  29534. float GetDrawDistance() const;
  29535. uint8 GetDrawableFlags() const;
  29536. TerrainPatch GetEastPatch() const;
  29537. VariantMap& GetEventDataMap() const;
  29538. Object GetEventSender() const;
  29539. Light GetFirstLight() const;
  29540. Geometry GetGeometry() const;
  29541. uint GetID() const;
  29542. bool GetInterceptNetworkUpdate(const String&) const;
  29543. uint GetLightMask() const;
  29544. Array<Light> GetLights() const;
  29545. float GetLodBias() const;
  29546. float GetLodDistance() const;
  29547. Geometry GetLodGeometry(uint, uint);
  29548. int GetLodLevel() const;
  29549. uint GetMaxLights() const;
  29550. Geometry GetMaxLodGeometry() const;
  29551. float GetMaxZ() const;
  29552. float GetMinZ() const;
  29553. Node GetNode() const;
  29554. TerrainPatch GetNorthPatch() const;
  29555. uint GetNumAttributes() const;
  29556. uint GetNumNetworkAttributes() const;
  29557. uint GetNumOccluderTriangles();
  29558. ObjectAnimation GetObjectAnimation() const;
  29559. ResourceRef GetObjectAnimationAttr() const;
  29560. Geometry GetOcclusionGeometry() const;
  29561. Terrain GetOwner() const;
  29562. Scene GetScene() const;
  29563. float GetShadowDistance() const;
  29564. uint GetShadowMask() const;
  29565. float GetSortValue() const;
  29566. TerrainPatch GetSouthPatch() const;
  29567. Object GetSubsystem(StringHash) const;
  29568. StringHash GetType() const;
  29569. UpdateGeometryType GetUpdateGeometryType();
  29570. VertexBuffer GetVertexBuffer() const;
  29571. Array<Light> GetVertexLights() const;
  29572. uint GetViewMask() const;
  29573. TerrainPatch GetWestPatch() const;
  29574. Zone GetZone() const;
  29575. uint GetZoneMask() const;
  29576. bool HasBasePass(uint) const;
  29577. bool HasEventHandlers() const;
  29578. bool HasSubscribedToEvent(Object, StringHash) const;
  29579. bool HasSubscribedToEvent(StringHash) const;
  29580. const IntVector2& GetCoordinates() const;
  29581. bool IsEnabled() const;
  29582. bool IsEnabledEffective() const;
  29583. bool IsInView() const;
  29584. bool IsInView(Camera) const;
  29585. bool IsInView(const FrameInfo&, bool = false) const;
  29586. bool IsInstanceOf(StringHash) const;
  29587. bool IsOccludee() const;
  29588. bool IsOccluder() const;
  29589. bool IsReplicated() const;
  29590. bool IsTemporary() const;
  29591. bool IsZoneDirty() const;
  29592. void LimitLights();
  29593. void LimitVertexLights(bool);
  29594. bool Load(Deserializer&);
  29595. bool LoadJSON(const JSONValue&);
  29596. bool LoadXML(const XMLElement&);
  29597. void MarkForUpdate();
  29598. void MarkInView(const FrameInfo&);
  29599. void MarkInView(int);
  29600. void MarkNetworkUpdate();
  29601. operator Object() const;
  29602. void OnEvent(Object, StringHash, VariantMap&);
  29603. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29604. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29605. void OnSetEnabled();
  29606. void PrepareNetworkUpdate();
  29607. bool ReadDeltaUpdate(Deserializer&);
  29608. bool ReadLatestDataUpdate(Deserializer&);
  29609. operator RefCounted() const;
  29610. int Refs() const;
  29611. void Remove();
  29612. void RemoveAttributeAnimation(const String&);
  29613. void RemoveInstanceDefault();
  29614. void RemoveObjectAnimation();
  29615. void ResetLod();
  29616. void ResetToDefault();
  29617. bool Save(Serializer&) const;
  29618. bool SaveDefaultAttributes() const;
  29619. bool SaveJSON(JSONValue&) const;
  29620. bool SaveXML(XMLElement&) const;
  29621. void SendEvent(StringHash);
  29622. void SendEvent(StringHash, VariantMap&);
  29623. operator Serializable() const;
  29624. void SetAnimationEnabled(bool);
  29625. void SetAnimationTime(float);
  29626. bool SetAttribute(const String&, const Variant&);
  29627. bool SetAttribute(uint, const Variant&);
  29628. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  29629. void SetAttributeAnimationSpeed(const String&, float);
  29630. void SetAttributeAnimationTime(const String&, float);
  29631. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  29632. void SetBasePass(uint);
  29633. void SetBlockEvents(bool);
  29634. void SetBoundingBox(const BoundingBox&);
  29635. void SetCastShadows(bool);
  29636. void SetCoordinates(const IntVector2&);
  29637. void SetDrawDistance(float);
  29638. void SetEnabled(bool);
  29639. void SetGlobalVar(StringHash, const Variant&);
  29640. void SetInstanceDefault(bool);
  29641. void SetInterceptNetworkUpdate(const String&, bool);
  29642. void SetLightMask(uint);
  29643. void SetLodBias(float);
  29644. void SetMaterial(Material);
  29645. void SetMaxLights(uint);
  29646. void SetMinMaxZ(float, float);
  29647. void SetNeighbors(TerrainPatch, TerrainPatch, TerrainPatch, TerrainPatch);
  29648. void SetObjectAnimation(ObjectAnimation);
  29649. void SetObjectAnimationAttr(const ResourceRef&);
  29650. void SetOccludee(bool);
  29651. void SetOccluder(bool);
  29652. void SetOwner(Terrain);
  29653. void SetShadowDistance(float);
  29654. void SetShadowMask(uint);
  29655. void SetSortValue(float);
  29656. void SetTemporary(bool);
  29657. void SetViewMask(uint);
  29658. void SetZone(Zone, bool = false);
  29659. void SetZoneMask(uint);
  29660. const String& GetCategory() const;
  29661. const String& GetTypeName() const;
  29662. void UnsubscribeFromAllEvents();
  29663. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  29664. void UnsubscribeFromEvent(Object, StringHash);
  29665. void UnsubscribeFromEvent(StringHash);
  29666. void UnsubscribeFromEvents(Object);
  29667. void Update(const FrameInfo&);
  29668. void UpdateBatches(const FrameInfo&);
  29669. void UpdateGeometry(const FrameInfo&);
  29670. const Variant& GetGlobalVar(StringHash) const;
  29671. const VariantMap& GetGlobalVars() const;
  29672. int WeakRefs() const;
  29673. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  29674. void WriteInitialDeltaUpdate(Serializer&, uint8);
  29675. void WriteLatestDataUpdate(Serializer&, uint8);
  29676. operator const Animatable() const;
  29677. operator const Component() const;
  29678. operator const Drawable() const;
  29679. operator const Object() const;
  29680. operator const RefCounted() const;
  29681. operator const Serializable() const;
  29682. // Properties:
  29683. bool animationEnabled;
  29684. /* readonly */
  29685. Array<Variant> attributeDefaults;
  29686. /* readonly */
  29687. Array<AttributeInfo> attributeInfos;
  29688. Array<Variant> attributes;
  29689. /* readonly */
  29690. BoundingBox boundingBox;
  29691. bool castShadows;
  29692. /* readonly */
  29693. String category;
  29694. float drawDistance;
  29695. bool enabled;
  29696. /* readonly */
  29697. bool enabledEffective;
  29698. Array<Variant> globalVar;
  29699. /* readonly */
  29700. VariantMap globalVars;
  29701. /* readonly */
  29702. uint id;
  29703. /* readonly */
  29704. bool inView;
  29705. uint lightMask;
  29706. float lodBias;
  29707. uint maxLights;
  29708. /* readonly */
  29709. Node node;
  29710. /* readonly */
  29711. uint numAttributes;
  29712. ObjectAnimation objectAnimation;
  29713. bool occludee;
  29714. bool occluder;
  29715. /* readonly */
  29716. int refs;
  29717. /* readonly */
  29718. bool replicated;
  29719. float shadowDistance;
  29720. uint shadowMask;
  29721. bool temporary;
  29722. /* readonly */
  29723. StringHash type;
  29724. /* readonly */
  29725. String typeName;
  29726. uint viewMask;
  29727. /* readonly */
  29728. int weakRefs;
  29729. /* readonly */
  29730. BoundingBox worldBoundingBox;
  29731. /* readonly */
  29732. Zone zone;
  29733. uint zoneMask;
  29734. };
  29735. class Text
  29736. {
  29737. public:
  29738. Text();
  29739. // Methods:
  29740. void AddChild(UIElement);
  29741. void AddTag(const String&);
  29742. void AddTags(Array<String>);
  29743. void AddTags(const String&, int8 = ';');
  29744. void AdjustScissor(IntRect&);
  29745. void AllocateNetworkState();
  29746. operator Animatable() const;
  29747. void ApplyAttributes();
  29748. void BringToFront();
  29749. void ClearSelection();
  29750. const Color& GetColor(Corner) const;
  29751. const Color& GetColorAttr() const;
  29752. const Color& GetDerivedColor() const;
  29753. const Color& GetEffectColor() const;
  29754. const Color& GetHoverColor() const;
  29755. const Color& GetSelectionColor() const;
  29756. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  29757. void DisableLayoutUpdate();
  29758. IntVector2 ElementToScreen(const IntVector2&);
  29759. void EnableLayoutUpdate();
  29760. bool FilterAttributes(XMLElement&) const;
  29761. int FindChild(UIElement) const;
  29762. bool GetAnimationEnabled() const;
  29763. Variant GetAttribute(const String&) const;
  29764. Variant GetAttribute(uint) const;
  29765. ValueAnimation GetAttributeAnimation(const String&) const;
  29766. float GetAttributeAnimationSpeed(const String&) const;
  29767. float GetAttributeAnimationTime(const String&) const;
  29768. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  29769. Variant GetAttributeDefault(const String&) const;
  29770. Variant GetAttributeDefault(uint) const;
  29771. bool GetAutoLocalizable() const;
  29772. bool GetBlockEvents() const;
  29773. bool GetBringToBack() const;
  29774. bool GetBringToFront() const;
  29775. Vector2 GetCharPosition(int);
  29776. Vector2 GetCharSize(int);
  29777. UIElement GetChild(const String&, bool = false) const;
  29778. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  29779. UIElement GetChild(int) const;
  29780. Array<UIElement> GetChildren() const;
  29781. Array<UIElement> GetChildren(bool) const;
  29782. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  29783. bool GetClipChildren() const;
  29784. IntRect GetCombinedScreenRect();
  29785. XMLFile GetDefaultStyle(bool = true) const;
  29786. float GetDerivedOpacity() const;
  29787. uint GetDragButtonCombo() const;
  29788. int GetDragButtonCount() const;
  29789. uint GetDragDropMode() const;
  29790. float GetEffectDepthBias() const;
  29791. bool GetEffectRoundStroke() const;
  29792. int GetEffectStrokeThickness() const;
  29793. IntVector2 GetEffectiveMinSize() const;
  29794. UIElement GetElementEventSender() const;
  29795. bool GetEnableAnchor() const;
  29796. VariantMap& GetEventDataMap() const;
  29797. Object GetEventSender() const;
  29798. FocusMode GetFocusMode() const;
  29799. Font GetFont() const;
  29800. ResourceRef GetFontAttr() const;
  29801. float GetFontSize() const;
  29802. int GetHeight() const;
  29803. HorizontalAlignment GetHorizontalAlignment() const;
  29804. int GetIndent() const;
  29805. int GetIndentSpacing() const;
  29806. int GetIndentWidth() const;
  29807. bool GetInterceptNetworkUpdate(const String&) const;
  29808. int GetLayoutElementMaxSize() const;
  29809. LayoutMode GetLayoutMode() const;
  29810. int GetLayoutSpacing() const;
  29811. int GetMaxHeight() const;
  29812. int GetMaxWidth() const;
  29813. int GetMinHeight() const;
  29814. int GetMinWidth() const;
  29815. uint GetNumAttributes() const;
  29816. int GetNumChars() const;
  29817. int GetNumChildren(bool = false) const;
  29818. uint GetNumNetworkAttributes() const;
  29819. int GetNumRows() const;
  29820. ObjectAnimation GetObjectAnimation() const;
  29821. ResourceRef GetObjectAnimationAttr() const;
  29822. float GetOpacity() const;
  29823. UIElement GetParent() const;
  29824. int GetPriority() const;
  29825. UIElement GetRoot() const;
  29826. float GetRowHeight() const;
  29827. float GetRowSpacing() const;
  29828. float GetRowWidth(int) const;
  29829. int GetSelectionLength() const;
  29830. int GetSelectionStart() const;
  29831. bool GetSortChildren() const;
  29832. Object GetSubsystem(StringHash) const;
  29833. Array<String> GetTags() const;
  29834. HorizontalAlignment GetTextAlignment() const;
  29835. String GetTextAttr() const;
  29836. TextEffect GetTextEffect() const;
  29837. TraversalMode GetTraversalMode() const;
  29838. StringHash GetType() const;
  29839. bool GetUseDerivedOpacity() const;
  29840. VerticalAlignment GetVerticalAlignment() const;
  29841. int GetWidth() const;
  29842. bool GetWordwrap() const;
  29843. bool HasColorGradient() const;
  29844. bool HasEventHandlers() const;
  29845. bool HasFocus() const;
  29846. bool HasSubscribedToEvent(Object, StringHash) const;
  29847. bool HasSubscribedToEvent(StringHash) const;
  29848. bool HasTag(const String&) const;
  29849. void InsertChild(int, UIElement);
  29850. const IntRect& GetClipBorder() const;
  29851. const IntRect& GetLayoutBorder() const;
  29852. const IntVector2& GetChildOffset() const;
  29853. const IntVector2& GetEffectShadowOffset() const;
  29854. const IntVector2& GetMaxOffset() const;
  29855. const IntVector2& GetMaxSize() const;
  29856. const IntVector2& GetMinOffset() const;
  29857. const IntVector2& GetMinSize() const;
  29858. const IntVector2& GetPosition() const;
  29859. const IntVector2& GetScreenPosition() const;
  29860. const IntVector2& GetSize() const;
  29861. bool IsChildOf(UIElement) const;
  29862. bool IsEditable() const;
  29863. bool IsElementEventSender() const;
  29864. bool IsEnabled() const;
  29865. bool IsEnabledSelf() const;
  29866. bool IsFixedHeight() const;
  29867. bool IsFixedSize() const;
  29868. bool IsFixedWidth() const;
  29869. bool IsHovering() const;
  29870. bool IsInside(IntVector2, bool);
  29871. bool IsInsideCombined(IntVector2, bool);
  29872. bool IsInstanceOf(StringHash) const;
  29873. bool IsInternal() const;
  29874. bool IsSelected() const;
  29875. bool IsTemporary() const;
  29876. bool IsVisible() const;
  29877. bool IsVisibleEffective() const;
  29878. bool IsWheelHandler() const;
  29879. bool IsWithinScissor(const IntRect&);
  29880. bool Load(Deserializer&);
  29881. UIElement LoadChildXML(XMLFile, XMLFile);
  29882. UIElement LoadChildXML(const XMLElement&, XMLFile);
  29883. bool LoadJSON(const JSONValue&);
  29884. bool LoadXML(Deserializer&);
  29885. bool LoadXML(File);
  29886. bool LoadXML(VectorBuffer&);
  29887. bool LoadXML(XMLFile, XMLFile);
  29888. bool LoadXML(const XMLElement&);
  29889. bool LoadXML(const XMLElement&, XMLFile);
  29890. void MarkNetworkUpdate();
  29891. operator Object() const;
  29892. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  29893. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  29894. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  29895. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29896. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29897. bool OnDragDropFinish(UIElement);
  29898. bool OnDragDropTest(UIElement);
  29899. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29900. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29901. void OnEvent(Object, StringHash, VariantMap&);
  29902. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  29903. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  29904. void OnIndentSet();
  29905. void OnKey(uint, uint, uint);
  29906. void OnPositionSet(const IntVector2&);
  29907. void OnResize(const IntVector2&, const IntVector2&);
  29908. void OnSetAttribute(const AttributeInfo&, const Variant&);
  29909. void OnSetEditable();
  29910. void OnTextInput(const String&);
  29911. void OnWheel(int, uint, uint);
  29912. bool ReadDeltaUpdate(Deserializer&);
  29913. bool ReadLatestDataUpdate(Deserializer&);
  29914. operator RefCounted() const;
  29915. int Refs() const;
  29916. void Remove();
  29917. void RemoveAllChildren();
  29918. void RemoveAllTags();
  29919. void RemoveAttributeAnimation(const String&);
  29920. void RemoveChild(UIElement, int = 0);
  29921. void RemoveChild(uint);
  29922. void RemoveChildAtIndex(int);
  29923. void RemoveInstanceDefault();
  29924. void RemoveObjectAnimation();
  29925. bool RemoveTag(const String&);
  29926. void ResetDeepEnabled();
  29927. void ResetToDefault();
  29928. bool Save(Serializer&) const;
  29929. bool SaveDefaultAttributes() const;
  29930. bool SaveJSON(JSONValue&) const;
  29931. bool SaveXML(File, const String& indentation = "\t");
  29932. bool SaveXML(Serializer&, const String& = "\t") const;
  29933. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  29934. bool SaveXML(XMLElement&) const;
  29935. IntVector2 ScreenToElement(const IntVector2&);
  29936. void SendEvent(StringHash);
  29937. void SendEvent(StringHash, VariantMap&);
  29938. operator Serializable() const;
  29939. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  29940. void SetAnimationEnabled(bool);
  29941. void SetAnimationTime(float);
  29942. bool SetAttribute(const String&, const Variant&);
  29943. bool SetAttribute(uint, const Variant&);
  29944. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  29945. void SetAttributeAnimationSpeed(const String&, float);
  29946. void SetAttributeAnimationTime(const String&, float);
  29947. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  29948. void SetAutoLocalizable(bool);
  29949. void SetBlockEvents(bool);
  29950. void SetBringToBack(bool);
  29951. void SetBringToFront(bool);
  29952. void SetChildOffset(const IntVector2&);
  29953. void SetClipBorder(const IntRect&);
  29954. void SetClipChildren(bool);
  29955. void SetColor(Corner, const Color&);
  29956. void SetColor(const Color&);
  29957. void SetDeepEnabled(bool);
  29958. void SetDefaultStyle(XMLFile);
  29959. void SetDragDropMode(uint);
  29960. void SetEditable(bool);
  29961. void SetEffectColor(const Color&);
  29962. void SetEffectDepthBias(float);
  29963. void SetEffectRoundStroke(bool);
  29964. void SetEffectShadowOffset(const IntVector2&);
  29965. void SetEffectStrokeThickness(int);
  29966. void SetElementEventSender(bool);
  29967. void SetEnableAnchor(bool);
  29968. void SetEnabled(bool);
  29969. void SetEnabledRecursive(bool);
  29970. void SetFixedHeight(int);
  29971. void SetFixedSize(const IntVector2&);
  29972. void SetFixedSize(int, int);
  29973. void SetFixedWidth(int);
  29974. void SetFocus(bool);
  29975. void SetFocusMode(FocusMode);
  29976. bool SetFont(Font, float = DEFAULT_FONT_SIZE);
  29977. bool SetFont(const String&, float = DEFAULT_FONT_SIZE);
  29978. void SetFontAttr(const ResourceRef&);
  29979. bool SetFontSize(float);
  29980. void SetGlobalVar(StringHash, const Variant&);
  29981. void SetHeight(int);
  29982. void SetHorizontalAlignment(HorizontalAlignment);
  29983. void SetHoverColor(const Color&);
  29984. void SetHovering(bool);
  29985. void SetIndent(int);
  29986. void SetIndentSpacing(int);
  29987. void SetInstanceDefault(bool);
  29988. void SetInterceptNetworkUpdate(const String&, bool);
  29989. void SetInternal(bool);
  29990. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  29991. void SetLayoutBorder(const IntRect&);
  29992. void SetLayoutFlexScale(const Vector2&);
  29993. void SetLayoutMode(LayoutMode);
  29994. void SetLayoutSpacing(int);
  29995. void SetMaxAnchor(const Vector2&);
  29996. void SetMaxAnchor(float, float);
  29997. void SetMaxHeight(int);
  29998. void SetMaxOffset(const IntVector2&);
  29999. void SetMaxSize(const IntVector2&);
  30000. void SetMaxSize(int, int);
  30001. void SetMaxWidth(int);
  30002. void SetMinAnchor(const Vector2&);
  30003. void SetMinAnchor(float, float);
  30004. void SetMinHeight(int);
  30005. void SetMinOffset(const IntVector2&);
  30006. void SetMinSize(const IntVector2&);
  30007. void SetMinSize(int, int);
  30008. void SetMinWidth(int);
  30009. void SetName(const String&);
  30010. void SetObjectAnimation(ObjectAnimation);
  30011. void SetObjectAnimationAttr(const ResourceRef&);
  30012. void SetOpacity(float);
  30013. void SetParent(UIElement, int = ENDPOS);
  30014. void SetPivot(const Vector2&);
  30015. void SetPivot(float, float);
  30016. void SetPosition(const IntVector2&);
  30017. void SetPosition(int, int);
  30018. void SetPriority(int);
  30019. void SetRenderTexture(Texture2D);
  30020. void SetRowSpacing(float);
  30021. void SetSelected(bool);
  30022. void SetSelection(int, int = M_MAX_INT);
  30023. void SetSelectionColor(const Color&);
  30024. void SetSize(const IntVector2&);
  30025. void SetSize(int, int);
  30026. void SetSortChildren(bool);
  30027. bool SetStyle(const String&, XMLFile = null);
  30028. bool SetStyle(const XMLElement&);
  30029. bool SetStyleAuto(XMLFile = null);
  30030. void SetTags(Array<String>);
  30031. void SetTemporary(bool);
  30032. void SetText(const String&);
  30033. void SetTextAlignment(HorizontalAlignment);
  30034. void SetTextAttr(const String&);
  30035. void SetTextEffect(TextEffect);
  30036. void SetTraversalMode(TraversalMode);
  30037. void SetUseDerivedOpacity(bool);
  30038. void SetVar(StringHash, const Variant&);
  30039. void SetVerticalAlignment(VerticalAlignment);
  30040. void SetVisible(bool);
  30041. void SetWidth(int);
  30042. void SetWordwrap(bool);
  30043. void SortChildren();
  30044. const String& GetAppliedStyle() const;
  30045. const String& GetCategory() const;
  30046. const String& GetName() const;
  30047. const String& GetText() const;
  30048. const String& GetTypeName() const;
  30049. operator UIElement() const;
  30050. operator UISelectable() const;
  30051. void UnsubscribeFromAllEvents();
  30052. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30053. void UnsubscribeFromEvent(Object, StringHash);
  30054. void UnsubscribeFromEvent(StringHash);
  30055. void UnsubscribeFromEvents(Object);
  30056. void Update(float);
  30057. void UpdateLayout();
  30058. const Variant& GetGlobalVar(StringHash) const;
  30059. const Variant& GetVar(const StringHash&) const;
  30060. const VariantMap& GetGlobalVars() const;
  30061. const VariantMap& GetVars() const;
  30062. const Vector2& GetLayoutFlexScale() const;
  30063. const Vector2& GetMaxAnchor() const;
  30064. const Vector2& GetMinAnchor() const;
  30065. const Vector2& GetPivot() const;
  30066. int WeakRefs() const;
  30067. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  30068. void WriteInitialDeltaUpdate(Serializer&, uint8);
  30069. void WriteLatestDataUpdate(Serializer&, uint8);
  30070. operator const Animatable() const;
  30071. operator const Object() const;
  30072. operator const RefCounted() const;
  30073. operator const Serializable() const;
  30074. operator const UIElement() const;
  30075. operator const UISelectable() const;
  30076. // Properties:
  30077. bool animationEnabled;
  30078. /* readonly */
  30079. Array<Variant> attributeDefaults;
  30080. /* readonly */
  30081. Array<AttributeInfo> attributeInfos;
  30082. Array<Variant> attributes;
  30083. bool autoLocalizable;
  30084. bool bringToBack;
  30085. bool bringToFront;
  30086. /* readonly */
  30087. String category;
  30088. /* readonly */
  30089. Array<Vector2> charPositions;
  30090. /* readonly */
  30091. Array<Vector2> charSizes;
  30092. /* readonly */
  30093. IntVector2 childOffset;
  30094. /* readonly */
  30095. Array<UIElement> children;
  30096. IntRect clipBorder;
  30097. bool clipChildren;
  30098. /* writeonly */
  30099. Color color;
  30100. /* readonly */
  30101. bool colorGradient;
  30102. Array<Color> colors;
  30103. /* readonly */
  30104. IntRect combinedScreenRect;
  30105. XMLFile defaultStyle;
  30106. /* readonly */
  30107. float derivedOpacity;
  30108. /* readonly */
  30109. uint dragButtonCombo;
  30110. /* readonly */
  30111. int dragButtonCount;
  30112. uint dragDropMode;
  30113. bool editable;
  30114. Color effectColor;
  30115. bool effectRoundStroke;
  30116. IntVector2 effectShadowOffset;
  30117. int effectStrokeThickness;
  30118. bool elementEventSender;
  30119. bool enableAnchor;
  30120. bool enabled;
  30121. /* readonly */
  30122. bool enabledSelf;
  30123. /* readonly */
  30124. bool fixedHeight;
  30125. /* readonly */
  30126. bool fixedSize;
  30127. /* readonly */
  30128. bool fixedWidth;
  30129. bool focus;
  30130. FocusMode focusMode;
  30131. /* readonly */
  30132. Font font;
  30133. float fontSize;
  30134. Array<Variant> globalVar;
  30135. /* readonly */
  30136. VariantMap globalVars;
  30137. int height;
  30138. HorizontalAlignment horizontalAlignment;
  30139. Color hoverColor;
  30140. /* readonly */
  30141. bool hovering;
  30142. int indent;
  30143. int indentSpacing;
  30144. /* readonly */
  30145. int indentWidth;
  30146. bool internal;
  30147. IntRect layoutBorder;
  30148. Vector2 layoutFlexScale;
  30149. LayoutMode layoutMode;
  30150. int layoutSpacing;
  30151. Vector2 maxAnchor;
  30152. int maxHeight;
  30153. IntVector2 maxOffset;
  30154. IntVector2 maxSize;
  30155. int maxWidth;
  30156. Vector2 minAnchor;
  30157. int minHeight;
  30158. IntVector2 minOffset;
  30159. IntVector2 minSize;
  30160. int minWidth;
  30161. String name;
  30162. /* readonly */
  30163. uint numAllChildren;
  30164. /* readonly */
  30165. uint numAttributes;
  30166. /* readonly */
  30167. int numChars;
  30168. /* readonly */
  30169. uint numChildren;
  30170. /* readonly */
  30171. int numRows;
  30172. ObjectAnimation objectAnimation;
  30173. float opacity;
  30174. UIElement parent;
  30175. Vector2 pivot;
  30176. IntVector2 position;
  30177. int priority;
  30178. /* readonly */
  30179. int refs;
  30180. /* readonly */
  30181. UIElement root;
  30182. /* readonly */
  30183. float rowHeight;
  30184. float rowSpacing;
  30185. /* readonly */
  30186. Array<float> rowWidths;
  30187. /* readonly */
  30188. IntVector2 screenPosition;
  30189. bool selected;
  30190. Color selectionColor;
  30191. /* readonly */
  30192. int selectionLength;
  30193. /* readonly */
  30194. int selectionStart;
  30195. IntVector2 size;
  30196. bool sortChildren;
  30197. String style;
  30198. /* readonly */
  30199. Array<String> tags;
  30200. bool temporary;
  30201. String text;
  30202. HorizontalAlignment textAlignment;
  30203. TextEffect textEffect;
  30204. TraversalMode traversalMode;
  30205. /* readonly */
  30206. StringHash type;
  30207. /* readonly */
  30208. String typeName;
  30209. bool useDerivedOpacity;
  30210. /* readonly */
  30211. VariantMap vars;
  30212. VerticalAlignment verticalAlignment;
  30213. bool visible;
  30214. /* readonly */
  30215. bool visibleEffective;
  30216. /* readonly */
  30217. int weakRefs;
  30218. int width;
  30219. bool wordwrap;
  30220. };
  30221. class Text3D
  30222. {
  30223. public:
  30224. Text3D();
  30225. // Methods:
  30226. void AddLight(Light);
  30227. void AddVertexLight(Light);
  30228. void AllocateNetworkState();
  30229. operator Animatable() const;
  30230. void ApplyAttributes();
  30231. const BoundingBox& GetBoundingBox() const;
  30232. const BoundingBox& GetWorldBoundingBox();
  30233. void CleanupConnection(Connection);
  30234. const Color& GetColor(Corner) const;
  30235. const Color& GetColorAttr() const;
  30236. const Color& GetEffectColor() const;
  30237. operator Component() const;
  30238. void DrawDebugGeometry(DebugRenderer, bool);
  30239. bool DrawOcclusion(OcclusionBuffer);
  30240. operator Drawable() const;
  30241. bool GetAnimationEnabled() const;
  30242. Variant GetAttribute(const String&) const;
  30243. Variant GetAttribute(uint) const;
  30244. ValueAnimation GetAttributeAnimation(const String&) const;
  30245. float GetAttributeAnimationSpeed(const String&) const;
  30246. float GetAttributeAnimationTime(const String&) const;
  30247. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  30248. Variant GetAttributeDefault(const String&) const;
  30249. Variant GetAttributeDefault(uint) const;
  30250. Array<SourceBatch> GetBatches() const;
  30251. bool GetBlockEvents() const;
  30252. bool GetCastShadows() const;
  30253. Vector2 GetCharPosition(int);
  30254. Vector2 GetCharSize(int);
  30255. Component GetComponent(StringHash) const;
  30256. float GetDistance() const;
  30257. float GetDrawDistance() const;
  30258. uint8 GetDrawableFlags() const;
  30259. float GetEffectDepthBias() const;
  30260. bool GetEffectRoundStroke() const;
  30261. int GetEffectStrokeThickness() const;
  30262. VariantMap& GetEventDataMap() const;
  30263. Object GetEventSender() const;
  30264. FaceCameraMode GetFaceCameraMode() const;
  30265. Light GetFirstLight() const;
  30266. Font GetFont() const;
  30267. ResourceRef GetFontAttr() const;
  30268. float GetFontSize() const;
  30269. int GetHeight() const;
  30270. HorizontalAlignment GetHorizontalAlignment() const;
  30271. uint GetID() const;
  30272. bool GetInterceptNetworkUpdate(const String&) const;
  30273. uint GetLightMask() const;
  30274. Array<Light> GetLights() const;
  30275. float GetLodBias() const;
  30276. float GetLodDistance() const;
  30277. Geometry GetLodGeometry(uint, uint);
  30278. Material GetMaterial() const;
  30279. ResourceRef GetMaterialAttr() const;
  30280. uint GetMaxLights() const;
  30281. float GetMaxZ() const;
  30282. float GetMinZ() const;
  30283. Node GetNode() const;
  30284. uint GetNumAttributes() const;
  30285. int GetNumChars() const;
  30286. uint GetNumNetworkAttributes() const;
  30287. uint GetNumOccluderTriangles();
  30288. int GetNumRows() const;
  30289. ObjectAnimation GetObjectAnimation() const;
  30290. ResourceRef GetObjectAnimationAttr() const;
  30291. float GetOpacity() const;
  30292. int GetRowHeight() const;
  30293. float GetRowSpacing() const;
  30294. int GetRowWidth(int) const;
  30295. Scene GetScene() const;
  30296. float GetShadowDistance() const;
  30297. uint GetShadowMask() const;
  30298. float GetSortValue() const;
  30299. Object GetSubsystem(StringHash) const;
  30300. HorizontalAlignment GetTextAlignment() const;
  30301. String GetTextAttr() const;
  30302. TextEffect GetTextEffect() const;
  30303. StringHash GetType() const;
  30304. UpdateGeometryType GetUpdateGeometryType();
  30305. Array<Light> GetVertexLights() const;
  30306. VerticalAlignment GetVerticalAlignment() const;
  30307. uint GetViewMask() const;
  30308. int GetWidth() const;
  30309. bool GetWordwrap() const;
  30310. Zone GetZone() const;
  30311. uint GetZoneMask() const;
  30312. bool HasBasePass(uint) const;
  30313. bool HasEventHandlers() const;
  30314. bool HasSubscribedToEvent(Object, StringHash) const;
  30315. bool HasSubscribedToEvent(StringHash) const;
  30316. const IntVector2& GetEffectShadowOffset() const;
  30317. bool IsEnabled() const;
  30318. bool IsEnabledEffective() const;
  30319. bool IsFixedScreenSize() const;
  30320. bool IsInView() const;
  30321. bool IsInView(Camera) const;
  30322. bool IsInView(const FrameInfo&, bool = false) const;
  30323. bool IsInstanceOf(StringHash) const;
  30324. bool IsOccludee() const;
  30325. bool IsOccluder() const;
  30326. bool IsReplicated() const;
  30327. bool IsTemporary() const;
  30328. bool IsZoneDirty() const;
  30329. void LimitLights();
  30330. void LimitVertexLights(bool);
  30331. bool Load(Deserializer&);
  30332. bool LoadJSON(const JSONValue&);
  30333. bool LoadXML(const XMLElement&);
  30334. void MarkForUpdate();
  30335. void MarkInView(const FrameInfo&);
  30336. void MarkInView(int);
  30337. void MarkNetworkUpdate();
  30338. operator Object() const;
  30339. void OnEvent(Object, StringHash, VariantMap&);
  30340. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  30341. void OnSetAttribute(const AttributeInfo&, const Variant&);
  30342. void OnSetEnabled();
  30343. void PrepareNetworkUpdate();
  30344. bool ReadDeltaUpdate(Deserializer&);
  30345. bool ReadLatestDataUpdate(Deserializer&);
  30346. operator RefCounted() const;
  30347. int Refs() const;
  30348. void Remove();
  30349. void RemoveAttributeAnimation(const String&);
  30350. void RemoveInstanceDefault();
  30351. void RemoveObjectAnimation();
  30352. void ResetToDefault();
  30353. bool Save(Serializer&) const;
  30354. bool SaveDefaultAttributes() const;
  30355. bool SaveJSON(JSONValue&) const;
  30356. bool SaveXML(XMLElement&) const;
  30357. void SendEvent(StringHash);
  30358. void SendEvent(StringHash, VariantMap&);
  30359. operator Serializable() const;
  30360. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  30361. void SetAnimationEnabled(bool);
  30362. void SetAnimationTime(float);
  30363. bool SetAttribute(const String&, const Variant&);
  30364. bool SetAttribute(uint, const Variant&);
  30365. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  30366. void SetAttributeAnimationSpeed(const String&, float);
  30367. void SetAttributeAnimationTime(const String&, float);
  30368. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  30369. void SetBasePass(uint);
  30370. void SetBlockEvents(bool);
  30371. void SetCastShadows(bool);
  30372. void SetColor(Corner, const Color&);
  30373. void SetColor(const Color&);
  30374. void SetDrawDistance(float);
  30375. void SetEffectColor(const Color&);
  30376. void SetEffectDepthBias(float);
  30377. void SetEffectRoundStroke(bool);
  30378. void SetEffectShadowOffset(const IntVector2&);
  30379. void SetEffectStrokeThickness(int);
  30380. void SetEnabled(bool);
  30381. void SetFaceCameraMode(FaceCameraMode);
  30382. void SetFixedScreenSize(bool);
  30383. bool SetFont(Font, float = DEFAULT_FONT_SIZE);
  30384. bool SetFont(const String&, float = DEFAULT_FONT_SIZE);
  30385. void SetFontAttr(const ResourceRef&);
  30386. bool SetFontSize(float);
  30387. void SetGlobalVar(StringHash, const Variant&);
  30388. void SetHorizontalAlignment(HorizontalAlignment);
  30389. void SetInstanceDefault(bool);
  30390. void SetInterceptNetworkUpdate(const String&, bool);
  30391. void SetLightMask(uint);
  30392. void SetLodBias(float);
  30393. void SetMaterial(Material);
  30394. void SetMaterialAttr(const ResourceRef&);
  30395. void SetMaxLights(uint);
  30396. void SetMinMaxZ(float, float);
  30397. void SetObjectAnimation(ObjectAnimation);
  30398. void SetObjectAnimationAttr(const ResourceRef&);
  30399. void SetOccludee(bool);
  30400. void SetOccluder(bool);
  30401. void SetOpacity(float);
  30402. void SetRowSpacing(float);
  30403. void SetShadowDistance(float);
  30404. void SetShadowMask(uint);
  30405. void SetSortValue(float);
  30406. void SetTemporary(bool);
  30407. void SetText(const String&);
  30408. void SetTextAlignment(HorizontalAlignment);
  30409. void SetTextAttr(const String&);
  30410. void SetTextEffect(TextEffect);
  30411. void SetVerticalAlignment(VerticalAlignment);
  30412. void SetViewMask(uint);
  30413. void SetWidth(int);
  30414. void SetWordwrap(bool);
  30415. void SetZone(Zone, bool = false);
  30416. void SetZoneMask(uint);
  30417. const String& GetCategory() const;
  30418. const String& GetText() const;
  30419. const String& GetTypeName() const;
  30420. void UnsubscribeFromAllEvents();
  30421. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30422. void UnsubscribeFromEvent(Object, StringHash);
  30423. void UnsubscribeFromEvent(StringHash);
  30424. void UnsubscribeFromEvents(Object);
  30425. void Update(const FrameInfo&);
  30426. void UpdateBatches(const FrameInfo&);
  30427. void UpdateGeometry(const FrameInfo&);
  30428. const Variant& GetGlobalVar(StringHash) const;
  30429. const VariantMap& GetGlobalVars() const;
  30430. int WeakRefs() const;
  30431. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  30432. void WriteInitialDeltaUpdate(Serializer&, uint8);
  30433. void WriteLatestDataUpdate(Serializer&, uint8);
  30434. operator const Animatable() const;
  30435. operator const Component() const;
  30436. operator const Drawable() const;
  30437. operator const Object() const;
  30438. operator const RefCounted() const;
  30439. operator const Serializable() const;
  30440. // Properties:
  30441. bool animationEnabled;
  30442. /* readonly */
  30443. Array<Variant> attributeDefaults;
  30444. /* readonly */
  30445. Array<AttributeInfo> attributeInfos;
  30446. Array<Variant> attributes;
  30447. /* readonly */
  30448. BoundingBox boundingBox;
  30449. bool castShadows;
  30450. /* readonly */
  30451. String category;
  30452. /* readonly */
  30453. Array<Vector2> charPositions;
  30454. /* readonly */
  30455. Array<Vector2> charSizes;
  30456. /* writeonly */
  30457. Color color;
  30458. Array<Color> colors;
  30459. float drawDistance;
  30460. Color effectColor;
  30461. float effectDepthBias;
  30462. bool effectRoundStroke;
  30463. IntVector2 effectShadowOffset;
  30464. int effectStrokeThickness;
  30465. bool enabled;
  30466. /* readonly */
  30467. bool enabledEffective;
  30468. FaceCameraMode faceCameraMode;
  30469. bool fixedScreenSize;
  30470. /* readonly */
  30471. Font font;
  30472. float fontSize;
  30473. Array<Variant> globalVar;
  30474. /* readonly */
  30475. VariantMap globalVars;
  30476. /* readonly */
  30477. int height;
  30478. HorizontalAlignment horizontalAlignment;
  30479. /* readonly */
  30480. uint id;
  30481. /* readonly */
  30482. bool inView;
  30483. uint lightMask;
  30484. float lodBias;
  30485. Material material;
  30486. uint maxLights;
  30487. /* readonly */
  30488. Node node;
  30489. /* readonly */
  30490. uint numAttributes;
  30491. /* readonly */
  30492. int numChars;
  30493. /* readonly */
  30494. int numRows;
  30495. ObjectAnimation objectAnimation;
  30496. bool occludee;
  30497. bool occluder;
  30498. float opacity;
  30499. /* readonly */
  30500. int refs;
  30501. /* readonly */
  30502. bool replicated;
  30503. /* readonly */
  30504. int rowHeight;
  30505. float rowSpacing;
  30506. /* readonly */
  30507. Array<int> rowWidths;
  30508. float shadowDistance;
  30509. uint shadowMask;
  30510. bool temporary;
  30511. String text;
  30512. HorizontalAlignment textAlignment;
  30513. TextEffect textEffect;
  30514. /* readonly */
  30515. StringHash type;
  30516. /* readonly */
  30517. String typeName;
  30518. VerticalAlignment verticalAlignment;
  30519. uint viewMask;
  30520. /* readonly */
  30521. int weakRefs;
  30522. int width;
  30523. bool wordwrap;
  30524. /* readonly */
  30525. BoundingBox worldBoundingBox;
  30526. /* readonly */
  30527. Zone zone;
  30528. uint zoneMask;
  30529. };
  30530. class Texture
  30531. {
  30532. public:
  30533. Texture();
  30534. // Methods:
  30535. void AddMetadata(const String&, const Variant&);
  30536. bool BeginLoad(Deserializer&);
  30537. void ClearDataLost();
  30538. const Color& GetBorderColor() const;
  30539. bool EndLoad();
  30540. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30541. uint GetAnisotropy() const;
  30542. AsyncLoadState GetAsyncLoadState() const;
  30543. bool GetAutoResolve() const;
  30544. Texture GetBackupTexture() const;
  30545. bool GetBlockEvents() const;
  30546. uint GetComponents() const;
  30547. uint GetDataSize(int, int) const;
  30548. uint GetDataSize(int, int, int) const;
  30549. int GetDepth() const;
  30550. VariantMap& GetEventDataMap() const;
  30551. Object GetEventSender() const;
  30552. TextureFilterMode GetFilterMode() const;
  30553. uint GetFormat() const;
  30554. uint GetGPUObjectName() const;
  30555. Graphics GetGraphics() const;
  30556. int GetHeight() const;
  30557. int GetLevelDepth(uint) const;
  30558. int GetLevelHeight(uint) const;
  30559. int GetLevelWidth(uint) const;
  30560. uint GetLevels() const;
  30561. bool GetLevelsDirty() const;
  30562. uint GetMemoryUse() const;
  30563. int GetMipsToSkip(uint) const;
  30564. int GetMultiSample() const;
  30565. StringHash GetNameHash() const;
  30566. bool GetParametersDirty() const;
  30567. uint GetRowDataSize(int) const;
  30568. bool GetSRGB() const;
  30569. bool GetShadowCompare() const;
  30570. Object GetSubsystem(StringHash) const;
  30571. uint GetTarget() const;
  30572. StringHash GetType() const;
  30573. TextureUsage GetUsage() const;
  30574. uint GetUseTimer();
  30575. int GetWidth() const;
  30576. bool HasEventHandlers() const;
  30577. bool HasMetadata() const;
  30578. bool HasPendingData() const;
  30579. bool HasSubscribedToEvent(Object, StringHash) const;
  30580. bool HasSubscribedToEvent(StringHash) const;
  30581. bool IsCompressed() const;
  30582. bool IsDataLost() const;
  30583. bool IsInstanceOf(StringHash) const;
  30584. bool IsResolveDirty() const;
  30585. bool Load(Deserializer&);
  30586. bool Load(File);
  30587. bool Load(VectorBuffer&);
  30588. bool Load(const String&);
  30589. bool LoadFile(const String&);
  30590. operator Object() const;
  30591. void OnDeviceLost();
  30592. void OnDeviceReset();
  30593. void OnEvent(Object, StringHash, VariantMap&);
  30594. operator RefCounted() const;
  30595. int Refs() const;
  30596. void RegenerateLevels();
  30597. void Release();
  30598. void RemoveAllMetadata();
  30599. void RemoveMetadata(const String&);
  30600. void ResetUseTimer();
  30601. operator Resource() const;
  30602. operator ResourceWithMetadata() const;
  30603. bool Save(File) const;
  30604. bool Save(Serializer&) const;
  30605. bool Save(VectorBuffer&) const;
  30606. bool Save(const String&) const;
  30607. bool SaveFile(const String&) const;
  30608. void SendEvent(StringHash);
  30609. void SendEvent(StringHash, VariantMap&);
  30610. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  30611. void SetAnisotropy(uint);
  30612. void SetAsyncLoadState(AsyncLoadState);
  30613. void SetBackupTexture(Texture);
  30614. void SetBlockEvents(bool);
  30615. void SetBorderColor(const Color&);
  30616. void SetFilterMode(TextureFilterMode);
  30617. void SetGlobalVar(StringHash, const Variant&);
  30618. void SetLevelsDirty();
  30619. void SetMemoryUse(uint);
  30620. void SetMipsToSkip(uint, int);
  30621. void SetName(const String&);
  30622. void SetNumLevels(uint);
  30623. void SetParameters(XMLFile);
  30624. void SetParameters(const XMLElement&);
  30625. void SetParametersDirty();
  30626. void SetResolveDirty(bool);
  30627. void SetSRGB(bool);
  30628. void SetShadowCompare(bool);
  30629. const String& GetCategory() const;
  30630. const String& GetName() const;
  30631. const String& GetTypeName() const;
  30632. operator Texture2D() const;
  30633. operator Texture2DArray() const;
  30634. operator Texture3D() const;
  30635. operator TextureCube() const;
  30636. void UnsubscribeFromAllEvents();
  30637. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30638. void UnsubscribeFromEvent(Object, StringHash);
  30639. void UnsubscribeFromEvent(StringHash);
  30640. void UnsubscribeFromEvents(Object);
  30641. void UpdateParameters();
  30642. const Variant& GetGlobalVar(StringHash) const;
  30643. const Variant& GetMetadata(const String&) const;
  30644. const VariantMap& GetGlobalVars() const;
  30645. int WeakRefs() const;
  30646. operator const Object() const;
  30647. operator const RefCounted() const;
  30648. operator const Resource() const;
  30649. operator const ResourceWithMetadata() const;
  30650. operator const Texture2D() const;
  30651. operator const Texture2DArray() const;
  30652. operator const Texture3D() const;
  30653. operator const TextureCube() const;
  30654. // Properties:
  30655. Array<TextureAddressMode> addressMode;
  30656. uint anisotropy;
  30657. /* readonly */
  30658. bool autoResolve;
  30659. Texture backupTexture;
  30660. Color borderColor;
  30661. /* readonly */
  30662. String category;
  30663. /* readonly */
  30664. uint components;
  30665. /* readonly */
  30666. bool compressed;
  30667. /* readonly */
  30668. bool dataLost;
  30669. TextureFilterMode filterMode;
  30670. /* readonly */
  30671. uint format;
  30672. Array<Variant> globalVar;
  30673. /* readonly */
  30674. VariantMap globalVars;
  30675. /* readonly */
  30676. bool hasMetadata;
  30677. /* readonly */
  30678. int height;
  30679. /* readonly */
  30680. Array<int> levelHeight;
  30681. /* readonly */
  30682. Array<int> levelWidth;
  30683. /* readonly */
  30684. uint levels;
  30685. /* readonly */
  30686. bool levelsDirty;
  30687. /* readonly */
  30688. uint memoryUse;
  30689. Array<Variant> metadata;
  30690. Array<int> mipsToSkip;
  30691. /* readonly */
  30692. int multiSample;
  30693. String name;
  30694. /* readonly */
  30695. int refs;
  30696. /* readonly */
  30697. bool resolveDirty;
  30698. bool sRGB;
  30699. /* readonly */
  30700. StringHash type;
  30701. /* readonly */
  30702. String typeName;
  30703. /* readonly */
  30704. TextureUsage usage;
  30705. /* readonly */
  30706. uint useTimer;
  30707. /* readonly */
  30708. int weakRefs;
  30709. /* readonly */
  30710. int width;
  30711. };
  30712. class Texture2D
  30713. {
  30714. public:
  30715. Texture2D();
  30716. // Methods:
  30717. void AddMetadata(const String&, const Variant&);
  30718. bool BeginLoad(Deserializer&);
  30719. void ClearDataLost();
  30720. const Color& GetBorderColor() const;
  30721. bool EndLoad();
  30722. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30723. uint GetAnisotropy() const;
  30724. AsyncLoadState GetAsyncLoadState() const;
  30725. bool GetAutoResolve() const;
  30726. Texture GetBackupTexture() const;
  30727. bool GetBlockEvents() const;
  30728. uint GetComponents() const;
  30729. uint GetDataSize(int, int) const;
  30730. uint GetDataSize(int, int, int) const;
  30731. int GetDepth() const;
  30732. VariantMap& GetEventDataMap() const;
  30733. Object GetEventSender() const;
  30734. TextureFilterMode GetFilterMode() const;
  30735. uint GetFormat() const;
  30736. uint GetGPUObjectName() const;
  30737. Graphics GetGraphics() const;
  30738. int GetHeight() const;
  30739. Image GetImage() const;
  30740. bool GetImage(Image&) const;
  30741. int GetLevelDepth(uint) const;
  30742. int GetLevelHeight(uint) const;
  30743. int GetLevelWidth(uint) const;
  30744. uint GetLevels() const;
  30745. bool GetLevelsDirty() const;
  30746. uint GetMemoryUse() const;
  30747. int GetMipsToSkip(uint) const;
  30748. int GetMultiSample() const;
  30749. StringHash GetNameHash() const;
  30750. bool GetParametersDirty() const;
  30751. RenderSurface GetRenderSurface() const;
  30752. uint GetRowDataSize(int) const;
  30753. bool GetSRGB() const;
  30754. bool GetShadowCompare() const;
  30755. Object GetSubsystem(StringHash) const;
  30756. uint GetTarget() const;
  30757. StringHash GetType() const;
  30758. TextureUsage GetUsage() const;
  30759. uint GetUseTimer();
  30760. int GetWidth() const;
  30761. bool HasEventHandlers() const;
  30762. bool HasMetadata() const;
  30763. bool HasPendingData() const;
  30764. bool HasSubscribedToEvent(Object, StringHash) const;
  30765. bool HasSubscribedToEvent(StringHash) const;
  30766. bool IsCompressed() const;
  30767. bool IsDataLost() const;
  30768. bool IsInstanceOf(StringHash) const;
  30769. bool IsResolveDirty() const;
  30770. bool Load(Deserializer&);
  30771. bool Load(File);
  30772. bool Load(VectorBuffer&);
  30773. bool Load(const String&);
  30774. bool LoadFile(const String&);
  30775. operator Object() const;
  30776. void OnDeviceLost();
  30777. void OnDeviceReset();
  30778. void OnEvent(Object, StringHash, VariantMap&);
  30779. operator RefCounted() const;
  30780. int Refs() const;
  30781. void RegenerateLevels();
  30782. void Release();
  30783. void RemoveAllMetadata();
  30784. void RemoveMetadata(const String&);
  30785. void ResetUseTimer();
  30786. operator Resource() const;
  30787. operator ResourceWithMetadata() const;
  30788. bool Save(File) const;
  30789. bool Save(Serializer&) const;
  30790. bool Save(VectorBuffer&) const;
  30791. bool Save(const String&) const;
  30792. bool SaveFile(const String&) const;
  30793. void SendEvent(StringHash);
  30794. void SendEvent(StringHash, VariantMap&);
  30795. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  30796. void SetAnisotropy(uint);
  30797. void SetAsyncLoadState(AsyncLoadState);
  30798. void SetBackupTexture(Texture);
  30799. void SetBlockEvents(bool);
  30800. void SetBorderColor(const Color&);
  30801. bool SetData(Image, bool = false);
  30802. void SetFilterMode(TextureFilterMode);
  30803. void SetGlobalVar(StringHash, const Variant&);
  30804. void SetLevelsDirty();
  30805. void SetMemoryUse(uint);
  30806. void SetMipsToSkip(uint, int);
  30807. void SetName(const String&);
  30808. void SetNumLevels(uint);
  30809. void SetParameters(XMLFile);
  30810. void SetParameters(const XMLElement&);
  30811. void SetParametersDirty();
  30812. void SetResolveDirty(bool);
  30813. void SetSRGB(bool);
  30814. void SetShadowCompare(bool);
  30815. bool SetSize(int, int, uint, TextureUsage = TEXTURE_STATIC, int = 1, bool = true);
  30816. const String& GetCategory() const;
  30817. const String& GetName() const;
  30818. const String& GetTypeName() const;
  30819. operator Texture() const;
  30820. void UnsubscribeFromAllEvents();
  30821. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  30822. void UnsubscribeFromEvent(Object, StringHash);
  30823. void UnsubscribeFromEvent(StringHash);
  30824. void UnsubscribeFromEvents(Object);
  30825. void UpdateParameters();
  30826. const Variant& GetGlobalVar(StringHash) const;
  30827. const Variant& GetMetadata(const String&) const;
  30828. const VariantMap& GetGlobalVars() const;
  30829. int WeakRefs() const;
  30830. operator const Object() const;
  30831. operator const RefCounted() const;
  30832. operator const Resource() const;
  30833. operator const ResourceWithMetadata() const;
  30834. operator const Texture() const;
  30835. // Properties:
  30836. Array<TextureAddressMode> addressMode;
  30837. uint anisotropy;
  30838. /* readonly */
  30839. bool autoResolve;
  30840. Texture backupTexture;
  30841. Color borderColor;
  30842. /* readonly */
  30843. String category;
  30844. /* readonly */
  30845. uint components;
  30846. /* readonly */
  30847. bool compressed;
  30848. /* readonly */
  30849. bool dataLost;
  30850. TextureFilterMode filterMode;
  30851. /* readonly */
  30852. uint format;
  30853. Array<Variant> globalVar;
  30854. /* readonly */
  30855. VariantMap globalVars;
  30856. /* readonly */
  30857. bool hasMetadata;
  30858. /* readonly */
  30859. int height;
  30860. /* readonly */
  30861. Array<int> levelHeight;
  30862. /* readonly */
  30863. Array<int> levelWidth;
  30864. /* readonly */
  30865. uint levels;
  30866. /* readonly */
  30867. bool levelsDirty;
  30868. /* readonly */
  30869. uint memoryUse;
  30870. Array<Variant> metadata;
  30871. Array<int> mipsToSkip;
  30872. /* readonly */
  30873. int multiSample;
  30874. String name;
  30875. /* readonly */
  30876. int refs;
  30877. /* readonly */
  30878. RenderSurface renderSurface;
  30879. /* readonly */
  30880. bool resolveDirty;
  30881. bool sRGB;
  30882. /* readonly */
  30883. StringHash type;
  30884. /* readonly */
  30885. String typeName;
  30886. /* readonly */
  30887. TextureUsage usage;
  30888. /* readonly */
  30889. uint useTimer;
  30890. /* readonly */
  30891. int weakRefs;
  30892. /* readonly */
  30893. int width;
  30894. };
  30895. class Texture2DArray
  30896. {
  30897. public:
  30898. Texture2DArray();
  30899. // Methods:
  30900. void AddMetadata(const String&, const Variant&);
  30901. bool BeginLoad(Deserializer&);
  30902. void ClearDataLost();
  30903. const Color& GetBorderColor() const;
  30904. bool EndLoad();
  30905. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  30906. uint GetAnisotropy() const;
  30907. AsyncLoadState GetAsyncLoadState() const;
  30908. bool GetAutoResolve() const;
  30909. Texture GetBackupTexture() const;
  30910. bool GetBlockEvents() const;
  30911. uint GetComponents() const;
  30912. uint GetDataSize(int, int) const;
  30913. uint GetDataSize(int, int, int) const;
  30914. int GetDepth() const;
  30915. VariantMap& GetEventDataMap() const;
  30916. Object GetEventSender() const;
  30917. TextureFilterMode GetFilterMode() const;
  30918. uint GetFormat() const;
  30919. uint GetGPUObjectName() const;
  30920. Graphics GetGraphics() const;
  30921. int GetHeight() const;
  30922. uint GetLayers() const;
  30923. int GetLevelDepth(uint) const;
  30924. int GetLevelHeight(uint) const;
  30925. int GetLevelWidth(uint) const;
  30926. uint GetLevels() const;
  30927. bool GetLevelsDirty() const;
  30928. uint GetMemoryUse() const;
  30929. int GetMipsToSkip(uint) const;
  30930. int GetMultiSample() const;
  30931. StringHash GetNameHash() const;
  30932. bool GetParametersDirty() const;
  30933. RenderSurface GetRenderSurface() const;
  30934. uint GetRowDataSize(int) const;
  30935. bool GetSRGB() const;
  30936. bool GetShadowCompare() const;
  30937. Object GetSubsystem(StringHash) const;
  30938. uint GetTarget() const;
  30939. StringHash GetType() const;
  30940. TextureUsage GetUsage() const;
  30941. uint GetUseTimer();
  30942. int GetWidth() const;
  30943. bool HasEventHandlers() const;
  30944. bool HasMetadata() const;
  30945. bool HasPendingData() const;
  30946. bool HasSubscribedToEvent(Object, StringHash) const;
  30947. bool HasSubscribedToEvent(StringHash) const;
  30948. bool IsCompressed() const;
  30949. bool IsDataLost() const;
  30950. bool IsInstanceOf(StringHash) const;
  30951. bool IsResolveDirty() const;
  30952. bool Load(Deserializer&);
  30953. bool Load(File);
  30954. bool Load(VectorBuffer&);
  30955. bool Load(const String&);
  30956. bool LoadFile(const String&);
  30957. operator Object() const;
  30958. void OnDeviceLost();
  30959. void OnDeviceReset();
  30960. void OnEvent(Object, StringHash, VariantMap&);
  30961. operator RefCounted() const;
  30962. int Refs() const;
  30963. void RegenerateLevels();
  30964. void Release();
  30965. void RemoveAllMetadata();
  30966. void RemoveMetadata(const String&);
  30967. void ResetUseTimer();
  30968. operator Resource() const;
  30969. operator ResourceWithMetadata() const;
  30970. bool Save(File) const;
  30971. bool Save(Serializer&) const;
  30972. bool Save(VectorBuffer&) const;
  30973. bool Save(const String&) const;
  30974. bool SaveFile(const String&) const;
  30975. void SendEvent(StringHash);
  30976. void SendEvent(StringHash, VariantMap&);
  30977. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  30978. void SetAnisotropy(uint);
  30979. void SetAsyncLoadState(AsyncLoadState);
  30980. void SetBackupTexture(Texture);
  30981. void SetBlockEvents(bool);
  30982. void SetBorderColor(const Color&);
  30983. bool SetData(uint, Deserializer&);
  30984. bool SetData(uint, Image, bool = false);
  30985. void SetFilterMode(TextureFilterMode);
  30986. void SetGlobalVar(StringHash, const Variant&);
  30987. void SetLayers(uint);
  30988. void SetLevelsDirty();
  30989. void SetMemoryUse(uint);
  30990. void SetMipsToSkip(uint, int);
  30991. void SetName(const String&);
  30992. void SetNumLevels(uint);
  30993. void SetParameters(XMLFile);
  30994. void SetParameters(const XMLElement&);
  30995. void SetParametersDirty();
  30996. void SetResolveDirty(bool);
  30997. void SetSRGB(bool);
  30998. void SetShadowCompare(bool);
  30999. bool SetSize(uint, int, int, uint, TextureUsage = TEXTURE_STATIC);
  31000. const String& GetCategory() const;
  31001. const String& GetName() const;
  31002. const String& GetTypeName() const;
  31003. operator Texture() const;
  31004. void UnsubscribeFromAllEvents();
  31005. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31006. void UnsubscribeFromEvent(Object, StringHash);
  31007. void UnsubscribeFromEvent(StringHash);
  31008. void UnsubscribeFromEvents(Object);
  31009. void UpdateParameters();
  31010. const Variant& GetGlobalVar(StringHash) const;
  31011. const Variant& GetMetadata(const String&) const;
  31012. const VariantMap& GetGlobalVars() const;
  31013. int WeakRefs() const;
  31014. operator const Object() const;
  31015. operator const RefCounted() const;
  31016. operator const Resource() const;
  31017. operator const ResourceWithMetadata() const;
  31018. operator const Texture() const;
  31019. // Properties:
  31020. Array<TextureAddressMode> addressMode;
  31021. uint anisotropy;
  31022. /* readonly */
  31023. bool autoResolve;
  31024. Texture backupTexture;
  31025. Color borderColor;
  31026. /* readonly */
  31027. String category;
  31028. /* readonly */
  31029. uint components;
  31030. /* readonly */
  31031. bool compressed;
  31032. /* readonly */
  31033. bool dataLost;
  31034. TextureFilterMode filterMode;
  31035. /* readonly */
  31036. uint format;
  31037. Array<Variant> globalVar;
  31038. /* readonly */
  31039. VariantMap globalVars;
  31040. /* readonly */
  31041. bool hasMetadata;
  31042. /* readonly */
  31043. int height;
  31044. uint layers;
  31045. /* readonly */
  31046. Array<int> levelHeight;
  31047. /* readonly */
  31048. Array<int> levelWidth;
  31049. /* readonly */
  31050. uint levels;
  31051. /* readonly */
  31052. bool levelsDirty;
  31053. /* readonly */
  31054. uint memoryUse;
  31055. Array<Variant> metadata;
  31056. Array<int> mipsToSkip;
  31057. /* readonly */
  31058. int multiSample;
  31059. String name;
  31060. /* readonly */
  31061. int refs;
  31062. /* readonly */
  31063. RenderSurface renderSurface;
  31064. /* readonly */
  31065. bool resolveDirty;
  31066. bool sRGB;
  31067. /* readonly */
  31068. StringHash type;
  31069. /* readonly */
  31070. String typeName;
  31071. /* readonly */
  31072. TextureUsage usage;
  31073. /* readonly */
  31074. uint useTimer;
  31075. /* readonly */
  31076. int weakRefs;
  31077. /* readonly */
  31078. int width;
  31079. };
  31080. class Texture3D
  31081. {
  31082. public:
  31083. Texture3D();
  31084. // Methods:
  31085. void AddMetadata(const String&, const Variant&);
  31086. bool BeginLoad(Deserializer&);
  31087. void ClearDataLost();
  31088. const Color& GetBorderColor() const;
  31089. bool EndLoad();
  31090. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  31091. uint GetAnisotropy() const;
  31092. AsyncLoadState GetAsyncLoadState() const;
  31093. bool GetAutoResolve() const;
  31094. Texture GetBackupTexture() const;
  31095. bool GetBlockEvents() const;
  31096. uint GetComponents() const;
  31097. uint GetDataSize(int, int) const;
  31098. uint GetDataSize(int, int, int) const;
  31099. int GetDepth() const;
  31100. VariantMap& GetEventDataMap() const;
  31101. Object GetEventSender() const;
  31102. TextureFilterMode GetFilterMode() const;
  31103. uint GetFormat() const;
  31104. uint GetGPUObjectName() const;
  31105. Graphics GetGraphics() const;
  31106. int GetHeight() const;
  31107. int GetLevelDepth(uint) const;
  31108. int GetLevelHeight(uint) const;
  31109. int GetLevelWidth(uint) const;
  31110. uint GetLevels() const;
  31111. bool GetLevelsDirty() const;
  31112. uint GetMemoryUse() const;
  31113. int GetMipsToSkip(uint) const;
  31114. int GetMultiSample() const;
  31115. StringHash GetNameHash() const;
  31116. bool GetParametersDirty() const;
  31117. uint GetRowDataSize(int) const;
  31118. bool GetSRGB() const;
  31119. bool GetShadowCompare() const;
  31120. Object GetSubsystem(StringHash) const;
  31121. uint GetTarget() const;
  31122. StringHash GetType() const;
  31123. TextureUsage GetUsage() const;
  31124. uint GetUseTimer();
  31125. int GetWidth() const;
  31126. bool HasEventHandlers() const;
  31127. bool HasMetadata() const;
  31128. bool HasPendingData() const;
  31129. bool HasSubscribedToEvent(Object, StringHash) const;
  31130. bool HasSubscribedToEvent(StringHash) const;
  31131. bool IsCompressed() const;
  31132. bool IsDataLost() const;
  31133. bool IsInstanceOf(StringHash) const;
  31134. bool IsResolveDirty() const;
  31135. bool Load(Deserializer&);
  31136. bool Load(File);
  31137. bool Load(VectorBuffer&);
  31138. bool Load(const String&);
  31139. bool LoadFile(const String&);
  31140. operator Object() const;
  31141. void OnDeviceLost();
  31142. void OnDeviceReset();
  31143. void OnEvent(Object, StringHash, VariantMap&);
  31144. operator RefCounted() const;
  31145. int Refs() const;
  31146. void RegenerateLevels();
  31147. void Release();
  31148. void RemoveAllMetadata();
  31149. void RemoveMetadata(const String&);
  31150. void ResetUseTimer();
  31151. operator Resource() const;
  31152. operator ResourceWithMetadata() const;
  31153. bool Save(File) const;
  31154. bool Save(Serializer&) const;
  31155. bool Save(VectorBuffer&) const;
  31156. bool Save(const String&) const;
  31157. bool SaveFile(const String&) const;
  31158. void SendEvent(StringHash);
  31159. void SendEvent(StringHash, VariantMap&);
  31160. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  31161. void SetAnisotropy(uint);
  31162. void SetAsyncLoadState(AsyncLoadState);
  31163. void SetBackupTexture(Texture);
  31164. void SetBlockEvents(bool);
  31165. void SetBorderColor(const Color&);
  31166. bool SetData(Image, bool = false);
  31167. void SetFilterMode(TextureFilterMode);
  31168. void SetGlobalVar(StringHash, const Variant&);
  31169. void SetLevelsDirty();
  31170. void SetMemoryUse(uint);
  31171. void SetMipsToSkip(uint, int);
  31172. void SetName(const String&);
  31173. void SetNumLevels(uint);
  31174. void SetParameters(XMLFile);
  31175. void SetParameters(const XMLElement&);
  31176. void SetParametersDirty();
  31177. void SetResolveDirty(bool);
  31178. void SetSRGB(bool);
  31179. void SetShadowCompare(bool);
  31180. bool SetSize(int, int, int, uint, TextureUsage = TEXTURE_STATIC);
  31181. const String& GetCategory() const;
  31182. const String& GetName() const;
  31183. const String& GetTypeName() const;
  31184. operator Texture() const;
  31185. void UnsubscribeFromAllEvents();
  31186. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31187. void UnsubscribeFromEvent(Object, StringHash);
  31188. void UnsubscribeFromEvent(StringHash);
  31189. void UnsubscribeFromEvents(Object);
  31190. void UpdateParameters();
  31191. const Variant& GetGlobalVar(StringHash) const;
  31192. const Variant& GetMetadata(const String&) const;
  31193. const VariantMap& GetGlobalVars() const;
  31194. int WeakRefs() const;
  31195. operator const Object() const;
  31196. operator const RefCounted() const;
  31197. operator const Resource() const;
  31198. operator const ResourceWithMetadata() const;
  31199. operator const Texture() const;
  31200. // Properties:
  31201. Array<TextureAddressMode> addressMode;
  31202. uint anisotropy;
  31203. /* readonly */
  31204. bool autoResolve;
  31205. Texture backupTexture;
  31206. Color borderColor;
  31207. /* readonly */
  31208. String category;
  31209. /* readonly */
  31210. uint components;
  31211. /* readonly */
  31212. bool compressed;
  31213. /* readonly */
  31214. bool dataLost;
  31215. TextureFilterMode filterMode;
  31216. /* readonly */
  31217. uint format;
  31218. Array<Variant> globalVar;
  31219. /* readonly */
  31220. VariantMap globalVars;
  31221. /* readonly */
  31222. bool hasMetadata;
  31223. /* readonly */
  31224. int height;
  31225. /* readonly */
  31226. Array<int> levelHeight;
  31227. /* readonly */
  31228. Array<int> levelWidth;
  31229. /* readonly */
  31230. uint levels;
  31231. /* readonly */
  31232. bool levelsDirty;
  31233. /* readonly */
  31234. uint memoryUse;
  31235. Array<Variant> metadata;
  31236. Array<int> mipsToSkip;
  31237. /* readonly */
  31238. int multiSample;
  31239. String name;
  31240. /* readonly */
  31241. int refs;
  31242. /* readonly */
  31243. bool resolveDirty;
  31244. bool sRGB;
  31245. /* readonly */
  31246. StringHash type;
  31247. /* readonly */
  31248. String typeName;
  31249. /* readonly */
  31250. TextureUsage usage;
  31251. /* readonly */
  31252. uint useTimer;
  31253. /* readonly */
  31254. int weakRefs;
  31255. /* readonly */
  31256. int width;
  31257. };
  31258. class TextureCube
  31259. {
  31260. public:
  31261. TextureCube();
  31262. // Methods:
  31263. void AddMetadata(const String&, const Variant&);
  31264. bool BeginLoad(Deserializer&);
  31265. void ClearDataLost();
  31266. const Color& GetBorderColor() const;
  31267. bool EndLoad();
  31268. TextureAddressMode GetAddressMode(TextureCoordinate) const;
  31269. uint GetAnisotropy() const;
  31270. AsyncLoadState GetAsyncLoadState() const;
  31271. bool GetAutoResolve() const;
  31272. Texture GetBackupTexture() const;
  31273. bool GetBlockEvents() const;
  31274. uint GetComponents() const;
  31275. uint GetDataSize(int, int) const;
  31276. uint GetDataSize(int, int, int) const;
  31277. int GetDepth() const;
  31278. VariantMap& GetEventDataMap() const;
  31279. Object GetEventSender() const;
  31280. TextureFilterMode GetFilterMode() const;
  31281. uint GetFormat() const;
  31282. uint GetGPUObjectName() const;
  31283. Graphics GetGraphics() const;
  31284. int GetHeight() const;
  31285. Image GetImage(CubeMapFace) const;
  31286. int GetLevelDepth(uint) const;
  31287. int GetLevelHeight(uint) const;
  31288. int GetLevelWidth(uint) const;
  31289. uint GetLevels() const;
  31290. bool GetLevelsDirty() const;
  31291. uint GetMemoryUse() const;
  31292. int GetMipsToSkip(uint) const;
  31293. int GetMultiSample() const;
  31294. StringHash GetNameHash() const;
  31295. bool GetParametersDirty() const;
  31296. RenderSurface GetRenderSurface(CubeMapFace) const;
  31297. uint GetRowDataSize(int) const;
  31298. bool GetSRGB() const;
  31299. bool GetShadowCompare() const;
  31300. Object GetSubsystem(StringHash) const;
  31301. uint GetTarget() const;
  31302. StringHash GetType() const;
  31303. TextureUsage GetUsage() const;
  31304. uint GetUseTimer();
  31305. int GetWidth() const;
  31306. bool HasEventHandlers() const;
  31307. bool HasMetadata() const;
  31308. bool HasPendingData() const;
  31309. bool HasSubscribedToEvent(Object, StringHash) const;
  31310. bool HasSubscribedToEvent(StringHash) const;
  31311. bool IsCompressed() const;
  31312. bool IsDataLost() const;
  31313. bool IsInstanceOf(StringHash) const;
  31314. bool IsResolveDirty() const;
  31315. bool Load(Deserializer&);
  31316. bool Load(File);
  31317. bool Load(VectorBuffer&);
  31318. bool Load(const String&);
  31319. bool LoadFile(const String&);
  31320. operator Object() const;
  31321. void OnDeviceLost();
  31322. void OnDeviceReset();
  31323. void OnEvent(Object, StringHash, VariantMap&);
  31324. operator RefCounted() const;
  31325. int Refs() const;
  31326. void RegenerateLevels();
  31327. void Release();
  31328. void RemoveAllMetadata();
  31329. void RemoveMetadata(const String&);
  31330. void ResetUseTimer();
  31331. operator Resource() const;
  31332. operator ResourceWithMetadata() const;
  31333. bool Save(File) const;
  31334. bool Save(Serializer&) const;
  31335. bool Save(VectorBuffer&) const;
  31336. bool Save(const String&) const;
  31337. bool SaveFile(const String&) const;
  31338. void SendEvent(StringHash);
  31339. void SendEvent(StringHash, VariantMap&);
  31340. void SetAddressMode(TextureCoordinate, TextureAddressMode);
  31341. void SetAnisotropy(uint);
  31342. void SetAsyncLoadState(AsyncLoadState);
  31343. void SetBackupTexture(Texture);
  31344. void SetBlockEvents(bool);
  31345. void SetBorderColor(const Color&);
  31346. bool SetData(CubeMapFace, Deserializer&);
  31347. bool SetData(CubeMapFace, Image, bool = false);
  31348. void SetFilterMode(TextureFilterMode);
  31349. void SetGlobalVar(StringHash, const Variant&);
  31350. void SetLevelsDirty();
  31351. void SetMemoryUse(uint);
  31352. void SetMipsToSkip(uint, int);
  31353. void SetName(const String&);
  31354. void SetNumLevels(uint);
  31355. void SetParameters(XMLFile);
  31356. void SetParameters(const XMLElement&);
  31357. void SetParametersDirty();
  31358. void SetResolveDirty(bool);
  31359. void SetSRGB(bool);
  31360. void SetShadowCompare(bool);
  31361. bool SetSize(int, uint, TextureUsage = TEXTURE_STATIC, int = 1);
  31362. const String& GetCategory() const;
  31363. const String& GetName() const;
  31364. const String& GetTypeName() const;
  31365. operator Texture() const;
  31366. void UnsubscribeFromAllEvents();
  31367. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31368. void UnsubscribeFromEvent(Object, StringHash);
  31369. void UnsubscribeFromEvent(StringHash);
  31370. void UnsubscribeFromEvents(Object);
  31371. void UpdateParameters();
  31372. const Variant& GetGlobalVar(StringHash) const;
  31373. const Variant& GetMetadata(const String&) const;
  31374. const VariantMap& GetGlobalVars() const;
  31375. int WeakRefs() const;
  31376. operator const Object() const;
  31377. operator const RefCounted() const;
  31378. operator const Resource() const;
  31379. operator const ResourceWithMetadata() const;
  31380. operator const Texture() const;
  31381. // Properties:
  31382. Array<TextureAddressMode> addressMode;
  31383. uint anisotropy;
  31384. /* readonly */
  31385. bool autoResolve;
  31386. Texture backupTexture;
  31387. Color borderColor;
  31388. /* readonly */
  31389. String category;
  31390. /* readonly */
  31391. uint components;
  31392. /* readonly */
  31393. bool compressed;
  31394. /* readonly */
  31395. bool dataLost;
  31396. TextureFilterMode filterMode;
  31397. /* readonly */
  31398. uint format;
  31399. Array<Variant> globalVar;
  31400. /* readonly */
  31401. VariantMap globalVars;
  31402. /* readonly */
  31403. bool hasMetadata;
  31404. /* readonly */
  31405. int height;
  31406. /* readonly */
  31407. Array<int> levelHeight;
  31408. /* readonly */
  31409. Array<int> levelWidth;
  31410. /* readonly */
  31411. uint levels;
  31412. /* readonly */
  31413. bool levelsDirty;
  31414. /* readonly */
  31415. uint memoryUse;
  31416. Array<Variant> metadata;
  31417. Array<int> mipsToSkip;
  31418. /* readonly */
  31419. int multiSample;
  31420. String name;
  31421. /* readonly */
  31422. int refs;
  31423. /* readonly */
  31424. Array<RenderSurface> renderSurfaces;
  31425. /* readonly */
  31426. bool resolveDirty;
  31427. bool sRGB;
  31428. /* readonly */
  31429. StringHash type;
  31430. /* readonly */
  31431. String typeName;
  31432. /* readonly */
  31433. TextureUsage usage;
  31434. /* readonly */
  31435. uint useTimer;
  31436. /* readonly */
  31437. int weakRefs;
  31438. /* readonly */
  31439. int width;
  31440. };
  31441. class TextureFrame
  31442. {
  31443. public:
  31444. // Methods:
  31445. TextureFrame& operator=(const TextureFrame&);
  31446. // Properties:
  31447. float time;
  31448. Rect uv;
  31449. };
  31450. class Tile2D
  31451. {
  31452. public:
  31453. Tile2D();
  31454. // Methods:
  31455. bool GetFlipX() const;
  31456. bool GetFlipY() const;
  31457. uint GetGid() const;
  31458. Sprite2D GetSprite() const;
  31459. bool GetSwapXY() const;
  31460. bool HasProperty(const String&) const;
  31461. operator RefCounted() const;
  31462. int Refs() const;
  31463. const String& GetProperty(const String&) const;
  31464. int WeakRefs() const;
  31465. operator const RefCounted() const;
  31466. // Properties:
  31467. /* readonly */
  31468. bool flipX;
  31469. /* readonly */
  31470. bool flipY;
  31471. /* readonly */
  31472. uint gid;
  31473. /* readonly */
  31474. int refs;
  31475. /* readonly */
  31476. Sprite2D sprite;
  31477. /* readonly */
  31478. bool swapXY;
  31479. /* readonly */
  31480. int weakRefs;
  31481. };
  31482. class TileMap2D
  31483. {
  31484. public:
  31485. TileMap2D();
  31486. // Methods:
  31487. void AllocateNetworkState();
  31488. operator Animatable() const;
  31489. void ApplyAttributes();
  31490. void CleanupConnection(Connection);
  31491. operator Component() const;
  31492. void DrawDebugGeometry();
  31493. void DrawDebugGeometry(DebugRenderer, bool);
  31494. bool GetAnimationEnabled() const;
  31495. Variant GetAttribute(const String&) const;
  31496. Variant GetAttribute(uint) const;
  31497. ValueAnimation GetAttributeAnimation(const String&) const;
  31498. float GetAttributeAnimationSpeed(const String&) const;
  31499. float GetAttributeAnimationTime(const String&) const;
  31500. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  31501. Variant GetAttributeDefault(const String&) const;
  31502. Variant GetAttributeDefault(uint) const;
  31503. bool GetBlockEvents() const;
  31504. Component GetComponent(StringHash) const;
  31505. VariantMap& GetEventDataMap() const;
  31506. Object GetEventSender() const;
  31507. uint GetID() const;
  31508. bool GetInterceptNetworkUpdate(const String&) const;
  31509. TileMapLayer2D GetLayer(uint) const;
  31510. Node GetNode() const;
  31511. uint GetNumAttributes() const;
  31512. uint GetNumLayers() const;
  31513. uint GetNumNetworkAttributes() const;
  31514. ObjectAnimation GetObjectAnimation() const;
  31515. ResourceRef GetObjectAnimationAttr() const;
  31516. Scene GetScene() const;
  31517. Object GetSubsystem(StringHash) const;
  31518. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  31519. TmxFile2D GetTmxFile() const;
  31520. ResourceRef GetTmxFileAttr() const;
  31521. StringHash GetType() const;
  31522. bool HasEventHandlers() const;
  31523. bool HasSubscribedToEvent(Object, StringHash) const;
  31524. bool HasSubscribedToEvent(StringHash) const;
  31525. bool IsEnabled() const;
  31526. bool IsEnabledEffective() const;
  31527. bool IsInstanceOf(StringHash) const;
  31528. bool IsReplicated() const;
  31529. bool IsTemporary() const;
  31530. bool Load(Deserializer&);
  31531. bool LoadJSON(const JSONValue&);
  31532. bool LoadXML(const XMLElement&);
  31533. void MarkNetworkUpdate();
  31534. operator Object() const;
  31535. void OnEvent(Object, StringHash, VariantMap&);
  31536. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  31537. void OnSetAttribute(const AttributeInfo&, const Variant&);
  31538. void OnSetEnabled();
  31539. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  31540. void PrepareNetworkUpdate();
  31541. bool ReadDeltaUpdate(Deserializer&);
  31542. bool ReadLatestDataUpdate(Deserializer&);
  31543. operator RefCounted() const;
  31544. int Refs() const;
  31545. void Remove();
  31546. void RemoveAttributeAnimation(const String&);
  31547. void RemoveInstanceDefault();
  31548. void RemoveObjectAnimation();
  31549. void ResetToDefault();
  31550. bool Save(Serializer&) const;
  31551. bool SaveDefaultAttributes() const;
  31552. bool SaveJSON(JSONValue&) const;
  31553. bool SaveXML(XMLElement&) const;
  31554. void SendEvent(StringHash);
  31555. void SendEvent(StringHash, VariantMap&);
  31556. operator Serializable() const;
  31557. void SetAnimationEnabled(bool);
  31558. void SetAnimationTime(float);
  31559. bool SetAttribute(const String&, const Variant&);
  31560. bool SetAttribute(uint, const Variant&);
  31561. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  31562. void SetAttributeAnimationSpeed(const String&, float);
  31563. void SetAttributeAnimationTime(const String&, float);
  31564. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  31565. void SetBlockEvents(bool);
  31566. void SetEnabled(bool);
  31567. void SetGlobalVar(StringHash, const Variant&);
  31568. void SetInstanceDefault(bool);
  31569. void SetInterceptNetworkUpdate(const String&, bool);
  31570. void SetObjectAnimation(ObjectAnimation);
  31571. void SetObjectAnimationAttr(const ResourceRef&);
  31572. void SetTemporary(bool);
  31573. void SetTmxFile(TmxFile2D);
  31574. void SetTmxFileAttr(const ResourceRef&);
  31575. const String& GetCategory() const;
  31576. const String& GetTypeName() const;
  31577. Vector2 TileIndexToPosition(int, int) const;
  31578. const TileMapInfo2D& GetInfo() const;
  31579. void UnsubscribeFromAllEvents();
  31580. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31581. void UnsubscribeFromEvent(Object, StringHash);
  31582. void UnsubscribeFromEvent(StringHash);
  31583. void UnsubscribeFromEvents(Object);
  31584. const Variant& GetGlobalVar(StringHash) const;
  31585. const VariantMap& GetGlobalVars() const;
  31586. int WeakRefs() const;
  31587. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  31588. void WriteInitialDeltaUpdate(Serializer&, uint8);
  31589. void WriteLatestDataUpdate(Serializer&, uint8);
  31590. operator const Animatable() const;
  31591. operator const Component() const;
  31592. operator const Object() const;
  31593. operator const RefCounted() const;
  31594. operator const Serializable() const;
  31595. // Properties:
  31596. bool animationEnabled;
  31597. /* readonly */
  31598. Array<Variant> attributeDefaults;
  31599. /* readonly */
  31600. Array<AttributeInfo> attributeInfos;
  31601. Array<Variant> attributes;
  31602. /* readonly */
  31603. String category;
  31604. bool enabled;
  31605. /* readonly */
  31606. bool enabledEffective;
  31607. Array<Variant> globalVar;
  31608. /* readonly */
  31609. VariantMap globalVars;
  31610. /* readonly */
  31611. uint id;
  31612. /* readonly */
  31613. TileMapInfo2D info;
  31614. /* readonly */
  31615. Node node;
  31616. /* readonly */
  31617. uint numAttributes;
  31618. /* readonly */
  31619. uint numLayers;
  31620. ObjectAnimation objectAnimation;
  31621. /* readonly */
  31622. int refs;
  31623. /* readonly */
  31624. bool replicated;
  31625. bool temporary;
  31626. TmxFile2D tmxFile;
  31627. /* readonly */
  31628. StringHash type;
  31629. /* readonly */
  31630. String typeName;
  31631. /* readonly */
  31632. int weakRefs;
  31633. };
  31634. class TileMapInfo2D
  31635. {
  31636. public:
  31637. // Methods:
  31638. TileMapInfo2D& operator=(const TileMapInfo2D&);
  31639. Vector2 ConvertPosition(const Vector2&) const;
  31640. float GetMapHeight() const;
  31641. float GetMapWidth() const;
  31642. bool PositionToTileIndex(int&, int&, const Vector2&) const;
  31643. Vector2 TileIndexToPosition(int, int) const;
  31644. // Properties:
  31645. int height;
  31646. /* readonly */
  31647. float mapHeight;
  31648. /* readonly */
  31649. float mapWidth;
  31650. Orientation2D orientation;
  31651. float tileHeight;
  31652. float tileWidth;
  31653. int width;
  31654. };
  31655. class TileMapLayer2D
  31656. {
  31657. public:
  31658. TileMapLayer2D();
  31659. // Methods:
  31660. void AllocateNetworkState();
  31661. operator Animatable() const;
  31662. void ApplyAttributes();
  31663. void CleanupConnection(Connection);
  31664. operator Component() const;
  31665. void DrawDebugGeometry(DebugRenderer, bool);
  31666. bool GetAnimationEnabled() const;
  31667. Variant GetAttribute(const String&) const;
  31668. Variant GetAttribute(uint) const;
  31669. ValueAnimation GetAttributeAnimation(const String&) const;
  31670. float GetAttributeAnimationSpeed(const String&) const;
  31671. float GetAttributeAnimationTime(const String&) const;
  31672. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  31673. Variant GetAttributeDefault(const String&) const;
  31674. Variant GetAttributeDefault(uint) const;
  31675. bool GetBlockEvents() const;
  31676. Component GetComponent(StringHash) const;
  31677. int GetDrawOrder() const;
  31678. VariantMap& GetEventDataMap() const;
  31679. Object GetEventSender() const;
  31680. int GetHeight() const;
  31681. uint GetID() const;
  31682. Node GetImageNode() const;
  31683. bool GetInterceptNetworkUpdate(const String&) const;
  31684. TileMapLayerType2D GetLayerType() const;
  31685. Node GetNode() const;
  31686. uint GetNumAttributes() const;
  31687. uint GetNumNetworkAttributes() const;
  31688. uint GetNumObjects() const;
  31689. TileMapObject2D GetObject(uint) const;
  31690. ObjectAnimation GetObjectAnimation() const;
  31691. ResourceRef GetObjectAnimationAttr() const;
  31692. Node GetObjectNode(uint) const;
  31693. Scene GetScene() const;
  31694. Object GetSubsystem(StringHash) const;
  31695. Tile2D GetTile(int, int) const;
  31696. TileMap2D GetTileMap() const;
  31697. Node GetTileNode(int, int) const;
  31698. TmxLayer2D GetTmxLayer() const;
  31699. StringHash GetType() const;
  31700. int GetWidth() const;
  31701. bool HasEventHandlers() const;
  31702. bool HasProperty(const String&) const;
  31703. bool HasSubscribedToEvent(Object, StringHash) const;
  31704. bool HasSubscribedToEvent(StringHash) const;
  31705. void Initialize(TileMap2D, TmxLayer2D);
  31706. bool IsEnabled() const;
  31707. bool IsEnabledEffective() const;
  31708. bool IsInstanceOf(StringHash) const;
  31709. bool IsReplicated() const;
  31710. bool IsTemporary() const;
  31711. bool IsVisible() const;
  31712. bool Load(Deserializer&);
  31713. bool LoadJSON(const JSONValue&);
  31714. bool LoadXML(const XMLElement&);
  31715. void MarkNetworkUpdate();
  31716. operator Object() const;
  31717. void OnEvent(Object, StringHash, VariantMap&);
  31718. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  31719. void OnSetAttribute(const AttributeInfo&, const Variant&);
  31720. void OnSetEnabled();
  31721. void PrepareNetworkUpdate();
  31722. bool ReadDeltaUpdate(Deserializer&);
  31723. bool ReadLatestDataUpdate(Deserializer&);
  31724. operator RefCounted() const;
  31725. int Refs() const;
  31726. void Remove();
  31727. void RemoveAttributeAnimation(const String&);
  31728. void RemoveInstanceDefault();
  31729. void RemoveObjectAnimation();
  31730. void ResetToDefault();
  31731. bool Save(Serializer&) const;
  31732. bool SaveDefaultAttributes() const;
  31733. bool SaveJSON(JSONValue&) const;
  31734. bool SaveXML(XMLElement&) const;
  31735. void SendEvent(StringHash);
  31736. void SendEvent(StringHash, VariantMap&);
  31737. operator Serializable() const;
  31738. void SetAnimationEnabled(bool);
  31739. void SetAnimationTime(float);
  31740. bool SetAttribute(const String&, const Variant&);
  31741. bool SetAttribute(uint, const Variant&);
  31742. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  31743. void SetAttributeAnimationSpeed(const String&, float);
  31744. void SetAttributeAnimationTime(const String&, float);
  31745. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  31746. void SetBlockEvents(bool);
  31747. void SetDrawOrder(int);
  31748. void SetEnabled(bool);
  31749. void SetGlobalVar(StringHash, const Variant&);
  31750. void SetInstanceDefault(bool);
  31751. void SetInterceptNetworkUpdate(const String&, bool);
  31752. void SetObjectAnimation(ObjectAnimation);
  31753. void SetObjectAnimationAttr(const ResourceRef&);
  31754. void SetTemporary(bool);
  31755. void SetVisible(bool);
  31756. const String& GetCategory() const;
  31757. const String& GetProperty(const String&) const;
  31758. const String& GetTypeName() const;
  31759. void UnsubscribeFromAllEvents();
  31760. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31761. void UnsubscribeFromEvent(Object, StringHash);
  31762. void UnsubscribeFromEvent(StringHash);
  31763. void UnsubscribeFromEvents(Object);
  31764. const Variant& GetGlobalVar(StringHash) const;
  31765. const VariantMap& GetGlobalVars() const;
  31766. int WeakRefs() const;
  31767. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  31768. void WriteInitialDeltaUpdate(Serializer&, uint8);
  31769. void WriteLatestDataUpdate(Serializer&, uint8);
  31770. operator const Animatable() const;
  31771. operator const Component() const;
  31772. operator const Object() const;
  31773. operator const RefCounted() const;
  31774. operator const Serializable() const;
  31775. // Properties:
  31776. bool animationEnabled;
  31777. /* readonly */
  31778. Array<Variant> attributeDefaults;
  31779. /* readonly */
  31780. Array<AttributeInfo> attributeInfos;
  31781. Array<Variant> attributes;
  31782. /* readonly */
  31783. String category;
  31784. int drawOrder;
  31785. bool enabled;
  31786. /* readonly */
  31787. bool enabledEffective;
  31788. Array<Variant> globalVar;
  31789. /* readonly */
  31790. VariantMap globalVars;
  31791. /* readonly */
  31792. int height;
  31793. /* readonly */
  31794. uint id;
  31795. /* readonly */
  31796. Node imageNode;
  31797. /* readonly */
  31798. TileMapLayerType2D layerType;
  31799. /* readonly */
  31800. Node node;
  31801. /* readonly */
  31802. uint numAttributes;
  31803. /* readonly */
  31804. uint numObjects;
  31805. ObjectAnimation objectAnimation;
  31806. /* readonly */
  31807. int refs;
  31808. /* readonly */
  31809. bool replicated;
  31810. bool temporary;
  31811. /* readonly */
  31812. StringHash type;
  31813. /* readonly */
  31814. String typeName;
  31815. bool visible;
  31816. /* readonly */
  31817. int weakRefs;
  31818. /* readonly */
  31819. int width;
  31820. };
  31821. class TileMapObject2D
  31822. {
  31823. public:
  31824. TileMapObject2D();
  31825. // Methods:
  31826. uint GetNumPoints() const;
  31827. TileMapObjectType2D GetObjectType() const;
  31828. bool GetTileFlipX() const;
  31829. bool GetTileFlipY() const;
  31830. uint GetTileGid() const;
  31831. Sprite2D GetTileSprite() const;
  31832. bool GetTileSwapXY() const;
  31833. bool HasProperty(const String&) const;
  31834. operator RefCounted() const;
  31835. int Refs() const;
  31836. const String& GetName() const;
  31837. const String& GetProperty(const String&) const;
  31838. const String& GetType() const;
  31839. const Vector2& GetPoint(uint) const;
  31840. const Vector2& GetPosition() const;
  31841. const Vector2& GetSize() const;
  31842. int WeakRefs() const;
  31843. operator const RefCounted() const;
  31844. // Properties:
  31845. /* readonly */
  31846. String name;
  31847. /* readonly */
  31848. uint numPoints;
  31849. /* readonly */
  31850. TileMapObjectType2D objectType;
  31851. /* readonly */
  31852. Vector2 position;
  31853. /* readonly */
  31854. int refs;
  31855. /* readonly */
  31856. Vector2 size;
  31857. /* readonly */
  31858. bool tileFlipX;
  31859. /* readonly */
  31860. bool tileFlipY;
  31861. /* readonly */
  31862. uint tileGid;
  31863. /* readonly */
  31864. Sprite2D tileSprite;
  31865. /* readonly */
  31866. bool tileSwapXY;
  31867. /* readonly */
  31868. String type;
  31869. /* readonly */
  31870. int weakRefs;
  31871. };
  31872. class Time
  31873. {
  31874. public:
  31875. Time();
  31876. // Methods:
  31877. void BeginFrame(float);
  31878. void EndFrame();
  31879. bool GetBlockEvents() const;
  31880. float GetElapsedTime();
  31881. VariantMap& GetEventDataMap() const;
  31882. Object GetEventSender() const;
  31883. int GetFrameNumber() const;
  31884. float GetFramesPerSecond() const;
  31885. Object GetSubsystem(StringHash) const;
  31886. float GetTimeStep() const;
  31887. uint GetTimerPeriod() const;
  31888. StringHash GetType() const;
  31889. bool HasEventHandlers() const;
  31890. bool HasSubscribedToEvent(Object, StringHash) const;
  31891. bool HasSubscribedToEvent(StringHash) const;
  31892. bool IsInstanceOf(StringHash) const;
  31893. operator Object() const;
  31894. void OnEvent(Object, StringHash, VariantMap&);
  31895. operator RefCounted() const;
  31896. int Refs() const;
  31897. void SendEvent(StringHash);
  31898. void SendEvent(StringHash, VariantMap&);
  31899. void SetBlockEvents(bool);
  31900. void SetGlobalVar(StringHash, const Variant&);
  31901. void SetTimerPeriod(uint);
  31902. const String& GetCategory() const;
  31903. const String& GetTypeName() const;
  31904. void UnsubscribeFromAllEvents();
  31905. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  31906. void UnsubscribeFromEvent(Object, StringHash);
  31907. void UnsubscribeFromEvent(StringHash);
  31908. void UnsubscribeFromEvents(Object);
  31909. const Variant& GetGlobalVar(StringHash) const;
  31910. const VariantMap& GetGlobalVars() const;
  31911. int WeakRefs() const;
  31912. operator const Object() const;
  31913. operator const RefCounted() const;
  31914. // Properties:
  31915. /* readonly */
  31916. String category;
  31917. /* readonly */
  31918. float elapsedTime;
  31919. /* readonly */
  31920. int frameNumber;
  31921. /* readonly */
  31922. float framesPerSecond;
  31923. Array<Variant> globalVar;
  31924. /* readonly */
  31925. VariantMap globalVars;
  31926. /* readonly */
  31927. int refs;
  31928. /* readonly */
  31929. uint systemTime;
  31930. /* readonly */
  31931. uint timeSinceEpoch;
  31932. /* readonly */
  31933. String timeStamp;
  31934. /* readonly */
  31935. float timeStep;
  31936. /* readonly */
  31937. StringHash type;
  31938. /* readonly */
  31939. String typeName;
  31940. /* readonly */
  31941. int weakRefs;
  31942. };
  31943. class Timer
  31944. {
  31945. public:
  31946. Timer();
  31947. // Methods:
  31948. Timer& operator=(const Timer&);
  31949. uint GetMSec(bool);
  31950. void Reset();
  31951. };
  31952. class TmxFile2D
  31953. {
  31954. public:
  31955. TmxFile2D();
  31956. // Methods:
  31957. void AddLayer(uint, TmxLayer2D);
  31958. bool BeginLoad(Deserializer&);
  31959. bool EndLoad();
  31960. AsyncLoadState GetAsyncLoadState() const;
  31961. bool GetBlockEvents() const;
  31962. VariantMap& GetEventDataMap() const;
  31963. Object GetEventSender() const;
  31964. TmxLayer2D GetLayer(uint) const;
  31965. uint GetMemoryUse() const;
  31966. StringHash GetNameHash() const;
  31967. uint GetNumLayers() const;
  31968. float GetSpriteTextureEdgeOffset() const;
  31969. Object GetSubsystem(StringHash) const;
  31970. Array<TileMapObject2D> GetTileCollisionShapes(uint) const;
  31971. PropertySet2D GetTilePropertySet(uint) const;
  31972. Sprite2D GetTileSprite(uint) const;
  31973. StringHash GetType() const;
  31974. uint GetUseTimer();
  31975. bool HasEventHandlers() const;
  31976. bool HasSubscribedToEvent(Object, StringHash) const;
  31977. bool HasSubscribedToEvent(StringHash) const;
  31978. bool IsInstanceOf(StringHash) const;
  31979. bool Load(Deserializer&);
  31980. bool Load(File);
  31981. bool Load(VectorBuffer&);
  31982. bool Load(const String&);
  31983. bool LoadFile(const String&);
  31984. operator Object() const;
  31985. void OnEvent(Object, StringHash, VariantMap&);
  31986. operator RefCounted() const;
  31987. int Refs() const;
  31988. void ResetUseTimer();
  31989. operator Resource() const;
  31990. bool Save(File) const;
  31991. bool Save(Serializer&) const;
  31992. bool Save(VectorBuffer&) const;
  31993. bool Save(const String&) const;
  31994. bool SaveFile(const String&) const;
  31995. void SendEvent(StringHash);
  31996. void SendEvent(StringHash, VariantMap&);
  31997. void SetAsyncLoadState(AsyncLoadState);
  31998. void SetBlockEvents(bool);
  31999. void SetGlobalVar(StringHash, const Variant&);
  32000. bool SetInfo(Orientation2D, int, int, float, float);
  32001. void SetMemoryUse(uint);
  32002. void SetName(const String&);
  32003. void SetSpriteTextureEdgeOffset(float);
  32004. const String& GetCategory() const;
  32005. const String& GetName() const;
  32006. const String& GetTypeName() const;
  32007. const TileMapInfo2D& GetInfo() const;
  32008. void UnsubscribeFromAllEvents();
  32009. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32010. void UnsubscribeFromEvent(Object, StringHash);
  32011. void UnsubscribeFromEvent(StringHash);
  32012. void UnsubscribeFromEvents(Object);
  32013. const Variant& GetGlobalVar(StringHash) const;
  32014. const VariantMap& GetGlobalVars() const;
  32015. int WeakRefs() const;
  32016. operator const Object() const;
  32017. operator const RefCounted() const;
  32018. operator const Resource() const;
  32019. // Properties:
  32020. /* readonly */
  32021. String category;
  32022. float edgeOffset;
  32023. Array<Variant> globalVar;
  32024. /* readonly */
  32025. VariantMap globalVars;
  32026. /* readonly */
  32027. uint memoryUse;
  32028. String name;
  32029. /* readonly */
  32030. int refs;
  32031. /* readonly */
  32032. StringHash type;
  32033. /* readonly */
  32034. String typeName;
  32035. /* readonly */
  32036. uint useTimer;
  32037. /* readonly */
  32038. int weakRefs;
  32039. };
  32040. class TmxImageLayer2D
  32041. {
  32042. public:
  32043. TmxImageLayer2D(TmxFile2D&);
  32044. // Methods:
  32045. int GetHeight() const;
  32046. Sprite2D GetSprite() const;
  32047. TmxFile2D GetTmxFile() const;
  32048. TileMapLayerType2D GetType() const;
  32049. int GetWidth() const;
  32050. bool HasProperty(const String&) const;
  32051. bool IsVisible() const;
  32052. bool Load(const XMLElement&, const TileMapInfo2D&);
  32053. operator RefCounted() const;
  32054. int Refs() const;
  32055. const String& GetName() const;
  32056. const String& GetProperty(const String&) const;
  32057. const String& GetSource() const;
  32058. operator TmxLayer2D() const;
  32059. const Vector2& GetPosition() const;
  32060. int WeakRefs() const;
  32061. operator const RefCounted() const;
  32062. operator const TmxLayer2D() const;
  32063. // Properties:
  32064. /* readonly */
  32065. int refs;
  32066. /* readonly */
  32067. int weakRefs;
  32068. };
  32069. class TmxLayer2D
  32070. {
  32071. public:
  32072. TmxLayer2D(TmxFile2D&, TileMapLayerType2D);
  32073. // Methods:
  32074. int GetHeight() const;
  32075. TmxFile2D GetTmxFile() const;
  32076. TileMapLayerType2D GetType() const;
  32077. int GetWidth() const;
  32078. bool HasProperty(const String&) const;
  32079. bool IsVisible() const;
  32080. operator RefCounted() const;
  32081. int Refs() const;
  32082. const String& GetName() const;
  32083. const String& GetProperty(const String&) const;
  32084. operator TmxImageLayer2D() const;
  32085. operator TmxObjectGroup2D() const;
  32086. operator TmxTileLayer2D() const;
  32087. int WeakRefs() const;
  32088. operator const RefCounted() const;
  32089. operator const TmxImageLayer2D() const;
  32090. operator const TmxObjectGroup2D() const;
  32091. operator const TmxTileLayer2D() const;
  32092. // Properties:
  32093. /* readonly */
  32094. int refs;
  32095. /* readonly */
  32096. int weakRefs;
  32097. };
  32098. class TmxObjectGroup2D
  32099. {
  32100. public:
  32101. TmxObjectGroup2D(TmxFile2D&);
  32102. // Methods:
  32103. int GetHeight() const;
  32104. uint GetNumObjects() const;
  32105. TileMapObject2D GetObject(uint) 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. operator TmxLayer2D() const;
  32117. int WeakRefs() const;
  32118. operator const RefCounted() const;
  32119. operator const TmxLayer2D() const;
  32120. // Properties:
  32121. /* readonly */
  32122. int refs;
  32123. /* readonly */
  32124. int weakRefs;
  32125. };
  32126. class TmxTileLayer2D
  32127. {
  32128. public:
  32129. TmxTileLayer2D(TmxFile2D&);
  32130. // Methods:
  32131. int GetHeight() const;
  32132. Tile2D GetTile(int, int) const;
  32133. TmxFile2D GetTmxFile() const;
  32134. TileMapLayerType2D GetType() const;
  32135. int GetWidth() const;
  32136. bool HasProperty(const String&) const;
  32137. bool IsVisible() const;
  32138. bool Load(const XMLElement&, const TileMapInfo2D&);
  32139. operator RefCounted() const;
  32140. int Refs() const;
  32141. const String& GetName() const;
  32142. const String& GetProperty(const String&) const;
  32143. operator TmxLayer2D() const;
  32144. int WeakRefs() const;
  32145. operator const RefCounted() const;
  32146. operator const TmxLayer2D() const;
  32147. // Properties:
  32148. /* readonly */
  32149. int refs;
  32150. /* readonly */
  32151. int weakRefs;
  32152. };
  32153. class ToolTip
  32154. {
  32155. public:
  32156. ToolTip();
  32157. // Methods:
  32158. void AddAltTarget(UIElement);
  32159. void AddChild(UIElement);
  32160. void AddTag(const String&);
  32161. void AddTags(Array<String>);
  32162. void AddTags(const String&, int8 = ';');
  32163. void AdjustScissor(IntRect&);
  32164. void AllocateNetworkState();
  32165. operator Animatable() const;
  32166. void ApplyAttributes();
  32167. void BringToFront();
  32168. const Color& GetColor(Corner) const;
  32169. const Color& GetColorAttr() const;
  32170. const Color& GetDerivedColor() const;
  32171. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  32172. void DisableLayoutUpdate();
  32173. IntVector2 ElementToScreen(const IntVector2&);
  32174. void EnableLayoutUpdate();
  32175. bool FilterAttributes(XMLElement&) const;
  32176. int FindChild(UIElement) const;
  32177. bool GetAnimationEnabled() const;
  32178. Variant GetAttribute(const String&) const;
  32179. Variant GetAttribute(uint) const;
  32180. ValueAnimation GetAttributeAnimation(const String&) const;
  32181. float GetAttributeAnimationSpeed(const String&) const;
  32182. float GetAttributeAnimationTime(const String&) const;
  32183. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  32184. Variant GetAttributeDefault(const String&) const;
  32185. Variant GetAttributeDefault(uint) const;
  32186. bool GetBlockEvents() const;
  32187. bool GetBringToBack() const;
  32188. bool GetBringToFront() const;
  32189. UIElement GetChild(const String&, bool = false) const;
  32190. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  32191. UIElement GetChild(int) const;
  32192. Array<UIElement> GetChildren() const;
  32193. Array<UIElement> GetChildren(bool) const;
  32194. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  32195. bool GetClipChildren() const;
  32196. IntRect GetCombinedScreenRect();
  32197. XMLFile GetDefaultStyle(bool = true) const;
  32198. float GetDelay() const;
  32199. float GetDerivedOpacity() const;
  32200. uint GetDragButtonCombo() const;
  32201. int GetDragButtonCount() const;
  32202. uint GetDragDropMode() const;
  32203. IntVector2 GetEffectiveMinSize() const;
  32204. UIElement GetElementEventSender() const;
  32205. bool GetEnableAnchor() const;
  32206. VariantMap& GetEventDataMap() const;
  32207. Object GetEventSender() const;
  32208. FocusMode GetFocusMode() const;
  32209. int GetHeight() const;
  32210. HorizontalAlignment GetHorizontalAlignment() const;
  32211. int GetIndent() const;
  32212. int GetIndentSpacing() const;
  32213. int GetIndentWidth() const;
  32214. bool GetInterceptNetworkUpdate(const String&) const;
  32215. int GetLayoutElementMaxSize() const;
  32216. LayoutMode GetLayoutMode() const;
  32217. int GetLayoutSpacing() const;
  32218. int GetMaxHeight() const;
  32219. int GetMaxWidth() const;
  32220. int GetMinHeight() const;
  32221. int GetMinWidth() const;
  32222. uint GetNumAttributes() const;
  32223. int GetNumChildren(bool = false) const;
  32224. uint GetNumNetworkAttributes() const;
  32225. ObjectAnimation GetObjectAnimation() const;
  32226. ResourceRef GetObjectAnimationAttr() const;
  32227. float GetOpacity() const;
  32228. UIElement GetParent() const;
  32229. int GetPriority() const;
  32230. UIElement GetRoot() const;
  32231. bool GetSortChildren() const;
  32232. Object GetSubsystem(StringHash) const;
  32233. Array<String> GetTags() const;
  32234. TraversalMode GetTraversalMode() const;
  32235. StringHash GetType() const;
  32236. bool GetUseDerivedOpacity() const;
  32237. VerticalAlignment GetVerticalAlignment() const;
  32238. int GetWidth() const;
  32239. bool HasColorGradient() const;
  32240. bool HasEventHandlers() const;
  32241. bool HasFocus() const;
  32242. bool HasSubscribedToEvent(Object, StringHash) const;
  32243. bool HasSubscribedToEvent(StringHash) const;
  32244. bool HasTag(const String&) const;
  32245. void InsertChild(int, UIElement);
  32246. const IntRect& GetClipBorder() const;
  32247. const IntRect& GetLayoutBorder() const;
  32248. const IntVector2& GetChildOffset() const;
  32249. const IntVector2& GetMaxOffset() const;
  32250. const IntVector2& GetMaxSize() const;
  32251. const IntVector2& GetMinOffset() const;
  32252. const IntVector2& GetMinSize() const;
  32253. const IntVector2& GetPosition() const;
  32254. const IntVector2& GetScreenPosition() const;
  32255. const IntVector2& GetSize() const;
  32256. bool IsChildOf(UIElement) const;
  32257. bool IsEditable() const;
  32258. bool IsElementEventSender() const;
  32259. bool IsEnabled() const;
  32260. bool IsEnabledSelf() const;
  32261. bool IsFixedHeight() const;
  32262. bool IsFixedSize() const;
  32263. bool IsFixedWidth() const;
  32264. bool IsHovering() const;
  32265. bool IsInside(IntVector2, bool);
  32266. bool IsInsideCombined(IntVector2, bool);
  32267. bool IsInstanceOf(StringHash) const;
  32268. bool IsInternal() const;
  32269. bool IsSelected() const;
  32270. bool IsTemporary() const;
  32271. bool IsVisible() const;
  32272. bool IsVisibleEffective() const;
  32273. bool IsWheelHandler() const;
  32274. bool IsWithinScissor(const IntRect&);
  32275. bool Load(Deserializer&);
  32276. UIElement LoadChildXML(XMLFile, XMLFile);
  32277. UIElement LoadChildXML(const XMLElement&, XMLFile);
  32278. bool LoadJSON(const JSONValue&);
  32279. bool LoadXML(Deserializer&);
  32280. bool LoadXML(File);
  32281. bool LoadXML(VectorBuffer&);
  32282. bool LoadXML(XMLFile, XMLFile);
  32283. bool LoadXML(const XMLElement&);
  32284. bool LoadXML(const XMLElement&, XMLFile);
  32285. void MarkNetworkUpdate();
  32286. operator Object() const;
  32287. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  32288. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  32289. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  32290. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32291. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32292. bool OnDragDropFinish(UIElement);
  32293. bool OnDragDropTest(UIElement);
  32294. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32295. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32296. void OnEvent(Object, StringHash, VariantMap&);
  32297. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  32298. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  32299. void OnIndentSet();
  32300. void OnKey(uint, uint, uint);
  32301. void OnPositionSet(const IntVector2&);
  32302. void OnResize(const IntVector2&, const IntVector2&);
  32303. void OnSetAttribute(const AttributeInfo&, const Variant&);
  32304. void OnSetEditable();
  32305. void OnTextInput(const String&);
  32306. void OnWheel(int, uint, uint);
  32307. bool ReadDeltaUpdate(Deserializer&);
  32308. bool ReadLatestDataUpdate(Deserializer&);
  32309. operator RefCounted() const;
  32310. int Refs() const;
  32311. void Remove();
  32312. void RemoveAllChildren();
  32313. void RemoveAllTags();
  32314. void RemoveAttributeAnimation(const String&);
  32315. void RemoveChild(UIElement, int = 0);
  32316. void RemoveChild(uint);
  32317. void RemoveChildAtIndex(int);
  32318. void RemoveInstanceDefault();
  32319. void RemoveObjectAnimation();
  32320. bool RemoveTag(const String&);
  32321. void Reset();
  32322. void ResetDeepEnabled();
  32323. void ResetToDefault();
  32324. bool Save(Serializer&) const;
  32325. bool SaveDefaultAttributes() const;
  32326. bool SaveJSON(JSONValue&) const;
  32327. bool SaveXML(File, const String& indentation = "\t");
  32328. bool SaveXML(Serializer&, const String& = "\t") const;
  32329. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  32330. bool SaveXML(XMLElement&) const;
  32331. IntVector2 ScreenToElement(const IntVector2&);
  32332. void SendEvent(StringHash);
  32333. void SendEvent(StringHash, VariantMap&);
  32334. operator Serializable() const;
  32335. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  32336. void SetAnimationEnabled(bool);
  32337. void SetAnimationTime(float);
  32338. bool SetAttribute(const String&, const Variant&);
  32339. bool SetAttribute(uint, const Variant&);
  32340. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  32341. void SetAttributeAnimationSpeed(const String&, float);
  32342. void SetAttributeAnimationTime(const String&, float);
  32343. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  32344. void SetBlockEvents(bool);
  32345. void SetBringToBack(bool);
  32346. void SetBringToFront(bool);
  32347. void SetChildOffset(const IntVector2&);
  32348. void SetClipBorder(const IntRect&);
  32349. void SetClipChildren(bool);
  32350. void SetColor(Corner, const Color&);
  32351. void SetColor(const Color&);
  32352. void SetDeepEnabled(bool);
  32353. void SetDefaultStyle(XMLFile);
  32354. void SetDelay(float);
  32355. void SetDragDropMode(uint);
  32356. void SetEditable(bool);
  32357. void SetElementEventSender(bool);
  32358. void SetEnableAnchor(bool);
  32359. void SetEnabled(bool);
  32360. void SetEnabledRecursive(bool);
  32361. void SetFixedHeight(int);
  32362. void SetFixedSize(const IntVector2&);
  32363. void SetFixedSize(int, int);
  32364. void SetFixedWidth(int);
  32365. void SetFocus(bool);
  32366. void SetFocusMode(FocusMode);
  32367. void SetGlobalVar(StringHash, const Variant&);
  32368. void SetHeight(int);
  32369. void SetHorizontalAlignment(HorizontalAlignment);
  32370. void SetHovering(bool);
  32371. void SetIndent(int);
  32372. void SetIndentSpacing(int);
  32373. void SetInstanceDefault(bool);
  32374. void SetInterceptNetworkUpdate(const String&, bool);
  32375. void SetInternal(bool);
  32376. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  32377. void SetLayoutBorder(const IntRect&);
  32378. void SetLayoutFlexScale(const Vector2&);
  32379. void SetLayoutMode(LayoutMode);
  32380. void SetLayoutSpacing(int);
  32381. void SetMaxAnchor(const Vector2&);
  32382. void SetMaxAnchor(float, float);
  32383. void SetMaxHeight(int);
  32384. void SetMaxOffset(const IntVector2&);
  32385. void SetMaxSize(const IntVector2&);
  32386. void SetMaxSize(int, int);
  32387. void SetMaxWidth(int);
  32388. void SetMinAnchor(const Vector2&);
  32389. void SetMinAnchor(float, float);
  32390. void SetMinHeight(int);
  32391. void SetMinOffset(const IntVector2&);
  32392. void SetMinSize(const IntVector2&);
  32393. void SetMinSize(int, int);
  32394. void SetMinWidth(int);
  32395. void SetName(const String&);
  32396. void SetObjectAnimation(ObjectAnimation);
  32397. void SetObjectAnimationAttr(const ResourceRef&);
  32398. void SetOpacity(float);
  32399. void SetParent(UIElement, int = ENDPOS);
  32400. void SetPivot(const Vector2&);
  32401. void SetPivot(float, float);
  32402. void SetPosition(const IntVector2&);
  32403. void SetPosition(int, int);
  32404. void SetPriority(int);
  32405. void SetRenderTexture(Texture2D);
  32406. void SetSelected(bool);
  32407. void SetSize(const IntVector2&);
  32408. void SetSize(int, int);
  32409. void SetSortChildren(bool);
  32410. bool SetStyle(const String&, XMLFile = null);
  32411. bool SetStyle(const XMLElement&);
  32412. bool SetStyleAuto(XMLFile = null);
  32413. void SetTags(Array<String>);
  32414. void SetTemporary(bool);
  32415. void SetTraversalMode(TraversalMode);
  32416. void SetUseDerivedOpacity(bool);
  32417. void SetVar(StringHash, const Variant&);
  32418. void SetVerticalAlignment(VerticalAlignment);
  32419. void SetVisible(bool);
  32420. void SetWidth(int);
  32421. void SortChildren();
  32422. const String& GetAppliedStyle() const;
  32423. const String& GetCategory() const;
  32424. const String& GetName() const;
  32425. const String& GetTypeName() const;
  32426. operator UIElement() const;
  32427. void UnsubscribeFromAllEvents();
  32428. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32429. void UnsubscribeFromEvent(Object, StringHash);
  32430. void UnsubscribeFromEvent(StringHash);
  32431. void UnsubscribeFromEvents(Object);
  32432. void Update(float);
  32433. void UpdateLayout();
  32434. const Variant& GetGlobalVar(StringHash) const;
  32435. const Variant& GetVar(const StringHash&) const;
  32436. const VariantMap& GetGlobalVars() const;
  32437. const VariantMap& GetVars() const;
  32438. const Vector2& GetLayoutFlexScale() const;
  32439. const Vector2& GetMaxAnchor() const;
  32440. const Vector2& GetMinAnchor() const;
  32441. const Vector2& GetPivot() const;
  32442. int WeakRefs() const;
  32443. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  32444. void WriteInitialDeltaUpdate(Serializer&, uint8);
  32445. void WriteLatestDataUpdate(Serializer&, uint8);
  32446. operator const Animatable() const;
  32447. operator const Object() const;
  32448. operator const RefCounted() const;
  32449. operator const Serializable() const;
  32450. operator const UIElement() const;
  32451. // Properties:
  32452. bool animationEnabled;
  32453. /* readonly */
  32454. Array<Variant> attributeDefaults;
  32455. /* readonly */
  32456. Array<AttributeInfo> attributeInfos;
  32457. Array<Variant> attributes;
  32458. bool bringToBack;
  32459. bool bringToFront;
  32460. /* readonly */
  32461. String category;
  32462. /* readonly */
  32463. IntVector2 childOffset;
  32464. /* readonly */
  32465. Array<UIElement> children;
  32466. IntRect clipBorder;
  32467. bool clipChildren;
  32468. /* writeonly */
  32469. Color color;
  32470. /* readonly */
  32471. bool colorGradient;
  32472. Array<Color> colors;
  32473. /* readonly */
  32474. IntRect combinedScreenRect;
  32475. XMLFile defaultStyle;
  32476. float delay;
  32477. /* readonly */
  32478. float derivedOpacity;
  32479. /* readonly */
  32480. uint dragButtonCombo;
  32481. /* readonly */
  32482. int dragButtonCount;
  32483. uint dragDropMode;
  32484. bool editable;
  32485. bool elementEventSender;
  32486. bool enableAnchor;
  32487. bool enabled;
  32488. /* readonly */
  32489. bool enabledSelf;
  32490. /* readonly */
  32491. bool fixedHeight;
  32492. /* readonly */
  32493. bool fixedSize;
  32494. /* readonly */
  32495. bool fixedWidth;
  32496. bool focus;
  32497. FocusMode focusMode;
  32498. Array<Variant> globalVar;
  32499. /* readonly */
  32500. VariantMap globalVars;
  32501. int height;
  32502. HorizontalAlignment horizontalAlignment;
  32503. /* readonly */
  32504. bool hovering;
  32505. int indent;
  32506. int indentSpacing;
  32507. /* readonly */
  32508. int indentWidth;
  32509. bool internal;
  32510. IntRect layoutBorder;
  32511. Vector2 layoutFlexScale;
  32512. LayoutMode layoutMode;
  32513. int layoutSpacing;
  32514. Vector2 maxAnchor;
  32515. int maxHeight;
  32516. IntVector2 maxOffset;
  32517. IntVector2 maxSize;
  32518. int maxWidth;
  32519. Vector2 minAnchor;
  32520. int minHeight;
  32521. IntVector2 minOffset;
  32522. IntVector2 minSize;
  32523. int minWidth;
  32524. String name;
  32525. /* readonly */
  32526. uint numAllChildren;
  32527. /* readonly */
  32528. uint numAttributes;
  32529. /* readonly */
  32530. uint numChildren;
  32531. ObjectAnimation objectAnimation;
  32532. float opacity;
  32533. UIElement parent;
  32534. Vector2 pivot;
  32535. IntVector2 position;
  32536. int priority;
  32537. /* readonly */
  32538. int refs;
  32539. /* readonly */
  32540. UIElement root;
  32541. /* readonly */
  32542. IntVector2 screenPosition;
  32543. bool selected;
  32544. IntVector2 size;
  32545. bool sortChildren;
  32546. String style;
  32547. /* readonly */
  32548. Array<String> tags;
  32549. bool temporary;
  32550. TraversalMode traversalMode;
  32551. /* readonly */
  32552. StringHash type;
  32553. /* readonly */
  32554. String typeName;
  32555. bool useDerivedOpacity;
  32556. /* readonly */
  32557. VariantMap vars;
  32558. VerticalAlignment verticalAlignment;
  32559. bool visible;
  32560. /* readonly */
  32561. bool visibleEffective;
  32562. /* readonly */
  32563. int weakRefs;
  32564. int width;
  32565. };
  32566. class TouchState
  32567. {
  32568. public:
  32569. // Methods:
  32570. TouchState& operator=(const TouchState&);
  32571. UIElement GetTouchedElement();
  32572. // Properties:
  32573. IntVector2 delta;
  32574. IntVector2 lastPosition;
  32575. IntVector2 position;
  32576. float pressure;
  32577. int touchID;
  32578. /* readonly */
  32579. UIElement touchedElement;
  32580. };
  32581. class TrailPoint
  32582. {
  32583. public:
  32584. ~TrailPoint();
  32585. TrailPoint();
  32586. TrailPoint(const Vector3&in, const Vector3&in);
  32587. // Methods:
  32588. TrailPoint& operator=(const TrailPoint&);
  32589. // Properties:
  32590. float elapsedLength;
  32591. Vector3 forward;
  32592. float lifetime;
  32593. Vector3 parentPos;
  32594. Vector3 position;
  32595. float sortDistance;
  32596. };
  32597. class TriangleMeshData
  32598. {
  32599. public:
  32600. TriangleMeshData(Model&, int);
  32601. TriangleMeshData(CustomGeometry&);
  32602. // Methods:
  32603. operator CollisionGeometryData() const;
  32604. operator RefCounted() const;
  32605. int Refs() const;
  32606. int WeakRefs() const;
  32607. operator const CollisionGeometryData() const;
  32608. operator const RefCounted() const;
  32609. // Properties:
  32610. /* readonly */
  32611. int refs;
  32612. /* readonly */
  32613. int weakRefs;
  32614. };
  32615. class UI
  32616. {
  32617. public:
  32618. UI();
  32619. // Methods:
  32620. void Clear();
  32621. IntVector2 ConvertSystemToUI(const IntVector2&) const;
  32622. IntVector2 ConvertUIToSystem(const IntVector2&) const;
  32623. void DebugDraw(UIElement);
  32624. bool GetBlockEvents() const;
  32625. Cursor GetCursor() const;
  32626. IntVector2 GetCursorPosition() const;
  32627. float GetDefaultToolTipDelay() const;
  32628. float GetDoubleClickInterval() const;
  32629. int GetDragBeginDistance() const;
  32630. float GetDragBeginInterval() const;
  32631. UIElement GetDragElement(uint);
  32632. UIElement GetElementAt(UIElement, const IntVector2&, bool = true);
  32633. UIElement GetElementAt(const IntVector2&, bool = true);
  32634. UIElement GetElementAt(int, int, bool = true);
  32635. VariantMap& GetEventDataMap() const;
  32636. Object GetEventSender() const;
  32637. UIElement GetFocusElement() const;
  32638. FontHintLevel GetFontHintLevel() const;
  32639. int GetFontOversampling() const;
  32640. float GetFontSubpixelThreshold() const;
  32641. bool GetForceAutoHint() const;
  32642. UIElement GetFrontElement() const;
  32643. float GetMaxDoubleClickDistance() const;
  32644. int GetMaxFontTextureSize() const;
  32645. uint GetNumDragElements() const;
  32646. UIElement GetRoot() const;
  32647. UIElement GetRootModalElement() const;
  32648. float GetScale() const;
  32649. Object GetSubsystem(StringHash) const;
  32650. StringHash GetType() const;
  32651. bool GetUseMutableGlyphs() const;
  32652. bool GetUseScreenKeyboard() const;
  32653. bool GetUseSystemClipboard() const;
  32654. bool HasEventHandlers() const;
  32655. bool HasModalElement() const;
  32656. bool HasSubscribedToEvent(Object, StringHash) const;
  32657. bool HasSubscribedToEvent(StringHash) const;
  32658. const IntVector2& GetCustomSize() const;
  32659. bool IsDragging() const;
  32660. bool IsInstanceOf(StringHash) const;
  32661. bool IsNonFocusedMouseWheel() const;
  32662. UIElement LoadLayout(Deserializer&, XMLFile = null);
  32663. UIElement LoadLayout(File);
  32664. UIElement LoadLayout(File, XMLFile);
  32665. UIElement LoadLayout(VectorBuffer&);
  32666. UIElement LoadLayout(VectorBuffer&, XMLFile);
  32667. UIElement LoadLayout(XMLFile, XMLFile = null);
  32668. operator Object() const;
  32669. void OnEvent(Object, StringHash, VariantMap&);
  32670. operator RefCounted() const;
  32671. int Refs() const;
  32672. void Render(bool = false);
  32673. void RenderUpdate();
  32674. bool SaveLayout(File, UIElement);
  32675. bool SaveLayout(Serializer&, UIElement);
  32676. bool SaveLayout(VectorBuffer&, UIElement);
  32677. void SendEvent(StringHash);
  32678. void SendEvent(StringHash, VariantMap&);
  32679. void SetBlockEvents(bool);
  32680. void SetClipboardText(const String&);
  32681. void SetCursor(Cursor);
  32682. void SetCustomSize(const IntVector2&);
  32683. void SetCustomSize(int, int);
  32684. void SetDefaultToolTipDelay(float);
  32685. void SetDoubleClickInterval(float);
  32686. void SetDragBeginDistance(int);
  32687. void SetDragBeginInterval(float);
  32688. void SetElementRenderTexture(UIElement, Texture2D);
  32689. void SetFocusElement(UIElement, bool = false);
  32690. void SetFontHintLevel(FontHintLevel);
  32691. void SetFontOversampling(int);
  32692. void SetFontSubpixelThreshold(float);
  32693. void SetForceAutoHint(bool);
  32694. void SetGlobalVar(StringHash, const Variant&);
  32695. void SetHeight(float);
  32696. void SetMaxDoubleClickDistance(float);
  32697. void SetMaxFontTextureSize(int);
  32698. bool SetModalElement(UIElement, bool);
  32699. void SetNonFocusedMouseWheel(bool);
  32700. void SetScale(float);
  32701. void SetUseMutableGlyphs(bool);
  32702. void SetUseScreenKeyboard(bool);
  32703. void SetUseSystemClipboard(bool);
  32704. void SetWidth(float);
  32705. const String& GetCategory() const;
  32706. const String& GetClipboardText() const;
  32707. const String& GetTypeName() const;
  32708. const Array<UIElement> GetDragElements();
  32709. void UnsubscribeFromAllEvents();
  32710. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32711. void UnsubscribeFromEvent(Object, StringHash);
  32712. void UnsubscribeFromEvent(StringHash);
  32713. void UnsubscribeFromEvents(Object);
  32714. void Update(float);
  32715. const Variant& GetGlobalVar(StringHash) const;
  32716. const VariantMap& GetGlobalVars() const;
  32717. int WeakRefs() const;
  32718. operator const Object() const;
  32719. operator const RefCounted() const;
  32720. // Properties:
  32721. /* readonly */
  32722. String category;
  32723. String clipboardText;
  32724. Cursor cursor;
  32725. /* readonly */
  32726. IntVector2 cursorPosition;
  32727. IntVector2 customSize;
  32728. float defaultToolTipDelay;
  32729. float doubleClickInterval;
  32730. int dragBeginDistance;
  32731. float dragBeginInterval;
  32732. UIElement focusElement;
  32733. FontHintLevel fontHintLevel;
  32734. int fontOversampling;
  32735. float fontSubpixelThreshold;
  32736. bool forceAutoHint;
  32737. /* readonly */
  32738. UIElement frontElement;
  32739. Array<Variant> globalVar;
  32740. /* readonly */
  32741. VariantMap globalVars;
  32742. float maxDoubleClickDistance;
  32743. int maxFontTextureSize;
  32744. /* readonly */
  32745. UIElement modalRoot;
  32746. bool nonFocusedMouseWheel;
  32747. /* readonly */
  32748. int refs;
  32749. /* readonly */
  32750. UIElement root;
  32751. float scale;
  32752. /* readonly */
  32753. StringHash type;
  32754. /* readonly */
  32755. String typeName;
  32756. bool useMutableGlyphs;
  32757. bool useScreenKeyboard;
  32758. bool useSystemClipboard;
  32759. /* readonly */
  32760. int weakRefs;
  32761. };
  32762. class UIBatch
  32763. {
  32764. public:
  32765. ~UIBatch();
  32766. UIBatch();
  32767. // Methods:
  32768. UIBatch& operator=(const UIBatch&);
  32769. void AddQuad(const Matrix3x4&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&, const IntVector2&);
  32770. 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&);
  32771. void AddQuad(const Matrix3x4&, int, int, int, int, int, int, int = 0, int = 0);
  32772. void AddQuad(float, float, float, float, int, int, int = 0, int = 0);
  32773. void AddQuad(int, int, int, int, int, int, int = 0, int = 0);
  32774. void AddQuad(int, int, int, int, int, int, int, int, bool);
  32775. uint GetInterpolatedColor(float, float);
  32776. uint GetInterpolatedColor(int, int);
  32777. bool Merge(const UIBatch&);
  32778. void SetColor(const Color&, bool = false);
  32779. void SetDefaultColor();
  32780. // Properties:
  32781. BlendMode blendMode;
  32782. uint color;
  32783. Vector2 invTextureSize;
  32784. IntRect scissor;
  32785. bool useGradient;
  32786. uint vertexEnd;
  32787. uint vertexStart;
  32788. };
  32789. class UIComponent
  32790. {
  32791. public:
  32792. UIComponent();
  32793. // Methods:
  32794. void AllocateNetworkState();
  32795. operator Animatable() const;
  32796. void ApplyAttributes();
  32797. void CleanupConnection(Connection);
  32798. operator Component() const;
  32799. void DrawDebugGeometry(DebugRenderer, bool);
  32800. bool GetAnimationEnabled() const;
  32801. Variant GetAttribute(const String&) const;
  32802. Variant GetAttribute(uint) const;
  32803. ValueAnimation GetAttributeAnimation(const String&) const;
  32804. float GetAttributeAnimationSpeed(const String&) const;
  32805. float GetAttributeAnimationTime(const String&) const;
  32806. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  32807. Variant GetAttributeDefault(const String&) const;
  32808. Variant GetAttributeDefault(uint) const;
  32809. bool GetBlockEvents() const;
  32810. Component GetComponent(StringHash) const;
  32811. VariantMap& GetEventDataMap() const;
  32812. Object GetEventSender() const;
  32813. uint GetID() const;
  32814. bool GetInterceptNetworkUpdate(const String&) const;
  32815. Material GetMaterial() const;
  32816. Node GetNode() const;
  32817. uint GetNumAttributes() const;
  32818. uint GetNumNetworkAttributes() const;
  32819. ObjectAnimation GetObjectAnimation() const;
  32820. ResourceRef GetObjectAnimationAttr() const;
  32821. UIElement GetRoot() const;
  32822. Scene GetScene() const;
  32823. Object GetSubsystem(StringHash) const;
  32824. Texture2D GetTexture() const;
  32825. StringHash GetType() const;
  32826. bool HasEventHandlers() const;
  32827. bool HasSubscribedToEvent(Object, StringHash) const;
  32828. bool HasSubscribedToEvent(StringHash) const;
  32829. bool IsEnabled() const;
  32830. bool IsEnabledEffective() const;
  32831. bool IsInstanceOf(StringHash) const;
  32832. bool IsReplicated() const;
  32833. bool IsTemporary() const;
  32834. bool Load(Deserializer&);
  32835. bool LoadJSON(const JSONValue&);
  32836. bool LoadXML(const XMLElement&);
  32837. void MarkNetworkUpdate();
  32838. operator Object() const;
  32839. void OnEvent(Object, StringHash, VariantMap&);
  32840. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  32841. void OnSetAttribute(const AttributeInfo&, const Variant&);
  32842. void OnSetEnabled();
  32843. void PrepareNetworkUpdate();
  32844. bool ReadDeltaUpdate(Deserializer&);
  32845. bool ReadLatestDataUpdate(Deserializer&);
  32846. operator RefCounted() const;
  32847. int Refs() const;
  32848. void Remove();
  32849. void RemoveAttributeAnimation(const String&);
  32850. void RemoveInstanceDefault();
  32851. void RemoveObjectAnimation();
  32852. void ResetToDefault();
  32853. bool Save(Serializer&) const;
  32854. bool SaveDefaultAttributes() const;
  32855. bool SaveJSON(JSONValue&) const;
  32856. bool SaveXML(XMLElement&) const;
  32857. void SendEvent(StringHash);
  32858. void SendEvent(StringHash, VariantMap&);
  32859. operator Serializable() const;
  32860. void SetAnimationEnabled(bool);
  32861. void SetAnimationTime(float);
  32862. bool SetAttribute(const String&, const Variant&);
  32863. bool SetAttribute(uint, const Variant&);
  32864. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  32865. void SetAttributeAnimationSpeed(const String&, float);
  32866. void SetAttributeAnimationTime(const String&, float);
  32867. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  32868. void SetBlockEvents(bool);
  32869. void SetEnabled(bool);
  32870. void SetGlobalVar(StringHash, const Variant&);
  32871. void SetInstanceDefault(bool);
  32872. void SetInterceptNetworkUpdate(const String&, bool);
  32873. void SetObjectAnimation(ObjectAnimation);
  32874. void SetObjectAnimationAttr(const ResourceRef&);
  32875. void SetTemporary(bool);
  32876. void SetViewportIndex(uint);
  32877. const String& GetCategory() const;
  32878. const String& GetTypeName() const;
  32879. void UnsubscribeFromAllEvents();
  32880. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  32881. void UnsubscribeFromEvent(Object, StringHash);
  32882. void UnsubscribeFromEvent(StringHash);
  32883. void UnsubscribeFromEvents(Object);
  32884. const Variant& GetGlobalVar(StringHash) const;
  32885. const VariantMap& GetGlobalVars() const;
  32886. int WeakRefs() const;
  32887. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  32888. void WriteInitialDeltaUpdate(Serializer&, uint8);
  32889. void WriteLatestDataUpdate(Serializer&, uint8);
  32890. operator const Animatable() const;
  32891. operator const Component() const;
  32892. operator const Object() const;
  32893. operator const RefCounted() const;
  32894. operator const Serializable() const;
  32895. // Properties:
  32896. bool animationEnabled;
  32897. /* readonly */
  32898. Array<Variant> attributeDefaults;
  32899. /* readonly */
  32900. Array<AttributeInfo> attributeInfos;
  32901. Array<Variant> attributes;
  32902. /* readonly */
  32903. String category;
  32904. bool enabled;
  32905. /* readonly */
  32906. bool enabledEffective;
  32907. Array<Variant> globalVar;
  32908. /* readonly */
  32909. VariantMap globalVars;
  32910. /* readonly */
  32911. uint id;
  32912. /* readonly */
  32913. Material material;
  32914. /* readonly */
  32915. Node node;
  32916. /* readonly */
  32917. uint numAttributes;
  32918. ObjectAnimation objectAnimation;
  32919. /* readonly */
  32920. int refs;
  32921. /* readonly */
  32922. bool replicated;
  32923. /* readonly */
  32924. UIElement root;
  32925. bool temporary;
  32926. /* readonly */
  32927. Texture2D texture;
  32928. /* readonly */
  32929. StringHash type;
  32930. /* readonly */
  32931. String typeName;
  32932. /* readonly */
  32933. int weakRefs;
  32934. };
  32935. class UIElement
  32936. {
  32937. public:
  32938. UIElement();
  32939. UIElement(const String&in);
  32940. // Methods:
  32941. void AddChild(UIElement);
  32942. void AddTag(const String&);
  32943. void AddTags(Array<String>);
  32944. void AddTags(const String&, int8 = ';');
  32945. void AdjustScissor(IntRect&);
  32946. void AllocateNetworkState();
  32947. operator Animatable() const;
  32948. void ApplyAttributes();
  32949. operator BorderImage() const;
  32950. void BringToFront();
  32951. operator Button() const;
  32952. operator CheckBox() const;
  32953. const Color& GetColor(Corner) const;
  32954. const Color& GetColorAttr() const;
  32955. const Color& GetDerivedColor() const;
  32956. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  32957. operator Cursor() const;
  32958. void DisableLayoutUpdate();
  32959. operator DropDownList() const;
  32960. IntVector2 ElementToScreen(const IntVector2&);
  32961. void EnableLayoutUpdate();
  32962. bool FilterAttributes(XMLElement&) const;
  32963. int FindChild(UIElement) const;
  32964. bool GetAnimationEnabled() const;
  32965. Variant GetAttribute(const String&) const;
  32966. Variant GetAttribute(uint) const;
  32967. ValueAnimation GetAttributeAnimation(const String&) const;
  32968. float GetAttributeAnimationSpeed(const String&) const;
  32969. float GetAttributeAnimationTime(const String&) const;
  32970. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  32971. Variant GetAttributeDefault(const String&) const;
  32972. Variant GetAttributeDefault(uint) const;
  32973. bool GetBlockEvents() const;
  32974. bool GetBringToBack() const;
  32975. bool GetBringToFront() const;
  32976. UIElement GetChild(const String&, bool = false) const;
  32977. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  32978. UIElement GetChild(int) const;
  32979. Array<UIElement> GetChildren() const;
  32980. Array<UIElement> GetChildren(bool) const;
  32981. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  32982. bool GetClipChildren() const;
  32983. IntRect GetCombinedScreenRect();
  32984. XMLFile GetDefaultStyle(bool = true) const;
  32985. float GetDerivedOpacity() const;
  32986. uint GetDragButtonCombo() const;
  32987. int GetDragButtonCount() const;
  32988. uint GetDragDropMode() const;
  32989. IntVector2 GetEffectiveMinSize() const;
  32990. UIElement GetElementEventSender() const;
  32991. bool GetEnableAnchor() const;
  32992. VariantMap& GetEventDataMap() const;
  32993. Object GetEventSender() const;
  32994. FocusMode GetFocusMode() const;
  32995. int GetHeight() const;
  32996. HorizontalAlignment GetHorizontalAlignment() const;
  32997. int GetIndent() const;
  32998. int GetIndentSpacing() const;
  32999. int GetIndentWidth() const;
  33000. bool GetInterceptNetworkUpdate(const String&) const;
  33001. int GetLayoutElementMaxSize() const;
  33002. LayoutMode GetLayoutMode() const;
  33003. int GetLayoutSpacing() const;
  33004. int GetMaxHeight() const;
  33005. int GetMaxWidth() const;
  33006. int GetMinHeight() const;
  33007. int GetMinWidth() const;
  33008. uint GetNumAttributes() const;
  33009. int GetNumChildren(bool = false) const;
  33010. uint GetNumNetworkAttributes() const;
  33011. ObjectAnimation GetObjectAnimation() const;
  33012. ResourceRef GetObjectAnimationAttr() const;
  33013. float GetOpacity() const;
  33014. UIElement GetParent() const;
  33015. int GetPriority() const;
  33016. UIElement GetRoot() const;
  33017. bool GetSortChildren() const;
  33018. Object GetSubsystem(StringHash) const;
  33019. Array<String> GetTags() const;
  33020. TraversalMode GetTraversalMode() const;
  33021. StringHash GetType() const;
  33022. bool GetUseDerivedOpacity() const;
  33023. VerticalAlignment GetVerticalAlignment() const;
  33024. int GetWidth() const;
  33025. bool HasColorGradient() const;
  33026. bool HasEventHandlers() const;
  33027. bool HasFocus() const;
  33028. bool HasSubscribedToEvent(Object, StringHash) const;
  33029. bool HasSubscribedToEvent(StringHash) const;
  33030. bool HasTag(const String&) const;
  33031. void InsertChild(int, UIElement);
  33032. const IntRect& GetClipBorder() const;
  33033. const IntRect& GetLayoutBorder() const;
  33034. const IntVector2& GetChildOffset() const;
  33035. const IntVector2& GetMaxOffset() const;
  33036. const IntVector2& GetMaxSize() const;
  33037. const IntVector2& GetMinOffset() const;
  33038. const IntVector2& GetMinSize() const;
  33039. const IntVector2& GetPosition() const;
  33040. const IntVector2& GetScreenPosition() const;
  33041. const IntVector2& GetSize() const;
  33042. bool IsChildOf(UIElement) const;
  33043. bool IsEditable() const;
  33044. bool IsElementEventSender() const;
  33045. bool IsEnabled() const;
  33046. bool IsEnabledSelf() const;
  33047. bool IsFixedHeight() const;
  33048. bool IsFixedSize() const;
  33049. bool IsFixedWidth() const;
  33050. bool IsHovering() const;
  33051. bool IsInside(IntVector2, bool);
  33052. bool IsInsideCombined(IntVector2, bool);
  33053. bool IsInstanceOf(StringHash) const;
  33054. bool IsInternal() const;
  33055. bool IsSelected() const;
  33056. bool IsTemporary() const;
  33057. bool IsVisible() const;
  33058. bool IsVisibleEffective() const;
  33059. bool IsWheelHandler() const;
  33060. bool IsWithinScissor(const IntRect&);
  33061. operator LineEdit() const;
  33062. operator ListView() const;
  33063. bool Load(Deserializer&);
  33064. UIElement LoadChildXML(XMLFile, XMLFile);
  33065. UIElement LoadChildXML(const XMLElement&, XMLFile);
  33066. bool LoadJSON(const JSONValue&);
  33067. bool LoadXML(Deserializer&);
  33068. bool LoadXML(File);
  33069. bool LoadXML(VectorBuffer&);
  33070. bool LoadXML(XMLFile, XMLFile);
  33071. bool LoadXML(const XMLElement&);
  33072. bool LoadXML(const XMLElement&, XMLFile);
  33073. void MarkNetworkUpdate();
  33074. operator Menu() const;
  33075. operator Object() const;
  33076. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33077. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  33078. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33079. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33080. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33081. bool OnDragDropFinish(UIElement);
  33082. bool OnDragDropTest(UIElement);
  33083. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33084. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33085. void OnEvent(Object, StringHash, VariantMap&);
  33086. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33087. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33088. void OnIndentSet();
  33089. void OnKey(uint, uint, uint);
  33090. void OnPositionSet(const IntVector2&);
  33091. void OnResize(const IntVector2&, const IntVector2&);
  33092. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33093. void OnSetEditable();
  33094. void OnTextInput(const String&);
  33095. void OnWheel(int, uint, uint);
  33096. operator ProgressBar() const;
  33097. bool ReadDeltaUpdate(Deserializer&);
  33098. bool ReadLatestDataUpdate(Deserializer&);
  33099. operator RefCounted() const;
  33100. int Refs() const;
  33101. void Remove();
  33102. void RemoveAllChildren();
  33103. void RemoveAllTags();
  33104. void RemoveAttributeAnimation(const String&);
  33105. void RemoveChild(UIElement, int = 0);
  33106. void RemoveChild(uint);
  33107. void RemoveChildAtIndex(int);
  33108. void RemoveInstanceDefault();
  33109. void RemoveObjectAnimation();
  33110. bool RemoveTag(const String&);
  33111. void ResetDeepEnabled();
  33112. void ResetToDefault();
  33113. bool Save(Serializer&) const;
  33114. bool SaveDefaultAttributes() const;
  33115. bool SaveJSON(JSONValue&) const;
  33116. bool SaveXML(File, const String& indentation = "\t");
  33117. bool SaveXML(Serializer&, const String& = "\t") const;
  33118. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  33119. bool SaveXML(XMLElement&) const;
  33120. IntVector2 ScreenToElement(const IntVector2&);
  33121. operator ScrollBar() const;
  33122. operator ScrollView() const;
  33123. void SendEvent(StringHash);
  33124. void SendEvent(StringHash, VariantMap&);
  33125. operator Serializable() const;
  33126. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  33127. void SetAnimationEnabled(bool);
  33128. void SetAnimationTime(float);
  33129. bool SetAttribute(const String&, const Variant&);
  33130. bool SetAttribute(uint, const Variant&);
  33131. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33132. void SetAttributeAnimationSpeed(const String&, float);
  33133. void SetAttributeAnimationTime(const String&, float);
  33134. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33135. void SetBlockEvents(bool);
  33136. void SetBringToBack(bool);
  33137. void SetBringToFront(bool);
  33138. void SetChildOffset(const IntVector2&);
  33139. void SetClipBorder(const IntRect&);
  33140. void SetClipChildren(bool);
  33141. void SetColor(Corner, const Color&);
  33142. void SetColor(const Color&);
  33143. void SetDeepEnabled(bool);
  33144. void SetDefaultStyle(XMLFile);
  33145. void SetDragDropMode(uint);
  33146. void SetEditable(bool);
  33147. void SetElementEventSender(bool);
  33148. void SetEnableAnchor(bool);
  33149. void SetEnabled(bool);
  33150. void SetEnabledRecursive(bool);
  33151. void SetFixedHeight(int);
  33152. void SetFixedSize(const IntVector2&);
  33153. void SetFixedSize(int, int);
  33154. void SetFixedWidth(int);
  33155. void SetFocus(bool);
  33156. void SetFocusMode(FocusMode);
  33157. void SetGlobalVar(StringHash, const Variant&);
  33158. void SetHeight(int);
  33159. void SetHorizontalAlignment(HorizontalAlignment);
  33160. void SetHovering(bool);
  33161. void SetIndent(int);
  33162. void SetIndentSpacing(int);
  33163. void SetInstanceDefault(bool);
  33164. void SetInterceptNetworkUpdate(const String&, bool);
  33165. void SetInternal(bool);
  33166. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  33167. void SetLayoutBorder(const IntRect&);
  33168. void SetLayoutFlexScale(const Vector2&);
  33169. void SetLayoutMode(LayoutMode);
  33170. void SetLayoutSpacing(int);
  33171. void SetMaxAnchor(const Vector2&);
  33172. void SetMaxAnchor(float, float);
  33173. void SetMaxHeight(int);
  33174. void SetMaxOffset(const IntVector2&);
  33175. void SetMaxSize(const IntVector2&);
  33176. void SetMaxSize(int, int);
  33177. void SetMaxWidth(int);
  33178. void SetMinAnchor(const Vector2&);
  33179. void SetMinAnchor(float, float);
  33180. void SetMinHeight(int);
  33181. void SetMinOffset(const IntVector2&);
  33182. void SetMinSize(const IntVector2&);
  33183. void SetMinSize(int, int);
  33184. void SetMinWidth(int);
  33185. void SetName(const String&);
  33186. void SetObjectAnimation(ObjectAnimation);
  33187. void SetObjectAnimationAttr(const ResourceRef&);
  33188. void SetOpacity(float);
  33189. void SetParent(UIElement, int = ENDPOS);
  33190. void SetPivot(const Vector2&);
  33191. void SetPivot(float, float);
  33192. void SetPosition(const IntVector2&);
  33193. void SetPosition(int, int);
  33194. void SetPriority(int);
  33195. void SetRenderTexture(Texture2D);
  33196. void SetSelected(bool);
  33197. void SetSize(const IntVector2&);
  33198. void SetSize(int, int);
  33199. void SetSortChildren(bool);
  33200. bool SetStyle(const String&, XMLFile = null);
  33201. bool SetStyle(const XMLElement&);
  33202. bool SetStyleAuto(XMLFile = null);
  33203. void SetTags(Array<String>);
  33204. void SetTemporary(bool);
  33205. void SetTraversalMode(TraversalMode);
  33206. void SetUseDerivedOpacity(bool);
  33207. void SetVar(StringHash, const Variant&);
  33208. void SetVerticalAlignment(VerticalAlignment);
  33209. void SetVisible(bool);
  33210. void SetWidth(int);
  33211. operator Slider() const;
  33212. void SortChildren();
  33213. operator Sprite() const;
  33214. const String& GetAppliedStyle() const;
  33215. const String& GetCategory() const;
  33216. const String& GetName() const;
  33217. const String& GetTypeName() const;
  33218. operator Text() const;
  33219. operator ToolTip() const;
  33220. operator UISelectable() const;
  33221. void UnsubscribeFromAllEvents();
  33222. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33223. void UnsubscribeFromEvent(Object, StringHash);
  33224. void UnsubscribeFromEvent(StringHash);
  33225. void UnsubscribeFromEvents(Object);
  33226. void Update(float);
  33227. void UpdateLayout();
  33228. const Variant& GetGlobalVar(StringHash) const;
  33229. const Variant& GetVar(const StringHash&) const;
  33230. const VariantMap& GetGlobalVars() const;
  33231. const VariantMap& GetVars() const;
  33232. const Vector2& GetLayoutFlexScale() const;
  33233. const Vector2& GetMaxAnchor() const;
  33234. const Vector2& GetMinAnchor() const;
  33235. const Vector2& GetPivot() const;
  33236. operator View3D() const;
  33237. int WeakRefs() const;
  33238. operator Window() const;
  33239. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33240. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33241. void WriteLatestDataUpdate(Serializer&, uint8);
  33242. operator const Animatable() const;
  33243. operator const BorderImage() const;
  33244. operator const Button() const;
  33245. operator const CheckBox() const;
  33246. operator const Cursor() const;
  33247. operator const DropDownList() const;
  33248. operator const LineEdit() const;
  33249. operator const ListView() const;
  33250. operator const Menu() const;
  33251. operator const Object() const;
  33252. operator const ProgressBar() const;
  33253. operator const RefCounted() const;
  33254. operator const ScrollBar() const;
  33255. operator const ScrollView() const;
  33256. operator const Serializable() const;
  33257. operator const Slider() const;
  33258. operator const Sprite() const;
  33259. operator const Text() const;
  33260. operator const ToolTip() const;
  33261. operator const UISelectable() const;
  33262. operator const View3D() const;
  33263. operator const Window() const;
  33264. // Properties:
  33265. bool animationEnabled;
  33266. /* readonly */
  33267. Array<Variant> attributeDefaults;
  33268. /* readonly */
  33269. Array<AttributeInfo> attributeInfos;
  33270. Array<Variant> attributes;
  33271. bool bringToBack;
  33272. bool bringToFront;
  33273. /* readonly */
  33274. String category;
  33275. /* readonly */
  33276. IntVector2 childOffset;
  33277. /* readonly */
  33278. Array<UIElement> children;
  33279. IntRect clipBorder;
  33280. bool clipChildren;
  33281. /* writeonly */
  33282. Color color;
  33283. /* readonly */
  33284. bool colorGradient;
  33285. Array<Color> colors;
  33286. /* readonly */
  33287. IntRect combinedScreenRect;
  33288. XMLFile defaultStyle;
  33289. /* readonly */
  33290. float derivedOpacity;
  33291. /* readonly */
  33292. uint dragButtonCombo;
  33293. /* readonly */
  33294. int dragButtonCount;
  33295. uint dragDropMode;
  33296. bool editable;
  33297. bool elementEventSender;
  33298. bool enableAnchor;
  33299. bool enabled;
  33300. /* readonly */
  33301. bool enabledSelf;
  33302. /* readonly */
  33303. bool fixedHeight;
  33304. /* readonly */
  33305. bool fixedSize;
  33306. /* readonly */
  33307. bool fixedWidth;
  33308. bool focus;
  33309. FocusMode focusMode;
  33310. Array<Variant> globalVar;
  33311. /* readonly */
  33312. VariantMap globalVars;
  33313. int height;
  33314. HorizontalAlignment horizontalAlignment;
  33315. /* readonly */
  33316. bool hovering;
  33317. int indent;
  33318. int indentSpacing;
  33319. /* readonly */
  33320. int indentWidth;
  33321. bool internal;
  33322. IntRect layoutBorder;
  33323. Vector2 layoutFlexScale;
  33324. LayoutMode layoutMode;
  33325. int layoutSpacing;
  33326. Vector2 maxAnchor;
  33327. int maxHeight;
  33328. IntVector2 maxOffset;
  33329. IntVector2 maxSize;
  33330. int maxWidth;
  33331. Vector2 minAnchor;
  33332. int minHeight;
  33333. IntVector2 minOffset;
  33334. IntVector2 minSize;
  33335. int minWidth;
  33336. String name;
  33337. /* readonly */
  33338. uint numAllChildren;
  33339. /* readonly */
  33340. uint numAttributes;
  33341. /* readonly */
  33342. uint numChildren;
  33343. ObjectAnimation objectAnimation;
  33344. float opacity;
  33345. UIElement parent;
  33346. Vector2 pivot;
  33347. IntVector2 position;
  33348. int priority;
  33349. /* readonly */
  33350. int refs;
  33351. /* readonly */
  33352. UIElement root;
  33353. /* readonly */
  33354. IntVector2 screenPosition;
  33355. bool selected;
  33356. IntVector2 size;
  33357. bool sortChildren;
  33358. String style;
  33359. /* readonly */
  33360. Array<String> tags;
  33361. bool temporary;
  33362. TraversalMode traversalMode;
  33363. /* readonly */
  33364. StringHash type;
  33365. /* readonly */
  33366. String typeName;
  33367. bool useDerivedOpacity;
  33368. /* readonly */
  33369. VariantMap vars;
  33370. VerticalAlignment verticalAlignment;
  33371. bool visible;
  33372. /* readonly */
  33373. bool visibleEffective;
  33374. /* readonly */
  33375. int weakRefs;
  33376. int width;
  33377. };
  33378. class UISelectable
  33379. {
  33380. public:
  33381. // Methods:
  33382. void AddChild(UIElement);
  33383. void AddTag(const String&);
  33384. void AddTags(Array<String>);
  33385. void AddTags(const String&, int8 = ';');
  33386. void AdjustScissor(IntRect&);
  33387. void AllocateNetworkState();
  33388. operator Animatable() const;
  33389. void ApplyAttributes();
  33390. void BringToFront();
  33391. const Color& GetColor(Corner) const;
  33392. const Color& GetColorAttr() const;
  33393. const Color& GetDerivedColor() const;
  33394. const Color& GetHoverColor() const;
  33395. const Color& GetSelectionColor() const;
  33396. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  33397. void DisableLayoutUpdate();
  33398. IntVector2 ElementToScreen(const IntVector2&);
  33399. void EnableLayoutUpdate();
  33400. bool FilterAttributes(XMLElement&) const;
  33401. int FindChild(UIElement) const;
  33402. bool GetAnimationEnabled() const;
  33403. Variant GetAttribute(const String&) const;
  33404. Variant GetAttribute(uint) const;
  33405. ValueAnimation GetAttributeAnimation(const String&) const;
  33406. float GetAttributeAnimationSpeed(const String&) const;
  33407. float GetAttributeAnimationTime(const String&) const;
  33408. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  33409. Variant GetAttributeDefault(const String&) const;
  33410. Variant GetAttributeDefault(uint) const;
  33411. bool GetBlockEvents() const;
  33412. bool GetBringToBack() const;
  33413. bool GetBringToFront() const;
  33414. UIElement GetChild(const String&, bool = false) const;
  33415. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  33416. UIElement GetChild(int) const;
  33417. Array<UIElement> GetChildren() const;
  33418. Array<UIElement> GetChildren(bool) const;
  33419. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  33420. bool GetClipChildren() const;
  33421. IntRect GetCombinedScreenRect();
  33422. XMLFile GetDefaultStyle(bool = true) const;
  33423. float GetDerivedOpacity() const;
  33424. uint GetDragButtonCombo() const;
  33425. int GetDragButtonCount() const;
  33426. uint GetDragDropMode() const;
  33427. IntVector2 GetEffectiveMinSize() const;
  33428. UIElement GetElementEventSender() const;
  33429. bool GetEnableAnchor() const;
  33430. VariantMap& GetEventDataMap() const;
  33431. Object GetEventSender() const;
  33432. FocusMode GetFocusMode() const;
  33433. int GetHeight() const;
  33434. HorizontalAlignment GetHorizontalAlignment() const;
  33435. int GetIndent() const;
  33436. int GetIndentSpacing() const;
  33437. int GetIndentWidth() const;
  33438. bool GetInterceptNetworkUpdate(const String&) const;
  33439. int GetLayoutElementMaxSize() const;
  33440. LayoutMode GetLayoutMode() const;
  33441. int GetLayoutSpacing() const;
  33442. int GetMaxHeight() const;
  33443. int GetMaxWidth() const;
  33444. int GetMinHeight() const;
  33445. int GetMinWidth() const;
  33446. uint GetNumAttributes() const;
  33447. int GetNumChildren(bool = false) const;
  33448. uint GetNumNetworkAttributes() const;
  33449. ObjectAnimation GetObjectAnimation() const;
  33450. ResourceRef GetObjectAnimationAttr() const;
  33451. float GetOpacity() const;
  33452. UIElement GetParent() const;
  33453. int GetPriority() const;
  33454. UIElement GetRoot() const;
  33455. bool GetSortChildren() const;
  33456. Object GetSubsystem(StringHash) const;
  33457. Array<String> GetTags() const;
  33458. TraversalMode GetTraversalMode() const;
  33459. StringHash GetType() const;
  33460. bool GetUseDerivedOpacity() const;
  33461. VerticalAlignment GetVerticalAlignment() const;
  33462. int GetWidth() const;
  33463. bool HasColorGradient() const;
  33464. bool HasEventHandlers() const;
  33465. bool HasFocus() const;
  33466. bool HasSubscribedToEvent(Object, StringHash) const;
  33467. bool HasSubscribedToEvent(StringHash) const;
  33468. bool HasTag(const String&) const;
  33469. void InsertChild(int, UIElement);
  33470. const IntRect& GetClipBorder() const;
  33471. const IntRect& GetLayoutBorder() const;
  33472. const IntVector2& GetChildOffset() const;
  33473. const IntVector2& GetMaxOffset() const;
  33474. const IntVector2& GetMaxSize() const;
  33475. const IntVector2& GetMinOffset() const;
  33476. const IntVector2& GetMinSize() const;
  33477. const IntVector2& GetPosition() const;
  33478. const IntVector2& GetScreenPosition() const;
  33479. const IntVector2& GetSize() const;
  33480. bool IsChildOf(UIElement) const;
  33481. bool IsEditable() const;
  33482. bool IsElementEventSender() const;
  33483. bool IsEnabled() const;
  33484. bool IsEnabledSelf() const;
  33485. bool IsFixedHeight() const;
  33486. bool IsFixedSize() const;
  33487. bool IsFixedWidth() const;
  33488. bool IsHovering() const;
  33489. bool IsInside(IntVector2, bool);
  33490. bool IsInsideCombined(IntVector2, bool);
  33491. bool IsInstanceOf(StringHash) const;
  33492. bool IsInternal() const;
  33493. bool IsSelected() const;
  33494. bool IsTemporary() const;
  33495. bool IsVisible() const;
  33496. bool IsVisibleEffective() const;
  33497. bool IsWheelHandler() const;
  33498. bool IsWithinScissor(const IntRect&);
  33499. bool Load(Deserializer&);
  33500. UIElement LoadChildXML(XMLFile, XMLFile);
  33501. UIElement LoadChildXML(const XMLElement&, XMLFile);
  33502. bool LoadJSON(const JSONValue&);
  33503. bool LoadXML(Deserializer&);
  33504. bool LoadXML(File);
  33505. bool LoadXML(VectorBuffer&);
  33506. bool LoadXML(XMLFile, XMLFile);
  33507. bool LoadXML(const XMLElement&);
  33508. bool LoadXML(const XMLElement&, XMLFile);
  33509. void MarkNetworkUpdate();
  33510. operator Object() const;
  33511. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33512. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  33513. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  33514. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33515. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33516. bool OnDragDropFinish(UIElement);
  33517. bool OnDragDropTest(UIElement);
  33518. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33519. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33520. void OnEvent(Object, StringHash, VariantMap&);
  33521. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33522. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  33523. void OnIndentSet();
  33524. void OnKey(uint, uint, uint);
  33525. void OnPositionSet(const IntVector2&);
  33526. void OnResize(const IntVector2&, const IntVector2&);
  33527. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33528. void OnSetEditable();
  33529. void OnTextInput(const String&);
  33530. void OnWheel(int, uint, uint);
  33531. bool ReadDeltaUpdate(Deserializer&);
  33532. bool ReadLatestDataUpdate(Deserializer&);
  33533. operator RefCounted() const;
  33534. int Refs() const;
  33535. void Remove();
  33536. void RemoveAllChildren();
  33537. void RemoveAllTags();
  33538. void RemoveAttributeAnimation(const String&);
  33539. void RemoveChild(UIElement, int = 0);
  33540. void RemoveChild(uint);
  33541. void RemoveChildAtIndex(int);
  33542. void RemoveInstanceDefault();
  33543. void RemoveObjectAnimation();
  33544. bool RemoveTag(const String&);
  33545. void ResetDeepEnabled();
  33546. void ResetToDefault();
  33547. bool Save(Serializer&) const;
  33548. bool SaveDefaultAttributes() const;
  33549. bool SaveJSON(JSONValue&) const;
  33550. bool SaveXML(File, const String& indentation = "\t");
  33551. bool SaveXML(Serializer&, const String& = "\t") const;
  33552. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  33553. bool SaveXML(XMLElement&) const;
  33554. IntVector2 ScreenToElement(const IntVector2&);
  33555. void SendEvent(StringHash);
  33556. void SendEvent(StringHash, VariantMap&);
  33557. operator Serializable() const;
  33558. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  33559. void SetAnimationEnabled(bool);
  33560. void SetAnimationTime(float);
  33561. bool SetAttribute(const String&, const Variant&);
  33562. bool SetAttribute(uint, const Variant&);
  33563. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33564. void SetAttributeAnimationSpeed(const String&, float);
  33565. void SetAttributeAnimationTime(const String&, float);
  33566. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33567. void SetBlockEvents(bool);
  33568. void SetBringToBack(bool);
  33569. void SetBringToFront(bool);
  33570. void SetChildOffset(const IntVector2&);
  33571. void SetClipBorder(const IntRect&);
  33572. void SetClipChildren(bool);
  33573. void SetColor(Corner, const Color&);
  33574. void SetColor(const Color&);
  33575. void SetDeepEnabled(bool);
  33576. void SetDefaultStyle(XMLFile);
  33577. void SetDragDropMode(uint);
  33578. void SetEditable(bool);
  33579. void SetElementEventSender(bool);
  33580. void SetEnableAnchor(bool);
  33581. void SetEnabled(bool);
  33582. void SetEnabledRecursive(bool);
  33583. void SetFixedHeight(int);
  33584. void SetFixedSize(const IntVector2&);
  33585. void SetFixedSize(int, int);
  33586. void SetFixedWidth(int);
  33587. void SetFocus(bool);
  33588. void SetFocusMode(FocusMode);
  33589. void SetGlobalVar(StringHash, const Variant&);
  33590. void SetHeight(int);
  33591. void SetHorizontalAlignment(HorizontalAlignment);
  33592. void SetHoverColor(const Color&);
  33593. void SetHovering(bool);
  33594. void SetIndent(int);
  33595. void SetIndentSpacing(int);
  33596. void SetInstanceDefault(bool);
  33597. void SetInterceptNetworkUpdate(const String&, bool);
  33598. void SetInternal(bool);
  33599. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  33600. void SetLayoutBorder(const IntRect&);
  33601. void SetLayoutFlexScale(const Vector2&);
  33602. void SetLayoutMode(LayoutMode);
  33603. void SetLayoutSpacing(int);
  33604. void SetMaxAnchor(const Vector2&);
  33605. void SetMaxAnchor(float, float);
  33606. void SetMaxHeight(int);
  33607. void SetMaxOffset(const IntVector2&);
  33608. void SetMaxSize(const IntVector2&);
  33609. void SetMaxSize(int, int);
  33610. void SetMaxWidth(int);
  33611. void SetMinAnchor(const Vector2&);
  33612. void SetMinAnchor(float, float);
  33613. void SetMinHeight(int);
  33614. void SetMinOffset(const IntVector2&);
  33615. void SetMinSize(const IntVector2&);
  33616. void SetMinSize(int, int);
  33617. void SetMinWidth(int);
  33618. void SetName(const String&);
  33619. void SetObjectAnimation(ObjectAnimation);
  33620. void SetObjectAnimationAttr(const ResourceRef&);
  33621. void SetOpacity(float);
  33622. void SetParent(UIElement, int = ENDPOS);
  33623. void SetPivot(const Vector2&);
  33624. void SetPivot(float, float);
  33625. void SetPosition(const IntVector2&);
  33626. void SetPosition(int, int);
  33627. void SetPriority(int);
  33628. void SetRenderTexture(Texture2D);
  33629. void SetSelected(bool);
  33630. void SetSelectionColor(const Color&);
  33631. void SetSize(const IntVector2&);
  33632. void SetSize(int, int);
  33633. void SetSortChildren(bool);
  33634. bool SetStyle(const String&, XMLFile = null);
  33635. bool SetStyle(const XMLElement&);
  33636. bool SetStyleAuto(XMLFile = null);
  33637. void SetTags(Array<String>);
  33638. void SetTemporary(bool);
  33639. void SetTraversalMode(TraversalMode);
  33640. void SetUseDerivedOpacity(bool);
  33641. void SetVar(StringHash, const Variant&);
  33642. void SetVerticalAlignment(VerticalAlignment);
  33643. void SetVisible(bool);
  33644. void SetWidth(int);
  33645. void SortChildren();
  33646. const String& GetAppliedStyle() const;
  33647. const String& GetCategory() const;
  33648. const String& GetName() const;
  33649. const String& GetTypeName() const;
  33650. operator Text() const;
  33651. operator UIElement() const;
  33652. void UnsubscribeFromAllEvents();
  33653. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33654. void UnsubscribeFromEvent(Object, StringHash);
  33655. void UnsubscribeFromEvent(StringHash);
  33656. void UnsubscribeFromEvents(Object);
  33657. void Update(float);
  33658. void UpdateLayout();
  33659. const Variant& GetGlobalVar(StringHash) const;
  33660. const Variant& GetVar(const StringHash&) const;
  33661. const VariantMap& GetGlobalVars() const;
  33662. const VariantMap& GetVars() const;
  33663. const Vector2& GetLayoutFlexScale() const;
  33664. const Vector2& GetMaxAnchor() const;
  33665. const Vector2& GetMinAnchor() const;
  33666. const Vector2& GetPivot() const;
  33667. int WeakRefs() const;
  33668. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33669. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33670. void WriteLatestDataUpdate(Serializer&, uint8);
  33671. operator const Animatable() const;
  33672. operator const Object() const;
  33673. operator const RefCounted() const;
  33674. operator const Serializable() const;
  33675. operator const Text() const;
  33676. operator const UIElement() const;
  33677. // Properties:
  33678. bool animationEnabled;
  33679. /* readonly */
  33680. Array<Variant> attributeDefaults;
  33681. /* readonly */
  33682. Array<AttributeInfo> attributeInfos;
  33683. Array<Variant> attributes;
  33684. bool bringToBack;
  33685. bool bringToFront;
  33686. /* readonly */
  33687. String category;
  33688. /* readonly */
  33689. IntVector2 childOffset;
  33690. /* readonly */
  33691. Array<UIElement> children;
  33692. IntRect clipBorder;
  33693. bool clipChildren;
  33694. /* writeonly */
  33695. Color color;
  33696. /* readonly */
  33697. bool colorGradient;
  33698. Array<Color> colors;
  33699. /* readonly */
  33700. IntRect combinedScreenRect;
  33701. XMLFile defaultStyle;
  33702. /* readonly */
  33703. float derivedOpacity;
  33704. /* readonly */
  33705. uint dragButtonCombo;
  33706. /* readonly */
  33707. int dragButtonCount;
  33708. uint dragDropMode;
  33709. bool editable;
  33710. bool elementEventSender;
  33711. bool enableAnchor;
  33712. bool enabled;
  33713. /* readonly */
  33714. bool enabledSelf;
  33715. /* readonly */
  33716. bool fixedHeight;
  33717. /* readonly */
  33718. bool fixedSize;
  33719. /* readonly */
  33720. bool fixedWidth;
  33721. bool focus;
  33722. FocusMode focusMode;
  33723. Array<Variant> globalVar;
  33724. /* readonly */
  33725. VariantMap globalVars;
  33726. int height;
  33727. HorizontalAlignment horizontalAlignment;
  33728. Color hoverColor;
  33729. /* readonly */
  33730. bool hovering;
  33731. int indent;
  33732. int indentSpacing;
  33733. /* readonly */
  33734. int indentWidth;
  33735. bool internal;
  33736. IntRect layoutBorder;
  33737. Vector2 layoutFlexScale;
  33738. LayoutMode layoutMode;
  33739. int layoutSpacing;
  33740. Vector2 maxAnchor;
  33741. int maxHeight;
  33742. IntVector2 maxOffset;
  33743. IntVector2 maxSize;
  33744. int maxWidth;
  33745. Vector2 minAnchor;
  33746. int minHeight;
  33747. IntVector2 minOffset;
  33748. IntVector2 minSize;
  33749. int minWidth;
  33750. String name;
  33751. /* readonly */
  33752. uint numAllChildren;
  33753. /* readonly */
  33754. uint numAttributes;
  33755. /* readonly */
  33756. uint numChildren;
  33757. ObjectAnimation objectAnimation;
  33758. float opacity;
  33759. UIElement parent;
  33760. Vector2 pivot;
  33761. IntVector2 position;
  33762. int priority;
  33763. /* readonly */
  33764. int refs;
  33765. /* readonly */
  33766. UIElement root;
  33767. /* readonly */
  33768. IntVector2 screenPosition;
  33769. bool selected;
  33770. Color selectionColor;
  33771. IntVector2 size;
  33772. bool sortChildren;
  33773. String style;
  33774. /* readonly */
  33775. Array<String> tags;
  33776. bool temporary;
  33777. TraversalMode traversalMode;
  33778. /* readonly */
  33779. StringHash type;
  33780. /* readonly */
  33781. String typeName;
  33782. bool useDerivedOpacity;
  33783. /* readonly */
  33784. VariantMap vars;
  33785. VerticalAlignment verticalAlignment;
  33786. bool visible;
  33787. /* readonly */
  33788. bool visibleEffective;
  33789. /* readonly */
  33790. int weakRefs;
  33791. int width;
  33792. };
  33793. class UnknownComponent
  33794. {
  33795. public:
  33796. // Methods:
  33797. void AllocateNetworkState();
  33798. operator Animatable() const;
  33799. void ApplyAttributes();
  33800. void CleanupConnection(Connection);
  33801. operator Component() const;
  33802. void DrawDebugGeometry(DebugRenderer, bool);
  33803. bool GetAnimationEnabled() const;
  33804. Variant GetAttribute(const String&) const;
  33805. Variant GetAttribute(uint) const;
  33806. ValueAnimation GetAttributeAnimation(const String&) const;
  33807. float GetAttributeAnimationSpeed(const String&) const;
  33808. float GetAttributeAnimationTime(const String&) const;
  33809. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  33810. Variant GetAttributeDefault(const String&) const;
  33811. Variant GetAttributeDefault(uint) const;
  33812. Array<uint8> GetBinaryAttributes() const;
  33813. bool GetBlockEvents() const;
  33814. Component GetComponent(StringHash) const;
  33815. VariantMap& GetEventDataMap() const;
  33816. Object GetEventSender() const;
  33817. uint GetID() const;
  33818. bool GetInterceptNetworkUpdate(const String&) const;
  33819. Node GetNode() const;
  33820. uint GetNumAttributes() const;
  33821. uint GetNumNetworkAttributes() const;
  33822. ObjectAnimation GetObjectAnimation() const;
  33823. ResourceRef GetObjectAnimationAttr() const;
  33824. Scene GetScene() const;
  33825. Object GetSubsystem(StringHash) const;
  33826. StringHash GetType() const;
  33827. bool GetUseXML() const;
  33828. Array<String> GetXMLAttributes() const;
  33829. bool HasEventHandlers() const;
  33830. bool HasSubscribedToEvent(Object, StringHash) const;
  33831. bool HasSubscribedToEvent(StringHash) const;
  33832. bool IsEnabled() const;
  33833. bool IsEnabledEffective() const;
  33834. bool IsInstanceOf(StringHash) const;
  33835. bool IsReplicated() const;
  33836. bool IsTemporary() const;
  33837. bool Load(Deserializer&);
  33838. bool LoadJSON(const JSONValue&);
  33839. bool LoadXML(const XMLElement&);
  33840. void MarkNetworkUpdate();
  33841. operator Object() const;
  33842. void OnEvent(Object, StringHash, VariantMap&);
  33843. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  33844. void OnSetAttribute(const AttributeInfo&, const Variant&);
  33845. void OnSetEnabled();
  33846. void PrepareNetworkUpdate();
  33847. bool ReadDeltaUpdate(Deserializer&);
  33848. bool ReadLatestDataUpdate(Deserializer&);
  33849. operator RefCounted() const;
  33850. int Refs() const;
  33851. void Remove();
  33852. void RemoveAttributeAnimation(const String&);
  33853. void RemoveInstanceDefault();
  33854. void RemoveObjectAnimation();
  33855. void ResetToDefault();
  33856. bool Save(Serializer&) const;
  33857. bool SaveDefaultAttributes() const;
  33858. bool SaveJSON(JSONValue&) const;
  33859. bool SaveXML(XMLElement&) const;
  33860. void SendEvent(StringHash);
  33861. void SendEvent(StringHash, VariantMap&);
  33862. operator Serializable() const;
  33863. void SetAnimationEnabled(bool);
  33864. void SetAnimationTime(float);
  33865. bool SetAttribute(const String&, const Variant&);
  33866. bool SetAttribute(uint, const Variant&);
  33867. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  33868. void SetAttributeAnimationSpeed(const String&, float);
  33869. void SetAttributeAnimationTime(const String&, float);
  33870. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  33871. void SetBlockEvents(bool);
  33872. void SetEnabled(bool);
  33873. void SetGlobalVar(StringHash, const Variant&);
  33874. void SetInstanceDefault(bool);
  33875. void SetInterceptNetworkUpdate(const String&, bool);
  33876. void SetObjectAnimation(ObjectAnimation);
  33877. void SetObjectAnimationAttr(const ResourceRef&);
  33878. void SetTemporary(bool);
  33879. void SetType(StringHash);
  33880. void SetTypeName(const String&);
  33881. const String& GetCategory() const;
  33882. const String& GetTypeName() const;
  33883. void UnsubscribeFromAllEvents();
  33884. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  33885. void UnsubscribeFromEvent(Object, StringHash);
  33886. void UnsubscribeFromEvent(StringHash);
  33887. void UnsubscribeFromEvents(Object);
  33888. const Variant& GetGlobalVar(StringHash) const;
  33889. const VariantMap& GetGlobalVars() const;
  33890. int WeakRefs() const;
  33891. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  33892. void WriteInitialDeltaUpdate(Serializer&, uint8);
  33893. void WriteLatestDataUpdate(Serializer&, uint8);
  33894. operator const Animatable() const;
  33895. operator const Component() const;
  33896. operator const Object() const;
  33897. operator const RefCounted() const;
  33898. operator const Serializable() const;
  33899. // Properties:
  33900. bool animationEnabled;
  33901. /* readonly */
  33902. Array<Variant> attributeDefaults;
  33903. /* readonly */
  33904. Array<AttributeInfo> attributeInfos;
  33905. Array<Variant> attributes;
  33906. /* readonly */
  33907. String category;
  33908. bool enabled;
  33909. /* readonly */
  33910. bool enabledEffective;
  33911. Array<Variant> globalVar;
  33912. /* readonly */
  33913. VariantMap globalVars;
  33914. /* readonly */
  33915. uint id;
  33916. /* readonly */
  33917. Node node;
  33918. /* readonly */
  33919. uint numAttributes;
  33920. ObjectAnimation objectAnimation;
  33921. /* readonly */
  33922. int refs;
  33923. /* readonly */
  33924. bool replicated;
  33925. bool temporary;
  33926. /* readonly */
  33927. StringHash type;
  33928. /* readonly */
  33929. String typeName;
  33930. /* readonly */
  33931. int weakRefs;
  33932. };
  33933. class VAnimEventFrame
  33934. {
  33935. public:
  33936. ~VAnimEventFrame();
  33937. VAnimEventFrame();
  33938. // Methods:
  33939. VAnimEventFrame& operator=(const VAnimEventFrame&);
  33940. // Properties:
  33941. VariantMap eventData;
  33942. StringHash eventType;
  33943. float time;
  33944. };
  33945. class VAnimKeyFrame
  33946. {
  33947. public:
  33948. ~VAnimKeyFrame();
  33949. VAnimKeyFrame();
  33950. // Methods:
  33951. VAnimKeyFrame& operator=(const VAnimKeyFrame&);
  33952. // Properties:
  33953. float time;
  33954. Variant value;
  33955. };
  33956. class ValueAnimation
  33957. {
  33958. public:
  33959. ValueAnimation();
  33960. // Methods:
  33961. bool BeginLoad(Deserializer&);
  33962. bool EndLoad();
  33963. Variant GetAnimationValue(float) const;
  33964. AsyncLoadState GetAsyncLoadState() const;
  33965. float GetBeginTime() const;
  33966. bool GetBlockEvents() const;
  33967. float GetEndTime() const;
  33968. VariantMap& GetEventDataMap() const;
  33969. Object GetEventSender() const;
  33970. InterpMethod GetInterpolationMethod() const;
  33971. Array<VAnimKeyFrame> GetKeyFrames() const;
  33972. uint GetMemoryUse() const;
  33973. StringHash GetNameHash() const;
  33974. float GetSplineTension() const;
  33975. Object GetSubsystem(StringHash) const;
  33976. StringHash GetType() const;
  33977. uint GetUseTimer();
  33978. VariantType GetValueType() const;
  33979. bool HasEventFrames() const;
  33980. bool HasEventHandlers() const;
  33981. bool HasSubscribedToEvent(Object, StringHash) const;
  33982. bool HasSubscribedToEvent(StringHash) const;
  33983. bool IsInstanceOf(StringHash) const;
  33984. bool IsValid() const;
  33985. bool Load(Deserializer&);
  33986. bool Load(File);
  33987. bool Load(VectorBuffer&);
  33988. bool Load(const String&);
  33989. bool LoadFile(const String&);
  33990. bool LoadJSON(const JSONValue&);
  33991. bool LoadXML(const XMLElement&);
  33992. operator Object() const;
  33993. void OnEvent(Object, StringHash, VariantMap&);
  33994. operator RefCounted() const;
  33995. int Refs() const;
  33996. void ResetUseTimer();
  33997. operator Resource() const;
  33998. bool Save(File) const;
  33999. bool Save(Serializer&) const;
  34000. bool Save(VectorBuffer&) const;
  34001. bool Save(const String&) const;
  34002. bool SaveFile(const String&) const;
  34003. bool SaveJSON(JSONValue&) const;
  34004. bool SaveXML(XMLElement&) const;
  34005. void SendEvent(StringHash);
  34006. void SendEvent(StringHash, VariantMap&);
  34007. void SetAsyncLoadState(AsyncLoadState);
  34008. void SetBlockEvents(bool);
  34009. void SetEventFrame(float, const StringHash&, const VariantMap& = VariantMap ( ));
  34010. void SetGlobalVar(StringHash, const Variant&);
  34011. void SetInterpolationMethod(InterpMethod);
  34012. bool SetKeyFrame(float, const Variant&);
  34013. void SetMemoryUse(uint);
  34014. void SetName(const String&);
  34015. void SetSplineTension(float);
  34016. void SetValueType(VariantType);
  34017. const String& GetCategory() const;
  34018. const String& GetName() const;
  34019. const String& GetTypeName() const;
  34020. void UnsubscribeFromAllEvents();
  34021. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  34022. void UnsubscribeFromEvent(Object, StringHash);
  34023. void UnsubscribeFromEvent(StringHash);
  34024. void UnsubscribeFromEvents(Object);
  34025. const Variant& GetGlobalVar(StringHash) const;
  34026. const VariantMap& GetGlobalVars() const;
  34027. int WeakRefs() const;
  34028. operator const Object() const;
  34029. operator const RefCounted() const;
  34030. operator const Resource() const;
  34031. // Properties:
  34032. /* readonly */
  34033. String category;
  34034. Array<Variant> globalVar;
  34035. /* readonly */
  34036. VariantMap globalVars;
  34037. InterpMethod interpolationMethod;
  34038. /* readonly */
  34039. uint memoryUse;
  34040. String name;
  34041. /* readonly */
  34042. int refs;
  34043. float splineTension;
  34044. /* readonly */
  34045. StringHash type;
  34046. /* readonly */
  34047. String typeName;
  34048. /* readonly */
  34049. uint useTimer;
  34050. VariantType valueType;
  34051. /* readonly */
  34052. int weakRefs;
  34053. };
  34054. class ValueAnimationInfo
  34055. {
  34056. public:
  34057. ValueAnimationInfo(ValueAnimation&, WrapMode, float);
  34058. ValueAnimationInfo(Object&, ValueAnimation&, WrapMode, float);
  34059. ValueAnimationInfo(const ValueAnimationInfo&in);
  34060. // Methods:
  34061. operator AttributeAnimationInfo() const;
  34062. ValueAnimation GetAnimation() const;
  34063. float GetSpeed() const;
  34064. Object GetTarget() const;
  34065. float GetTime() const;
  34066. WrapMode GetWrapMode() const;
  34067. operator RefCounted() const;
  34068. int Refs() const;
  34069. void SetSpeed(float);
  34070. bool SetTime(float);
  34071. void SetWrapMode(WrapMode);
  34072. operator ShaderParameterAnimationInfo() const;
  34073. bool Update(float);
  34074. int WeakRefs() const;
  34075. operator const AttributeAnimationInfo() const;
  34076. operator const RefCounted() const;
  34077. operator const ShaderParameterAnimationInfo() const;
  34078. // Properties:
  34079. /* readonly */
  34080. int refs;
  34081. /* readonly */
  34082. int weakRefs;
  34083. };
  34084. class Variant
  34085. {
  34086. public:
  34087. ~Variant();
  34088. Variant();
  34089. Variant(int);
  34090. Variant(int64);
  34091. Variant(uint);
  34092. Variant(uint64);
  34093. Variant(const StringHash&in);
  34094. Variant(bool);
  34095. Variant(float);
  34096. Variant(double);
  34097. Variant(const Vector2&in);
  34098. Variant(const Vector3&in);
  34099. Variant(const Vector4&in);
  34100. Variant(const Quaternion&in);
  34101. Variant(const Color&in);
  34102. Variant(const String&in);
  34103. Variant(uint8[]@);
  34104. Variant(const VectorBuffer&in);
  34105. Variant(const ResourceRef&in);
  34106. Variant(const ResourceRefList&in);
  34107. Variant(const VariantMap&in);
  34108. Variant(String[]@);
  34109. Variant(const Rect&in);
  34110. Variant(const IntRect&in);
  34111. Variant(const IntVector2&in);
  34112. Variant(const IntVector3&in);
  34113. Variant(RefCounted@);
  34114. Variant(const Matrix3&in);
  34115. Variant(const Matrix3x4&in);
  34116. Variant(const Matrix4&in);
  34117. Variant(const String&in, const String&in);
  34118. Variant(VariantType, const String&in);
  34119. Variant(const Variant&in);
  34120. Variant(ScriptObject@);
  34121. Variant(const Variant[]@);
  34122. // Methods:
  34123. Variant& operator=(RefCounted);
  34124. Variant& operator=(ScriptObject);
  34125. Variant& operator=(Array<String>);
  34126. Variant& operator=(bool);
  34127. Variant& operator=(const Color&);
  34128. Variant& operator=(const IntRect&);
  34129. Variant& operator=(const IntVector2&);
  34130. Variant& operator=(const IntVector3&);
  34131. Variant& operator=(const Matrix3&);
  34132. Variant& operator=(const Matrix3x4&);
  34133. Variant& operator=(const Matrix4&);
  34134. Variant& operator=(const Quaternion&);
  34135. Variant& operator=(const Rect&);
  34136. Variant& operator=(const ResourceRef&);
  34137. Variant& operator=(const ResourceRefList&);
  34138. Variant& operator=(const String&);
  34139. Variant& operator=(const StringHash&);
  34140. Variant& operator=(const Variant&);
  34141. Variant& operator=(const VariantMap&);
  34142. Variant& operator=(const Array<Variant>);
  34143. Variant& operator=(const Vector2&);
  34144. Variant& operator=(const Vector3&);
  34145. Variant& operator=(const Vector4&);
  34146. Variant& operator=(const VectorBuffer&);
  34147. Variant& operator=(double);
  34148. Variant& operator=(float);
  34149. Variant& operator=(int);
  34150. Variant& operator=(int64);
  34151. Variant& operator=(uint);
  34152. Variant& operator=(uint64);
  34153. Variant& operator=(Array<uint8>);
  34154. bool operator==(RefCounted) const;
  34155. bool operator==(ScriptObject) const;
  34156. bool operator==(Array<String>) const;
  34157. bool operator==(bool) const;
  34158. bool operator==(const Color&) const;
  34159. bool operator==(const IntRect&) const;
  34160. bool operator==(const IntVector2&) const;
  34161. bool operator==(const IntVector3&) const;
  34162. bool operator==(const Matrix3&) const;
  34163. bool operator==(const Matrix3x4&) const;
  34164. bool operator==(const Matrix4&) const;
  34165. bool operator==(const Quaternion&) const;
  34166. bool operator==(const Rect&) const;
  34167. bool operator==(const ResourceRef&) const;
  34168. bool operator==(const ResourceRefList&) const;
  34169. bool operator==(const String&) const;
  34170. bool operator==(const StringHash&) const;
  34171. bool operator==(const Variant&) const;
  34172. bool operator==(const VariantMap&) const;
  34173. bool operator==(const Array<Variant>);
  34174. bool operator==(const Vector2&) const;
  34175. bool operator==(const Vector3&) const;
  34176. bool operator==(const Vector4&) const;
  34177. bool operator==(const VectorBuffer&) const;
  34178. bool operator==(double) const;
  34179. bool operator==(float) const;
  34180. bool operator==(int) const;
  34181. bool operator==(int64) const;
  34182. bool operator==(uint) const;
  34183. bool operator==(uint64) const;
  34184. bool operator==(Array<uint8>) const;
  34185. void Clear();
  34186. const Color& GetColor() const;
  34187. void FromString(VariantType, const String&);
  34188. void FromString(const String&, const String&);
  34189. bool GetBool() const;
  34190. Array<uint8> GetBuffer() const;
  34191. double GetDouble() const;
  34192. float GetFloat() const;
  34193. int GetInt() const;
  34194. int64 GetInt64() const;
  34195. RefCounted GetPtr() const;
  34196. ScriptObject GetScriptObject() const;
  34197. StringHash GetStringHash() const;
  34198. Array<String> GetStringVector() const;
  34199. VariantType GetType() const;
  34200. String GetTypeName() const;
  34201. uint GetUInt() const;
  34202. uint64 GetUInt64() const;
  34203. Array<Variant> GetVariantVector() const;
  34204. VectorBuffer GetVectorBuffer() const;
  34205. const IntRect& GetIntRect() const;
  34206. const IntVector2& GetIntVector2() const;
  34207. const IntVector3& GetIntVector3() const;
  34208. bool IsCustom() const;
  34209. bool IsEmpty() const;
  34210. bool IsZero() const;
  34211. const Matrix3& GetMatrix3() const;
  34212. const Matrix3x4& GetMatrix3x4() const;
  34213. const Matrix4& GetMatrix4() const;
  34214. const Quaternion& GetQuaternion() const;
  34215. const Rect& GetRect() const;
  34216. const ResourceRef& GetResourceRef() const;
  34217. const ResourceRefList& GetResourceRefList() const;
  34218. const String& GetString() const;
  34219. String ToString() const;
  34220. const VariantMap& GetVariantMap() const;
  34221. const Vector2& GetVector2() const;
  34222. const Vector3& GetVector3() const;
  34223. const Vector4& GetVector4() const;
  34224. // Properties:
  34225. /* readonly */
  34226. bool empty;
  34227. /* readonly */
  34228. VariantType type;
  34229. /* readonly */
  34230. String typeName;
  34231. /* readonly */
  34232. bool zero;
  34233. // Constants:
  34234. static const Variant EMPTY;
  34235. static const ResourceRef emptyResourceRef;
  34236. static const ResourceRefList emptyResourceRefList;
  34237. static const VariantMap emptyVariantMap;
  34238. };
  34239. class VariantMap
  34240. {
  34241. public:
  34242. ~VariantMap();
  34243. VariantMap();
  34244. VariantMap(const VariantMap&in);
  34245. // Methods:
  34246. VariantMap& operator=(const VariantMap&);
  34247. Variant& operator[](StringHash);
  34248. void Clear();
  34249. bool Contains(StringHash) const;
  34250. bool Erase(StringHash);
  34251. // Properties:
  34252. /* readonly */
  34253. Array<StringHash> keys;
  34254. /* readonly */
  34255. uint length;
  34256. /* readonly */
  34257. Array<Variant> values;
  34258. };
  34259. class Vector2
  34260. {
  34261. public:
  34262. Vector2();
  34263. Vector2(const Vector2&in);
  34264. Vector2(const IntVector2&in);
  34265. Vector2(float, float);
  34266. Vector2(int, int);
  34267. Vector2(float[]&inout);
  34268. // Methods:
  34269. Vector2 operator+(const Vector2&) const;
  34270. Vector2& operator+=(const Vector2&);
  34271. Vector2& operator=(const Vector2&);
  34272. bool operator==(const Vector2&) const;
  34273. Vector2 Abs() const;
  34274. float AbsDotProduct(const Vector2&) const;
  34275. float Angle(const Vector2&) const;
  34276. float DotProduct(const Vector2&) const;
  34277. bool Equals(const Vector2&) const;
  34278. bool IsInf() const;
  34279. bool IsNaN() const;
  34280. float Length() const;
  34281. float LengthSquared() const;
  34282. Vector2 Lerp(const Vector2&, float) const;
  34283. void Normalize();
  34284. Vector2 Normalized() const;
  34285. Vector2 NormalizedOrDefault(const Vector2& = Vector2 :: ZERO, float = M_LARGE_EPSILON) const;
  34286. float ProjectOntoAxis(const Vector2&) const;
  34287. Vector2 ReNormalized(float, float, const Vector2& = Vector2 :: ZERO, float = M_LARGE_EPSILON) const;
  34288. String ToString() const;
  34289. // Properties:
  34290. /* readonly */
  34291. Array<float> data;
  34292. /* readonly */
  34293. float length;
  34294. /* readonly */
  34295. float lengthSquared;
  34296. float x;
  34297. float y;
  34298. // Constants:
  34299. static const Vector2 DOWN;
  34300. static const Vector2 LEFT;
  34301. static const Vector2 ONE;
  34302. static const Vector2 RIGHT;
  34303. static const Vector2 UP;
  34304. static const Vector2 ZERO;
  34305. };
  34306. class Vector3
  34307. {
  34308. public:
  34309. Vector3();
  34310. Vector3(const Vector3&in);
  34311. Vector3(const Vector2&in, float);
  34312. Vector3(const Vector2&in);
  34313. Vector3(const IntVector3&in);
  34314. Vector3(float, float, float);
  34315. Vector3(float, float);
  34316. Vector3(float[]&inout);
  34317. // Methods:
  34318. Vector3 operator+(const Vector3&) const;
  34319. Vector3& operator+=(const Vector3&);
  34320. Vector3& operator=(const Vector3&);
  34321. bool operator==(const Vector3&) const;
  34322. Vector3 Abs() const;
  34323. float AbsDotProduct(const Vector3&) const;
  34324. float Angle(const Vector3&) const;
  34325. Vector3 CrossProduct(const Vector3&) const;
  34326. float DistanceToPlane(const Vector3&, const Vector3&) const;
  34327. float DistanceToPoint(const Vector3&) const;
  34328. float DotProduct(const Vector3&) const;
  34329. bool Equals(const Vector3&) const;
  34330. bool IsInf() const;
  34331. bool IsNaN() const;
  34332. float Length() const;
  34333. float LengthSquared() const;
  34334. Vector3 Lerp(const Vector3&, float) const;
  34335. void Normalize();
  34336. Vector3 Normalized() const;
  34337. Vector3 NormalizedOrDefault(const Vector3& = Vector3 :: ZERO, float = M_LARGE_EPSILON) const;
  34338. Vector3 Orthogonalize(const Vector3&) const;
  34339. float ProjectOntoAxis(const Vector3&) const;
  34340. Vector3 ProjectOntoLine(const Vector3&, const Vector3&, bool = false) const;
  34341. Vector3 ProjectOntoPlane(const Vector3&, const Vector3&) const;
  34342. Vector3 ReNormalized(float, float, const Vector3& = Vector3 :: ZERO, float = M_LARGE_EPSILON) const;
  34343. uint ToHash() const;
  34344. String ToString() const;
  34345. // Properties:
  34346. /* readonly */
  34347. Array<float> data;
  34348. /* readonly */
  34349. float length;
  34350. /* readonly */
  34351. float lengthSquared;
  34352. float x;
  34353. float y;
  34354. float z;
  34355. // Constants:
  34356. static const Vector3 BACK;
  34357. static const Vector3 DOWN;
  34358. static const Vector3 FORWARD;
  34359. static const Vector3 LEFT;
  34360. static const Vector3 ONE;
  34361. static const Vector3 RIGHT;
  34362. static const Vector3 UP;
  34363. static const Vector3 ZERO;
  34364. };
  34365. class Vector4
  34366. {
  34367. public:
  34368. Vector4();
  34369. Vector4(const Vector4&in);
  34370. Vector4(const Vector3&in, float);
  34371. Vector4(float, float, float, float);
  34372. Vector4(float[]&inout);
  34373. // Methods:
  34374. Vector4 operator+(const Vector4&) const;
  34375. Vector4& operator+=(const Vector4&);
  34376. Vector4& operator=(const Vector4&);
  34377. bool operator==(const Vector4&) const;
  34378. float& operator[](int);
  34379. float operator[](int) const;
  34380. Vector4 Abs() const;
  34381. float AbsDotProduct(const Vector4&) const;
  34382. float DotProduct(const Vector4&) const;
  34383. bool Equals(const Vector4&) const;
  34384. bool IsInf() const;
  34385. bool IsNaN() const;
  34386. Vector4 Lerp(const Vector4&, float) const;
  34387. float ProjectOntoAxis(const Vector3&) const;
  34388. uint ToHash() const;
  34389. String ToString() const;
  34390. // Properties:
  34391. /* readonly */
  34392. Array<float> data;
  34393. float w;
  34394. float x;
  34395. float y;
  34396. float z;
  34397. // Constants:
  34398. static const Vector4 ONE;
  34399. static const Vector4 ZERO;
  34400. };
  34401. class VectorBase
  34402. {
  34403. public:
  34404. ~VectorBase();
  34405. VectorBase();
  34406. // Methods:
  34407. VectorBase& operator=(const VectorBase&);
  34408. void Swap(VectorBase&);
  34409. };
  34410. class VectorBuffer
  34411. {
  34412. public:
  34413. ~VectorBuffer();
  34414. VectorBuffer();
  34415. VectorBuffer(uint8[]@);
  34416. VectorBuffer(Deserializer&inout, int);
  34417. // Methods:
  34418. VectorBuffer& operator=(const VectorBuffer&);
  34419. uint8& operator[](uint);
  34420. void Clear();
  34421. Array<uint8> GetBuffer() const;
  34422. uint GetChecksum();
  34423. int64 GetPosition() const;
  34424. int64 GetSize() const;
  34425. bool IsEof() const;
  34426. Array<uint8> Read(uint);
  34427. bool ReadBool();
  34428. BoundingBox ReadBoundingBox();
  34429. Array<uint8> ReadBuffer();
  34430. int8 ReadByte();
  34431. Color ReadColor();
  34432. double ReadDouble();
  34433. String ReadFileID();
  34434. float ReadFloat();
  34435. int ReadInt();
  34436. int64 ReadInt64();
  34437. IntRect ReadIntRect();
  34438. IntVector2 ReadIntVector2();
  34439. IntVector3 ReadIntVector3();
  34440. String ReadLine();
  34441. Matrix3 ReadMatrix3();
  34442. Matrix3x4 ReadMatrix3x4();
  34443. Matrix4 ReadMatrix4();
  34444. uint ReadNetID();
  34445. Quaternion ReadPackedQuaternion();
  34446. Vector3 ReadPackedVector3(float);
  34447. Quaternion ReadQuaternion();
  34448. Rect ReadRect();
  34449. ResourceRef ReadResourceRef();
  34450. ResourceRefList ReadResourceRefList();
  34451. int16 ReadShort();
  34452. String ReadString();
  34453. StringHash ReadStringHash();
  34454. Array<String> ReadStringVector();
  34455. uint8 ReadUByte();
  34456. uint ReadUInt();
  34457. uint64 ReadUInt64();
  34458. uint16 ReadUShort();
  34459. uint ReadVLE();
  34460. Variant ReadVariant();
  34461. Variant ReadVariant(VariantType);
  34462. VariantMap ReadVariantMap();
  34463. Vector2 ReadVector2();
  34464. Vector3 ReadVector3();
  34465. Vector4 ReadVector4();
  34466. VectorBuffer ReadVectorBuffer(uint);
  34467. void Resize(int);
  34468. int64 Seek(int64);
  34469. int64 SeekRelative(int64);
  34470. void SetData(Deserializer&, int);
  34471. void SetData(Array<uint8>);
  34472. void SetName(const String&);
  34473. const String& GetName() const;
  34474. int64 Tell() const;
  34475. uint Write(Array<uint8>);
  34476. bool WriteBool(bool);
  34477. bool WriteBoundingBox(const BoundingBox&);
  34478. bool WriteBuffer(Array<uint8>);
  34479. bool WriteByte(int8);
  34480. bool WriteColor(const Color&);
  34481. bool WriteDouble(double);
  34482. bool WriteFileID(const String&);
  34483. bool WriteFloat(float);
  34484. bool WriteInt(int);
  34485. bool WriteInt64(int64);
  34486. bool WriteIntRect(const IntRect&);
  34487. bool WriteIntVector2(const IntVector2&);
  34488. bool WriteIntVector3(const IntVector3&);
  34489. bool WriteLine(const String&);
  34490. bool WriteMatrix3(const Matrix3&);
  34491. bool WriteMatrix3x4(const Matrix3x4&);
  34492. bool WriteMatrix4(const Matrix4&);
  34493. bool WriteNetID(uint);
  34494. bool WritePackedQuaternion(const Quaternion&);
  34495. bool WritePackedVector3(const Vector3&, float);
  34496. bool WriteQuaternion(const Quaternion&);
  34497. bool WriteRect(const Rect&);
  34498. bool WriteResourceRef(const ResourceRef&);
  34499. bool WriteResourceRefList(const ResourceRefList&);
  34500. bool WriteShort(int16);
  34501. bool WriteString(const String&);
  34502. bool WriteStringHash(const StringHash&);
  34503. bool WriteStringVector(Array<String>);
  34504. bool WriteUByte(uint8);
  34505. bool WriteUInt(uint);
  34506. bool WriteUInt64(uint64);
  34507. bool WriteUShort(uint16);
  34508. bool WriteVLE(uint);
  34509. bool WriteVariant(const Variant&);
  34510. bool WriteVariantData(const Variant&);
  34511. bool WriteVariantMap(const VariantMap&);
  34512. bool WriteVector2(const Vector2&);
  34513. bool WriteVector3(const Vector3&);
  34514. bool WriteVector4(const Vector4&);
  34515. bool WriteVectorBuffer(const VectorBuffer&);
  34516. const uint8& operator[](uint) const;
  34517. // Properties:
  34518. /* readonly */
  34519. uint checksum;
  34520. /* readonly */
  34521. bool eof;
  34522. String name;
  34523. /* readonly */
  34524. int64 position;
  34525. /* readonly */
  34526. int64 size;
  34527. };
  34528. class Vertex2D
  34529. {
  34530. public:
  34531. ~Vertex2D();
  34532. Vertex2D();
  34533. // Methods:
  34534. Vertex2D& operator=(const Vertex2D&);
  34535. // Properties:
  34536. uint color;
  34537. Vector3 position;
  34538. Vector2 uv;
  34539. };
  34540. class VertexBuffer
  34541. {
  34542. public:
  34543. VertexBuffer(bool = false);
  34544. // Methods:
  34545. void ClearDataLost();
  34546. bool GetBlockEvents() const;
  34547. uint64 GetBufferHash(int);
  34548. VectorBuffer GetData() const;
  34549. uint GetElementMask() const;
  34550. int GetElementOffset(VertexElementSemantic, int8 = 0) const;
  34551. int GetElementOffset(VertexElementType, VertexElementSemantic, int8 = 0) const;
  34552. Array<VertexElement> GetElements() const;
  34553. VariantMap& GetEventDataMap() const;
  34554. Object GetEventSender() const;
  34555. uint GetGPUObjectName() const;
  34556. Graphics GetGraphics() const;
  34557. Object GetSubsystem(StringHash) const;
  34558. StringHash GetType() const;
  34559. int GetVertexCount() const;
  34560. int GetVertexSize() const;
  34561. bool HasElement(VertexElementSemantic, int8 = 0) const;
  34562. bool HasElement(VertexElementType, VertexElementSemantic, int8 = 0) const;
  34563. bool HasEventHandlers() const;
  34564. bool HasPendingData() const;
  34565. bool HasSubscribedToEvent(Object, StringHash) const;
  34566. bool HasSubscribedToEvent(StringHash) const;
  34567. bool IsDataLost() const;
  34568. bool IsDynamic() const;
  34569. bool IsInstanceOf(StringHash) const;
  34570. bool IsLocked() const;
  34571. bool IsShadowed() const;
  34572. operator Object() const;
  34573. void OnDeviceLost();
  34574. void OnDeviceReset();
  34575. void OnEvent(Object, StringHash, VariantMap&);
  34576. operator RefCounted() const;
  34577. int Refs() const;
  34578. void Release();
  34579. void SendEvent(StringHash);
  34580. void SendEvent(StringHash, VariantMap&);
  34581. void SetBlockEvents(bool);
  34582. bool SetData(VectorBuffer&);
  34583. bool SetDataRange(VectorBuffer&, uint, uint, bool = false);
  34584. void SetGlobalVar(StringHash, const Variant&);
  34585. void SetShadowed(bool);
  34586. bool SetSize(int, Array<VertexElement>, bool = false);
  34587. bool SetSize(int, uint, bool = false);
  34588. const String& GetCategory() const;
  34589. const String& GetTypeName() const;
  34590. void Unlock();
  34591. void UnsubscribeFromAllEvents();
  34592. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  34593. void UnsubscribeFromEvent(Object, StringHash);
  34594. void UnsubscribeFromEvent(StringHash);
  34595. void UnsubscribeFromEvents(Object);
  34596. const Variant& GetGlobalVar(StringHash) const;
  34597. const VariantMap& GetGlobalVars() const;
  34598. int WeakRefs() const;
  34599. operator const Object() const;
  34600. operator const RefCounted() const;
  34601. // Properties:
  34602. /* readonly */
  34603. String category;
  34604. /* readonly */
  34605. bool dataLost;
  34606. /* readonly */
  34607. bool dynamic;
  34608. /* readonly */
  34609. uint elementMask;
  34610. /* readonly */
  34611. Array<VertexElement> elements;
  34612. Array<Variant> globalVar;
  34613. /* readonly */
  34614. VariantMap globalVars;
  34615. /* readonly */
  34616. int refs;
  34617. bool shadowed;
  34618. /* readonly */
  34619. StringHash type;
  34620. /* readonly */
  34621. String typeName;
  34622. /* readonly */
  34623. int vertexCount;
  34624. /* readonly */
  34625. int vertexSize;
  34626. /* readonly */
  34627. int weakRefs;
  34628. };
  34629. class VertexBufferDesc
  34630. {
  34631. public:
  34632. ~VertexBufferDesc();
  34633. VertexBufferDesc();
  34634. // Methods:
  34635. VertexBufferDesc& operator=(const VertexBufferDesc&);
  34636. // Properties:
  34637. uint dataSize;
  34638. uint vertexCount;
  34639. };
  34640. class VertexBufferMorph
  34641. {
  34642. public:
  34643. ~VertexBufferMorph();
  34644. VertexBufferMorph();
  34645. // Methods:
  34646. VertexBufferMorph& operator=(const VertexBufferMorph&);
  34647. // Properties:
  34648. uint dataSize;
  34649. uint elementMask;
  34650. uint vertexCount;
  34651. };
  34652. class VertexElement
  34653. {
  34654. public:
  34655. ~VertexElement();
  34656. VertexElement();
  34657. VertexElement(VertexElementType, VertexElementSemantic, int8 = 0, bool = false);
  34658. // Methods:
  34659. VertexElement& operator=(const VertexElement&);
  34660. bool operator==(const VertexElement&) const;
  34661. // Properties:
  34662. int8 index;
  34663. int offset;
  34664. bool perInstance;
  34665. VertexElementSemantic semantic;
  34666. VertexElementType type;
  34667. };
  34668. class View
  34669. {
  34670. public:
  34671. View();
  34672. // Methods:
  34673. bool Define(RenderSurface, Viewport);
  34674. void DrawFullscreenQuad(bool = false);
  34675. Texture FindNamedTexture(const String&, bool, bool = false);
  34676. const FrameInfo& GetFrameInfo() const;
  34677. bool GetBlockEvents() const;
  34678. Camera GetCamera() const;
  34679. Camera GetCullCamera() const;
  34680. bool GetDrawDebug() const;
  34681. VariantMap& GetEventDataMap() const;
  34682. Object GetEventSender() const;
  34683. Array<Drawable> GetGeometries() const;
  34684. Graphics GetGraphics() const;
  34685. Array<LightBatchQueue> GetLightQueues() const;
  34686. Array<Light> GetLights() const;
  34687. uint GetNumActiveOccluders() const;
  34688. Array<Drawable> GetOccluders() const;
  34689. OcclusionBuffer GetOcclusionBuffer() const;
  34690. Octree GetOctree() const;
  34691. RenderSurface GetRenderTarget() const;
  34692. Renderer GetRenderer() const;
  34693. Scene GetScene() const;
  34694. View GetSourceView() const;
  34695. Object GetSubsystem(StringHash) const;
  34696. StringHash GetType() const;
  34697. bool HasEventHandlers() const;
  34698. bool HasSubscribedToEvent(Object, StringHash) const;
  34699. bool HasSubscribedToEvent(StringHash) const;
  34700. const IntRect& GetViewRect() const;
  34701. const IntVector2& GetViewSize() const;
  34702. bool IsInstanceOf(StringHash) const;
  34703. operator Object() const;
  34704. void OnEvent(Object, StringHash, VariantMap&);
  34705. operator RefCounted() const;
  34706. int Refs() const;
  34707. void Render();
  34708. void SendEvent(StringHash);
  34709. void SendEvent(StringHash, VariantMap&);
  34710. void SetBlockEvents(bool);
  34711. void SetCameraShaderParameters(Camera);
  34712. void SetCommandShaderParameters(const RenderPathCommand&);
  34713. void SetGBufferShaderParameters(const IntVector2&, const IntRect&);
  34714. void SetGlobalShaderParameters();
  34715. void SetGlobalVar(StringHash, const Variant&);
  34716. const String& GetCategory() const;
  34717. const String& GetTypeName() const;
  34718. void UnsubscribeFromAllEvents();
  34719. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  34720. void UnsubscribeFromEvent(Object, StringHash);
  34721. void UnsubscribeFromEvent(StringHash);
  34722. void UnsubscribeFromEvents(Object);
  34723. void Update(const FrameInfo&);
  34724. const Variant& GetGlobalVar(StringHash) const;
  34725. const VariantMap& GetGlobalVars() const;
  34726. int WeakRefs() const;
  34727. operator const Object() const;
  34728. operator const RefCounted() const;
  34729. // Properties:
  34730. /* readonly */
  34731. String category;
  34732. Array<Variant> globalVar;
  34733. /* readonly */
  34734. VariantMap globalVars;
  34735. /* readonly */
  34736. int refs;
  34737. /* readonly */
  34738. StringHash type;
  34739. /* readonly */
  34740. String typeName;
  34741. /* readonly */
  34742. int weakRefs;
  34743. };
  34744. class View3D
  34745. {
  34746. public:
  34747. View3D();
  34748. // Methods:
  34749. void AddChild(UIElement);
  34750. void AddTag(const String&);
  34751. void AddTags(Array<String>);
  34752. void AddTags(const String&, int8 = ';');
  34753. void AdjustScissor(IntRect&);
  34754. void AllocateNetworkState();
  34755. operator Animatable() const;
  34756. void ApplyAttributes();
  34757. operator BorderImage() const;
  34758. void BringToFront();
  34759. const Color& GetColor(Corner) const;
  34760. const Color& GetColorAttr() const;
  34761. const Color& GetDerivedColor() const;
  34762. const Color& GetModalFrameColor() const;
  34763. const Color& GetModalShadeColor() const;
  34764. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  34765. void DisableLayoutUpdate();
  34766. IntVector2 ElementToScreen(const IntVector2&);
  34767. void EnableLayoutUpdate();
  34768. bool FilterAttributes(XMLElement&) const;
  34769. int FindChild(UIElement) const;
  34770. bool GetAnimationEnabled() const;
  34771. Variant GetAttribute(const String&) const;
  34772. Variant GetAttribute(uint) const;
  34773. ValueAnimation GetAttributeAnimation(const String&) const;
  34774. float GetAttributeAnimationSpeed(const String&) const;
  34775. float GetAttributeAnimationTime(const String&) const;
  34776. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  34777. Variant GetAttributeDefault(const String&) const;
  34778. Variant GetAttributeDefault(uint) const;
  34779. bool GetAutoUpdate() const;
  34780. BlendMode GetBlendMode() const;
  34781. bool GetBlockEvents() const;
  34782. bool GetBringToBack() const;
  34783. bool GetBringToFront() const;
  34784. Node GetCameraNode() const;
  34785. UIElement GetChild(const String&, bool = false) const;
  34786. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  34787. UIElement GetChild(int) const;
  34788. Array<UIElement> GetChildren() const;
  34789. Array<UIElement> GetChildren(bool) const;
  34790. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  34791. bool GetClipChildren() const;
  34792. IntRect GetCombinedScreenRect();
  34793. XMLFile GetDefaultStyle(bool = true) const;
  34794. Texture2D GetDepthTexture() const;
  34795. float GetDerivedOpacity() const;
  34796. uint GetDragButtonCombo() const;
  34797. int GetDragButtonCount() const;
  34798. uint GetDragDropMode() const;
  34799. IntVector2 GetEffectiveMinSize() const;
  34800. UIElement GetElementEventSender() const;
  34801. bool GetEnableAnchor() const;
  34802. VariantMap& GetEventDataMap() const;
  34803. Object GetEventSender() const;
  34804. bool GetFixedHeightResizing() const;
  34805. bool GetFixedWidthResizing() const;
  34806. FocusMode GetFocusMode() const;
  34807. uint GetFormat() const;
  34808. int GetHeight() const;
  34809. HorizontalAlignment GetHorizontalAlignment() const;
  34810. int GetIndent() const;
  34811. int GetIndentSpacing() const;
  34812. int GetIndentWidth() const;
  34813. bool GetInterceptNetworkUpdate(const String&) const;
  34814. int GetLayoutElementMaxSize() const;
  34815. LayoutMode GetLayoutMode() const;
  34816. int GetLayoutSpacing() const;
  34817. Material GetMaterial() const;
  34818. ResourceRef GetMaterialAttr() const;
  34819. int GetMaxHeight() const;
  34820. int GetMaxWidth() const;
  34821. int GetMinHeight() const;
  34822. int GetMinWidth() const;
  34823. bool GetModalAutoDismiss() const;
  34824. uint GetNumAttributes() const;
  34825. int GetNumChildren(bool = false) const;
  34826. uint GetNumNetworkAttributes() const;
  34827. ObjectAnimation GetObjectAnimation() const;
  34828. ResourceRef GetObjectAnimationAttr() const;
  34829. float GetOpacity() const;
  34830. UIElement GetParent() const;
  34831. int GetPriority() const;
  34832. Texture2D GetRenderTexture() const;
  34833. UIElement GetRoot() const;
  34834. Scene GetScene() const;
  34835. bool GetSortChildren() const;
  34836. Object GetSubsystem(StringHash) const;
  34837. Array<String> GetTags() const;
  34838. Texture GetTexture() const;
  34839. ResourceRef GetTextureAttr() const;
  34840. TraversalMode GetTraversalMode() const;
  34841. StringHash GetType() const;
  34842. bool GetUseDerivedOpacity() const;
  34843. VerticalAlignment GetVerticalAlignment() const;
  34844. Viewport GetViewport() const;
  34845. int GetWidth() const;
  34846. bool HasColorGradient() const;
  34847. bool HasEventHandlers() const;
  34848. bool HasFocus() const;
  34849. bool HasSubscribedToEvent(Object, StringHash) const;
  34850. bool HasSubscribedToEvent(StringHash) const;
  34851. bool HasTag(const String&) const;
  34852. void InsertChild(int, UIElement);
  34853. const IntRect& GetBorder() const;
  34854. const IntRect& GetClipBorder() const;
  34855. const IntRect& GetImageBorder() const;
  34856. const IntRect& GetImageRect() const;
  34857. const IntRect& GetLayoutBorder() const;
  34858. const IntRect& GetResizeBorder() const;
  34859. const IntVector2& GetChildOffset() const;
  34860. const IntVector2& GetDisabledOffset() const;
  34861. const IntVector2& GetHoverOffset() const;
  34862. const IntVector2& GetMaxOffset() const;
  34863. const IntVector2& GetMaxSize() const;
  34864. const IntVector2& GetMinOffset() const;
  34865. const IntVector2& GetMinSize() const;
  34866. const IntVector2& GetModalFrameSize() const;
  34867. const IntVector2& GetPosition() const;
  34868. const IntVector2& GetScreenPosition() const;
  34869. const IntVector2& GetSize() const;
  34870. bool IsChildOf(UIElement) const;
  34871. bool IsEditable() const;
  34872. bool IsElementEventSender() const;
  34873. bool IsEnabled() const;
  34874. bool IsEnabledSelf() const;
  34875. bool IsFixedHeight() const;
  34876. bool IsFixedSize() const;
  34877. bool IsFixedWidth() const;
  34878. bool IsHovering() const;
  34879. bool IsInside(IntVector2, bool);
  34880. bool IsInsideCombined(IntVector2, bool);
  34881. bool IsInstanceOf(StringHash) const;
  34882. bool IsInternal() const;
  34883. bool IsModal() const;
  34884. bool IsMovable() const;
  34885. bool IsResizable() const;
  34886. bool IsSelected() const;
  34887. bool IsTemporary() const;
  34888. bool IsTiled() const;
  34889. bool IsVisible() const;
  34890. bool IsVisibleEffective() const;
  34891. bool IsWheelHandler() const;
  34892. bool IsWithinScissor(const IntRect&);
  34893. bool Load(Deserializer&);
  34894. UIElement LoadChildXML(XMLFile, XMLFile);
  34895. UIElement LoadChildXML(const XMLElement&, XMLFile);
  34896. bool LoadJSON(const JSONValue&);
  34897. bool LoadXML(Deserializer&);
  34898. bool LoadXML(File);
  34899. bool LoadXML(VectorBuffer&);
  34900. bool LoadXML(XMLFile, XMLFile);
  34901. bool LoadXML(const XMLElement&);
  34902. bool LoadXML(const XMLElement&, XMLFile);
  34903. void MarkNetworkUpdate();
  34904. operator Object() const;
  34905. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  34906. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  34907. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  34908. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34909. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34910. bool OnDragDropFinish(UIElement);
  34911. bool OnDragDropTest(UIElement);
  34912. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34913. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34914. void OnEvent(Object, StringHash, VariantMap&);
  34915. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  34916. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  34917. void OnIndentSet();
  34918. void OnKey(uint, uint, uint);
  34919. void OnPositionSet(const IntVector2&);
  34920. void OnResize(const IntVector2&, const IntVector2&);
  34921. void OnSetAttribute(const AttributeInfo&, const Variant&);
  34922. void OnSetEditable();
  34923. void OnTextInput(const String&);
  34924. void OnWheel(int, uint, uint);
  34925. void QueueUpdate();
  34926. bool ReadDeltaUpdate(Deserializer&);
  34927. bool ReadLatestDataUpdate(Deserializer&);
  34928. operator RefCounted() const;
  34929. int Refs() const;
  34930. void Remove();
  34931. void RemoveAllChildren();
  34932. void RemoveAllTags();
  34933. void RemoveAttributeAnimation(const String&);
  34934. void RemoveChild(UIElement, int = 0);
  34935. void RemoveChild(uint);
  34936. void RemoveChildAtIndex(int);
  34937. void RemoveInstanceDefault();
  34938. void RemoveObjectAnimation();
  34939. bool RemoveTag(const String&);
  34940. void ResetDeepEnabled();
  34941. void ResetToDefault();
  34942. bool Save(Serializer&) const;
  34943. bool SaveDefaultAttributes() const;
  34944. bool SaveJSON(JSONValue&) const;
  34945. bool SaveXML(File, const String& indentation = "\t");
  34946. bool SaveXML(Serializer&, const String& = "\t") const;
  34947. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  34948. bool SaveXML(XMLElement&) const;
  34949. IntVector2 ScreenToElement(const IntVector2&);
  34950. void SendEvent(StringHash);
  34951. void SendEvent(StringHash, VariantMap&);
  34952. operator Serializable() const;
  34953. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  34954. void SetAnimationEnabled(bool);
  34955. void SetAnimationTime(float);
  34956. bool SetAttribute(const String&, const Variant&);
  34957. bool SetAttribute(uint, const Variant&);
  34958. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  34959. void SetAttributeAnimationSpeed(const String&, float);
  34960. void SetAttributeAnimationTime(const String&, float);
  34961. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  34962. void SetAutoUpdate(bool);
  34963. void SetBlendMode(BlendMode);
  34964. void SetBlockEvents(bool);
  34965. void SetBorder(const IntRect&);
  34966. void SetBringToBack(bool);
  34967. void SetBringToFront(bool);
  34968. void SetChildOffset(const IntVector2&);
  34969. void SetClipBorder(const IntRect&);
  34970. void SetClipChildren(bool);
  34971. void SetColor(Corner, const Color&);
  34972. void SetColor(const Color&);
  34973. void SetDeepEnabled(bool);
  34974. void SetDefaultStyle(XMLFile);
  34975. void SetDisabledOffset(const IntVector2&);
  34976. void SetDisabledOffset(int, int);
  34977. void SetDragDropMode(uint);
  34978. void SetEditable(bool);
  34979. void SetElementEventSender(bool);
  34980. void SetEnableAnchor(bool);
  34981. void SetEnabled(bool);
  34982. void SetEnabledRecursive(bool);
  34983. void SetFixedHeight(int);
  34984. void SetFixedHeightResizing(bool);
  34985. void SetFixedSize(const IntVector2&);
  34986. void SetFixedSize(int, int);
  34987. void SetFixedWidth(int);
  34988. void SetFixedWidthResizing(bool);
  34989. void SetFocus(bool);
  34990. void SetFocusMode(FocusMode);
  34991. void SetFormat(uint);
  34992. void SetFullImageRect();
  34993. void SetGlobalVar(StringHash, const Variant&);
  34994. void SetHeight(int);
  34995. void SetHorizontalAlignment(HorizontalAlignment);
  34996. void SetHoverOffset(const IntVector2&);
  34997. void SetHoverOffset(int, int);
  34998. void SetHovering(bool);
  34999. void SetImageBorder(const IntRect&);
  35000. void SetImageRect(const IntRect&);
  35001. void SetIndent(int);
  35002. void SetIndentSpacing(int);
  35003. void SetInstanceDefault(bool);
  35004. void SetInterceptNetworkUpdate(const String&, bool);
  35005. void SetInternal(bool);
  35006. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  35007. void SetLayoutBorder(const IntRect&);
  35008. void SetLayoutFlexScale(const Vector2&);
  35009. void SetLayoutMode(LayoutMode);
  35010. void SetLayoutSpacing(int);
  35011. void SetMaterial(Material);
  35012. void SetMaterialAttr(const ResourceRef&);
  35013. void SetMaxAnchor(const Vector2&);
  35014. void SetMaxAnchor(float, float);
  35015. void SetMaxHeight(int);
  35016. void SetMaxOffset(const IntVector2&);
  35017. void SetMaxSize(const IntVector2&);
  35018. void SetMaxSize(int, int);
  35019. void SetMaxWidth(int);
  35020. void SetMinAnchor(const Vector2&);
  35021. void SetMinAnchor(float, float);
  35022. void SetMinHeight(int);
  35023. void SetMinOffset(const IntVector2&);
  35024. void SetMinSize(const IntVector2&);
  35025. void SetMinSize(int, int);
  35026. void SetMinWidth(int);
  35027. void SetModal(bool);
  35028. void SetModalAutoDismiss(bool);
  35029. void SetModalFrameColor(const Color&);
  35030. void SetModalFrameSize(const IntVector2&);
  35031. void SetModalShadeColor(const Color&);
  35032. void SetMovable(bool);
  35033. void SetName(const String&);
  35034. void SetObjectAnimation(ObjectAnimation);
  35035. void SetObjectAnimationAttr(const ResourceRef&);
  35036. void SetOpacity(float);
  35037. void SetParent(UIElement, int = ENDPOS);
  35038. void SetPivot(const Vector2&);
  35039. void SetPivot(float, float);
  35040. void SetPosition(const IntVector2&);
  35041. void SetPosition(int, int);
  35042. void SetPriority(int);
  35043. void SetRenderTexture(Texture2D);
  35044. void SetResizable(bool);
  35045. void SetResizeBorder(const IntRect&);
  35046. void SetSelected(bool);
  35047. void SetSize(const IntVector2&);
  35048. void SetSize(int, int);
  35049. void SetSortChildren(bool);
  35050. bool SetStyle(const String&, XMLFile = null);
  35051. bool SetStyle(const XMLElement&);
  35052. bool SetStyleAuto(XMLFile = null);
  35053. void SetTags(Array<String>);
  35054. void SetTemporary(bool);
  35055. void SetTexture(Texture);
  35056. void SetTextureAttr(const ResourceRef&);
  35057. void SetTiled(bool);
  35058. void SetTraversalMode(TraversalMode);
  35059. void SetUseDerivedOpacity(bool);
  35060. void SetVar(StringHash, const Variant&);
  35061. void SetVerticalAlignment(VerticalAlignment);
  35062. void SetView(Scene, Camera, bool = true);
  35063. void SetVisible(bool);
  35064. void SetWidth(int);
  35065. void SortChildren();
  35066. const String& GetAppliedStyle() const;
  35067. const String& GetCategory() const;
  35068. const String& GetName() const;
  35069. const String& GetTypeName() const;
  35070. operator UIElement() const;
  35071. void UnsubscribeFromAllEvents();
  35072. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35073. void UnsubscribeFromEvent(Object, StringHash);
  35074. void UnsubscribeFromEvent(StringHash);
  35075. void UnsubscribeFromEvents(Object);
  35076. void Update(float);
  35077. void UpdateLayout();
  35078. const Variant& GetGlobalVar(StringHash) const;
  35079. const Variant& GetVar(const StringHash&) const;
  35080. const VariantMap& GetGlobalVars() const;
  35081. const VariantMap& GetVars() const;
  35082. const Vector2& GetLayoutFlexScale() const;
  35083. const Vector2& GetMaxAnchor() const;
  35084. const Vector2& GetMinAnchor() const;
  35085. const Vector2& GetPivot() const;
  35086. int WeakRefs() const;
  35087. operator Window() const;
  35088. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  35089. void WriteInitialDeltaUpdate(Serializer&, uint8);
  35090. void WriteLatestDataUpdate(Serializer&, uint8);
  35091. operator const Animatable() const;
  35092. operator const BorderImage() const;
  35093. operator const Object() const;
  35094. operator const RefCounted() const;
  35095. operator const Serializable() const;
  35096. operator const UIElement() const;
  35097. operator const Window() const;
  35098. // Properties:
  35099. bool animationEnabled;
  35100. /* readonly */
  35101. Array<Variant> attributeDefaults;
  35102. /* readonly */
  35103. Array<AttributeInfo> attributeInfos;
  35104. Array<Variant> attributes;
  35105. bool autoUpdate;
  35106. BlendMode blendMode;
  35107. IntRect border;
  35108. bool bringToBack;
  35109. bool bringToFront;
  35110. /* readonly */
  35111. Node cameraNode;
  35112. /* readonly */
  35113. String category;
  35114. /* readonly */
  35115. IntVector2 childOffset;
  35116. /* readonly */
  35117. Array<UIElement> children;
  35118. IntRect clipBorder;
  35119. bool clipChildren;
  35120. /* writeonly */
  35121. Color color;
  35122. /* readonly */
  35123. bool colorGradient;
  35124. Array<Color> colors;
  35125. /* readonly */
  35126. IntRect combinedScreenRect;
  35127. XMLFile defaultStyle;
  35128. /* readonly */
  35129. Texture2D depthTexture;
  35130. /* readonly */
  35131. float derivedOpacity;
  35132. IntVector2 disabledOffset;
  35133. /* readonly */
  35134. uint dragButtonCombo;
  35135. /* readonly */
  35136. int dragButtonCount;
  35137. uint dragDropMode;
  35138. bool editable;
  35139. bool elementEventSender;
  35140. bool enableAnchor;
  35141. bool enabled;
  35142. /* readonly */
  35143. bool enabledSelf;
  35144. /* readonly */
  35145. bool fixedHeight;
  35146. bool fixedHeightResizing;
  35147. /* readonly */
  35148. bool fixedSize;
  35149. /* readonly */
  35150. bool fixedWidth;
  35151. bool fixedWidthResizing;
  35152. bool focus;
  35153. FocusMode focusMode;
  35154. uint format;
  35155. Array<Variant> globalVar;
  35156. /* readonly */
  35157. VariantMap globalVars;
  35158. int height;
  35159. HorizontalAlignment horizontalAlignment;
  35160. IntVector2 hoverOffset;
  35161. /* readonly */
  35162. bool hovering;
  35163. IntRect imageBorder;
  35164. IntRect imageRect;
  35165. int indent;
  35166. int indentSpacing;
  35167. /* readonly */
  35168. int indentWidth;
  35169. bool internal;
  35170. IntRect layoutBorder;
  35171. Vector2 layoutFlexScale;
  35172. LayoutMode layoutMode;
  35173. int layoutSpacing;
  35174. Material material;
  35175. Vector2 maxAnchor;
  35176. int maxHeight;
  35177. IntVector2 maxOffset;
  35178. IntVector2 maxSize;
  35179. int maxWidth;
  35180. Vector2 minAnchor;
  35181. int minHeight;
  35182. IntVector2 minOffset;
  35183. IntVector2 minSize;
  35184. int minWidth;
  35185. bool modal;
  35186. bool modalAutoDismiss;
  35187. Color modalFrameColor;
  35188. IntVector2 modalFrameSize;
  35189. Color modalShadeColor;
  35190. bool movable;
  35191. String name;
  35192. /* readonly */
  35193. uint numAllChildren;
  35194. /* readonly */
  35195. uint numAttributes;
  35196. /* readonly */
  35197. uint numChildren;
  35198. ObjectAnimation objectAnimation;
  35199. float opacity;
  35200. UIElement parent;
  35201. Vector2 pivot;
  35202. IntVector2 position;
  35203. int priority;
  35204. /* readonly */
  35205. int refs;
  35206. /* readonly */
  35207. Texture2D renderTexture;
  35208. bool resizable;
  35209. IntRect resizeBorder;
  35210. /* readonly */
  35211. UIElement root;
  35212. /* readonly */
  35213. Scene scene;
  35214. /* readonly */
  35215. IntVector2 screenPosition;
  35216. bool selected;
  35217. IntVector2 size;
  35218. bool sortChildren;
  35219. String style;
  35220. /* readonly */
  35221. Array<String> tags;
  35222. bool temporary;
  35223. Texture texture;
  35224. bool tiled;
  35225. TraversalMode traversalMode;
  35226. /* readonly */
  35227. StringHash type;
  35228. /* readonly */
  35229. String typeName;
  35230. bool useDerivedOpacity;
  35231. /* readonly */
  35232. VariantMap vars;
  35233. VerticalAlignment verticalAlignment;
  35234. /* readonly */
  35235. Viewport viewport;
  35236. bool visible;
  35237. /* readonly */
  35238. bool visibleEffective;
  35239. /* readonly */
  35240. int weakRefs;
  35241. int width;
  35242. };
  35243. class Viewport
  35244. {
  35245. public:
  35246. Viewport();
  35247. Viewport(Scene&, Camera&, RenderPath& = null);
  35248. Viewport(Scene&, Camera&, const IntRect&in, RenderPath& = null);
  35249. // Methods:
  35250. void AllocateView();
  35251. bool GetBlockEvents() const;
  35252. Camera GetCamera() const;
  35253. Camera GetCullCamera() const;
  35254. bool GetDrawDebug() const;
  35255. VariantMap& GetEventDataMap() const;
  35256. Object GetEventSender() const;
  35257. RenderPath GetRenderPath() const;
  35258. Scene GetScene() const;
  35259. Ray GetScreenRay(int, int) const;
  35260. Object GetSubsystem(StringHash) const;
  35261. StringHash GetType() const;
  35262. View GetView() const;
  35263. bool HasEventHandlers() const;
  35264. bool HasSubscribedToEvent(Object, StringHash) const;
  35265. bool HasSubscribedToEvent(StringHash) const;
  35266. const IntRect& GetRect() const;
  35267. bool IsInstanceOf(StringHash) const;
  35268. operator Object() const;
  35269. void OnEvent(Object, StringHash, VariantMap&);
  35270. operator RefCounted() const;
  35271. int Refs() const;
  35272. Vector3 ScreenToWorldPoint(int, int, float) const;
  35273. void SendEvent(StringHash);
  35274. void SendEvent(StringHash, VariantMap&);
  35275. void SetBlockEvents(bool);
  35276. void SetCamera(Camera);
  35277. void SetCullCamera(Camera);
  35278. void SetDrawDebug(bool);
  35279. void SetGlobalVar(StringHash, const Variant&);
  35280. void SetRect(const IntRect&);
  35281. void SetRenderPath(RenderPath);
  35282. bool SetRenderPath(XMLFile);
  35283. void SetScene(Scene);
  35284. const String& GetCategory() const;
  35285. const String& GetTypeName() const;
  35286. void UnsubscribeFromAllEvents();
  35287. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35288. void UnsubscribeFromEvent(Object, StringHash);
  35289. void UnsubscribeFromEvent(StringHash);
  35290. void UnsubscribeFromEvents(Object);
  35291. const Variant& GetGlobalVar(StringHash) const;
  35292. const VariantMap& GetGlobalVars() const;
  35293. int WeakRefs() const;
  35294. IntVector2 WorldToScreenPoint(const Vector3&) const;
  35295. operator const Object() const;
  35296. operator const RefCounted() const;
  35297. // Properties:
  35298. Camera camera;
  35299. /* readonly */
  35300. String category;
  35301. Camera cullCamera;
  35302. bool drawDebug;
  35303. Array<Variant> globalVar;
  35304. /* readonly */
  35305. VariantMap globalVars;
  35306. IntRect rect;
  35307. /* readonly */
  35308. int refs;
  35309. RenderPath renderPath;
  35310. Scene scene;
  35311. /* readonly */
  35312. StringHash type;
  35313. /* readonly */
  35314. String typeName;
  35315. /* readonly */
  35316. int weakRefs;
  35317. };
  35318. class WeakHandle
  35319. {
  35320. public:
  35321. ~WeakHandle();
  35322. WeakHandle();
  35323. WeakHandle(const WeakHandle&in);
  35324. WeakHandle(RefCounted@);
  35325. // Methods:
  35326. WeakHandle& operator=(RefCounted);
  35327. WeakHandle& operator=(const WeakHandle&);
  35328. RefCounted Get() const;
  35329. // Properties:
  35330. /* readonly */
  35331. bool expired;
  35332. /* readonly */
  35333. int refs;
  35334. /* readonly */
  35335. int weakRefs;
  35336. };
  35337. class Window
  35338. {
  35339. public:
  35340. Window();
  35341. // Methods:
  35342. void AddChild(UIElement);
  35343. void AddTag(const String&);
  35344. void AddTags(Array<String>);
  35345. void AddTags(const String&, int8 = ';');
  35346. void AdjustScissor(IntRect&);
  35347. void AllocateNetworkState();
  35348. operator Animatable() const;
  35349. void ApplyAttributes();
  35350. operator BorderImage() const;
  35351. void BringToFront();
  35352. const Color& GetColor(Corner) const;
  35353. const Color& GetColorAttr() const;
  35354. const Color& GetDerivedColor() const;
  35355. const Color& GetModalFrameColor() const;
  35356. const Color& GetModalShadeColor() const;
  35357. UIElement CreateChild(StringHash, const String& = String :: EMPTY, int = ENDPOS);
  35358. void DisableLayoutUpdate();
  35359. IntVector2 ElementToScreen(const IntVector2&);
  35360. void EnableLayoutUpdate();
  35361. bool FilterAttributes(XMLElement&) const;
  35362. int FindChild(UIElement) const;
  35363. bool GetAnimationEnabled() const;
  35364. Variant GetAttribute(const String&) const;
  35365. Variant GetAttribute(uint) const;
  35366. ValueAnimation GetAttributeAnimation(const String&) const;
  35367. float GetAttributeAnimationSpeed(const String&) const;
  35368. float GetAttributeAnimationTime(const String&) const;
  35369. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  35370. Variant GetAttributeDefault(const String&) const;
  35371. Variant GetAttributeDefault(uint) const;
  35372. BlendMode GetBlendMode() const;
  35373. bool GetBlockEvents() const;
  35374. bool GetBringToBack() const;
  35375. bool GetBringToFront() const;
  35376. UIElement GetChild(const String&, bool = false) const;
  35377. UIElement GetChild(const StringHash&, const Variant& = Variant :: EMPTY, bool = false) const;
  35378. UIElement GetChild(int) const;
  35379. Array<UIElement> GetChildren() const;
  35380. Array<UIElement> GetChildren(bool) const;
  35381. Array<UIElement> GetChildrenWithTag(const String&, bool = false) const;
  35382. bool GetClipChildren() const;
  35383. IntRect GetCombinedScreenRect();
  35384. XMLFile GetDefaultStyle(bool = true) const;
  35385. float GetDerivedOpacity() const;
  35386. uint GetDragButtonCombo() const;
  35387. int GetDragButtonCount() const;
  35388. uint GetDragDropMode() const;
  35389. IntVector2 GetEffectiveMinSize() const;
  35390. UIElement GetElementEventSender() const;
  35391. bool GetEnableAnchor() const;
  35392. VariantMap& GetEventDataMap() const;
  35393. Object GetEventSender() const;
  35394. bool GetFixedHeightResizing() const;
  35395. bool GetFixedWidthResizing() const;
  35396. FocusMode GetFocusMode() const;
  35397. int GetHeight() const;
  35398. HorizontalAlignment GetHorizontalAlignment() const;
  35399. int GetIndent() const;
  35400. int GetIndentSpacing() const;
  35401. int GetIndentWidth() const;
  35402. bool GetInterceptNetworkUpdate(const String&) const;
  35403. int GetLayoutElementMaxSize() const;
  35404. LayoutMode GetLayoutMode() const;
  35405. int GetLayoutSpacing() const;
  35406. Material GetMaterial() const;
  35407. ResourceRef GetMaterialAttr() const;
  35408. int GetMaxHeight() const;
  35409. int GetMaxWidth() const;
  35410. int GetMinHeight() const;
  35411. int GetMinWidth() const;
  35412. bool GetModalAutoDismiss() const;
  35413. uint GetNumAttributes() const;
  35414. int GetNumChildren(bool = false) const;
  35415. uint GetNumNetworkAttributes() const;
  35416. ObjectAnimation GetObjectAnimation() const;
  35417. ResourceRef GetObjectAnimationAttr() const;
  35418. float GetOpacity() const;
  35419. UIElement GetParent() const;
  35420. int GetPriority() const;
  35421. UIElement GetRoot() const;
  35422. bool GetSortChildren() const;
  35423. Object GetSubsystem(StringHash) const;
  35424. Array<String> GetTags() const;
  35425. Texture GetTexture() const;
  35426. ResourceRef GetTextureAttr() const;
  35427. TraversalMode GetTraversalMode() const;
  35428. StringHash GetType() const;
  35429. bool GetUseDerivedOpacity() const;
  35430. VerticalAlignment GetVerticalAlignment() const;
  35431. int GetWidth() const;
  35432. bool HasColorGradient() const;
  35433. bool HasEventHandlers() const;
  35434. bool HasFocus() const;
  35435. bool HasSubscribedToEvent(Object, StringHash) const;
  35436. bool HasSubscribedToEvent(StringHash) const;
  35437. bool HasTag(const String&) const;
  35438. void InsertChild(int, UIElement);
  35439. const IntRect& GetBorder() const;
  35440. const IntRect& GetClipBorder() const;
  35441. const IntRect& GetImageBorder() const;
  35442. const IntRect& GetImageRect() const;
  35443. const IntRect& GetLayoutBorder() const;
  35444. const IntRect& GetResizeBorder() const;
  35445. const IntVector2& GetChildOffset() const;
  35446. const IntVector2& GetDisabledOffset() const;
  35447. const IntVector2& GetHoverOffset() const;
  35448. const IntVector2& GetMaxOffset() const;
  35449. const IntVector2& GetMaxSize() const;
  35450. const IntVector2& GetMinOffset() const;
  35451. const IntVector2& GetMinSize() const;
  35452. const IntVector2& GetModalFrameSize() const;
  35453. const IntVector2& GetPosition() const;
  35454. const IntVector2& GetScreenPosition() const;
  35455. const IntVector2& GetSize() const;
  35456. bool IsChildOf(UIElement) const;
  35457. bool IsEditable() const;
  35458. bool IsElementEventSender() const;
  35459. bool IsEnabled() const;
  35460. bool IsEnabledSelf() const;
  35461. bool IsFixedHeight() const;
  35462. bool IsFixedSize() const;
  35463. bool IsFixedWidth() const;
  35464. bool IsHovering() const;
  35465. bool IsInside(IntVector2, bool);
  35466. bool IsInsideCombined(IntVector2, bool);
  35467. bool IsInstanceOf(StringHash) const;
  35468. bool IsInternal() const;
  35469. bool IsModal() const;
  35470. bool IsMovable() const;
  35471. bool IsResizable() const;
  35472. bool IsSelected() const;
  35473. bool IsTemporary() const;
  35474. bool IsTiled() const;
  35475. bool IsVisible() const;
  35476. bool IsVisibleEffective() const;
  35477. bool IsWheelHandler() const;
  35478. bool IsWithinScissor(const IntRect&);
  35479. bool Load(Deserializer&);
  35480. UIElement LoadChildXML(XMLFile, XMLFile);
  35481. UIElement LoadChildXML(const XMLElement&, XMLFile);
  35482. bool LoadJSON(const JSONValue&);
  35483. bool LoadXML(Deserializer&);
  35484. bool LoadXML(File);
  35485. bool LoadXML(VectorBuffer&);
  35486. bool LoadXML(XMLFile, XMLFile);
  35487. bool LoadXML(const XMLElement&);
  35488. bool LoadXML(const XMLElement&, XMLFile);
  35489. void MarkNetworkUpdate();
  35490. operator Object() const;
  35491. void OnClickBegin(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  35492. void OnClickEnd(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor, UIElement);
  35493. void OnDoubleClick(const IntVector2&, const IntVector2&, uint, uint, uint, Cursor);
  35494. void OnDragBegin(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35495. void OnDragCancel(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35496. bool OnDragDropFinish(UIElement);
  35497. bool OnDragDropTest(UIElement);
  35498. void OnDragEnd(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35499. void OnDragMove(const IntVector2&, const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35500. void OnEvent(Object, StringHash, VariantMap&);
  35501. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  35502. void OnHover(const IntVector2&, const IntVector2&, uint, uint, Cursor);
  35503. void OnIndentSet();
  35504. void OnKey(uint, uint, uint);
  35505. void OnPositionSet(const IntVector2&);
  35506. void OnResize(const IntVector2&, const IntVector2&);
  35507. void OnSetAttribute(const AttributeInfo&, const Variant&);
  35508. void OnSetEditable();
  35509. void OnTextInput(const String&);
  35510. void OnWheel(int, uint, uint);
  35511. bool ReadDeltaUpdate(Deserializer&);
  35512. bool ReadLatestDataUpdate(Deserializer&);
  35513. operator RefCounted() const;
  35514. int Refs() const;
  35515. void Remove();
  35516. void RemoveAllChildren();
  35517. void RemoveAllTags();
  35518. void RemoveAttributeAnimation(const String&);
  35519. void RemoveChild(UIElement, int = 0);
  35520. void RemoveChild(uint);
  35521. void RemoveChildAtIndex(int);
  35522. void RemoveInstanceDefault();
  35523. void RemoveObjectAnimation();
  35524. bool RemoveTag(const String&);
  35525. void ResetDeepEnabled();
  35526. void ResetToDefault();
  35527. bool Save(Serializer&) const;
  35528. bool SaveDefaultAttributes() const;
  35529. bool SaveJSON(JSONValue&) const;
  35530. bool SaveXML(File, const String& indentation = "\t");
  35531. bool SaveXML(Serializer&, const String& = "\t") const;
  35532. bool SaveXML(VectorBuffer&, const String& indentation = "\t");
  35533. bool SaveXML(XMLElement&) const;
  35534. IntVector2 ScreenToElement(const IntVector2&);
  35535. void SendEvent(StringHash);
  35536. void SendEvent(StringHash, VariantMap&);
  35537. operator Serializable() const;
  35538. void SetAlignment(HorizontalAlignment, VerticalAlignment);
  35539. void SetAnimationEnabled(bool);
  35540. void SetAnimationTime(float);
  35541. bool SetAttribute(const String&, const Variant&);
  35542. bool SetAttribute(uint, const Variant&);
  35543. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  35544. void SetAttributeAnimationSpeed(const String&, float);
  35545. void SetAttributeAnimationTime(const String&, float);
  35546. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  35547. void SetBlendMode(BlendMode);
  35548. void SetBlockEvents(bool);
  35549. void SetBorder(const IntRect&);
  35550. void SetBringToBack(bool);
  35551. void SetBringToFront(bool);
  35552. void SetChildOffset(const IntVector2&);
  35553. void SetClipBorder(const IntRect&);
  35554. void SetClipChildren(bool);
  35555. void SetColor(Corner, const Color&);
  35556. void SetColor(const Color&);
  35557. void SetDeepEnabled(bool);
  35558. void SetDefaultStyle(XMLFile);
  35559. void SetDisabledOffset(const IntVector2&);
  35560. void SetDisabledOffset(int, int);
  35561. void SetDragDropMode(uint);
  35562. void SetEditable(bool);
  35563. void SetElementEventSender(bool);
  35564. void SetEnableAnchor(bool);
  35565. void SetEnabled(bool);
  35566. void SetEnabledRecursive(bool);
  35567. void SetFixedHeight(int);
  35568. void SetFixedHeightResizing(bool);
  35569. void SetFixedSize(const IntVector2&);
  35570. void SetFixedSize(int, int);
  35571. void SetFixedWidth(int);
  35572. void SetFixedWidthResizing(bool);
  35573. void SetFocus(bool);
  35574. void SetFocusMode(FocusMode);
  35575. void SetFullImageRect();
  35576. void SetGlobalVar(StringHash, const Variant&);
  35577. void SetHeight(int);
  35578. void SetHorizontalAlignment(HorizontalAlignment);
  35579. void SetHoverOffset(const IntVector2&);
  35580. void SetHoverOffset(int, int);
  35581. void SetHovering(bool);
  35582. void SetImageBorder(const IntRect&);
  35583. void SetImageRect(const IntRect&);
  35584. void SetIndent(int);
  35585. void SetIndentSpacing(int);
  35586. void SetInstanceDefault(bool);
  35587. void SetInterceptNetworkUpdate(const String&, bool);
  35588. void SetInternal(bool);
  35589. void SetLayout(LayoutMode, int = 0, const IntRect& = IntRect :: ZERO);
  35590. void SetLayoutBorder(const IntRect&);
  35591. void SetLayoutFlexScale(const Vector2&);
  35592. void SetLayoutMode(LayoutMode);
  35593. void SetLayoutSpacing(int);
  35594. void SetMaterial(Material);
  35595. void SetMaterialAttr(const ResourceRef&);
  35596. void SetMaxAnchor(const Vector2&);
  35597. void SetMaxAnchor(float, float);
  35598. void SetMaxHeight(int);
  35599. void SetMaxOffset(const IntVector2&);
  35600. void SetMaxSize(const IntVector2&);
  35601. void SetMaxSize(int, int);
  35602. void SetMaxWidth(int);
  35603. void SetMinAnchor(const Vector2&);
  35604. void SetMinAnchor(float, float);
  35605. void SetMinHeight(int);
  35606. void SetMinOffset(const IntVector2&);
  35607. void SetMinSize(const IntVector2&);
  35608. void SetMinSize(int, int);
  35609. void SetMinWidth(int);
  35610. void SetModal(bool);
  35611. void SetModalAutoDismiss(bool);
  35612. void SetModalFrameColor(const Color&);
  35613. void SetModalFrameSize(const IntVector2&);
  35614. void SetModalShadeColor(const Color&);
  35615. void SetMovable(bool);
  35616. void SetName(const String&);
  35617. void SetObjectAnimation(ObjectAnimation);
  35618. void SetObjectAnimationAttr(const ResourceRef&);
  35619. void SetOpacity(float);
  35620. void SetParent(UIElement, int = ENDPOS);
  35621. void SetPivot(const Vector2&);
  35622. void SetPivot(float, float);
  35623. void SetPosition(const IntVector2&);
  35624. void SetPosition(int, int);
  35625. void SetPriority(int);
  35626. void SetRenderTexture(Texture2D);
  35627. void SetResizable(bool);
  35628. void SetResizeBorder(const IntRect&);
  35629. void SetSelected(bool);
  35630. void SetSize(const IntVector2&);
  35631. void SetSize(int, int);
  35632. void SetSortChildren(bool);
  35633. bool SetStyle(const String&, XMLFile = null);
  35634. bool SetStyle(const XMLElement&);
  35635. bool SetStyleAuto(XMLFile = null);
  35636. void SetTags(Array<String>);
  35637. void SetTemporary(bool);
  35638. void SetTexture(Texture);
  35639. void SetTextureAttr(const ResourceRef&);
  35640. void SetTiled(bool);
  35641. void SetTraversalMode(TraversalMode);
  35642. void SetUseDerivedOpacity(bool);
  35643. void SetVar(StringHash, const Variant&);
  35644. void SetVerticalAlignment(VerticalAlignment);
  35645. void SetVisible(bool);
  35646. void SetWidth(int);
  35647. void SortChildren();
  35648. const String& GetAppliedStyle() const;
  35649. const String& GetCategory() const;
  35650. const String& GetName() const;
  35651. const String& GetTypeName() const;
  35652. operator UIElement() const;
  35653. void UnsubscribeFromAllEvents();
  35654. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35655. void UnsubscribeFromEvent(Object, StringHash);
  35656. void UnsubscribeFromEvent(StringHash);
  35657. void UnsubscribeFromEvents(Object);
  35658. void Update(float);
  35659. void UpdateLayout();
  35660. const Variant& GetGlobalVar(StringHash) const;
  35661. const Variant& GetVar(const StringHash&) const;
  35662. const VariantMap& GetGlobalVars() const;
  35663. const VariantMap& GetVars() const;
  35664. const Vector2& GetLayoutFlexScale() const;
  35665. const Vector2& GetMaxAnchor() const;
  35666. const Vector2& GetMinAnchor() const;
  35667. const Vector2& GetPivot() const;
  35668. operator View3D() const;
  35669. int WeakRefs() const;
  35670. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  35671. void WriteInitialDeltaUpdate(Serializer&, uint8);
  35672. void WriteLatestDataUpdate(Serializer&, uint8);
  35673. operator const Animatable() const;
  35674. operator const BorderImage() const;
  35675. operator const Object() const;
  35676. operator const RefCounted() const;
  35677. operator const Serializable() const;
  35678. operator const UIElement() const;
  35679. operator const View3D() const;
  35680. // Properties:
  35681. bool animationEnabled;
  35682. /* readonly */
  35683. Array<Variant> attributeDefaults;
  35684. /* readonly */
  35685. Array<AttributeInfo> attributeInfos;
  35686. Array<Variant> attributes;
  35687. BlendMode blendMode;
  35688. IntRect border;
  35689. bool bringToBack;
  35690. bool bringToFront;
  35691. /* readonly */
  35692. String category;
  35693. /* readonly */
  35694. IntVector2 childOffset;
  35695. /* readonly */
  35696. Array<UIElement> children;
  35697. IntRect clipBorder;
  35698. bool clipChildren;
  35699. /* writeonly */
  35700. Color color;
  35701. /* readonly */
  35702. bool colorGradient;
  35703. Array<Color> colors;
  35704. /* readonly */
  35705. IntRect combinedScreenRect;
  35706. XMLFile defaultStyle;
  35707. /* readonly */
  35708. float derivedOpacity;
  35709. IntVector2 disabledOffset;
  35710. /* readonly */
  35711. uint dragButtonCombo;
  35712. /* readonly */
  35713. int dragButtonCount;
  35714. uint dragDropMode;
  35715. bool editable;
  35716. bool elementEventSender;
  35717. bool enableAnchor;
  35718. bool enabled;
  35719. /* readonly */
  35720. bool enabledSelf;
  35721. /* readonly */
  35722. bool fixedHeight;
  35723. bool fixedHeightResizing;
  35724. /* readonly */
  35725. bool fixedSize;
  35726. /* readonly */
  35727. bool fixedWidth;
  35728. bool fixedWidthResizing;
  35729. bool focus;
  35730. FocusMode focusMode;
  35731. Array<Variant> globalVar;
  35732. /* readonly */
  35733. VariantMap globalVars;
  35734. int height;
  35735. HorizontalAlignment horizontalAlignment;
  35736. IntVector2 hoverOffset;
  35737. /* readonly */
  35738. bool hovering;
  35739. IntRect imageBorder;
  35740. IntRect imageRect;
  35741. int indent;
  35742. int indentSpacing;
  35743. /* readonly */
  35744. int indentWidth;
  35745. bool internal;
  35746. IntRect layoutBorder;
  35747. Vector2 layoutFlexScale;
  35748. LayoutMode layoutMode;
  35749. int layoutSpacing;
  35750. Material material;
  35751. Vector2 maxAnchor;
  35752. int maxHeight;
  35753. IntVector2 maxOffset;
  35754. IntVector2 maxSize;
  35755. int maxWidth;
  35756. Vector2 minAnchor;
  35757. int minHeight;
  35758. IntVector2 minOffset;
  35759. IntVector2 minSize;
  35760. int minWidth;
  35761. bool modal;
  35762. bool modalAutoDismiss;
  35763. Color modalFrameColor;
  35764. IntVector2 modalFrameSize;
  35765. Color modalShadeColor;
  35766. bool movable;
  35767. String name;
  35768. /* readonly */
  35769. uint numAllChildren;
  35770. /* readonly */
  35771. uint numAttributes;
  35772. /* readonly */
  35773. uint numChildren;
  35774. ObjectAnimation objectAnimation;
  35775. float opacity;
  35776. UIElement parent;
  35777. Vector2 pivot;
  35778. IntVector2 position;
  35779. int priority;
  35780. /* readonly */
  35781. int refs;
  35782. bool resizable;
  35783. IntRect resizeBorder;
  35784. /* readonly */
  35785. UIElement root;
  35786. /* readonly */
  35787. IntVector2 screenPosition;
  35788. bool selected;
  35789. IntVector2 size;
  35790. bool sortChildren;
  35791. String style;
  35792. /* readonly */
  35793. Array<String> tags;
  35794. bool temporary;
  35795. Texture texture;
  35796. bool tiled;
  35797. TraversalMode traversalMode;
  35798. /* readonly */
  35799. StringHash type;
  35800. /* readonly */
  35801. String typeName;
  35802. bool useDerivedOpacity;
  35803. /* readonly */
  35804. VariantMap vars;
  35805. VerticalAlignment verticalAlignment;
  35806. bool visible;
  35807. /* readonly */
  35808. bool visibleEffective;
  35809. /* readonly */
  35810. int weakRefs;
  35811. int width;
  35812. };
  35813. class WindowModeParams
  35814. {
  35815. public:
  35816. ~WindowModeParams();
  35817. WindowModeParams();
  35818. // Methods:
  35819. WindowModeParams& operator=(const WindowModeParams&);
  35820. // Properties:
  35821. int height;
  35822. ScreenModeParams screenParams;
  35823. int width;
  35824. };
  35825. class WorkQueue
  35826. {
  35827. public:
  35828. WorkQueue();
  35829. // Methods:
  35830. void Complete(int);
  35831. void CreateThreads(int);
  35832. bool GetBlockEvents() const;
  35833. VariantMap& GetEventDataMap() const;
  35834. Object GetEventSender() const;
  35835. int GetNonThreadedWorkMs() const;
  35836. int GetNumThreads() const;
  35837. Object GetSubsystem(StringHash) const;
  35838. int GetTolerance() const;
  35839. StringHash GetType() const;
  35840. bool HasEventHandlers() const;
  35841. bool HasSubscribedToEvent(Object, StringHash) const;
  35842. bool HasSubscribedToEvent(StringHash) const;
  35843. bool IsCompleted(int) const;
  35844. bool IsCompleting() const;
  35845. bool IsInstanceOf(StringHash) const;
  35846. operator Object() const;
  35847. void OnEvent(Object, StringHash, VariantMap&);
  35848. void Pause();
  35849. operator RefCounted() const;
  35850. int Refs() const;
  35851. void Resume();
  35852. void SendEvent(StringHash);
  35853. void SendEvent(StringHash, VariantMap&);
  35854. void SetBlockEvents(bool);
  35855. void SetGlobalVar(StringHash, const Variant&);
  35856. void SetNonThreadedWorkMs(int);
  35857. void SetTolerance(int);
  35858. const String& GetCategory() const;
  35859. const String& GetTypeName() const;
  35860. void UnsubscribeFromAllEvents();
  35861. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  35862. void UnsubscribeFromEvent(Object, StringHash);
  35863. void UnsubscribeFromEvent(StringHash);
  35864. void UnsubscribeFromEvents(Object);
  35865. const Variant& GetGlobalVar(StringHash) const;
  35866. const VariantMap& GetGlobalVars() const;
  35867. int WeakRefs() const;
  35868. operator const Object() const;
  35869. operator const RefCounted() const;
  35870. // Properties:
  35871. /* readonly */
  35872. String category;
  35873. Array<Variant> globalVar;
  35874. /* readonly */
  35875. VariantMap globalVars;
  35876. /* readonly */
  35877. int refs;
  35878. /* readonly */
  35879. StringHash type;
  35880. /* readonly */
  35881. String typeName;
  35882. /* readonly */
  35883. int weakRefs;
  35884. };
  35885. class XMLElement
  35886. {
  35887. public:
  35888. ~XMLElement();
  35889. XMLElement();
  35890. XMLElement(const XMLElement&in);
  35891. // Methods:
  35892. XMLElement& operator=(const XMLElement&);
  35893. bool AppendChild(XMLElement, bool = false);
  35894. XMLElement CreateChild(const String&);
  35895. String GetAttribute(const String& = String :: EMPTY) const;
  35896. String GetAttributeLower(const String&) const;
  35897. Array<String> GetAttributeNames() const;
  35898. String GetAttributeUpper(const String&) const;
  35899. bool GetBool(const String&) const;
  35900. BoundingBox GetBoundingBox() const;
  35901. Array<uint8> GetBuffer(const String&) const;
  35902. XMLElement GetChild(const String& = String :: EMPTY) const;
  35903. Color GetColor(const String&) const;
  35904. double GetDouble(const String&) const;
  35905. XMLFile GetFile() const;
  35906. float GetFloat(const String&) const;
  35907. int GetInt(const String&) const;
  35908. int64 GetInt64(const String&) const;
  35909. IntRect GetIntRect(const String&) const;
  35910. IntVector2 GetIntVector2(const String&) const;
  35911. IntVector3 GetIntVector3(const String&) const;
  35912. Matrix3 GetMatrix3(const String&) const;
  35913. Matrix3x4 GetMatrix3x4(const String&) const;
  35914. Matrix4 GetMatrix4(const String&) const;
  35915. String GetName() const;
  35916. XMLElement GetNext(const String& = String :: EMPTY) const;
  35917. int GetNumAttributes() const;
  35918. XMLElement GetOrCreateChild(const String&);
  35919. XMLElement GetParent() const;
  35920. Quaternion GetQuaternion(const String&) const;
  35921. Rect GetRect(const String&) const;
  35922. ResourceRef GetResourceRef() const;
  35923. ResourceRefList GetResourceRefList() const;
  35924. Array<String> GetStringVector() const;
  35925. uint GetUInt(const String&) const;
  35926. uint64 GetUInt64(const String&) const;
  35927. String GetValue() const;
  35928. Variant GetVariant() const;
  35929. VariantMap GetVariantMap() const;
  35930. Variant GetVariantValue(VariantType) const;
  35931. Array<Variant> GetVariantVector() const;
  35932. Vector4 GetVector(const String&) const;
  35933. Vector2 GetVector2(const String&) const;
  35934. Vector3 GetVector3(const String&) const;
  35935. Vector4 GetVector4(const String&) const;
  35936. Variant GetVectorVariant(const String&) const;
  35937. int GetXPathResultIndex() const;
  35938. bool HasAttribute(const String&) const;
  35939. bool HasChild(const String&) const;
  35940. bool IsNull() const;
  35941. XMLElement NextResult() const;
  35942. bool NotNull() const;
  35943. bool Remove();
  35944. bool RemoveAttribute(const String& = String :: EMPTY);
  35945. bool RemoveChild(const String&);
  35946. bool RemoveChild(const XMLElement&);
  35947. bool RemoveChildren(const String& = String :: EMPTY);
  35948. XPathResultSet Select(const String&);
  35949. XPathResultSet SelectPrepared(const XPathQuery&) const;
  35950. XMLElement SelectSingle(const String&);
  35951. XMLElement SelectSinglePrepared(const XPathQuery&) const;
  35952. bool SetAttribute(const String&);
  35953. bool SetAttribute(const String&, const String&);
  35954. bool SetBool(const String&, bool);
  35955. bool SetBoundingBox(const BoundingBox&);
  35956. bool SetBuffer(const String&, Array<uint8>);
  35957. bool SetColor(const String&, const Color&);
  35958. bool SetDouble(const String&, double);
  35959. bool SetFloat(const String&, float);
  35960. bool SetInt(const String&, int);
  35961. bool SetInt64(const String&, int64);
  35962. bool SetIntRect(const String&, const IntRect&);
  35963. bool SetIntVector2(const String&, const IntVector2&);
  35964. bool SetIntVector3(const String&, const IntVector3&);
  35965. bool SetMatrix3(const String&, const Matrix3&);
  35966. bool SetMatrix3x4(const String&, const Matrix3x4&);
  35967. bool SetMatrix4(const String&, const Matrix4&);
  35968. bool SetQuaternion(const String&, const Quaternion&);
  35969. bool SetRect(const String&, const Rect&);
  35970. bool SetResourceRef(const ResourceRef&);
  35971. bool SetResourceRefList(const ResourceRefList&);
  35972. bool SetString(const String&, const String&);
  35973. bool SetStringVector(Array<String>);
  35974. bool SetUInt(const String&, uint);
  35975. bool SetUInt64(const String&, uint64);
  35976. bool SetValue(const String&);
  35977. bool SetVariant(const Variant&);
  35978. bool SetVariantMap(const VariantMap&);
  35979. bool SetVariantValue(const Variant&);
  35980. bool SetVariantVector(Array<Variant>);
  35981. bool SetVector2(const String&, const Vector2&);
  35982. bool SetVector3(const String&, const Vector3&);
  35983. bool SetVector4(const String&, const Vector4&);
  35984. bool SetVectorVariant(const String&, const Variant&);
  35985. // Properties:
  35986. /* readonly */
  35987. XMLFile file;
  35988. /* readonly */
  35989. bool isNull;
  35990. /* readonly */
  35991. String name;
  35992. /* readonly */
  35993. XMLElement nextResult;
  35994. /* readonly */
  35995. bool notNull;
  35996. /* readonly */
  35997. int numAttributes;
  35998. /* readonly */
  35999. XMLElement parent;
  36000. String value;
  36001. // Constants:
  36002. static const XMLElement EMPTY;
  36003. };
  36004. class XMLFile
  36005. {
  36006. public:
  36007. XMLFile();
  36008. // Methods:
  36009. bool BeginLoad(Deserializer&);
  36010. XMLElement CreateRoot(const String&);
  36011. bool EndLoad();
  36012. bool FromString(const String&);
  36013. AsyncLoadState GetAsyncLoadState() const;
  36014. bool GetBlockEvents() const;
  36015. VariantMap& GetEventDataMap() const;
  36016. Object GetEventSender() const;
  36017. uint GetMemoryUse() const;
  36018. StringHash GetNameHash() const;
  36019. XMLElement GetOrCreateRoot(const String&);
  36020. XMLElement GetRoot(const String& = String :: EMPTY);
  36021. Object GetSubsystem(StringHash) const;
  36022. StringHash GetType() const;
  36023. uint GetUseTimer();
  36024. bool HasEventHandlers() const;
  36025. bool HasSubscribedToEvent(Object, StringHash) const;
  36026. bool HasSubscribedToEvent(StringHash) const;
  36027. bool IsInstanceOf(StringHash) const;
  36028. bool Load(Deserializer&);
  36029. bool Load(File);
  36030. bool Load(VectorBuffer&);
  36031. bool Load(const String&);
  36032. bool LoadFile(const String&);
  36033. operator Object() const;
  36034. void OnEvent(Object, StringHash, VariantMap&);
  36035. void Patch(XMLFile);
  36036. void Patch(const XMLElement&);
  36037. operator RefCounted() const;
  36038. int Refs() const;
  36039. void ResetUseTimer();
  36040. operator Resource() const;
  36041. bool Save(File) const;
  36042. bool Save(Serializer&) const;
  36043. bool Save(Serializer&, const String&) const;
  36044. bool Save(VectorBuffer&) const;
  36045. bool Save(const String&) const;
  36046. bool SaveFile(const String&) const;
  36047. void SendEvent(StringHash);
  36048. void SendEvent(StringHash, VariantMap&);
  36049. void SetAsyncLoadState(AsyncLoadState);
  36050. void SetBlockEvents(bool);
  36051. void SetGlobalVar(StringHash, const Variant&);
  36052. void SetMemoryUse(uint);
  36053. void SetName(const String&);
  36054. const String& GetCategory() const;
  36055. const String& GetName() const;
  36056. const String& GetTypeName() const;
  36057. String ToString(const String& = "\t") const;
  36058. void UnsubscribeFromAllEvents();
  36059. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  36060. void UnsubscribeFromEvent(Object, StringHash);
  36061. void UnsubscribeFromEvent(StringHash);
  36062. void UnsubscribeFromEvents(Object);
  36063. const Variant& GetGlobalVar(StringHash) const;
  36064. const VariantMap& GetGlobalVars() const;
  36065. int WeakRefs() const;
  36066. operator const Object() const;
  36067. operator const RefCounted() const;
  36068. operator const Resource() const;
  36069. // Properties:
  36070. /* readonly */
  36071. String category;
  36072. Array<Variant> globalVar;
  36073. /* readonly */
  36074. VariantMap globalVars;
  36075. /* readonly */
  36076. uint memoryUse;
  36077. String name;
  36078. /* readonly */
  36079. int refs;
  36080. /* readonly */
  36081. XMLElement root;
  36082. /* readonly */
  36083. StringHash type;
  36084. /* readonly */
  36085. String typeName;
  36086. /* readonly */
  36087. uint useTimer;
  36088. /* readonly */
  36089. int weakRefs;
  36090. };
  36091. class XPathQuery
  36092. {
  36093. public:
  36094. ~XPathQuery();
  36095. XPathQuery();
  36096. XPathQuery(const String&in, const String&in = String :: EMPTY);
  36097. // Methods:
  36098. void Bind();
  36099. void Clear();
  36100. XPathResultSet Evaluate(const XMLElement&) const;
  36101. bool EvaluateToBool(const XMLElement&) const;
  36102. float EvaluateToFloat(const XMLElement&) const;
  36103. String EvaluateToString(const XMLElement&) const;
  36104. String GetQuery() const;
  36105. bool SetQuery(const String&, const String& = String :: EMPTY, bool = true);
  36106. bool SetVariable(const String&, bool);
  36107. bool SetVariable(const String&, const String&);
  36108. bool SetVariable(const String&, const XPathResultSet&);
  36109. bool SetVariable(const String&, float);
  36110. // Properties:
  36111. String query;
  36112. };
  36113. class XPathResultSet
  36114. {
  36115. public:
  36116. ~XPathResultSet();
  36117. XPathResultSet();
  36118. XPathResultSet(const XPathResultSet&in);
  36119. // Methods:
  36120. XPathResultSet& operator=(const XPathResultSet&);
  36121. XMLElement operator[](int) const;
  36122. bool Empty() const;
  36123. XMLElement FirstResult();
  36124. int Size() const;
  36125. // Properties:
  36126. /* readonly */
  36127. bool empty;
  36128. /* readonly */
  36129. XMLElement firstResult;
  36130. /* readonly */
  36131. int size;
  36132. };
  36133. class Zone
  36134. {
  36135. public:
  36136. Zone();
  36137. // Methods:
  36138. void AddLight(Light);
  36139. void AddVertexLight(Light);
  36140. void AllocateNetworkState();
  36141. operator Animatable() const;
  36142. void ApplyAttributes();
  36143. const BoundingBox& GetBoundingBox() const;
  36144. const BoundingBox& GetWorldBoundingBox();
  36145. void CleanupConnection(Connection);
  36146. const Color& GetAmbientColor() const;
  36147. const Color& GetAmbientEndColor();
  36148. const Color& GetAmbientStartColor();
  36149. const Color& GetFogColor() const;
  36150. operator Component() const;
  36151. void DrawDebugGeometry(DebugRenderer, bool);
  36152. bool DrawOcclusion(OcclusionBuffer);
  36153. operator Drawable() const;
  36154. bool GetAmbientGradient() const;
  36155. bool GetAnimationEnabled() const;
  36156. Variant GetAttribute(const String&) const;
  36157. Variant GetAttribute(uint) const;
  36158. ValueAnimation GetAttributeAnimation(const String&) const;
  36159. float GetAttributeAnimationSpeed(const String&) const;
  36160. float GetAttributeAnimationTime(const String&) const;
  36161. WrapMode GetAttributeAnimationWrapMode(const String&) const;
  36162. Variant GetAttributeDefault(const String&) const;
  36163. Variant GetAttributeDefault(uint) const;
  36164. Array<SourceBatch> GetBatches() const;
  36165. bool GetBlockEvents() const;
  36166. bool GetCastShadows() const;
  36167. Component GetComponent(StringHash) const;
  36168. float GetDistance() const;
  36169. float GetDrawDistance() const;
  36170. uint8 GetDrawableFlags() const;
  36171. VariantMap& GetEventDataMap() const;
  36172. Object GetEventSender() const;
  36173. Light GetFirstLight() const;
  36174. float GetFogEnd() const;
  36175. float GetFogHeight() const;
  36176. float GetFogHeightScale() const;
  36177. float GetFogStart() const;
  36178. bool GetHeightFog() const;
  36179. uint GetID() const;
  36180. bool GetInterceptNetworkUpdate(const String&) const;
  36181. uint GetLightMask() const;
  36182. Array<Light> GetLights() const;
  36183. float GetLodBias() const;
  36184. float GetLodDistance() const;
  36185. Geometry GetLodGeometry(uint, uint);
  36186. uint GetMaxLights() const;
  36187. float GetMaxZ() const;
  36188. float GetMinZ() const;
  36189. Node GetNode() const;
  36190. uint GetNumAttributes() const;
  36191. uint GetNumNetworkAttributes() const;
  36192. uint GetNumOccluderTriangles();
  36193. ObjectAnimation GetObjectAnimation() const;
  36194. ResourceRef GetObjectAnimationAttr() const;
  36195. bool GetOverride() const;
  36196. int GetPriority() const;
  36197. Scene GetScene() const;
  36198. float GetShadowDistance() const;
  36199. uint GetShadowMask() const;
  36200. float GetSortValue() const;
  36201. Object GetSubsystem(StringHash) const;
  36202. StringHash GetType() const;
  36203. UpdateGeometryType GetUpdateGeometryType();
  36204. Array<Light> GetVertexLights() const;
  36205. uint GetViewMask() const;
  36206. Zone GetZone() const;
  36207. uint GetZoneMask() const;
  36208. Texture GetZoneTexture() const;
  36209. ResourceRef GetZoneTextureAttr() const;
  36210. bool HasBasePass(uint) const;
  36211. bool HasEventHandlers() const;
  36212. bool HasSubscribedToEvent(Object, StringHash) const;
  36213. bool HasSubscribedToEvent(StringHash) const;
  36214. bool IsEnabled() const;
  36215. bool IsEnabledEffective() const;
  36216. bool IsInView() const;
  36217. bool IsInView(Camera) const;
  36218. bool IsInView(const FrameInfo&, bool = false) const;
  36219. bool IsInside(const Vector3&) const;
  36220. bool IsInstanceOf(StringHash) const;
  36221. bool IsOccludee() const;
  36222. bool IsOccluder() const;
  36223. bool IsReplicated() const;
  36224. bool IsTemporary() const;
  36225. bool IsZoneDirty() const;
  36226. void LimitLights();
  36227. void LimitVertexLights(bool);
  36228. bool Load(Deserializer&);
  36229. bool LoadJSON(const JSONValue&);
  36230. bool LoadXML(const XMLElement&);
  36231. void MarkForUpdate();
  36232. void MarkInView(const FrameInfo&);
  36233. void MarkInView(int);
  36234. void MarkNetworkUpdate();
  36235. const Matrix3x4& GetInverseWorldTransform() const;
  36236. operator Object() const;
  36237. void OnEvent(Object, StringHash, VariantMap&);
  36238. void OnGetAttribute(const AttributeInfo&, Variant&) const;
  36239. void OnSetAttribute(const AttributeInfo&, const Variant&);
  36240. void OnSetEnabled();
  36241. void PrepareNetworkUpdate();
  36242. bool ReadDeltaUpdate(Deserializer&);
  36243. bool ReadLatestDataUpdate(Deserializer&);
  36244. operator RefCounted() const;
  36245. int Refs() const;
  36246. void Remove();
  36247. void RemoveAttributeAnimation(const String&);
  36248. void RemoveInstanceDefault();
  36249. void RemoveObjectAnimation();
  36250. void ResetToDefault();
  36251. bool Save(Serializer&) const;
  36252. bool SaveDefaultAttributes() const;
  36253. bool SaveJSON(JSONValue&) const;
  36254. bool SaveXML(XMLElement&) const;
  36255. void SendEvent(StringHash);
  36256. void SendEvent(StringHash, VariantMap&);
  36257. operator Serializable() const;
  36258. void SetAmbientColor(const Color&);
  36259. void SetAmbientGradient(bool);
  36260. void SetAnimationEnabled(bool);
  36261. void SetAnimationTime(float);
  36262. bool SetAttribute(const String&, const Variant&);
  36263. bool SetAttribute(uint, const Variant&);
  36264. void SetAttributeAnimation(const String&, ValueAnimation, WrapMode = WM_LOOP, float = 1.0f);
  36265. void SetAttributeAnimationSpeed(const String&, float);
  36266. void SetAttributeAnimationTime(const String&, float);
  36267. void SetAttributeAnimationWrapMode(const String&, WrapMode);
  36268. void SetBasePass(uint);
  36269. void SetBlockEvents(bool);
  36270. void SetBoundingBox(const BoundingBox&);
  36271. void SetCastShadows(bool);
  36272. void SetDrawDistance(float);
  36273. void SetEnabled(bool);
  36274. void SetFogColor(const Color&);
  36275. void SetFogEnd(float);
  36276. void SetFogHeight(float);
  36277. void SetFogHeightScale(float);
  36278. void SetFogStart(float);
  36279. void SetGlobalVar(StringHash, const Variant&);
  36280. void SetHeightFog(bool);
  36281. void SetInstanceDefault(bool);
  36282. void SetInterceptNetworkUpdate(const String&, bool);
  36283. void SetLightMask(uint);
  36284. void SetLodBias(float);
  36285. void SetMaxLights(uint);
  36286. void SetMinMaxZ(float, float);
  36287. void SetObjectAnimation(ObjectAnimation);
  36288. void SetObjectAnimationAttr(const ResourceRef&);
  36289. void SetOccludee(bool);
  36290. void SetOccluder(bool);
  36291. void SetOverride(bool);
  36292. void SetPriority(int);
  36293. void SetShadowDistance(float);
  36294. void SetShadowMask(uint);
  36295. void SetSortValue(float);
  36296. void SetTemporary(bool);
  36297. void SetViewMask(uint);
  36298. void SetZone(Zone, bool = false);
  36299. void SetZoneMask(uint);
  36300. void SetZoneTexture(Texture);
  36301. void SetZoneTextureAttr(const ResourceRef&);
  36302. const String& GetCategory() const;
  36303. const String& GetTypeName() const;
  36304. void UnsubscribeFromAllEvents();
  36305. void UnsubscribeFromAllEventsExcept(Array<StringHash>, bool);
  36306. void UnsubscribeFromEvent(Object, StringHash);
  36307. void UnsubscribeFromEvent(StringHash);
  36308. void UnsubscribeFromEvents(Object);
  36309. void Update(const FrameInfo&);
  36310. void UpdateBatches(const FrameInfo&);
  36311. void UpdateGeometry(const FrameInfo&);
  36312. const Variant& GetGlobalVar(StringHash) const;
  36313. const VariantMap& GetGlobalVars() const;
  36314. int WeakRefs() const;
  36315. void WriteDeltaUpdate(Serializer&, const DirtyBits&, uint8);
  36316. void WriteInitialDeltaUpdate(Serializer&, uint8);
  36317. void WriteLatestDataUpdate(Serializer&, uint8);
  36318. operator const Animatable() const;
  36319. operator const Component() const;
  36320. operator const Drawable() const;
  36321. operator const Object() const;
  36322. operator const RefCounted() const;
  36323. operator const Serializable() const;
  36324. // Properties:
  36325. Color ambientColor;
  36326. /* readonly */
  36327. Color ambientEndColor;
  36328. bool ambientGradient;
  36329. /* readonly */
  36330. Color ambientStartColor;
  36331. bool animationEnabled;
  36332. /* readonly */
  36333. Array<Variant> attributeDefaults;
  36334. /* readonly */
  36335. Array<AttributeInfo> attributeInfos;
  36336. Array<Variant> attributes;
  36337. BoundingBox boundingBox;
  36338. bool castShadows;
  36339. /* readonly */
  36340. String category;
  36341. float drawDistance;
  36342. bool enabled;
  36343. /* readonly */
  36344. bool enabledEffective;
  36345. Color fogColor;
  36346. float fogEnd;
  36347. float fogHeight;
  36348. float fogHeightScale;
  36349. float fogStart;
  36350. Array<Variant> globalVar;
  36351. /* readonly */
  36352. VariantMap globalVars;
  36353. bool heightFog;
  36354. /* readonly */
  36355. uint id;
  36356. /* readonly */
  36357. bool inView;
  36358. /* readonly */
  36359. Matrix3x4 inverseWorldTransform;
  36360. uint lightMask;
  36361. float lodBias;
  36362. uint maxLights;
  36363. /* readonly */
  36364. Node node;
  36365. /* readonly */
  36366. uint numAttributes;
  36367. ObjectAnimation objectAnimation;
  36368. bool occludee;
  36369. bool occluder;
  36370. bool override;
  36371. int priority;
  36372. /* readonly */
  36373. int refs;
  36374. /* readonly */
  36375. bool replicated;
  36376. float shadowDistance;
  36377. uint shadowMask;
  36378. bool temporary;
  36379. /* readonly */
  36380. StringHash type;
  36381. /* readonly */
  36382. String typeName;
  36383. uint viewMask;
  36384. /* readonly */
  36385. int weakRefs;
  36386. /* readonly */
  36387. BoundingBox worldBoundingBox;
  36388. /* readonly */
  36389. Zone zone;
  36390. uint zoneMask;
  36391. Texture zoneTexture;
  36392. };
  36393. // Enumerations
  36394. enum AnimationBlendMode
  36395. {
  36396. ABM_LERP,
  36397. ABM_ADDITIVE,
  36398. };
  36399. enum AsyncLoadState
  36400. {
  36401. ASYNC_DONE,
  36402. ASYNC_QUEUED,
  36403. ASYNC_LOADING,
  36404. ASYNC_SUCCESS,
  36405. ASYNC_FAIL,
  36406. };
  36407. enum AttributeMode
  36408. {
  36409. AM_EDIT,
  36410. AM_FILE,
  36411. AM_NET,
  36412. AM_DEFAULT,
  36413. AM_LATESTDATA,
  36414. AM_NOEDIT,
  36415. AM_NODEID,
  36416. AM_COMPONENTID,
  36417. AM_NODEIDVECTOR,
  36418. AM_FILEREADONLY,
  36419. };
  36420. enum AutoRemoveMode
  36421. {
  36422. REMOVE_DISABLED,
  36423. REMOVE_COMPONENT,
  36424. REMOVE_NODE,
  36425. };
  36426. enum BlendMode
  36427. {
  36428. BLEND_REPLACE,
  36429. BLEND_ADD,
  36430. BLEND_MULTIPLY,
  36431. BLEND_ALPHA,
  36432. BLEND_ADDALPHA,
  36433. BLEND_PREMULALPHA,
  36434. BLEND_INVDESTALPHA,
  36435. BLEND_SUBTRACT,
  36436. BLEND_SUBTRACTALPHA,
  36437. MAX_BLENDMODES,
  36438. };
  36439. enum BodyType2D
  36440. {
  36441. BT_STATIC,
  36442. BT_KINEMATIC,
  36443. BT_DYNAMIC,
  36444. };
  36445. enum CollisionEventMode
  36446. {
  36447. COLLISION_NEVER,
  36448. COLLISION_ACTIVE,
  36449. COLLISION_ALWAYS,
  36450. };
  36451. enum CompareMode
  36452. {
  36453. CMP_ALWAYS,
  36454. CMP_EQUAL,
  36455. CMP_NOTEQUAL,
  36456. CMP_LESS,
  36457. CMP_LESSEQUAL,
  36458. CMP_GREATER,
  36459. CMP_GREATEREQUAL,
  36460. MAX_COMPAREMODES,
  36461. };
  36462. enum CompressedFormat
  36463. {
  36464. CF_NONE,
  36465. CF_RGBA,
  36466. CF_DXT1,
  36467. CF_DXT3,
  36468. CF_DXT5,
  36469. CF_ETC1,
  36470. CF_ETC2_RGB,
  36471. CF_ETC2_RGBA,
  36472. CF_PVRTC_RGB_2BPP,
  36473. CF_PVRTC_RGBA_2BPP,
  36474. CF_PVRTC_RGB_4BPP,
  36475. CF_PVRTC_RGBA_4BPP,
  36476. };
  36477. enum ConstraintType
  36478. {
  36479. CONSTRAINT_POINT,
  36480. CONSTRAINT_HINGE,
  36481. CONSTRAINT_SLIDER,
  36482. CONSTRAINT_CONETWIST,
  36483. };
  36484. enum Corner
  36485. {
  36486. C_TOPLEFT,
  36487. C_TOPRIGHT,
  36488. C_BOTTOMLEFT,
  36489. C_BOTTOMRIGHT,
  36490. MAX_UIELEMENT_CORNERS,
  36491. };
  36492. enum CreateMode
  36493. {
  36494. REPLICATED,
  36495. LOCAL,
  36496. };
  36497. enum CrowdAgentRequestedTarget
  36498. {
  36499. CA_REQUESTEDTARGET_NONE,
  36500. CA_REQUESTEDTARGET_POSITION,
  36501. CA_REQUESTEDTARGET_VELOCITY,
  36502. };
  36503. enum CrowdAgentState
  36504. {
  36505. CA_STATE_INVALID,
  36506. CA_STATE_WALKING,
  36507. CA_STATE_OFFMESH,
  36508. };
  36509. enum CrowdAgentTargetState
  36510. {
  36511. CA_TARGET_NONE,
  36512. CA_TARGET_FAILED,
  36513. CA_TARGET_VALID,
  36514. CA_TARGET_REQUESTING,
  36515. CA_TARGET_WAITINGFORQUEUE,
  36516. CA_TARGET_WAITINGFORPATH,
  36517. CA_TARGET_VELOCITY,
  36518. };
  36519. enum CubeMapFace
  36520. {
  36521. FACE_POSITIVE_X,
  36522. FACE_NEGATIVE_X,
  36523. FACE_POSITIVE_Y,
  36524. FACE_NEGATIVE_Y,
  36525. FACE_POSITIVE_Z,
  36526. FACE_NEGATIVE_Z,
  36527. MAX_CUBEMAP_FACES,
  36528. };
  36529. enum CubeMapLayout
  36530. {
  36531. CML_HORIZONTAL,
  36532. CML_HORIZONTALNVIDIA,
  36533. CML_HORIZONTALCROSS,
  36534. CML_VERTICALCROSS,
  36535. CML_BLENDER,
  36536. };
  36537. enum CullMode
  36538. {
  36539. CULL_NONE,
  36540. CULL_CCW,
  36541. CULL_CW,
  36542. MAX_CULLMODES,
  36543. };
  36544. enum CursorShape
  36545. {
  36546. CS_NORMAL,
  36547. CS_IBEAM,
  36548. CS_CROSS,
  36549. CS_RESIZEVERTICAL,
  36550. CS_RESIZEDIAGONAL_TOPRIGHT,
  36551. CS_RESIZEHORIZONTAL,
  36552. CS_RESIZEDIAGONAL_TOPLEFT,
  36553. CS_RESIZE_ALL,
  36554. CS_ACCEPTDROP,
  36555. CS_REJECTDROP,
  36556. CS_BUSY,
  36557. CS_BUSY_ARROW,
  36558. CS_MAX_SHAPES,
  36559. };
  36560. enum DBAPI
  36561. {
  36562. DBAPI_SQLITE,
  36563. DBAPI_ODBC,
  36564. };
  36565. enum DeferredLightPSVariation
  36566. {
  36567. DLPS_NONE,
  36568. DLPS_SPOT,
  36569. DLPS_POINT,
  36570. DLPS_POINTMASK,
  36571. DLPS_SPEC,
  36572. DLPS_SPOTSPEC,
  36573. DLPS_POINTSPEC,
  36574. DLPS_POINTMASKSPEC,
  36575. DLPS_SHADOW,
  36576. DLPS_SPOTSHADOW,
  36577. DLPS_POINTSHADOW,
  36578. DLPS_POINTMASKSHADOW,
  36579. DLPS_SHADOWSPEC,
  36580. DLPS_SPOTSHADOWSPEC,
  36581. DLPS_POINTSHADOWSPEC,
  36582. DLPS_POINTMASKSHADOWSPEC,
  36583. DLPS_SHADOWNORMALOFFSET,
  36584. DLPS_SPOTSHADOWNORMALOFFSET,
  36585. DLPS_POINTSHADOWNORMALOFFSET,
  36586. DLPS_POINTMASKSHADOWNORMALOFFSET,
  36587. DLPS_SHADOWSPECNORMALOFFSET,
  36588. DLPS_SPOTSHADOWSPECNORMALOFFSET,
  36589. DLPS_POINTSHADOWSPECNORMALOFFSET,
  36590. DLPS_POINTMASKSHADOWSPECNORMALOFFSET,
  36591. DLPS_ORTHO,
  36592. DLPS_ORTHOSPOT,
  36593. DLPS_ORTHOPOINT,
  36594. DLPS_ORTHOPOINTMASK,
  36595. DLPS_ORTHOSPEC,
  36596. DLPS_ORTHOSPOTSPEC,
  36597. DLPS_ORTHOPOINTSPEC,
  36598. DLPS_ORTHOPOINTMASKSPEC,
  36599. DLPS_ORTHOSHADOW,
  36600. DLPS_ORTHOSPOTSHADOW,
  36601. DLPS_ORTHOPOINTSHADOW,
  36602. DLPS_ORTHOPOINTMASKSHADOW,
  36603. DLPS_ORTHOSHADOWSPEC,
  36604. DLPS_ORTHOSPOTSHADOWSPEC,
  36605. DLPS_ORTHOPOINTSHADOWSPEC,
  36606. DLPS_ORTHOPOINTMASKSHADOWSPEC,
  36607. DLPS_ORTHOSHADOWNORMALOFFSET,
  36608. DLPS_ORTHOSPOTSHADOWNORMALOFFSET,
  36609. DLPS_ORTHOPOINTSHADOWNORMALOFFSET,
  36610. DLPS_ORTHOPOINTMASKSHADOWNORMALOFFSET,
  36611. DLPS_ORTHOSHADOWSPECNORMALOFFSET,
  36612. DLPS_ORTHOSPOTSHADOWSPECNORMALOFFSET,
  36613. DLPS_ORTHOPOINTSHADOWSPECNORMALOFFSET,
  36614. DLPS_ORTHOPOINTMASKSHADOWSPECNORMALOFFSET,
  36615. MAX_DEFERRED_LIGHT_PS_VARIATIONS,
  36616. };
  36617. enum DeferredLightVSVariation
  36618. {
  36619. DLVS_NONE,
  36620. DLVS_DIR,
  36621. DLVS_ORTHO,
  36622. DLVS_ORTHODIR,
  36623. MAX_DEFERRED_LIGHT_VS_VARIATIONS,
  36624. };
  36625. enum DumpMode
  36626. {
  36627. DOXYGEN,
  36628. C_HEADER,
  36629. };
  36630. enum EmitterType
  36631. {
  36632. EMITTER_SPHERE,
  36633. EMITTER_BOX,
  36634. EMITTER_SPHEREVOLUME,
  36635. EMITTER_CYLINDER,
  36636. EMITTER_RING,
  36637. };
  36638. enum EmitterType2D
  36639. {
  36640. EMITTER_TYPE_GRAVITY,
  36641. EMITTER_TYPE_RADIAL,
  36642. };
  36643. enum FaceCameraMode
  36644. {
  36645. FC_NONE,
  36646. FC_ROTATE_XYZ,
  36647. FC_ROTATE_Y,
  36648. FC_LOOKAT_XYZ,
  36649. FC_LOOKAT_Y,
  36650. FC_LOOKAT_MIXED,
  36651. FC_DIRECTION,
  36652. };
  36653. enum FileMode
  36654. {
  36655. FILE_READ,
  36656. FILE_WRITE,
  36657. FILE_READWRITE,
  36658. };
  36659. enum FillMode
  36660. {
  36661. FILL_SOLID,
  36662. FILL_WIREFRAME,
  36663. FILL_POINT,
  36664. };
  36665. enum FocusMode
  36666. {
  36667. FM_NOTFOCUSABLE,
  36668. FM_RESETFOCUS,
  36669. FM_FOCUSABLE,
  36670. FM_FOCUSABLE_DEFOCUSABLE,
  36671. };
  36672. enum FontHintLevel
  36673. {
  36674. FONT_HINT_LEVEL_NONE,
  36675. FONT_HINT_LEVEL_LIGHT,
  36676. FONT_HINT_LEVEL_NORMAL,
  36677. };
  36678. enum FontType
  36679. {
  36680. FONT_NONE,
  36681. FONT_FREETYPE,
  36682. FONT_BITMAP,
  36683. MAX_FONT_TYPES,
  36684. };
  36685. enum FrustumPlane
  36686. {
  36687. PLANE_NEAR,
  36688. PLANE_LEFT,
  36689. PLANE_RIGHT,
  36690. PLANE_UP,
  36691. PLANE_DOWN,
  36692. PLANE_FAR,
  36693. };
  36694. enum GAPI
  36695. {
  36696. GAPI_NONE,
  36697. GAPI_OPENGL,
  36698. GAPI_D3D11,
  36699. };
  36700. enum GeometryType
  36701. {
  36702. GEOM_STATIC,
  36703. GEOM_SKINNED,
  36704. GEOM_INSTANCED,
  36705. GEOM_BILLBOARD,
  36706. GEOM_DIRBILLBOARD,
  36707. GEOM_TRAIL_FACE_CAMERA,
  36708. GEOM_TRAIL_BONE,
  36709. MAX_GEOMETRYTYPES,
  36710. GEOM_STATIC_NOINSTANCING,
  36711. };
  36712. enum HighlightMode
  36713. {
  36714. HM_NEVER,
  36715. HM_FOCUS,
  36716. HM_ALWAYS,
  36717. };
  36718. enum HorizontalAlignment
  36719. {
  36720. HA_LEFT,
  36721. HA_CENTER,
  36722. HA_RIGHT,
  36723. HA_CUSTOM,
  36724. };
  36725. enum HttpRequestState
  36726. {
  36727. HTTP_INITIALIZING,
  36728. HTTP_ERROR,
  36729. HTTP_OPEN,
  36730. HTTP_CLOSED,
  36731. };
  36732. enum IKAlgorithm
  36733. {
  36734. ONE_BONE,
  36735. TWO_BONE,
  36736. FABRIK,
  36737. };
  36738. enum IKFeature
  36739. {
  36740. JOINT_ROTATIONS,
  36741. TARGET_ROTATIONS,
  36742. UPDATE_ORIGINAL_POSE,
  36743. UPDATE_ACTIVE_POSE,
  36744. USE_ORIGINAL_POSE,
  36745. CONSTRAINTS,
  36746. AUTO_SOLVE,
  36747. };
  36748. enum InterpMethod
  36749. {
  36750. IM_NONE,
  36751. IM_LINEAR,
  36752. IM_SPLINE,
  36753. };
  36754. enum InterpolationMode
  36755. {
  36756. BEZIER_CURVE,
  36757. CATMULL_ROM_CURVE,
  36758. LINEAR_CURVE,
  36759. CATMULL_ROM_FULL_CURVE,
  36760. };
  36761. enum Intersection
  36762. {
  36763. OUTSIDE,
  36764. INTERSECTS,
  36765. INSIDE,
  36766. };
  36767. enum JSONNumberType
  36768. {
  36769. JSONNT_NAN,
  36770. JSONNT_INT,
  36771. JSONNT_UINT,
  36772. JSONNT_FLOAT_DOUBLE,
  36773. };
  36774. enum JSONValueType
  36775. {
  36776. JSON_NULL,
  36777. JSON_BOOL,
  36778. JSON_NUMBER,
  36779. JSON_STRING,
  36780. JSON_ARRAY,
  36781. JSON_OBJECT,
  36782. };
  36783. enum LayoutMode
  36784. {
  36785. LM_FREE,
  36786. LM_HORIZONTAL,
  36787. LM_VERTICAL,
  36788. };
  36789. enum LegacyVertexElement
  36790. {
  36791. ELEMENT_POSITION,
  36792. ELEMENT_NORMAL,
  36793. ELEMENT_COLOR,
  36794. ELEMENT_TEXCOORD1,
  36795. ELEMENT_TEXCOORD2,
  36796. ELEMENT_CUBETEXCOORD1,
  36797. ELEMENT_CUBETEXCOORD2,
  36798. ELEMENT_TANGENT,
  36799. ELEMENT_BLENDWEIGHTS,
  36800. ELEMENT_BLENDINDICES,
  36801. ELEMENT_INSTANCEMATRIX1,
  36802. ELEMENT_INSTANCEMATRIX2,
  36803. ELEMENT_INSTANCEMATRIX3,
  36804. ELEMENT_OBJECTINDEX,
  36805. MAX_LEGACY_VERTEX_ELEMENTS,
  36806. };
  36807. enum LightPSVariation
  36808. {
  36809. LPS_NONE,
  36810. LPS_SPOT,
  36811. LPS_POINT,
  36812. LPS_POINTMASK,
  36813. LPS_SPEC,
  36814. LPS_SPOTSPEC,
  36815. LPS_POINTSPEC,
  36816. LPS_POINTMASKSPEC,
  36817. LPS_SHADOW,
  36818. LPS_SPOTSHADOW,
  36819. LPS_POINTSHADOW,
  36820. LPS_POINTMASKSHADOW,
  36821. LPS_SHADOWSPEC,
  36822. LPS_SPOTSHADOWSPEC,
  36823. LPS_POINTSHADOWSPEC,
  36824. LPS_POINTMASKSHADOWSPEC,
  36825. MAX_LIGHT_PS_VARIATIONS,
  36826. };
  36827. enum LightType
  36828. {
  36829. LIGHT_DIRECTIONAL,
  36830. LIGHT_SPOT,
  36831. LIGHT_POINT,
  36832. };
  36833. enum LightVSVariation
  36834. {
  36835. LVS_DIR,
  36836. LVS_SPOT,
  36837. LVS_POINT,
  36838. LVS_SHADOW,
  36839. LVS_SPOTSHADOW,
  36840. LVS_POINTSHADOW,
  36841. LVS_SHADOWNORMALOFFSET,
  36842. LVS_SPOTSHADOWNORMALOFFSET,
  36843. LVS_POINTSHADOWNORMALOFFSET,
  36844. MAX_LIGHT_VS_VARIATIONS,
  36845. };
  36846. enum LoadMode
  36847. {
  36848. LOAD_RESOURCES_ONLY,
  36849. LOAD_SCENE,
  36850. LOAD_SCENE_AND_RESOURCES,
  36851. };
  36852. enum LockState
  36853. {
  36854. LOCK_NONE,
  36855. LOCK_HARDWARE,
  36856. LOCK_SHADOW,
  36857. LOCK_SCRATCH,
  36858. };
  36859. enum LoopMode2D
  36860. {
  36861. LM_DEFAULT,
  36862. LM_FORCE_LOOPED,
  36863. LM_FORCE_CLAMPED,
  36864. };
  36865. enum MouseMode
  36866. {
  36867. MM_ABSOLUTE,
  36868. MM_RELATIVE,
  36869. MM_WRAP,
  36870. MM_FREE,
  36871. MM_INVALID,
  36872. };
  36873. enum NavigationPathPointFlag
  36874. {
  36875. NAVPATHFLAG_NONE,
  36876. NAVPATHFLAG_START,
  36877. NAVPATHFLAG_END,
  36878. NAVPATHFLAG_OFF_MESH,
  36879. };
  36880. enum NavigationPushiness
  36881. {
  36882. NAVIGATIONPUSHINESS_LOW,
  36883. NAVIGATIONPUSHINESS_MEDIUM,
  36884. NAVIGATIONPUSHINESS_HIGH,
  36885. NAVIGATIONPUSHINESS_NONE,
  36886. };
  36887. enum NavigationQuality
  36888. {
  36889. NAVIGATIONQUALITY_LOW,
  36890. NAVIGATIONQUALITY_MEDIUM,
  36891. NAVIGATIONQUALITY_HIGH,
  36892. };
  36893. enum NavmeshPartitionType
  36894. {
  36895. NAVMESH_PARTITION_WATERSHED,
  36896. NAVMESH_PARTITION_MONOTONE,
  36897. };
  36898. enum ObserverPositionSendMode
  36899. {
  36900. OPSM_NONE,
  36901. OPSM_POSITION,
  36902. OPSM_POSITION_ROTATION,
  36903. };
  36904. enum Orientation
  36905. {
  36906. O_HORIZONTAL,
  36907. O_VERTICAL,
  36908. };
  36909. enum Orientation2D
  36910. {
  36911. O_ORTHOGONAL,
  36912. O_ISOMETRIC,
  36913. O_STAGGERED,
  36914. O_HEXAGONAL,
  36915. };
  36916. enum PacketType
  36917. {
  36918. PT_UNRELIABLE_UNORDERED,
  36919. PT_UNRELIABLE_ORDERED,
  36920. PT_RELIABLE_UNORDERED,
  36921. PT_RELIABLE_ORDERED,
  36922. };
  36923. enum PassLightingMode
  36924. {
  36925. LIGHTING_UNLIT,
  36926. LIGHTING_PERVERTEX,
  36927. LIGHTING_PERPIXEL,
  36928. };
  36929. enum PrimitiveType
  36930. {
  36931. TRIANGLE_LIST,
  36932. LINE_LIST,
  36933. POINT_LIST,
  36934. TRIANGLE_STRIP,
  36935. LINE_STRIP,
  36936. TRIANGLE_FAN,
  36937. };
  36938. enum RayQueryLevel
  36939. {
  36940. RAY_AABB,
  36941. RAY_OBB,
  36942. RAY_TRIANGLE,
  36943. RAY_TRIANGLE_UV,
  36944. };
  36945. enum RenderCommandSortMode
  36946. {
  36947. SORT_FRONTTOBACK,
  36948. SORT_BACKTOFRONT,
  36949. };
  36950. enum RenderCommandType
  36951. {
  36952. CMD_NONE,
  36953. CMD_CLEAR,
  36954. CMD_SCENEPASS,
  36955. CMD_QUAD,
  36956. CMD_FORWARDLIGHTS,
  36957. CMD_LIGHTVOLUMES,
  36958. CMD_RENDERUI,
  36959. CMD_SENDEVENT,
  36960. };
  36961. enum RenderSurfaceUpdateMode
  36962. {
  36963. SURFACE_MANUALUPDATE,
  36964. SURFACE_UPDATEVISIBLE,
  36965. SURFACE_UPDATEALWAYS,
  36966. };
  36967. enum RenderTargetSizeMode
  36968. {
  36969. SIZE_ABSOLUTE,
  36970. SIZE_VIEWPORTDIVISOR,
  36971. SIZE_VIEWPORTMULTIPLIER,
  36972. };
  36973. enum ResourceRequest
  36974. {
  36975. RESOURCE_CHECKEXISTS,
  36976. RESOURCE_GETFILE,
  36977. };
  36978. enum ShaderParameterGroup
  36979. {
  36980. SP_FRAME,
  36981. SP_CAMERA,
  36982. SP_ZONE,
  36983. SP_LIGHT,
  36984. SP_MATERIAL,
  36985. SP_OBJECT,
  36986. SP_CUSTOM,
  36987. MAX_SHADER_PARAMETER_GROUPS,
  36988. };
  36989. enum ShaderType
  36990. {
  36991. VS,
  36992. PS,
  36993. };
  36994. enum ShadowQuality
  36995. {
  36996. SHADOWQUALITY_SIMPLE_16BIT,
  36997. SHADOWQUALITY_SIMPLE_24BIT,
  36998. SHADOWQUALITY_PCF_16BIT,
  36999. SHADOWQUALITY_PCF_24BIT,
  37000. SHADOWQUALITY_VSM,
  37001. SHADOWQUALITY_BLUR_VSM,
  37002. };
  37003. enum ShapeType
  37004. {
  37005. SHAPE_BOX,
  37006. SHAPE_SPHERE,
  37007. SHAPE_STATICPLANE,
  37008. SHAPE_CYLINDER,
  37009. SHAPE_CAPSULE,
  37010. SHAPE_CONE,
  37011. SHAPE_TRIANGLEMESH,
  37012. SHAPE_CONVEXHULL,
  37013. SHAPE_TERRAIN,
  37014. SHAPE_GIMPACTMESH,
  37015. };
  37016. enum StencilOp
  37017. {
  37018. OP_KEEP,
  37019. OP_ZERO,
  37020. OP_REF,
  37021. OP_INCR,
  37022. OP_DECR,
  37023. };
  37024. enum TextEffect
  37025. {
  37026. TE_NONE,
  37027. TE_SHADOW,
  37028. TE_STROKE,
  37029. };
  37030. enum TextureAddressMode
  37031. {
  37032. ADDRESS_WRAP,
  37033. ADDRESS_MIRROR,
  37034. ADDRESS_CLAMP,
  37035. ADDRESS_BORDER,
  37036. MAX_ADDRESSMODES,
  37037. };
  37038. enum TextureCoordinate
  37039. {
  37040. COORD_U,
  37041. COORD_V,
  37042. COORD_W,
  37043. MAX_COORDS,
  37044. };
  37045. enum TextureFilterMode
  37046. {
  37047. FILTER_NEAREST,
  37048. FILTER_BILINEAR,
  37049. FILTER_TRILINEAR,
  37050. FILTER_ANISOTROPIC,
  37051. FILTER_NEAREST_ANISOTROPIC,
  37052. FILTER_DEFAULT,
  37053. MAX_FILTERMODES,
  37054. };
  37055. enum TextureUnit
  37056. {
  37057. TU_DIFFUSE,
  37058. TU_ALBEDOBUFFER,
  37059. TU_NORMAL,
  37060. TU_NORMALBUFFER,
  37061. TU_SPECULAR,
  37062. TU_EMISSIVE,
  37063. TU_ENVIRONMENT,
  37064. TU_LIGHTRAMP,
  37065. TU_LIGHTSHAPE,
  37066. TU_SHADOWMAP,
  37067. TU_VOLUMEMAP,
  37068. TU_CUSTOM1,
  37069. TU_CUSTOM2,
  37070. TU_FACESELECT,
  37071. TU_INDIRECTION,
  37072. TU_DEPTHBUFFER,
  37073. TU_LIGHTBUFFER,
  37074. TU_ZONE,
  37075. MAX_MATERIAL_TEXTURE_UNITS,
  37076. MAX_TEXTURE_UNITS,
  37077. };
  37078. enum TextureUsage
  37079. {
  37080. TEXTURE_STATIC,
  37081. TEXTURE_DYNAMIC,
  37082. TEXTURE_RENDERTARGET,
  37083. TEXTURE_DEPTHSTENCIL,
  37084. };
  37085. enum TileMapLayerType2D
  37086. {
  37087. LT_TILE_LAYER,
  37088. LT_OBJECT_GROUP,
  37089. LT_IMAGE_LAYER,
  37090. LT_INVALID,
  37091. };
  37092. enum TileMapObjectType2D
  37093. {
  37094. OT_RECTANGLE,
  37095. OT_ELLIPSE,
  37096. OT_POLYGON,
  37097. OT_POLYLINE,
  37098. OT_TILE,
  37099. OT_INVALID,
  37100. };
  37101. enum TrailType
  37102. {
  37103. TT_FACE_CAMERA,
  37104. TT_BONE,
  37105. };
  37106. enum TransformSpace
  37107. {
  37108. TS_LOCAL,
  37109. TS_PARENT,
  37110. TS_WORLD,
  37111. };
  37112. enum TraversalMode
  37113. {
  37114. TM_BREADTH_FIRST,
  37115. TM_DEPTH_FIRST,
  37116. };
  37117. enum UpdateGeometryType
  37118. {
  37119. UPDATE_NONE,
  37120. UPDATE_MAIN_THREAD,
  37121. UPDATE_WORKER_THREAD,
  37122. };
  37123. enum VariantType
  37124. {
  37125. VAR_NONE,
  37126. VAR_INT,
  37127. VAR_BOOL,
  37128. VAR_FLOAT,
  37129. VAR_VECTOR2,
  37130. VAR_VECTOR3,
  37131. VAR_VECTOR4,
  37132. VAR_QUATERNION,
  37133. VAR_COLOR,
  37134. VAR_STRING,
  37135. VAR_BUFFER,
  37136. VAR_VOIDPTR,
  37137. VAR_RESOURCEREF,
  37138. VAR_RESOURCEREFLIST,
  37139. VAR_VARIANTVECTOR,
  37140. VAR_VARIANTMAP,
  37141. VAR_INTRECT,
  37142. VAR_INTVECTOR2,
  37143. VAR_PTR,
  37144. VAR_MATRIX3,
  37145. VAR_MATRIX3X4,
  37146. VAR_MATRIX4,
  37147. VAR_DOUBLE,
  37148. VAR_STRINGVECTOR,
  37149. VAR_RECT,
  37150. VAR_INTVECTOR3,
  37151. VAR_INT64,
  37152. VAR_CUSTOM_HEAP,
  37153. VAR_CUSTOM_STACK,
  37154. MAX_VAR_TYPES,
  37155. };
  37156. enum VertexElementSemantic
  37157. {
  37158. SEM_POSITION,
  37159. SEM_NORMAL,
  37160. SEM_BINORMAL,
  37161. SEM_TANGENT,
  37162. SEM_TEXCOORD,
  37163. SEM_COLOR,
  37164. SEM_BLENDWEIGHTS,
  37165. SEM_BLENDINDICES,
  37166. SEM_OBJECTINDEX,
  37167. MAX_VERTEX_ELEMENT_SEMANTICS,
  37168. };
  37169. enum VertexElementType
  37170. {
  37171. TYPE_INT,
  37172. TYPE_FLOAT,
  37173. TYPE_VECTOR2,
  37174. TYPE_VECTOR3,
  37175. TYPE_VECTOR4,
  37176. TYPE_UBYTE4,
  37177. TYPE_UBYTE4_NORM,
  37178. MAX_VERTEX_ELEMENT_TYPES,
  37179. };
  37180. enum VertexLightVSVariation
  37181. {
  37182. VLVS_NOLIGHTS,
  37183. VLVS_1LIGHT,
  37184. VLVS_2LIGHTS,
  37185. VLVS_3LIGHTS,
  37186. VLVS_4LIGHTS,
  37187. MAX_VERTEXLIGHT_VS_VARIATIONS,
  37188. };
  37189. enum VerticalAlignment
  37190. {
  37191. VA_TOP,
  37192. VA_CENTER,
  37193. VA_BOTTOM,
  37194. VA_CUSTOM,
  37195. };
  37196. enum WindowDragMode
  37197. {
  37198. DRAG_NONE,
  37199. DRAG_MOVE,
  37200. DRAG_RESIZE_TOPLEFT,
  37201. DRAG_RESIZE_TOP,
  37202. DRAG_RESIZE_TOPRIGHT,
  37203. DRAG_RESIZE_RIGHT,
  37204. DRAG_RESIZE_BOTTOMRIGHT,
  37205. DRAG_RESIZE_BOTTOM,
  37206. DRAG_RESIZE_BOTTOMLEFT,
  37207. DRAG_RESIZE_LEFT,
  37208. };
  37209. enum WrapMode
  37210. {
  37211. WM_LOOP,
  37212. WM_ONCE,
  37213. WM_CLAMP,
  37214. };
  37215. // Global functions
  37216. BigInt Abs(const BigInt&);
  37217. float Abs(float);
  37218. float Acos(float);
  37219. String AddTrailingSlash(const String&);
  37220. float Asin(float);
  37221. float Atan(float);
  37222. float Atan2(float, float);
  37223. float Ceil(float);
  37224. int CeilToInt(float);
  37225. uint CheckMaxLevels(int, int, int, uint);
  37226. uint CheckMaxLevels(int, int, int, uint);
  37227. uint CheckMaxLevels(int, int, int, uint);
  37228. uint CheckMaxLevels(int, int, int, uint);
  37229. uint CheckMaxLevels(int, int, int, uint);
  37230. uint CheckMaxLevels(int, int, uint);
  37231. uint CheckMaxLevels(int, int, uint);
  37232. uint CheckMaxLevels(int, int, uint);
  37233. uint CheckMaxLevels(int, int, uint);
  37234. uint CheckMaxLevels(int, int, uint);
  37235. float Clamp(float, float, float);
  37236. int Clamp(int, int, int);
  37237. void ClearDelayedExecute(const String& declaration = String ( ));
  37238. uint ClosestPowerOfTwo(uint);
  37239. void CombineHash(uint&, uint);
  37240. bool CompareDrawables(Drawable, Drawable);
  37241. bool CompareLights(Light, Light);
  37242. bool CompressStream(Serializer&, Deserializer&);
  37243. VectorBuffer CompressVectorBuffer(VectorBuffer&);
  37244. float ConvertGammaToLinear(float);
  37245. float ConvertLinearToGamma(float);
  37246. float Cos(float);
  37247. int CountSetBits(uint);
  37248. Object CreateObject(const String&);
  37249. Array<uint8> DecodeBase64(String);
  37250. bool DecompressStream(Serializer&, Deserializer&);
  37251. VectorBuffer DecompressVectorBuffer(VectorBuffer&);
  37252. void DelayedExecute(float, bool, const String&, const Array<Variant> params = null);
  37253. bool Equals(float, float);
  37254. void ErrorDialog(const String&, const String&);
  37255. void ErrorExit(const String& = String :: EMPTY, int = EXIT_FAILURE);
  37256. uint EstimateCompressBound(uint);
  37257. uint16 FloatToHalf(float);
  37258. uint FloatToRawIntBits(float);
  37259. float Floor(float);
  37260. int FloorToInt(float);
  37261. float Fract(float);
  37262. DBAPI GetAPI();
  37263. View GetActualView(View);
  37264. uint GetAlphaFormat();
  37265. Array<String> GetArguments();
  37266. String GetConsoleInput();
  37267. uint GetDepthStencilFormat();
  37268. int GetElementOffset(Array<VertexElement>, VertexElementType, VertexElementSemantic, int8 = 0);
  37269. Array<VertexElement> GetElements(uint);
  37270. StringHashRegister& GetEventNameRegister();
  37271. Object GetEventSender();
  37272. String GetExtension(const String&, bool = true);
  37273. String GetFileName(const String&);
  37274. String GetFileNameAndExtension(const String&, bool = false);
  37275. String GetFileSizeString(uint64);
  37276. uint GetFloat16Format();
  37277. uint GetFloat32Format();
  37278. uint GetFormat(const String&);
  37279. int64 GetFrequency();
  37280. Matrix3x4 GetFullscreenQuadTransform(Camera);
  37281. GAPI GetGAPI();
  37282. bool GetGL3Support();
  37283. Variant GetGlobalVar(const String&);
  37284. String GetHostName();
  37285. String GetInternalPath(const String&);
  37286. uint GetLinearDepthFormat();
  37287. String GetLoginName();
  37288. uint GetLuminanceAlphaFormat();
  37289. uint GetLuminanceFormat();
  37290. uint GetMaxBones();
  37291. String GetMiniDumpDir();
  37292. String GetNativePath(const String&);
  37293. uint GetNumLogicalCPUs();
  37294. uint GetNumPhysicalCPUs();
  37295. JSONNumberType GetNumberTypeFromName(const String&);
  37296. String GetNumberTypeName(JSONNumberType);
  37297. String GetOSVersion();
  37298. Array<AttributeInfo> GetObjectAttributeInfos(const String&);
  37299. Array<String> GetObjectCategories();
  37300. Array<String> GetObjectsByCategory(const String&);
  37301. String GetParentPath(const String&);
  37302. int GetPassIndex(const String&);
  37303. String GetPath(const String&);
  37304. String GetPlatform();
  37305. uint GetRG16Format();
  37306. uint GetRGBA16Format();
  37307. uint GetRGBAFloat16Format();
  37308. uint GetRGBAFloat32Format();
  37309. uint GetRGBAFormat();
  37310. uint GetRGBFormat();
  37311. uint GetRGFloat16Format();
  37312. uint GetRGFloat32Format();
  37313. uint GetRandomSeed();
  37314. uint GetReadableDepthFormat();
  37315. ResourceRef GetResourceRef(Resource, StringHash);
  37316. StringHash GetResourceType(Resource, StringHash);
  37317. uint GetSystemTime();
  37318. String GetTextureUnitName(TextureUnit);
  37319. uint GetTimeSinceEpoch();
  37320. String GetTimeStamp();
  37321. uint64 GetTotalMemory();
  37322. VariantType GetTypeFromName(const String&);
  37323. String GetTypeName(VariantType);
  37324. JSONValueType GetValueTypeFromName(const String&);
  37325. String GetValueTypeName(JSONValueType);
  37326. VariantType GetVariantTypeFromName(const String&);
  37327. String GetVariantTypeName(VariantType);
  37328. int GetVertexSize(Array<VertexElement>);
  37329. int GetVertexSize(uint);
  37330. float HalfToFloat(uint16);
  37331. bool HasElement(Array<VertexElement>, VertexElementType, VertexElementSemantic, int8 = 0);
  37332. bool HasParameter(const VariantMap&, const String&);
  37333. bool HasSubscribedToEvent(Object, const String&);
  37334. bool HasSubscribedToEvent(const String&);
  37335. void InitFPU();
  37336. float InverseLerp(float, float, float);
  37337. bool IsAbsolutePath(const String&);
  37338. bool IsActive();
  37339. bool IsAlpha(uint);
  37340. bool IsDigit(uint);
  37341. bool IsMainThread();
  37342. bool IsMainThread();
  37343. bool IsNaN(double);
  37344. bool IsNaN(float);
  37345. bool IsPowerOfTwo(uint);
  37346. bool IsReplicatedID(uint);
  37347. bool IsSupported();
  37348. String Join(Array<String>&, const String& glue);
  37349. float Lerp(float, float, float);
  37350. float Ln(float);
  37351. Sprite2D LoadFromResourceRef(Object, const ResourceRef&);
  37352. void LoadShaders(Graphics, Deserializer&);
  37353. uint LogBaseTwo(uint);
  37354. void MarkNetworkUpdate();
  37355. float Max(float, float);
  37356. int Max(int, int);
  37357. float Min(float, float);
  37358. int Min(int, int);
  37359. float Mod(float, float);
  37360. uint NextPowerOfTwo(uint);
  37361. void OpenConsoleWindow();
  37362. Array<String> ParseArguments(const String&, bool = true);
  37363. VariantMap ParseParameters(Array<String>);
  37364. Variant ParseShaderParameterValue(const String&);
  37365. float Pow(float, float);
  37366. void Print(bool, bool error = false);
  37367. void Print(const String&, bool error = false);
  37368. void Print(const Variant&, bool error = false);
  37369. void Print(float, bool error = false);
  37370. void Print(int, bool error = false);
  37371. void Print(int64, bool error = false);
  37372. void Print(uint, bool error = false);
  37373. void Print(uint64, bool error = false);
  37374. void PrintCallStack(bool error = false);
  37375. void PrintLine(const String&, bool = false);
  37376. void PrintUnicode(const String&, bool = false);
  37377. void PrintUnicodeLine(const String&, bool = false);
  37378. int Rand();
  37379. float RandStandardNormal();
  37380. float Random();
  37381. float Random(float);
  37382. float Random(float, float);
  37383. int Random(int);
  37384. int Random(int, int);
  37385. int RandomInt();
  37386. int RandomInt(int);
  37387. int RandomInt(int, int);
  37388. float RandomNormal(float, float);
  37389. void RegisterEventName(const String&);
  37390. void Remove();
  37391. String RemoveTrailingSlash(const String&);
  37392. String ReplaceExtension(const String&, const String&);
  37393. float Round(float);
  37394. int RoundToInt(float);
  37395. uint SDBMHash(uint, uint8);
  37396. ResourceRef SaveToResourceRef(Sprite2D);
  37397. void SendEvent(const String&, VariantMap& eventData = VariantMap ( ));
  37398. void SetActive(bool);
  37399. GAPI SetGAPI(GAPI);
  37400. void SetGlobalVar(const String&, Variant&);
  37401. void SetMainThread();
  37402. void SetMainThread();
  37403. void SetMiniDumpDir(const String&);
  37404. void SetRandomSeed(uint);
  37405. float Sign(float);
  37406. float Sin(float);
  37407. void SinCos(float, float&, float&);
  37408. void Sleep(uint);
  37409. float SmoothStep(float, float, float);
  37410. void SplitPath(const String&, String&, String&, String&, bool = true);
  37411. float Sqrt(float);
  37412. float StableRandom(const Vector2&);
  37413. float StableRandom(const Vector3&);
  37414. float StableRandom(float);
  37415. const String& GetResourceName(Resource);
  37416. const String& GetTypeName(StringHash);
  37417. void SubscribeToEvent(Object, const String&, const String&);
  37418. void SubscribeToEvent(const String&, const String&);
  37419. float Tan(float);
  37420. bool ToBool(const String&);
  37421. Color ToColor(const String&);
  37422. double ToDouble(const String&);
  37423. float ToFloat(const String&);
  37424. int ToInt(const String&, int = 10);
  37425. int64 ToInt64(const String&, int = 10);
  37426. IntRect ToIntRect(const String&);
  37427. IntVector2 ToIntVector2(const String&);
  37428. IntVector3 ToIntVector3(const String&);
  37429. uint ToLower(uint);
  37430. Matrix3 ToMatrix3(const String&);
  37431. Matrix3x4 ToMatrix3x4(const String&);
  37432. Matrix4 ToMatrix4(const String&);
  37433. Quaternion ToQuaternion(const String&);
  37434. Rect ToRect(const String&);
  37435. String ToStringHex(uint);
  37436. uint ToUInt(const String&, int = 10);
  37437. uint64 ToUInt64(const String&, int = 10);
  37438. uint ToUpper(uint);
  37439. Vector2 ToVector2(const String&);
  37440. Vector3 ToVector3(const String&);
  37441. Vector4 ToVector4(const String&, bool = false);
  37442. Variant ToVectorVariant(const String&);
  37443. void UnsubscribeFromAllEvents();
  37444. void UnsubscribeFromAllEventsExcept(Array<String>);
  37445. void UnsubscribeFromEvent(Object, const String&);
  37446. void UnsubscribeFromEvent(const String&);
  37447. void UnsubscribeFromEvents(Object);
  37448. const Variant& GetParameter(const VariantMap&, const String&, const Variant& = Variant :: EMPTY);
  37449. IntVector2 VectorAbs(const IntVector2&);
  37450. IntVector3 VectorAbs(const IntVector3&);
  37451. Vector2 VectorAbs(const Vector2&);
  37452. Vector3 VectorAbs(const Vector3&);
  37453. Vector2 VectorCeil(const Vector2&);
  37454. Vector3 VectorCeil(const Vector3&);
  37455. Vector4 VectorCeil(const Vector4&);
  37456. IntVector2 VectorCeilToInt(const Vector2&);
  37457. IntVector3 VectorCeilToInt(const Vector3&);
  37458. Vector2 VectorFloor(const Vector2&);
  37459. Vector3 VectorFloor(const Vector3&);
  37460. Vector4 VectorFloor(const Vector4&);
  37461. IntVector2 VectorFloorToInt(const Vector2&);
  37462. IntVector3 VectorFloorToInt(const Vector3&);
  37463. Vector2 VectorLerp(const Vector2&, const Vector2&, const Vector2&);
  37464. Vector3 VectorLerp(const Vector3&, const Vector3&, const Vector3&);
  37465. Vector4 VectorLerp(const Vector4&, const Vector4&, const Vector4&);
  37466. IntVector2 VectorMax(const IntVector2&, const IntVector2&);
  37467. IntVector3 VectorMax(const IntVector3&, const IntVector3&);
  37468. Vector2 VectorMax(const Vector2&, const Vector2&);
  37469. Vector3 VectorMax(const Vector3&, const Vector3&);
  37470. Vector4 VectorMax(const Vector4&, const Vector4&);
  37471. IntVector2 VectorMin(const IntVector2&, const IntVector2&);
  37472. IntVector3 VectorMin(const IntVector3&, const IntVector3&);
  37473. Vector2 VectorMin(const Vector2&, const Vector2&);
  37474. Vector3 VectorMin(const Vector3&, const Vector3&);
  37475. Vector4 VectorMin(const Vector4&, const Vector4&);
  37476. Vector2 VectorRound(const Vector2&);
  37477. Vector3 VectorRound(const Vector3&);
  37478. Vector4 VectorRound(const Vector4&);
  37479. IntVector2 VectorRoundToInt(const Vector2&);
  37480. IntVector3 VectorRoundToInt(const Vector3&);
  37481. bool WriteDrawablesToOBJ(Array<Drawable>, File, bool, bool, bool = false);
  37482. void WriteRaw(const String&, bool = false);
  37483. // Global properties
  37484. DBAPI DBAPI;
  37485. Audio audio;
  37486. ResourceCache cache;
  37487. Console console;
  37488. Database database;
  37489. DebugHud debugHud;
  37490. DebugRenderer debugRenderer;
  37491. Engine engine;
  37492. FileSystem fileSystem;
  37493. VariantMap globalVars;
  37494. Graphics graphics;
  37495. Input input;
  37496. Localization localization;
  37497. Log log;
  37498. Network network;
  37499. Node node;
  37500. Octree octree;
  37501. PhysicsWorld physicsWorld;
  37502. PhysicsWorld2D physicsWorld2D;
  37503. Renderer renderer;
  37504. ResourceCache resourceCache;
  37505. Scene scene;
  37506. Script script;
  37507. ScriptFile scriptFile;
  37508. ScriptInstance self;
  37509. Time time;
  37510. UI ui;
  37511. // Global constants
  37512. float ANIMATION_LOD_BASESCALE;
  37513. int BITS_PER_COMPONENT;
  37514. uint8 BONECOLLISION_BOX;
  37515. uint8 BONECOLLISION_NONE;
  37516. uint8 BONECOLLISION_SPHERE;
  37517. uint8 CHANNEL_NONE;
  37518. uint8 CHANNEL_POSITION;
  37519. uint8 CHANNEL_ROTATION;
  37520. uint8 CHANNEL_SCALE;
  37521. uint CLEAR_COLOR;
  37522. uint CLEAR_DEPTH;
  37523. uint CLEAR_STENCIL;
  37524. int COLOR_LUT_SIZE;
  37525. uint CONTROLLER_AXIS_LEFTX;
  37526. uint CONTROLLER_AXIS_LEFTY;
  37527. uint CONTROLLER_AXIS_RIGHTX;
  37528. uint CONTROLLER_AXIS_RIGHTY;
  37529. uint CONTROLLER_AXIS_TRIGGERLEFT;
  37530. uint CONTROLLER_AXIS_TRIGGERRIGHT;
  37531. uint CONTROLLER_BUTTON_A;
  37532. uint CONTROLLER_BUTTON_B;
  37533. uint CONTROLLER_BUTTON_BACK;
  37534. uint CONTROLLER_BUTTON_DPAD_DOWN;
  37535. uint CONTROLLER_BUTTON_DPAD_LEFT;
  37536. uint CONTROLLER_BUTTON_DPAD_RIGHT;
  37537. uint CONTROLLER_BUTTON_DPAD_UP;
  37538. uint CONTROLLER_BUTTON_GUIDE;
  37539. uint CONTROLLER_BUTTON_LEFTSHOULDER;
  37540. uint CONTROLLER_BUTTON_LEFTSTICK;
  37541. uint CONTROLLER_BUTTON_RIGHTSHOULDER;
  37542. uint CONTROLLER_BUTTON_RIGHTSTICK;
  37543. uint CONTROLLER_BUTTON_START;
  37544. uint CONTROLLER_BUTTON_X;
  37545. uint CONTROLLER_BUTTON_Y;
  37546. uint CONTROLS_CONTENT_ID;
  37547. int CONVERSION_BUFFER_LENGTH;
  37548. uint DD_DISABLED;
  37549. uint DD_SOURCE;
  37550. uint DD_SOURCE_AND_TARGET;
  37551. uint DD_TARGET;
  37552. float DEFAULT_CAMERA_FOV;
  37553. float DEFAULT_FARCLIP;
  37554. float DEFAULT_FONT_SIZE;
  37555. int DEFAULT_FPS;
  37556. uint DEFAULT_LIGHTMASK;
  37557. float DEFAULT_MAX_NETWORK_ANGULAR_VELOCITY;
  37558. float DEFAULT_NEARCLIP;
  37559. uint DEFAULT_NUM_PARTICLES;
  37560. float DEFAULT_ORTHOSIZE;
  37561. uint8 DEFAULT_RENDER_ORDER;
  37562. uint DEFAULT_SHADOWMASK;
  37563. uint DEFAULT_VIEWMASK;
  37564. uint DEFAULT_ZONEMASK;
  37565. Vector3 DOT_SCALE;
  37566. uint DRAWABLE_ANY;
  37567. uint DRAWABLE_GEOMETRY;
  37568. uint DRAWABLE_GEOMETRY2D;
  37569. uint DRAWABLE_LIGHT;
  37570. uint DRAWABLE_UNDEFINED;
  37571. uint DRAWABLE_ZONE;
  37572. int ENDPOS;
  37573. String EP_AUTOLOAD_PATHS;
  37574. String EP_BORDERLESS;
  37575. String EP_DIRECT3D11;
  37576. String EP_DUMP_SHADERS;
  37577. String EP_EVENT_PROFILER;
  37578. String EP_EXTERNAL_WINDOW;
  37579. String EP_FLUSH_GPU;
  37580. String EP_FORCE_GL2;
  37581. String EP_FRAME_LIMITER;
  37582. String EP_FULL_SCREEN;
  37583. String EP_HEADLESS;
  37584. String EP_HIGH_DPI;
  37585. String EP_LOG_LEVEL;
  37586. String EP_LOG_NAME;
  37587. String EP_LOG_QUIET;
  37588. String EP_LOW_QUALITY_SHADOWS;
  37589. String EP_MATERIAL_QUALITY;
  37590. String EP_MONITOR;
  37591. String EP_MULTI_SAMPLE;
  37592. String EP_OPENGL;
  37593. String EP_ORIENTATIONS;
  37594. String EP_PACKAGE_CACHE_DIR;
  37595. String EP_REFRESH_RATE;
  37596. String EP_RENDER_PATH;
  37597. String EP_RESOURCE_PACKAGES;
  37598. String EP_RESOURCE_PATHS;
  37599. String EP_RESOURCE_PREFIX_PATHS;
  37600. String EP_SHADER_CACHE_DIR;
  37601. String EP_SHADOWS;
  37602. String EP_SOUND;
  37603. String EP_SOUND_BUFFER;
  37604. String EP_SOUND_INTERPOLATION;
  37605. String EP_SOUND_MIX_RATE;
  37606. String EP_SOUND_STEREO;
  37607. String EP_TEXTURE_ANISOTROPY;
  37608. String EP_TEXTURE_FILTER_MODE;
  37609. String EP_TEXTURE_QUALITY;
  37610. String EP_TIME_OUT;
  37611. String EP_TOUCH_EMULATION;
  37612. String EP_TRIPLE_BUFFER;
  37613. String EP_VSYNC;
  37614. String EP_WINDOW_HEIGHT;
  37615. String EP_WINDOW_ICON;
  37616. String EP_WINDOW_POSITION_X;
  37617. String EP_WINDOW_POSITION_Y;
  37618. String EP_WINDOW_RESIZABLE;
  37619. String EP_WINDOW_TITLE;
  37620. String EP_WINDOW_WIDTH;
  37621. String EP_WORKER_THREADS;
  37622. uint FIRST_LOCAL_ID;
  37623. uint FIRST_REPLICATED_ID;
  37624. uint FLIP_ALL;
  37625. uint FLIP_DIAGONAL;
  37626. uint FLIP_HORIZONTAL;
  37627. uint FLIP_RESERVED;
  37628. uint FLIP_VERTICAL;
  37629. int FONT_DPI;
  37630. int FONT_TEXTURE_MIN_SIZE;
  37631. uint HAT_CENTER;
  37632. uint HAT_DOWN;
  37633. uint HAT_LEFT;
  37634. uint HAT_RIGHT;
  37635. uint HAT_UP;
  37636. int INSTANCING_BUFFER_DEFAULT_SIZE;
  37637. uint KEY_0;
  37638. uint KEY_1;
  37639. uint KEY_2;
  37640. uint KEY_3;
  37641. uint KEY_4;
  37642. uint KEY_5;
  37643. uint KEY_6;
  37644. uint KEY_7;
  37645. uint KEY_8;
  37646. uint KEY_9;
  37647. uint KEY_A;
  37648. uint KEY_AC_BACK;
  37649. uint KEY_AC_BOOKMARKS;
  37650. uint KEY_AC_FORWARD;
  37651. uint KEY_AC_HOME;
  37652. uint KEY_AC_REFRESH;
  37653. uint KEY_AC_SEARCH;
  37654. uint KEY_AC_STOP;
  37655. uint KEY_AGAIN;
  37656. uint KEY_ALT;
  37657. uint KEY_ALTERASE;
  37658. uint KEY_AMPERSAND;
  37659. uint KEY_APPLICATION;
  37660. uint KEY_ASTERISK;
  37661. uint KEY_AT;
  37662. uint KEY_AUDIOMUTE;
  37663. uint KEY_AUDIONEXT;
  37664. uint KEY_AUDIOPLAY;
  37665. uint KEY_AUDIOPREV;
  37666. uint KEY_AUDIOSTOP;
  37667. uint KEY_B;
  37668. uint KEY_BACKQUOTE;
  37669. uint KEY_BACKSLASH;
  37670. uint KEY_BACKSPACE;
  37671. uint KEY_BRIGHTNESSDOWN;
  37672. uint KEY_BRIGHTNESSUP;
  37673. uint KEY_C;
  37674. uint KEY_CALCULATOR;
  37675. uint KEY_CANCEL;
  37676. uint KEY_CAPSLOCK;
  37677. uint KEY_CARET;
  37678. uint KEY_CLEAR;
  37679. uint KEY_CLEARAGAIN;
  37680. uint KEY_COLON;
  37681. uint KEY_COMMA;
  37682. uint KEY_COMPUTER;
  37683. uint KEY_COPY;
  37684. uint KEY_CRSEL;
  37685. uint KEY_CTRL;
  37686. uint KEY_CURRENCYSUBUNIT;
  37687. uint KEY_CURRENCYUNIT;
  37688. uint KEY_CUT;
  37689. uint KEY_D;
  37690. uint KEY_DECIMALSEPARATOR;
  37691. uint KEY_DELETE;
  37692. uint KEY_DISPLAYSWITCH;
  37693. uint KEY_DOLLAR;
  37694. uint KEY_DOWN;
  37695. uint KEY_E;
  37696. uint KEY_EJECT;
  37697. uint KEY_END;
  37698. uint KEY_EQUALS;
  37699. uint KEY_ESCAPE;
  37700. uint KEY_EXCLAIM;
  37701. uint KEY_EXSEL;
  37702. uint KEY_F;
  37703. uint KEY_F1;
  37704. uint KEY_F10;
  37705. uint KEY_F11;
  37706. uint KEY_F12;
  37707. uint KEY_F13;
  37708. uint KEY_F14;
  37709. uint KEY_F15;
  37710. uint KEY_F16;
  37711. uint KEY_F17;
  37712. uint KEY_F18;
  37713. uint KEY_F19;
  37714. uint KEY_F2;
  37715. uint KEY_F20;
  37716. uint KEY_F21;
  37717. uint KEY_F22;
  37718. uint KEY_F23;
  37719. uint KEY_F24;
  37720. uint KEY_F3;
  37721. uint KEY_F4;
  37722. uint KEY_F5;
  37723. uint KEY_F6;
  37724. uint KEY_F7;
  37725. uint KEY_F8;
  37726. uint KEY_F9;
  37727. uint KEY_FIND;
  37728. uint KEY_G;
  37729. uint KEY_GREATER;
  37730. uint KEY_GUI;
  37731. uint KEY_H;
  37732. uint KEY_HASH;
  37733. uint KEY_HELP;
  37734. uint KEY_HOME;
  37735. uint KEY_I;
  37736. uint KEY_INSERT;
  37737. uint KEY_J;
  37738. uint KEY_K;
  37739. uint KEY_KBDILLUMDOWN;
  37740. uint KEY_KBDILLUMTOGGLE;
  37741. uint KEY_KBDILLUMUP;
  37742. uint KEY_KP_0;
  37743. uint KEY_KP_00;
  37744. uint KEY_KP_000;
  37745. uint KEY_KP_1;
  37746. uint KEY_KP_2;
  37747. uint KEY_KP_3;
  37748. uint KEY_KP_4;
  37749. uint KEY_KP_5;
  37750. uint KEY_KP_6;
  37751. uint KEY_KP_7;
  37752. uint KEY_KP_8;
  37753. uint KEY_KP_9;
  37754. uint KEY_KP_A;
  37755. uint KEY_KP_AMPERSAND;
  37756. uint KEY_KP_AT;
  37757. uint KEY_KP_B;
  37758. uint KEY_KP_BACKSPACE;
  37759. uint KEY_KP_BINARY;
  37760. uint KEY_KP_C;
  37761. uint KEY_KP_CLEAR;
  37762. uint KEY_KP_CLEARENTRY;
  37763. uint KEY_KP_COLON;
  37764. uint KEY_KP_COMMA;
  37765. uint KEY_KP_D;
  37766. uint KEY_KP_DBLAMPERSAND;
  37767. uint KEY_KP_DBLVERTICALBAR;
  37768. uint KEY_KP_DECIMAL;
  37769. uint KEY_KP_DIVIDE;
  37770. uint KEY_KP_E;
  37771. uint KEY_KP_ENTER;
  37772. uint KEY_KP_EQUALS;
  37773. uint KEY_KP_EQUALSAS400;
  37774. uint KEY_KP_EXCLAM;
  37775. uint KEY_KP_F;
  37776. uint KEY_KP_GREATER;
  37777. uint KEY_KP_HASH;
  37778. uint KEY_KP_HEXADECIMAL;
  37779. uint KEY_KP_LEFTBRACE;
  37780. uint KEY_KP_LEFTPAREN;
  37781. uint KEY_KP_LESS;
  37782. uint KEY_KP_MEMADD;
  37783. uint KEY_KP_MEMCLEAR;
  37784. uint KEY_KP_MEMDIVIDE;
  37785. uint KEY_KP_MEMMULTIPLY;
  37786. uint KEY_KP_MEMRECALL;
  37787. uint KEY_KP_MEMSTORE;
  37788. uint KEY_KP_MEMSUBTRACT;
  37789. uint KEY_KP_MINUS;
  37790. uint KEY_KP_MULTIPLY;
  37791. uint KEY_KP_OCTAL;
  37792. uint KEY_KP_PERCENT;
  37793. uint KEY_KP_PERIOD;
  37794. uint KEY_KP_PLUS;
  37795. uint KEY_KP_PLUSMINUS;
  37796. uint KEY_KP_POWER;
  37797. uint KEY_KP_RIGHTBRACE;
  37798. uint KEY_KP_RIGHTPAREN;
  37799. uint KEY_KP_SPACE;
  37800. uint KEY_KP_TAB;
  37801. uint KEY_KP_VERTICALBAR;
  37802. uint KEY_KP_XOR;
  37803. uint KEY_L;
  37804. uint KEY_LALT;
  37805. uint KEY_LCTRL;
  37806. uint KEY_LEFT;
  37807. uint KEY_LEFTBRACKET;
  37808. uint KEY_LEFTPAREN;
  37809. uint KEY_LESS;
  37810. uint KEY_LGUI;
  37811. uint KEY_LSHIFT;
  37812. uint KEY_M;
  37813. uint KEY_MAIL;
  37814. uint KEY_MEDIASELECT;
  37815. uint KEY_MENU;
  37816. uint KEY_MINUS;
  37817. uint KEY_MODE;
  37818. uint KEY_MUTE;
  37819. uint KEY_N;
  37820. uint KEY_NUMLOCKCLEAR;
  37821. uint KEY_O;
  37822. uint KEY_OPER;
  37823. uint KEY_OUT;
  37824. uint KEY_P;
  37825. uint KEY_PAGEDOWN;
  37826. uint KEY_PAGEUP;
  37827. uint KEY_PASTE;
  37828. uint KEY_PAUSE;
  37829. uint KEY_PERCENT;
  37830. uint KEY_PERIOD;
  37831. uint KEY_PLUS;
  37832. uint KEY_POWER;
  37833. uint KEY_PRINTSCREEN;
  37834. uint KEY_PRIOR;
  37835. uint KEY_Q;
  37836. uint KEY_QUESTION;
  37837. uint KEY_QUOTE;
  37838. uint KEY_QUOTEDBL;
  37839. uint KEY_R;
  37840. uint KEY_RALT;
  37841. uint KEY_RCTRL;
  37842. uint KEY_RETURN;
  37843. uint KEY_RETURN2;
  37844. uint KEY_RGUI;
  37845. uint KEY_RIGHT;
  37846. uint KEY_RIGHTBRACKET;
  37847. uint KEY_RIGHTPAREN;
  37848. uint KEY_RSHIFT;
  37849. uint KEY_S;
  37850. uint KEY_SCROLLLOCK;
  37851. uint KEY_SELECT;
  37852. uint KEY_SEMICOLON;
  37853. uint KEY_SEPARATOR;
  37854. uint KEY_SHIFT;
  37855. uint KEY_SLASH;
  37856. uint KEY_SLEEP;
  37857. uint KEY_SPACE;
  37858. uint KEY_STOP;
  37859. uint KEY_SYSREQ;
  37860. uint KEY_T;
  37861. uint KEY_TAB;
  37862. uint KEY_THOUSANDSSEPARATOR;
  37863. uint KEY_U;
  37864. uint KEY_UNDERSCORE;
  37865. uint KEY_UNDO;
  37866. uint KEY_UNKNOWN;
  37867. uint KEY_UP;
  37868. uint KEY_V;
  37869. uint KEY_VOLUMEDOWN;
  37870. uint KEY_VOLUMEUP;
  37871. uint KEY_W;
  37872. uint KEY_WWW;
  37873. uint KEY_X;
  37874. uint KEY_Y;
  37875. uint KEY_Z;
  37876. uint LAST_LOCAL_ID;
  37877. uint LAST_REPLICATED_ID;
  37878. int LOG_DEBUG;
  37879. int LOG_ERROR;
  37880. int LOG_INFO;
  37881. int LOG_NONE;
  37882. int LOG_RAW;
  37883. int LOG_TRACE;
  37884. int LOG_WARNING;
  37885. uint MASK_BLENDINDICES;
  37886. uint MASK_BLENDWEIGHTS;
  37887. uint MASK_COLOR;
  37888. uint MASK_CUBETEXCOORD1;
  37889. uint MASK_CUBETEXCOORD2;
  37890. uint MASK_INSTANCEMATRIX1;
  37891. uint MASK_INSTANCEMATRIX2;
  37892. uint MASK_INSTANCEMATRIX3;
  37893. uint MASK_NONE;
  37894. uint MASK_NORMAL;
  37895. uint MASK_OBJECTINDEX;
  37896. uint MASK_POSITION;
  37897. uint MASK_TANGENT;
  37898. uint MASK_TEXCOORD1;
  37899. uint MASK_TEXCOORD2;
  37900. int MATRIX_CONVERSION_BUFFER_LENGTH;
  37901. int MAX_CASCADE_SPLITS;
  37902. int MAX_CONSTANT_REGISTERS;
  37903. int MAX_LIGHT_SPLITS;
  37904. uint MAX_NETWORK_ATTRIBUTES;
  37905. int MAX_RENDERTARGETS;
  37906. int MAX_TEXTURE_QUALITY_LEVELS;
  37907. int MAX_VERTEX_LIGHTS;
  37908. int MAX_VERTEX_STREAMS;
  37909. uint MAX_VIEWPORT_TEXTURES;
  37910. uint MOUSEB_ANY;
  37911. uint MOUSEB_LEFT;
  37912. uint MOUSEB_MIDDLE;
  37913. uint MOUSEB_NONE;
  37914. uint MOUSEB_RIGHT;
  37915. uint MOUSEB_X1;
  37916. uint MOUSEB_X2;
  37917. IntVector2 MOUSE_POSITION_OFFSCREEN;
  37918. int MSG_COMPONENTDELTAUPDATE;
  37919. int MSG_COMPONENTLATESTDATA;
  37920. int MSG_CONTROLS;
  37921. int MSG_CREATECOMPONENT;
  37922. int MSG_CREATENODE;
  37923. int MSG_IDENTITY;
  37924. int MSG_LOADSCENE;
  37925. int MSG_NODEDELTAUPDATE;
  37926. int MSG_NODELATESTDATA;
  37927. int MSG_PACKAGEDATA;
  37928. int MSG_PACKAGEINFO;
  37929. int MSG_PACKED_MESSAGE;
  37930. int MSG_REMOTEEVENT;
  37931. int MSG_REMOTENODEEVENT;
  37932. int MSG_REMOVECOMPONENT;
  37933. int MSG_REMOVENODE;
  37934. int MSG_REQUESTPACKAGE;
  37935. int MSG_SCENECHECKSUMERROR;
  37936. int MSG_SCENELOADED;
  37937. int MSG_USER;
  37938. float M_DEGTORAD;
  37939. float M_DEGTORAD_2;
  37940. float M_EPSILON;
  37941. float M_HALF_PI;
  37942. int16 M_I16_MASK_ALL_BITS;
  37943. int M_I32_MASK_ALL_BITS;
  37944. float M_INFINITY;
  37945. float M_LARGE_EPSILON;
  37946. float M_LARGE_VALUE;
  37947. float M_MAX_FOV;
  37948. int64 M_MAX_I64;
  37949. int M_MAX_INT;
  37950. uint64 M_MAX_U64;
  37951. uint M_MAX_UNSIGNED;
  37952. int64 M_MIN_I64;
  37953. int M_MIN_INT;
  37954. float M_MIN_NEARCLIP;
  37955. uint64 M_MIN_U64;
  37956. uint M_MIN_UNSIGNED;
  37957. float M_PI;
  37958. float M_RADTODEG;
  37959. uint16 M_U16_MASK_ALL_BITS;
  37960. uint M_U32_MASK_ALL_BITS;
  37961. int NINDEX;
  37962. uint NUM_FRUSTUM_PLANES;
  37963. uint NUM_FRUSTUM_VERTICES;
  37964. int NUM_OCTANTS;
  37965. uint PACKAGE_FRAGMENT_SIZE;
  37966. float PIXEL_SIZE;
  37967. uint PRIORITY_LAST;
  37968. StringHash PSP_AMBIENTCOLOR;
  37969. StringHash PSP_CAMERAPOS;
  37970. StringHash PSP_DELTATIME;
  37971. StringHash PSP_DEPTHRECONSTRUCT;
  37972. StringHash PSP_ELAPSEDTIME;
  37973. StringHash PSP_FARCLIP;
  37974. StringHash PSP_FOGCOLOR;
  37975. StringHash PSP_FOGPARAMS;
  37976. StringHash PSP_GBUFFERINVSIZE;
  37977. StringHash PSP_LIGHTCOLOR;
  37978. StringHash PSP_LIGHTDIR;
  37979. StringHash PSP_LIGHTLENGTH;
  37980. StringHash PSP_LIGHTMATRICES;
  37981. StringHash PSP_LIGHTPOS;
  37982. StringHash PSP_LIGHTRAD;
  37983. StringHash PSP_MATDIFFCOLOR;
  37984. StringHash PSP_MATEMISSIVECOLOR;
  37985. StringHash PSP_MATENVMAPCOLOR;
  37986. StringHash PSP_MATSPECCOLOR;
  37987. StringHash PSP_METALLIC;
  37988. StringHash PSP_NEARCLIP;
  37989. StringHash PSP_NORMALOFFSETSCALE;
  37990. StringHash PSP_ROUGHNESS;
  37991. StringHash PSP_SHADOWCUBEADJUST;
  37992. StringHash PSP_SHADOWDEPTHFADE;
  37993. StringHash PSP_SHADOWINTENSITY;
  37994. StringHash PSP_SHADOWMAPINVSIZE;
  37995. StringHash PSP_SHADOWSPLITS;
  37996. StringHash PSP_VSMSHADOWPARAMS;
  37997. StringHash PSP_ZONEMAX;
  37998. StringHash PSP_ZONEMIN;
  37999. uint QUALITY_HIGH;
  38000. uint QUALITY_LOW;
  38001. uint QUALITY_MAX;
  38002. uint QUALITY_MEDIUM;
  38003. uint QUAL_ALT;
  38004. uint QUAL_ANY;
  38005. uint QUAL_CTRL;
  38006. uint QUAL_NONE;
  38007. uint QUAL_SHIFT;
  38008. int QUICKSORT_THRESHOLD;
  38009. int ROOT_INDEX;
  38010. uint SCANCODE_0;
  38011. uint SCANCODE_1;
  38012. uint SCANCODE_2;
  38013. uint SCANCODE_3;
  38014. uint SCANCODE_4;
  38015. uint SCANCODE_5;
  38016. uint SCANCODE_6;
  38017. uint SCANCODE_7;
  38018. uint SCANCODE_8;
  38019. uint SCANCODE_9;
  38020. uint SCANCODE_A;
  38021. uint SCANCODE_AC_BACK;
  38022. uint SCANCODE_AC_BOOKMARKS;
  38023. uint SCANCODE_AC_FORWARD;
  38024. uint SCANCODE_AC_HOME;
  38025. uint SCANCODE_AC_REFRESH;
  38026. uint SCANCODE_AC_SEARCH;
  38027. uint SCANCODE_AC_STOP;
  38028. uint SCANCODE_AGAIN;
  38029. uint SCANCODE_ALT;
  38030. uint SCANCODE_ALTERASE;
  38031. uint SCANCODE_APOSTROPHE;
  38032. uint SCANCODE_APP1;
  38033. uint SCANCODE_APP2;
  38034. uint SCANCODE_APPLICATION;
  38035. uint SCANCODE_AUDIOMUTE;
  38036. uint SCANCODE_AUDIONEXT;
  38037. uint SCANCODE_AUDIOPLAY;
  38038. uint SCANCODE_AUDIOPREV;
  38039. uint SCANCODE_AUDIOSTOP;
  38040. uint SCANCODE_B;
  38041. uint SCANCODE_BACKSLASH;
  38042. uint SCANCODE_BACKSPACE;
  38043. uint SCANCODE_BRIGHTNESSDOWN;
  38044. uint SCANCODE_BRIGHTNESSUP;
  38045. uint SCANCODE_C;
  38046. uint SCANCODE_CALCULATOR;
  38047. uint SCANCODE_CANCEL;
  38048. uint SCANCODE_CAPSLOCK;
  38049. uint SCANCODE_CLEAR;
  38050. uint SCANCODE_CLEARAGAIN;
  38051. uint SCANCODE_COMMA;
  38052. uint SCANCODE_COMPUTER;
  38053. uint SCANCODE_COPY;
  38054. uint SCANCODE_CRSEL;
  38055. uint SCANCODE_CTRL;
  38056. uint SCANCODE_CURRENCYSUBUNIT;
  38057. uint SCANCODE_CURRENCYUNIT;
  38058. uint SCANCODE_CUT;
  38059. uint SCANCODE_D;
  38060. uint SCANCODE_DECIMALSEPARATOR;
  38061. uint SCANCODE_DELETE;
  38062. uint SCANCODE_DISPLAYSWITCH;
  38063. uint SCANCODE_DOWN;
  38064. uint SCANCODE_E;
  38065. uint SCANCODE_EJECT;
  38066. uint SCANCODE_END;
  38067. uint SCANCODE_EQUALS;
  38068. uint SCANCODE_ESCAPE;
  38069. uint SCANCODE_EXECUTE;
  38070. uint SCANCODE_EXSEL;
  38071. uint SCANCODE_F;
  38072. uint SCANCODE_F1;
  38073. uint SCANCODE_F10;
  38074. uint SCANCODE_F11;
  38075. uint SCANCODE_F12;
  38076. uint SCANCODE_F13;
  38077. uint SCANCODE_F14;
  38078. uint SCANCODE_F15;
  38079. uint SCANCODE_F16;
  38080. uint SCANCODE_F17;
  38081. uint SCANCODE_F18;
  38082. uint SCANCODE_F19;
  38083. uint SCANCODE_F2;
  38084. uint SCANCODE_F20;
  38085. uint SCANCODE_F21;
  38086. uint SCANCODE_F22;
  38087. uint SCANCODE_F23;
  38088. uint SCANCODE_F24;
  38089. uint SCANCODE_F3;
  38090. uint SCANCODE_F4;
  38091. uint SCANCODE_F5;
  38092. uint SCANCODE_F6;
  38093. uint SCANCODE_F7;
  38094. uint SCANCODE_F8;
  38095. uint SCANCODE_F9;
  38096. uint SCANCODE_FIND;
  38097. uint SCANCODE_G;
  38098. uint SCANCODE_GRAVE;
  38099. uint SCANCODE_GUI;
  38100. uint SCANCODE_H;
  38101. uint SCANCODE_HELP;
  38102. uint SCANCODE_HOME;
  38103. uint SCANCODE_I;
  38104. uint SCANCODE_INSERT;
  38105. uint SCANCODE_INTERNATIONAL1;
  38106. uint SCANCODE_INTERNATIONAL2;
  38107. uint SCANCODE_INTERNATIONAL3;
  38108. uint SCANCODE_INTERNATIONAL4;
  38109. uint SCANCODE_INTERNATIONAL5;
  38110. uint SCANCODE_INTERNATIONAL6;
  38111. uint SCANCODE_INTERNATIONAL7;
  38112. uint SCANCODE_INTERNATIONAL8;
  38113. uint SCANCODE_INTERNATIONAL9;
  38114. uint SCANCODE_J;
  38115. uint SCANCODE_K;
  38116. uint SCANCODE_KBDILLUMDOWN;
  38117. uint SCANCODE_KBDILLUMTOGGLE;
  38118. uint SCANCODE_KBDILLUMUP;
  38119. uint SCANCODE_KP_0;
  38120. uint SCANCODE_KP_00;
  38121. uint SCANCODE_KP_000;
  38122. uint SCANCODE_KP_1;
  38123. uint SCANCODE_KP_2;
  38124. uint SCANCODE_KP_3;
  38125. uint SCANCODE_KP_4;
  38126. uint SCANCODE_KP_5;
  38127. uint SCANCODE_KP_6;
  38128. uint SCANCODE_KP_7;
  38129. uint SCANCODE_KP_8;
  38130. uint SCANCODE_KP_9;
  38131. uint SCANCODE_KP_A;
  38132. uint SCANCODE_KP_AMPERSAND;
  38133. uint SCANCODE_KP_AT;
  38134. uint SCANCODE_KP_B;
  38135. uint SCANCODE_KP_BACKSPACE;
  38136. uint SCANCODE_KP_BINARY;
  38137. uint SCANCODE_KP_C;
  38138. uint SCANCODE_KP_CLEAR;
  38139. uint SCANCODE_KP_CLEARENTRY;
  38140. uint SCANCODE_KP_COLON;
  38141. uint SCANCODE_KP_COMMA;
  38142. uint SCANCODE_KP_D;
  38143. uint SCANCODE_KP_DBLAMPERSAND;
  38144. uint SCANCODE_KP_DBLVERTICALBAR;
  38145. uint SCANCODE_KP_DECIMAL;
  38146. uint SCANCODE_KP_DIVIDE;
  38147. uint SCANCODE_KP_E;
  38148. uint SCANCODE_KP_ENTER;
  38149. uint SCANCODE_KP_EQUALS;
  38150. uint SCANCODE_KP_EQUALSAS400;
  38151. uint SCANCODE_KP_EXCLAM;
  38152. uint SCANCODE_KP_F;
  38153. uint SCANCODE_KP_GREATER;
  38154. uint SCANCODE_KP_HASH;
  38155. uint SCANCODE_KP_HEXADECIMAL;
  38156. uint SCANCODE_KP_LEFTBRACE;
  38157. uint SCANCODE_KP_LEFTPAREN;
  38158. uint SCANCODE_KP_LESS;
  38159. uint SCANCODE_KP_MEMADD;
  38160. uint SCANCODE_KP_MEMCLEAR;
  38161. uint SCANCODE_KP_MEMDIVIDE;
  38162. uint SCANCODE_KP_MEMMULTIPLY;
  38163. uint SCANCODE_KP_MEMRECALL;
  38164. uint SCANCODE_KP_MEMSTORE;
  38165. uint SCANCODE_KP_MEMSUBTRACT;
  38166. uint SCANCODE_KP_MINUS;
  38167. uint SCANCODE_KP_MULTIPLY;
  38168. uint SCANCODE_KP_OCTAL;
  38169. uint SCANCODE_KP_PERCENT;
  38170. uint SCANCODE_KP_PERIOD;
  38171. uint SCANCODE_KP_PLUS;
  38172. uint SCANCODE_KP_PLUSMINUS;
  38173. uint SCANCODE_KP_POWER;
  38174. uint SCANCODE_KP_RIGHTBRACE;
  38175. uint SCANCODE_KP_RIGHTPAREN;
  38176. uint SCANCODE_KP_SPACE;
  38177. uint SCANCODE_KP_TAB;
  38178. uint SCANCODE_KP_VERTICALBAR;
  38179. uint SCANCODE_KP_XOR;
  38180. uint SCANCODE_L;
  38181. uint SCANCODE_LALT;
  38182. uint SCANCODE_LANG1;
  38183. uint SCANCODE_LANG2;
  38184. uint SCANCODE_LANG3;
  38185. uint SCANCODE_LANG4;
  38186. uint SCANCODE_LANG5;
  38187. uint SCANCODE_LANG6;
  38188. uint SCANCODE_LANG7;
  38189. uint SCANCODE_LANG8;
  38190. uint SCANCODE_LANG9;
  38191. uint SCANCODE_LCTRL;
  38192. uint SCANCODE_LEFT;
  38193. uint SCANCODE_LEFTBRACKET;
  38194. uint SCANCODE_LGUI;
  38195. uint SCANCODE_LSHIFT;
  38196. uint SCANCODE_M;
  38197. uint SCANCODE_MAIL;
  38198. uint SCANCODE_MEDIASELECT;
  38199. uint SCANCODE_MENU;
  38200. uint SCANCODE_MINUS;
  38201. uint SCANCODE_MODE;
  38202. uint SCANCODE_MUTE;
  38203. uint SCANCODE_N;
  38204. uint SCANCODE_NONUSBACKSLASH;
  38205. uint SCANCODE_NONUSHASH;
  38206. uint SCANCODE_NUMLOCKCLEAR;
  38207. uint SCANCODE_O;
  38208. uint SCANCODE_OPER;
  38209. uint SCANCODE_OUT;
  38210. uint SCANCODE_P;
  38211. uint SCANCODE_PAGEDOWN;
  38212. uint SCANCODE_PAGEUP;
  38213. uint SCANCODE_PASTE;
  38214. uint SCANCODE_PAUSE;
  38215. uint SCANCODE_PERIOD;
  38216. uint SCANCODE_POWER;
  38217. uint SCANCODE_PRINTSCREEN;
  38218. uint SCANCODE_PRIOR;
  38219. uint SCANCODE_Q;
  38220. uint SCANCODE_R;
  38221. uint SCANCODE_RALT;
  38222. uint SCANCODE_RCTRL;
  38223. uint SCANCODE_RETURN;
  38224. uint SCANCODE_RETURN2;
  38225. uint SCANCODE_RGUI;
  38226. uint SCANCODE_RIGHT;
  38227. uint SCANCODE_RIGHTBRACKET;
  38228. uint SCANCODE_RSHIFT;
  38229. uint SCANCODE_S;
  38230. uint SCANCODE_SCROLLLOCK;
  38231. uint SCANCODE_SELECT;
  38232. uint SCANCODE_SEMICOLON;
  38233. uint SCANCODE_SEPARATOR;
  38234. uint SCANCODE_SHIFT;
  38235. uint SCANCODE_SLASH;
  38236. uint SCANCODE_SLEEP;
  38237. uint SCANCODE_SPACE;
  38238. uint SCANCODE_STOP;
  38239. uint SCANCODE_SYSREQ;
  38240. uint SCANCODE_T;
  38241. uint SCANCODE_TAB;
  38242. uint SCANCODE_THOUSANDSSEPARATOR;
  38243. uint SCANCODE_U;
  38244. uint SCANCODE_UNDO;
  38245. uint SCANCODE_UNKNOWN;
  38246. uint SCANCODE_UP;
  38247. uint SCANCODE_V;
  38248. uint SCANCODE_VOLUMEDOWN;
  38249. uint SCANCODE_VOLUMEUP;
  38250. uint SCANCODE_W;
  38251. uint SCANCODE_WWW;
  38252. uint SCANCODE_X;
  38253. uint SCANCODE_Y;
  38254. uint SCANCODE_Z;
  38255. uint SCAN_DIRS;
  38256. uint SCAN_FILES;
  38257. uint SCAN_HIDDEN;
  38258. int SHADOW_MIN_PIXELS;
  38259. float SHADOW_MIN_QUANTIZE;
  38260. float SHADOW_MIN_VIEW;
  38261. uint SMOOTH_NONE;
  38262. uint SMOOTH_POSITION;
  38263. uint SMOOTH_ROTATION;
  38264. String SOUND_AMBIENT;
  38265. String SOUND_EFFECT;
  38266. String SOUND_MASTER;
  38267. String SOUND_MUSIC;
  38268. String SOUND_VOICE;
  38269. int STREAM_BUFFER_LENGTH;
  38270. int UI_VERTEX_SIZE;
  38271. uint VARIANT_VALUE_SIZE;
  38272. uint VO_DISABLE_OCCLUSION;
  38273. uint VO_DISABLE_SHADOWS;
  38274. uint VO_LOW_MATERIAL_QUALITY;
  38275. uint VO_NONE;
  38276. StringHash VSP_AMBIENTENDCOLOR;
  38277. StringHash VSP_AMBIENTSTARTCOLOR;
  38278. StringHash VSP_BILLBOARDROT;
  38279. StringHash VSP_CAMERAPOS;
  38280. StringHash VSP_CLIPPLANE;
  38281. StringHash VSP_DELTATIME;
  38282. StringHash VSP_DEPTHMODE;
  38283. StringHash VSP_ELAPSEDTIME;
  38284. StringHash VSP_FARCLIP;
  38285. StringHash VSP_FRUSTUMSIZE;
  38286. StringHash VSP_GBUFFEROFFSETS;
  38287. StringHash VSP_LIGHTDIR;
  38288. StringHash VSP_LIGHTMATRICES;
  38289. StringHash VSP_LIGHTPOS;
  38290. StringHash VSP_MODEL;
  38291. StringHash VSP_NEARCLIP;
  38292. StringHash VSP_NORMALOFFSETSCALE;
  38293. StringHash VSP_SKINMATRICES;
  38294. StringHash VSP_UOFFSET;
  38295. StringHash VSP_VERTEXLIGHTS;
  38296. StringHash VSP_VIEW;
  38297. StringHash VSP_VIEWINV;
  38298. StringHash VSP_VIEWPROJ;
  38299. StringHash VSP_VOFFSET;
  38300. StringHash VSP_ZONE;
  38301. int WI_MAX_PRIORITY;